/* 図鑑 site-05「端正な税理士事務所サイト」の配色。本人の選択（2026-11-03）。
   --accent 主色。ボタン・表の見出し・フッター・「17時」
   --text   本文
   --base   背景
   --tint   入口カードの帯だけ
   --sub    補足 */
:root {
  --accent: #062C62;
  --text: #0C1E38;
  --base: #FDFDFD;
  --tint: #EEF2F8;
  --sub: #4A5A72;
  --line: #0C1E3826;
  --head: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; /* 図鑑の書体指定どおり */
  --body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--base); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.9; }
#root { overflow-x: clip; }
h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.hero-lead, .hero-catch, .shift-item p { text-wrap: pretty; }
.hero-catch, .shift-item p:last-child { text-wrap: balance; }
a { color: inherit; }
img { display: block; width: 100%; height: auto; }
::selection { background: var(--accent); color: var(--base); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: 16px; top: -60px; background: var(--accent); color: var(--base); padding: 8px 16px; z-index: 10; transition: top .2s; }
.skip:focus { top: 8px; }

/* ヘッダー。右上に研修の相談を常設する */
.top { display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; padding: 16px 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--accent); text-decoration: none; margin-right: auto; }
.mark { width: 26px; height: 26px; flex: none; color: currentColor; }
.links { display: flex; flex-wrap: wrap; gap: 2px 24px; font-size: 14px; }
.top .links a { display: inline-block; padding: 8px 0; text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) no-repeat left 88% / 0 1px; transition: background-size .25s; }
.top .links a:hover { background-size: 100% 1px; }

