/* ===== テーマ（A/B/C）===== */
:root,
[data-theme="A"] {
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --fw-x: 900; --scale: 1;
  --bg: #FFFFFF; --hero-bg: #E3F3FB; --hero-ink: #1E2F6B; --hero-muted: #4A5A7A; --hero-accent: #D96A00;
  --ink: #1E2F6B; --body: #3A4660; --muted: #5A6580;
  --primary: #257A30; --accent: #F08A1C; --accent-text: #A84F00; --on-accent: #1E2F6B;
  --soft: #EEF7E9; --card: #FFFFFF;
  --story-bg: #257A30; --quote-bg: #1E6A28;
  --cta-bg: #F08A1C; --cta-ink: #1E2F6B;
  --foot-bg: #1E2F6B; --line: #A9D8EC; --dot: #7FBF8A;
  --pill-bg: #1E2F6B; --pill-ink: #FFFFFF; --logo-card: transparent;
  --r: 20px;
}
/* 社長指定：A案（色・親しみ）× C案（読みやすさ）のハイブリッド */
[data-theme="AC"] {
  --font: "BIZ UDPGothic", "Hiragino Sans", sans-serif;
  --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --fw-x: 900; --scale: 1.08;
  --bg: #FFFBF2; --hero-bg: #E3F3FB; --hero-ink: #1E2F6B; --hero-muted: #4A5A7A; --hero-accent: #D96A00;
  --ink: #1E2F6B; --body: #2E3A55; --muted: #525C72;
  --primary: #257A30; --accent: #F08A1C; --accent-text: #A84F00; --on-accent: #1E2F6B;
  --soft: #EEF7E9; --card: #FFFFFF;
  --story-bg: #2B8540; --quote-bg: #23733A; --story-blob: #FFFFFF;
  --cta-bg: #F08A1C; --cta-ink: #1E2F6B;
  --foot-bg: #1E2F6B; --line: #A9D8EC; --dot: #7FBF8A;
  --pill-bg: #1E2F6B; --pill-ink: #FFFFFF; --logo-card: transparent;
  --r: 20px;
}
[data-theme="B"] {
  --font: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --fw-x: 900; --scale: 1;
  --bg: #FFFFFF; --hero-bg: #1E2F6B; --hero-ink: #FFFFFF; --hero-muted: #C9D2E8; --hero-accent: #F28C28;
  --ink: #14213D; --body: #3B4457; --muted: #5E6779;
  --primary: #2F5BD3; --accent: #F28C28; --accent-text: #A84F00; --on-accent: #14213D;
  --soft: #F2F4F8; --card: #FFFFFF;
  --story-bg: #14213D; --quote-bg: #24345E;
  --cta-bg: #1E2F6B; --cta-ink: #FFFFFF;
  --foot-bg: #0E1730; --line: #34497F; --dot: #5A6FA8;
  --pill-bg: #FFFFFF; --pill-ink: #14213D; --logo-card: #FFFFFF;
  --r: 12px;
}
[data-theme="C"] {
  --font: "BIZ UDPGothic", "Hiragino Sans", sans-serif;
  --fw-x: 700; --scale: 1.08;
  --bg: #FFFBF2; --hero-bg: #FFF1D6; --hero-ink: #1A1A1A; --hero-muted: #555555; --hero-accent: #C2410C;
  --ink: #1A1A1A; --body: #2B2B2B; --muted: #555555;
  --primary: #1E7A3C; --accent: #C2410C; --accent-text: #C2410C; --on-accent: #FFFFFF;
  --soft: #FFF4E0; --card: #FFFFFF;
  --story-bg: #1E7A3C; --quote-bg: #165C2D;
  --cta-bg: #C2410C; --cta-ink: #FFFFFF;
  --foot-bg: #2B2B2B; --line: #EBD3A6; --dot: #E0B97A;
  --pill-bg: #1A1A1A; --pill-ink: #FFFFFF; --logo-card: transparent;
  --r: 16px;
}

/* ===== ベース ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
h1, h2, h3, .h2, .eyebrow, .pill, .chip, .ghost, .tile b, .step__no, .role__card b, .dlbar__txt b, .foot b { font-family: var(--font-head, var(--font)); }
body {
  margin: 0; font-family: var(--font); color: var(--body); background: var(--bg);
  font-size: calc(15px * var(--scale)); line-height: 1.75; font-weight: 500;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.sec { position: relative; overflow: hidden; padding: 64px 0; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 見出し */
