/* Student Voice Studio — 明るく爽やか（白と、パースの空・海の青） */

:root {
  --ocean: #0b7fc1;        /* メインの青（ボタン・ロゴ） */
  --ocean-deep: #075f92;   /* ボタンを押したとき */
  --sky: #e8f5fc;          /* 薄い空色の背景 */
  --sky-2: #d3ecfa;
  --teal: #0fa89a;         /* アクセント（数字・チェック） */
  --sand: #fff6e5;         /* あたたかい差し色の背景 */
  --ink: #10273a;          /* 文字 */
  --muted: #566b7d;        /* 補足の文字 */
  --line: #dbe7f0;         /* 罫線 */
  --card: #ffffff;
  --bg: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(16, 39, 58, .18);
  --font: "Plus Jakarta Sans", "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
  color-scheme: light;
}

/* ===== 言語の切り替え：lang="ja" / lang="en" の片方だけ見せる ===== */
html[data-lang="ja"] [lang="en"]:not(html),
html[data-lang="en"] [lang="ja"]:not(html) { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}
html[data-lang="en"] body { line-height: 1.65; }
/* 句読点を詰める（palt）のは見出しとボタンだけ。本文で詰めると「。」「、」のあとが狭く見えるため（2026-11-26 本人） */
html[data-lang="ja"] :is(h1, h2, h3, h4, .eyebrow, .btn, .nav, .badge) { font-feature-settings: "palt" 1; }
img, video, svg { display: block; max-width: 100%; }
a { color: var(--ocean); }
h1, h2, h3, h4 { line-height: 1.35; margin: 0; font-weight: 800; letter-spacing: .01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 760px; }
.sp-only { display: none; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* ===== ボタン ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn-primary { background: var(--ocean); color: #fff; box-shadow: 0 8px 20px -10px rgba(11, 127, 193, .7); }
.btn-primary:hover { background: var(--ocean-deep); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ocean); border-color: var(--sky-2); }
.btn-ghost:hover { border-color: var(--ocean); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ===== ヘッダー ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(219, 231, 240, .7);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.brand-name b { color: var(--ocean); font-weight: 800; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--ocean); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; background: var(--sky); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: 0; background: transparent; font: inherit; font-size: 12px; font-weight: 700;
  color: var(--muted); padding: 5px 11px; border-radius: 999px; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--ocean); box-shadow: 0 1px 4px rgba(16, 39, 58, .12); }

/* ===== ヒーロー ===== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(600px 380px at 88% 12%, rgba(15, 168, 154, .14), transparent 70%),
    radial-gradient(700px 480px at 10% 0%, var(--sky-2), transparent 70%),
    linear-gradient(180deg, var(--sky) 0%, #fff 100%);
  padding: 64px 0 80px;
}
.hero::after { /* 波のライン */
  content: ""; position: absolute; left: -5%; right: -5%; bottom: -1px; height: 70px;
  background: #fff; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--ocean);
  background: #fff; border: 1px solid var(--sky-2); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(36px, 5.6vw, 62px); font-weight: 900; letter-spacing: -.01em; line-height: 1.2; }
