:root {
  --ink: #181818;
  --ink-soft: #2a2822;
  --text: #34342f;
  --muted: #747268;
  --gold: #c8b050;
  --gold-dark: #8a7224;
  --cta-yellow: #edc948; /* 明るい黄色。白文字は読めないので濃い文字を乗せる */
  --cream: #f7f2e7;
  --cream-soft: #fbf9f4;
  --paper: #fffdf8;
  --orange: #e8863a;
  --orange-soft: #fbeee0;
  --line: #e3dcc8;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(24, 24, 24, 0.12);
  --soft-shadow: 0 12px 28px rgba(24, 24, 24, 0.08);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  line-height: 1.75;
  overflow-x: clip;
}

/* ===== オープニング演出：イエロー全画面 → 2つの丸が割れて開く → 小さな丸が散る =====
   開閉はCSSアニメで駆動（JS無効でも黄色が固まらない）。JSは小さな丸の生成と後片付けのみ。 */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  pointer-events: none;
  animation: intro-hide 0s linear 2.6s forwards;
}
@keyframes intro-hide { to { visibility: hidden; } }

/* 画面を覆う2つの大きな円。左右に割れて開く（＝窓が開くように中身が現れる） */
.intro-panel {
  position: absolute;
  top: 50%;
  width: 200vmax;
  height: 200vmax;
  border-radius: 50%;
  background: var(--cta-yellow);
  will-change: transform;
}
.intro-panel--l {
  left: 25%;
  transform: translate(-50%, -50%);
  animation: intro-open-l 1.05s cubic-bezier(0.7, 0, 0.2, 1) 0.5s forwards;
}
.intro-panel--r {
  left: 75%;
  transform: translate(-50%, -50%);
  animation: intro-open-r 1.05s cubic-bezier(0.7, 0, 0.2, 1) 0.5s forwards;
}
@keyframes intro-open-l { to { transform: translate(-50%, -50%) translateX(-150vmax); } }
@keyframes intro-open-r { to { transform: translate(-50%, -50%) translateX(150vmax); } }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
}

/* ===== ヒーロー背景に浮かぶ半透明の白い丸（顔・文字を避けた位置に配置） =====
   透明度・サイズ・浮遊の速さは各要素で個別指定（背景画像と一緒にゆらゆら） */
.hero-bubbles {
  position: absolute;
  inset: 0;
  z-index: 0;            /* 背景画像(::before -1)より前・文字/パネル(1)より後ろ */
  overflow: hidden;
  pointer-events: none;
}
.hero-bubble {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  /* 半透明の白＋すりガラス（影なし）。透明度は要素の opacity(--o) で個別に */
  background: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  /* 浮遊（ゆっくり）と 明滅（速め）を別々の周期で。duration/delay は各要素の style で指定 */
  animation-name: hero-bubble-float, hero-bubble-fade;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}
/* 浮遊 */
@keyframes hero-bubble-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
/* 透明度：0（完全に消える）→ --o → 0 を繰り返す */
@keyframes hero-bubble-fade {
  0%, 100% { opacity: 0; }
  50% { opacity: var(--o, 0.6); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bubble { animation: none; opacity: var(--o, 0.6); }
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 10px clamp(18px, 4vw, 42px);
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid rgba(227, 220, 200, 0.78);
  backdrop-filter: blur(18px);
}

.brand img {
  width: auto;
  height: 54px;
}

.global-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.global-nav a {
  position: relative;
  padding: 10px 0;
}

.global-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 350ms ease;
}

.global-nav a:hover::after,
.global-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  padding: 17px 36px;
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* CTA（お申し込み）：オレンジ系グラデを左右にゆっくり流すアニメーション。▶(btn-tri)はそのまま */
.btn-primary {
  color: var(--ink);
  background: linear-gradient(90deg, #d8a922 0%, #fff0a8 45%, #fff0a8 55%, #d8a922 100%);
  background-size: 250% 100%;
  border: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}
@keyframes btn-grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ホバー時だけグラデが動く（通常は静止） */
.btn-primary:hover,
.btn-primary:focus-visible {
  animation: btn-grad-shift 2s ease-in-out infinite;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover,
  .btn-primary:focus-visible { animation: none; }
}

/* フロスト系ボタン（料金を見る）／明るい背景向け */
.btn-frost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(24, 24, 24, 0.2);
  backdrop-filter: blur(6px);
}

.btn-frost:hover,
.btn-frost:focus-visible {
  background: rgba(255, 255, 255, 0.82);
}

/* ボタン内アイコンと矢印 */
.btn-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-ghost {
  color: var(--ink);
  background: #fff;
  border-color: var(--gold);
}

.btn-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.42);
}

.btn-dark {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 14px 32px rgba(24, 24, 24, 0.2);
}

.btn-small {
  min-height: 48px;
  padding: 12px 24px;
  font-size: 15px;
}

/* ===== 全CTA共通の三角アイコン（▲ 通常 → ▶ ホバーで90°回転） =====
   fill: currentColor なのでボタンの文字色に追従。矢印（›）は廃止しこれに統一。 */
.btn-tri {
  flex: 0 0 auto;
  width: 0.85em;
  height: 0.85em;
  fill: currentColor;
  transform-box: border-box;
  transform-origin: 50% 61%;
  transition: transform 0.3s ease;
}

.btn:hover .btn-tri,
.btn:focus-visible .btn-tri {
  transform: rotate(90deg);
}

/* 申し込みセクションの2ボタンを縦積み */
.entry-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.entry-cta-group .btn {
  width: min(360px, 100%);
}

@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
  }
  .btn-tri {
    transition: none;
  }
  .btn:hover .btn-tri,
  .btn:focus-visible .btn-tri {
    transform: none;
  }
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

.nav-toggle span:not(.visually-hidden) {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: min(680px, 78svh);
  overflow: hidden;
  color: var(--ink);
  isolation: isolate;
}

/* トップ画像は疑似要素に置き、ゆっくり上下に浮かせる（上下は overflow:hidden で隠れる分だけ広げてズレを防ぐ）。
   background-position は女性の中心（水平78%・垂直42%）を焦点に固定し、幅が変わっても女性が切れないようにする。 */
.hero::before {
  content: "";
  position: absolute;
  inset: -26px 0;
  z-index: -1;
  background: url("/img/hero-tochigi-mobile.jpg") 78% 42% / cover no-repeat;
  animation: hero-float 6s ease-in-out infinite;
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* 文字を読みやすく：下＝白 → 上＝透明のグラデを背景画像と文字の間に敷く（PC・SP共通）
   白の量（高さ）は PC 控えめ、SP は下部にテキストがあるため多め（SPブロックで上書き） */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  z-index: 0;
  background: linear-gradient(to top, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  width: min(var(--max), calc(100% - 40px));
  min-height: min(680px, 78svh);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 76px) 0 clamp(20px, 2vw, 24px);
}

/* 幅の目安は h1 の2行目「ちょうどいいつながりを」(全角11文字)。
   最大サイズ 60px × 11文字 = 660px あるため、650px だと広い画面で3行に割れる。
   少し余裕をもたせて 700px にして、PCでは必ず2行に収める。 */
.hero-copy {
  max-width: 700px;
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.22;
}

.hero h1 span {
  display: block;
}

.hero-copy p:not(.section-kicker) {
  max-width: 520px;
  margin: 13px 0 0;
  color: var(--text);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
}

.hero-actions {
  flex-wrap: wrap;
  margin-top: 26px;
}

/* トップの2ボタンを最下部CTAと同じサイズ（幅）にそろえる */
.hero-actions .btn {
  width: min(360px, 100%);
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: min(780px, 100%);
  margin-top: calc(clamp(24px, 3vw, 36px) + 50px);
  padding: 16px;
  background: rgba(255, 253, 248, 0.55);
  border: 1px solid rgba(24, 24, 24, 0.08);
  border-radius: 24px;
  backdrop-filter: blur(8px);
}

.hero-panel article {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px;
  color: var(--ink);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.hero-panel article:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 26px rgba(0, 0, 0, 0.15);
}

.feature-body {
  margin-top: -8px;
}

.hero-panel strong {
  display: block;
  color: var(--orange);
  font-size: 24px;
  line-height: 1.5;
}

.hero-panel small {
  display: block;
  margin-top: 6px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

/* 準備中の特徴カードに付ける「\ coming-soon /」。斜線は装飾なので疑似要素で出す */
.feature-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-size: 18px;
  font-weight: 700;
  /* 1 だと g の下がはみ出して切れる */
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.feature-soon::before {
  content: "\\";
}

.feature-soon::after {
  content: "/";
}

.feature-icon {
  display: inline-flex;
  color: var(--ink-soft);
}

.feature-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.feature-icon img {
  width: 135px;
  height: 135px;
  object-fit: contain;
}

/* B：容量の数字「50GB」を大きく・オレンジで強調 */
.feat-num {
  font-size: 1.34em;
  font-weight: 900;
  color: var(--orange);
}

.section {
  position: relative;
  padding: clamp(76px, 9vw, 126px) 20px;
}

.section-head {
  width: min(var(--max), 100%);
  margin: 0 auto 40px;
}

.section-head.centered {
  text-align: center;
}

.section-head h2 {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.2;
}

.section-head p:not(.section-kicker) {
  max-width: 700px;
  margin: 6px auto 0;
  color: var(--muted);
}

.promo {
  padding: clamp(64px, 8vw, 108px) 20px;
  background: var(--cream-soft);
  text-align: center;
}

.promo-card {
  display: grid;
  justify-items: center;
  gap: clamp(28px, 5vw, 48px);
  width: min(1080px, 100%);
  margin: 0 auto;
}

.promo-body {
  max-width: 620px;
}

.promo-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.28;
  white-space: nowrap;
}

.promo-card p:not(.section-kicker) {
  max-width: 520px;
  margin: 5px auto 0;
  color: var(--muted);
  line-height: 1.9;
}

/* 画像は文字の下に中央配置 */
.promo-img {
  width: min(630px, 90%);
  height: auto;
}

