@charset "UTF-8";
/* ============================================================
   内幸町国際総合法律事務所／弁護士 櫻町直樹　サイト共通スタイル
   site.css   案C「余白」 v1  2026-08-13

   ・全ページ（index.html および下層8ページ）がこの1本を読み込む。
   ・色・書体・余白の変更はこのファイルだけを直せば全ページに及ぶ。
   ・色は 生成り／白／墨／薄墨／細罫／藍／藍淡 の7色に限る。
     入力欄と選択肢の枠のみ WCAG 1.4.11（3:1）を満たすため #8C857A を用いる。
   ・Tailwind CDN と Font Awesome は使用しない（読み込まないこと）。
   ============================================================ */

/* ============================================================
   案C「余白」 — 静謐／和
   余白と1本の縦線で秩序を作る。枠と影を持たない。
   色は生成り・白・墨・薄墨・細罫・藍・藍淡のみ
   （入力欄の枠のみ WCAG 1.4.11 のため #8C857A を用いる）。
   ============================================================ */
:root{
  --paper:#F4F1EA;        /* 生成り（地） */
  --white:#FFFFFF;        /* 白（面） */
  --ink:#23201C;          /* 墨（見出し・主文字） */
  --sub:#6B655C;          /* 薄墨（副文） */
  --rule:#DCD6CA;         /* 細罫 */
  --indigo:#2E4A5C;       /* 藍（CTA・縦線・行頭記号・リンク） */
  --indigo-pale:#E8EDF0;  /* 藍淡（ごく薄い塗り分け） */
  --input-line:#8C857A;   /* 入力欄の枠（対背景 3.2:1／対白 3.6:1） */
  --col:980px;            /* 中央寄せのカラム（2列化に伴い拡げた） */
  --gutter:1.5rem;
  --sec:2.9rem;           /* セクション上下余白（隣接で5.8rem） */
  --serif:"Noto Serif JP","Hiragino Mincho ProN","Yu Mincho",
    "Noto Serif CJK JP",serif;
  --sans:"Noto Sans JP","Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic",
    "Noto Sans CJK JP",system-ui,-apple-system,"Segoe UI",sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--paper)}
body{margin:0;background:var(--paper);color:var(--ink);
  font-family:var(--sans);font-size:1rem;font-weight:400;
  line-height:1.92;letter-spacing:.03em;
  font-feature-settings:"palt" 1;-webkit-font-smoothing:antialiased;
  /* anywhere は金額や数値を行の途中で割ってしまう（例「5万5000／円」）。
     長いURL等は break-word でも折り返るため、こちらを既定とする。 */
  overflow-wrap:break-word}

/* 割ってはいけない文字列に付ける（金額・電話番号・法令の条番号など） */
.nowrap{white-space:nowrap}
img{display:block;max-width:100%;height:auto}
h1,h2,h3{font-family:var(--serif);font-weight:600;color:var(--ink);
  letter-spacing:.05em;line-height:1.7}
p{margin:0 0 1.05rem}
p:last-child{margin-bottom:0}
ul{margin:0;padding:0;list-style:none}
a{color:var(--indigo);text-decoration-thickness:1px;text-underline-offset:.25em}
a:hover{color:var(--ink)}
:focus-visible{outline:2px solid var(--indigo);outline-offset:3px;border-radius:2px}

