/* manatell corporate site — 制作指示書 v2.0 §2 のトークンに従う */
:root {
  --teal: #1ACABE;          /* ロゴ・図形・アクセント線（文字には使わない） */
  --orange: #FF8000;        /* ロゴ・図形・バッジ背景 */
  --ink: #393939;           /* 本文・見出し */
  --teal-dark: #0B8077;     /* リンク・小見出し・英字ラベル */
  --orange-dark: #B85500;   /* 主要ボタン */
  --ink-sub: #6B6B6B;       /* 補足 */
  --base: #FFFDF8;
  --teal-tint: #E9F9F7;
  --orange-tint: #FFF3E6;
  --line: #E8E3D8;
  --error: #B3261E;
  --white: #FFFFFF;

  --f-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;
  --f-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --f-latin: "Nunito", "Noto Sans JP", system-ui, sans-serif;

  --max: 1080px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --sec-y: 120px;
  --radius: 20px;
  --shadow: 0 6px 24px rgba(57, 57, 57, .06);
  --header-h: 72px;
  color-scheme: light;
}
@media (max-width: 767px) { :root { --sec-y: 72px; --header-h: 60px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--base); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.9; letter-spacing: .04em;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
@media (max-width: 767px) { body { font-size: 15px; } }
html[lang="en"] body { letter-spacing: .01em; line-height: 1.75; }
img, svg { max-width: 100%; }
a { color: var(--teal-dark); }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: var(--base); padding: 8px 14px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
section[id] { scroll-margin-top: var(--header-h); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); box-sizing: content-box; }
.wrap-narrow { max-width: 800px; }
/* ニュース記事・プライバシーポリシー：トップページのセクションと同じ幅（画面幅に合わせて伸び縮み）。本文も枠いっぱいに */
.wrap-text .prose, html[lang="en"] .wrap-text .prose { max-width: none; }

