/* ==========================================================
   和社会保険労務士事務所
   色：白 × 紺（文字）× 緑（主役）× 黄・コーラル（差し色）
   動き：読み込み時の登場、スクロール連動の表示、流れる帯、浮遊する図形
   ========================================================== */

:root {
  --bg: #fffdf7;
  --white: #ffffff;
  --ink: #1b2440;
  --ink-soft: #56607a;
  --green: #10b981;
  --green-deep: #047857;
  --mint: #e2f8ee;
  --yellow: #ffd43b;
  --coral: #ff7b5c;
  --sky: #e9f0ff;
  --line: #e7e3d6;
  --error: #c0261d;

  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;

  --radius: 20px;
  --wrap: 1100px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; height: auto; }

a { color: var(--green-deep); text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

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

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 40px, 720px); }

/* ---------- 共通パーツ ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 14px 4px 10px;
  background: var(--mint); color: var(--green-deep);
  border-radius: 999px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s ease-in-out infinite; }

.section { padding: 96px 0; position: relative; }

.section-title, .page-title {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.7rem, 3.8vw, 2.5rem);
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-wrap: balance;
}
.section-lead { margin-top: 14px; color: var(--ink-soft); max-width: 40em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 30px;
  background: var(--yellow); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  font: inherit; font-family: var(--font-head); font-weight: 700; letter-spacing: 0.06em; text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s;
}
.btn::after { content: "→"; transition: transform .25s var(--pop); }
.btn:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:hover::after { transform: translateX(5px); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-ghost { background: var(--white); }
.btn-ghost::after { content: "↓"; }
.btn-ghost:hover::after { transform: translateY(4px); }
.btn-light { background: var(--white); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 0.92rem; box-shadow: 3px 3px 0 var(--ink); }
.btn-small::after { content: none; }

/* ---------- スクロールで表示（JavaScriptが有効なときだけ隠す） ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal].is-done { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; transition-delay: 0s; }

/* ---------- ヘッダー ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 247, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(27, 36, 64, 0.06); }

.progress {
  position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--coral));
  transform: scaleX(0); transform-origin: left;
}

.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--green); color: var(--white);
  font-family: var(--font-head); font-size: 1.45rem; font-weight: 900; line-height: 1;
  transition: transform .5s var(--pop);
}
.brand:hover .brand-mark { transform: rotate(360deg) scale(1.08); }
.brand-text { display: flex; flex-direction: column; line-height: 1.4; }
.brand-name { font-family: var(--font-head); font-weight: 900; font-size: 1.05rem; letter-spacing: 0.04em; }
.brand-area { font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.12em; }

.site-nav ul { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { position: relative; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.93rem; padding: 8px 0; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; border-radius: 3px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle { display: none; }

/* ---------- ヒーロー ---------- */

.hero { position: relative; padding: 72px 0 88px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; opacity: .55; animation: drift 14s ease-in-out infinite; }
.b1 { width: 420px; height: 420px; background: var(--mint); left: -140px; top: -120px; }
.b2 { width: 260px; height: 260px; background: #fff3c4; right: 34%; bottom: -120px; animation-duration: 18s; animation-delay: -4s; }
.b3 { width: 180px; height: 180px; background: var(--sky); right: -40px; top: 30px; animation-duration: 11s; animation-delay: -7s; }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; }

.hero-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.3rem, 5.6vw, 4rem);
  line-height: 1.35;
  letter-spacing: 0.04em;
  margin: 4px 0 24px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .line > span { display: inline-block; animation: lineUp .9s var(--ease) both; animation-delay: var(--d, 0s); }
.mark { position: relative; display: inline-block; color: var(--green-deep); }
.mark::after {
  content: ""; position: absolute; left: -4%; right: -4%; bottom: .06em; height: .22em; border-radius: 99px;
  background: var(--yellow); z-index: -1;
  transform: scaleX(0); transform-origin: left; animation: draw .6s var(--ease) .95s both;
}

.hero-fade { animation: fadeUp .8s var(--ease) both; animation-delay: var(--d, 0s); }
.hero-lead { color: var(--ink-soft); font-size: 1.05rem; max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }

.hero-stats { display: flex; gap: 36px; margin-top: 40px; }
.hero-stats li { display: flex; align-items: baseline; gap: 6px; font-weight: 700; color: var(--ink-soft); }
.hero-stats b { font-family: var(--font-head); font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 1.2ch; }

.hero-mark { position: relative; justify-self: center; width: min(100%, 400px); aspect-ratio: 1; display: grid; place-items: center; animation: popIn .9s var(--pop) .2s both; }
.hero-disc {
  position: relative; display: grid; place-items: center;
  width: 72%; aspect-ratio: 1; border-radius: 50%;
  background: var(--green);
  box-shadow: 10px 10px 0 var(--ink);
  border: 3px solid var(--ink);
  animation: bob 5s ease-in-out infinite;
}
.hero-kanji { font-family: var(--font-head); font-weight: 900; font-size: clamp(7rem, 17vw, 11rem); line-height: 1; color: var(--white); }

.orbit { position: absolute; border-radius: 50%; border: 2px dashed rgba(27, 36, 64, .22); animation: spin 26s linear infinite; }
.o1 { inset: 2%; }
.o2 { inset: -8%; animation-duration: 40s; animation-direction: reverse; border-style: dotted; }
.orbit i { position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--coral); border: 2px solid var(--ink); }
.o2 i { background: var(--yellow); top: auto; bottom: -9px; }

.chip {
  position: absolute; padding: 6px 16px;
  background: var(--white); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--font-head); font-weight: 700; font-size: 0.88rem; white-space: nowrap;
  animation: bob 4s ease-in-out infinite;
}
.c1 { left: 0; top: 14%; animation-delay: -1s; }
.c2 { right: 0; top: 26%; background: var(--yellow); animation-delay: -2.2s; animation-duration: 4.6s; }
.c3 { left: 6%; bottom: 12%; background: #ffd9cf; animation-delay: -.4s; animation-duration: 5.2s; }
.c4 { right: 4%; bottom: 4%; animation-delay: -3s; animation-duration: 3.8s; }

/* ---------- 流れる帯 ---------- */

.marquee { background: var(--ink); color: var(--white); overflow: hidden; contain: paint; padding: 16px 0; transform: rotate(-1.2deg) scale(1.02); margin: -8px 0 8px; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; flex-shrink: 0; }
.marquee li { display: flex; align-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.08em; white-space: nowrap; padding-right: 28px; }
.marquee li::after { content: ""; width: 12px; height: 12px; border-radius: 50%; margin-left: 28px; background: var(--yellow); }
.marquee li:nth-child(3n+1)::after { background: var(--green); }
.marquee li:nth-child(3n+2)::after { background: var(--coral); }

/* ---------- こんなとき ---------- */

.worry-list { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.worry-list li {
  position: relative;
  padding: 26px 24px 24px 72px;
  background: var(--white);
  border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--mint);
  line-height: 1.7; font-weight: 700;
}
.worry-list li:hover { transform: translate(-3px, -5px) rotate(-.6deg); box-shadow: 9px 11px 0 var(--green); }
.worry-list li:nth-child(even):hover { transform: translate(-3px, -5px) rotate(.6deg); box-shadow: 9px 11px 0 var(--yellow); }
.worry-q {
  position: absolute; left: 20px; top: 24px;
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--yellow); border: 2px solid var(--ink);
  font-family: var(--font-head); font-weight: 900; line-height: 1;
  transition: transform .4s var(--pop);
}
.worry-list li:hover .worry-q { transform: rotate(18deg) scale(1.15); }

/* ---------- 業務内容（タブ） ---------- */