.skip-link{position:absolute;top:0;left:-9999px;z-index:1000;
  padding:.9rem 1.2rem;background:var(--indigo);color:#fff;text-decoration:none}
.skip-link:focus{top:1rem;left:1rem}

/* 共通：狭いカラム／セクション */
.col{max-width:var(--col);margin:0 auto;padding:0 var(--gutter)}
.sec{padding:var(--sec) 0}
.sec[id],.col[id],.prose[id],[id].note{scroll-margin-top:5.5rem}

/* 見出しの上に立てる細い縦線（案Cの目印） */
.sec-head{display:flex;align-items:center;gap:.9rem;margin:0 0 1.7rem}
.sec-head::before{content:"";flex:0 0 1px;align-self:stretch;
  background:var(--indigo)}
.sec-head h2{margin:0;font-size:clamp(1.22rem,2vw,1.5rem)}

.label{font-family:var(--sans);font-weight:500;font-size:.72rem;
  letter-spacing:.2em;color:var(--sub);line-height:1.9}

/* ===== ヘッダー ===== */
.topbar{background:var(--paper)}
.topbar__inner{display:flex;align-items:flex-end;justify-content:space-between;
  gap:1.5rem;max-width:var(--col);margin:0 auto;padding:1.6rem var(--gutter) 1.35rem}
.brand{font-family:var(--serif);font-weight:600;font-size:1.06rem;
  letter-spacing:.14em;line-height:1.7;color:var(--ink);text-decoration:none}
.brand span{display:block;margin-top:.15rem;font-family:var(--sans);font-weight:500;
  font-size:.68rem;letter-spacing:.2em;color:var(--sub)}
.brand:hover{color:var(--indigo)}
.tel{margin:0;text-align:right;line-height:1.6}
.tel a{display:block;padding:.62rem 0 .38rem;font-family:var(--serif);font-weight:600;
  font-size:1.16rem;letter-spacing:.09em;color:var(--ink);text-decoration:none}
.tel a:hover{color:var(--indigo)}
.tel small{display:block;font-size:.68rem;font-weight:500;letter-spacing:.14em;
  color:var(--sub);line-height:1.9}

/* ===== グローバルナビ ===== */
.gnav{position:sticky;top:0;z-index:60;background:var(--paper);
  border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.gnav__inner{display:flex;align-items:center;max-width:var(--col);margin:0 auto;
  padding:0 var(--gutter);overflow-x:auto;scrollbar-width:none;
  -webkit-overflow-scrolling:touch}
.gnav__inner::-webkit-scrollbar{display:none}
.gnav a{display:inline-flex;align-items:center;min-height:44px;padding:.7rem .58rem;
  font-size:.77rem;font-weight:500;letter-spacing:.08em;color:var(--ink);
  text-decoration:none;white-space:nowrap;transition:color .2s ease}
.gnav a:hover{color:var(--indigo)}
.gnav__sep{flex:0 0 auto;width:1px;height:1.1rem;margin:0 .6rem;background:var(--rule)}
.gnav a.gnav__cta{color:var(--indigo)}
.gnav a.gnav__cta:hover{color:var(--ink)}

/* ===== ヒーロー ===== */
.hero{position:relative;background:var(--paper)}
.hero__body{position:relative;max-width:var(--col);margin:0 auto;
  padding:2.4rem var(--gutter) 2.2rem}
.hero__body>*{max-width:31rem}
/* 看板写真の下に置く肩書き行（1025px以上でも横組みのまま） */
.hero__eyebrow{margin:.75rem 0 0;padding:0 var(--gutter);font-size:.74rem;
  font-weight:500;letter-spacing:.16em;line-height:1.9;color:var(--sub)}
.hero h1{margin:0 0 1.2rem;font-size:clamp(1.4rem,2.6vw,2.05rem);
  line-height:1.85;letter-spacing:.07em}
.hero__motto{margin:0 0 1.4rem;font-family:var(--serif);font-weight:600;
  font-size:.74rem;letter-spacing:.28em;color:var(--indigo);line-height:1.9}
.hero__tags{display:flex;flex-wrap:wrap;align-items:center;gap:.1rem 1.6rem;
  margin:0 0 1.6rem}
.hero__tags li{font-size:.79rem;font-weight:500;letter-spacing:.1em;
  color:var(--sub);line-height:2}
.hero__cta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;
  max-width:30rem}
.hero__areas{margin:1.3rem 0 0;font-size:.8rem;line-height:1.9;color:var(--sub)}
.hero__media{position:relative;overflow:hidden;background:var(--rule);
  aspect-ratio:21/9}
.hero__media picture{display:block;height:100%}
.hero__media img{width:100%;height:100%;object-fit:cover;object-position:60% 42%;
  filter:saturate(.7) brightness(1.03)}

/* ===== ボタン ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;
  min-height:50px;padding:.7rem 1.4rem;border:1px solid transparent;border-radius:2px;
  font-family:var(--sans);font-size:.88rem;font-weight:500;letter-spacing:.14em;
  text-decoration:none;text-align:center;
  transition:background-color .25s ease,color .25s ease,border-color .25s ease}
.btn--fill{background:var(--indigo);color:#fff}
.btn--fill:hover{background:var(--ink);color:#fff}
.btn--line{border-color:var(--indigo);color:var(--indigo);background:transparent}
.btn--line:hover{background:var(--indigo-pale);color:var(--indigo)}
.btn--paper{background:#fff;color:var(--indigo)}
/* 小さめ。絞り込みの解除など、主要動線でない操作に使う */
.btn--sm{min-height:44px;padding:.5rem 1.1rem;font-size:.8rem;letter-spacing:.1em}
.btn--paper:hover{background:var(--indigo-pale);color:var(--indigo)}

/* 藍の細い横線を行頭記号にする */
.mark-list li{position:relative;padding-left:1.7rem;margin-bottom:.55rem;
  color:var(--sub);line-height:1.9}
.mark-list li:last-child{margin-bottom:0}
.mark-list li::before{content:"";position:absolute;left:0;top:1.02em;
  width:12px;height:1px;background:var(--indigo)}
/* 項目がリンク1本だけのときは、指で押せる高さを確保する */
.mark-list li>a:first-child:last-child{display:inline-flex;align-items:center;
  min-height:44px}
/* 段落が丸ごとリンク1本のときも同じ扱いにする（連絡先・参考リンクなど）。
   .prose の外（.note や .small-note の中）にも置かれるため限定しない。 */
p>a:first-child:last-child{display:inline-flex;align-items:center;min-height:44px}

/* ===== 新着 ===== */
.news .col{display:flex;flex-wrap:wrap;align-items:center;gap:0 1.3rem}
.news__tag{flex:0 0 auto}
.news__date{flex:0 0 auto;font-size:.76rem;letter-spacing:.12em;color:var(--sub)}
.news__title{flex:1 1 16rem;min-width:0;padding:.6rem 0;font-size:.92rem;
  color:var(--ink);text-decoration:none;line-height:1.95}
.news__title:hover{color:var(--indigo);text-decoration:underline}
.news__more{flex:0 0 auto;padding:.75rem 0;font-size:.76rem;letter-spacing:.12em;
  text-decoration:none}

/* ===== 相談4項目（白い面・枠なし・細罫のみ） ===== */
.needs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  background:var(--white)}
.need{display:block;padding:1.6rem 1.6rem;color:var(--ink);text-decoration:none;
  transition:background-color .25s ease}
.need:nth-child(n+3){border-top:1px solid var(--rule)}
.need:nth-child(even){border-left:1px solid var(--rule)}
.need:hover{background:var(--indigo-pale)}
.need h3{position:relative;margin:0 0 .6rem;padding-left:1.1rem;font-size:1rem;
  letter-spacing:.07em}
.need h3::before{content:"";position:absolute;left:0;top:.78em;
  width:4px;height:4px;border-radius:50%;background:var(--indigo)}