.eyebrow { display: block; font-size: calc(12px * var(--scale)); font-weight: 700; letter-spacing: .14em; color: var(--accent-text); }
.h2 { font-size: calc(26px * var(--scale)); font-weight: var(--fw-x); color: var(--ink); line-height: 1.4; margin-top: 6px; }
.head { text-align: center; margin-bottom: 28px; }
.ghost {
  position: absolute; top: 4px; right: -8px; z-index: 0; pointer-events: none;
  font-size: 92px; font-weight: var(--fw-x); line-height: 1; color: var(--ink); opacity: .06; white-space: nowrap;
}
.ghost--left { left: -10px; right: auto; }

/* 柄 */
.route { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.route .r { stroke: var(--line); }
.route .rf { fill: var(--line); }
.route .runner { stroke: var(--accent); stroke-dasharray: 1 10; animation: run 1.4s linear infinite; }
@keyframes run { to { stroke-dashoffset: -22; } }
.dots {
  position: absolute; z-index: 0; pointer-events: none; opacity: .6;
  background-image: radial-gradient(var(--dot) 2px, transparent 2.6px); background-size: 12px 12px;
}

/* ピル・ボタン */
.pill {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 7px 14px;
  font-size: calc(12px * var(--scale)); font-weight: 700; line-height: 1.3; text-decoration: none;
}
.pill--gov { background: var(--pill-bg); color: var(--pill-ink); }
.pill--dl { background: var(--accent); color: var(--on-accent); }
.pill--ink { background: var(--ink); color: #fff; }

/* ストアバッジ */
.badges { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.badges a, .badges span { display: block; line-height: 0; }
.badges img { height: 48px; width: auto; }
.badge-off { opacity: .35; cursor: not-allowed; }
.note { font-size: calc(12px * var(--scale)); text-align: center; margin-top: 10px; line-height: 1.6; }

/* スマホ */
.phone {
  position: absolute; aspect-ratio: 9 / 19.5; background: #111; padding: 4px;
  border-radius: 18% / 8.3%; box-shadow: 0 18px 36px rgba(13, 26, 51, .28);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 15% / 7%; }
.float { animation: float 5s ease-in-out infinite; }
.float--2 { animation-delay: -2.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-10px) rotate(var(--rot, 0deg)); }
}

/* ===== 1 ファーストビュー ===== */
.hero { background: var(--hero-bg); color: var(--hero-ink); padding: 16px 0 48px; }
.hero__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.hero__logo { background: var(--logo-card); border-radius: 14px; padding: 6px 10px; }
.hero__logo img { height: 63px; width: auto; }
.hero h1 {
  font-size: calc(35px * var(--scale)); font-size: clamp(30px, 9vw, calc(40px * var(--scale)));
  font-weight: var(--fw-x); line-height: 1.25; margin: 16px 0 14px; color: var(--hero-ink);
}
.hero h1 em { font-style: normal; color: var(--hero-accent); }
.hero__lead { font-size: calc(14px * var(--scale)); line-height: 1.8; }
.hero .note { color: var(--hero-muted); }
/* スマホではスマホ画像を説明文とバッジの間に入れる */
.hero__grid { display: flex; flex-direction: column; align-items: flex-start; }
.hero__grid > div:first-child { display: contents; }
.hero__grid .pill--gov { order: 1; } .hero__grid h1 { order: 2; } .hero__lead { order: 3; }
.hero__grid .stage { order: 4; } .hero__grid .badges { order: 5; width: 100%; margin-top: 0 !important; }
.hero__grid .note { order: 6; width: 100%; }
.stage { position: relative; width: min(342px, 100%); aspect-ratio: 342 / 390; margin: 18px auto 16px; }
.stage__ring { position: absolute; left: -1%; top: 5%; width: 102%; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed var(--primary); }
.stage__circle { position: absolute; left: 8%; top: 13%; width: 85%; aspect-ratio: 1; border-radius: 50%; background: var(--primary); opacity: .92; }
.stage .p1 { left: 10%; top: 12%; width: 40%; --rot: -8deg; }
.stage .p2 { left: 49%; top: 7%; width: 44%; --rot: 6deg; }
.chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink);
  border-radius: 999px; padding: 9px 15px; font-size: calc(13px * var(--scale)); font-weight: 700; line-height: 1.2;
  box-shadow: 0 8px 20px rgba(13, 26, 51, .16); white-space: nowrap;
}
.chip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.chip--1 { left: -1%; top: 77%; }
.chip--2 { right: -1%; top: 86%; }