/* ── Header ── */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(255, 253, 248, .92); }
.site-header { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.site-header.is-scrolled, .page-sub .site-header { background: rgba(255, 253, 248, .9); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); box-shadow: 0 1px 0 var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.header-logo { display: block; flex: none; line-height: 0; }
.logo-full { display: block; width: 160px; height: auto; aspect-ratio: 1860 / 524; overflow: visible; }
/* 正式 viewBox の余白（左右 7%・上下 20% ほど）を配置側の margin で詰める */
.header-logo .logo-full { margin: -8px 0 -8px -11px; }
@media (max-width: 767px) { .header-logo .logo-full { width: 132px; margin: -7px 0 -7px -9px; } }
.tabs { margin-left: auto; }
.tabs ul { display: flex; gap: 4px; }
.tab { display: flex; flex-direction: column; align-items: center; padding: 8px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); line-height: 1.3; position: relative; }
.tab-ja { font-size: 14px; font-weight: 700; letter-spacing: .06em; }
html[lang="en"] .tab-ja { font-family: var(--f-latin); font-weight: 800; font-size: 14px; letter-spacing: .04em; }
.tab-en { font-family: var(--f-latin); font-weight: 600; font-size: 11px; letter-spacing: .12em; color: var(--teal-dark); text-transform: uppercase; }
.tab::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--teal); transform: scaleX(0); transition: transform .3s; }
.tab:hover::after, .tab[aria-current="true"]::after { transform: scaleX(1); }
.lang { display: flex; align-items: center; gap: 6px; font-family: var(--f-latin); font-weight: 800; font-size: 13px; letter-spacing: .08em; color: var(--ink-sub); }
.lang a { color: var(--ink-sub); text-decoration: none; padding: 6px 4px; }
.lang a[aria-current="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--teal); }
.menu-btn { display: none; }
.menu { display: none; }
@media (max-width: 960px) {
  .tabs { display: none; }
  .lang-header { margin-left: auto; }
  .menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--ink); }
  .menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s, background .3s; }
  .menu-bars { position: relative; }
  .menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
  .menu-bars::before { top: -7px; } .menu-bars::after { top: 7px; }
  .menu-btn[aria-expanded="true"] .menu-bars { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-bars::before { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-bars::after { transform: translateY(-7px) rotate(-45deg); }
  .menu { position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0; background: var(--base); padding: 24px var(--gutter-r) calc(40px + env(safe-area-inset-bottom, 0px)) var(--gutter); overflow-y: auto; display: flex; flex-direction: column; gap: 24px; }
  .menu[hidden] { display: none; }
  .menu ul { display: flex; flex-direction: column; }
  .menu .tab { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 18px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu .tab::after { display: none; }
  .menu .tab-ja { font-size: 18px; }
  .menu .lang { font-size: 16px; }
  body.menu-open { overflow: hidden; }
  /* backdrop-filter があると固定配置のメニューがヘッダーの高さに閉じ込められるため、開いている間は外す */
  body.menu-open .site-header { background: var(--base); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ── KV（案 D-2a「夜明けに、みんなでルンルン」。動きは main.js の Web Animations API）── */
.kv { position: relative; min-height: max(560px, 100svh); display: grid; place-items: center; overflow: hidden; padding-block: calc(var(--header-h) + 32px) 104px; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.kv-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; }
.b1 { width: min(62vw, 720px); aspect-ratio: 1; background: var(--teal-tint); left: -14vw; top: -18%; }
.b2 { width: min(48vw, 560px); aspect-ratio: 1; background: var(--orange-tint); right: -10vw; bottom: -14%; }
.b3 { width: min(14vw, 150px); aspect-ratio: 1; background: var(--orange-tint); left: 12%; bottom: 16%; }
.b4 { width: min(9vw, 96px); aspect-ratio: 1; background: var(--teal-tint); right: 16%; top: 18%; }
/* 背景の下側の朝焼け */
.kv-dawn { position: absolute; inset: 0; background: linear-gradient(to top, rgba(255, 128, 0, .12) 0%, rgba(255, 128, 0, .05) 30%, rgba(255, 128, 0, 0) 60%); }
.kv-wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; }
.kv-wave path { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; opacity: .35; }
.kv-stack { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(16px, 2.6vh, 26px); }
.kv-logo { display: flex; flex-direction: column; align-items: center; }

/* ロゴマークは正式 viewBox（0 0 520 520）のまま。上 21%・下 18% の余白は margin で詰める */
.kv-mark { --mw: clamp(180px, 26vw, 290px); position: relative; width: var(--mw); aspect-ratio: 1; margin-block: calc(var(--mw) * -.17) calc(var(--mw) * -.13); }
.kv-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.kv-teal, .kv-glow, .kv-o-clip, .kv-o-rise, .kv-o-sway { position: absolute; inset: 0; }
/* マークの後ろの光 */
.kv-glow { inset: 6% 4% 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 128, 0, .22), rgba(255, 128, 0, .10) 55%, rgba(255, 128, 0, 0)); }
/* 水平線より下（マークの高さの下 29.2%）を隠す。上と左右は昇る・ゆれる分の余裕をとる */
.kv-o-clip { clip-path: inset(-40% -40% 29.2% -40%); }
.kv-o-sway { transform-origin: 50% 64%; }

/* ワードマークも正式 viewBox（0 0 1206 339）。上 24%・下 17% の余白を margin で詰める */
.kv-type { --tw: clamp(170px, 22vw, 260px); display: block; width: var(--tw); height: auto; aspect-ratio: 1206 / 339; overflow: visible; margin-block: calc(var(--tw) * -.035) calc(var(--tw) * -.04); }
.kv-catch { font-family: var(--f-head); font-weight: 700; font-size: clamp(26px, 4.4vw, 52px); line-height: 1.45; letter-spacing: .06em; }
html[lang="en"] .kv-catch { font-family: var(--f-latin); font-weight: 800; letter-spacing: .01em; line-height: 1.25; }
.kv-sub { font-size: clamp(14px, 1.6vw, 18px); color: var(--ink-sub); line-height: 1.9; text-wrap: balance; }
@media (max-width: 400px) { html[lang="ja"] .kv-sub { font-size: 13px; letter-spacing: .02em; } }
html[lang="en"] .kv-sub { font-family: var(--f-latin); font-weight: 600; }
.kv-scroll { position: absolute; z-index: 1; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--f-latin); font-weight: 600; font-size: 12px; letter-spacing: .2em; color: var(--teal-dark); text-transform: uppercase; text-decoration: none; }
.kv-scroll i { display: block; width: 1px; height: 36px; background: linear-gradient(var(--teal-dark) 50%, transparent 50%); background-size: 1px 72px; }