html[data-lang="en"] .hero h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -.025em; }
.lead { margin-top: 22px; font-size: 17px; color: #2c4458; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { display: flex; align-items: center; gap: 6px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.hero-note svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; }
.hero-visual { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-visual figcaption { font-size: 13px; color: var(--muted); text-align: center; }

/* スマホの枠（縦型の動画を入れる） */
.phone {
  position: relative; width: min(300px, 72vw); aspect-ratio: 9 / 16;
  border-radius: 38px; padding: 9px; background: #0d1f2d;
  box-shadow: 0 30px 60px -24px rgba(16, 39, 58, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; background: #1b2f3f; }
.hero .phone { transform: rotate(2.5deg); }
/* トップのスマホ：縦に並べた動画を、上にスワイプして次へ */
.feed-screen { position: absolute; inset: 9px; overflow: hidden; border-radius: 30px; background: #1b2f3f; }
.feed-track { height: 100%; }
.feed-track.is-moving { transition: transform .6s cubic-bezier(.65, 0, .35, 1); transform: translateY(-100%); }
.feed-track video { height: 100%; border-radius: 0; }
.swipe-hint { /* 指でさわった印 */ z-index: 3;
  position: absolute; left: 50%; top: 72%; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%;
  background: rgba(16, 39, 58, .38); border: 3px solid rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 8px rgba(16, 39, 58, .12), 0 6px 18px rgba(0, 0, 0, .25);
  opacity: 0; pointer-events: none;
}
.swipe-hint.is-on { animation: swipe-up 1.1s ease-in-out forwards; }
@keyframes swipe-up {
  0% { opacity: 0; transform: translateY(0) scale(.7); }
  18% { opacity: 1; transform: translateY(0) scale(1); }
  75% { opacity: 1; transform: translateY(-220%) scale(1); }
  100% { opacity: 0; transform: translateY(-260%) scale(.9); }
}
/* iPhone 17 ふうの枠（トップのスマホと、見本の欄で共通）：縦長の画面・細い黒縁・Dynamic Island・ミストブルーのアルミの枠と横のボタン */
/* 大きさは枠の幅に合わせて伸び縮みさせる：1em ＝ 枠の幅の 1/28（幅 280px のとき 10px）。中の部品はすべて em で書く */
.hero-feed { --w: min(280px, 68vw); width: var(--w); font-size: calc(var(--w) / 28); }
.iphone {
  --frame: #b7c8d6; --frame-dark: #8fa4b5;
  max-width: 100%; aspect-ratio: 9 / 19.5; padding: 0; border-radius: 5.2em;
  border: .3em solid transparent;
  background: linear-gradient(#0a0e13, #0a0e13) padding-box,
              linear-gradient(150deg, #e2ebf2, var(--frame-dark) 45%, #d3dfe9 75%, var(--frame)) border-box;
  box-shadow: 0 3.4em 6em -2.6em rgba(16, 39, 58, .55), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.iphone::before, .iphone::after { /* 横のボタン。実物と同じく、枠から少しだけ出る（左：アクションと音量2つ、右：電源） */
  content: ""; position: absolute; width: .2em; background: var(--frame-dark);
}
.iphone::before {
  left: -.45em; top: 18%; height: 11.8em; border-radius: .2em 0 0 .2em;
  -webkit-mask: linear-gradient(#000 0 15.3%, transparent 15.3% 28.8%, #000 28.8% 62.7%, transparent 62.7% 69.5%, #000 69.5%);
  mask: linear-gradient(#000 0 15.3%, transparent 15.3% 28.8%, #000 28.8% 62.7%, transparent 62.7% 69.5%, #000 69.5%);
}
.iphone::after { right: -.45em; top: 25%; height: 6.4em; border-radius: 0 .2em .2em 0; }
.iphone .feed-screen { inset: .7em; border-radius: 4.4em; background: #0d0e10; } /* 地は黒（実物の縦型動画アプリと同じ）。Island はほぼ溶け込む */
.iphone .feed-screen::after { /* Dynamic Island（実物は画面の幅の 3 割ほど・高さはその 1/4 くらい） */
  content: ""; position: absolute; z-index: 4; top: .9em; left: 50%; width: 30%; height: 2.2em;
  transform: translateX(-50%); border-radius: 1.4em; background: #000;
}
/* 画面：動画は画面のいちばん上から、下のメニューのすぐ上まで。画面（9:19.5）は動画（9:16）より縦長なので、実物のアプリと同じく少し拡大して左右を 4% ずつ切る（名前の札・フックは収まる）。時刻・電波は動画の上に重ねる */
.iphone .feed-view, .fu-video { position: absolute; left: 0; right: 0; top: 0; bottom: 11.6%; overflow: hidden; }
.iphone .feed-view video { width: 100%; height: 100%; border-radius: 0; object-fit: cover; background: #000; }
.status-bar { /* 動画の上に重ねる。実物より目立たないよう、小さく少し透かす */
  position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 4em; padding: .2em 3em 0 3.6em;
  display: flex; align-items: center; justify-content: space-between; opacity: .82;
  color: #fff; font: 600 1.15em/1 -apple-system, "SF Pro Text", "Plus Jakarta Sans", system-ui, sans-serif;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.sb-icons { display: flex; align-items: center; gap: .45em; font-size: .7em; } /* 1em ＝ 7px（幅 280 のとき）。時刻より小さく */
.sb-signal { width: 2.1em; height: 1.4em; background: linear-gradient(90deg, #fff 0 17.6%, transparent 17.6% 27%, #fff 27% 44.7%, transparent 44.7% 54%, #fff 54% 71.8%, transparent 71.8% 81.2%, #fff 81.2%);
  -webkit-mask: linear-gradient(to top left, #000 50%, transparent 50%); mask: linear-gradient(to top left, #000 50%, transparent 50%); }
.sb-battery { position: relative; width: 3em; height: 1.4em; border: .19em solid rgba(255, 255, 255, .5); border-radius: .45em; }
.sb-battery::before { content: ""; position: absolute; inset: .15em; right: .6em; border-radius: .2em; background: #fff; }
.sb-battery::after { content: ""; position: absolute; right: -.5em; top: .35em; width: .19em; height: .5em; border-radius: 0 .12em .12em 0; background: rgba(255, 255, 255, .5); }
/* 動画の上の操作：右にボタン、左下にアカウント、いちばん下にメニュー（実物の縦型動画アプリふう） */
.feed-ui { position: absolute; inset: 0; z-index: 2; pointer-events: none; color: #fff; font-family: -apple-system, "SF Pro Text", "Plus Jakarta Sans", system-ui, sans-serif; }
.feed-ui svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.feed-ui svg .fill { fill: currentColor; stroke: none; }
.fu-actions { position: absolute; right: .9em; bottom: 6.4em; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 1.6em; }
.fu-actions svg { display: block; width: 2.3em; height: 2.3em; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }
.fu-account { position: absolute; left: 1.2em; right: 4em; bottom: 1.4em; display: flex; align-items: center; gap: .6em; font-size: 1.05em; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.fu-avatar { width: 2.1em; height: 2.1em; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, #7fd0f0, var(--ocean)); border: .14em solid rgba(255, 255, 255, .85); }
.fu-handle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fu-follow { flex-shrink: 0; padding: .3em .75em; border-radius: 999px; background: #fff; color: #111; font-size: .9em; font-weight: 700; text-shadow: none; }
.fu-progress { position: absolute; left: 0; right: 0; bottom: 0; height: .2em; background: rgba(255, 255, 255, .25); }
.fu-progress i { display: block; width: 22%; height: 100%; background: rgba(255, 255, 255, .85); }
.fu-tabs { /* 黒い地に、角の丸いメニュー。今いる画面（動画）だけ少し明るい丸 */
  position: absolute; left: .8em; right: .8em; bottom: 3.6%; height: 7.4%; padding: 0 1.2em; border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between; background: #16181c; border: 1px solid rgba(255, 255, 255, .08);
}
.fu-tabs svg { width: 1.9em; height: 1.9em; }
.fu-tab-on { display: grid; place-items: center; width: 5.2em; height: 72%; border-radius: 999px; background: #2b2e33; }
.fu-me { width: 1.8em; height: 1.8em; border-radius: 50%; background: linear-gradient(135deg, #f6c36b, #e07a5f); }
.phone-sm { width: 100%; border-radius: 30px; padding: 7px; }
.phone-sm video { border-radius: 24px; }

/* ===== セクション共通 ===== */
.section { padding: 88px 0; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .18em; color: var(--teal); margin-bottom: 10px; }
.section h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-lead { margin-top: 16px; color: #2c4458; max-width: 40em; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.note { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* なぜ卒業生の声か */
.why-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.why-grid .num { display: inline-block; font-weight: 800; font-size: 14px; color: var(--teal); margin-bottom: 8px; }
.why-grid h3 { font-size: 20px; margin-bottom: 8px; }
.why-grid p { color: var(--muted); font-size: 15px; }

/* なぜショートか（公開データ） */
.shorts-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; margin-top: 40px; }
.shorts-chart { grid-row: span 2; margin: 0; display: flex; flex-direction: column; }
.shorts-q { font-size: 14px; font-weight: 700; color: var(--muted); line-height: 1.6; }
.shorts-head { margin-top: 10px; font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; line-height: 1.35; }
.shorts-head b { color: var(--ocean); }
.bars { list-style: none; display: grid; gap: 14px; margin-top: 26px; }
.bars li { display: grid; grid-template-columns: 7em 1fr 3em; align-items: center; gap: 12px; font-size: 15px; }
html[data-lang="en"] .bars li { grid-template-columns: 8.6em 1fr 3em; }
.bars .is-key { font-weight: 700; }
.bar { height: 16px; border-left: 2px solid #9fb3c3; } /* 0 の線から伸ばす。30% を横いっぱいにする */
.bar i { display: block; height: 100%; width: calc(var(--v) / var(--max, 30) * 100%); background: #bccbd7; border-radius: 0 4px 4px 0; }
.is-key .bar i { background: var(--ocean); }
.bar-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.source { margin-top: 16px; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.source a { color: inherit; }
.shorts-chart .bars { margin-block: auto; padding: 26px 0 8px; } /* 横の2枚より高いときは、棒を上下の真ん中に */
.shorts-chart .source { padding-top: 24px; }
.stat-label { font-weight: 700; }
.stat-num { margin-top: 4px; font-size: clamp(46px, 6vw, 62px); font-weight: 900; line-height: 1.15; color: var(--ocean); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat-num small { font-size: .42em; font-weight: 800; color: var(--ink); margin-left: .08em; letter-spacing: 0; }
.shorts-funnel h3 { font-size: 20px; margin-bottom: 8px; }
.shorts-funnel p:not(.source) { color: var(--muted); font-size: 15px; }

/* 留学エージェント3社の年別の投稿数（積み上げ棒）。目盛りは 0〜1,100本 */
.shorts-agency { margin: 20px 0 0; }
.shorts-agency h3 { font-size: 20px; margin-bottom: 8px; }
.shorts-agency figcaption p { color: var(--muted); font-size: 15px; }
.cols-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; font-size: 13px; color: var(--muted); }
.cols-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.cols-legend i { width: 12px; height: 12px; border-radius: 3px; }
.sw-s { background: var(--ocean); }
.sw-l { background: #bccbd7; }
.cols-plot { --plot: 220px; position: relative; height: var(--plot); margin: 40px 0 34px 40px; border-bottom: 2px solid #9fb3c3; }
.cols-grid { position: absolute; left: 0; right: 0; bottom: calc(var(--at) / 1100 * 100%); border-top: 1px dashed var(--line); }
.cols-grid b { position: absolute; right: 100%; top: -.75em; padding-right: 8px; font-size: 11px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.cols { list-style: none; position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6%; padding: 0 2%; }
.cols li { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; outline-offset: 4px; }
.col-bar { display: flex; flex-direction: column; gap: 2px; width: min(100%, 52px); height: calc((var(--s) + var(--l)) / 1100 * 100%); }
.col-bar i { display: block; min-height: 0; }
.col-s { flex: var(--s); background: var(--ocean); border-radius: 4px 4px 0 0; }
.col-l { flex: var(--l); background: #bccbd7; }
.col-pct { margin-bottom: 6px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.col-year { position: absolute; top: calc(100% + 8px); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.col-tip { /* 棒にふれる・タップすると本数を出す */
  position: absolute; bottom: calc(100% + 6px); left: 50%; z-index: 2; width: max-content; max-width: 240px; transform: translateX(-50%);
  padding: 6px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12px; line-height: 1.5; text-align: center;
  clip-path: inset(50%); opacity: 0; transition: opacity .15s;
}
.cols li:hover .col-tip, .cols li:focus .col-tip { clip-path: none; opacity: 1; }
.cols li:first-child .col-tip { left: 0; transform: none; }
.cols li:last-child .col-tip { left: auto; right: 0; transform: none; }

/* 料金の参考：留学エージェントの月の本数とプランを、同じ目盛りの横棒で並べる */
.plan-ref { margin: 28px 0 0; }
.plan-ref h4 { font-size: 18px; margin-bottom: 6px; }
.plan-ref figcaption p { color: var(--muted); font-size: 15px; }
.plan-ref-group { margin-top: 22px; font-size: 13px; font-weight: 700; color: var(--muted); }
.plan-ref .bars { margin-top: 10px; gap: 10px; max-width: 640px; }
.plan-ref .bars li { grid-template-columns: 7.5em 1fr 2.5em; }
html[data-lang="en"] .plan-ref .bars li { grid-template-columns: 6.5em 1fr 2.5em; }
.plan-ref .bar { height: 14px; }

/* 実績 */
.works { background: linear-gradient(180deg, #fff 0%, var(--sky) 100%); }
.case { margin-top: 36px; background: #fff; border-radius: 28px; padding: 40px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.case-client { font-size: 14px; font-weight: 700; color: var(--ocean); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.case-place { font-weight: 500; color: var(--muted); font-size: 13px; }
.case-head h3 { font-size: clamp(20px, 2.4vw, 26px); margin-top: 8px; }
.case-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 32px; }
.clip { margin: 0; }
.clip { container-type: inline-size; }
.clip .iphone { --w: min(100cqw, 240px); width: var(--w); font-size: calc(var(--w) / 28); margin: 0 auto; }
/* 見本の欄：画面をタップで再生・一時停止（音あり）。止まっているあいだは真ん中に再生ボタン */
.clip-play { position: absolute; inset: 0; z-index: 5; font: inherit; display: grid; place-items: center; border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 4.4em; }
.clip-play::before { content: ""; width: 5.8em; height: 5.8em; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='23.25' fill='rgba(0,0,0,.45)' stroke='rgba(255,255,255,.6)' stroke-width='1.5'/%3E%3Cpath d='M18.8 15v18l15.6-9z' fill='%23fff' stroke='%23fff' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; transition: opacity .2s; } /* 三角は箱の真ん中ではなく、重心（底辺から 1/3）を円の中心に置く（箱で真ん中にすると左に寄って見えるため） */
.clip-play.is-playing::before { opacity: 0; }
.clip-play:focus-visible { outline: 3px solid var(--ocean); outline-offset: .4em; }
.clip figcaption { margin-top: 14px; font-size: 14px; font-weight: 700; text-align: center; line-height: 1.6; }
/* ご依頼 → 期間 → 納品 を矢印でつなぐ */
.case-flow { list-style: none; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 44px; margin: 36px 0 0; }
.case-flow li { position: relative; background: var(--sky); border-radius: 16px; padding: 18px 20px; }
.case-flow li + li::before { /* 前の箱からの矢印 */
  content: ""; position: absolute; left: -34px; top: 50%; width: 24px; height: 24px; transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h14m-5-6 6 6-6 6' fill='none' stroke='%230b7fc1' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.case-flow .cf-result { background: var(--ocean); color: #fff; }
.cf-label { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--ocean); }
.cf-main { font-size: 20px; font-weight: 800; line-height: 1.4; margin-top: 2px; }
.cf-sub { font-size: 13.5px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.cf-result .cf-label, .cf-result .cf-sub { color: rgba(255, 255, 255, .85); }
.craft-title { margin-top: 36px; font-size: 18px; }
.craft { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 28px; margin-top: 14px; }
.craft li { position: relative; padding-left: 30px; font-size: 15px; color: var(--muted); }
.craft li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.craft strong { display: block; color: var(--ink); font-size: 16px; }

/* できること */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.service .icon { width: 44px; height: 44px; color: var(--ocean); background: var(--sky); border-radius: 12px; padding: 7px; margin-bottom: 16px; }
.service h3 { font-size: 20px; margin-bottom: 8px; }
.service p { color: var(--muted); font-size: 15px; }

/* 強み */
.strengths { background: var(--sand); }
.strength-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.strength { background: #fff; border-radius: var(--radius); padding: 32px; position: relative; overflow: hidden; }
.strength-num {
  position: absolute; right: 18px; top: -18px; font-size: 120px; font-weight: 800; line-height: 1;
  color: var(--sky); pointer-events: none;
}
.strength h3 { position: relative; font-size: 21px; margin-bottom: 12px; }
.strength p:not(.strength-num) { position: relative; color: #2c4458; font-size: 15.5px; }

/* 料金 */
.price-group { font-size: 15px; font-weight: 800; color: var(--muted); margin: 40px 0 14px; letter-spacing: .04em; }
/* まずはここから：無料相談 → お試し */
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.entry { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; }
.entry + .entry::before {
  content: ""; position: absolute; left: -34px; top: 50%; width: 24px; height: 24px; transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h14m-5-6 6 6-6 6' fill='none' stroke='%230b7fc1' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.entry h4 { font-size: 18px; margin-bottom: 4px; }
.entry .price-desc { font-size: 14px; }
.entry-amount { font-size: 28px; font-weight: 800; color: var(--ocean); white-space: nowrap; letter-spacing: -.01em; }
/* 月額プラン：おすすめを真ん中に */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: center; }
.price { position: relative; display: flex; flex-direction: column; }
.price h4 { font-size: 18px; color: var(--muted); }
.amount { font-size: 40px; font-weight: 800; margin: 6px 0 14px; letter-spacing: -.02em; line-height: 1.2; }
.amount .from { font-size: 22px; font-weight: 700; margin-left: 2px; }
.amount .per { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.price-desc { color: var(--muted); font-size: 15px; }
.price-list { list-style: none; display: grid; gap: 8px; }
.price-list li { position: relative; padding-left: 24px; font-size: 15px; }
.price-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 7px; border-left: 2.4px solid var(--teal); border-bottom: 2.4px solid var(--teal); transform: rotate(-45deg); }
.price.featured { border: 2px solid var(--ocean); box-shadow: var(--shadow); padding-top: 40px; padding-bottom: 40px; }
.badge { position: absolute; top: -13px; left: 24px; background: var(--ocean); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 12px; border-radius: 999px; }
.price-notes { list-style: none; margin-top: 24px; display: grid; gap: 6px; }
.price-notes li { font-size: 14px; color: var(--muted); padding-left: 1.1em; text-indent: -1.1em; }
.price-notes li::before { content: "※ "; }
html[data-lang="en"] .price-notes li::before { content: "· "; }

/* 流れ */
.flow { background: var(--sky); }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.steps li { counter-increment: step; background: #fff; border-radius: var(--radius); padding: 26px 26px 26px 26px; position: relative; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ocean); color: #fff; font-weight: 800; margin-bottom: 14px;
}
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; }

/* プロフィール */
.profile-inner { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.profile-photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 8px solid var(--sky); }
.profile h2 small { font-size: .6em; font-weight: 700; color: var(--muted); margin-left: .2em; }
.profile-role { margin: 6px 0 18px; font-size: 14px; font-weight: 700; color: var(--ocean); }
.profile-body > p[lang] { color: #2c4458; }
.career { list-style: none; display: grid; gap: 10px; margin-top: 22px; padding-left: 16px; border-left: 2px solid var(--sky-2); }
.career li { display: grid; grid-template-columns: 6.4em 1fr; gap: 12px; font-size: 14.5px; line-height: 1.7; color: #2c4458; }
.career-year { font-weight: 700; color: var(--ocean); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li { font-size: 13px; font-weight: 600; background: var(--sky); color: var(--ocean-deep); padding: 4px 12px; border-radius: 999px; }

/* よくある質問 */
.faq { background: linear-gradient(180deg, #fff, var(--sky)); }
.faq h2 { margin-bottom: 28px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-top: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--ocean); font-weight: 500; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* お問い合わせ */
.contact { background: var(--sky); padding-top: 40px; }
.contact-form { margin-top: 32px; background: #fff; border-radius: 24px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-size: 14px; font-weight: 700; }
.req { color: #d2453a; font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fbfdff;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 4px rgba(11, 127, 193, .15); background: #fff; }
.field [aria-invalid="true"] { border-color: #d2453a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.6em; font-size: 14px; font-weight: 600; text-align: center; }
.form-status.ok { color: var(--teal); }
.form-status.error { color: #d2453a; }
.contact-alt { margin-top: 20px; text-align: center; font-size: 14px; color: var(--muted); }
.contact-alt a { font-weight: 700; word-break: break-all; }

/* フッター */
.site-footer { background: var(--ink); color: #c7d6e2; padding: 40px 0; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.footer-brand { color: #fff; font-weight: 800; }
.footer-links { display: flex; gap: 18px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.copy { margin-left: auto; color: #8ea5b8; }

/* ===== タブレット ===== */
@media (max-width: 960px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { order: 2; }
  .why-grid, .service-grid, .price-grid { grid-template-columns: 1fr; }
  .shorts-grid { grid-template-columns: 1fr; }
  .shorts-chart { grid-row: auto; }
  .case-flow { grid-template-columns: 1fr; gap: 36px; }
  .case-flow li + li::before { left: 50%; top: -30px; transform: translateX(-50%) rotate(90deg); }
  .craft { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .strength-grid { grid-template-columns: 1fr; }
  .profile-inner { grid-template-columns: 1fr; gap: 28px; }
  .profile-photo { max-width: 220px; }
  .price-grid { max-width: 520px; align-items: stretch; }
  .entry-grid { grid-template-columns: 1fr; gap: 36px; max-width: 520px; }
  .entry + .entry::before { left: 50%; top: -30px; transform: translateX(-50%) rotate(90deg); }
}

/* ===== スマホ ===== */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 15.5px; }
  .sp-only { display: inline; }
  .header-inner { gap: 10px; height: 58px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 15px; }
  .header-actions { gap: 8px; }
  .header-actions .btn-sm { display: none; }
  .hero { padding: 40px 0 72px; }
  .eyebrow { font-size: 12px; padding: 5px 12px; }
  .lead { font-size: 16px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .section { padding: 64px 0; }
  .case { padding: 24px 18px; border-radius: 22px; }
  /* 実績の動画は横にスワイプ */
  .case-videos {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 24px -18px 0; padding: 0 18px 8px; scrollbar-width: none;
  }
  .case-videos::-webkit-scrollbar { display: none; }
  .clip { flex: 0 0 72%; scroll-snap-align: center; }
  .craft { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .bars li { grid-template-columns: 6.4em 1fr 2.8em; gap: 10px; font-size: 14px; }
  .cols-plot { --plot: 180px; margin-left: 34px; }
  .cols { gap: 4%; padding: 0; }
  .col-pct { font-size: 11.5px; }
  .col-year { font-size: 11px; }
  html[data-lang="en"] .bars li { grid-template-columns: 7.8em 1fr 2.8em; }
  .card, .strength { padding: 24px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px 18px; }
  .copy { margin-left: 0; width: 100%; }
}
