@charset "UTF-8";
/* ==========================================================
   小森田税理士事務所  共通スタイル
   ========================================================== */

:root {
  --key: #1c4f86;
  --key-dark: #143a63;
  --sub: #f2f5f9;
  --btn: #d0702c;
  --btn-dark: #b05a1c;
  --text: #1f2933;
  --text-sub: #4a5563;
  --line: #d9e1ea;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(28, 79, 134, .08);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--key); }
a:hover { color: var(--key-dark); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.5; margin: 0; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 800px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--key); color: #fff; padding: 8px 16px; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 28px;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 16px; line-height: 1.4;
  text-decoration: none; transition: background-color .2s, color .2s, transform .2s;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn--primary { background: var(--btn); color: #fff; box-shadow: 0 4px 12px rgba(208, 112, 44, .3); }
.btn--primary:hover { background: var(--btn-dark); color: #fff; transform: translateY(-1px); }
.btn--outline { background: #fff; color: var(--key); border-color: var(--key); }
.btn--outline:hover { background: var(--key); color: #fff; }
.btn--lg { min-height: 60px; padding: 16px 36px; font-size: 18px; }
.btn--block { display: flex; width: 100%; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--header-h);
  max-width: 1280px; /* ヘッダーだけ少し広く使い、メニューを1行に収める */
}
/* ヘッダー内の文字は折り返さない */
.site-header .logo,
.site-header .gnav__list a,
.site-header .header-tel,
.site-header .header-cta .btn { white-space: nowrap; flex-shrink: 0; }

/* ロゴ（文字） */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--key); }
/* 三本の木のマーク（紺・背景透明のPNG） */
.logo__mark { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.logo__text { display: flex; flex-direction: column; line-height: 1.25; }
.logo__name { font-weight: 700; font-size: 19px; letter-spacing: .06em; }
.logo__sub { font-size: 11px; color: var(--text-sub); letter-spacing: .04em; }

.gnav__list { display: flex; align-items: center; gap: 2px; list-style: none; }
.gnav__list a {
  display: block; padding: 8px 10px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500;
}
.gnav__list a:hover { background: var(--sub); color: var(--key); }
.gnav__list a[aria-current="page"] { color: var(--key); font-weight: 700; box-shadow: inset 0 -3px 0 var(--key); border-radius: 0; }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-tel { text-decoration: none; color: var(--key); text-align: right; line-height: 1.3; }
.header-tel__num { display: block; font-weight: 700; font-size: 20px; letter-spacing: .04em; }
.header-tel__time { display: block; font-size: 11px; color: var(--text-sub); }
.header-cta .btn { min-height: 44px; padding: 10px 20px; font-size: 15px; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer;
  position: relative; border-radius: 8px;
}
.nav-toggle span {
  position: absolute; left: 12px; width: 24px; height: 2px; background: var(--key);
  transition: transform .25s, opacity .25s;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 30px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.gnav__cta { display: none; }

/* ---------- セクション共通 ---------- */
.section { padding: 96px 0; }
.section--sub { background: var(--sub); }

.section-head { text-align: center; margin-bottom: 48px; }
.section-head__en {
  display: block; color: var(--key); font-size: 13px; font-weight: 700; letter-spacing: .2em; margin-bottom: 4px;
}
.section-head__title { font-size: 28px; font-weight: 700; }
.section-head__title::after {
  content: ""; display: block; width: 40px; height: 3px; background: var(--key);
  margin: 16px auto 0; border-radius: 2px;
}
.section-head__lead { margin: 20px auto 0; max-width: 680px; color: var(--text-sub); }

.h3 {
  font-size: 20px; font-weight: 700; padding-left: 14px;
  border-left: 4px solid var(--key); margin: 48px 0 16px;
}
.h3:first-child { margin-top: 0; }

.more { text-align: center; margin-top: 40px; }
.more--left { text-align: left; margin-top: 24px; }

.note-text { font-size: 14px; color: var(--text-sub); }
.note-text--center { text-align: center; margin-top: 24px; }

/* ---------- 仮の画像（グレー枠） ---------- */
.ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: #e3e6ea; border: 2px dashed #9aa3ad; border-radius: var(--radius);
  color: #4a5563; font-size: 14px; font-weight: 500; line-height: 1.6;
  padding: 16px; aspect-ratio: 4 / 3; width: 100%;
}
.ph--wide { aspect-ratio: 16 / 9; }
.ph--portrait { aspect-ratio: 3 / 4; }
.ph--map { aspect-ratio: 16 / 9; }

/* ---------- 写真 ---------- */
.photo {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.photo--portrait { aspect-ratio: 3 / 4; }
.photo--banner { aspect-ratio: 16 / 7; margin-bottom: 32px; }
.service-grid.service-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .service-grid.service-grid--3 { grid-template-columns: 1fr; } }

/* ---------- トップ：メインビジュアル ---------- */

.hero { background: linear-gradient(180deg, var(--sub) 0%, #fff 100%); padding: 72px 0 80px; }
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero__label {
  display: inline-block; background: #fff; color: var(--key); border: 1px solid var(--key);
  border-radius: 999px; padding: 4px 16px; font-size: 14px; font-weight: 700; margin-bottom: 20px;
}
.hero__title { font-size: 40px; font-weight: 700; line-height: 1.45; color: var(--key-dark); margin-bottom: 20px; }
.hero__title em { font-style: normal; color: var(--key); background: linear-gradient(transparent 70%, rgba(208, 112, 44, .25) 70%); }
.hero__lead { font-size: 17px; color: var(--text); margin-bottom: 32px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin-top: 28px; font-size: 14px; color: var(--text-sub); }
.hero__facts li::before { content: "✓ "; color: var(--key); font-weight: 700; }

/* ---------- 対象別の入口 ---------- */
.target-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.target-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px; display: flex; flex-direction: column;
}
.target-card__tag { color: var(--key); font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.target-card__title { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.target-card ul { list-style: none; margin-bottom: 24px; flex: 1; }
.target-card li { position: relative; padding-left: 24px; margin-bottom: 6px; }
.target-card li::before {
  content: ""; position: absolute; left: 4px; top: .75em; width: 8px; height: 8px; border-radius: 50%; background: var(--key);
}
.target-card .text-link { font-weight: 700; }

/* ---------- 業務カード ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-grid--2 { grid-template-columns: repeat(2, 1fr); }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px 24px;
}
.service-card__icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--sub); color: var(--key);
  display: grid; place-items: center; margin-bottom: 16px;
}
.service-card__icon svg { width: 32px; height: 32px; }
.service-card__title { font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.service-card__list { list-style: none; font-size: 15px; }
.service-card__list li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.service-card__list li:last-child { border-bottom: 0; }
.service-card__desc { font-size: 15px; color: var(--text-sub); margin-bottom: 12px; }

/* ---------- 代表あいさつ ---------- */
.greeting { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
.greeting__photo figcaption { margin-top: 12px; text-align: center; font-size: 15px; }
.greeting__photo figcaption strong { display: block; font-size: 20px; letter-spacing: .1em; }
.greeting__photo { margin: 0; }
.greeting__catch { font-size: 24px; font-weight: 700; color: var(--key-dark); margin-bottom: 20px; line-height: 1.6; }
.greeting__sign { text-align: right; margin-top: 24px; font-weight: 500; }
.greeting__sign strong { font-size: 20px; margin-left: 8px; letter-spacing: .1em; }

/* ---------- 表 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table {
  width: 100%; border-collapse: collapse; background: #fff;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
}
.table th, .table td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
.table tbody th { background: var(--sub); width: 30%; font-weight: 700; }
.table thead th { background: var(--key); color: #fff; font-weight: 700; }
.table td.price { font-weight: 700; color: var(--key-dark); white-space: nowrap; }

.dummy { background: #fff3c4; outline: 1px dashed #c9a400; padding: 0 4px; border-radius: 3px; }

/* ---------- 流れ（ステップ） ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 24px 28px; box-shadow: var(--shadow);
}
.step__num {
  position: absolute; top: -20px; left: 24px;
  width: 44px; height: 44px; border-radius: 50%; background: var(--key); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 18px;
}
.step__title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--text-sub); margin: 0; }

/* ---------- お知らせ ---------- */
.news-list { list-style: none; border-top: 1px solid var(--line); }
.news-list li { display: flex; gap: 24px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.news-list time { color: var(--key); font-weight: 700; white-space: nowrap; min-width: 6.5em; }

/* ---------- 事務所情報（トップ・概要） ---------- */
.office { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.info-list { list-style: none; }
.info-list li { display: grid; grid-template-columns: 7em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list li span:first-child { font-weight: 700; color: var(--key); }

/* ---------- 相談バナー（全ページ共通） ---------- */
.cta-band { background: var(--key); color: #fff; padding: 72px 0; text-align: center; }
.cta-band__title { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.cta-band__lead { margin-bottom: 32px; }
.cta-band__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.cta-band .btn--tel { background: #fff; color: var(--key); }
.cta-band .btn--tel:hover { background: var(--sub); color: var(--key-dark); }
.cta-band__time { margin-top: 16px; font-size: 14px; opacity: .95; }

/* ---------- 下層ページの見出し帯 ---------- */
.page-head { background: var(--sub); padding: 48px 0 40px; border-bottom: 1px solid var(--line); }
.page-head__en { color: var(--key); font-size: 13px; font-weight: 700; letter-spacing: .2em; }
.page-head__title { font-size: 32px; font-weight: 700; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--text-sub); margin-top: 8px; }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; }

/* ---------- お問い合わせページ ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 36px 32px; text-align: center;
}
.contact-card__title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.contact-card__tel { display: block; font-size: 32px; font-weight: 700; color: var(--key); text-decoration: none; letter-spacing: .04em; margin: 8px 0; }
.contact-card p { color: var(--text-sub); font-size: 15px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--key-dark); color: #fff; padding: 56px 0 24px; }
.site-footer a { color: #fff; }
.site-footer__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.site-footer .logo { color: #fff; }
/* 紺の背景でマークが沈まないよう、白く反転して表示 */
.site-footer .logo__mark { filter: brightness(0) invert(1); }
.site-footer .logo__sub { color: #d6e0eb; }
.site-footer__info { margin-top: 20px; font-size: 14px; line-height: 1.9; }
.fnav { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; font-size: 15px; }
.fnav a { text-decoration: none; }
.fnav a:hover { text-decoration: underline; color: #fff; }
.copyright { text-align: center; font-size: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .2); color: #d6e0eb; }

/* ---------- スマホ固定ボタン ---------- */
.fixed-cta { display: none; }

/* ==========================================================
   レスポンシブ
   ========================================================== */
/* 電話番号まで1行に並ばない幅では、ヘッダーの電話番号を隠す（ボタンは残す） */
@media (max-width: 1200px) {
  .header-tel { display: none; }
}

@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}

/* メニューが1行に収まらない幅では、早めにハンバーガーメニューへ切り替える */
@media (max-width: 1000px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: block; }
  .header-cta { display: none; }

  .gnav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: #fff; padding: 24px; overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s;
  }
  .gnav.is-open { transform: translateX(0); visibility: visible; }
  .gnav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .gnav__list a { padding: 16px 8px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 17px; }
  .gnav__list a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--key); padding-left: 16px; }
  .gnav__cta { display: grid; gap: 12px; margin-top: 24px; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head__title { font-size: 22px; }

  .hero { padding: 32px 0 48px; }
  .hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero__title { font-size: 28px; margin-bottom: 12px; }
  .hero__lead { font-size: 16px; margin-bottom: 24px; }
  .hero__btns .btn { flex: 1 1 100%; }
  .hero__facts { display: none; } /* スマホの最初の画面はすっきり見せる */

  .target-grid, .office, .contact-grid, .service-grid--2 { grid-template-columns: 1fr; }
  .greeting { grid-template-columns: 1fr; gap: 32px; }
  .greeting__photo { max-width: 280px; margin: 0 auto; }
  .greeting__catch { font-size: 20px; }

  .page-head { padding: 32px 0 28px; }
  .page-head__title { font-size: 24px; }

  .cta-band { padding: 56px 0; }
  .cta-band__title { font-size: 22px; }
  .cta-band__btns .btn { flex: 1 1 100%; }

  .site-footer { padding-bottom: 96px; } /* 固定ボタンの分 */
  .site-footer__inner { grid-template-columns: 1fr; }

  .fixed-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, .06);
  }
  .fixed-cta .btn { min-height: 52px; padding: 8px; font-size: 15px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .logo__name { font-size: 16px; }
  .logo__sub { font-size: 10px; }
  .logo__mark { width: 36px; height: 36px; }
  .service-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .target-card, .contact-card { padding: 28px 20px; }
  .table th, .table td { padding: 12px 14px; font-size: 15px; }
  .table--stack tbody th, .table--stack tbody td { display: block; width: 100%; }
  .table--stack tbody th { border-bottom: 0; padding-bottom: 6px; }
  .news-list li { flex-direction: column; gap: 2px; }
  .info-list li { grid-template-columns: 1fr; gap: 2px; }
  .fnav { grid-template-columns: 1fr; }
  .contact-card__tel { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
