/* シンケンハウス 新サイト 共通スタイル（試作） */
:root {
  --navy: #2c4a7c;          /* 差し色（落ち着いた紺） */
  --navy-deep: #22375a;     /* 濃い地（明るめの紺） */
  --ink: #262a31;
  --muted: #6b7280;
  --line: #d9dde3;
  --bg: #f3f5f8;
  --white: #ffffff;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  --en: "Didot", "Bodoni 72", "Times New Roman", serif;
  --header-h: 72px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 500; margin: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---- レイアウト ---- */
.wrap { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 96px 0; scroll-margin-top: var(--header-h); }
.section.-tight { padding: 64px 0; }
.section.-bg { background: var(--bg); }
.section.-dark { background: var(--navy-deep); color: var(--white); }
.section.-dark .label { color: rgba(255,255,255,.6); }
.section.-dark .lead { color: rgba(255,255,255,.85); }
.label {
  font-family: var(--en);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
}
.heading {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.5;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}
.heading.-center, .label.-center { text-align: center; }
.lead { max-width: 720px; font-size: 15.5px; color: #444; }
.lead.-center { margin: 0 auto; text-align: center; }
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); gap: 20px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.-rev > :first-child { order: 2; }

/* ---- ボタン ---- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 13.5px; letter-spacing: 0.2em;
  padding: 14px 28px;
  border: 1px solid currentColor;
  transition: background .3s, color .3s;
}
.btn::after { content: "→"; font-family: var(--en); }
.btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.-dark .btn:hover { background: var(--white); color: var(--navy-deep); border-color: var(--white); }

/* ---- 写真の枠（後から写真を入れる場所） ---- */
.ph {
  position: relative; margin: 0;
  background: #e8ebf0;
  border: 1px solid #c9d0da;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.ph.-wide { aspect-ratio: 16 / 7; }
.ph.-tall { aspect-ratio: 4 / 5; }
.ph.-square { aspect-ratio: 1 / 1; }
.ph::before {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 12px; letter-spacing: 0.15em; color: #8a94a3;
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph:has(img)::before { display: none; } /* 写真が入ったら案内文は出さない */
.-dark .ph { background: #2d456c; border-color: #45608f; }
.-dark .ph::before { color: #92a6c8; }

/* ---- ヘッダー ---- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 34px; font-size: 13.5px; letter-spacing: 0.12em; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--navy); transition: width .3s;
}
.nav a:hover::after, .nav a.-current::after { width: 100%; }
.nav-toggle { display: none; }
.nav-btn { display: none; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav-btn span, .nav-btn span::before, .nav-btn span::after {
  content: ""; position: absolute; left: 8px; width: 24px; height: 1px; background: var(--ink); transition: .3s;
}
.nav-btn span { top: 20px; }
.nav-btn span::before { left: 0; top: -7px; }
.nav-btn span::after { left: 0; top: 7px; }

/* ---- トップの冒頭（写真1枚、ゆっくり拡大） ---- */
.hero {
  position: relative; height: 100vh; min-height: 560px;
  overflow: hidden;
  background: linear-gradient(160deg, #3b5a8c 0%, #22375a 60%, #172745 100%);
  color: var(--white);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 26s ease-out forwards;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.1); } }
.hero-veil { position: absolute; inset: 0; background: rgba(15, 28, 55, .38); } /* 暗い膜（種類は未決。ここを変える） */
.hero-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--header-h); padding-bottom: 24vh; /* 見出しを中央より上に */
}
.hero-en {
  font-family: var(--en);
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.1; letter-spacing: 0.04em;
  margin-bottom: 22px;
  animation: rise 1.4s .3s both;
}
.hero-en em { font-style: italic; color: #d3deef; }
.hero-ja {
  font-family: var(--serif);
  font-size: clamp(15px, 1.6vw, 20px);
  letter-spacing: 0.3em;
  animation: rise 1.4s .7s both;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.5; letter-spacing: 0.14em; font-weight: 500;
  margin-bottom: 0;
  animation: rise 1.4s .3s both;
}
.hero-sub {
  font-family: var(--serif);
  font-size: clamp(14px, 1.4vw, 18px);
  letter-spacing: 0.2em; color: rgba(255,255,255,.9);
  animation: rise 1.4s .7s both;
}
.hero-scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  font-family: var(--en); font-size: 11px; letter-spacing: 0.3em; color: rgba(255,255,255,.7);
}
.hero-scroll::after {
  content: ""; display: block; width: 1px; height: 40px; margin: 10px auto 0;
  background: rgba(255,255,255,.6); animation: drop 2s infinite;
}
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---- 下層ページの冒頭 ---- */
.page-head {
  position: relative; padding: calc(var(--header-h) + 88px) 0 72px;
  background: var(--navy-deep); color: var(--white);
  overflow: hidden;
}
.page-head .ph { position: absolute; inset: 0; aspect-ratio: auto; border: 0; background: transparent; }
.page-head .ph::before { content: none; } /* ページ上部は写真が無くても案内文を出さない */
.page-head .ph img { opacity: .55; filter: brightness(.6) saturate(.9); }
.page-head .wrap { position: relative; }
.page-head .label { color: rgba(255,255,255,.6); }
.page-head .heading { margin-bottom: 0; }
.crumb { font-size: 12px; letter-spacing: 0.1em; color: rgba(255,255,255,.55); margin-bottom: 26px; }
.crumb a:hover { color: var(--white); }

/* ---- カード（事業） ---- */
.svc { position: relative; display: block; overflow: hidden; color: var(--white); }
.svc .ph { aspect-ratio: 4 / 3; background: #2d456c; border: 0; }
.svc .ph::before { color: rgba(255,255,255,.35); }
.svc .ph img { transition: transform 1.2s ease; }
.svc:hover .ph img { transform: scale(1.05); }
.svc-body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 32px;
  background: linear-gradient(to top, rgba(20,34,62,.85), rgba(20,34,62,0));
}
.svc-body .label { color: rgba(255,255,255,.7); margin-bottom: 6px; }
.svc-body h3 { font-family: var(--serif); font-size: 26px; letter-spacing: 0.12em; margin-bottom: 8px; }
.svc-body p { font-size: 13.5px; margin: 0; color: rgba(255,255,255,.85); }

/* ---- 5区分タイル ---- */
.tile { display: block; text-align: center; }
.tile .ph { aspect-ratio: 1 / 1; margin-bottom: 14px; }
.tile h3 { font-family: var(--serif); font-size: 18px; letter-spacing: 0.15em; }
.tile small { display: block; font-family: var(--en); font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }

/* ---- 実績 ---- */
.work { display: block; }
.work .ph { margin-bottom: 14px; }
.work h3 { font-size: 15.5px; letter-spacing: 0.06em; margin-bottom: 4px; }
.work p { font-size: 12.5px; color: var(--muted); margin: 0; }
.voice { border-left: 2px solid var(--navy); padding: 4px 0 4px 18px; font-size: 13.5px; color: #444; }

/* ---- 表（会社概要など） ---- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th, .tbl td { padding: 18px 8px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.tbl th { width: 180px; font-weight: 500; color: var(--navy); letter-spacing: 0.1em; }
.timeline li { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.timeline time { font-family: var(--en); letter-spacing: 0.1em; color: var(--navy); }

/* ---- 外壁塗装：区分ナビと各区分 ---- */
.subnav {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.subnav ul { display: grid; grid-template-columns: repeat(5, 1fr); width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.subnav a {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 16px 12px 14px; border-left: 1px solid var(--line);
  transition: background .3s;
}
.subnav li:last-child a { border-right: 1px solid var(--line); }
.subnav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--navy); transform: scaleX(0); transition: transform .3s;
}
.subnav a:hover { background: var(--bg); }
.subnav a:hover::after { transform: scaleX(1); }
.subnav-num { font-family: var(--en); font-size: 11px; letter-spacing: 0.25em; color: var(--navy); }
.subnav-ja { font-family: var(--serif); font-size: 19px; letter-spacing: 0.15em; line-height: 1.3; }
.subnav-en { font-family: var(--en); font-size: 9.5px; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; }
.type { padding: 88px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 84px); }
.type:nth-child(even) { background: var(--bg); }
.type .num { font-family: var(--en); font-size: 13px; letter-spacing: 0.3em; color: var(--navy); margin-bottom: 8px; }
.type .heading { font-size: 30px; margin-bottom: 18px; }
.type .points { margin-top: 22px; display: grid; gap: 8px; }
.type .points li { position: relative; padding-left: 18px; font-size: 14px; }
.type .points li::before { content: ""; position: absolute; left: 0; top: 13px; width: 8px; height: 1px; background: var(--navy); }

/* ---- 流れ ---- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.flow li { background: var(--white); border: 1px solid var(--line); padding: 26px 20px; text-align: center; }
.flow li::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--en); font-size: 22px; color: var(--navy); margin-bottom: 8px; }
.flow h3 { font-size: 15px; letter-spacing: 0.1em; margin-bottom: 6px; }
.flow p { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ---- CTA（電話） ---- */
.cta { background: var(--bg); color: var(--ink); text-align: center; padding: 88px 0; border-top: 1px solid var(--line); }
.cta .label { color: var(--navy); }
.cta .tel { font-family: var(--en); font-size: clamp(34px, 5vw, 54px); letter-spacing: 0.06em; line-height: 1.2; margin: 12px 0 6px; color: var(--navy); }
.cta p { font-size: 13.5px; color: var(--muted); }

/* ---- フッター ---- */
.footer { background: #1b2a44; color: rgba(255,255,255,.75); padding: 64px 0 32px; font-size: 13px; }
.footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.footer .logo img { height: 30px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer address { font-style: normal; line-height: 1.9; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; align-content: start; }
.footer-nav a:hover { color: var(--white); }
.copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; font-family: var(--en); letter-spacing: 0.15em; font-size: 11px; color: rgba(255,255,255,.45); }

/* ---- 文章ページ ---- */
.prose { max-width: 800px; font-size: 14.5px; }
.prose h2 { font-family: var(--serif); font-size: 22px; letter-spacing: 0.1em; margin: 48px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.prose h3 { font-size: 16px; margin: 28px 0 8px; color: var(--navy); }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose li { margin-bottom: 4px; }

/* ---- スマホ ---- */
@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .split { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 32px; }
  .split.-rev > :first-child { order: 0; }
  .flow { grid-template-columns: 1fr 1fr; }
  .footer .wrap { grid-template-columns: 1fr; }
  .logo img { height: 28px; }
  .nav-btn { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; gap: 0;
    background: var(--white); padding: 24px; font-size: 16px;
    transform: translateX(100%); transition: transform .35s;
  }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle:checked ~ .nav { transform: none; }
  .nav-toggle:checked ~ .nav-btn span { background: transparent; }
  .nav-toggle:checked ~ .nav-btn span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked ~ .nav-btn span::after { top: 0; transform: rotate(-45deg); }
  .subnav ul { display: flex; overflow-x: auto; width: 100%; }
  .subnav a { white-space: nowrap; padding: 14px 16px; flex-direction: column; gap: 2px; }
  .subnav-ja { font-size: 15px; }
  .tbl th { width: 110px; }
    .hero-scroll { bottom: 64px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---- 会社案内：代表メッセージ（写真なし） ---- */
.greeting { position: relative; overflow: hidden; }
.greeting::before {
  content: "“"; position: absolute; left: 50%; top: 70px; transform: translateX(-50%);
  font-family: var(--en); font-size: 260px; line-height: 1; color: var(--navy); opacity: .07; pointer-events: none;
}
.greeting .wrap { position: relative; }
.greeting-body { max-width: 720px; margin: 0 auto; font-size: 15.5px; color: #444; text-align: center; }
.greeting-body p { margin-bottom: 1.4em; }
.greeting-sign { font-family: var(--serif); font-size: 20px; letter-spacing: 0.2em; color: var(--ink); margin-top: 32px; }
.greeting-sign small { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: 0.15em; color: var(--muted); margin-bottom: 4px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li { padding: 28px 12px; text-align: center; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; }
.facts-num { display: block; font-family: var(--en); font-size: 44px; line-height: 1; color: var(--navy); letter-spacing: 0.04em; }
.facts-label { display: block; font-size: 12.5px; letter-spacing: 0.12em; color: var(--muted); margin-top: 10px; }
@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .greeting::before { font-size: 180px; top: 50px; }
}

/* ---- トップ：会社紹介（写真なし） ---- */
.about-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: end; }
.about-head .heading { margin-bottom: 0; }
.about-head .btn { margin-top: 8px; }
.strengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 64px; border-top: 1px solid var(--line); }
.strengths li { position: relative; padding: 36px 28px 32px 0; border-bottom: 1px solid var(--line); }
.strengths li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.strengths-num { display: block; font-family: var(--en); font-size: 13px; letter-spacing: 0.3em; color: var(--navy); margin-bottom: 14px; }
.strengths h3 { font-family: var(--serif); font-size: 20px; letter-spacing: 0.1em; margin-bottom: 10px; }
.strengths p { font-size: 13.5px; color: #555; margin: 0; }
.about-area { margin-top: 28px; font-size: 13.5px; letter-spacing: 0.08em; color: var(--ink); }
.about-area span { display: inline-block; font-size: 11px; letter-spacing: 0.2em; color: var(--navy); border: 1px solid var(--navy); padding: 3px 10px; margin-right: 14px; }
@media (max-width: 900px) {
  .about-head { grid-template-columns: 1fr; gap: 24px; }
  .strengths { grid-template-columns: 1fr; }
  .strengths li, .strengths li + li { padding: 26px 0; border-left: 0; }
  .hero-title { letter-spacing: 0.08em; }
}