/* ===== かけ放題ビジュアル：SVGアニメーション版（tochimo_kakehodai_visual.html を統合） ===== */
.kakehodai-visual {
  --kv-ink: #2B2B2B;
  --kv-gold: #EFB428;
  --kv-bg: var(--cream-soft); /* ★ .promo セクションの背景色と一致（マスクで点線円を隠すため必須） */
  --kv-paper: #FFFEFA;   /* アイコン内部の塗り（白っぽいクリーム） */
  position: relative;
  width: min(720px, 100%);
  aspect-ratio: 1448 / 1086;
  max-width: 720px;
  margin-inline: auto;
}
.kv-icon { position: absolute; z-index: 1; }
.kv-icon svg { width: 100%; height: auto; display: block; overflow: visible; }
.kv-ic { stroke: var(--kv-ink); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.kv-yl { stroke: var(--kv-gold); stroke-width: 3; fill: none; stroke-linecap: round; }
.kv-mask { fill: var(--kv-bg); stroke: none; }

/* 配置：各アイコンの中心が点線円（中心50%,52%・半径31.5%）の円周上に乗る */
.kv-phone    { left: 37.43%; top: 25.05%; width: 24.72%; z-index: 2; }
.kv-speech   { left: 19.4%;  top: 16.3%;  width: 13%; }
.kv-wifi     { left: 42.5%;  top: 8.9%;   width: 15%; }
.kv-globe    { left: 66.9%;  top: 15.2%;  width: 13%; }
.kv-house    { left: 12.1%;  top: 46.3%;  width: 13%; }
.kv-train    { left: 76.0%;  top: 43.6%;  width: 11%; }
.kv-cup      { left: 21.5%;  top: 73.4%;  width: 12.5%; }
.kv-bag      { left: 62.1%;  top: 77.8%;  width: 12.5%; }

/* 点線の円（ゆっくり回転）。アイコンより背面 */
.kv-circle {
  position: absolute; left: 50%; top: 52%;
  width: 63%; aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border: 2px dashed var(--kv-gold);
  border-radius: 50%;
  opacity: 0.6;
  z-index: 0;
  animation: kv-rotate 60s linear infinite;
}
@keyframes kv-rotate { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ===== 6種のkeyframes ===== */
@keyframes kv-floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes kv-blinkD { 0%,100% { opacity: 0.2; } 50% { opacity: 1; } }
@keyframes kv-spinZ  { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes kv-bounceS { 0%,100% { transform: scale(1); } 30% { transform: scale(1.12, 0.88); } 60% { transform: scale(0.94, 1.06); } }
@keyframes kv-drawIn { to { stroke-dashoffset: 0; } }
@keyframes kv-swingR { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

/* 1. ふわふわ浮遊（本体が浮き、影が伸縮） */
.kv-house .kv-float  { animation: kv-floatY 3s ease-in-out infinite; }
.kv-house .kv-shadow { animation: kv-bounceS 3s ease-in-out infinite; transform-origin: 36px 64px; }
/* 2. 電波の順次点滅 */
.kv-b1 { animation: kv-blinkD 2s infinite; }
.kv-b2 { animation: kv-blinkD 2s infinite 0.3s; }
.kv-b3 { animation: kv-blinkD 2s infinite 0.6s; }
/* 3. 回転オービット */
.kv-globe .kv-spin  { animation: kv-spinZ 8s linear infinite; transform-origin: 36px 36px; }
.kv-globe .kv-orbit { animation: kv-spinZ 5s linear infinite reverse; transform-origin: 36px 36px; }
/* 4. ぷるんとバウンス */
.kv-speech .kv-bounce { animation: kv-bounceS 1.8s ease-in-out infinite; transform-origin: 36px 56px; }
.kv-speech .kv-d1 { animation: kv-blinkD 1.8s infinite; }
.kv-speech .kv-d2 { animation: kv-blinkD 1.8s infinite 0.2s; }
.kv-speech .kv-d3 { animation: kv-blinkD 1.8s infinite 0.4s; }
/* 5. 線を描くように出現（湯気） */
.kv-cup .kv-s1 { stroke-dasharray: 20; stroke-dashoffset: 20; animation: kv-drawIn 1.6s ease-out infinite; }
.kv-cup .kv-s2 { stroke-dasharray: 20; stroke-dashoffset: 20; animation: kv-drawIn 1.6s ease-out infinite 0.5s; }
/* 6. ゆらゆらスイング */
.kv-bag .kv-swing { animation: kv-swingR 2.2s ease-in-out infinite; transform-origin: 36px 14px; }
/* 電車：本体は浮遊＋電波は順次点滅 */
.kv-train .kv-float { animation: kv-floatY 4.0s ease-in-out infinite 0.4s; }

/* 登場演出（JSで .is-in を付与） */
.kv-icon { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.kakehodai-visual.is-in .kv-icon { opacity: 1; transform: translateY(0); }
.kakehodai-visual.is-in .kv-phone  { transition-delay: 0s; }
.kakehodai-visual.is-in .kv-wifi   { transition-delay: 0.08s; }
.kakehodai-visual.is-in .kv-globe  { transition-delay: 0.16s; }
.kakehodai-visual.is-in .kv-train  { transition-delay: 0.24s; }
.kakehodai-visual.is-in .kv-bag    { transition-delay: 0.32s; }
.kakehodai-visual.is-in .kv-cup    { transition-delay: 0.40s; }
.kakehodai-visual.is-in .kv-house  { transition-delay: 0.48s; }
.kakehodai-visual.is-in .kv-speech { transition-delay: 0.56s; }

@media (prefers-reduced-motion: reduce) {
  .kakehodai-visual * { animation: none !important; transition: none !important; }
  .kv-icon { opacity: 1; transform: none; }
  .kv-cup .kv-s1, .kv-cup .kv-s2 { stroke-dashoffset: 0; }
}

.recommend {
  background: var(--white);
}

.recommend .section-head {
  margin-bottom: 90px;
}

.recommend-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 66px);
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.recommend-list {
  display: grid;
  gap: 44px;
}

/* スクロールで左から順に入ってくるアニメーション */
.recommend-list article {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.recommend-list.reveal-ready article {
  opacity: 0;
  transform: translateX(-48px);
}

.recommend-list.is-visible article {
  opacity: 1;
  transform: none;
}

.recommend-list.is-visible article:nth-child(1) {
  transition-delay: 0s;
}

.recommend-list.is-visible article:nth-child(2) {
  transition-delay: 0.15s;
}

.recommend-list.is-visible article:nth-child(3) {
  transition-delay: 0.3s;
}

/* 汎用：スクロールで下からフェードイン（JSが .reveal-fade を付与した要素だけ有効） */
.reveal-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-fade.is-revealed {
  opacity: 1;
  transform: none;
}

/* セクションタイトル：スクロールで1文字ずつ現れる（JSが .char に分割し --i を付与） */
.title-reveal .char {
  position: relative;
  top: 0.3em;
  opacity: 0;
  transition: opacity 0.45s ease, top 0.45s ease;
  transition-delay: calc(var(--i) * 0.035s);
}

.title-reveal.is-shown .char {
  top: 0;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .title-reveal .char {
    top: 0;
    opacity: 1;
    transition: none;
  }
}

/* 背景なしのオープンレイアウト。項目間は余白で区切る */
.recommend-list article {
  position: relative;
  padding-left: 52px;
}

/* 番号：Learning Curve・大きめ・斜め・見出しの左に少し重ねる */
.rec-num {
  position: absolute;
  z-index: 0;
  top: -6px;
  left: -6px;
  color: var(--gold);
  font-family: "learning-curve", cursive;
  font-size: 3.8rem;
  font-weight: 400;
  line-height: 1;
  pointer-events: none;
}

/* TOKYO MOBILE 風の互い違い配置：01・03 を右へ、02 は左のまま */
.recommend-list article:nth-child(1),
.recommend-list article:nth-child(3) {
  margin-left: 48px;
}

.rec-content {
  position: relative;
  z-index: 1;
}

/* 見出し：下に細いゴールドのアンダーラインを右方向へ敷く */
.recommend-list h3 {
  display: block;
  margin: 0 0 12px;
  padding-bottom: 10px;
  color: var(--ink);
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 900;
  line-height: 1.45;
  border-bottom: 1px solid var(--gold);
}

/* 先頭キーワードの塗りつぶしボックス */
.rec-key {
  display: inline-block;
  margin-right: 4px;
  padding: 2px 10px;
  color: var(--ink);
  font-weight: 700;
  background: var(--cta-yellow);
  border-radius: 4px;
}

/* 本文：見出しより一段インデント */
.recommend-list p {
  margin: 0;
  padding-left: 12px;
  color: var(--muted);
  line-height: 1.85;
}

/* 本文中キーワードの強調 */
.recommend-list p strong {
  color: var(--gold-dark);
  font-weight: 700;
}

/* PC：指定した本文（01・02の2行目）を <br> の位置以外で折り返させない。
   左カラムは通常 0.95fr（1120px時で本文幅 約477px）しかなく、
   「生活がもっと豊かに、安心できるサービスも取り揃えています。」= 全角29文字 = 464px、
   「お客様の生活に合ったピッタリのプランをご提案させていただきます。」= 全角32文字 = 512px と
   ほぼ同じ幅のため、少しでも画面が狭いと2行に割れてしまう。
   nowrap だけだとカラムからはみ出すので、左カラムの下限を min-content にして
   必要な分だけ広がるようにする（右カラムは 320px を下回らない）。
   1000px 未満はスペースが足りないので、この指定は効かせず素直に折り返させる。 */
@media (min-width: 1000px) {
  .recommend-layout {
    grid-template-columns: minmax(min-content, 0.95fr) minmax(320px, 0.9fr);
  }

  .recommend-list p.rec-nowrap {
    white-space: nowrap;
  }
}

/* 枠付きカード（背景は単色クリーム・グラデーションなし） */
.recommend-art {
  position: relative;
  min-height: 330px;
  padding: 28px;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.recommend-art img {
  position: absolute;
  right: -2%;
  bottom: 18px;
  width: 104%;
  max-width: none;
}


.signal-badge {
  position: relative;
  z-index: 1;
  display: grid;
  width: 114px;
  height: 114px;
  place-items: center;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, #f6e59b, var(--gold));
  border-radius: 999px;
  box-shadow: var(--soft-shadow);
}

.about {
  padding-top: clamp(62px, 8vw, 110px);
  background: var(--cream-soft);
}

/* 参考画像（1792×896 = 2:1）を基準のキャンバスに。写真・装飾は % で配置 */
.about-stage {
  position: relative;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

/* 写真＋ドットの重なり配置キャンバス（参考画像 1792×896 = 2:1） */
.about-visual {
  position: relative;
  aspect-ratio: 1792 / 896;
}

.about-content {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 0;
  width: 46%;
  max-width: 560px;
  transform: translateY(-50%);
}

/* 背景装飾パーツ（tochimo_deco_parts.html／実測データ・無改変）。%は基準要素の寸法に対する値 */
.deco-part {
  position: absolute;
  display: block;
  height: auto;
  pointer-events: none;
}

/* セクション(ステージ)基準 */
.deco-tan-right {
  right: 0;
  top: 17.7%;
  width: 8%;
  height: 70.1%;
  z-index: 0;
}

/* メイン写真(橋)基準：photo--1 の子 */
.deco-main-topleft {
  left: -5.7%;
  top: -7.2%;
  width: 32%;
}
.deco-main-bottom {
  left: 1.7%;
  top: 88.4%;
  width: 38.8%;
}

/* 右上写真基準：photo--2 の子 */
.deco-corner-topright {
  left: 73.1%;
  top: -4.1%;
  width: 46.7%;
}

/* 右下写真基準：photo--3 の子 */
.deco-line-grid {
  left: 71.5%;
  top: -15.6%;
  width: 32.3%;
}

/* ===== 写真（clipPathでブロブ切り抜き＋背面の白フチ scale(1.04)） ===== */
.about-photo {
  position: absolute;
  z-index: 2;
}

.about-photo__frame {
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: scale(1.04);
  filter: drop-shadow(0 14px 26px rgba(24, 24, 24, 0.14));
}

.about-photo__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--object-pos, 50% 50%);
}

/* メイン写真（橋） left=49.8% top=16.5% 幅26.6% 比 472:639 */
.about-photo--1 {
  left: 52.8%;
  top: 16.5%;
  width: 26.6%;
  aspect-ratio: 472 / 639;
}
.about-photo--1 .about-photo__frame,
.about-photo--1 .about-photo__img {
  clip-path: url(#blob-main);
}
.about-photo--1 .about-photo__img {
  --object-pos: 50% 50%;
}

/* 右上写真 left=70.7% top=7.2% 幅23.1% 比 409:362 */
.about-photo--2 {
  left: 73.7%;
  top: 7.2%;
  width: 23.1%;
  aspect-ratio: 409 / 362;
}
.about-photo--2 .about-photo__frame,
.about-photo--2 .about-photo__img {
  clip-path: url(#blob-topright);
}
.about-photo--2 .about-photo__img {
  --object-pos: 50% 45%;
}

/* 右下写真 left=78.5% top=52.1% 幅16.2% 比 288:346 */
.about-photo--3 {
  left: 81.5%;
  top: 52.1%;
  width: 16.2%;
  aspect-ratio: 288 / 346;
}
.about-photo--3 .about-photo__frame,
.about-photo--3 .about-photo__img {
  clip-path: url(#blob-bottomright);
}
.about-photo--3 .about-photo__img {
  --object-pos: 50% 50%;
}

.about-defs {
  position: absolute;
  width: 0;
  height: 0;
}

.about-content h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
}

/* 見出し内の英字は、隣接する日本語より少し大きく＋字間を広げる（フォントルール） */
.en-em {
  font-size: 1.06em;
  letter-spacing: 0.02em;
}

/* 見出し内の一部をオレンジで強調 */
.em-orange {
  color: var(--orange);
}

/* 見出し内の一部に金色のアンダーライン（マーカー風） */
.opt-underline {
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 90%;
  background-size: 100% 10px;
}

/* リード文1行 */
.about-content .about-lead {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
}

/* ゴールドの手描き風マーカー下線（強調テキスト） */
.about-content .mark {
  color: var(--ink);
  font-weight: 700;
  background-image: linear-gradient(var(--cta-yellow), var(--cta-yellow));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% 7px;
  padding-bottom: 1px;
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* アイコン付き3項目リスト */
.about-list {
  display: grid;
  gap: 32px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.about-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(24, 24, 24, 0.06);
}
/* アイコンのタイル：img/「サポートアイコン - コピー.png」のデザインに合わせる。
   （黄色の角丸スクエア＋黒の太い線画＋黄色いグロー）
   元PNGは背景がグレーでグローが焼き込まれているため画像としては使えない。
   同じ見た目をCSSで再現している。 */
.about-list-icon {
  display: grid;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  place-items: center;
  background: var(--cta-yellow);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(237, 201, 72, 0.55);
}
.about-list-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.about-list-body {
  min-width: 0;
}
.about-list-body h3 {
  margin: 4px 0 4px;
  color: #000;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
}
/* タイトルは太字で統一・黄色ハイライトなし（リード文の強調は残す） */
.about-list-body h3 .mark {
  background: none;
  padding-bottom: 0;
}
.about-list-body p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

.notice,
.fineprint {
  color: var(--muted);
  font-size: 13px;
}

.notice {
  margin-top: 22px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
  border-left: 4px solid var(--gold);
}

.plan {
  position: relative;
  padding-top: clamp(114px, 12vw, 170px);
  background: var(--white);
  overflow: hidden;
}

/* SP専用の改行（通常は非表示） */
.sp-br {
  display: none;
}

/* PC専用改行（スマホでは無効化して自然に流す） */
.pc-br {
  display: inline;
}
@media (max-width: 860px) {
  .pc-br {
    display: none;
  }
}

/* タイトル内「5」の強調（PCは1行・中央揃え） */
.plan-title {
  white-space: nowrap;
}
.section-head h2.plan-title {
  max-width: none;
}
.plan-title-em {
  color: var(--orange);
  font-size: calc(1em + 16px);
}
/* PC ではリード文を1行に収める（改行させない） */
.plan-lead {
  max-width: none;
  white-space: nowrap;
}

/* PC では申し込みセクションの見出しを1行に収める（改行させない） */
#application-title {
  white-space: nowrap;
}

/* ===== カードメニュー ===== */
.plan-menu {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

/* Wアンテナプランは3枚。上位プランなので主力5プランより大きいカードにする。
   幅はボックス(.plan-wgroup)の内寸の90%。100%にするとカードがボックスの縁に接して
   グラデーションが見えなくなるので、左右に余白を残すためにここで縮めている。
   カードの大きさを変えたいときは、文字サイズではなくこの % を動かすこと */
.plan-menu--w {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 90%;
}

/* Wアンテナプランのグループ。カード3枚を囲むボックスをグラデーションにして、
   ブロックごと「上位プランの区画」として見せる（カードの地は白のまま＝カードが浮く）。
   見出しとリード文はこのボックスの外（白地の上）に置いてある。
   形は大きめの角丸をつけた四角。地は 紙白 → クリーム の斜めグラデに、
   オレンジ（左上）とゴールド（右下）の光を重ねた3層。
   幅は主力5プランのグリッド（.plan-menu ＝ min(--max, 100%)）と揃える */
.plan-wgroup {
  position: relative;
  isolation: isolate;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(34px, 4.5vw, 52px) clamp(18px, 3vw, 40px) clamp(38px, 5vw, 56px);
  background:
    radial-gradient(90% 70% at 8% 0%, rgba(232, 134, 58, 0.2) 0%, rgba(232, 134, 58, 0) 55%),
    radial-gradient(90% 80% at 100% 100%, rgba(200, 176, 80, 0.32) 0%, rgba(200, 176, 80, 0) 60%),
    linear-gradient(145deg, var(--paper) 0%, var(--cream) 100%);
  border-radius: clamp(24px, 3.5vw, 40px);
}
/* 見出しとリード文はグラデのボックスの外。主力5プランとの間隔もここで確保する */
.plan-wgroup-head {
  margin-top: clamp(56px, 7vw, 88px);
  margin-bottom: 26px;
}
/* バッジ：カードの ★おすすめ / ★大人気（.plan-ribbon）と同じ語彙のラベル。
   ただし斜めに傾けず、見出しの上に水平に置く。主力プランの h2 より小さいまま
   「ここは特別な区画」と伝えるための装置で、文字サイズでは格を出さない
   （主力5プランとWアンテナは同じセクション内。小見出しを親より大きくしない） */
.plan-wbadge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: var(--orange);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(232, 134, 58, 0.3);
}
.plan-wbadge-star {
  margin-right: 4px;
  font-size: 12px;
  line-height: 1;
}

.plan-wgroup-title {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 900;
  line-height: 1.25;
}

/* 見出しの「W」だけ一文字強調。主力タイトルの「5」（.plan-title-em＝オレンジ＋16px）と
   同じ手法。さらに書体をカード内のWと同じ Caveat にして、見出しとカードを呼応させる。
   ※ Caveat は字面が送り幅を右へはみ出すので padding-right で逃がす（カードと同じ理由） */
.plan-wgroup-em {
  font-family: "Caveat", cursive;
  padding-right: 6px;
  color: var(--orange);
  font-size: calc(1em + 22px);
  font-weight: 700;
  line-height: 1;
}

/* カードの地はグラデのボックスから浮かせるため白のまま。影だけゴールド寄りにして立体感を出す。
   余白は主力プラン(28px 18px 26px)より広げて、上位プランらしいゆとりを出す */
.plan-menu--w .plan-card {
  padding: clamp(16px, 2.5vw, 32px) clamp(12px, 1.7vw, 22px) clamp(16px, 2.3vw, 30px);
  box-shadow: 0 10px 26px rgba(138, 114, 36, 0.16);
}

/* 中身も一回り大きく。すべて clamp で、狭い画面では主力プランのスマホ用サイズまで
   自動的に縮む値にしてある（＝ここ以外にレスポンシブの上書きを増やさない）。
   最大値は一度決めた寸法を 0.9 倍したもの */
.plan-menu--w .plan-icon {
  width: clamp(70px, 7.9vw, 100px);
  height: clamp(70px, 7.9vw, 100px);
}
.plan-menu--w .plan-num {
  font-size: clamp(40px, 4.3vw, 50px);
}
.plan-menu--w .plan-unit {
  font-size: clamp(20px, 2.4vw, 29px);
}
.plan-menu--w .plan-desc {
  font-size: clamp(13px, 1.1vw, 14px);
}
.plan-menu--w .plan-price strong {
  font-size: clamp(28px, 3.4vw, 41px);
}

/* キャッチコピーは折り返さない（「気にせず使いたい方へ」＝10文字が一番長い） */
.plan-menu--w .plan-catch {
  padding: 6px 18px;
  font-size: clamp(13px, 1.2vw, 14px);
  white-space: nowrap;
}

/* 容量頭の「W」は手書き太字（Caveat 700）にして、数字（Inter）と質感を変える。
   グラデを文字に流して、ボックスの地のグラデと呼応させる。
   Caveat は縦に細長く、同じ px だと数字より小さく見えるので font-size と位置を補正している。
   ※ Caveat は欧文専用。日本語には使わないこと（Learning Curve と同じ扱い） */
.plan-menu--w .plan-wmark {
  font-family: "Caveat", cursive;
  /* Caveat は同じ px でも文字の高さ（キャップハイト）が Inter の約7割しかないため、
     数字と同じ見た目の高さにするには font-size を大きめに取る必要がある。
     縦位置は .plan-data の align-items:baseline に任せる（transform でずらさない） */
  font-size: clamp(46px, 5vw, 59px);
  font-weight: 700;
  /* 手書き系フォントは字面が送り幅を右へはみ出す。background-clip:text のグラデは
     「要素のボックス内」にしか塗られないので、はみ出した部分が塗り残されて消える
     （Wの右側が切れて u に見える）。margin では塗り範囲は広がらないので padding で
     ボックス自体を広げること。ついでに次の数字との間隔もこの padding で確保する */
  padding-right: clamp(11px, 1.2vw, 14px);
  background: linear-gradient(150deg, var(--gold-dark) 0%, var(--gold) 45%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 18px 26px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(200, 176, 80, 0.5);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(24, 24, 24, 0.05);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

/* マウスを乗せたカードが大きくなって浮く＋枠線を太く・ゴールドに光らせる */
.plan-card:hover {
  transform: translateY(-10px) scale(1.04);
  border-color: var(--gold);
  box-shadow:
    0 22px 44px rgba(24, 24, 24, 0.14),
    0 0 0 2px var(--gold),
    0 0 22px rgba(200, 176, 80, 0.55);
  z-index: 2;
}

/* アイコン（plan01〜plan05.png。画像にゴールドの円が含まれている） */
.plan-icon {
  display: block;
  width: 92px;
  height: 92px;
  margin-bottom: 8px;
  object-fit: contain;
}

/* 容量（数字大＋GB小・青） */
.plan-data {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  margin: 0;
  color: var(--ink);
}
.plan-num { font-size: 48px; font-weight: 900; line-height: 1; }
.plan-unit { font-size: 28px; font-weight: 700; }
/* Wアンテナプランの容量の頭に付く「W」（プラン名が W35GB / W210GB のため）。
   数字より一段小さくしてオレンジにし、Wアンテナのプランだと一目で分かるようにする */
.plan-wmark {
  color: var(--orange);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

/* キャッチコピー（オレンジの枠線＋オレンジ文字・背景は透明） */
.plan-catch {
  margin: 14px 0 0;
  padding: 6px 18px;
  color: var(--orange);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: transparent;
  border: 2.5px solid var(--orange);
  border-radius: 999px;
}

.plan-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* キャッチ下のゴールド点線 */
.plan-dotted {
  width: 66%;
  height: 0;
  margin: 13px 0;
  border-top: 2px dotted var(--gold);
}

/* 価格は下端に揃える・黒 */
.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0 5px;
  margin-top: auto;
  padding-top: 18px;
  white-space: nowrap;
}
.plan-price-lbl {
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
}
.plan-price strong {
  color: var(--orange);
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1;
}
.plan-price-yen {
  color: var(--orange);
  font-size: 15px;
  font-weight: 700;
}
.plan-price-tax {
  flex-basis: 100%;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  text-align: center;
}

/* ===== おすすめカード（20GB）：上部にリボン ===== */
.plan-card--featured {
  border-color: rgba(200, 176, 80, 0.75);
  box-shadow: 0 12px 30px rgba(200, 176, 80, 0.16);
}

/* おすすめバッジ（丸ピル・CTAと同じ明るい黄色＋濃い文字） */
/* おすすめ/大人気：右上のコーナーリボン（45°の斜め帯） */
.plan-ribbon {
  position: absolute;
  top: 20px;
  right: -38px;
  z-index: 2;
  width: 140px;
  padding: 6px 0;
  text-align: center;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: var(--orange);
  transform: rotate(45deg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.plan-ribbon-star {
  margin-right: 3px;
  font-size: 12px;
  color: #fff;
  line-height: 1;
}

.plan-note {
  width: min(920px, 100%);
  margin: 34px auto 0;
  text-align: center;
}

/* プランの申し込みボタン：最下部CTAと同じデザイン（標準サイズ・360px幅） */
.plan-cta {
  width: min(360px, 100%);
}

/* 注記ボックス（ⓘアイコン＋薄背景の角丸ボックス） */
.plan-note-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto 26px;
  padding: 15px 22px;
  text-align: left;
  background: rgba(255, 253, 248, 0.85);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.plan-note-i {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--gold-dark);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.plan-note-i .wf { fill: var(--gold-dark); stroke: none; }
.plan-note-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ===== 取り扱い端末 =====
   通話オプション（--cream-soft）とお客様の声（--cream-soft）の間に挟まるセクション。
   白／--cream-soft の交互の並びどおりに地色は白。カードは --paper なので、
   白地の上では枠線（ゴールド）と影で浮かせる（料金プランのカードと同じ作り）。 */
.device {
  background: var(--white);
}

/* 端末カードは横スクロール。列を固定数にせず grid-auto-flow: column で右へ流し、
   はみ出した分を overflow-x でスクロールさせる。台数が増減してもCSSは触らなくていい。
   scroll-snap でカードの左端に吸着するので、指を離した位置が半端にならない */
.device-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(178px, 21%, 240px);
  align-items: stretch;
  gap: 18px;
  /* flexの中で余った幅をすべて使う。min-width:0 がないと中身の幅に押されてはみ出す */
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  /* ホバーでカードが浮いて拡大する（translateY(-10px) scale(1.04) ＋ 光る影）ぶんの逃げ。
     overflow-x:auto を指定すると overflow-y も auto になり、縦のはみ出しまで切られるため、
     padding で内側に余白を作って、同じ値の負の margin で打ち消す。
     こうすると見た目の位置は余白ゼロのときと完全に同じまま、切られる範囲だけ外に広がる。
     ※ 数値を変えるときは padding と margin を必ずセットで同じ値にすること */
  padding: 34px 10px 30px;
  margin: -34px -10px -30px;
}

/* 吸着位置は「中央」。左端に吸着させると左が必ずぴったり揃って右だけ切れ、
   左が行き止まりのように見える。中央吸着なら左右とも同じだけ切れるので、
   無限ループで両方向に送れることと見た目が一致する */
.device-card {
  scroll-snap-align: center;
}

/* スクロールバーは隠す。「横に動く」ことは左右の矢印ボタンと、
   右端で次のカードが半分見えていることで伝える（指・トラックパッドでの操作は従来どおり可能） */
.device-grid {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.device-grid::-webkit-scrollbar {
  display: none;
}

/* スライダー全体。「ボタン｜カードの帯｜ボタン」を横に並べる。
   ボタンを絶対配置で浮かせるとカードに重なるので、flexで場所を確保して並べている
   （＝どの画面幅でもカードとボタンが重ならない） */
.device-slider {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

/* 送りボタン：白丸＋ゴールドの枠と山形。flexの一員として左右に場所を取る */
.device-nav {
  flex: 0 0 auto;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--white);
  border: 1px solid rgba(200, 176, 80, 0.6);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.1);
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease,
    opacity 200ms ease;
}
.device-nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--gold-dark);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.device-nav:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 22px rgba(200, 176, 80, 0.4);
}
/* 端まで来たボタンは消す（クリックもできなくする） */
.device-nav[disabled] {
  opacity: 0;
  pointer-events: none;
}
/* 指でスワイプするのが自然な幅では、ボタンは出さない */
@media (max-width: 620px) {
  .device-nav {
    display: none;
  }
}

/* カードは影なしのフラットな白い面。上に写真ブロック、下に機種名と価格。
   写真ブロックはカードの左右いっぱいまで広げる（padding を持たせず overflow:hidden で角を丸める）。
   セクションの地も白なので、カードの輪郭は薄い枠線で出す（--line をそのまま使うと
   ゴールド寄りで強いため、黒を8%だけ乗せた中立の線にしている） */
.device-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 24px;
  overflow: hidden;
  text-align: center;
  background: var(--white);
  border: 1px solid rgba(24, 24, 24, 0.08);
  border-radius: 14px;
  /* 影は2枚重ね。すぐ足元の濃いめの影＋広く薄い影で、紙が1枚浮いている見え方にする
     （1枚だけだと「ぼかしただけ」に見えて奥行きが出ない） */
  box-shadow:
    0 1px 3px rgba(24, 24, 24, 0.05),
    0 10px 24px rgba(24, 24, 24, 0.05);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

/* プランカードと同じホバー（浮く＋ゴールドに光る） */
/* ホバー：さらに浮かせて影を深くし、枠線をゴールドに。写真も少し寄る（下の .device-photo） */
.device-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow:
    0 2px 6px rgba(24, 24, 24, 0.07),
    0 16px 32px rgba(24, 24, 24, 0.1);
  z-index: 2;
}

/* ===== .device-badge / .device-spec / .device-dotted は現在どこからも使われていない。
   カードを「写真・機種名・価格」に絞ったため外しただけなので、バッジやスペックを
   戻すときにそのまま使えるよう残してある。消さないこと。 ===== */

/* 右上のバッジ（CTAと同じ明るい黄色＋濃い文字） */
.device-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  white-space: nowrap;
  background: var(--cta-yellow);
  border-radius: 999px;
}
.device-badge--pop {
  color: var(--white);
  letter-spacing: 0.04em;
  background: var(--orange);
}

/* 写真ブロック。カードの主役なので大きく取る。地は白（カードと同じ）＝写真の白と繋がって、
   端末だけが浮いて見える。
   カードを縦長に見せる高さは、幅（.device-grid の grid-auto-columns）とここの高さの比で決まる。
   いまは 240px 幅 × 約400px 高さ ＝ おおよそ 1 : 1.65 */
.device-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  /* 高さを px で固定すると、カードが細くなるSPでブロックの形（縦長→正方形）が変わり、
     写真がどちらの辺で止まるかが画像ごとに入れ替わって、--zoom の効き方が崩れる。
     縦横比で持たせれば、どの画面幅でも形が同じ＝PCと同じ見え方になる。
     240:334 はPC時のカード幅とブロック高さの比。padding も % にして比率を保つ */
  aspect-ratio: 240 / 334;
  margin-bottom: 18px;
  padding: 9%;
  overflow: hidden;
  /* 白一色だと端末が空中に浮いて見えるので、下へ向かってごくわずかに沈ませる。
     端末が「面の上に置かれている」ように見せるための階調（色が付いて見えない程度の濃さ） */
  background: linear-gradient(180deg, var(--white) 55%, rgba(200, 176, 80, 0.08) 100%);
}
/* 写真の拡大率は1枚ずつ違う（2台並びで端末が小さく写っているものほど大きくする）。
   HTML側で style="--zoom: 1.8" のように指定する。無指定なら等倍。
   はみ出したぶんは .device-thumb の overflow:hidden で切られる（写真の余白が切れるだけ） */
.device-photo {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(var(--zoom, 1));
  transition: transform 300ms ease;
}

/* ホバーでカードだけでなく写真も少し寄る。1枚ずつ違う --zoom を掛け算で維持する */
.device-card:hover .device-photo {
  transform: scale(calc(var(--zoom, 1) * 1.05));
}

/* SPだけ倍率を変えたい写真のための逃げ道。HTML側で --zoom-sp を書いた写真だけ、
   狭い画面ではそちらの数字を使う（書いていない写真は --zoom のまま） */
@media (max-width: 620px) {
  .device-photo {
    transform: scale(var(--zoom-sp, var(--zoom, 1)));
  }
}

.device-name {
  margin: 0;
  padding: 0 12px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.device-spec {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* 端末名下のゴールド点線（プランカードと同じ） */
.device-dotted {
  width: 66%;
  height: 0;
  margin: 13px 0;
  border-top: 2px dotted var(--gold);
}

/* 価格はカードの下端に揃える（margin-top:auto）。
   機種名の行数がカードごとに違っても、価格の行だけは横一列に並ぶ */
.device-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0 5px;
  margin: 0;
  margin-top: auto;
  padding: 14px 14px 0;
  white-space: nowrap;
}
.device-price-lbl {
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
}
.device-price strong {
  color: var(--orange);
  font-size: clamp(23px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1;
}
.device-price-yen {
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
}
.device-price-tax {
  flex-basis: 100%;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  text-align: center;
}

.device-note {
  width: min(920px, 100%);
  margin: 34px auto 0;
  text-align: center;
}

/* 横スクロールなので列数の切り替えは不要。狭い画面ではカードと中身を小さくするだけ */
@media (max-width: 520px) {
  .device-grid {
    grid-auto-columns: clamp(150px, 46%, 190px);
    gap: 14px;
  }
  .device-card {
    padding: 0 0 18px;
  }
  /* 高さと padding は触らない。比率で持たせているので、幅が縮めば自動で同じ形のまま縮む
     （ここで px を指定し直すと、PCと形が変わって --zoom の効き方が崩れる） */
  .device-thumb {
    margin-bottom: 14px;
  }
  .device-name {
    font-size: 15px;
  }
}

.call-options {
  position: relative;
  isolation: isolate;
  padding: clamp(76px, 9vw, 118px) 20px;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle, #ffffff 2.5px, transparent 3px) 0 0 / 24px 24px,
    var(--cream-soft);
}

/* 背景装飾（★・丸・破線・吹き出し）：ドット（要素背景）より前・文字より後ろ */
.opt-decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.opt-bubble {
  position: absolute;
  width: clamp(38px, 5vw, 58px);
  opacity: 0.5;
}
.opt-bubble--tl { top: 9%; left: 5%; color: var(--gold); }
.opt-bubble--br { right: 6%; bottom: 10%; color: var(--orange); transform: scaleX(-1); }
.opt-star {
  position: absolute;
  color: var(--gold);
  line-height: 1;
  opacity: 0.85;
}
.opt-star--1 { top: 24%; left: 14%; font-size: 26px; color: var(--orange); }
.opt-star--2 { top: 40%; left: 8%; font-size: 16px; }
.opt-star--3 { bottom: 22%; left: 12%; font-size: 20px; color: var(--orange); }
.opt-star--4 { top: 20%; right: 16%; font-size: 18px; }
.opt-star--5 { top: 46%; right: 9%; font-size: 24px; color: var(--orange); }
.opt-star--6 { bottom: 26%; right: 14%; font-size: 16px; }
.opt-ringlet {
  position: absolute;
  border: 2px solid var(--gold);
  border-radius: 50%;
  opacity: 0.5;
}
.opt-ringlet--1 { top: 30%; left: 22%; width: 12px; height: 12px; }
.opt-ringlet--2 { bottom: 34%; right: 22%; width: 18px; height: 18px; border-color: var(--orange); }
.opt-ringlet--3 { top: 16%; right: 26%; width: 10px; height: 10px; }
.opt-dash {
  position: absolute;
  border: 2px dashed var(--gold);
  border-radius: 50%;
  opacity: 0.45;
}
.opt-dash--1 { top: 34%; left: 4%; width: 46px; height: 46px; }
.opt-dash--2 { bottom: 14%; right: 3%; width: 60px; height: 60px; border-color: var(--orange); }

.option-rings {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 30px);
  width: min(858px, 100%);
  margin: 0 auto;
  padding-top: 35px;
}

/* カード（白い円＋ゴールド→オレンジの弧フチ）。地をグラデにし、内側の白面を::beforeで乗せて3pxの弧を残す */
.opt-ring {
  position: relative;
  z-index: 0;
  display: grid;
  place-content: center;
  aspect-ratio: 1;
  padding: 39px 23px 34px;
  text-align: center;
  color: var(--ink);
  background: linear-gradient(150deg, var(--gold) 0%, var(--orange) 100%);
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(200, 176, 80, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.opt-ring:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 22px rgba(200, 176, 80, 0.18);
}
.opt-ring:nth-child(2) {
  background: linear-gradient(150deg, var(--orange) 0%, var(--gold) 100%);
}
.opt-ring::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fff;
}

/* ホバー時、円の上に沿って右→左に文字が出てきて止まる（ループなし） */
.opt-arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transform: rotate(48deg);
  transform-origin: center;
  transition: opacity 0.35s ease, transform 0.6s cubic-bezier(0.18, 0.9, 0.28, 1.1);
}
.opt-ring:hover .opt-arc,
.opt-ring:focus-within .opt-arc {
  opacity: 1;
  transform: rotate(0deg);
}
.opt-arc-text {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  fill: var(--orange);
}
@media (prefers-reduced-motion: reduce) {
  .opt-arc { transition: none; }
}
/* 中身は白面より前面に */
.opt-num,
.opt-label,
.opt-div,
.opt-price {
  position: relative;
  z-index: 1;
}

/* アイコンバッジ（左上・ゴールド丸＋白フチ） */
.opt-badge {
  position: absolute;
  z-index: 2;
  top: 7%;
  left: 1%;
  display: grid;
  place-items: center;
  width: clamp(44px, 6vw, 56px);
  aspect-ratio: 1;
  color: var(--ink);
  background: var(--cta-yellow);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(200, 176, 80, 0.4);
}
.opt-badge-ico {
  width: 56%;
  height: 56%;
}

/* 数字（フル/10分/5分） */
.opt-num {
  display: block;
  color: var(--orange);
  font-size: clamp(44px, 7vw, 73px);
  font-weight: 950;
  line-height: 1;
}

/* かけ放題（＋小さなキラキラ） */
.opt-label {
  display: block;
  margin-top: 4px;
  font-size: clamp(22px, 3.6vw, 30px);
  font-weight: 900;
  letter-spacing: 0.04em;
}
.opt-spark {
  margin-left: 2px;
  color: var(--gold);
  font-size: 0.7em;
  font-style: normal;
  vertical-align: 12%;
}

/* 点線の区切り */
.opt-div {
  width: 56%;
  height: 0;
  margin: 10px auto 8px;
  border-top: 2px dotted var(--gold);
}

/* 価格 */
.opt-price {
  margin: 0;
  line-height: 1.2;
}
.opt-price-lbl {
  font-size: 17px;
  font-weight: 700;
}
.opt-price strong {
  color: var(--orange);
  font-size: clamp(31px, 4vw, 42px);
  font-weight: 900;
}
.opt-price-yen {
  font-size: 18px;
  font-weight: 700;
}
.opt-price-tax {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.balloon {
  position: absolute;
  width: 74px;
  height: 92px;
  background: var(--gold);
  border-radius: 50% 50% 45% 45%;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.18));
  opacity: 0.9;
}

.balloon::after {
  position: absolute;
  left: 50%;
  bottom: -34px;
  width: 1px;
  height: 38px;
  content: "";
  background: rgba(255, 255, 255, 0.55);
}

.b1 {
  top: 28%;
  left: 8%;
}

.b2 {
  right: 11%;
  bottom: 18%;
  background: var(--orange);
}

.b3 {
  top: 15%;
  right: 22%;
  width: 52px;
  height: 66px;
  background: #e7664b;
}

/* ===== VOICE：うすいクリーム背景＋にぎやか装飾＋吹き出し型カード =====
   前の取り扱い端末が白なので、交互の並びに合わせて地色は --cream-soft。
   吹き出しカード（.voice-card）は白なので、地色との差でカードが浮く。 */
.voice {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--cream-soft);
}

/* 前のご利用の流れが白なので、交互の並びに合わせて地色は --cream-soft。
   アコーディオン（.faq-list details）は白なので、地色との差で輪郭が出る */
.faq {
  background: var(--cream-soft);
  overflow: hidden;
}

/* 背景装飾（コンテンツ背面・淡いオレンジ〜ピーチ） */
.voice-decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.voice-deco-bubble { position: absolute; top: calc(24% - 10px); left: calc(11% - 15px); width: clamp(92px, 12vw, 144px); }
.voice-deco-bubble path { fill: var(--orange-soft); }
.voice-deco-bubble circle { fill: var(--orange); opacity: 0.75; }
.voice-deco-quote {
  position: absolute;
  top: calc(22% + 20px);
  right: calc(6% + 40px);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(90px, 12vw, 160px);
  font-weight: 900;
  line-height: 1;
  color: var(--orange-soft);
}
.voice-deco-dots {
  position: absolute;
  width: 96px;
  height: 68px;
  background: radial-gradient(var(--orange) 2px, transparent 2.5px) 0 0 / 15px 15px;
  opacity: 0.3;
}
.voice-deco-dots--tl { bottom: 9%; left: 2.5%; }
.voice-deco-dots--br { top: 15%; right: 3%; }
.voice-deco-spark { position: absolute; color: var(--gold); line-height: 1; }
.voice-deco-spark--1 { top: 12%; left: 39%; font-size: 22px; }
.voice-deco-spark--2 { top: 7%; right: 33%; font-size: 15px; }
.voice-deco-spark--3 { top: 19%; left: 31%; font-size: 13px; color: var(--orange); }

.voice-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 26px;
  width: min(var(--max), 100%);
  margin: 50px auto 0;
}

/* 吹き出し型カード（薄オレンジの枠線＋角丸＋ツノ）。枠線は不透明色でツノと継ぎ目なく繋ぐ */
.voice-card {
  position: relative;
  background: #fff;
  border: 2px solid #f8d8c0;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(24, 24, 24, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
/* ホバーで持ち上げる（通話オプションと同じ動き）。CASE 02 は拡大を保ったまま持ち上げる */
.voice-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(232, 134, 58, 0.14);
}
.voice-card--02:hover {
  transform: translateY(-6px) scale(1.06);
}
/* スクロールインで1枚ずつフェードイン */
.voice-reveal .voice-card { opacity: 0; transition: opacity 0.6s ease, transform 0.22s ease, box-shadow 0.22s ease; }
.voice-reveal.is-in .voice-card { opacity: 1; }
.voice-reveal.is-in .voice-card--02 { transition-delay: 0.14s; }
.voice-reveal.is-in .voice-card--03 { transition-delay: 0.28s; }
@media (prefers-reduced-motion: reduce) {
  .voice-reveal .voice-card { opacity: 1; transition: none; }
}

.voice-top {
  display: grid;
  grid-template-columns: 1fr 40%;
  gap: 14px;
  padding: 20px 20px 14px;
}
.voice-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.voice-photo {
  align-self: stretch;
  min-height: 178px;
  margin-bottom: -14px;      /* 下パディングを打ち消して色帯に密着 */
  overflow: hidden;
  background: #f2efe9;
  border-radius: 12px 12px 0 0;
}
.voice-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* CASEバッジ：オレンジ地×白文字のピル */
.case-label {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin: 0 0 10px;
  padding: 4px 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: var(--orange);
  border-radius: 999px;
}
.voice-grid h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
}
/* CASE 03 のタイトルは1行固定（改行なし） */
.voice-card--03 h3 {
  white-space: nowrap;
}
.voice-sep {
  width: 72%;
  height: 0;
  margin: 0 0 10px;
  border-bottom: 2px dotted var(--orange);
}
/* CASE 02（黄色カード）は見出し下の点線も黄色に統一 */
.voice-card--02 .voice-sep {
  border-bottom-color: var(--cta-yellow);
}
.profile {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

/* 下段：体験談（黒文字・枠線と同じ薄いオレンジ地）。角丸の下だけ丸める。CASE 02のみ黄色地で上書き */
.voice-body {
  margin: 0;
  min-height: 118px;
  padding: 18px 22px 22px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.75;
  background: #f8d8c0;
  border-radius: 0 0 18px 18px;
}

/* ツノ（吹き出しの尻尾）：塗り(vt-fill)がカード枠線を覆って“開き”、輪郭V(vt-edge)が枠線から連続して伸びる */
.voice-tail {
  position: absolute;
  z-index: 1;
  overflow: visible;
}
.voice-tail .vt-edge {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
}
.voice-tail--l { left: -15px; top: 38%; }
.voice-tail--r { right: -15px; top: 38%; }
.voice-tail--l .vt-fill,
.voice-tail--r .vt-fill { fill: #fff; }
.voice-tail--l .vt-edge,
.voice-tail--r .vt-edge { stroke: #f8d8c0; }
.voice-tail--d {
  bottom: -14px;
  left: 50%;
  margin-left: -20px;
}
.voice-tail--d .vt-fill { fill: var(--cta-yellow); }
.voice-tail--d .vt-edge { stroke: var(--cta-yellow); }

/* CASE 02（中央）強調：明るいイエロー枠＋王冠＋明るいイエロー下段＋一回り大きく */
.voice-card--02 {
  z-index: 2;
  border: 2px solid var(--cta-yellow);
  transform: scale(1.06);
}
.voice-card--02 .voice-body {
  color: var(--ink);       /* 明るいイエロー地なので文字は濃色で可読に */
  background: var(--cta-yellow);
  border-radius: 0 0 15px 15px;
}
/* CASE 02 のバッジは黄色地＋黒文字 */
.voice-card--02 .case-label {
  color: var(--ink);
  background: var(--cta-yellow);
}
.case-crown {
  position: absolute;
  top: -26px;
  left: 50%;
  z-index: 3;
  width: 56px;
  height: auto;
  transform: translateX(-50%);
}

/* 前のお客様の声が --cream-soft なので、交互の並びに合わせて地色は白 */
.flow {
  position: relative;
  overflow: hidden;
  background: var(--white);
}

/* タイトル下の飾り線（両端に丸ドット） */
.flow-rule {
  display: block;
  position: relative;
  width: min(540px, 78%);
  height: 2px;
  margin: 20px auto 0;
  background: var(--gold);
}
.flow-rule::before,
.flow-rule::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  background: var(--orange);
  border-radius: 50%;
  transform: translateY(-50%);
}
.flow-rule::before { left: -3px; }
.flow-rule::after { right: -3px; }

.flow-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 52px;
  width: min(1040px, 100%);
  padding: 0;
  margin: 0 auto;
  list-style: none;
}

/* STEPカード：アウトライン枠のバナー（STEP1=ゴールド / STEP2=オレンジ） */
.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2.5vw, 30px);
  padding: clamp(24px, 3vw, 34px) clamp(26px, 4vw, 46px);
  background: var(--paper);
  border: 2.5px solid var(--cta-yellow);
  border-radius: 22px;
}
.flow-step--2 { border-color: var(--orange); }

