/* ==========================================================================
   fourthplace43.com 法人サイト 共通スタイル（/assets/site/site.css）
   デザインは会員サイト「個性発見AIラボ」（/ai-lab/）と同じ系統。
   - 背景は白。本文・小さい文字はコントラスト4.5:1以上の色だけを使う。
   - 6色のスペクトルは、光・線・面の飾りにだけ使う。
   - ページの性格は <body data-tone="ai|default|calm" class="t-青など"> で切り替える。
   - 動きは prefers-reduced-motion で止まる。JavaScriptが切れていても全部読める。
   ========================================================================== */

:root {
  --bg: #ffffff;
  --panel: #f7f8fc;
  --ink: #12141c;
  --ink-2: #3a4052;
  --ink-3: #555b6e;
  --line: #e6e8f0;
  --line-2: #d6d9e5;

  --c-blue: #3b6bff;
  --c-violet: #8b5cf6;
  --c-pink: #ec4899;
  --c-orange: #f97316;
  --c-yellow: #facc15;
  --c-green: #10b981;
  --aurora: linear-gradient(100deg, #3b6bff 0%, #8b5cf6 22%, #ec4899 44%, #f97316 64%, #facc15 82%, #10b981 100%);
  --aurora-conic: conic-gradient(#3b6bff, #8b5cf6, #ec4899, #f97316, #facc15, #10b981, #3b6bff);
  --ink-gradient: linear-gradient(95deg, #2a4fe0 0%, #6d3be0 38%, #c0267a 72%, #b3400c 100%);

  --acc: #3b6bff; --acc-ink: #2446C9; --acc-soft: #EEF2FF;

  --r-s: 10px; --r-m: 16px; --r-l: 24px; --r-xl: 32px;
  --shadow-1: 0 1px 2px rgba(18, 20, 28, .05), 0 4px 16px rgba(18, 20, 28, .05);
  --shadow-2: 0 2px 6px rgba(18, 20, 28, .06), 0 16px 48px rgba(40, 50, 120, .10);
  --shadow-glow: 0 10px 40px -10px color-mix(in srgb, var(--acc) 45%, transparent);

  --f-ja: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif;
  --f-en: "Space Grotesk", "Zen Kaku Gothic New", sans-serif;

  --wrap: 1180px;
  --top-h: 68px;
  color-scheme: light;
}

/* 色の組（線・面は明るい色、文字は濃い色） */
.t-blue   { --acc: #3b6bff; --acc-ink: #2446C9; --acc-soft: #EEF2FF; }
.t-violet { --acc: #8b5cf6; --acc-ink: #6428D9; --acc-soft: #F4EEFF; }
.t-pink   { --acc: #ec4899; --acc-ink: #BE185D; --acc-soft: #FDF2F8; }
.t-orange { --acc: #f97316; --acc-ink: #C2410C; --acc-soft: #FFF7ED; }
.t-green  { --acc: #10b981; --acc-ink: #0A7250; --acc-soft: #E8F7F0; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 28px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-ja);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-break: auto-phrase; /* 日本語を文節で折り返す（対応ブラウザのみ） */
  line-break: strict;       /* 小さい「っ」「ー」などを行頭に置かない */
  overflow-wrap: anywhere;
}
h1, h2, h3, h4 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; } /* 幅を縮めても縦横比を保つ */
a { color: var(--acc-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
/* フォーカス枠：濃い色＋白の縁（どの背景でも3:1以上） */
:focus-visible { outline: 3px solid var(--acc-ink); outline-offset: 2px; box-shadow: 0 0 0 5px #fff; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--acc) 22%, white); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
[hidden] { display: none !important; }
.u { text-decoration: underline; text-underline-offset: 3px; }
.nowrap { white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 200; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- 共通パーツ ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .8rem; font-weight: 700; color: var(--ink-2);
  padding: .35em .9em .35em .7em; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--aurora); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 15%, transparent); animation: pulse 2.4s ease-in-out infinite; flex-shrink: 0; }
.kicker { font-family: var(--f-en); font-size: .74rem; font-weight: 700; letter-spacing: .22em; color: var(--acc-ink); text-transform: uppercase; }
.hl { background: var(--ink-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-sec { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); line-height: 1.4; margin: .2em 0 .45em; font-weight: 900; letter-spacing: .01em; }
.lead { color: var(--ink-2); font-size: 1.02rem; max-width: 46em; margin: 0; }
.muted { color: var(--ink-3); }
.small { font-size: .86rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35em;
  font-size: .78rem; font-weight: 700; line-height: 1.2;
  padding: .45em .8em; border-radius: 999px;
  background: var(--panel); color: var(--ink-2); border: 1px solid var(--line);
}
.chip.acc { background: var(--acc-soft); color: var(--acc-ink); border-color: color-mix(in srgb, var(--acc) 28%, white); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .03em; line-height: 1.4;
  border: 1px solid transparent; background: var(--b); color: #fff;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  text-decoration: none !important; position: relative; isolation: isolate;
  white-space: nowrap; text-align: center; word-break: keep-all;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(18, 20, 28, .45); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .arrow { transition: transform .25s ease; flex-shrink: 0; }
.btn .arrow::before { content: "→"; }
.btn:hover .arrow { transform: translateX(3px); }
.btn.acc { --b: var(--acc-ink); }
.btn.acc:hover { box-shadow: var(--shadow-glow); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: color-mix(in srgb, var(--acc) 45%, var(--line-2)); box-shadow: var(--shadow-1); }
.btn.sm { min-height: 38px; padding: .45em 1.05em; font-size: .86rem; }
.btn.lg { min-height: 54px; padding: .8em 1.6em; font-size: 1rem; }
.btn[target="_blank"] .arrow::before { content: "↗"; }
/* 受付URLが未設定のボタン（site.json で null） */
.btn[aria-disabled="true"] { background: var(--panel) !important; color: var(--ink-3) !important; border-color: var(--line-2) !important; box-shadow: none !important; transform: none !important; cursor: not-allowed; pointer-events: none; }
.btn[aria-disabled="true"] .arrow { display: none; }
.btn-note { display: block; font-size: .8rem; color: var(--ink-3); line-height: 1.7; margin-top: 8px; }
.btn-note a { text-decoration: underline; text-underline-offset: 3px; }
.stack { display: flex; flex-direction: column; align-items: flex-start; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l);
  box-shadow: var(--shadow-1);
}
.card .bar { position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--acc); border-radius: var(--r-l) var(--r-l) 0 0; }
/* カーソルを追う光 */
.spot { position: relative; overflow: hidden; overflow: clip; }
.spot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, -500px) var(--my, -500px), color-mix(in srgb, var(--acc) 12%, transparent), transparent 60%);
  opacity: 0; transition: opacity .3s ease;
}
.spot:hover::after { opacity: 1; }

/* 回る虹の縁：小さな円錐を scale で広げ、rotate だけを動かす。
   overflow は clip（検索やページ内リンクで中身だけがスクロールされないように） */
.aura-border {
  position: relative; border-radius: var(--r-xl); padding: 2px; --sc: 16;
  box-shadow: 0 26px 60px -30px rgba(139, 92, 246, .6), 0 14px 44px -26px rgba(59, 107, 255, .5), 0 10px 40px -30px rgba(249, 115, 22, .45);
}
.aura-border > .inner { position: relative; border-radius: calc(var(--r-xl) - 2px); background: #fff; height: 100%; }
.aura-border, .brand-mark, .ai-av, .pal { overflow: hidden; overflow: clip; isolation: isolate; }
.aura-border::before, .brand-mark::before, .ai-av::before, .pal::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 100px; height: 100px; margin: -50px 0 0 -50px; z-index: -1;
  background: var(--aurora-conic); scale: var(--sc, 1); animation: rotp var(--spd, 6s) linear infinite; will-change: rotate;
}
/* 画面の外にあるあいだは止める（site.js が .paused を付け外し） */
.paused, .paused::before, .paused .blob { animation-play-state: paused !important; }

/* 出てくるとき（JavaScriptがあるときだけ隠す）。フォーカスが入ったらすぐ出す */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv:focus-within { opacity: 1; transform: none; transition: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; } .rv.d4 { transition-delay: .32s; }

@keyframes rotp { to { rotate: 1turn; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.75); opacity: .6; } }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, -24px) scale(1.06); } 66% { transform: translate(-22px, 18px) scale(.96); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 背景のオーロラ・方眼 ---------- */
.aurora-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.aurora-bg .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .32; animation: float 18s ease-in-out infinite; will-change: transform; }
.aurora-bg .b1 { width: 520px; height: 520px; left: -140px; top: -160px; background: #93b4ff; }
.aurora-bg .b2 { width: 460px; height: 460px; right: -120px; top: -80px; background: #e3b6ff; animation-delay: -6s; }
.aurora-bg .b3 { width: 420px; height: 420px; left: 38%; bottom: -220px; background: #ffc9a8; animation-delay: -11s; opacity: .26; }
.aurora-bg .b4 { width: 300px; height: 300px; right: 18%; bottom: -120px; background: #a8f0d4; animation-delay: -3s; opacity: .24; }
/* 落ち着いたトーン：色を淡く暖かく、動きを止める */
body[data-tone="calm"] .aurora-bg .blob { animation: none; opacity: .22; }
body[data-tone="calm"] .aurora-bg .b1 { background: #bfe8d9; }
body[data-tone="calm"] .aurora-bg .b2 { background: #ffe0c2; }
body[data-tone="calm"] .aurora-bg .b3 { background: #d9e6ff; }
body[data-tone="calm"] .aurora-bg .b4 { background: #f7d9e6; }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(to right, rgba(18, 20, 60, .045) 1px, transparent 1px), linear-gradient(to bottom, rgba(18, 20, 60, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
body[data-tone="calm"] .grid-bg { display: none; }
/* 落ち着いたトーン：飾りの動き（明滅・回転・浮き上がり）をすべて止める */
body[data-tone="calm"] .eyebrow .dot, body[data-tone="calm"] .aura-border::before, body[data-tone="calm"] .brand-mark::before, body[data-tone="calm"] .ai-av::before { animation: none; }
body[data-tone="calm"] .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
canvas.constellation { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ==========================================================================
   上部バー
   ========================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--top-h);
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.topbar.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(18, 20, 28, .35); }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--aurora); opacity: 0; transition: opacity .3s; }
.topbar.scrolled::after { opacity: .55; }
.topbar .wrap { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none !important; flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; position: relative; flex-shrink: 0; --spd: 10s; box-shadow: 0 4px 14px -4px rgba(139, 92, 246, .5); display: grid; place-items: center; }
.brand-mark img, .brand-mark picture { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; background: #fff; }
.brand-txt { line-height: 1.2; }
.brand-txt small { display: block; font-size: .68rem; font-weight: 700; color: var(--ink-3); letter-spacing: .12em; }
.brand-txt strong { font-size: 1.02rem; font-weight: 900; letter-spacing: .06em; }

.nav { display: flex; gap: 0; margin-left: 4px; }
.nav a {
  position: relative; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); font-weight: 700; font-size: .86rem; text-decoration: none !important; white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav a:hover { background: var(--panel); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2.5px; border-radius: 2px; background: var(--aurora); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.search-btn {
  display: none; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 13px; border-radius: 999px; flex-shrink: 0;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-size: .84rem; font-weight: 700; white-space: nowrap;
  transition: border-color .2s, box-shadow .2s, color .2s;
}
.js .search-btn { display: inline-flex; } /* JavaScriptが無いときは出さない（押しても動かないため） */
.search-btn:hover { border-color: color-mix(in srgb, var(--acc) 40%, var(--line-2)); box-shadow: var(--shadow-1); color: var(--ink); }
.search-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.search-btn kbd, .pal kbd { font-family: var(--f-en); font-size: .72rem; padding: 2px 7px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); color: var(--ink-3); white-space: nowrap; }
@media (hover: none), (pointer: coarse) { .search-btn kbd, .pal-foot { display: none !important; } }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); flex-shrink: 0; }
.icon-btn:hover { background: var(--panel); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; }

/* スマホ用メニュー（閉じているあいだは visibility:hidden で、Tabでも入れない） */
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(18, 20, 28, .25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.drawer.open { opacity: 1; visibility: visible; transition: opacity .3s, visibility 0s; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(360px, 88vw); background: #fff; padding: 18px 20px 32px; box-shadow: var(--shadow-2); transform: translateX(100%); transition: transform .4s cubic-bezier(.2,.8,.2,1); overflow-y: auto; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.drawer-head b { font-size: .8rem; color: var(--ink-3); letter-spacing: .14em; font-family: var(--f-en); }
.drawer-panel nav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 6px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none !important; }
.drawer-panel nav a::after { content: "→"; color: var(--ink-3); font-weight: 400; }
.drawer-panel nav a[aria-current="page"] { color: var(--acc-ink); }
.drawer-panel nav a[aria-current="page"]::after { content: "いまのページ"; white-space: nowrap; flex-shrink: 0; font-size: .7rem; font-weight: 700; color: var(--acc-ink); background: var(--acc-soft); padding: 1px 8px; border-radius: 999px; }
.drawer-panel nav a.sub { padding: 10px 6px 10px 20px; font-size: .9rem; font-weight: 400; color: var(--ink-2); border-bottom-style: dashed; }
.drawer-panel nav .grp { display: block; margin: 18px 6px 2px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; color: var(--ink-3); }
.drawer-panel .btn { width: 100%; margin-top: 18px; white-space: normal; }

/* ==========================================================================
   ページの頭
   ========================================================================== */
main { position: relative; display: block; }
.page-hero { position: relative; padding: 32px 0 64px; overflow: hidden; }
.page-hero > .wrap { position: relative; z-index: 1; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 18px; padding: 0; font-size: .8rem; color: var(--ink-3); font-weight: 700; letter-spacing: .04em; }
.crumbs li + li::before { content: "/"; margin: 0 .55em; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.hero-grid.single { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.hero-copy h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.3rem); line-height: 1.34; font-weight: 900; margin: 22px 0 22px; letter-spacing: .005em; }
.hero-copy h1.long { font-size: clamp(1.8rem, 1.1rem + 2.6vw, 2.75rem); }
.hero-copy h1 .caret { display: inline-block; width: .08em; height: .95em; margin-left: .06em; vertical-align: -.08em; background: var(--acc); animation: blink 1s steps(1) infinite; border-radius: 2px; }
.hero-copy .lead { font-size: 1.04rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px 16px; margin-top: 28px; }
.hero-actions .stack { width: min-content; } /* 注記はボタンの幅で折り返す */
.hero-side { min-width: 0; }
.hero-figure img { width: 100%; max-width: 340px; margin-inline: auto; filter: drop-shadow(0 18px 28px rgba(40, 50, 120, .12)); }

/* ---------- 選ぶと行き先が出る（どれを見ればよいか） ---------- */
.guide .inner { padding: 24px 24px 20px; }
.guide-head { display: flex; align-items: center; gap: 12px; }
.ai-av { width: 34px; height: 34px; border-radius: 11px; position: relative; flex-shrink: 0; --spd: 5s; }
.ai-av::after { content: ""; position: absolute; inset: 5px; border-radius: 7px; background: #fff; }
.guide-head h2 { margin: 0; font-size: 1.1rem; line-height: 1.4; font-weight: 900; }
.guide-head p { margin: 0; font-size: .84rem; color: var(--ink-3); line-height: 1.6; }
.guide-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.g-q {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff;
  font-weight: 700; font-size: .95rem; line-height: 1.5; color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.g-q::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--acc); flex-shrink: 0; box-shadow: 0 0 0 3px var(--acc-soft); }
.js .g-q::after { content: "＋"; margin-left: auto; color: var(--ink-3); font-weight: 700; transition: transform .25s; }
.js .g-q:hover { border-color: color-mix(in srgb, var(--acc) 45%, var(--line)); }
.g-q[aria-expanded="true"] { border-color: var(--acc); background: var(--acc-soft); }
.g-q[aria-expanded="true"]::after { content: "－"; color: var(--acc-ink); }
html:not(.js) .g-q { cursor: default; border: 0; padding: 4px 0 0; background: none; }
.g-a { margin: 8px 4px 6px 26px; font-size: .9rem; color: var(--ink-2); line-height: 1.75; }
.js .g-a:not([hidden]) { animation: rise .3s ease both; }
.g-a p { margin: 0 0 10px; }
.g-a a:not(.btn) { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.guide-note { margin: 14px 4px 0; font-size: .82rem; color: var(--ink-3); }

/* ---------- 料金の早見 ---------- */
.glance .inner { padding: 22px 22px 18px; }
.glance-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px 10px; }
.glance-head h2 { margin: 0; font-size: 1.05rem; font-weight: 900; }
.glance-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.glance-list a {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none !important;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.glance-list a:hover { border-color: color-mix(in srgb, var(--acc) 45%, var(--line)); box-shadow: var(--shadow-1); transform: translateY(-1px); }
.glance-list .num { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-ink); font-family: var(--f-en); font-weight: 700; font-size: .82rem; }
.glance-list .nm { font-weight: 900; line-height: 1.45; font-size: 1rem; }
.glance-list .nm small { display: block; font-size: .8rem; color: var(--ink-2); font-weight: 700; }
.glance-list .pr { font-family: var(--f-en); font-weight: 700; font-size: 1.05rem; line-height: 1.1; text-align: right; white-space: nowrap; color: var(--ink-2); }
.glance-list .pr small { display: block; font-family: var(--f-ja); font-size: .72rem; color: var(--ink-3); margin-top: 4px; font-weight: 700; }
.glance-foot { margin: 12px 4px 0; font-size: .84rem; color: var(--ink-2); }
.glance-foot a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   セクション
   ========================================================================== */
.section { padding: 76px 0; position: relative; }
.section.tight { padding: 48px 0; }
.section.tint { background: linear-gradient(180deg, #fff 0%, #f8f9fd 14%, #f8f9fd 86%, #fff 100%); }
.sec-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 22px; align-items: end; margin-bottom: 30px; }
.sec-head.plain { grid-template-columns: minmax(0, 1fr); }
.sec-no { font-family: var(--f-en); font-weight: 700; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: .9; background: var(--ink-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.02em; padding-bottom: 6px; }
.sec-head .kicker { display: block; }
.sec-head .h-sec { margin-bottom: .2em; }

/* ---------- 要点カード ---------- */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.points.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.points.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.point { padding: 22px 22px 20px; }
.point .n { font-family: var(--f-en); font-weight: 700; font-size: .8rem; letter-spacing: .12em; color: var(--acc-ink); }
.point h3 { margin: 6px 0 8px; font-size: 1.08rem; line-height: 1.55; font-weight: 900; }
.point p { margin: 0; font-size: .92rem; color: var(--ink-2); line-height: 1.8; }
.point .go { margin-top: 12px; font-size: .88rem; font-weight: 700; }

/* ---------- 行き先カード（総合案内など） ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dest {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 20px 22px; color: var(--ink); text-decoration: none !important;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s;
}
.dest:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--acc) 30%, var(--line)); }
.dest .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--acc-soft); display: grid; place-items: center; }
.dest .ic i { width: 14px; height: 14px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 5px color-mix(in srgb, var(--acc) 18%, transparent); }
.dest b { display: block; font-size: 1.06rem; line-height: 1.5; font-weight: 900; }
.dest span.d { display: block; font-size: .88rem; color: var(--ink-2); line-height: 1.7; margin-top: 2px; }
.dest .to { color: var(--acc-ink); font-weight: 700; font-size: 1.1rem; }
.dest-grid.small .dest { padding: 16px 18px; }

/* ---------- サービスのカード ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.svc-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc { display: flex; flex-direction: column; padding: 26px 26px 24px; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s; }
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--acc) 28%, var(--line)); }
.svc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.svc-top .no { font-family: var(--f-en); font-weight: 700; font-size: .9rem; color: var(--ink-3); }
.svc h3 { font-size: 1.35rem; line-height: 1.45; margin: 10px 0 10px; font-weight: 900; }
.svc p { margin: 0 0 14px; color: var(--ink-2); font-size: .94rem; }
.svc .meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 18px; }
.svc .meta-note { font-size: .86rem; color: var(--ink-3); margin: 0 0 18px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.svc .go { margin-top: auto; }
.price-pill { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; padding: 8px 12px; border-radius: 12px; background: var(--acc-soft); border: 1px solid color-mix(in srgb, var(--acc) 22%, white); font-size: .8rem; font-weight: 700; color: var(--ink-2); line-height: 1.3; }
.price-pill b { font-family: var(--f-en); font-size: 1.12rem; color: var(--ink); letter-spacing: 0; }
.price-pill em { font-style: normal; color: var(--ink-3); font-size: .76rem; white-space: nowrap; }
.tax-note { font-size: .8rem; color: var(--ink-3); margin: 0 0 14px; }

.other { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-top: 18px; padding: 22px 26px; }
.other .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--acc-soft); display: grid; place-items: center; }
.other .ic i { width: 14px; height: 14px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 5px color-mix(in srgb, var(--acc) 18%, transparent); }
.other h3 { margin: 0 0 2px; font-size: 1.05rem; }
.other p { margin: 0; font-size: .92rem; color: var(--ink-2); }

/* ---------- 向いている／行っていない ---------- */
.fit { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; }
.fit .card { padding: 26px; }
.fit h3 { margin: 0 0 14px; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.fit h3 .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.fit ul, .checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fit li, .checks li { position: relative; padding-left: 30px; font-size: .95rem; color: var(--ink-2); line-height: 1.75; }
.fit .yes li::before, .checks li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 18px; height: 18px; border-radius: 50%; background: var(--acc-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%2312141c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.fit .no { background: var(--panel); box-shadow: none; }
.fit .no li::before { content: ""; position: absolute; left: 6px; top: .85em; width: 10px; height: 2px; border-radius: 2px; background: var(--ink-3); }
.fit .no a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- プラン ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 28px 24px 24px; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s; }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--acc) 28%, var(--line)); }
.plan-tag { font-family: var(--f-en); font-size: .72rem; font-weight: 700; letter-spacing: .18em; color: var(--acc-ink); }
.plan h3 { margin: 8px 0 2px; font-size: 1.4rem; font-weight: 900; line-height: 1.4; }
.plan .for { margin: 8px 0 0; font-size: .92rem; color: var(--ink-2); min-height: 3.4em; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 16px 0 16px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan-price .amount { font-family: var(--f-en); font-weight: 700; font-size: 2.6rem; line-height: 1; letter-spacing: -.02em; }
.plan-price .yen { font-size: 1.3rem; margin-right: 2px; vertical-align: .5em; }
.plan-price .unit { font-size: .86rem; font-weight: 700; color: var(--ink-2); }
.tax { font-size: .76rem; font-weight: 700; color: var(--ink-3); }
.facts { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.facts li { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 10px; font-size: .88rem; line-height: 1.6; }
.facts .k { font-weight: 700; color: var(--ink-3); }
.plan-body h4 { margin: 14px 0 8px; font-size: .84rem; letter-spacing: .06em; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.plan-body h4::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.plan-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.plan-body li { position: relative; padding-left: 20px; font-size: .88rem; color: var(--ink-2); line-height: 1.7; }
.plan-body li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.plan-body ul.excl li::before { background: transparent; border: 1.5px solid var(--ink-3); }
.plan-body .aside { font-size: .8rem; color: var(--ink-3); margin: 12px 0 0; }
.plan-cta { margin-top: auto; padding-top: 20px; }
.plan-cta .btn { width: 100%; }
.plan-cta .btn-note { min-height: 3.4em; }

/* ---------- 表 ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r-l); background: #fff; box-shadow: var(--shadow-1); overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; min-width: 640px; }
table.compare.narrow { min-width: 0; }
.compare th, .compare td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.7; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--panel); font-size: .86rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.compare thead th .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--acc); margin-right: 8px; vertical-align: .05em; }
.compare tbody th { font-weight: 700; color: var(--ink); width: 11em; background: #fcfcfe; }
.compare td { color: var(--ink-2); }
.compare td.num { font-family: var(--f-en); font-weight: 700; color: var(--ink); }
.compare a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.scroll-hint { font-size: .8rem; color: var(--ink-3); margin: 8px 2px 0; }

/* 棒グラフ */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 22px; padding: 28px; }
.calc h3 { margin: 0 0 10px; font-size: 1.15rem; }
.calc p { margin: 0 0 10px; color: var(--ink-2); font-size: .94rem; }
.calc p:last-child { margin-bottom: 0; }
.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: baseline; }
.bar-row .bl { font-size: .86rem; font-weight: 700; color: var(--ink-2); }
.bar-row .bv { font-family: var(--f-en); font-weight: 700; font-size: 1.3rem; color: var(--ink); white-space: nowrap; }
.bar-row .bv small { font-family: var(--f-ja); font-size: .8rem; margin-left: 2px; }
.bar-row .bt { grid-column: 1 / -1; height: 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.bar-row .bt i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 70%, white), var(--acc)); }
.js .bars .bt i { width: 0; transition: width 1.3s cubic-bezier(.2,.8,.2,1); }
.js .bars.in .bt i { width: var(--w); }
.bars .tax { grid-column: 1 / -1; }

/* ---------- 手順 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; position: relative; list-style: none; margin: 0; padding: 0; }
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps::before { content: ""; position: absolute; left: 24px; right: 24px; top: 23px; height: 2px; background: linear-gradient(90deg, var(--c-blue), var(--c-violet), var(--c-pink), var(--c-orange)); opacity: .35; z-index: 0; }
.step { position: relative; z-index: 1; }
.step .num { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--acc); font-family: var(--f-en); font-weight: 700; color: var(--acc-ink); margin-bottom: 14px; box-shadow: 0 0 0 6px #fff; }
.step .box { padding: 18px 18px 16px; height: calc(100% - 62px); }
.step .when { font-family: var(--f-en); font-size: .74rem; font-weight: 700; color: var(--ink-3); letter-spacing: .12em; }
.step h3 { font-size: 1.04rem; line-height: 1.55; margin: 4px 0 8px; }
.step p { font-size: .88rem; color: var(--ink-2); margin: 0; line-height: 1.8; }

/* ---------- よくある質問・くわしく読む（開閉式） ---------- */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details, details.more { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.faq details[open], details.more[open] { box-shadow: var(--shadow-1); border-color: var(--line-2); }
.faq summary, details.more > summary { list-style: none; cursor: pointer; padding: 17px 54px 17px 20px; font-weight: 700; position: relative; display: flex; gap: 12px; line-height: 1.6; }
.faq summary::-webkit-details-marker, details.more > summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible, details.more > summary:focus-visible { outline-offset: -4px; box-shadow: none; border-radius: 14px; }
.faq summary .q { font-family: var(--f-en); color: var(--acc-ink); flex-shrink: 0; }
.faq summary::after, details.more > summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform .3s; }
.faq details[open] summary::after, details.more[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .a { padding: 0 22px 20px 48px; color: var(--ink-2); font-size: .94rem; }
.faq .a a { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
details.more { margin-top: 18px; background: #fcfcfe; }
details.more > summary { color: var(--acc-ink); }
details.more > summary .lbl { font-family: var(--f-en); font-size: .74rem; letter-spacing: .14em; background: var(--acc-soft); padding: 2px 10px; border-radius: 999px; align-self: center; flex-shrink: 0; }
details.more .more-body { padding: 4px 24px 24px; }

/* ---------- 読みもの（長い文章） ---------- */
.prose { max-width: 44em; color: var(--ink-2); font-size: 1rem; line-height: 2; }
.prose p { margin: 0 0 1.2em; }
.prose h3 { color: var(--ink); font-size: 1.2rem; line-height: 1.55; margin: 1.8em 0 .6em; font-weight: 900; }
.prose h4 { color: var(--ink); font-size: 1.02rem; margin: 1.4em 0 .4em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 3px solid var(--acc); background: var(--acc-soft); border-radius: 0 14px 14px 0; color: var(--ink); }
.prose > :last-child { margin-bottom: 0; }

/* ---------- 目次 ---------- */
.toc { padding: 22px 24px; }
.toc h2 { margin: 0 0 10px; font-size: .9rem; letter-spacing: .08em; color: var(--ink-2); }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 8px 0; color: var(--ink); font-weight: 700; border-bottom: 1px dashed var(--line); text-decoration: none !important; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--f-en); color: var(--acc-ink); font-size: .84rem; padding-top: .15em; }
.toc a:hover { color: var(--acc-ink); }

/* ---------- ヨンサンのひとこと ---------- */
.quote { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px 32px; }
.quote img { width: 100%; max-width: 190px; margin-inline: auto; }
.quote blockquote { margin: 0; font-size: 1.04rem; color: var(--ink); line-height: 2; }
.quote blockquote p { margin: 0 0 .8em; }
.quote cite { display: block; margin-top: 10px; font-style: normal; font-weight: 900; color: var(--ink-2); font-size: .92rem; }

/* ---------- 数字の並び ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 22px; }
.stat .v { font-family: var(--f-en); font-weight: 700; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem); line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.stat .v small { font-family: var(--f-ja); font-size: 1rem; font-weight: 900; margin-left: .15em; }
.stat .l { margin-top: 10px; font-size: .9rem; color: var(--ink-2); line-height: 1.7; }
.stat .when { font-size: .78rem; color: var(--ink-3); margin-top: 4px; }

/* ---------- 画像つきの節 ---------- */
.media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.media.rev > :first-child { order: 2; }
.media figure { margin: 0; }
.media figure img { width: 100%; border-radius: var(--r-l); box-shadow: var(--shadow-2); }
.media figcaption { font-size: .8rem; color: var(--ink-3); margin-top: 8px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }

/* ---------- お知らせ枠 ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-m); background: var(--acc-soft); border: 1px solid color-mix(in srgb, var(--acc) 22%, white); font-size: .92rem; color: var(--ink-2); }
.notice::before { content: ""; width: 10px; height: 10px; margin-top: .6em; border-radius: 50%; background: var(--acc); flex-shrink: 0; }
.notice strong { color: var(--ink); }

/* ---------- 講座の並び ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.fchip { border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-size: .86rem; font-weight: 700; border-radius: 999px; padding: 6px 14px; min-height: 38px; transition: all .2s; }
.fchip:hover { border-color: color-mix(in srgb, var(--acc) 40%, var(--line-2)); }
.fchip[aria-pressed="true"] { background: var(--acc-ink); border-color: var(--acc-ink); color: #fff; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.course { display: flex; flex-direction: column; gap: 8px; padding: 20px; color: var(--ink); text-decoration: none !important; transition: transform .3s, box-shadow .3s, border-color .3s; }
.course:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--acc) 30%, var(--line)); }
.course .cat { font-size: .74rem; font-weight: 700; color: var(--acc-ink); letter-spacing: .06em; }
.course h3 { margin: 0; font-size: 1.02rem; line-height: 1.55; font-weight: 900; }
.course p { margin: 0; font-size: .86rem; color: var(--ink-2); line-height: 1.75; }
.course .meta { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .82rem; color: var(--ink-3); font-weight: 700; }
.course .meta .go { margin-left: auto; color: var(--acc-ink); }

/* ---------- お問い合わせ ---------- */
.contact .inner { display: grid; grid-template-columns: 210px minmax(0, 1fr) minmax(0, 300px); gap: 30px; align-items: center; padding: 34px 36px; }
.contact.no-face .inner { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
.contact .face img { width: 100%; max-width: 210px; margin-inline: auto; filter: drop-shadow(0 18px 28px rgba(40, 50, 120, .12)); }
.contact h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); line-height: 1.45; margin: 10px 0 12px; font-weight: 900; }
.contact p { margin: 0 0 8px; color: var(--ink-2); font-size: .95rem; }
.contact-acts { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 0; }
.contact-acts .btn { width: 100%; }
.contact .facts { margin-top: 14px; max-width: 30em; }

/* ---------- フッター ---------- */
footer.site { border-top: 1px solid var(--line); padding: 44px 0 48px; margin-top: 56px; position: relative; background: #fff; }
footer.site::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--aurora); opacity: .5; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; }
.foot .brand { margin-bottom: 12px; }
.foot-h { margin: 0 0 10px; font-size: .78rem; letter-spacing: .12em; color: var(--ink-3); font-weight: 700; }
.foot p { font-size: .88rem; color: var(--ink-2); margin: 0; max-width: 30em; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.foot li { font-size: .9rem; }
.foot li a { display: inline-block; padding: 3px 0; color: var(--ink-2); font-weight: 700; }
.foot a:hover { color: var(--ink); }
.copyright { margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--ink-3); }

/* ---------- さがす（Ctrl+K） ---------- */
.palette { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: start; padding: 12vh 16px 16px; background: rgba(18, 20, 28, .22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.palette.open { opacity: 1; visibility: visible; transition: opacity .25s, visibility 0s; }
.pal { position: relative; width: min(620px, 100%); border-radius: 22px; padding: 2px; --sc: 12; --spd: 5s; box-shadow: 0 30px 80px -20px rgba(60, 40, 140, .45); transform: translateY(-8px) scale(.98); transition: transform .3s cubic-bezier(.2,.8,.2,1.2); }
.palette.open .pal { transform: none; }
.pal-in { border-radius: 20px; background: #fff; overflow: hidden; }
.pal-q { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.pal-q:focus-within { box-shadow: inset 0 -3px 0 var(--acc-ink); }
.pal-q svg { width: 18px; height: 18px; color: var(--ink-3); flex-shrink: 0; }
.pal-q input { flex: 1; width: 0; border: 0; outline: none; font: inherit; font-size: 1.04rem; color: var(--ink); background: transparent; min-width: 0; }
.pal-q input::placeholder { color: #666c80; }
.pal-close { border: 0; background: var(--panel); color: var(--ink-2); font-size: .8rem; font-weight: 700; padding: 6px 10px; border-radius: 10px; white-space: nowrap; }
.pal-list { max-height: min(56vh, 460px); overflow-y: auto; padding: 8px; }
.pal-group { font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: var(--ink-3); padding: 10px 10px 4px; }
.pal-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none !important; cursor: pointer; }
.pal-item .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--panel); color: var(--ink-2); font-size: .72rem; font-weight: 700; flex-shrink: 0; font-family: var(--f-en); }
.pal-item b { display: block; font-size: .94rem; font-weight: 700; line-height: 1.4; }
.pal-item span.d { display: block; font-size: .78rem; color: var(--ink-3); line-height: 1.5; }
.pal-item .ext { margin-left: auto; color: var(--ink-3); font-size: .8rem; }
.pal-item.act { background: var(--acc-soft); }
.pal-item.act .ic { background: var(--acc-ink); color: #fff; }
.pal-item mark { background: color-mix(in srgb, var(--c-yellow) 45%, white); color: inherit; border-radius: 3px; padding: 0 1px; }
.pal-foot { display: flex; gap: 16px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--ink-3); }
.pal-empty { padding: 28px; text-align: center; color: var(--ink-3); font-size: .9rem; }

/* ==========================================================================
   画面幅
   ========================================================================== */
@media (max-width: 1180px) {
  .nav { display: none; }
  .js .menu-btn { display: inline-grid; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .steps, .steps.three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .steps::before { display: none; }
  .points.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-grid, .svc-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact .inner { grid-template-columns: 170px minmax(0, 1fr); }
  .contact.no-face .inner { grid-template-columns: minmax(0, 1fr); }
  .contact-acts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .contact-acts .btn { width: auto; }
  .foot { grid-template-columns: 1fr 1fr 1fr; }
  .foot > .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 1180px) and (min-width: 821px) {
  .top-right .contact-link { display: inline-flex; }
}
@media (max-width: 1180px) and (min-width: 901px) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 900px) {
  .hero-side { max-width: 640px; }
}
/* JavaScriptが無いとき：ナビを2段目に横スクロールで出す */
@media (max-width: 1180px) {
  html:not(.js) { scroll-padding-top: 130px; }
  html:not(.js) [id] { scroll-margin-top: 130px; }
  html:not(.js) .topbar { height: auto; }
  html:not(.js) .topbar .wrap { flex-wrap: wrap; padding: 10px 0; gap: 6px 18px; }
  html:not(.js) .nav { display: flex; order: 3; width: 100%; overflow-x: auto; margin: 0; }
}
@media (max-width: 820px) {
  .svc-grid, .svc-grid.three, .fit, .calc, .media, .dest-grid, .points, .points.two, .stats { grid-template-columns: minmax(0, 1fr); }
  .media.rev > :first-child { order: 0; }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
  .other { grid-template-columns: auto minmax(0, 1fr); }
  .other .go { grid-column: 1 / -1; }
  .top-right .contact-link { display: none; }
  .search-btn .lbl { display: none; }
  .search-btn { width: 42px; height: 42px; padding: 0; justify-content: center; }
  .compare tbody th { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--line); }
  .compare thead th:first-child { position: sticky; left: 0; z-index: 2; background: var(--panel); box-shadow: 1px 0 0 var(--line); }
  .compare td { padding-left: 20px; }
  .toc ol { grid-template-columns: minmax(0, 1fr); }
  .quote { grid-template-columns: minmax(0, 1fr); text-align: left; padding: 24px; }
  .quote img { max-width: 150px; margin: 0; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
  .hero-copy h1 { font-size: 1.75rem; }
  .hero-copy h1.long { font-size: 1.6rem; }
}
@media (max-width: 560px) {
  :root { --top-h: 62px; }
  .wrap { width: calc(100% - 32px); }
  .btn { white-space: normal; text-wrap: balance; } /* 狭い画面ではボタン内の折り返しを許す */
  .eyebrow { border-radius: 14px; align-items: flex-start; }
  .eyebrow .dot { margin-top: .55em; }
  .page-hero { padding: 22px 0 44px; }
  .section { padding: 56px 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .stack { width: auto; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .brand-txt small { display: none; }
  .brand-txt strong { font-size: .98rem; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-mark img, .brand-mark picture { width: 28px; height: 28px; }
  .top-right { gap: 8px; }
  .guide .inner, .glance .inner { padding: 18px 16px 16px; }
  .g-a { margin-left: 4px; }
  .glance-list a { gap: 4px 10px; padding: 12px 12px; grid-template-columns: auto minmax(0, 1fr); }
  .glance-list .pr { grid-column: 2; text-align: left; }
  .glance-list .pr small { display: inline; margin-left: 6px; }
  .svc, .point, .stat { padding: 22px 20px 20px; }
  .svc .go .btn, .other .go .btn, .point .btn { width: 100%; }
  .other { padding: 20px; }
  .plan { padding: 24px 20px 20px; }
  .plan .for, .plan-cta .btn-note { min-height: 0; }
  .plan-price .amount { font-size: 2.3rem; }
  .fit .card, .calc { padding: 22px 20px; }
  .steps, .steps.three, .points.four, .course-grid { grid-template-columns: minmax(0, 1fr); }
  .step .box { height: auto; }
  .sec-head { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .sec-no { font-size: 2.4rem; }
  .dest { padding: 18px; gap: 12px; }
  .contact .inner { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; gap: 18px; }
  .contact .face img { max-width: 140px; margin: 0; }
  .contact-acts { flex-direction: column; }
  .contact-acts .btn { width: 100%; }
  .faq .a { padding: 0 18px 18px 20px; }
  .faq summary, details.more > summary { padding: 16px 48px 16px 18px; }
  details.more .more-body { padding: 4px 18px 20px; }
  details.more > summary .lbl { display: none; }
  .foot { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .compare th, .compare td { padding: 14px 14px; }
  .compare tbody th { width: 8.5em; }
  .toc { padding: 18px 18px; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
  .js .bars .bt i { width: var(--w); }
}