.need p{margin:0 0 .8rem;font-size:.85rem;line-height:1.9;color:var(--sub)}
.need__go{display:block;font-size:.75rem;font-weight:500;letter-spacing:.16em;
  color:var(--indigo)}

/* ===== 中間CTA ===== */
.midcta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:1.2rem 2.2rem;padding:1.7rem clamp(1.3rem,3.5vw,2.2rem);border-radius:2px;
  background:var(--indigo);color:#fff}
.midcta__text{flex:1 1 22rem;margin:0}
.midcta__text strong{display:block;margin-bottom:.4rem;font-family:var(--serif);
  font-weight:600;font-size:1.02rem;letter-spacing:.07em;line-height:1.8;color:#fff}
.midcta__text span{display:block;font-size:.83rem;line-height:1.9;
  color:var(--indigo-pale)}
.midcta__act{display:flex;flex-wrap:wrap;align-items:center;gap:1.2rem}
.midcta__tel{font-family:var(--serif);font-weight:600;font-size:1.22rem;
  letter-spacing:.09em;color:#fff;text-decoration:none;white-space:nowrap}
.midcta__tel:hover{color:var(--indigo-pale)}
.midcta__tel small{display:block;font-family:var(--sans);font-weight:500;
  font-size:.68rem;letter-spacing:.14em;color:var(--indigo-pale);line-height:2.1}

/* ===== 本文ブロック ===== */
.prose p{max-width:38em;font-size:.94rem;line-height:1.9;color:var(--sub)}
.prose .mark-list{margin:1.1rem 0}
.prose .mark-list li,.form-notice li,.faq__answer p,.contact-lead{max-width:40em}
.prose .link-go{display:inline-flex;align-items:center;min-height:44px;
  padding:.4rem 0;font-size:.82rem;font-weight:500;letter-spacing:.12em;
  text-decoration:none}
.prose .link-go:hover{text-decoration:underline}

/* ===== 写真（従来比およそ4分の1の面積に落とす） ===== */
.shot{max-width:19rem;margin:0 0 1.2rem;overflow:hidden;
  background:var(--rule);aspect-ratio:3/2}
.shot img{width:100%;height:100%;object-fit:cover;
  filter:saturate(.72) brightness(1.03)}
.shot--room img{object-position:50% 55%}
.band-cta{margin-top:1.4rem}

/* ===== 2つのセクションを横に並べる（961px 以上） ===== */
.pair{display:block}
@media (min-width:961px){
  .pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:3.4rem;align-items:start;
    max-width:var(--col);margin:0 auto;padding:0 var(--gutter)}
  .pair>.sec{padding:var(--sec) 0}
  .pair>.sec>.col{max-width:none;margin:0;padding:0}
  /* 見出しは列幅に合わせて一段落とす（「案件」だけが行末に落ちるのを防ぐ） */
  .pair .sec-head h2{font-size:clamp(1.1rem,1.55vw,1.28rem)}
  .pair .prose p{max-width:none}
  .pair .shot{max-width:none}
}

/* ===== 写真を本文の横に置く（961px 以上）
   721〜960px では本文列が痩せて年表などが崩れるため、写真は本文の上に置く ===== */
@media (min-width:961px){
  .sec--aside .col{display:grid;grid-template-columns:minmax(0,1fr) 21rem;
    column-gap:2.6rem;align-items:start}
  .sec--aside .col>*{grid-column:1}
  .sec--aside .sec-head{grid-column:1 / -1}
  .sec--aside .shot{grid-column:2;grid-row:2 / span 30;max-width:none;margin:0}
  .sec--aside .prose p{max-width:none}
}

/* ===== FAQ を2列に折る（961px 以上） ===== */
@media (min-width:961px){
  .faq__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:3.4rem}
  .faq__list details{align-self:start}
}

/* ===== FAQ ===== */
.faq details{border-top:1px solid var(--rule)}
.faq details:last-of-type{border-bottom:1px solid var(--rule)}
.faq summary{position:relative;padding:1rem 2.4rem 1rem 0;cursor:pointer;
  list-style:none;font-family:var(--serif);font-weight:600;font-size:.94rem;
  letter-spacing:.05em;line-height:1.8;color:var(--ink)}
.faq summary::-webkit-details-marker{display:none}
.faq summary:hover{color:var(--indigo)}
.faq summary::before,.faq summary::after{content:"";position:absolute;
  top:50%;background:var(--indigo)}
.faq summary::before{right:0;width:14px;height:1px;transform:translateY(-50%)}
.faq summary::after{right:6.5px;width:1px;height:14px;transform:translateY(-50%);
  transition:opacity .2s ease}
.faq details[open] summary::after{opacity:0}
.faq__answer{padding:0 2.4rem 1.3rem 0}
.faq__answer p{margin:0 0 .8rem;font-size:.88rem;line-height:1.9;color:var(--sub)}
.faq__answer p:last-child{margin-bottom:0}

/* ===== フォーム ===== */
.hidden{display:none !important}
.contact-lead{margin:0 0 1.4rem;font-size:.94rem;line-height:1.9;color:var(--sub)}
.form-notice{margin:0 0 1.8rem;padding:1.3rem clamp(1.2rem,3vw,1.6rem);
  border-radius:2px;background:var(--indigo-pale)}
.form-notice h3{margin:0 0 .7rem;font-size:.92rem;letter-spacing:.1em}
.form-notice li{position:relative;padding-left:1.6rem;margin-bottom:.45rem;
  font-size:.83rem;line-height:1.9;color:var(--ink)}