/* ステップ間のフロー矢印（下向き二重シェブロン） */
.flow-step--1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -43px;
  width: 30px;
  height: 34px;
  transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='34' viewBox='0 0 30 34' fill='none' stroke='%23e8863a' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5 L15 14 L25 5'/%3E%3Cpath d='M5 18 L15 27 L25 18'/%3E%3C/svg%3E") center / contain no-repeat;
  z-index: 2;
}

/* STEPバッジ（丸＋STEP小ピル＋大きな番号。周りに点線リング） */
.step-badge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--cta-yellow);
}
.flow-step--2 .step-badge {
  background: var(--orange);
}
.step-badge-label {
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.3;
}
.step-badge-num {
  color: var(--ink);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

/* 見出し：地色・アイコンなし、黒文字のみ */
.flow-heading {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 900;
  line-height: 1.3;
}
.flow-desc {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 800;
  line-height: 1.5;
}
.flow-note {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
/* 広い画面ではSTEP1の説明文を1行に（狭い画面・スマホでは折り返す） */
@media (min-width: 1080px) {
  .flow-step--1 .flow-desc { white-space: nowrap; }
}

/* 締めのひとこと（両脇に点線） */
.flow-tagline {
  position: relative;
  z-index: 1;
  margin: clamp(34px, 5vw, 52px) auto 0;
  color: var(--ink);
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 800;
  text-align: center;
}
.flow-tagline strong { color: var(--orange); font-weight: 900; }
.flow-tagline::before,
.flow-tagline::after {
  content: "";
  display: inline-block;
  width: clamp(28px, 8vw, 90px);
  height: 0;
  margin: 0 14px;
  vertical-align: middle;
  border-top: 2px dotted var(--gold);
}

.flow-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* STEP内のアイコン画像。SIM/eSIM は正方形素材(1254²)、本人確認書類(license)は横長素材 */
.flow-icon-img {
  width: 169px;
  height: 169px;
  object-fit: contain;
}

/* STEP1：本人確認書類のカード。2枚あるときは少し重ね、片方を高め・もう片方を低めにずらす（カードを重ねた見せ方） */
.flow-icons--stack {
  gap: 0;
}
.flow-icons--stack .flow-icon-img {
  position: relative;
  width: 183px;
  height: 183px;
  filter: drop-shadow(0 6px 12px rgba(24, 24, 24, 0.16));
}
/* STEP2：SIM/eSIM の2枚を25px近づける（素材の余白ぶんを詰める） */
.flow-icons:not(.flow-icons--stack) .flow-icon-img + .flow-icon-img {
  margin-left: -25px;
}

.flow-icons--stack .flow-icon-img:first-child {
  z-index: 2;
  transform: translateY(-14px);
}
.flow-icons--stack .flow-icon-img:last-child {
  z-index: 1;
  margin-left: -38px;
  transform: translateY(14px);
}
/* 本人確認書類が1枚の画像（2枚のカードが1枚に収まった横長素材）になった場合。
   重ねる必要がないのでずらしを打ち消し、元の2枚ぶんの幅で中央に置く。
   高さは auto ＝ 横長素材が正方形枠で縮まないようにする */
.flow-icons--stack .flow-icon-img:only-child {
  width: 328px; /* 183px×2 − 重なり38px ＝ 元の2枚並びの見た目幅 */
  max-width: 100%;
  height: auto;
  margin-left: 0;
  transform: none;
}

.faq {
  padding-top: clamp(96px, 11vw, 150px);
}


.faq-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(820px, 100%);
  margin: 0 auto;
}

.faq-list details {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(24, 24, 24, 0.05);
}

.faq-list summary {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 68px;
  padding: 16px 58px 16px 20px;
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}

/* Q / A バッジ（英字＝Inter・Q/Aで同じフォント/サイズ/太さ、色だけTOCHIMOで差をつける） */
.faq-list summary > span,
.faq-list p > span {
  display: inline-grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 16px;
  font-weight: 800;
  border-radius: 50%;
}
.faq-list summary > span {
  color: #fff;
  background: var(--orange);
}
.faq-list p > span {
  color: var(--orange);
  background: #fff;
  border: 2px solid var(--orange);
}

/* ＋/× トグル：2本のバーで描画（太さ完全一致・回転で + → ×） */
.faq-list summary::before,
.faq-list summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 15px;
  height: 2.5px;
  background: var(--gold-dark);
  border-radius: 2px;
  transition: transform 0.25s ease;
}
.faq-list summary::before {
  transform: translateY(-50%);
}
.faq-list summary::after {
  transform: translateY(-50%) rotate(90deg);
}
.faq-list details[open] summary::before {
  transform: translateY(-50%) rotate(45deg);
}
.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(135deg);
}