.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 28px; background: var(--accent); color: var(--base); border: 1px solid var(--accent); border-radius: 2px; font-weight: 500; text-decoration: none; transition: background-color .2s; }
.btn:hover { background: #041E44; }
.btn-top { min-height: 44px; padding: 8px 20px; font-size: 14px; }
.text-link { display: inline-block; padding: 8px 0; font-weight: 500; color: var(--accent); text-underline-offset: 5px; transition: opacity .2s; }
.text-link:hover { opacity: .7; }

/* FV。絵をページ幅いっぱいに敷き、左の余白に文字を置く */
.hero { position: relative; animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-img { height: min(78vh, 680px); min-height: 480px; object-fit: cover; object-position: right center; }
.hero-text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.hero h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.3; letter-spacing: .04em; color: var(--accent); max-width: 9em; }
.hero-lead { margin-top: 24px; max-width: 26em; }
.nb { display: inline-block; }
.hero-catch { margin-top: 16px; max-width: 26em; font-family: var(--head); font-weight: 700; font-size: 18px; }

/* 22時から17時へ。このページで一番伝えたい変化 */
.shift { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; max-width: 1200px; margin: 0 auto; padding: 36px 32px; border-bottom: 1px solid var(--line); }
.shift-item { display: flex; align-items: baseline; gap: 16px; }
.shift-item p:last-child { font-size: 14px; line-height: 1.7; max-width: 15em; color: var(--sub); }
.shift-time { font-family: var(--head); font-weight: 700; font-size: 32px; line-height: 1.2; white-space: nowrap; color: var(--sub); }
.shift-now .shift-time { font-size: 52px; color: var(--accent); }
.shift-now p:last-child { color: var(--text); font-weight: 500; }
.shift-bar { height: 1px; background: var(--line); position: relative; }
.shift-bar span { position: absolute; inset: -1px 0 auto 0; height: 2px; background: var(--accent); transform-origin: left; animation: draw 1.2s .4s cubic-bezier(.2,.7,.2,1) both; }

/* 節 */
.sec { max-width: 1200px; margin: 0 auto; padding: 64px 32px 0; }
.sec-title { font-size: 26px; line-height: 1.5; color: var(--accent); margin-bottom: 20px; }
.lead { max-width: 42em; margin-bottom: 28px; }
.sec-side { display: grid; grid-template-columns: 200px 1fr; gap: 16px 32px; }

.news > div { display: grid; grid-template-columns: 7em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.news dt { font-size: 14px; color: var(--sub); line-height: 1.9; }
.news-more summary { display: inline-block; padding: 14px 0 8px; font-weight: 500; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 5px; }
.news-more[open] summary { margin-bottom: 4px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { border: 1px solid var(--line); padding: 0 0 20px; transition: border-color .2s; }
.card:hover { border-color: var(--accent); }
.card img { aspect-ratio: 3 / 2; object-fit: cover; }
.card h3 { font-size: 19px; color: var(--accent); margin: 16px 20px 4px; line-height: 1.6; }
.card p { margin: 0 20px; font-size: 15px; line-height: 1.85; }

.stats { width: 100%; border-collapse: collapse; border: 1px solid var(--line); }
.stats thead th { background: var(--accent); color: var(--base); font-weight: 500; font-size: 14px; padding: 10px 20px; text-align: left; }
.stats tbody tr { border-top: 1px solid var(--line); }
.stats tbody th, .stats td { text-align: left; vertical-align: middle; padding: 14px 20px; line-height: 1.7; font-weight: 400; }
.stats tbody th { font-size: 15px; width: 46%; }
.stats .num { font-family: var(--head); font-weight: 700; font-size: 19px; color: var(--accent); }
.stats .when { font-size: 13px; color: var(--sub); line-height: 1.6; }
.times { margin-top: 28px; }
.times li { font-family: var(--head); font-weight: 700; font-size: 17px; padding: 4px 0; }
.times ul { margin-top: 6px; }
.note { margin-top: 8px; font-size: 14px; color: var(--sub); }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principle { padding: 24px 28px 24px 0; }
.principle + .principle { padding-left: 28px; border-left: 1px solid var(--line); }
.principle:last-child { padding-right: 0; }
.principle h3 { font-size: 18px; line-height: 1.6; color: var(--accent); margin-bottom: 6px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split-img { position: sticky; top: 24px; }
.prose p + p { margin-top: 1.2em; }

.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1136px; margin: 64px auto 0; padding: 24px; background: var(--tint); }
.path { background: var(--base); border: 1px solid var(--line); padding: 20px 24px; }
.path h3 { font-size: 18px; color: var(--accent); line-height: 1.6; }

.rows { border-top: 1px solid var(--line); margin-bottom: 28px; }
.row { display: grid; grid-template-columns: 11em 1fr; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.row dt { font-weight: 700; font-size: 15px; color: var(--accent); }

.te-cta { margin-top: 24px; }
.products { margin-top: 48px; }
.products h3 { font-size: 20px; line-height: 1.6; color: var(--accent); margin-bottom: 6px; }
.products > p { margin-bottom: 20px; }
.products .row .text-link { padding: 0; font-weight: 700; font-size: 15px; align-self: start; }
.magazine { margin: 8px 0 20px; padding: 24px 0 28px; border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent); }
.magazine p { max-width: 42em; margin-bottom: 16px; }

.foot { margin-top: 72px; background: var(--accent); color: var(--base); }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; padding: 28px 32px 12px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 17px; }
.foot .links a { display: inline-block; padding: 8px 0; text-underline-offset: 4px; }
.foot-small { padding: 0 32px 24px; font-size: 12px; opacity: .85; }

/* 動き。読み込みの立ち上がり、線の伸び、スクロールの出現 */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal.reveal-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero, .shift-bar span { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .skip, .btn, .text-link, .card, .top .links a { transition: none; }
}

@media (max-width: 860px) {
  .top { padding: 10px 16px; gap: 4px 12px; }
  .top .links { order: 3; width: 100%; gap: 0 16px; font-size: 13px; }
  .brand { font-size: clamp(13px, 4vw, 15px); gap: 6px; }
  .brand .mark { width: 22px; height: 22px; }
  .btn-top { min-height: 44px; padding: 6px 10px; font-size: 12.5px; white-space: nowrap; }

  /* スマホは文字を先に、絵の余白に少し潜らせる */
  .hero-text { position: static; padding: 20px 16px 0; }
  .hero h1 { font-size: clamp(32px, 10vw, 38px); }
  .hero-lead { margin-top: 12px; font-size: 15px; line-height: 1.8; }
  .hero-catch { margin-top: 8px; font-size: 16px; }
  .hero { display: flex; flex-direction: column-reverse; }
  .hero-img { height: auto; min-height: 0; aspect-ratio: 3 / 2; object-position: right bottom; margin-top: 12px; }

  .shift { grid-template-columns: 1fr; gap: 12px; padding: 24px 16px; }
  .shift-bar { display: none; }
  .shift-now .shift-time { font-size: 44px; }

  .sec { padding: 48px 16px 0; }
  .sec-title { font-size: 23px; }
  .sec-side { grid-template-columns: 1fr; gap: 0; }
  .news > div { grid-template-columns: 1fr; gap: 0; }
  .cards { grid-template-columns: 1fr; }
  .stats, .stats tbody, .stats tr, .stats tbody th, .stats td { display: block; width: 100%; }
  .stats thead { display: none; }
  .stats tbody tr { padding: 12px 16px; }
  .stats tbody tr:first-child { border-top: 0; }
  .stats tbody th, .stats td { padding: 0; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 20px 0; border-left: 0; }
  .principle + .principle { border-top: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split-img { position: static; }
  .paths { grid-template-columns: 1fr; margin: 48px 16px 0; padding: 16px; gap: 16px; }
  .row { grid-template-columns: 1fr; }
  .foot { margin-top: 56px; }
  .foot-in { padding: 24px 16px 8px; }
  .foot-small { padding: 0 16px 20px; }
}

.row-multi dd { grid-column: 2; }
.row-multi dd + dd { margin-top: 6px; }
.row-multi dt { grid-row: 1 / span 3; }
@media (max-width: 860px) { .row-multi dd { grid-column: 1; } .row-multi dt { grid-row: auto; } }