.form-notice li:last-child{margin-bottom:0}
.form-notice li::before{content:"";position:absolute;left:0;top:1.02em;
  width:10px;height:1px;background:var(--indigo)}
.contact-form fieldset{margin:0;padding:0;border:0}
.form-stack{display:grid;gap:1.5rem}
.form-branch{display:grid;gap:1.5rem}
.form-grid{display:grid;gap:1.2rem}
.form-grid--two{grid-template-columns:repeat(2,minmax(0,1fr))}
.form-field{min-width:0}
.form-label,.form-legend{display:block;margin-bottom:.45rem;padding:0;
  font-size:.78rem;font-weight:500;letter-spacing:.14em;line-height:1.8;
  color:var(--ink)}
.required-label::after{content:"必須";display:inline-block;margin-left:.7rem;
  font-size:.66rem;font-weight:500;letter-spacing:.16em;color:var(--indigo);
  vertical-align:.05em}
.form-control{width:100%;min-height:50px;padding:.8rem .9rem;
  border:1px solid var(--input-line);border-radius:2px;background:var(--white);
  color:var(--ink);font-family:var(--sans);font-size:.94rem;letter-spacing:.03em;
  line-height:1.8}
/* rows 属性のままだと入力欄が縦に伸びすぎるため、高さを抑える（伸ばすのは利用者に委ねる） */
textarea.form-control{min-height:88px;height:6.6em;line-height:1.85;resize:vertical}
#message{height:9.4em}
#pro_message{height:8.4em}
select.form-control{min-height:50px}
.form-control::placeholder{color:var(--sub);opacity:1}
.form-control:focus{border-color:var(--indigo);outline:2px solid var(--indigo);
  outline-offset:-2px}
.form-help{margin:.4rem 0 0;font-size:.78rem;line-height:1.8;color:var(--sub)}
.user-type-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}
.user-type-card{display:flex;align-items:flex-start;gap:.85rem;min-height:48px;
  padding:.9rem 1rem;border:1px solid var(--input-line);border-radius:2px;
  background:var(--white);cursor:pointer;
  transition:border-color .2s ease,background-color .2s ease}
.user-type-card:hover{border-color:var(--indigo)}
.user-type-card.is-selected,.user-type-card:has(input:checked){
  border-color:var(--indigo);background:var(--indigo-pale);
  box-shadow:inset 0 0 0 1px var(--indigo)}
.user-type-card input{flex:0 0 auto;width:1.05rem;height:1.05rem;margin:.5rem 0 0;
  accent-color:var(--indigo)}
.user-type-title{display:block;font-size:.9rem;font-weight:500;letter-spacing:.08em;
  color:var(--ink)}
.user-type-note{display:block;margin-top:.35rem;font-size:.78rem;letter-spacing:.04em;
  line-height:1.95;color:var(--sub)}
.branch-heading{position:relative;margin:0;padding-left:1.6rem;
  font-size:.78rem;font-weight:500;letter-spacing:.18em;color:var(--ink)}
.branch-heading::before{content:"";position:absolute;left:0;top:1.02em;
  width:12px;height:1px;background:var(--indigo)}
.privacy-box{max-height:150px;overflow-y:auto;padding:1.1rem;
  border:1px solid var(--input-line);border-radius:2px;background:var(--white);
  font-size:.8rem;line-height:2}
.privacy-box h3{margin:0 0 1rem;font-size:.86rem;letter-spacing:.1em}
.privacy-box p{margin:0 0 1rem;color:var(--sub)}
.privacy-box p:last-child{margin-bottom:0}
.privacy-consent{display:flex;align-items:flex-start;gap:.8rem;
  min-height:48px;margin-top:.8rem;padding:.5rem 0;cursor:pointer;
  font-size:.88rem;letter-spacing:.06em}
.privacy-consent input{flex:0 0 auto;width:1.05rem;height:1.05rem;margin:.55rem 0 0;
  accent-color:var(--indigo)}
.form-submit{padding-top:.6rem}
.form-submit button{display:inline-flex;align-items:center;justify-content:center;
  width:100%;max-width:22rem;min-height:54px;padding:.8rem 1.7rem;
  border:1px solid var(--indigo);border-radius:2px;background:var(--indigo);
  color:#fff;font-family:var(--sans);font-size:.88rem;font-weight:500;
  letter-spacing:.14em;cursor:pointer;
  transition:background-color .25s ease,border-color .25s ease,color .25s ease}
.form-submit button:hover{background:var(--ink);border-color:var(--ink)}
.form-submit button:disabled{background:transparent;border-color:var(--input-line);
  color:var(--sub);cursor:not-allowed}
.form-message{display:none;margin-top:2rem;padding:1.5rem 1.6rem;border-radius:2px;
  font-size:.9rem;line-height:2}
.form-message.is-visible{display:block}
.form-message--success{background:var(--indigo-pale);color:var(--ink);
  box-shadow:inset 2px 0 0 var(--indigo)}
.form-message--error{background:var(--white);color:var(--ink);font-weight:500;
  box-shadow:inset 3px 0 0 var(--ink),inset 0 0 0 1px var(--rule)}
.form-message__action{display:inline-flex;align-items:center;justify-content:center;
  min-height:48px;margin-top:1.2rem;padding:.7rem 1.5rem;
  border:1px solid var(--indigo);border-radius:2px;background:transparent;
  color:var(--indigo);font-family:var(--sans);font-size:.84rem;font-weight:500;
  letter-spacing:.12em;cursor:pointer;transition:background-color .25s ease}
.form-message__action:hover{background:var(--indigo-pale)}

/* ===== モバイル固定バー・フッター ===== */
.mobile-actions{display:none}
.site-footer{margin-top:var(--sec);border-top:1px solid var(--rule);
  background:var(--paper)}