/* 回答（質問と同じ太さ 700） */
.faq-list p {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0;
  padding: 4px 20px 22px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.75;
}

.application {
  padding-top: clamp(38px, 5vw, 60px);
  padding-bottom: clamp(38px, 5vw, 60px);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(232, 240, 232, 0.88)),
    url("/img/hero_tochigi.png") center / cover no-repeat;
}

.application-panel {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: clamp(14px, 3vw, 26px);
  text-align: center;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.application-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.2;
}

.application-panel p:not(.section-kicker) {
  max-width: 620px;
  margin: 18px auto 28px;
  color: var(--muted);
}

.application-panel .hero-actions {
  justify-content: center;
  margin-top: 0;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 48px 20px 116px;
  color: var(--muted);
  background: #fff;
}

.footer-logo img {
  width: 240px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 26px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.site-footer small {
  color: #a19c8b;
}

.sticky-cta {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 28;
  display: block;
  line-height: 0;
  transition: transform 180ms ease;
}

/* 縦長のタブ画像なので高さ基準でサイズ調整（幅は比率に応じて自動） */
.sticky-cta img {
  display: block;
  width: auto;
  height: clamp(240px, 36vh, 330px);
}

.sticky-cta:hover,
.sticky-cta:focus-visible {
  transform: translateY(-2px);
}

/* フローティングボタンの周囲を回る周回テキスト（画像とぴったり重ねる。viewBoxが画像実寸なので必ず一致） */
.fab-orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.fab-orbit-text {
  font-weight: 700;
  font-size: 57px;      /* viewBox単位（スケール約0.3）→ 画面上は約17px */
  letter-spacing: 4px;
  fill: #1f1f1f;
}
@media (prefers-reduced-motion: reduce) {
  .fab-orbit { display: none; }
}

/* SP版のみ表示する固定CTAバー（PCでは非表示） */
.sp-cta-bar {
  display: none;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .brand img {
    width: auto;
    height: 50px;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .global-nav,
  .header-actions {
    grid-column: 1 / -1;
    display: none;
  }

  .site-header.is-open .global-nav,
  .site-header.is-open .header-actions {
    display: flex;
  }

  .site-header.is-open .global-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  .site-header.is-open .header-actions {
    justify-content: flex-start;
  }

  .plan-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* 3カラム以下ではおすすめカードの突き出しを解除 */
  .plan-card--featured {
    margin-top: 0;
  }
}

@media (max-width: 860px) {
  /* タブレット幅は高さだけ調整し、背景はベース（横画像・center right）を継承して
     女性が映るようにする（left center だと空だけが映って画像が消えて見えた） */
  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    width: min(100% - 32px, var(--max));
    padding-top: 56px;
    padding-bottom: 86px;
  }

  .promo-card,
  .recommend-layout {
    grid-template-columns: 1fr;
  }

  /* 特徴パネルはどの幅でも3列横並びを維持 */
  .hero-panel {
    gap: 12px;
  }

  .promo-body {
    max-width: none;
  }

  /* スマホでは画像全体が収まるように（切れ防止） */
  .recommend-art {
    min-height: 0;
    padding: 16px;
    display: grid;
    place-items: center;
  }

  .recommend-art img {
    position: static;
    right: auto;
    bottom: auto;
    width: 100%;
    height: auto;
  }

  /* ABOUT：テキストを上に出し、写真＋ドットは2:1のままPC同様の重なり配置（ドットも表示） */
  .about-content {
    position: static;
    width: 100%;
    max-width: none;
    transform: none;
    margin-bottom: 24px;
  }

  /* SP：空いていた左半分を画面外へ送り、写真クラスターを拡大して中央寄せ */
  .about-stage {
    overflow: hidden;
  }

  .about-visual {
    width: 175%;
    margin-left: -81%;
  }

  .option-rings,
  .voice-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  /* 円カードは縦積みでも円のまま・大きくなりすぎないよう幅を抑える。
     ホバー時の弧テキストが上の円と被らないよう縦間隔を広める */
  .option-rings {
    max-width: 260px;
    row-gap: 58px;
  }

  /* VOICE：縦積み。ツノは非表示、中央カードの拡大は解除、装飾は控えめに */
  .voice-card--02 {
    transform: none;
  }
  .voice-tail {
    display: none;
  }
  .voice-photo {
    min-height: 150px;
  }
  /* 装飾はスマホでは全部隠す（テキスト・カードと重ならないように） */
  .voice-decor {
    display: none;
  }

  .plan-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 680px;
  }

  /* タイトルの点線飾りは狭い幅では非表示・折り返し可 */
  .plan-title {
    display: block;
    max-width: 760px;
    white-space: normal;
  }
  .plan-title::before,
  .plan-title::after {
    display: none;
  }
  /* 狭い幅ではリード文・申し込み見出しの1行固定を解除して折り返す */
  .plan-lead,
  #application-title {
    white-space: normal;
  }

  .flow-step {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 16px;
    padding: 28px 22px;
  }

  .flow-icons {
    justify-content: center;
  }

  /* STEP2のSIM/eSIM。狭い幅では2枚ぶん(169px×2−重なり25px＝313px)が入らず
     縦に折り返してしまうので、折り返しを止めて枠に収まる大きさまで縮める。
     min() の上限を169pxにしてあるので、余裕があるときは元の大きさのまま。 */
  .flow-icons:not(.flow-icons--stack) {
    flex-wrap: nowrap;
    gap: 0; /* 重なりは下の margin-left:-25px で作るので、gapは効かせない */
  }
  .flow-icons:not(.flow-icons--stack) .flow-icon-img {
    width: min(169px, calc((100% + 25px) / 2 - 4px));
    height: auto;
  }

  .confetti::before,
  .confetti::after,
  .balloon {
    display: none;
  }
}