/* 動きの開始前の状態（head のスクリプトが .kv-anim を付けたときだけ。main.js が動きを始めると外す） */
.kv-anim .kv-teal { clip-path: inset(0 50% 0 50%); }
.kv-anim .kv-glow, .kv-anim .kv-dawn { opacity: 0; }
.kv-anim .kv-o-rise { transform: translateY(54%); }
.kv-anim .kv-type, .kv-anim .kv-catch, .kv-anim .kv-sub, .kv-anim .kv-scroll { opacity: 0; }

/* 背景の円がゆっくり漂う（CSS） */
.kv .b1 { animation: kv-drift1 22s ease-in-out infinite; }
.kv .b2 { animation: kv-drift2 26s ease-in-out infinite; }
.kv .b3, .kv .b4 { animation: kv-drift1 18s ease-in-out infinite reverse; }
.kv .kv-scroll i { animation: kv-line 1.8s 4.5s linear infinite; }
@keyframes kv-drift1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(2.5vw, 2vh); } }
@keyframes kv-drift2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-2vw, -2.5vh); } }
@keyframes kv-line { from { background-position: 0 -36px; } to { background-position: 0 36px; } }
@media (max-width: 600px) { .b1 { width: 90vw; left: -36vw; top: -8%; } .b2 { width: 78vw; right: -30vw; bottom: -6%; } .b3 { left: 6%; bottom: 22%; } .b4 { right: 8%; top: 18%; } }

/* ── Sections ── */
.sec { position: relative; padding-block: var(--sec-y); overflow-x: clip; }
.sec-teal { background: var(--teal-tint); }
.sec-orange { background: var(--orange-tint); }
.sec-base { background: var(--base); }
.wave { position: absolute; left: 0; right: 0; top: -63px; width: 100%; height: 64px; display: block; }
.wave-teal path { fill: var(--teal-tint); }
.wave-orange path { fill: var(--orange-tint); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 16px; margin-bottom: 48px; }
.sec-head .label { width: 100%; }
.label { font-family: var(--f-latin); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark); }
.label-small { font-size: 12px; }
.h2 { font-family: var(--f-head); font-size: 32px; line-height: 1.4; letter-spacing: .06em; }
html[lang="en"] .h2 { font-family: var(--f-latin); font-weight: 800; letter-spacing: .01em; }
/* 英語ページ：小さいラベルを外したセクション見出しは teal-dark にする */
html[lang="en"] .sec-head .h2 { color: var(--teal-dark); }
@media (max-width: 767px) { .h2 { font-size: 24px; } .sec-head { margin-bottom: 32px; } }
.h3 { font-family: var(--f-head); font-size: 22px; line-height: 1.5; letter-spacing: .05em; margin: 72px 0 24px; display: flex; align-items: center; gap: 12px; }
.h3::before { content: ""; width: 20px; height: 8px; border-radius: 0 0 20px 20px; border: 2.5px solid var(--teal); border-top: 0; flex: none; }
html[lang="en"] .h3 { font-family: var(--f-latin); font-weight: 800; letter-spacing: .01em; }
@media (max-width: 767px) { .h3 { font-size: 19px; margin-top: 56px; } }
.prose { display: flex; flex-direction: column; gap: 1.2em; max-width: 35em; }
html[lang="en"] .prose { max-width: 62ch; }
/* v2.1 §4：Founder message・経歴・AI コーチの説明文の中では、行の幅の上限を外して .wrap いっぱいに */
.founder .prose, .profile .prose, .svc-copy .prose,
html[lang="en"] .founder .prose, html[lang="en"] .profile .prose, html[lang="en"] .svc-copy .prose { max-width: none; }
/* v2.1 §3-2：PC だけの改行 */
@media (max-width: 767px) { .pc-only { display: none; } }
.prose strong { font-weight: 700; color: var(--ink); background: linear-gradient(transparent 62%, rgba(26, 202, 190, .28) 62%); }

/* About */
.mission { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 56px; align-items: start; }
.mission-head { font-family: var(--f-head); font-size: clamp(24px, 3vw, 34px); line-height: 1.6; letter-spacing: .06em; }
html[lang="en"] .mission-head { font-family: var(--f-latin); font-weight: 800; letter-spacing: 0; line-height: 1.3; }
@media (max-width: 860px) { .mission { grid-template-columns: minmax(0, 1fr); } }