.site-footer .col{padding-top:1.6rem;padding-bottom:2rem;text-align:center}
.site-footer p{margin:0 0 .4rem;font-size:.78rem;letter-spacing:.12em;color:var(--sub)}
/* 住所は1行に収め、狭い画面でも読点位置で折り返す */
.site-footer__addr{margin-bottom:.7rem;color:var(--ink);letter-spacing:.08em;
  line-height:1.9;overflow-wrap:normal;word-break:keep-all}
.site-footer p:last-child{margin-bottom:0}
.site-footer a{display:inline-flex;align-items:center;min-height:44px;
  padding:.6rem .4rem;color:var(--indigo);text-decoration:none}
.site-footer a:hover{text-decoration:underline}

/* ===== 先頭へ戻る ===== */
.to-top{position:fixed;right:1.6rem;bottom:1.6rem;z-index:110;
  display:inline-flex;flex-direction:column;align-items:center;justify-content:center;
  gap:.28rem;width:52px;height:52px;padding:0;
  border:1px solid var(--indigo);border-radius:2px;background:var(--paper);
  color:var(--indigo);font-family:var(--sans);font-size:.58rem;font-weight:500;
  letter-spacing:.08em;line-height:1.4;cursor:pointer;
  opacity:0;visibility:hidden;transform:translateY(8px);
  transition:opacity .3s ease,transform .3s ease,visibility .3s ease,
    background-color .2s ease,color .2s ease}
.to-top.is-shown{opacity:1;visibility:visible;transform:none}
.to-top:hover{background:var(--indigo);color:#fff}
.to-top:hover .to-top__arrow{border-color:#fff}
.to-top__arrow{width:9px;height:9px;margin-top:.2rem;
  border-top:1px solid var(--indigo);border-right:1px solid var(--indigo);
  transform:rotate(-45deg);transition:border-color .2s ease}
@media (max-width:1000px){
  /* モバイルの固定バーに重ならない高さに置く。背景は不透過にして本文と分ける */
  .to-top{right:1rem;bottom:calc(82px + .7rem);width:46px;height:46px;
    background:var(--paper);box-shadow:0 0 0 4px var(--paper)}
}
@media print{.to-top{display:none}}

/* ===== 立ち上がり（JSが動かない環境では常に表示） ===== */
.reveal{opacity:1}
.js-reveal .reveal{opacity:0;transform:translateY(20px);
  transition:opacity .6s ease,transform .6s ease}
.js-reveal .reveal.is-visible{opacity:1;transform:none}

/* ===== 1001px 以上：ナビは中央に置き、折り返しても切れないようにする ===== */
@media (min-width:1001px){
  .gnav__inner{max-width:1040px;flex-wrap:wrap;justify-content:center;
    overflow:visible}
}

/* ===== 1025px 以上：ヒーローを2枚に割り、縦組みを1本立てる ===== */
@media (min-width:1025px){
  /* 本文カラムの左端に揃える（(画面幅 - 860)/2 + 左余白） */
  /* 看板の文字が切れないよう、写真の枠を横に広げ縦を詰める（幅1.2倍／高さ0.8倍） */
  .hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,43.2%);
    padding-left:max(var(--gutter),calc((100% - var(--col)) / 2 + var(--gutter)))}
  .hero__body{display:flex;flex-direction:column;justify-content:center;
    max-width:none;margin:0;min-height:min(58vh,440px);padding:3rem 3.6rem 3rem 0}
  .hero__aside{display:flex;flex-direction:column;justify-content:center;height:100%}
  .hero__media{aspect-ratio:auto;height:80%}
  .hero__eyebrow{padding:0;font-size:.73rem;letter-spacing:.16em}
}
/* ===== 1000px 以下：固定バー ===== */
@media (max-width:1000px){
  body{padding-bottom:82px}
  .gnav a.gnav__cta{display:none}
  .mobile-actions{position:fixed;right:0;bottom:0;left:0;z-index:100;
    display:grid;grid-template-columns:.72fr 1.14fr 1.14fr;gap:.55rem;
    padding:.6rem .75rem;border-top:1px solid var(--rule);
    background:var(--paper)}
  .mobile-actions a{display:inline-flex;align-items:center;justify-content:center;
    min-height:48px;border:1px solid var(--indigo);border-radius:2px;
    background:transparent;color:var(--indigo);font-size:.8rem;font-weight:500;
    letter-spacing:.08em;text-decoration:none}
  .mobile-actions a.is-main{background:var(--indigo);color:#fff}
  /* 最下部まで送ったとき、著作権表示が「先頭へ」ボタンに隠れないよう空きを取る */
  .site-footer .col{padding-bottom:5.4rem}
}

/* ===== 720px 以下：余白を詰める ===== */
@media (max-width:720px){
  :root{--gutter:1.25rem;--sec:1.7rem}
  body{line-height:1.9}
  .topbar__inner{flex-direction:column;align-items:flex-start;gap:.2rem;
    padding-top:1rem;padding-bottom:.8rem}
  .tel{text-align:left}
  .tel a{padding:.55rem 0 .5rem}   /* タップ領域44px確保 */
  .sec-head{gap:.75rem;margin-bottom:1.3rem}
  .hero__body{padding:1.8rem var(--gutter) 1.7rem}
  .hero h1{line-height:1.8}
  .hero__cta{grid-template-columns:1fr;max-width:none}
  .needs{grid-template-columns:1fr}
  .need{padding:1.2rem 1.1rem}
  .need:nth-child(n+2){border-top:1px solid var(--rule)}
  .need:nth-child(even){border-left:0}
  .form-grid--two,.user-type-grid{grid-template-columns:1fr}
  .form-stack,.form-branch{gap:1.3rem}
  .midcta{padding:1.4rem 1.2rem}
  .midcta__act{gap:.9rem}
  .midcta__act .btn{width:100%}
  .faq summary{padding-right:2.2rem}
  .faq__answer{padding-right:0}
  /* 写真は幅の約55%に落とす（従来比およそ4分の1の面積） */
  .shot{max-width:55%;aspect-ratio:3/2}
  .form-submit button{max-width:none}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none !important;animation:none !important}
  .js-reveal .reveal{opacity:1;transform:none}
}