@media (max-width: 620px) {
  /* スマホ専用の縦長ヒーロー画像（疑似要素に指定して浮遊アニメを効かせる） */
  .hero::before {
    background: url("/img/hero-tochigi-mobile-sp.png") center top / cover no-repeat;
  }

  /* SP は下部にテキストがあるので白は多めに戻す */
  .hero::after {
    height: 62%;
  }

  /* SP：タイトル・サブタイトルを中央揃えで、女性の下半身あたり（下部）に配置。
     文字の高さ位置は padding-top を増減して画像に合わせる（大きく=下へ／小さく=上へ）。 */
  .hero-inner {
    align-content: start;
    padding-top: 48vh;
    padding-bottom: 24px;
  }

  .hero-copy {
    text-align: center;
  }

  .site-header {
    min-height: 70px;
    padding: 10px 14px;
  }

  .brand img {
    width: auto;
    height: 44px;
  }

  .site-header.is-open .global-nav,
  .site-header.is-open .header-actions,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero .hero-actions {
    flex-direction: row;
  }

  .hero .btn {
    width: auto;
    flex: 1 1 0;
    min-height: 48px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .global-nav {
    gap: 8px 16px;
  }

  .btn {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  /* SP（中央揃え）専用の視覚補正：
     行末の「、」は1文字分の枠を取るのに点は左下だけ。右半分(約0.5em)が空白のまま
     中央揃えされるため、その行だけ左にズレて見える。空きの半分(0.25em)だけ右へ戻す。
     transform で動かすので折り返し位置・横スクロールには影響しない。
     PC は左揃えなので、この補正は SP のみ。 */
  .hero h1 .h1-punct {
    transform: translateX(0.25em);
  }

  /* SP：リード文は中央揃えで幅いっぱいに（縦長画像では女性の下に置くため） */
  .hero-copy p:not(.section-kicker) {
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    font-size: 16px;
  }

  .hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    /* タイトルの少し下に特徴カードを置く */
    margin-top: 24px;
  }

  .hero-panel article {
    padding: 12px 8px;
  }

  .hero-panel small {
    display: none;
  }

  .hero-panel .feature-soon {
    gap: 4px;
    font-size: 10px;
  }

  .hero-panel .feature-icon img {
    width: 69px;
    height: 69px;
  }

  .hero-panel .feature-body {
    margin-top: 2px;
  }

  .hero-panel strong {
    margin-top: 0;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
  }

  .section,
  .promo,
  .call-options {
    padding-right: 16px;
    padding-left: 16px;
  }

  /* ABOUT（SP）：文字が詰まらないよう左右に余白を足し、見出し・本文・アイコンを一段小さく */
  .about-content {
    padding: 0 8px;
  }
  .about-content h2 {
    font-size: 25px;
  }
  .about-content .about-lead {
    font-size: 15px;
    line-height: 1.65;
  }
  .about-list {
    gap: 22px;
    margin-top: 22px;
  }
  .about-list li {
    gap: 13px;
  }
  .about-list-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    box-shadow: 0 3px 10px rgba(237, 201, 72, 0.5);
  }
  .about-list-icon svg {
    width: 27px;
    height: 27px;
  }
  .about-list-body h3 {
    font-size: 16.5px;
    line-height: 1.5;
  }
  .about-list-body p {
    font-size: 13.5px;
  }

  .promo-card {
    padding: 24px;
  }

  .recommend-list {
    gap: 34px;
  }

  .recommend-list article {
    padding-left: 40px;
  }

  .recommend-list article:nth-child(1),
  .recommend-list article:nth-child(3) {
    margin-left: 20px;
  }

  .rec-num {
    top: -4px;
    left: -4px;
    font-size: 2.8rem;
  }


  /* プランは2列。最後の1枚(50GB)は全幅で横長レイアウト */
  .plan-menu {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 480px;
  }
  /* Wアンテナも同じく2列。3枚目は下の :last-child ルールで全幅・横長になる */
  .plan-menu--w {
    grid-template-columns: 1fr 1fr;
    width: min(480px, 100%);
  }

  .plan-card {
    padding: 16px 12px;
  }

  /* 中身を詰めて縦の高さを下げる（アイコン・数字を小さく、余白を圧縮） */
  .plan-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 4px;
  }
  .plan-num { font-size: 40px; }
  .plan-unit { font-size: 20px; }
  .plan-wmark { font-size: 26px; }
  .plan-catch {
    margin-top: 8px;
    padding: 4px 12px;
    font-size: 13px;
  }
  .plan-dotted { margin: 8px 0; }
  .plan-desc { line-height: 1.5; }
  .plan-price { padding-top: 10px; }
  .plan-price strong {
    font-size: clamp(28px, 7vw, 36px);
  }

  /* 最後の1枚(50GB)は全幅・横長。左にアイコン、右に「容量／キャッチ／価格」を縦整列 */
  .plan-card:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-content: center;
    justify-items: start;
    column-gap: 20px;
    row-gap: 3px;
    text-align: left;
  }
  .plan-card:last-child .plan-icon {
    grid-column: 1;
    grid-row: 1 / span 4;
    align-self: center;
    margin: 0;
  }
  .plan-card:last-child .plan-data {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    justify-content: flex-start;
  }
  .plan-card:last-child .plan-catch {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
  }
  .plan-card:last-child .plan-desc {
    grid-column: 2;
    grid-row: 3;
    margin: 3px 0;
    text-align: left;
  }
  .plan-card:last-child .plan-price {
    grid-column: 2;
    grid-row: 4;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
  }
  .plan-card:last-child .plan-dotted {
    display: none;
  }

  /* かけ放題ビジュアルを1.2倍 */
  .kakehodai-visual {
    margin-top: 16px;
    transform: scale(1.2);
    transform-origin: center;
  }

  /* SP専用の改行を有効化 */
  .sp-br {
    display: inline;
  }

  .faq-list summary {
    min-height: 64px;
    padding-right: 52px;
    font-size: 15px;
  }

  /* SP版はフローティングの丸ボタンを非表示にし、代わりに下部固定バーを表示 */
  .sticky-cta {
    display: none;
  }

  body {
    padding-bottom: 78px;
  }

  .sp-cta-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 253, 248, 0.96);
    box-shadow: 0 -6px 20px rgba(24, 24, 24, 0.12);
    backdrop-filter: blur(6px);
  }

  .sp-cta-bar .btn {
    flex: 1 1 0;
    min-height: 52px;
    padding: 12px 10px;
    font-size: 15px;
    border-radius: 0;
  }

  /* 固定バーがあるので、ヒーロー内のCTAボタンはSPでは非表示 */
  .hero .hero-actions {
    display: none;
  }
}