.cards { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .cards-3 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; }
.card-title { font-family: var(--f-head); font-size: 18px; line-height: 1.55; letter-spacing: .04em; }
html[lang="en"] .card-title { font-family: var(--f-latin); font-weight: 800; letter-spacing: 0; }
.card p { font-size: 15px; line-height: 1.85; }

.founder { margin: 72px 0 0; padding: 0 0 0 28px; border-left: 3px solid var(--teal); display: flex; flex-direction: column; gap: 16px; max-width: none; }
.founder blockquote { margin: 0; }
.to-contact { margin-top: 48px; }
.text-link { font-weight: 700; text-decoration: none; color: var(--teal-dark); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.text-link:hover { color: var(--ink); }
/* 矢印は文字ではなく CSS で描く（v2.1 §1-2。見た目は従来の「 →」「 ↗」と同じ） */
.arrow::after { content: " \2192"; }
.arrow-ext::after { content: " \2197"; }

/* Founder profile（ブロブ形の写真＋経歴） */
.profile { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 32px 56px; align-items: center; margin-top: 56px; max-width: none; }
.profile-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.profile-name { font-family: var(--f-head); font-size: 26px; letter-spacing: .08em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
html[lang="en"] .profile-name { font-family: var(--f-latin); font-weight: 800; letter-spacing: 0; }
.profile-role { font-size: 13px; }
.profile .prose { gap: 1em; }
@media (max-width: 767px) {
  .profile { grid-template-columns: minmax(0, 1fr); justify-items: center; margin-top: 48px; }
  .profile .profile-photo { width: 60%; }
  .profile-body { width: 100%; }
  .profile-name { font-size: 22px; }
}

/* ブロブ（不定形）の共通部品。clip-path は SVG の <clipPath>（render.mjs の blobDefs） */
.blob-photo { position: relative; width: 100%; aspect-ratio: 1; isolation: isolate; }
.blob-photo .blob-back { position: absolute; inset: 0; transform: translate(8%, 8%); background: #FFE3C7; -webkit-clip-path: url(#blob-a); clip-path: url(#blob-a); z-index: -1; }
.blob-photo .blob-img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-clip-path: url(#blob-c); clip-path: url(#blob-c); }
.blob-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Service */
.badge { display: inline-block; background: var(--orange); color: var(--ink); font-family: var(--f-body); font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: .06em; padding: 7px 14px; border-radius: 999px; white-space: nowrap; }
.badge-outline { background: var(--white); color: var(--teal-dark); box-shadow: inset 0 0 0 1.5px var(--teal-dark); }
.svc-coach { display: flex; flex-direction: column; gap: 48px; }
.svc-copy { display: flex; flex-direction: column; gap: 6px; max-width: none; }
.svc-name { font-family: var(--f-head); font-size: 24px; letter-spacing: .06em; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
html[lang="en"] .svc-name { font-family: var(--f-latin); font-weight: 800; letter-spacing: 0; }
.svc-tagline { font-size: 14px; color: var(--ink-sub); }
.svc-lead { font-family: var(--f-head); font-weight: 700; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.35; letter-spacing: .06em; margin-top: 24px; }
html[lang="en"] .svc-lead { font-family: var(--f-latin); font-weight: 800; letter-spacing: 0; line-height: 1.15; }
.svc-leadsub { font-size: 17px; font-weight: 700; margin: 4px 0 20px; }

/* イメージ図：PC は 3 つ横並び、スマホは縦並び */
.illus { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.illus-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.illus-item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 20px 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.illus-svg { display: block; width: 100%; height: auto; aspect-ratio: 320 / 240; }
.illus-cap { font-weight: 700; font-size: 15px; text-align: center; }
.illus-note { font-size: 12px; color: var(--ink-sub); text-align: right; }
@media (max-width: 760px) {
  .illus-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .illus-item { flex-direction: row; padding: 14px 16px; gap: 14px; text-align: left; }
  .illus-svg { width: 46%; flex: none; }
  .illus-cap { text-align: left; font-size: 14px; }
  .illus-note { text-align: left; }
}

/* 探究型オンラインカリキュラム（今後提供予定）：AI コーチより一回り控えめなカード */
.svc-inquiry { margin-top: 56px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 32px 30px; display: flex; flex-direction: column; gap: 10px; max-width: none; }
.svc-name-sm { font-size: 20px; }
.inq-head { font-family: var(--f-head); font-size: 19px; color: var(--teal-dark); margin-top: 4px; }
html[lang="en"] .inq-head { font-family: var(--f-latin); font-weight: 800; }
.inq-body { font-size: 15px; }
@media (max-width: 600px) { .svc-inquiry { padding: 24px 20px; } .svc-name-sm { font-size: 17px; } .svc-name { font-size: 20px; } }

/* Company */
.dl { margin: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 32px; }
.dl-row { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.dl-row:last-child { border-bottom: 0; }
.dl dt { font-weight: 700; color: var(--teal-dark); font-size: 14px; padding-top: 2px; }
.dl dd { margin: 0; min-width: 0; }
@media (max-width: 600px) { .dl { padding: 4px 20px; } .dl-row { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 16px 0; } }

/* News */
.news-list { border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 7em auto minmax(0, 1fr); gap: 4px 20px; align-items: baseline; padding: 20px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.news-item:hover .news-title { color: var(--teal-dark); text-decoration: underline; }
.news-item time, .article-meta time { font-family: var(--f-latin); font-weight: 600; font-size: 14px; color: var(--ink-sub); font-variant-numeric: tabular-nums; }
.news-filter { margin-bottom: 24px; }
.news-filter ul { display: flex; flex-wrap: wrap; gap: 8px; }
.news-filter-link { display: inline-block; font-size: 14px; font-weight: 700; color: var(--teal-dark); border: 1px solid var(--teal-dark); border-radius: 999px; padding: 4px 14px; text-decoration: none; }
.news-filter-link:hover { background: var(--teal-tint); }
.news-filter-link[aria-current="page"] { background: var(--teal-dark); color: #fff; }
.news-item .news-cat { justify-self: start; }
a.news-cat { text-decoration: none; }
a.news-cat:hover { text-decoration: underline; }
.news-empty { padding: 20px 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink-sub); }
.news-cat { display: inline-block; font-size: 12px; font-weight: 700; color: var(--teal-dark); background: var(--teal-tint); border-radius: 999px; padding: 2px 10px; line-height: 1.7; white-space: nowrap; }
@media (max-width: 600px) { .news-item { grid-template-columns: auto minmax(0, 1fr); } .news-title { grid-column: 1 / -1; } }

/* Contact */
.contact-lead { margin-bottom: 32px; }
/* お問い合わせフォーム（制作指示書 v2.0 §4-6）：白いカードに入力欄。エラーは欄の下に赤い文字 */
.contact-form, .form-success { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 32px; }
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.contact-form[hidden], .form-success[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-label { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.req { display: inline-block; flex: none; font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: .06em; color: var(--white); background: var(--orange-dark); border-radius: 999px; padding: 4px 8px; }
.input { width: 100%; font: inherit; font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--base); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, background .2s; }
.input:hover { border-color: #CFC8BA; }
.input:focus { border-color: var(--teal-dark); background: var(--white); }
.input:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 1px; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--teal-dark) 50%), linear-gradient(135deg, var(--teal-dark) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
textarea.input { resize: vertical; min-height: 10em; }
.input[aria-invalid="true"] { border-color: var(--error); background: var(--white); }
.field-hint { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-sub); }
.field-count { font-family: var(--f-latin); font-variant-numeric: tabular-nums; }
.field-error { color: var(--error); font-size: 14px; font-weight: 700; line-height: 1.6; }
.field-error[hidden] { display: none; }
.field-check { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 6px 12px; }
.field-check label { font-size: 15px; line-height: 1.7; cursor: pointer; }
.field-check .req { margin-left: 10px; vertical-align: 1px; }
.field-check .field-error { grid-column: 1 / -1; }
.check { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--teal-dark); cursor: pointer; }
.check[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }
.turnstile { min-height: 65px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 15px; font-weight: 700; color: var(--ink); background: var(--orange-tint); border-radius: 12px; padding: 14px 18px; }
.form-status.is-error { color: var(--error); background: #FDECEA; }
.form-status[hidden] { display: none; }
.form-actions { display: flex; justify-content: center; }
.btn-submit { font: inherit; font-weight: 700; letter-spacing: .08em; color: var(--white); background: var(--orange-dark); border: 0; border-radius: 999px; min-height: 52px; min-width: 200px; padding: 0 32px; cursor: pointer; box-shadow: 0 8px 24px rgba(184, 85, 0, .3); transition: background .2s, transform .2s; }
.btn-submit:hover { background: #9E4900; }
.btn-submit:disabled { opacity: .6; cursor: progress; }
.form-success { text-align: center; font-weight: 700; font-size: 17px; line-height: 1.9; }
.form-success:focus { outline: none; }
@media (max-width: 600px) { .contact-form, .form-success { padding: 28px 20px; } .btn-submit { width: 100%; } }

/* Floating CTA */
.float-cta { position: fixed; z-index: 40; right: max(20px, calc(env(safe-area-inset-right, 0px) + 16px)); bottom: max(20px, calc(env(safe-area-inset-bottom, 0px) + 16px)); background: var(--orange-dark); color: var(--white); text-decoration: none; font-weight: 700; letter-spacing: .08em; border-radius: 999px; padding: 0 24px; min-height: 52px; display: inline-flex; align-items: center; box-shadow: 0 8px 24px rgba(184, 85, 0, .3); transition: opacity .3s, transform .3s; }
.float-cta.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }

/* Footer */
.site-footer { background: var(--teal-tint); padding-block: 64px calc(24px + env(safe-area-inset-bottom, 0px)); padding-left: var(--gutter); padding-right: var(--gutter-r); }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo { width: 188px; margin: -12px 0 -12px -13px; }
.footer-catch { font-family: var(--f-head); font-size: 15px; }
html[lang="en"] .footer-catch { font-family: var(--f-latin); font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.footer-links a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; }
.footer-links a:hover { color: var(--teal-dark); text-decoration: underline; }
.copyright { max-width: var(--max); margin: 48px auto 0; color: var(--ink-sub); font-size: 12px; font-family: var(--f-latin); }

/* Sub pages */
.sub { padding-block: calc(var(--header-h) + 64px) var(--sec-y); }
.sub-title { font-family: var(--f-head); font-size: 32px; letter-spacing: .06em; margin-bottom: 32px; }
html[lang="en"] .sub-title { font-family: var(--f-latin); font-weight: 800; letter-spacing: 0; }
.policy-h { font-size: 18px; margin-top: 16px; }
.policy-h3 { font-size: 16px; font-weight: 700; margin-top: 4px; }
.policy-ol { list-style: decimal; padding-left: 1.6em; display: flex; flex-direction: column; gap: .4em; }
.policy-ul { list-style: disc; padding-left: 1.4em; margin-top: .3em; }
.policy-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .4em 1.5em; }
.policy-dl dt { font-weight: 700; }
.policy-dl dd { margin: 0; }
@media (max-width: 600px) { .policy-dl { grid-template-columns: minmax(0, 1fr); gap: 0; } .policy-dl dd { margin-bottom: .6em; } }
.policy-date { color: var(--ink-sub); margin-top: 16px; }
.article-meta { display: flex; gap: 12px; align-items: center; }
/* 件名の中の 1 行に収めたい語（入りきらない幅では中で折り返し、はみ出さない） */
.nobr { display: inline-block; max-width: 100%; }
/* inline-block には親の下線が届かないので、ホバー時などの下線を受け継ぐ */
.nobr { text-decoration: inherit; }
.article-title { font-size: 24px; line-height: 1.5; margin: 12px 0 24px; }
.article { margin-bottom: 32px; }

/* Reveal on scroll（表示後に軽く動くだけ。初期状態でも読める） */
.js .reveal { transition: opacity .5s ease, transform .5s ease; }
.js .reveal.pre { opacity: 0; transform: translateY(14px); }

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

/* 日本語の見出しは語の途中で折り返さない（句読点・かぎかっこの位置で折り返す） */
html[lang="ja"] :is(h1, h2, h3, h4, .card-title, .svc-lead, .mission-head, .profile-name, .illus-cap, .inq-head) { word-break: keep-all; overflow-wrap: anywhere; }