.services { background: var(--mint); border-radius: 48px 48px 0 0; }
.tabs { margin-top: 40px; display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.tab-list { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 100px; }

.tab {
  display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 62px; padding: 10px 18px;
  background: var(--white); color: var(--ink);
  border: 2px solid transparent; border-radius: 16px;
  font: inherit; font-family: var(--font-head); font-weight: 700; text-align: left; line-height: 1.5;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.tab:hover { transform: translateX(6px); border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); transform: translateX(10px); box-shadow: -6px 6px 0 var(--green); }
.tab-num { font-size: 0.9rem; color: var(--green-deep); letter-spacing: 0.06em; font-weight: 900; }
.tab[aria-selected="true"] .tab-num { color: var(--yellow); }

.panel { position: relative; overflow: hidden; background: var(--white); border: 2px solid var(--ink); border-radius: 24px; padding: 42px 46px 38px; box-shadow: 8px 8px 0 var(--ink); }
.panel + .panel { margin-top: 24px; }
.js-tabs .panel + .panel { margin-top: 0; }
.js-tabs .panel[hidden] { display: none; }
.js-tabs .panel:not([hidden]) { animation: panelIn .5s var(--ease) both; }
.js-tabs .panel:not([hidden]) .item-list li { animation: itemIn .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms + 120ms); }

.panel-num { position: absolute; right: 22px; top: -6px; font-family: var(--font-head); font-weight: 900; font-size: 6.5rem; line-height: 1; color: var(--mint); pointer-events: none; }
.panel h3 { position: relative; font-family: var(--font-head); font-weight: 900; font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.5; padding-right: 2.5em; }
.panel-lead { position: relative; margin-top: 10px; color: var(--ink-soft); max-width: 34em; }

.item-list { margin-top: 26px; display: grid; gap: 8px; }
.item-list li {
  position: relative;
  padding: 11px 16px 11px 44px;
  background: var(--bg); border-radius: 12px;
  line-height: 1.7;
  transition: background-color .2s, transform .2s var(--ease);
}
.item-list li:hover { background: #fff6cf; transform: translateX(6px); }
.item-list li::before {
  content: ""; position: absolute; left: 16px; top: 1.05em;
  width: 16px; height: 9px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green);
  transform: rotate(-45deg); transform-origin: center;
}
.panel-link { margin-top: 26px; font-weight: 700; }
.panel-link a::after { content: " →"; display: inline-block; transition: transform .25s var(--pop); }
.panel-link a:hover::after { transform: translateX(6px); }

/* JavaScriptが動かない場合は一覧を縦に並べる */
.tabs:not(.js-tabs) { grid-template-columns: 1fr; }
.tabs:not(.js-tabs) .tab-list { display: none; }

/* ---------- ご相談の流れ ---------- */

.flow { background: var(--mint); padding-top: 40px; border-radius: 0 0 48px 48px; }
.flow-list { position: relative; margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flow-list::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 4px; border-radius: 4px;
  background: var(--ink); transform-origin: left;
}
.js .flow-list::before { transform: scaleX(0); transition: transform 1.6s var(--ease) .2s; }
.js .flow-list.is-in::before { transform: scaleX(1); }

.flow-list li { position: relative; background: var(--white); border-radius: var(--radius); padding: 0 22px 26px; margin-top: 0; }
.flow-list li:hover { transform: translateY(-8px); box-shadow: 0 16px 30px rgba(27, 36, 64, .1); }
.flow-num {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--yellow); color: var(--ink); border: 3px solid var(--ink);
  font-family: var(--font-head); font-weight: 900; font-size: 1.3rem; line-height: 1;
  margin: 0 0 14px -4px;
  transition: transform .4s var(--pop), background-color .2s;
}
.flow-list li:hover .flow-num { transform: scale(1.18) rotate(-8deg); background: var(--green); color: var(--white); }
.flow-list h3 { font-family: var(--font-head); font-weight: 900; font-size: 1.15rem; }
.flow-list p { margin-top: 8px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.8; }

/* ---------- ごあいさつ ---------- */

.message-inner { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
.message-figure { position: relative; width: min(100%, 320px); justify-self: center; }
.avatar { display: block; width: 100%; border-radius: 50%; border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--green); background: var(--yellow); }
.avatar-bg { fill: var(--yellow); }
.avatar-body { animation: nod 5s ease-in-out infinite; transform-origin: 120px 240px; }
.avatar-eyes { animation: blink 4.5s infinite; transform-origin: 120px 113px; }
.message-hello {
  position: absolute; right: -18px; top: 4px;
  padding: 8px 16px; background: var(--white);
  border: 2px solid var(--ink); border-radius: 18px 18px 18px 4px;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  animation: bob 3.6s ease-in-out infinite;
}
.message-text { margin-top: 20px; font-size: 1.08rem; line-height: 2.1; }
.message-sign { margin-top: 26px; display: flex; align-items: baseline; gap: 14px; }
.message-sign span { font-size: 0.88rem; color: var(--ink-soft); }
.message-sign strong { font-family: var(--font-head); font-weight: 900; font-size: 1.5rem; letter-spacing: 0.12em; }