/* SP：本文・ラベル・価格の月額/円は16px、注釈・補足は14px */
@media (max-width: 620px) {
  .section-head p:not(.section-kicker),
  .promo-card p:not(.section-kicker),
  .recommend-list p,
  .about-content .about-lead,
  .about-list-body p,
  .plan-lead,
  .voice-body,
  .faq-list p,
  .flow-desc,
  .hero-panel strong,
  .plan-price-lbl,
  .plan-price-yen,
  .opt-price-lbl,
  .opt-price-yen,
  .case-label,
  .step-badge-label {
    font-size: 16px;
  }

  .flow-note,
  .notice,
  .fineprint,
  .profile,
  .plan-price-tax,
  .opt-price-tax {
    font-size: 14px;
  }

  /* STEPの2タイトルはSPで4px大きく（20→24px） */
  .flow-heading {
    font-size: 24px;
  }

  /* 締め文の前後の点線はSPでは非表示 */
  .flow-tagline::before,
  .flow-tagline::after {
    display: none;
  }

  /* 締め文はSPで4px大きく（20→24px） */
  .flow-tagline {
    font-size: 24px;
  }
}

/* PC中間幅：プランが3列で折り返す(3+2)とき、下段2枚を中央寄せに
   （6分割グリッドで各カード2span、4・5枚目をオフセット配置） */