/* ===== 2 推しポイント ===== */
.point { background: var(--soft); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { background: var(--card); border-radius: var(--r); padding: 18px 4px; text-align: center; box-shadow: 0 6px 18px rgba(13, 26, 51, .08); }
.tile b { display: block; font-size: calc(24px * var(--scale)); font-weight: var(--fw-x); color: var(--primary); line-height: 1.2; }
.tile small { display: block; margin-top: 6px; font-size: calc(11px * var(--scale)); font-weight: 700; color: var(--muted); line-height: 1.45; }
.point__msg { text-align: center; font-weight: 700; margin-top: 22px; line-height: 1.7; }

/* ===== 3 こんな時に便利 ===== */
.scenes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.scene { background: var(--card); border-radius: var(--r); padding: 20px 8px; text-align: center; box-shadow: 0 8px 22px rgba(13, 26, 51, .09); }
.scene svg { width: 88px; height: 88px; margin: 0 auto 8px; display: block; }
.scene p { font-size: calc(14px * var(--scale)); font-weight: 700; line-height: 1.5; }

/* ===== 3.5 役割分担 ===== */
.role { background: var(--soft); }
.role__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch; }
.role__card { background: var(--card); border-radius: var(--r); padding: 20px 12px; text-align: center; box-shadow: 0 6px 18px rgba(13, 26, 51, .07); }
.role__card small { display: block; font-size: calc(12px * var(--scale)); font-weight: 700; color: var(--muted); }
.role__card b { display: block; font-size: calc(18px * var(--scale)); font-weight: var(--fw-x); color: var(--ink); line-height: 1.35; margin: 4px 0 10px; }
.role__card ul { list-style: none; margin: 0; padding: 0; font-size: calc(13px * var(--scale)); line-height: 1.6; }
.role__card li + li { margin-top: 4px; }
.role__card--main { border: 2.5px solid var(--primary); }
.role__card--main b { color: var(--primary); }
.role__card svg { width: 44px; height: 44px; margin: 0 auto 6px; display: block; }
.role__msg { text-align: center; margin-top: 22px; font-weight: 700; color: var(--ink); line-height: 1.7; }
.role__msg strong { font-family: var(--font-head, var(--font)); font-size: calc(20px * var(--scale)); font-weight: var(--fw-x); color: var(--primary); display: block; }

/* ===== 4 使い方 ===== */
.howto { background: var(--bg); }
.steps { display: grid; gap: 28px; }
.step { display: grid; grid-template-columns: 124px 1fr; gap: 16px; align-items: center; }
.step--rev { grid-template-columns: 1fr 124px; }
.step--rev .step__phone { order: 2; }
.step__phone { position: relative; height: 262px; }
.step__phone::before { content: ""; position: absolute; left: 0; top: 80px; width: 124px; height: 124px; border-radius: 50%; background: var(--card); }
.step__phone .phone { left: 6px; top: 8px; width: 112px; }
.step__no { display: block; font-size: calc(13px * var(--scale)); font-weight: 700; letter-spacing: .1em; color: var(--accent-text); }
.step h3 { font-size: calc(19px * var(--scale)); font-weight: var(--fw-x); color: var(--ink); line-height: 1.4; margin: 4px 0 6px; }
.step p { font-size: calc(13px * var(--scale)); color: var(--muted); line-height: 1.65; }
.howto__more { text-align: center; margin-top: 28px; }