/* 印刷時は立ち上がりを無効化する（未表示のまま印刷されるのを防ぐ） */
@media print{
  .js-reveal .reveal{opacity:1 !important;transform:none !important}
}

/* ============================================================
   ここから下は下層ページ用の部品。
   トップページ（index.html）では使わないが、
   共通CSS1本で運用するため同じファイルに置く。
   ============================================================ */

/* ===== 下層ページの冒頭（写真を持たない見出し部） ===== */
.page-hero{background:var(--paper);border-bottom:1px solid var(--rule)}
.page-hero .col{padding-top:2.4rem;padding-bottom:2.2rem}
.page-hero__label{margin:0 0 1rem;font-size:.72rem;font-weight:500;
  letter-spacing:.2em;color:var(--sub);line-height:1.9}
.page-hero h1{position:relative;margin:0;padding-left:.9rem;
  font-size:clamp(1.32rem,2.4vw,1.86rem);line-height:1.75;letter-spacing:.07em}
.page-hero h1::before{content:"";position:absolute;top:0;bottom:0;left:0;
  width:1px;background:var(--indigo)}
.page-hero__lead{margin:1.2rem 0 0;max-width:40em;font-size:.94rem;
  line-height:1.9;color:var(--sub)}
.page-hero__meta{margin:1.1rem 0 0;font-size:.78rem;letter-spacing:.1em;color:var(--sub)}

/* ===== パンくず ===== */
.breadcrumb{background:var(--paper)}
.breadcrumb ol{display:flex;flex-wrap:wrap;align-items:center;gap:.1rem .55rem;
  margin:0;padding:0;list-style:none;font-size:.74rem;letter-spacing:.08em;
  line-height:1.9;color:var(--sub)}
.breadcrumb li{max-width:none}
.breadcrumb li+li::before{content:"／";margin-right:.55rem;color:var(--rule)}
.breadcrumb a{display:inline-flex;align-items:center;min-height:44px;
  color:var(--indigo);text-decoration:none}
.breadcrumb a:hover{text-decoration:underline}
.breadcrumb [aria-current="page"]{display:inline-flex;align-items:center;
  min-height:44px;color:var(--ink)}

/* ===== 本文（prose の拡張） ===== */
.prose h3{margin:2.2rem 0 .9rem;font-size:1.04rem;letter-spacing:.06em}
.prose h3:first-child{margin-top:0}
.prose h4{margin:1.6rem 0 .6rem;font-family:var(--sans);font-size:.9rem;
  font-weight:500;letter-spacing:.12em;color:var(--ink)}
.prose ol:not([class]){margin:1.1rem 0;padding-left:1.6rem;list-style:decimal}
.prose ol:not([class])>li{margin-bottom:.55rem;color:var(--sub);line-height:1.9}
.prose ul:not([class]){margin:1.1rem 0;padding-left:1.4rem;list-style:disc}
.prose ul:not([class])>li{margin-bottom:.5rem;color:var(--sub)}
.prose strong{font-weight:500;color:var(--ink)}
/* .prose a は書かない。素の a{color:var(--indigo)} で足りるうえ、
   .btn--fill / .btn--paper の文字色を上書きして文字が消える。 */
.prose dl{margin:1.1rem 0}
.prose dt{margin-top:1.1rem;font-weight:500;color:var(--ink);letter-spacing:.06em}
.prose dt:first-child{margin-top:0}
.prose dd{margin:.3rem 0 0;color:var(--sub);font-size:.94rem;line-height:1.9}

/* 小さめの注記（本文より一段弱い補足） */
.small-note{margin:.8rem 0 0;font-size:.8rem;line-height:1.85;color:var(--sub)}
.small-note:first-child{margin-top:0}

/* 節の区切り（罫1本） */
.rule{height:1px;margin:2.6rem 0;border:0;background:var(--rule)}

/* ===== 汎用カード ===== */
.card{padding:1.5rem 1.6rem;background:var(--white)}
.card>:last-child{margin-bottom:0}
.card h3{margin-top:0}

/* ===== 注記・要点の囲み ===== */
.note{margin:1.4rem 0;padding:1.2rem 1.4rem;background:var(--indigo-pale);
  border-radius:2px}
.note>:last-child{margin-bottom:0}
.note h3,.note h4{margin-top:0;color:var(--ink)}
.note p,.note li{color:var(--ink);font-size:.9rem}
.note--plain{background:var(--white)}

/* ===== 目次 ===== */
.toc{margin:1.6rem 0;padding:1.4rem 1.6rem;background:var(--white)}
.toc h2,.toc h3{margin:0 0 .9rem;font-size:.88rem;font-family:var(--sans);
  font-weight:500;letter-spacing:.16em;color:var(--ink)}
.toc ol,.toc ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));
  gap:.1rem 2rem;margin:0;padding:0;list-style:none;counter-reset:toc}