@media (min-width: 861px) and (max-width: 1100px) {
  .plan-menu {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  /* Wアンテナは3枚なので、6分割グリッドで各カード2spanのまま1行に収まる */
  .plan-menu--w {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .plan-card {
    grid-column: span 2;
  }
  .plan-card:nth-child(4) {
    grid-column: 2 / span 2;
  }
  .plan-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

/* PCのみ：通話オプションの円のサイズはそのまま、中身（数字・ラベル・価格）を90%に */
@media (min-width: 861px) {
  .opt-num { font-size: clamp(40px, 6.3vw, 66px); }
  .opt-label { font-size: clamp(20px, 3.24vw, 27px); }
  .opt-price strong { font-size: clamp(28px, 3.6vw, 38px); }
  .opt-price-lbl { font-size: 15px; }
  .opt-price-yen { font-size: 16px; }
  .opt-price-tax { font-size: 14px; }
}

/* ===== 会社概要ページ（company.html） =====
   既存トークン（--cream / --paper / --line / --gold ほか）のみで構成。新色は足さない。 */
.company-hero {
  padding: clamp(64px, 8vw, 104px) 20px clamp(28px, 4vw, 44px);
  background: var(--cream);
  text-align: center;
}

.company-hero .section-kicker {
  color: var(--gold-dark);
}

.company-hero h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 900;
  line-height: 1.2;
}

.company {
  padding: clamp(44px, 7vw, 92px) 20px clamp(72px, 9vw, 116px);
}

.company-card {
  width: min(880px, 100%);
  margin: 0 auto;
}

.company-table {
  margin: 0;
}

.company-row {
  display: grid;
  grid-template-columns: 236px 1fr;
  gap: 10px 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.company-row:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.company-table dt {
  position: relative;
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.7;
}

.company-table dt::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.company-table dd {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.85;
}

/* 英数字（電話・メール・番号）は Inter で小さく見えるため気持ち大きめ・強調 */
.company-tel {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.01em;
}

.company-table dd a {
  color: var(--gold-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.company-table dd a:hover,
.company-table dd a:focus-visible {
  color: var(--ink);
}

.company-note {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.company-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.company-list li {
  position: relative;
  padding-left: 16px;
}

.company-list li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}

.company-back {
  width: min(880px, 100%);
  margin: clamp(28px, 4vw, 44px) auto 0;
  text-align: center;
}

.company-back .btn {
  width: min(320px, 100%);
}

@media (max-width: 620px) {
  .company-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 0;
  }

  .company-table dt {
    padding-left: 16px;
    font-size: 14px;
  }
}

/* ===== 法的文書ページ（privacy.html / 個人情報について ほか） =====
   長文の可読性重視。既存トークンのみ使用。 */
.legal {
  padding: clamp(44px, 7vw, 92px) 20px clamp(72px, 9vw, 116px);
}

.legal-card {
  width: min(720px, 100%);
  margin: 0 auto;
}

.legal-intro {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.95;
}

.legal-section {
  margin-top: 40px;
}

.legal-section h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 12px;
  padding-bottom: 12px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.5;
  border-bottom: 2px solid var(--line);
}

/* 見出し番号（英数字＝Inter。プレーンな黒数字） */
.legal-num {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.legal-num::after {
  content: ".";
}

.legal-section p {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.95;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

/* 番号付きリスト（利用目的・第三者提供の除外事由など） */
.legal-list {
  margin: 6px 0 16px;
  padding-left: 0;
  list-style: none;
  counter-reset: legal-item;
}

.legal-list li {
  position: relative;
  padding: 6px 0 6px 40px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.85;
  border-bottom: 1px dashed var(--line);
  counter-increment: legal-item;
}

.legal-list li:last-child {
  border-bottom: none;
}

.legal-list li::before {
  content: counter(legal-item) ".";
  position: absolute;
  top: 6px;
  left: 0;
  color: var(--ink);
  font-weight: 800;
}

/* お問い合わせ窓口の囲み */
.legal-callout {
  margin: 8px 0 16px;
}

.legal-callout p {
  margin: 2px 0;
  line-height: 1.8;
}

.legal-callout-title {
  color: var(--ink);
  font-weight: 800;
}

.legal-section a,
.legal-callout a {
  color: var(--gold-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  word-break: break-word;
}

.legal-section a:hover,
.legal-section a:focus-visible,
.legal-callout a:hover,
.legal-callout a:focus-visible {
  color: var(--ink);
}

.legal-date {
  margin: 40px 0 0;
  padding-top: 20px;
  color: var(--muted);
  font-size: 15px;
  text-align: right;
  border-top: 1px solid var(--line);
}

@media (max-width: 620px) {
  .legal-section h3 {
    font-size: 18px;
    gap: 10px;
  }

  .legal-num {
    font-size: 18px;
  }

  .legal-list li {
    padding-left: 34px;
  }
}
