/* てづか税理士事務所 サイト共通スタイル（白基調・青×緑）
   並び：基本 → ヘッダー・ヒーロー → トップの各ブロック → サブページ共通 → CTA・フッター
         → 動き → ドロワー・スマホ → ユーティリティ → 部品（料金表・アコーディオン・手順）
         → 記事 → 検索 → 代表写真 → 料金表（税務顧問） → MISSION → 無料相談フォーム → 相続LP
   ※後ろの指定ほど優先されるため、並び替えるときは見た目が変わらないか shots.py で確かめる */
:root {
  --navy: #3a76b8;
  --navy-deep: #2c5d94;
  --green: #159c77;
  --green-dark: #0e7a5c;
  --ink: #22303e;
  --sub: #5c6b7a;
  --gray: #f4f6f8;
  --line: #e3e8ee;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Yu Gothic UI", "Hiragino Sans", "Meiryo", sans-serif;
  color: var(--ink); line-height: 1.85; font-size: 16px; background: #fff;
  letter-spacing: .02em;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { text-wrap: pretty; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .35s ease;
}
.site-header.scrolled { box-shadow: 0 4px 22px rgba(58,118,184,.1); }
.header-in { max-width: 1240px; margin: 0 auto; padding: 0 20px; height: 68px; display: flex; align-items: center; gap: 26px; }
.brand { text-decoration: none; margin-right: auto; display: flex; align-items: center; gap: 11px; }
.brand-logo { height: 40px; width: auto; flex-shrink: 0; }
.brand-name { font-weight: 700; font-size: 1.1rem; color: var(--navy); letter-spacing: .06em; }
.brand-sub { font-size: .6rem; color: var(--sub); letter-spacing: .22em; }
.gnav ul { display: flex; gap: 24px; list-style: none; }
.gnav a { text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; transition: .2s; }
.gnav a:hover, .gnav a.current { color: var(--green-dark); border-bottom-color: var(--green); }
.gnav a, .btn-contact { white-space: nowrap; }
/* メニュー名が長いため、幅の狭いPCでは文字と間隔を詰めて1行に収める */
@media (max-width: 1240px) { .gnav ul { gap: 14px; } .gnav a { font-size: .82rem; } .btn-contact { padding: 11px 16px; } }
.btn-contact {
  background: var(--green); color: #fff; text-decoration: none; font-weight: 700; font-size: .88rem;
  padding: 11px 22px; border-radius: 3px; transition: .2s;
}
.btn-contact:hover { background: var(--green-dark); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .3s; }

/* ---------- hero ---------- */
.hero {
  margin-top: 68px; position: relative; height: min(78vh, 640px); min-height: 440px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  background-size: cover; background-position: center; display: flex; align-items: center; overflow: hidden;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(23,50,84,.68) 0%, rgba(23,50,84,.3) 58%, rgba(23,50,84,.06) 100%); }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; background-size: cover; background-position: center; background-color: var(--navy-deep); }
