/* ===== a 案: 全ページ共通 + ページ固有 統合CSS ===== */
/* 元 index/kensetsu/souzoku/contact.html の <style> を統合。重複ルールは1つに集約。 */

/* ---- 共通 + ページ固有ルール（出現順: index → kensetsu → souzoku → contact） ---- */
:root{
    --navy-ink: #0F2038;
    --navy-mid: #27436B;
    --paper: #FFFFFF;
    --paper-tint: #EEF0F3;
    --ink: #1B222C;
    --ink-sub: #58626F;
    --rule: #D3D8DF;
    --rule-strong: #AEB8C4;
    --accent: #C2571E;
    --accent-deep: #9A4312;
    --accent-pale: #F3DFCF;
    --maxw: 1140px;
    --font-body: "Zen Kaku Gothic New","Hiragino Sans","Yu Gothic UI","Noto Sans JP","Meiryo",sans-serif;
    --font-heading: "Shippori Mincho","Yu Mincho","YuMincho","Hiragino Mincho ProN","HiraMinProN-W6","MS Mincho",serif;
  }
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
    margin:0; font-family:var(--font-body); color:var(--ink); background:var(--paper);
    line-height:1.85; font-size:16px; -webkit-text-size-adjust:100%;
  }
img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3{ margin:0; font-weight:700; color:var(--navy-ink); font-family:var(--font-heading); letter-spacing:.02em; }
p{ margin:0; }
ul,ol{ margin:0; padding:0; list-style:none; }
.container{ max-width:var(--maxw); margin:0 auto; padding:0 20px; }
.visually-hidden{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.btn{
    display:inline-block; padding:15px 34px; font-weight:700; font-size:1rem;
    text-align:center; border:none; cursor:pointer; letter-spacing:.02em;
    transition:background .15s ease, transform .1s ease;
  }
.btn-primary{ background:var(--accent); color:#fff; }
.btn-primary:hover{ background:var(--accent-deep); }
.btn-primary:active{ transform:translateY(1px); }
.btn-primary:focus-visible{ outline:3px solid var(--accent-pale); outline-offset:3px; }
.btn-lg{ padding:17px 44px; font-size:1.05rem; }
.cta-center{ text-align:center; margin-top:40px; }
.site-header{ background:var(--navy-ink); position:sticky; top:0; z-index:100; border-bottom:2px solid var(--accent); }
.header-inner{ max-width:var(--maxw); margin:0 auto; padding:16px 20px; display:flex; align-items:center; justify-content:space-between; }
.logo{ color:#fff; font-size:1.1rem; font-weight:700; letter-spacing:.03em; }
.nav-toggle-input{ display:none; }
.nav-toggle-label{ display:none; flex-direction:column; justify-content:center; gap:5px; width:32px; height:28px; cursor:pointer; }
.nav-toggle-label span{ display:block; height:2px; background:#fff; border-radius:1px; }
.nav-menu{ display:flex; align-items:center; gap:26px; }
.nav-menu a{ color:#E4E8EF; font-size:.9rem; font-weight:500; white-space:nowrap; }
.nav-menu a:hover{ color:var(--accent); }
.nav-menu a:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }
.nav-cta{ background:var(--accent); color:#fff !important; padding:9px 20px; font-weight:700 !important; }
.nav-cta:hover{ background:var(--accent-deep); }
section{ padding:68px 0; }
.section-head{ margin-bottom:44px; display:flex; align-items:baseline; gap:16px; }
.section-tag{ font-size:.78rem; font-weight:700; letter-spacing:.22em; color:var(--accent-deep); white-space:nowrap; }
.section-head h2{ font-size:1.55rem; position:relative; padding-left:18px; border-left:4px solid var(--accent); }
.alt{ background:var(--paper-tint); }
.fv{ background:var(--navy-ink); padding:0; overflow:hidden; }
.fv-inner{ display:flex; flex-direction:column; }
.fv-text{ color:#fff; padding:56px 20px 48px; }
.fv-eyebrow{ display:inline-block; color:var(--accent); font-weight:700; font-size:.82rem; letter-spacing:.12em; margin-bottom:16px; border:1px solid rgba(255,255,255,.35); padding:5px 14px; }
.fv h1{ color:#fff; font-size:1.85rem; line-height:1.55; margin-bottom:20px; letter-spacing:.01em; }
.fv-sub{ color:#C6CEDA; font-size:.98rem; margin-bottom:28px; }
.fv-note{ margin-top:18px; color:#93A0B2; font-size:.8rem; }
.fv-photo{ width:100%; aspect-ratio:4/3; position:relative; overflow:hidden; }
.fv-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.placeholder-photo{
    position:relative; display:flex; align-items:center; justify-content:center;
    background:repeating-linear-gradient(120deg, var(--navy-mid) 0 20px, #1B3454 20px 40px);
    overflow:hidden; width:100%; height:100%;
  }
.placeholder-photo span{
    position:relative; z-index:2; color:#fff; background:rgba(15,32,56,.75);
    padding:8px 18px; font-size:.82rem; letter-spacing:.06em; border:1px solid rgba(255,255,255,.4);
  }
.reason-list{ display:flex; flex-direction:column; }
.reason-item{ display:flex; gap:22px; padding:26px 0; border-bottom:1px solid var(--rule); align-items:flex-start; }
.reason-item:first-child{ border-top:1px solid var(--rule); }
.reason-num{ flex-shrink:0; font-size:2.4rem; font-weight:700; color:var(--accent); line-height:1; font-variant-numeric:tabular-nums; width:64px; }
.reason-body h3{ font-size:1.08rem; margin-bottom:8px; }
.reason-body p{ color:var(--ink-sub); font-size:.92rem; }
.service-grid{ display:flex; flex-direction:column; gap:20px; }
.service-card{ background:#fff; border:1px solid var(--rule); padding:30px 26px; position:relative; }
.service-card::before{ content:""; position:absolute; top:0; left:0; width:6px; height:100%; background:var(--navy-mid); }
.service-card h3{ font-size:1.15rem; margin-bottom:12px; padding-left:14px; }
.service-card .lead{ color:var(--ink-sub); font-size:.92rem; margin-bottom:14px; padding-left:14px; }
.service-card .who{ font-size:.85rem; color:var(--navy-mid); border-top:1px solid var(--rule); padding:14px 0 0 14px; margin-bottom:16px; }
.service-link{ margin-left:14px; font-weight:700; color:var(--navy-ink); font-size:.9rem; border-bottom:2px solid var(--accent); padding-bottom:2px; }
.service-link::after{ content:" ›"; }
.doc-price{ background:#fff; border:1px solid var(--rule-strong); position:relative; padding:6px; }
.doc-price::before, .doc-price::after{ content:""; position:absolute; width:20px; height:20px; z-index:2; }
.doc-price::before{ top:-1px; left:-1px; border-top:3px solid var(--navy-ink); border-left:3px solid var(--navy-ink); }
.doc-price::after{ bottom:-1px; right:-1px; border-bottom:3px solid var(--navy-ink); border-right:3px solid var(--navy-ink); }
.tab-input{ position:absolute; opacity:0; pointer-events:none; }
.tab-labels{ display:flex; border-bottom:1px solid var(--rule); }
.tab-labels label{ flex:1; text-align:center; padding:16px 12px; font-weight:700; font-size:.92rem; color:var(--ink-sub); cursor:pointer; border-bottom:3px solid transparent; }
.tab-input:focus-visible + .tab-labels label{ outline:2px solid var(--accent); }
#tab-a-kensetsu:checked ~ .tab-labels label[for="tab-a-kensetsu"],
  #tab-a-souzoku:checked ~ .tab-labels label[for="tab-a-souzoku"]{ color:var(--navy-ink); border-bottom-color:var(--accent); }
.doc-sheet{padding:30px 26px 26px;}
#tab-a-kensetsu:checked ~ .doc-sheet.sheet-kensetsu{ display:block; }
#tab-a-souzoku:checked ~ .doc-sheet.sheet-souzoku{ display:block; }
.doc-badge{ display:inline-block; font-size:.72rem; font-weight:700; letter-spacing:.08em; color:var(--accent-deep); border:1px solid var(--accent); padding:4px 12px; margin-bottom:18px; }
.doc-title{ font-size:1.1rem; margin-bottom:18px; }
.doc-row{ display:flex; justify-content:space-between; align-items:baseline; gap:16px; padding:16px 0; border-bottom:1px dashed var(--rule); }
.doc-row:first-of-type{ border-top:1px dashed var(--rule); }
.doc-label{ font-size:.94rem; }
.doc-amount{ font-weight:700; color:var(--navy-ink); font-size:1.02rem; font-variant-numeric:tabular-nums; white-space:nowrap; }
.price-note{ color:var(--ink-sub); font-size:.82rem; margin:24px 0 16px; }
.price-links{ font-size:.9rem; margin-bottom:8px; }
.price-links a{ color:var(--navy-ink); font-weight:700; border-bottom:1px solid var(--navy-ink); }
.case-list{ display:flex; flex-direction:column; gap:0; }
.case-item{ display:flex; gap:20px; padding:26px 0; border-bottom:1px solid var(--rule); }
.case-item:first-child{ border-top:1px solid var(--rule); }
.case-num{ flex-shrink:0; width:6px; background:var(--navy-mid); }
.case-body h3{ font-size:1.02rem; margin-bottom:10px; line-height:1.6; }
.case-body p{ color:var(--ink-sub); font-size:.9rem; }
.case-disclaimer{ margin-top:22px; font-size:.8rem; color:var(--ink-sub); }
.greeting-inner{ display:flex; flex-direction:column; gap:30px; }
.greeting-photo{ width:100%; max-width:260px; aspect-ratio:3/4; overflow:hidden; }
.greeting-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.greeting-text{ max-width:640px; }
.greeting-role{ display:inline-block; color:var(--navy-ink); font-weight:700; font-size:.82rem; letter-spacing:.08em; border-bottom:2px solid var(--accent); padding-bottom:4px; margin-bottom:16px; }
.greeting-text p.body{ color:var(--ink); font-size:.95rem; margin-bottom:22px; }
.greeting-sign{ display:inline-block; font-weight:700; color:var(--navy-ink); border:1px solid var(--navy-ink); padding:8px 18px; font-size:.92rem; }
.route{ position:relative; padding:20px 0 6px; }
.route-line{ display:none; }
.route-steps{ display:flex; flex-direction:column; gap:0; }
.route-step{ display:flex; gap:18px; position:relative; padding-bottom:34px; }
.route-step:last-child{ padding-bottom:0; }
.route-step::before{ content:""; position:absolute; left:21px; top:44px; bottom:-6px; width:2px; background:var(--navy-mid); }
.route-step:last-child::before{ display:none; }
.route-node{ flex-shrink:0; width:44px; height:44px; border-radius:50%; background:var(--navy-ink); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:1.05rem; font-variant-numeric:tabular-nums; z-index:1; }
.route-body{ padding-top:4px; }
.route-body .route-label{ display:block; font-size:.72rem; font-weight:700; letter-spacing:.14em; color:var(--accent-deep); margin-bottom:4px; }
.route-body h3{ font-size:1.05rem; margin-bottom:6px; }
.route-body p{ font-size:.88rem; color:var(--ink-sub); }
.faq-list details{ border-bottom:1px solid var(--rule); }
.faq-list details:first-child{ border-top:1px solid var(--rule); }
.faq-list summary{ list-style:none; cursor:pointer; padding:20px 4px; font-weight:700; font-size:.96rem; display:flex; align-items:center; justify-content:space-between; gap:12px; color:var(--navy-ink); }
.faq-list summary::-webkit-details-marker{ display:none; }
.faq-list summary::after{ content:"+"; font-size:1.4rem; font-weight:400; color:var(--accent); flex-shrink:0; }
.faq-list details[open] summary::after{ content:"−"; }
.faq-list .faq-a{ padding:0 4px 22px; color:var(--ink-sub); font-size:.9rem; }
.faq-a.pending{ color:#9AA1AC; font-style:italic; }
.faq-links{ margin-top:22px; font-size:.88rem; color:var(--ink-sub); }
.cta-section{ background:var(--navy-ink); color:#fff; text-align:center; }
.cta-section h2{ color:#fff; font-size:1.55rem; margin-bottom:18px; }
.cta-section p{color:#C6CEDA; margin-bottom:30px; font-size:.95rem;}
.site-footer{ background:#0A1526; color:#B7C0CC; padding:48px 0 24px; font-size:.86rem; }
.footer-top{ display:flex; flex-direction:column; gap:26px; margin-bottom:28px; }
.footer-brand h3{ color:#fff; font-size:1.05rem; margin-bottom:10px; }
.footer-brand p{ margin-bottom:4px; }
.footer-nav{ display:flex; flex-wrap:wrap; gap:12px 20px; }
.footer-note{ border-top:1px solid #223349; padding-top:20px; text-align:center; }
.footer-note .disclaimer{ color:#fff; font-weight:700; font-size:.92rem; margin-bottom:10px; }
.footer-note .copyright{ color:#7A8494; font-size:.8rem; }
.breadcrumb{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:20px; font-size:.82rem; }
.breadcrumb a{ color:rgba(255,255,255,.7); }
.breadcrumb a:hover{ color:#fff; }
.crumb-sep{ width:8px; height:8px; border-radius:50%; background:var(--accent); display:inline-block; flex-shrink:0; }
.crumb-current{ color:var(--accent); font-weight:700; }
.sub-fv{ background:var(--navy-ink); padding:0; overflow:hidden; }
.sub-fv-inner{ display:flex; flex-direction:column; }
.sub-fv-text{ color:#fff; padding:40px 20px 32px; }
.sub-fv-text h1{ color:#fff; font-size:1.6rem; line-height:1.5; margin-bottom:16px; }
.sub-fv-lead{ color:#C6CEDA; font-size:.95rem; max-width:44em; }
.sub-fv-photo{ width:100%; aspect-ratio:4/3; }
.sub-fv-photo img{ width:100%; height:100%; object-fit:cover; background:repeating-linear-gradient(120deg, var(--navy-mid) 0 20px, #1B3454 20px 40px); }
.plain-list{ display:flex; flex-direction:column; max-width:720px; }
.plain-item{ display:flex; gap:14px; align-items:flex-start; padding:14px 0; border-bottom:1px solid var(--rule); }
.plain-item:first-child{ border-top:1px solid var(--rule); }
.plain-item::before{ content:""; flex-shrink:0; width:8px; height:8px; margin-top:9px; background:var(--accent); }
.plain-title{ font-weight:700; color:var(--ink); font-size:.96rem; }
.plain-desc{ color:var(--ink-sub); font-size:.86rem; margin-top:4px; }
.section-note{ margin-top:18px; color:var(--ink-sub); font-size:.82rem; max-width:720px; }
.doc-row-full{ flex-direction:column; align-items:stretch; gap:2px; }
.doc-row-full .doc-row-top{ display:flex; justify-content:space-between; align-items:baseline; gap:16px; }
.doc-remark{ font-size:.78rem; color:var(--ink-sub); }
.form-wrap{ max-width:640px; margin:0 auto; }
.form-group{ margin-bottom:22px; }
.form-group label{ display:block; font-size:.78rem; font-weight:700; letter-spacing:.03em; color:var(--ink-sub); margin-bottom:8px; }
.form-group input[type=text], .form-group input[type=email], .form-group select, .form-group textarea{
    width:100%; border:1px solid var(--rule); background:#fff; padding:13px 14px; font-size:.95rem; font-family:var(--font-body); color:var(--ink); border-radius:0;
  }
.form-group textarea{ resize:vertical; min-height:130px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus{ outline:none; border:2px solid var(--navy-ink); box-shadow:0 0 0 3px var(--accent-pale); padding:12px 13px; }
.form-consent{ display:flex; align-items:flex-start; gap:10px; margin-bottom:28px; font-size:.9rem; }
.form-consent input{ margin-top:5px; flex-shrink:0; }
.consent-note{ display:block; color:var(--ink-sub); font-size:.78rem; margin-top:4px; }
.form-msg{ margin-top:22px; border:2px dashed var(--navy-mid); padding:14px 20px; color:var(--navy-ink); font-weight:700; opacity:0; transition:opacity .2s ease; }
.form-msg.is-visible{ opacity:1; }
.form-note-static{ margin-top:18px; color:var(--ink-sub); font-size:.82rem; }

/* ---- ページ差分の吸収: 同一セレクタでページごとに内容が異なるものを
   body class (page-index / page-kensetsu / page-souzoku / page-contact) で
   スコープして再現。特異性を上げているため宣言順に依存しない。 ---- */
body.page-index .doc-sheet{display:none; padding:30px 26px 26px;}
body.page-kensetsu .cta-section p, body.page-souzoku .cta-section p{color:#C6CEDA; margin-bottom:30px; font-size:.95rem; max-width:44em; margin-left:auto; margin-right:auto;}

/* ---- レスポンシブ（メディアクエリ） ---- */
@media (min-width:768px){
  .fv-inner{ flex-direction:row-reverse; align-items:stretch; }
  .fv-photo{ flex:0 0 46%; aspect-ratio:auto; }
  .fv-text{ flex:1; padding:72px 44px 72px 20px; display:flex; flex-direction:column; justify-content:center; }
  .fv h1{ font-size:2.4rem; }
  .reason-list{ flex-direction:row; gap:0; }
  .reason-item{ flex:1; flex-direction:column; border-bottom:none; border-right:1px solid var(--rule); padding:0 30px; }
  .reason-item:last-child{ border-right:none; }
  .reason-item:first-child{ border-top:none; padding-top:0; }
  .reason-item:nth-child(2){ margin-top:36px; }
  .service-grid{ flex-direction:row; align-items:stretch; }
  .service-grid .service-card:first-child{ flex:1.15; }
  .service-grid .service-card:last-child{ flex:.85; }
  .greeting-inner{ flex-direction:row; align-items:flex-start; }
  .route-steps{ flex-direction:row; padding-top:30px; }
  .route-step{ flex:1; flex-direction:column; align-items:center; text-align:center; padding-bottom:0; }
  .route-step::before{ left:50%; top:22px; right:-50%; bottom:auto; width:auto; height:2px; transform:translateX(22px); }
  .route-step:last-child::before{ display:none; }
  .route-body{ padding-top:16px; }
  .case-list{ }
  .sub-fv-inner{ flex-direction:row-reverse; align-items:stretch; }
  .sub-fv-photo{ flex:0 0 46%; aspect-ratio:auto; }
  .sub-fv-text{ flex:1; padding:56px 44px 56px 20px; display:flex; flex-direction:column; justify-content:center; }
}
@media (max-width:767px){
  .nav-toggle-label{ display:flex; }
  .nav-menu{ position:absolute; top:100%; left:0; right:0; background:var(--navy-ink); flex-direction:column; align-items:stretch; gap:0; max-height:0; overflow:hidden; transition:max-height .25s ease; border-top:1px solid rgba(255,255,255,.12); }
  .nav-menu a{ padding:14px 20px; border-bottom:1px solid rgba(255,255,255,.08); }
  .nav-cta{ margin:14px 20px; text-align:center; }
  .nav-toggle-input:checked ~ .nav-menu{ max-height:480px; }
}
@media (min-width:1024px){
  .container{ padding:0 24px; }
  section{ padding:96px 0; }
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none !important; }
}