.toc li{max-width:none;counter-increment:toc}
.toc a{display:block;padding:.62rem 0;font-size:.87rem;line-height:1.8;
  color:var(--indigo);text-decoration:none}
.toc a:hover{color:var(--ink);text-decoration:underline}
.toc a::before{content:counter(toc) "．";margin-right:.4rem;color:var(--sub);
  font-variant-numeric:tabular-nums}
/* .prose の中に目次を置いても既定のリスト装飾が乗らないようにする */
.prose .toc ol,.prose .toc ul{margin:0;padding:0;list-style:none}
.prose .toc li{margin-bottom:0;color:inherit}

/* ===== 表（費用表など） ===== */
.table-wrap{margin:1.2rem 0;overflow-x:auto;-webkit-overflow-scrolling:touch;
  background:var(--white)}
.table-wrap table{width:100%;min-width:34rem;border-collapse:collapse;
  font-size:.88rem;line-height:1.8}
.table-wrap caption{padding:.9rem 1.1rem;text-align:left;font-family:var(--sans);
  font-size:.8rem;font-weight:500;letter-spacing:.14em;color:var(--sub)}
.table-wrap th,.table-wrap td{padding:.85rem 1.1rem;text-align:left;
  vertical-align:top;border-bottom:1px solid var(--rule);
  /* 金額を行途中で割らせない。あふれる表は .table-wrap の横スクロールで逃がす */
  overflow-wrap:normal}
.table-wrap thead th{border-bottom:1px solid var(--input-line);
  font-family:var(--sans);font-size:.78rem;font-weight:500;letter-spacing:.12em;
  color:var(--ink);white-space:nowrap}
.table-wrap tbody th{width:34%;font-weight:500;color:var(--ink)}
.table-wrap tbody td{color:var(--sub)}
.table-wrap tbody tr:last-child th,.table-wrap tbody tr:last-child td{border-bottom:0}
.table-wrap .num{text-align:right;white-space:nowrap;
  font-variant-numeric:tabular-nums;letter-spacing:.02em}
.table-note{margin:.7rem 0 0;font-size:.8rem;line-height:1.85;color:var(--sub)}
/* .prose p（0,1,1）に負けないよう明示する */
.prose .table-note,.prose .small-note{max-width:none;font-size:.8rem;line-height:1.85;
  color:var(--sub)}

/* ===== 手順・流れ ===== */
.steps{margin:1.4rem 0;padding:0;list-style:none;counter-reset:step}
.steps>li{position:relative;max-width:none;margin:0;padding:0 0 1.5rem 3.2rem;
  counter-increment:step}
.steps>li:last-child{padding-bottom:0}
.steps>li::before{content:counter(step,decimal-leading-zero);position:absolute;
  top:.1em;left:0;font-family:var(--sans);font-size:.78rem;font-weight:500;
  letter-spacing:.1em;color:var(--indigo);font-variant-numeric:tabular-nums}
.steps>li::after{content:"";position:absolute;top:2.1em;bottom:.3rem;left:.62rem;
  width:1px;background:var(--rule)}
.steps>li:last-child::after{display:none}
.steps h3{margin:0 0 .5rem;font-size:.98rem}
.steps p{margin:0;font-size:.9rem;line-height:1.9;color:var(--sub)}
.steps p+p{margin-top:.7rem}

/* ===== 略歴（定義リスト型の年表） ===== */
.timeline{margin:1.2rem 0}
.timeline__term{margin:0;padding-top:1rem;border-top:1px solid var(--rule);
  font-family:var(--sans);font-size:.8rem;font-weight:500;letter-spacing:.12em;
  color:var(--sub);font-variant-numeric:tabular-nums}
.timeline__body{margin:.25rem 0 1.1rem;color:var(--ink);font-size:.94rem;
  line-height:1.9}
.timeline__body:last-child{margin-bottom:0}
@media (min-width:721px){
  .timeline{display:grid;grid-template-columns:11rem minmax(0,1fr);
    column-gap:2rem}
  .timeline__term{grid-column:1;padding-top:1rem}
  .timeline__body{grid-column:2;margin:0;padding-top:1rem;
    border-top:1px solid var(--rule)}
}

/* ===== 著作・メディア掲載 ===== */
.work-list{margin:1.1rem 0;padding:0;list-style:none}
.work-list>li{max-width:none;padding:.85rem 0;border-top:1px solid var(--rule)}
.work-list>li:last-child{border-bottom:1px solid var(--rule)}
.work-title{display:block;padding:.28rem 0;color:var(--ink);font-size:.95rem;
  font-weight:500;letter-spacing:.04em;line-height:1.8;text-decoration:none}
a.work-title:hover{color:var(--indigo);text-decoration:underline}
.work-meta{display:block;margin-top:.3rem;font-size:.8rem;letter-spacing:.06em;
  color:var(--sub);line-height:1.85}
.media-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(16rem,1fr));
  gap:0;margin:1.1rem 0;border-top:1px solid var(--rule);
  border-left:1px solid var(--rule)}