.hero .slide.active { opacity: 1; animation: heroZoom 9s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.07); } }
/* トップのヒーロー（PC）：旧サイトと同じく写真の縦横比（3:2）で全体を見せ、上が切れないよう上端を基準にする */
@media (min-width: 761px) {
  .hero:not(.low) { height: auto; min-height: 0; aspect-ratio: 3 / 2; }
  .hero:not(.low) .slide { background-position: center top; transform-origin: 50% 0; }
}
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero-dots button { width: 36px; height: 3px; border: 0; border-radius: 2px; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.hero-dots button.active { background: var(--green); }
.hero-in { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 0 20px; width: 100%; color: #fff; }
.hero-label { font-size: .82rem; letter-spacing: .3em; color: #bfe8da; font-weight: 700; margin-bottom: 18px; }
.hero-label::before { content: ""; display: inline-block; width: 34px; height: 1px; background: var(--green); vertical-align: middle; margin-right: 12px; }
.hero-msg { font-size: clamp(1.5rem, 3.4vw, 2.4rem); font-weight: 700; line-height: 1.75; letter-spacing: .08em; text-shadow: 0 2px 10px rgba(0,0,0,.55), 0 4px 30px rgba(0,0,0,.35); text-wrap: balance; }
.hero-en { margin-top: 14px; font-size: .78rem; letter-spacing: .24em; color: rgba(255,255,255,.85); text-transform: uppercase; }
/* トップのヒーロー：先生の言葉は明朝体（Noto Serif JP）、英語は筆記体（Cormorant Garamond）で大きく（書体は index.html で読み込み） */
.hero:not(.low) .hero-msg { font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif; font-weight: 600; letter-spacing: .03em; font-feature-settings: "palt"; }
.hero:not(.low) .hero-en {
  font-family: "Cormorant Garamond", "Times New Roman", serif; font-style: italic; font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem); letter-spacing: .02em; text-transform: none; line-height: 1.4;
  margin-top: 8px; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.5);
}
.btn-line {
  display: inline-block; margin-top: 30px; color: #fff; text-decoration: none; font-size: .9rem; font-weight: 700;
  border: 1px solid rgba(255,255,255,.75); padding: 13px 34px; letter-spacing: .1em; transition: .25s; background: rgba(255,255,255,.05);
}
.btn-line:hover { background: var(--green); border-color: var(--green); }

/* サブページ用の低いヒーロー */
.hero.low { height: 300px; min-height: 260px; }
.hero.low .hero-msg { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }

/* ---------- ニュースストリップ ---------- */
.news-strip { border-bottom: 1px solid var(--line); background: #fff; }
.news-strip .inner { position: relative; display: flex; align-items: center; gap: 20px; padding: 14px 20px; }
.news-strip .tag { flex-shrink: 0; font-size: .78rem; font-weight: 700; color: var(--green-dark); letter-spacing: .18em; }
.news-strip ul { list-style: none; flex: 1; position: relative; min-height: 1.9em; overflow: hidden; }
.news-strip a { text-decoration: none; font-size: .88rem; color: var(--ink); }
.news-strip a:hover { color: var(--green-dark); }
.news-strip time { color: var(--sub); font-size: .8rem; margin-right: 14px; }

/* ---------- 共通 ---------- */
.inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
section { padding: 84px 0; }
section.band-gray { background: var(--gray); }
section.band-navy { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }

.sec-title { display: flex; align-items: baseline; gap: 18px; margin-bottom: 44px; flex-wrap: wrap; }
.sec-title .en { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; letter-spacing: .05em; color: var(--navy); line-height: 1; }
.band-navy .sec-title .en { color: #fff; }
.sec-title .jp { font-size: .85rem; font-weight: 700; color: var(--green); letter-spacing: .14em; }
.sec-title .more { position: relative; overflow: hidden; margin-left: auto; font-size: .85rem; font-weight: 700; color: var(--green-dark); text-decoration: none; border: 1px solid var(--green); padding: 9px 22px; border-radius: 3px; transition: .2s; }
.sec-title .more:hover { background: var(--green); color: #fff; }
.band-navy .sec-title .jp { color: #d9efe6; }
.band-navy .sec-title .more { color: #cdeee3; border-color: rgba(255,255,255,.5); }
.band-navy .sec-title .more:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- SERVICES モザイクグリッド ---------- */
.svc-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); }
.svc-cell { position: relative; aspect-ratio: 4 / 3; overflow: hidden; text-decoration: none; display: block; }

/* 写真＋文字乗せタイル（写真の読み込み前も下地色で成立させる） */
.svc-cell.mix { background-size: cover; background-position: center; background-color: var(--navy-deep); transition: transform .5s ease; }
.svc-cell.mix::after {
  content: ""; position: absolute; inset: 0; transition: .35s;
  background: linear-gradient(180deg, rgba(23,50,84,.16) 0%, rgba(23,50,84,.38) 48%, rgba(13,30,58,.86) 100%);
}
.svc-cell.mix:hover::after {
  background: linear-gradient(180deg, rgba(14,122,92,.25) 0%, rgba(14,122,92,.45) 48%, rgba(9,74,56,.88) 100%);
}
.mix-in {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 26px 28px; color: #fff;
}
.mix-in h3 { font-size: 1.16rem; letter-spacing: .06em; margin-bottom: 9px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.mix-in h3::after { content: "→"; float: right; color: #9fd9c6; transition: transform .3s; }
.svc-cell.mix:hover .mix-in h3::after { transform: translateX(6px); }
.mix-in p { font-size: .85rem; line-height: 1.75; color: rgba(255,255,255,.92); text-shadow: 0 1px 6px rgba(0,0,0,.45); }

/* ---------- 告知バナー ---------- */
.notice-band { background: var(--gray); padding: 56px 0; }
.notice-card { background: #fff; border: 1px solid var(--line); display: flex; align-items: center; gap: 34px; padding: 30px 38px; flex-wrap: wrap; }
.notice-card .thumb { width: 250px; flex-shrink: 0; aspect-ratio: 16/7; background-size: cover; background-position: center; }
.notice-card .txt { flex: 1; min-width: 260px; }
.notice-card .txt .lbl { font-size: .78rem; font-weight: 700; color: var(--green-dark); letter-spacing: .16em; margin-bottom: 6px; }
.notice-card .txt h3 { color: var(--navy); font-size: 1.2rem; letter-spacing: .04em; margin-bottom: 6px; }
.notice-card .txt p { font-size: .9rem; color: var(--sub); }
.btn-green { flex-shrink: 0; background: var(--green); color: #fff; text-decoration: none; font-weight: 700; font-size: .88rem; padding: 13px 28px; border-radius: 3px; transition: .2s; }
.btn-green:hover { background: var(--green-dark); }

/* ---------- SEMINAR カード ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.sem-card { background: #fff; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; transition: .25s; }
.sem-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.sem-card .thumb { aspect-ratio: 16/9; background-size: cover; background-position: center; position: relative; }
.sem-card .thumb .st { position: absolute; top: 0; left: 0; background: var(--green); color: #fff; font-size: .74rem; font-weight: 700; padding: 4px 12px; letter-spacing: .1em; }
.sem-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sem-card time { font-size: .8rem; color: var(--sub); }
.sem-card h3 { font-size: 1.02rem; color: var(--navy); line-height: 1.6; letter-spacing: .03em; }
.sem-card .foot { margin-top: auto; font-size: .84rem; font-weight: 700; color: var(--green-dark); }

/* ---------- TOPICS（コラム）グリッド ---------- */
.topics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 22px; }
.tp-card { text-decoration: none; color: var(--ink); display: block; }
.tp-card .thumb { aspect-ratio: 16/10; background: var(--navy); background-size: cover; background-position: center; margin-bottom: 12px; overflow: hidden; position: relative; }
.tp-card .thumb .abs {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; letter-spacing: .1em; font-size: .95rem; padding: 14px; text-align: center; line-height: 1.6;
  background: linear-gradient(135deg, var(--navy) 0%, #4a86c4 55%, #5b95d0 100%);
  transition: transform .5s ease;
}
/* 写真つきのカード：写真の上に小さな見出しを重ねる（写真は ::before で拡大させる） */
.tp-card .thumb[style]::before { content: ""; position: absolute; inset: 0; background-image: inherit; background-size: cover; background-position: center; transition: transform .5s ease; }
.tp-card .thumb[style] .abs {
  inset: auto auto 0 0; background: rgba(44,93,148,.9); font-size: .78rem; letter-spacing: .06em; line-height: 1.5;
  padding: 5px 12px; text-align: left; display: block;
}
.tp-card .thumb[style] .abs br { display: none; }
.tp-card time { font-size: .78rem; color: var(--sub); margin-right: 10px; }
.tp-card .chip { display: inline-block; font-size: .7rem; font-weight: 700; color: var(--green-dark); border: 1px solid var(--green); border-radius: 20px; padding: 1px 10px; }
.tp-card h3 { font-size: .93rem; line-height: 1.65; margin-top: 7px; letter-spacing: .02em; font-weight: 600; }
.tp-card:hover h3 { color: var(--green-dark); }

/* ---------- 理念バンド ---------- */
.philosophy { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; }
.philosophy .ph-img { flex: 1; min-width: 300px; aspect-ratio: 4/3; background-size: cover; background-position: center; }
.philosophy .ph-txt { flex: 1; min-width: 300px; }
.philosophy .ph-txt .lbl { font-size: .8rem; letter-spacing: .3em; color: var(--green-dark); font-weight: 700; margin-bottom: 16px; }
.philosophy .ph-txt h2 { color: var(--navy); font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 2; letter-spacing: .1em; margin-bottom: 18px; text-wrap: balance; }
.philosophy .ph-txt p { color: var(--sub); font-size: .95rem; margin-bottom: 26px; }

/* ---------- OFFICE / アクセス ---------- */
.office-flex { display: flex; gap: 46px; flex-wrap: wrap; }
.office-info { flex: 1; min-width: 300px; }
.office-info dl { display: grid; grid-template-columns: 110px 1fr; border-top: 1px solid var(--line); }
.office-info dt, .office-info dd { padding: 15px 6px; border-bottom: 1px solid var(--line); font-size: .93rem; }
.office-info dt { font-weight: 700; color: var(--navy); }
.office-photo { flex: 0 1 360px; min-width: 260px; margin: 0 auto; }
.office-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; }
.office-photo[style] { flex: 1; min-width: 300px; margin: 0; aspect-ratio: 16/10; background-size: cover; background-position: center; }
.office-photo figcaption { margin-top: 8px; font-size: .84rem; color: var(--sub); text-align: center; }
.tel-big { font-size: 1.7rem; font-weight: 700; color: var(--navy); letter-spacing: .04em; }
.tel-big small { display: block; font-size: .8rem; color: var(--sub); font-weight: 600; }

/* ---------- お知らせリスト ---------- */
.news-list { list-style: none; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: flex; gap: 26px; padding: 18px 6px; text-decoration: none; font-size: .93rem; align-items: baseline; flex-wrap: wrap; }
.news-list a:hover { color: var(--green-dark); }
.news-list time { color: var(--sub); font-size: .84rem; flex-shrink: 0; }
.news-list .chip { font-size: .7rem; font-weight: 700; color: var(--green-dark); border: 1px solid var(--green); border-radius: 20px; padding: 1px 12px; flex-shrink: 0; }

/* ---------- サブページ共通 ---------- */
.breadcrumb { font-size: .8rem; color: var(--sub); padding: 16px 0 34px; }
.breadcrumb a { color: var(--sub); text-decoration: none; }
.breadcrumb a:hover { color: var(--green-dark); }
.page-lead { max-width: 780px; margin-bottom: 50px; color: var(--sub); }
.svc-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc-list.cols1 { grid-template-columns: 1fr; gap: 16px; }
.svc-list.cols2 { grid-template-columns: repeat(2, 1fr); }
.svc-list.cols3 { grid-template-columns: repeat(3, 1fr); }
.svc-list.cols4 { grid-template-columns: repeat(4, 1fr); }
.svc-item { border: 1px solid var(--line); background: #fff; padding: 30px 28px; text-decoration: none; color: var(--ink); transition: .25s; display: flex; flex-direction: column; }
.svc-item[id] { scroll-margin-top: 96px; }
.svc-item:hover { border-color: var(--green); box-shadow: 0 10px 26px rgba(58,118,184,.1); }
.svc-item .no { font-size: .78rem; color: var(--green-dark); font-weight: 700; letter-spacing: .18em; margin-bottom: 12px; }
.svc-item h3 { color: var(--navy); font-size: 1.1rem; letter-spacing: .05em; margin-bottom: 10px; }
.svc-item p { font-size: .88rem; color: var(--sub); line-height: 1.8; }
.svc-item .go { margin-top: auto; padding-top: 16px; font-size: .84rem; font-weight: 700; color: var(--green-dark); }

.about-msg h2 { color: var(--navy); font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 2.1; letter-spacing: .08em; margin-bottom: 22px; text-wrap: balance; }
.about-msg p { max-width: 820px; margin-bottom: 18px; }
.sign { text-align: right; max-width: 820px; margin-top: 26px; font-weight: 700; color: var(--navy); }
.sign small { display: block; font-weight: 600; color: var(--sub); font-size: .8rem; }

.creed { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.creed-item { background: #fff; border-top: 3px solid var(--green); padding: 22px 18px; }
.creed-item .jp { font-weight: 700; color: var(--navy); font-size: 1.02rem; letter-spacing: .05em; margin-bottom: 6px; }
.creed-item .ds { font-size: .82rem; color: var(--sub); line-height: 1.75; margin-top: 12px; }
.creed-item .en { font-size: .68rem; letter-spacing: .12em; color: var(--sub); text-transform: uppercase; line-height: 1.6; }

table.spec { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.spec th, table.spec td { border-bottom: 1px solid var(--line); padding: 15px 10px; text-align: left; vertical-align: top; }
table.spec th { width: 180px; color: var(--navy); font-weight: 700; }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; text-align: center; padding: 70px 20px; }
.cta-band h2 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); letter-spacing: .08em; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.8); font-size: .92rem; margin-bottom: 30px; }
.cta-band .row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; align-items: center; }
.cta-band .tel { color: #fff; text-decoration: none; font-size: 1.6rem; font-weight: 700; letter-spacing: .04em; }
.cta-band .tel small { display: block; font-size: .74rem; font-weight: 600; color: rgba(255,255,255,.75); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #cbd5e1; font-size: .85rem; }
.footer-in { max-width: 1240px; margin: 0 auto; padding: 60px 20px 30px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-grid .f-head { color: #fff; font-size: .9rem; letter-spacing: .1em; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.2); }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #cbd5e1; text-decoration: none; }
.footer-grid a:hover { color: #9fd9c6; }
.f-brand { color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; }
.f-brand small { display: block; font-size: .62rem; letter-spacing: .2em; color: #94a3b8; font-weight: 600; }
.f-addr { margin-top: 14px; line-height: 1.9; color: #94a3b8; }
.copyright { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; text-align: center; color: #7d8ba0; font-size: .76rem; letter-spacing: .06em; }

/* ---------- カテゴリ絞り込み（インサイト） ---------- */
.fbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.fbtn {
  border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 20px;
  padding: 7px 18px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: .2s;
}
.fbtn:hover { border-color: var(--green); color: var(--green-dark); }
.fbtn.on { background: var(--green); border-color: var(--green); color: #fff; }
.diary-note {
  background: var(--gray); border: 1px dashed var(--green); border-radius: 8px;
  padding: 30px 26px; text-align: center; color: var(--sub); display: none;
}
.diary-note b { color: var(--navy); display: block; font-size: 1.05rem; margin-bottom: 8px; }

/* ---------- モーション（スクロールリビール等） ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.reveal.in { opacity: 1; transform: none; }

.svc-cell.mix:hover { transform: scale(1.025); z-index: 2; box-shadow: 0 16px 34px rgba(35,74,120,.3); }
.tp-card:hover .thumb .abs { transform: scale(1.06); }
.tp-card:hover .thumb[style] .abs { transform: none; }
.tp-card:hover .thumb[style]::before { transform: scale(1.06); }
.sem-card .foot, .svc-item .go { transition: transform .3s ease; }
.sem-card:hover .foot, .svc-item:hover .go { transform: translateX(7px); }
.btn-green, .btn-contact, .btn-line { transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.btn-green:hover, .btn-contact:hover { transform: translateY(-2px); }

/* ニュースカルーセル */
.news-strip li { position: absolute; inset: 0; opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; pointer-events: none; }
.news-strip li.on { opacity: 1; transform: none; pointer-events: auto; }
.news-nav { display: flex; gap: 6px; flex-shrink: 0; }
.news-nav button {
  width: 28px; height: 28px; border: 1px solid var(--line); background: #fff; border-radius: 50%;
  cursor: pointer; color: var(--navy); font-size: .8rem; line-height: 1; transition: .2s;
}
.news-nav button:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* TOPに戻る */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px;
  border: 0; border-radius: 50%; background: var(--navy); color: #fff; font-size: 1.1rem;
  cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .35s, transform .35s, visibility .35s, background .2s;
  box-shadow: 0 8px 22px rgba(35,74,120,.3);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .slide.active { animation: none; }
  .tp-card .thumb .abs, .tp-card .thumb[style]::before { transition: none; }
}

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer .bg { position: absolute; inset: 0; background: rgba(35,74,120,.55); opacity: 0; transition: .3s; }
.drawer.open .bg { opacity: 1; }
.drawer .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: #fff; transform: translateX(100%); transition: .3s; overflow-y: auto; padding: 74px 26px 40px; }
.drawer.open .panel { transform: none; }
.drawer .panel a { display: block; padding: 12px 4px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; border-bottom: 1px solid var(--line); }
.drawer .panel a:hover { color: var(--green-dark); }
.drawer .panel a.d-tel { background: var(--navy); color: #fff; text-align: center; border-radius: 6px; margin-bottom: 12px; border: 0; }
.drawer .panel .d-sub { font-size: .72rem; font-weight: 600; opacity: .85; }
.drawer .close { position: absolute; top: 16px; right: 16px; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--navy); }

/* ---------- モバイル用：画面下の固定バー（電話・相談予約） ---------- */
.m-bar { display: none; }
@media (max-width: 760px) {
  .m-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    background: rgba(255,255,255,.98); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 18px rgba(23,50,84,.12);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
  }
  .m-bar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-decoration: none; border-radius: 6px; padding: 9px 6px; min-height: 52px;
    font-weight: 700; font-size: .95rem; letter-spacing: .02em; line-height: 1.3;
  }
  .m-bar .m-tel { background: var(--navy); color: #fff; }
  .m-bar .m-cta { background: var(--green); color: #fff; }
  .m-bar small { display: block; font-size: .64rem; font-weight: 600; opacity: .85; margin-top: 2px; }
  body { padding-bottom: 72px; }
  .to-top { bottom: 84px; right: 14px; }
  /* ヒーローは画面を占有しすぎない高さに */
  .hero { height: 58vh; min-height: 380px; max-height: 480px; }
  .hero.low { height: 210px; min-height: 210px; }
  .hero-in { padding: 0 18px; }
  .hero-msg { line-height: 1.6; }
  /* 指で押しやすい大きさに */
  .menu-toggle { padding: 11px; }
  .drawer .panel a { padding: 15px 6px; font-size: 1rem; }
  .fbtn { padding: 9px 16px; font-size: .88rem; }
  .news-strip .inner { padding: 12px 18px; gap: 12px; }
  .news-strip a { font-size: .84rem; }
  /* セクション見出しの「すべて見る」は下に回す */
  .sec-title { gap: 10px; }
  .sec-title .more { margin-left: 0; width: 100%; text-align: center; }
  .cta-band .row { flex-direction: column; gap: 14px; }
  .cta-band .tel { font-size: 1.45rem; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .gnav { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 1020px) {
  .gnav { display: none; }
  .menu-toggle { display: block; }
  .svc-mosaic { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .svc-list, .svc-list.cols2, .svc-list.cols3, .svc-list.cols4 { grid-template-columns: repeat(2, 1fr); }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .creed { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  section { padding: 60px 0; }
  .btn-contact { display: none; }
  .svc-mosaic, .card-grid, .svc-list, .topics-grid,
  .svc-list.cols2, .svc-list.cols3, .svc-list.cols4 { grid-template-columns: 1fr; }
  .svc-cell.mix { aspect-ratio: 16 / 9; }
  .mix-in { padding: 18px 20px; }
  .mix-in p { display: none; }
  .creed { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .notice-card { padding: 24px 22px; }
  .notice-card .thumb { width: 100%; }
}

/* ==========================================================================
   共通部品とユーティリティ
   ページ側のインライン指定をここへ集約（表示は変えずに保守性だけ上げる）
   ========================================================================== */

/* ボタンの大きさ */
.btn-lg { padding: 16px 40px; font-size: 1rem; }

/* テキストの色・調子 */
.t-accent { color: var(--green-dark); font-weight: 700; }
.t-link { color: var(--green-dark); }
.t-navy { color: var(--navy); letter-spacing: .05em; }
.t-sub { color: var(--sub); }
.t-plain { text-decoration: none; color: inherit; }

/* 本文の読みやすい幅 */
.p-narrow { max-width: 820px; }
.p-disclaimer { font-size: .82rem; color: var(--sub); margin-top: 18px; }

/* 補足の囲み（FAQ・SPCの出典欄などで共用） */
.note-box {
  background: var(--gray); border-left: 4px solid var(--green);
  border-radius: 0 6px 6px 0; padding: 16px 20px; margin-top: 32px; font-size: .9rem;
}
.note-box b { color: var(--navy); }

/* 図解の外枠 */
.figure-box {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 30px 24px; margin-bottom: 24px; overflow-x: auto;
}
.figure-svg { min-width: 640px; width: 100%; display: block; }

/* フォーム */
.f-label { font-size: .85rem; font-weight: 700; color: var(--navy); }
.f-input {
  width: 100%; padding: 12px; margin-top: 4px; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 3px; font-family: inherit;
}
.f-input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.f-submit { border: 0; cursor: pointer; width: 100%; padding: 15px; font-size: 1rem; }
.f-note { font-size: .76rem; color: var(--sub); margin-top: 10px; }

/* 余白（数値の直書きを避けるための最小限） */
.mb-sm { margin-bottom: 14px; }
.mb-md { margin-bottom: 20px; }
.mb-lg { margin-bottom: 26px; }
.mb-xl { margin-bottom: 60px; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 22px; }
.mt-xl { margin-top: 70px; }
.ta-center { text-align: center; }
.pad-sm { padding: 60px 0; }
.flex-2 { flex: 2; }

/* キーボード操作で本文へ飛べるリンク */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 300;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 0 0 6px 6px;
  text-decoration: none; font-weight: 700; font-size: .9rem; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* 料金表 */
.price-table { margin-bottom: 8px; }
.price-table thead th { background: var(--navy); color: #fff; font-weight: 600; letter-spacing: .06em; border-bottom: 0; }
.price-table th, .price-table td { padding: 15px 16px; }
.price-table tbody tr:nth-child(odd) { background: rgba(58,118,184,.04); }
.price-table td b { color: var(--green-dark); font-size: 1.08rem; }
@media (max-width: 620px) {
  .price-table { font-size: .88rem; }
  .price-table th, .price-table td { padding: 11px 9px; }
  .price-table td b { font-size: 1rem; }
}

/* ==========================================================================
   開閉式の解説（アコーディオン）
   本文量を確保しつつ、画面上は短く保つためのもの
   ========================================================================== */
.acc-list { border-top: 1px solid var(--line); margin-bottom: 8px; }
.acc {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.acc > summary {
  cursor: pointer; list-style: none; padding: 20px 46px 20px 4px;
  font-weight: 700; color: var(--navy); font-size: 1rem; line-height: 1.7;
  position: relative; transition: color .2s;
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary:hover { color: var(--green-dark); }
.acc > summary::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s;
}
.acc[open] > summary::after { transform: translateY(-20%) rotate(-135deg); }
.acc > summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.acc .acc-body { padding: 0 4px 24px; color: var(--ink); }
.acc .acc-body p { margin-bottom: 14px; font-size: .95rem; }
.acc .acc-body p:last-child { margin-bottom: 0; }
.acc .acc-body ul { margin: 0 0 14px 1.3em; font-size: .95rem; }
.acc .acc-body li { margin-bottom: 7px; }
.acc .src {
  display: inline-block; font-size: .8rem; color: var(--sub);
  border-left: 3px solid var(--green); padding-left: 10px; margin-top: 6px;
}
.acc .src a { color: var(--green-dark); }

/* 手順（進め方） */
.steps { counter-reset: st; display: grid; gap: 14px; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 6px; padding: 20px 24px 20px 70px;
}
.step::before {
  counter-increment: st; content: counter(st);
  position: absolute; left: 22px; top: 20px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { color: var(--navy); font-size: 1.02rem; letter-spacing: .04em; margin-bottom: 6px; }
.step p { font-size: .9rem; color: var(--sub); line-height: 1.8; }
@media (max-width: 620px) {
  .step { padding: 18px 18px 18px 60px; }
  .step::before { left: 16px; top: 18px; width: 28px; height: 28px; font-size: .88rem; }
  .acc > summary { padding: 17px 40px 17px 2px; font-size: .95rem; }
}

/* ---------- インサイト記事（本文レイアウト） ---------- */
.art-wrap { display: grid; grid-template-columns: 1fr 240px; gap: 48px; align-items: start; }
.art { max-width: 780px; min-width: 0; }
.art-title { font-size: 1.72rem; line-height: 1.5; color: var(--ink); margin: 6px 0 18px; font-weight: 700; letter-spacing: .01em; }
.art-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .82rem; color: var(--sub); }
.art-meta .chip { background: var(--navy); color: #fff; padding: 3px 12px; border-radius: 3px; font-size: .72rem; font-weight: 700; }
.art-head { padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }

.art h2 { font-size: 1.28rem; color: var(--ink); margin: 48px 0 16px; padding: 3px 0 3px 15px; border-left: 4px solid var(--navy); line-height: 1.55; }
.art h3 { font-size: 1.05rem; color: var(--navy-deep); margin: 32px 0 10px; }
.art p { font-size: .96rem; line-height: 1.98; margin-bottom: 17px; }
.art ul, .art ol { margin: 0 0 20px 1.5em; font-size: .94rem; line-height: 1.9; }
.art li { margin-bottom: 8px; }
.art strong { font-weight: 700; background: linear-gradient(transparent 62%, rgba(58,118,184,.18) 62%); }
.art a { color: var(--navy-deep); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
.art a:hover { color: var(--green-dark); }
.art .note-box { margin: 28px 0; }
.art .note-box a { font-size: .86rem; }

/* チェックリスト */
.check-list { list-style: none; margin-left: 0; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: ''; position: absolute; left: 5px; top: .42em;
  width: 12px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

/* カード内のチェックリスト */
.svc-item .check-list { margin: 12px 0 0; font-size: .86rem; line-height: 1.75; color: var(--sub); }
.svc-item .check-list li { margin-bottom: 5px; padding-left: 26px; }
.svc-item .check-list li::before { left: 3px; width: 10px; height: 5px; }

/* 目次 */
.toc { background: var(--gray); border: 1px solid var(--line); border-radius: 8px; padding: 22px 26px; margin-bottom: 36px; }
.toc b { display: block; font-size: .9rem; color: var(--navy); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; font-size: .9rem; line-height: 1.85; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--navy); text-decoration: underline; }

/* 執筆者 */
.art-author { display: flex; gap: 18px; align-items: center; background: var(--gray); border-radius: 8px; padding: 24px 26px; margin-top: 46px; }
.art-author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.art-author .who { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.art-author .bio { font-size: .82rem; color: var(--sub); line-height: 1.75; }

/* 記事末のCTA */
.art-cta { border: 2px solid var(--navy); border-radius: 8px; padding: 30px 26px; margin-top: 34px; text-align: center; }
.art-cta h3 { font-size: 1.12rem; color: var(--ink); margin: 0 0 8px; }
.art-cta p { font-size: .9rem; color: var(--sub); margin-bottom: 18px; }

/* 関連記事 */
.art-rel { margin-top: 56px; }
.art-rel .rel-head { font-size: .95rem; font-weight: 700; color: var(--navy); padding-bottom: 10px; border-bottom: 2px solid var(--navy); margin-bottom: 18px; }
.art-rel ul { list-style: none; margin: 0; }
.art-rel li { border-bottom: 1px solid var(--line); }
.art-rel a { display: block; padding: 15px 4px; font-size: .92rem; line-height: 1.6; color: var(--ink); text-decoration: none; transition: .2s; }
.art-rel a:hover { color: var(--navy); padding-left: 10px; }
.art-rel time { display: block; font-size: .76rem; color: var(--sub); margin-bottom: 3px; }

/* 記事サイドバー */
.art-side { position: sticky; top: 92px; }
.art-side .s-box { border: 1px solid var(--line); border-radius: 8px; padding: 20px; margin-bottom: 18px; }
.art-side .s-head { font-size: .82rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.art-side ul { list-style: none; margin: 0; }
.art-side li { margin-bottom: 9px; }
.art-side a { font-size: .84rem; color: var(--ink); text-decoration: none; line-height: 1.55; display: block; }
.art-side a:hover { color: var(--navy); }
.art-side .s-tel { display: block; background: var(--navy); color: #fff; border-radius: 6px; padding: 16px; text-align: center; text-decoration: none; }
.art-side .s-tel .num { font-size: 1.14rem; font-weight: 700; letter-spacing: .02em; }
.art-side .s-tel small { display: block; font-size: .7rem; opacity: .88; margin-top: 4px; }

@media (max-width: 980px) {
  .art-wrap { grid-template-columns: 1fr; gap: 0; }
  .art-side { position: static; margin-top: 46px; }
}
@media (max-width: 760px) {
  .art-title { font-size: 1.32rem; }
  .art h2 { font-size: 1.12rem; margin: 36px 0 14px; }
  .art h3 { font-size: 1rem; }
  .art p, .art ul, .art ol { font-size: .92rem; }
  .art-author { flex-direction: column; text-align: center; gap: 12px; }
  .toc { padding: 18px 20px; }
}

/* ---------- ユーティリティ（インラインstyleの置き換え） ---------- */
.is-hidden { display: none; }
.t-xs { font-size: .82rem; }
.mt-0 { margin-top: 0; }
.mb-26 { margin-bottom: 26px; }
.sec-title .en.sm { font-size: 1.6rem; }
.t-green { color: var(--green-dark); font-weight: 700; }
.lp-foot { background: var(--navy-deep); color: #94a3b8; text-align: center; font-size: .78rem; padding: 18px 20px; }
.lp-foot a { color: #cbd5e1; }
.btn-green.compact { padding: 11px 22px; font-size: .9rem; }

/* ---------- サイト内検索 ---------- */
.search-btn {
  width: 38px; height: 38px; flex: none; margin-left: 10px;
  background: none; border: 1px solid var(--line); border-radius: 50%;
  cursor: pointer; position: relative; transition: .2s;
}
.search-btn:hover { border-color: var(--green); }
.search-btn::before {
  content: ''; position: absolute; left: 11px; top: 11px;
  width: 11px; height: 11px; border: 2px solid var(--navy); border-radius: 50%;
}
.search-btn::after {
  content: ''; position: absolute; left: 22px; top: 22px;
  width: 7px; height: 2px; background: var(--navy); transform: rotate(45deg);
}
.search-wrap {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: rgba(20, 38, 62, .55); backdrop-filter: blur(2px);
}
.search-wrap.open { display: block; }
.search-panel {
  background: #fff; max-width: 680px; margin: 8vh auto 0; border-radius: 10px;
  padding: 26px 26px 10px; max-height: 78vh; display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.search-panel .row1 { display: flex; gap: 10px; align-items: center; }
.search-panel input {
  flex: 1; font-size: 1rem; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: 6px; font-family: inherit;
}
.search-panel input:focus { outline: 2px solid var(--green); border-color: transparent; }
.search-panel .x {
  background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--sub);
  cursor: pointer; padding: 6px 10px;
}
.search-hint { font-size: .8rem; color: var(--sub); margin: 12px 2px 4px; }
.search-res { overflow-y: auto; margin-top: 8px; }
.search-res a {
  display: block; padding: 14px 6px; border-top: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
}
.search-res a:hover { background: var(--gray); }
.search-res .st { font-weight: 700; color: var(--navy); font-size: .96rem; }
.search-res .sc {
  display: inline-block; font-size: .68rem; background: var(--gray); color: var(--sub);
  padding: 2px 9px; border-radius: 3px; margin-left: 8px; vertical-align: middle;
}
.search-res .sx { font-size: .84rem; color: var(--sub); line-height: 1.7; margin-top: 5px; }
.search-res mark { background: rgba(21, 156, 119, .22); color: inherit; font-weight: 700; }
@media (max-width: 760px) {
  .search-btn { display: none; }
  .search-panel { margin: 0; max-width: none; border-radius: 0; height: 100%; max-height: 100%; }
}

/* ---------- 代表の写真 ---------- */
.daihyo-photo { flex: none; width: 100%; max-width: 340px; margin: 0; }
.daihyo-photo img { width: 100%; height: auto; display: block; border-radius: 6px; }
.greet-title { font-size: 1.15rem; color: var(--navy); letter-spacing: .1em; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--green); display: inline-block; }
/* スタッフ紹介（旧サイトと同じく人物アイコン＋役職・名前・紹介文） */
.staff-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 28px; }
.staff-card { display: flex; align-items: center; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.staff-card p { font-size: .9rem; color: var(--sub); line-height: 1.75; }
.staff-card .staff-name { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.staff-icon {
  flex: none; width: 72px; height: 72px; border-radius: 50%; background: #e6eef7 no-repeat center 70% / 62%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='20' r='13' fill='%233a76b8'/%3E%3Cpath d='M6 64c0-15 11.6-25 26-25s26 10 26 25z' fill='%233a76b8'/%3E%3C/svg%3E");
}
@media (max-width: 760px) { .staff-list { grid-template-columns: 1fr; } .staff-icon { width: 60px; height: 60px; } }
.daihyo-photo figcaption { font-size: .78rem; color: var(--sub); margin-top: 10px; text-align: center; letter-spacing: .04em; }
.philosophy .ph-img.portrait {
  flex: none; width: 100%; max-width: 340px; min-width: 0; aspect-ratio: auto;
  margin: 0 auto; background: none;
}
.philosophy .ph-img.portrait img { width: 100%; height: auto; display: block; border-radius: 6px; }
.lp-daihyo { display: flex; gap: 22px; align-items: center; margin-top: 22px; }
.lp-daihyo img { width: 120px; height: 150px; object-fit: cover; object-position: top; border-radius: 6px; flex: none; }
.lp-daihyo p { font-size: .9rem; line-height: 1.85; }
.lp-daihyo b { display: block; color: var(--navy); margin-bottom: 4px; }
@media (max-width: 760px) {
  .daihyo-photo { max-width: 280px; margin: 0 auto; }
  .philosophy .ph-img.portrait { max-width: 260px; }
}

/* ---------- 税務顧問の料金表（年間売上 × 訪問・面談の頻度） ---------- */
.fee-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.fee-table caption { text-align: left; font-size: .8rem; color: var(--sub); padding-bottom: 8px; }
.fee-table th, .fee-table td { border-bottom: 1px solid var(--line); padding: 13px 12px; text-align: right; white-space: nowrap; }
.fee-table thead th { background: var(--navy); color: #fff; font-weight: 600; text-align: center; font-size: .84rem; letter-spacing: .04em; border-bottom: 1px solid rgba(255,255,255,.25); white-space: normal; }
.fee-table thead tr.sub th { background: var(--navy-deep); }
.fee-table tbody th { text-align: left; color: var(--navy); font-weight: 700; white-space: normal; }
.fee-table tbody tr:nth-child(odd) { background: rgba(58,118,184,.04); }
.fee-table td b { color: var(--green-dark); font-size: 1.04rem; }
.fee-table td.ask { text-align: center; color: var(--sub); }
@media (max-width: 760px) {
  .fee-table thead { display: none; }
  .fee-table, .fee-table tbody, .fee-table tr, .fee-table th, .fee-table td { display: block; width: 100%; }
  .fee-table caption { display: block; width: auto; }
  .fee-table tr { border: 1px solid var(--line); margin-bottom: 12px; background: #fff !important; }
  .fee-table tbody th { background: var(--navy); color: #fff; padding: 10px 14px; border-bottom: 0; }
  .fee-table td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 14px; }
  .fee-table td::before { content: attr(data-label); color: var(--sub); font-size: .82rem; text-align: left; }
  .fee-table td.ask { justify-content: center; }
  .fee-table td.ask::before { content: none; }
}

/* ---------- 私たちについて：MISSION ---------- */
/* ミッション・ビジョン・バリュー（about.html#mission） */
.mvv-motto { text-align: center; margin: 4px 0 34px; }
.mvv-motto .en { font-family: "Cormorant Garamond", "Times New Roman", serif; font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--navy); letter-spacing: .02em; }
.mvv-motto .jp { margin-top: 6px; font-weight: 700; letter-spacing: .24em; color: var(--green-dark); }
.nb { display: inline-block; }
/* ミッション・ビジョン・バリュー：3つとも同じ形の行（左に見出し、右に文章）で上から順に */
.mvv-row { display: grid; grid-template-columns: 190px 1fr; gap: 36px; padding: 34px 0; border-top: 1px solid var(--line); align-items: start; }
.mvv-row:last-child { border-bottom: 1px solid var(--line); }
.mvv-lbl .en { display: block; font-size: 1.5rem; font-weight: 700; color: var(--navy); letter-spacing: .12em; line-height: 1.2; }
.mvv-lbl .jp { display: block; margin-top: 6px; font-size: .8rem; color: var(--green-dark); letter-spacing: .16em; font-weight: 700; }
.mvv-text { font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(1.2rem, 2.1vw, 1.55rem); font-weight: 600; color: var(--navy); line-height: 1.9; letter-spacing: .04em; padding-top: 2px; }
.mvv-row-value .mission-list { border-top: 0; }
.mvv-row-value .mission-item:first-child { padding-top: 4px; }
.mvv-row-value .mission-item:last-child { border-bottom: 0; }
@media (max-width: 760px) {
  .mvv-row { grid-template-columns: 1fr; gap: 12px; padding: 26px 0; }
}
.mission-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.mission-item { display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; padding: 26px 4px; border-bottom: 1px solid var(--line); }
.mission-item .no { grid-row: span 2; font-size: 1.6rem; font-weight: 700; color: var(--green); letter-spacing: .04em; line-height: 1.2; }
.mission-item h3 { color: var(--navy); font-size: 1.12rem; letter-spacing: .06em; margin-bottom: 8px; }
.mission-item p { color: var(--ink); line-height: 1.95; max-width: 820px; }
@media (max-width: 620px) {
  .mission-item { grid-template-columns: 44px 1fr; column-gap: 12px; padding: 20px 2px; }
  .mission-item .no { font-size: 1.25rem; }
}

/* ---------- 無料相談フォーム ---------- */
.cform { background: var(--gray); padding: 34px 32px; border-top: 3px solid var(--green); }
.f-step { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.f-step > legend { font-weight: 700; color: var(--navy); font-size: .95rem; margin-bottom: 10px; padding: 0; }
.f-req, .f-opt { display: inline-block; color: #fff; font-size: .66rem; font-weight: 600; padding: 1px 7px; border-radius: 2px; margin-left: 8px; vertical-align: 2px; letter-spacing: .04em; }
.f-req { background: var(--green); }
.f-opt { background: #94a3b8; }
.f-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.f-choices.cols2 { grid-template-columns: repeat(2, 1fr); }
.f-choices.cols3 { grid-template-columns: repeat(3, 1fr); }
.f-choice { position: relative; display: block; cursor: pointer; }
.f-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; left: 18px; top: 50%; }
.f-choice > span { display: block; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 13px 14px 13px 42px; font-size: .93rem; font-weight: 600; color: var(--ink); line-height: 1.5; position: relative; transition: border-color .15s, background .15s; }
.f-choice > span::before { content: ''; position: absolute; left: 15px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border: 2px solid #9aa9bb; border-radius: 50%; background: #fff; box-sizing: border-box; }
.f-choice small { display: block; color: var(--sub); font-size: .76rem; font-weight: 400; margin-top: 2px; }
.f-choice:hover > span { border-color: var(--navy); }
.f-choice input:checked + span { border-color: var(--green); background: #f0faf6; box-shadow: inset 0 0 0 1px var(--green); }
.f-choice input:checked + span::before { border-color: var(--green); background: radial-gradient(circle, var(--green) 0 3px, #fff 4px); }
.f-choice input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.f-sub { margin: -8px 0 24px; padding: 16px 0 2px 18px; border-left: 3px solid var(--green); }
.f-branch > .f-sub:first-child { margin-top: 0; }
[data-show][hidden] { display: none !important; }
.f-hint { font-size: .8rem; color: var(--sub); margin-top: 8px; line-height: 1.7; }
.f-hint .src { display: block; margin-top: 4px; }
.f-person { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 4px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-row + .f-row { margin-top: 14px; }
.f-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.f-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green); flex: none; }
.f-hp { display: none; }
.cform .f-submit { margin-top: 26px; }
@media (max-width: 760px) {
  .cform { padding: 26px 18px; }
  .f-choices.cols2, .f-choices.cols3, .f-row { grid-template-columns: 1fr; }
  .f-sub { padding-left: 12px; }
}

/* ---------- 相続LP（souzoku-lp.html 専用。ページ内の<style>から移設） ---------- */
.lp-header { position: fixed; top:0; left:0; right:0; z-index:100; background:rgba(255,255,255,.97); border-bottom:1px solid var(--line); }
.lp-header .in { max-width:1080px; margin:0 auto; padding:0 20px; height:64px; display:flex; align-items:center; gap:20px; }
.lp-tel { margin-left:auto; text-align:right; text-decoration:none; color:var(--navy); }
.lp-tel b { font-size:1.25rem; letter-spacing:.03em; }
.lp-tel small { display:block; font-size:.7rem; color:var(--sub); }
.lp-hero { margin-top:64px; position:relative; min-height:480px; display:flex; align-items:center; background:url(img/hero-sunset.webp) center/cover; }
.lp-hero::after { content:""; position:absolute; inset:0; background:linear-gradient(95deg, rgba(23,50,84,.72) 0%, rgba(23,50,84,.35) 60%, rgba(23,50,84,.1) 100%); }
.lp-hero .in { position:relative; z-index:2; max-width:1080px; margin:0 auto; padding:60px 20px; color:#fff; }
.lp-area { display:inline-block; background:var(--green); font-size:.82rem; font-weight:700; padding:5px 16px; border-radius:20px; letter-spacing:.1em; margin-bottom:16px; }
.lp-hero h1 { font-size:clamp(1.6rem,3.6vw,2.5rem); line-height:1.6; letter-spacing:.06em; text-shadow:0 2px 12px rgba(0,0,0,.5); margin-bottom:14px; text-wrap:balance; }
.lp-hero .sub { max-width:560px; text-shadow:0 1px 10px rgba(0,0,0,.5); margin-bottom:24px; }
.lp-badges { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:28px; }
.lp-badges span { background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.55); border-radius:20px; padding:5px 15px; font-size:.82rem; font-weight:600; }
.lp-cta-fixed { position:fixed; bottom:0; left:0; right:0; z-index:99; background:rgba(18,40,76,.96); padding:10px 14px; display:flex; gap:10px; justify-content:center; align-items:center; }
.lp-cta-fixed a.tel-btn { color:#fff; text-decoration:none; font-weight:700; font-size:1.05rem; }
.lp-cta-fixed a.tel-btn small { display:block; font-size:.66rem; font-weight:600; color:rgba(255,255,255,.75); }
body.lp-page { padding-bottom:64px; }
.lp-sec { padding:70px 0; }
.lp-sec.gray { background:var(--gray); }
.lp-sec .in { max-width:1080px; margin:0 auto; padding:0 20px; }
.lp-sec h2 { color:var(--navy); font-size:clamp(1.3rem,2.6vw,1.7rem); letter-spacing:.06em; margin-bottom:30px; text-align:center; text-wrap:balance; }
@media (max-width:760px) {
  .lp-header .in { height:58px; padding:0 14px; }
  .lp-tel b { font-size:1.05rem; }
  .lp-hero { margin-top:58px; min-height:400px; }
  .lp-hero .in { padding:40px 18px; }
  .lp-sec { padding:48px 0; }
  .lp-sec .in { padding:0 18px; }
  .lp-cta-fixed { padding:9px 12px calc(9px + env(safe-area-inset-bottom)); }
  .lp-cta-fixed a.tel-btn { font-size:1rem; text-align:center; }
  body.lp-page { padding-bottom:70px; }
}

/* 関連事業（related / jaane / trueblue） */
.rel-intro { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; }
.rel-logo { margin: 0; }
.rel-logo img { display: block; width: 100%; height: auto; border-radius: 6px; }
.rel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 20px; }
.rel-card { border: 1px solid var(--line); }
.rel-card .thumb { background-size: contain; background-repeat: no-repeat; }
.rel-card .thumb.bg-jaane { background-color: #f76e3f; }
.rel-card .thumb.bg-trueblue { background-color: #cdefec; }
.rel-card p { font-size: .9rem; color: var(--sub); line-height: 1.8; }
@media (max-width: 760px) { .rel-intro, .rel-grid { grid-template-columns: 1fr; gap: 20px; } .rel-logo { max-width: 360px; } }
/* お客様紹介（掲載イメージのサンプル表示と記事の型） */
.sample-note { background: #fff7e6; border: 1px solid #f0b85a; border-left: 5px solid #d9822b; color: #6b4410; padding: 14px 18px; font-size: .9rem; line-height: 1.8; margin-bottom: 22px; }
.sample-note b { display: block; color: #a85a12; letter-spacing: .08em; margin-bottom: 2px; }
.case-catch { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 700; color: var(--navy); line-height: 1.7; margin: 10px 0 8px; }
.case-who { color: var(--sub); font-size: .92rem; margin-bottom: 24px; }
.case-photo { aspect-ratio: 16/7; background: #e4e8ee; color: var(--sub); display: flex; align-items: center; justify-content: center; font-size: .9rem; border: 1px dashed #b8c2cf; }
.case-photo.small { aspect-ratio: 1; width: 140px; flex: none; font-size: .78rem; text-align: center; padding: 8px; }
.case-qa h3 { color: var(--navy); font-size: 1.05rem; margin: 30px 0 10px; padding-left: 14px; border-left: 4px solid var(--green); }
.case-qa h3:first-child { margin-top: 0; }
.case-qa p { line-height: 2; max-width: 860px; }
.case-staff { display: flex; gap: 22px; align-items: flex-start; background: #fff; padding: 22px; margin-top: 36px; }
.case-staff-name { font-weight: 700; color: var(--navy); margin-bottom: 6px; }
@media (max-width: 760px) { .case-staff { flex-direction: column; } .case-photo.small { width: 110px; } }

/* ---------- スマホの見え方の調整（2026-11-15） ---------- */
/* 見出しは、対応しているブラウザでは文節で改行し、行の長さをそろえる */
h1, h2, h3 { text-wrap: balance; word-break: auto-phrase; }
/* お知らせの帯は1行に収め、はみ出す分は「…」にする */
.news-strip li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 760px) {
  /* 画面下の固定バーの小さな文字を少し大きく */
  .m-bar small { font-size: .7rem; }
  /* TOPに戻るボタンは小さめにして、本文に重なっても読めるよう少し透かす */
  .to-top { width: 40px; height: 40px; font-size: .95rem; right: 10px; bottom: 82px; }
  .to-top.show { opacity: .82; }
  /* 図解は横にスクロールして見る。スクロールできることを図の上に書く */
  .figure-box { padding: 18px 14px; }
  .figure-box::before { content: "← 図は横にスクロールできます →"; display: block; position: sticky; left: 0; font-size: .78rem; color: var(--sub); text-align: center; margin-bottom: 10px; }
}

@media (max-width: 620px) {
  /* フッターのリンクは2列にして、縦の長さを半分に */
  .footer-in { padding: 46px 18px 24px; }
  .footer-grid { gap: 28px; }
  .footer-grid ul { columns: 2; column-gap: 18px; }
  .footer-grid li { break-inside: avoid; }
  /* 3列以上の表は、1行ずつカードの形に積む（列の見出しは各項目の上に出す） */
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack th, table.stack td { display: block; width: 100%; }
  table.stack tr { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 12px; background: #fff; }
  table.stack tbody tr:nth-child(odd) { background: #fff; }
  table.stack tr > :first-child { background: rgba(58,118,184,.07); color: var(--navy); font-weight: 700; border-bottom: 1px solid var(--line); }
  table.stack th, table.stack td { border-bottom: 0; padding: 10px 14px; text-align: left; }
  table.stack td + td { border-top: 1px dashed var(--line); }
  table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: .74rem; font-weight: 700; color: var(--green-dark); letter-spacing: .04em; margin-bottom: 2px; }
}

/* 幅の狭いスマホ（iPhone SE など）でも、事務所名と英語名を1行ずつに収める */
@media (max-width: 420px) {
  .header-in { padding: 0 14px; gap: 10px; }
  .brand { gap: 8px; min-width: 0; }
  .brand-logo { height: 34px; }
  .brand-name { font-size: 1rem; letter-spacing: .03em; white-space: nowrap; }
  .brand-sub { font-size: .52rem; letter-spacing: .1em; white-space: nowrap; }
}

/* 相続LP：スマホでは電話番号を画面下の固定バーに任せ、上の帯は事務所名だけにする */
@media (max-width: 620px) {
  .lp-header .lp-tel { display: none; }
  .lp-cta-fixed a.tel-btn small { white-space: nowrap; }
}
@media (max-width: 420px) {
  .lp-cta-fixed .tap { display: none; }
}

/* 記事の中のボタンは、本文のリンクの色・下線を受け継がない */
.art a[class*="btn"] { color: #fff; text-decoration: none; word-break: normal; }

/* 2列の表（プロフィールなど）は、スマホでは左の見出し列を細くして本文の幅を確保する */
@media (max-width: 620px) {
  table.spec:not(.stack) th { width: 6.5em; padding-right: 8px; }
  table.spec:not(.stack) th, table.spec:not(.stack) td { padding-top: 12px; padding-bottom: 12px; }
}