/* ===== 5 想い ===== */
.story { background: var(--story-bg); color: #fff; }
.story .route .r { stroke: #fff; } .story .route .rf { fill: #fff; } .story .route { opacity: .14; }
.story__blob { position: absolute; right: -70px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: var(--story-blob, var(--accent)); opacity: .14; }
.story__blob--2 { right: auto; left: -60px; top: auto; bottom: -80px; width: 200px; height: 200px; opacity: .1; }
.story .eyebrow { color: #fff; text-align: center; }
.story h2 { text-align: center; font-size: calc(36px * var(--scale)); font-weight: var(--fw-x); line-height: 1.28; margin: 12px 0 22px; }
.story__text { line-height: 1.85; text-align: center; font-weight: 700; font-size: calc(17px * var(--scale)); }
.quote { background: var(--quote-bg); border-radius: var(--r); padding: 24px 18px; margin: 22px 0; text-align: center; font-weight: 700; font-size: calc(17px * var(--scale)); line-height: 1.7; }
.photo-slot {
  border: 1.5px dashed rgba(255, 255, 255, .8); border-radius: var(--r); height: 200px;
  display: grid; place-items: center; font-size: 12px; background: rgba(255, 255, 255, .1);
}

/* ===== 6 エリア・参画会社 ===== */
.areas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.areas li { list-style: none; background: var(--soft); color: var(--primary); border-radius: 999px; padding: 7px 12px; font-size: calc(13px * var(--scale)); font-weight: 700; line-height: 1.2; }
.areas { padding: 0; margin: 0; }
.area__note { text-align: center; font-size: calc(12px * var(--scale)); color: var(--muted); margin-top: 10px; }
.partners { margin-top: 44px; }
.cos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0; margin: 0; }
.cos li { list-style: none; background: #fff; border-radius: 12px; padding: 14px 8px; text-align: center; box-shadow: 0 4px 14px rgba(13, 26, 51, .08); }
.cos img { height: 52px; width: 120px; object-fit: contain; margin: 0 auto 8px; }
.cos span { font-size: calc(12px * var(--scale)); font-weight: 700; color: var(--body); }

/* ===== 7 FAQ ===== */
.faq { background: var(--soft); }
.qa { background: var(--card); border-radius: var(--r); box-shadow: 0 4px 14px rgba(13, 26, 51, .06); margin-bottom: 12px; }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 18px; font-weight: 700; color: var(--ink); font-size: calc(16px * var(--scale)); line-height: 1.5; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "Q"; flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 13px; }
.qa summary::after { content: "+"; margin-left: auto; color: var(--accent-text); font-size: 22px; transition: transform .25s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 18px 18px 58px; font-size: calc(14px * var(--scale)); line-height: 1.75; }

/* ===== 8 CTA ===== */
.cta { background: var(--cta-bg); color: var(--cta-ink); text-align: center; }
.cta__blob { position: absolute; border-radius: 50%; background: #fff; opacity: .12; }
.cta__blob--1 { width: 300px; height: 300px; left: -90px; top: -70px; }
.cta__blob--2 { width: 200px; height: 200px; right: -50px; bottom: 60px; }
.cta h2 { font-size: calc(32px * var(--scale)); font-weight: var(--fw-x); line-height: 1.32; }
.cta__sub { font-weight: 700; margin-top: 10px; }
.cta .stage { aspect-ratio: 342 / 300; }
.cta .stage .p1 { left: 20%; top: 10%; width: 35%; --rot: -7deg; }
.cta .stage .p2 { left: 47%; top: 5%; width: 37%; --rot: 5deg; }
.cta .note { color: var(--cta-ink); }

/* ===== フッター ===== */
.foot { background: var(--foot-bg); color: #fff; text-align: center; padding: 32px 0 120px; font-size: 12px; line-height: 1.9; }
.foot b { font-size: 15px; display: block; }
.foot a { color: #fff; }

/* ===== 追従DLバー ===== */
.dlbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff;
  box-shadow: 0 -4px 20px rgba(13, 26, 51, .15); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; transform: translateY(110%); transition: transform .35s ease;
}
.dlbar.is-show { transform: none; }
.dlbar img { height: 46px; width: auto; }
.dlbar__txt { flex: 1; min-width: 0; line-height: 1.35; }
.dlbar__txt b, .dlbar__txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlbar__txt b { display: block; font-size: 14px; color: var(--ink); }
.dlbar__txt small { font-size: 10px; color: var(--muted); }
.dlbar .pill { font-size: 13px; padding: 11px 16px; }
.dlbar .pill[aria-disabled="true"] { background: #DDE1E8; color: #4A5260; }

/* ===== 出てくる動き ===== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .float, .route .runner { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== PC表示 ===== */
@media (min-width: 900px) {
  .hero .wrap { max-width: 1040px; }
  .hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
  .hero__grid > div:first-child { display: block; }
  .hero__grid .badges { margin-top: 22px !important; }
  .hero__grid .stage { margin: 0 auto; width: 400px; }
  .hero .badges { justify-content: flex-start; }
  .hero .note { text-align: left; }
  .dlbar { display: none; }
  .foot { padding-bottom: 32px; }
}

/* ===== プレビュー用の色切り替え（?preview の時だけ表示）===== */
.themeswitch { position: fixed; bottom: calc(90px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 99; display: none; gap: 6px; background: rgba(0,0,0,.75); padding: 6px; border-radius: 999px; }
.preview .themeswitch { display: flex; }
.themeswitch button { border: 0; border-radius: 999px; padding: 6px 12px; font: 700 13px/1 sans-serif; cursor: pointer; background: #fff; color: #111; }
.themeswitch button[aria-pressed="true"] { background: #F08A1C; color: #111; }