/* ---------- 事務所概要 ---------- */

.about { padding-top: 24px; }
.about-inner { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.about-table { background: var(--white); border: 2px solid var(--ink); border-radius: 24px; padding: 10px 30px; }
.about-table > div { display: grid; grid-template-columns: 8em 1fr; gap: 16px; padding: 20px 0; border-bottom: 2px dashed var(--line); }
.about-table > div:last-child { border-bottom: 0; }
.about-table dt { font-family: var(--font-head); font-weight: 700; color: var(--green-deep); }
.about-services li { position: relative; padding-left: 20px; }
.about-services li::before { content: ""; position: absolute; left: 2px; top: 0.75em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ---------- CTA ---------- */

.cta { position: relative; overflow: hidden; background: var(--green); color: var(--ink); padding: 96px 0; text-align: center; border-radius: 48px 48px 0 0; }
.cta-bg span { position: absolute; border-radius: 50%; animation: drift 12s ease-in-out infinite; }
.cta-bg span:nth-child(1) { width: 260px; height: 260px; left: -70px; top: -80px; background: rgba(255, 255, 255, .22); }
.cta-bg span:nth-child(2) { width: 150px; height: 150px; right: 8%; top: 18%; background: var(--yellow); opacity: .9; animation-duration: 9s; animation-delay: -3s; }
.cta-bg span:nth-child(3) { width: 200px; height: 200px; right: -50px; bottom: -80px; background: rgba(27, 36, 64, .14); animation-duration: 15s; animation-delay: -6s; }
.cta-inner { position: relative; }
.cta h2 { font-family: var(--font-head); font-weight: 900; font-size: clamp(1.6rem, 3.8vw, 2.5rem); line-height: 1.5; }
.cta p { margin: 14px auto 32px; max-width: 34em; font-weight: 500; }

/* ---------- フッター ---------- */

.site-footer { background: var(--ink); color: #c9cfdf; padding: 52px 0 24px; font-size: 0.92rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-name { font-family: var(--font-head); font-weight: 900; font-size: 1.15rem; color: var(--white); }
.footer-addr { margin-top: 6px; }
.site-footer a { color: #c9cfdf; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-content: start; }
.footer-nav a { display: inline-block; padding: 6px 0; font-weight: 700; }
.copyright { text-align: center; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); color: #98a1b8; }

/* ---------- お問い合わせ ---------- */

.page-head { padding: 64px 0 0; }
.page-head > .wrap > * { animation: fadeUp .7s var(--ease) both; }
.page-head > .wrap > *:nth-child(2) { animation-delay: .1s; }
.page-head > .wrap > *:nth-child(3) { animation-delay: .2s; }
.contact { padding-top: 40px; }
.contact > .wrap { animation: fadeUp .8s var(--ease) .25s both; }

.form { background: var(--white); border: 2px solid var(--ink); border-radius: 24px; box-shadow: 8px 8px 0 var(--green); padding: 40px; }
.field + .field { margin-top: 24px; }
.field label { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 8px; }

.tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; line-height: 1; padding: 5px 9px; border-radius: 999px; background: var(--ink); color: #fff; }
.tag-opt { background: transparent; color: var(--ink-soft); border: 1px solid #b9bfcc; }

.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 12px 16px;
  background: var(--bg); color: var(--ink);
  border: 2px solid #c9cdd8; border-radius: 12px;
  font: inherit; line-height: 1.6;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 180px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--ink); box-shadow: 4px 4px 0 var(--yellow); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { margin-top: 6px; color: var(--error); font-size: 0.9rem; font-weight: 700; }

.form-note { margin: 28px 0 22px; font-size: 0.9rem; color: var(--ink-soft); }
.btn-submit { width: 100%; min-height: 60px; font-size: 1.05rem; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: 16px; padding: 20px 24px; margin-bottom: 24px; }
.notice-error { background: #fdeceb; border: 2px solid var(--error); color: var(--error); font-weight: 700; }
.notice-done { background: var(--white); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--green); padding: 44px 40px; }
.notice-done h2 { font-family: var(--font-head); font-weight: 900; font-size: 1.6rem; }
.notice-done p { margin-top: 14px; }
.notice-done p:last-child { margin-top: 30px; }

/* ---------- アニメーション ---------- */

@keyframes lineUp { from { transform: translateY(110%) rotate(4deg); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(.6) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes draw { to { transform: scaleX(1); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { 0%, 100% { translate: 0 0; scale: 1; } 33% { translate: 26px -18px; scale: 1.06; } 66% { translate: -18px 22px; scale: .95; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); } }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes itemIn { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes nod { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-2deg) translateY(3px); } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }

/* ---------- レスポンシブ ---------- */

@media (max-width: 900px) {
  .section { padding: 72px 0; }

  .hero { padding: 36px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-mark { width: min(78%, 300px); order: -1; }
  .hero-disc { box-shadow: 7px 7px 0 var(--ink); }

  .worry-list { grid-template-columns: 1fr 1fr; }

  .services { border-radius: 32px 32px 0 0; }
  .flow { border-radius: 0 0 32px 32px; padding-top: 24px; }
  .cta { border-radius: 32px 32px 0 0; padding: 72px 0; }

  .tabs { grid-template-columns: 1fr; gap: 18px; }
  .tab-list { position: static; flex-direction: row; gap: 8px; overflow-x: auto; padding: 4px 20px 12px; margin-inline: -20px; scroll-snap-type: x proximity; }
  .tab { width: auto; flex: 0 0 auto; min-height: 48px; padding: 8px 18px; border-radius: 999px; white-space: nowrap; scroll-snap-align: start; }
  .tab:hover, .tab[aria-selected="true"] { transform: none; }
  .tab[aria-selected="true"] { box-shadow: 3px 3px 0 var(--green); }
  .panel { padding: 30px 22px 28px; box-shadow: 6px 6px 0 var(--ink); }
  .panel-num { font-size: 4.6rem; right: 12px; }

  .flow-list { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .flow-list::before { display: none; }
  .flow-list li { padding-top: 22px; }
  .flow-num { margin-top: 0; }

  .message-inner { grid-template-columns: 1fr; gap: 36px; }
  .message-figure { width: min(70%, 260px); }
  .about-inner { grid-template-columns: 1fr; }
}

@media (min-width: 901px) {
  .flow-list li { background: transparent; padding-inline: 8px; }
  .flow-list li:hover { box-shadow: none; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 78px; }
  .header-inner { min-height: 66px; }
  .brand-mark { width: 40px; height: 40px; font-size: 1.25rem; }
  .brand-name { font-size: 0.93rem; }

  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 0 14px;
    background: var(--yellow); color: var(--ink);
    border: 2px solid var(--ink); border-radius: 999px;
    font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), background-color .2s; }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -5px; }
  .nav-toggle-bars::after { top: 5px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 2px solid var(--ink); padding: 8px 20px 26px; }
  .site-nav.is-open { display: block; animation: fadeUp .35s var(--ease) both; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a:not(.btn) { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-nav a:not(.btn)::after { content: none; }
  .site-nav .btn { width: 100%; margin-top: 18px; min-height: 50px; }

  .worry-list, .flow-list { grid-template-columns: 1fr; }
  .about-table { padding: 6px 20px; }
  .about-table > div { grid-template-columns: 1fr; gap: 4px; }
  .hero-lead br, .section-lead br { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-stats { gap: 24px; }
  .hero-stats b { font-size: 2.2rem; }
  .chip { font-size: 0.78rem; padding: 4px 12px; }
  .marquee li { font-size: 1rem; }
  .message-hello { right: -8px; }
  .form { padding: 26px 20px; box-shadow: 5px 5px 0 var(--green); }
  .notice-done { padding: 30px 22px; }
}

/* 動きを減らす設定の利用者には、アニメーションを止めて全て表示する */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .flow-list::before { transform: none; }
  .mark::after { transform: none; }
}