.media-card{padding:1.3rem 1.4rem;background:var(--white);
  border-right:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.media-card__title{display:block;margin:0 0 .4rem;color:var(--ink);font-size:.94rem;
  font-weight:500;line-height:1.8}
.media-card__meta{display:block;font-size:.79rem;letter-spacing:.06em;color:var(--sub);
  line-height:1.85}

/* ===== 記事一覧（ブログ・豆知識） ===== */
.filters{margin:0 0 1.6rem}
.filters__label{display:block;margin:0 0 .6rem;font-size:.72rem;font-weight:500;
  letter-spacing:.2em;color:var(--sub)}
.chips{display:flex;flex-wrap:wrap;gap:.45rem;margin:0;padding:0;list-style:none}
.chips li{max-width:none}
.chip{display:inline-flex;align-items:center;gap:.4rem;min-height:44px;
  padding:.45rem .95rem;border:1px solid var(--rule);border-radius:999px;
  background:var(--white);color:var(--ink);font-family:var(--sans);font-size:.79rem;
  font-weight:500;letter-spacing:.06em;line-height:1.6;cursor:pointer;
  text-decoration:none;transition:border-color .2s ease,background-color .2s ease,
  color .2s ease}
.chip:hover{border-color:var(--indigo);color:var(--indigo)}
.chip.is-active,.chip[aria-pressed="true"]{border-color:var(--indigo);
  background:var(--indigo);color:#fff}
.chip__count{font-size:.7rem;letter-spacing:.04em;color:var(--sub);
  font-variant-numeric:tabular-nums}
.chip.is-active .chip__count,.chip[aria-pressed="true"] .chip__count{
  color:var(--indigo-pale)}

.viewtoggle{display:inline-flex;gap:.4rem;margin:0 0 1.4rem;padding:0;list-style:none}
.viewtoggle button{min-height:44px;padding:.45rem 1rem;border:1px solid var(--rule);
  border-radius:2px;background:var(--white);color:var(--ink);font-family:var(--sans);
  font-size:.78rem;font-weight:500;letter-spacing:.1em;cursor:pointer;
  transition:border-color .2s ease,background-color .2s ease,color .2s ease}
.viewtoggle button:hover{border-color:var(--indigo);color:var(--indigo)}
.viewtoggle button[aria-pressed="true"]{border-color:var(--indigo);
  background:var(--indigo);color:#fff}

.posts{margin:0;padding:0;list-style:none}
/* 下端の罫は器側に引く。:last-child だと絞り込みで最後の項目が隠れたとき消える */
.posts:not(.is-cards){border-bottom:1px solid var(--rule)}
.posts>li{max-width:none}
.post{display:block;padding:1.3rem 0;border-top:1px solid var(--rule);
  color:var(--ink);text-decoration:none;transition:background-color .2s ease}
.post:hover{background:var(--white)}
.post__head{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .9rem;
  margin-bottom:.5rem}
.post__date{font-size:.76rem;letter-spacing:.1em;color:var(--sub);
  font-variant-numeric:tabular-nums}
.post__badge{padding:.16rem .6rem;border:1px solid var(--rule);border-radius:2px;
  font-size:.7rem;font-weight:500;letter-spacing:.1em;color:var(--sub)}
.post__new{padding:.16rem .55rem;border-radius:2px;background:var(--indigo);
  color:#fff;font-size:.66rem;font-weight:500;letter-spacing:.12em}
.post__title{display:block;margin:0 0 .45rem;font-family:var(--serif);
  font-weight:600;font-size:1rem;letter-spacing:.04em;line-height:1.75;
  color:var(--ink)}
.post:hover .post__title{color:var(--indigo)}
.post__summary{margin:0;font-size:.87rem;line-height:1.9;color:var(--sub)}
.post__tags{display:flex;flex-wrap:wrap;gap:.3rem .7rem;margin:.6rem 0 0;padding:0;
  list-style:none}
.post__tags li{max-width:none;font-size:.74rem;letter-spacing:.06em;color:var(--sub)}
.post__more{display:inline-block;margin-top:.6rem;font-size:.76rem;font-weight:500;
  letter-spacing:.14em;color:var(--indigo)}

/* カード表示（表示切替の「カード」側） */
.posts.is-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(17rem,1fr));
  gap:0;border-top:1px solid var(--rule);border-left:1px solid var(--rule)}
.posts.is-cards .post{height:100%;padding:1.4rem;border-top:0;background:var(--white);
  border-right:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.posts.is-cards .post:hover{background:var(--indigo-pale)}

.posts-empty{margin:1.6rem 0;padding:1.4rem;background:var(--white);
  font-size:.9rem;color:var(--sub)}
.posts-count{margin:0 0 1rem;font-size:.78rem;letter-spacing:.1em;color:var(--sub)}

/* ===== サイト内検索（Google カスタム検索） ===== */
.cse{margin:0 0 1.8rem;padding:1.2rem 1.4rem;background:var(--white)}
.cse__label{display:block;margin:0 0 .7rem;font-size:.72rem;font-weight:500;
  letter-spacing:.2em;color:var(--sub)}
.cse .gsc-control-cse{padding:0;background:transparent;border:0;font-family:var(--sans)}
.cse .gsc-input-box{border:1px solid var(--input-line);border-radius:2px;
  background:var(--white)}
.cse .gsc-search-button-v2{padding:.7rem .9rem;border:1px solid var(--indigo);
  border-radius:2px;background:var(--indigo)}
.cse .gsc-search-button-v2:hover{background:var(--ink);border-color:var(--ink)}
.cse table.gsc-search-box td{padding:0}
.cse form.gsc-search-box{margin:0;font-size:inherit}

/* ===== 相談への導線（下層ページ末尾） ===== */
.endcta{margin-top:var(--sec)}
.endcta .midcta{margin:0}

@media (max-width:720px){
  .page-hero .col{padding-top:1.7rem;padding-bottom:1.6rem}
  .page-hero h1{padding-left:.75rem}
  .card{padding:1.2rem 1.2rem}
  .toc{padding:1.2rem 1.2rem}
  .table-wrap th,.table-wrap td{padding:.7rem .9rem}
  .steps>li{padding-left:2.6rem}
  .steps>li::after{left:.5rem}
  .posts.is-cards{grid-template-columns:1fr}
}
