/* ============================================================
   ヤップアイランド 公式LP (yap-island.jp)
   色数を絞る: 空色 / オフホワイト / 墨 / アクセントのオレンジ のみ

   【編集の入口】
   - 色・角丸・影・フォントを変えたい → 下の :root（デザイントークン）だけ触る
   - セクションの並び順・文言を変えたい → index.html の「============ 番号」コメント
   - クイズの問題を変えたい → js/main.js 冒頭の QUIZ 配列
   このファイルの見出しコメントは index.html のセクション番号と対応している
   ============================================================ */

/* ---------- デザイントークン（ここだけで全体の見た目が変わる） ---------- */
:root {
  --sky-bold: #45bee7;      /* ブランドの空色（色面） */
  --sky-deep: #1d7f98;
  --sky-text: #17657a;      /* 淡色背景上の空色系テキスト */
  --sky-tint: #e3f4fa;
  --paper: #fcfaf4;         /* オフホワイト */
  --ink: #1e2226;
  --ink-soft: #5b656c;
  --accent: #f08a24;
  --accent-deep: #d97413;
  --accent-tint: #fdf0e2;
  --white: #ffffff;
  --ok: #176b36;
  --ng: #9f2020;

  --radius-lg: 40px;
  --radius: 24px;
  --shadow: 0 10px 30px rgba(30, 34, 38, 0.1);
  --shadow-soft: 0 4px 14px rgba(30, 34, 38, 0.1);

  --font: "Noto Sans JP", sans-serif;
  --font-round: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  --anchor-offset: 20px;
}

/* ---------- ベース ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.9;
  background: var(--paper);
  overflow-x: hidden;
  /* 日本語を文節（意味のかたまり）で折り返す。非対応ブラウザは通常の折返しになるだけ */
  word-break: auto-phrase;
  line-break: strict;
}

/* 見出しは行数を揃えて、末尾に1〜2文字だけ残る「泣き別れ」を防ぐ */
h1, h2, h3,
.hero__badge, .empathy__lead, .section__eyebrow,
.why-free__lead, .voices__sns-lead, .cta__sub, .quiz__verdict {
  text-wrap: balance;
}
p, li, summary, figcaption { text-wrap: pretty; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 800px; }

.sp-only { display: none; }
@media (max-width: 767px) {
  .sp-only { display: inline; }
  .pc-only { display: none; }
}

.nowrap { white-space: nowrap; }

.note {
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 22px;
}

/* ヘッダーナビは廃止（2026-07-25）。固定ヘッダーがないので、
   アンカー移動時の余白は --anchor-offset だけ確保する */

/* ---------- セクション共通 ---------- */
.section { padding: 96px 0; scroll-margin-top: var(--anchor-offset); }

.section__title {
  font-family: var(--font-round);
  font-size: clamp(24px, 3.6vw, 40px);
  font-weight: 800;
  text-align: center;
  line-height: 1.45;
  letter-spacing: 0.01em;
  margin-bottom: 48px;
}

.section__eyebrow {
  text-align: center;
  font-family: var(--font-round);
  font-weight: 800;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: 0.14em;
  color: #8a3b00;
  margin-bottom: 12px;
}
.section__eyebrow--onblue { color: var(--ink); }

@media (max-width: 767px) {
  .section { padding: 68px 0; }
  .section__title { margin-bottom: 32px; }
}

/* ============================================================
   1. ファーストビュー
   ============================================================ */
.hero {
  position: relative;
  /* イラストの空の色に合わせたグラデーション（枠なしで馴染ませる） */
  background: linear-gradient(180deg, #a8eafd 0%, #c2e6ec 55%, #c6e3e7 100%);
  padding: 52px 24px 0;
  overflow: hidden;
}

.hero__inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 24px;
  padding-bottom: 48px;
}

.hero__copy { text-align: left; }

.hero__badge {
  display: inline-block;
  background: var(--white);
  font-weight: 900;
  font-size: clamp(14px, 1.8vw, 21px);
  padding: 8px 20px;
  border-radius: 8px;
  transform: rotate(-2deg);
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
}
.hero__badge strong { color: #8a3b00; }

.hero__title {
  font-family: var(--font-round);
  font-weight: 800;
  font-size: clamp(32px, 4.6vw, 62px);
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 22px;
}

.hero__copy .store-badges { justify-content: flex-start; }

/* 実績バッジ */
.hero__record {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(13px, 1.6vw, 18px);
  padding: 7px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
}
.hero__record strong { color: #8a3b00; font-size: 1.15em; }
.hero__record-deco { color: var(--accent); font-weight: 900; }
.hero__record span, .hero__record strong { white-space: nowrap; }

/* 安心の3点セット */
.hero__assure {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 18px;
}
.hero__assure li {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  color: var(--sky-text);
  font-size: clamp(11.5px, 1.3vw, 13px);
  font-weight: 700;
  line-height: 1.4;
  padding: 6px 14px 6px 28px;
  border-radius: 999px;
  white-space: nowrap;
}
/* チェックマーク */
.hero__assure li::before {
  content: "";
  position: absolute;
  left: 12px; top: 50%;
  width: 5px; height: 9px;
  border-right: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: translateY(-65%) rotate(42deg);
}

@media (max-width: 380px) {
  .hero__record { font-size: 12px; padding: 6px 14px; gap: 4px; white-space: nowrap; }
  .hero__assure li { font-size: 11px; padding: 5px 10px 5px 24px; }
  .hero__assure li::before { left: 9px; }
}

/* 実機モック（透過PNG）＋吹き出し＋雲 */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0 8px;
}
.hero__mock {
  position: relative;
  z-index: 1;
  width: min(290px, 66vw);
  border-radius: 34px;
  box-shadow: 0 14px 28px rgba(30, 34, 38, 0.16);
}

/* ふわふわ雲 */
.hero__cloud {
  position: absolute;
  background: var(--white);
  opacity: 0.9;
  border-radius: 999px;
}
.hero__cloud::before {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
  width: 55%; aspect-ratio: 1;
  top: -40%; left: 22%;
}
.hero__cloud--1 { width: 92px; height: 34px; top: 10%; right: 4%; }
.hero__cloud--2 { width: 64px; height: 24px; bottom: 22%; left: 2%; }

/* キャラは実機モック（z-index:1）より手前に置く */
.hero__mate { position: absolute; bottom: -10px; z-index: 2; }
/* ヤプジマくん（全身） */
.hero__mate--yapjima {
  width: clamp(100px, 12vw, 168px);
  right: max(0px, calc(50% - 268px));
  animation: float 3.4s ease-in-out infinite;
}
.hero__mate--chicken {
  width: clamp(70px, 8vw, 104px);
  left: max(0px, calc(50% - 250px));
}

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

@media (max-width: 900px) {
  .hero { padding-top: 34px; }
  .hero__inner { grid-template-columns: 1fr; gap: 18px; padding-bottom: 28px; }
  .hero__copy { text-align: center; }
  .hero__copy .store-badges { justify-content: center; }
  .hero__assure { justify-content: center; }
  .hero__badge { margin-bottom: 14px; }
  .hero__title { margin-bottom: 16px; }
  .hero__record { margin-bottom: 16px; }
  .hero__mock { width: min(260px, 62vw); }
  .hero__mate--yapjima { right: 0; width: clamp(96px, 27vw, 132px); }
  .hero__mate--chicken { left: 0; width: clamp(64px, 18vw, 92px); }
}

/* ---------- ストアバッジ ---------- */
.store-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.store-badges img { height: 54px; width: auto; transition: transform 0.2s; }
.store-badges a:hover img { transform: scale(1.05); }
@media (max-width: 767px) { .store-badges img { height: 46px; } }
@media (max-width: 380px) {
  .store-badges { gap: 8px; }
  .store-badges img { height: 38px; }
}

/* ============================================================
   2. 共感のつかみ
   ============================================================ */
.section--empathy { background: var(--paper); text-align: center; }

.empathy__lead {
  font-weight: 700;
  font-size: clamp(15px, 2vw, 20px);
  color: var(--sky-text);
  margin-bottom: 14px;
}
.empathy__title {
  font-family: var(--font-round);
  font-weight: 800;
  font-size: clamp(24px, 3.8vw, 40px);
  line-height: 1.5;
  margin-bottom: 22px;
}
.empathy__sub {
  font-size: clamp(14px, 1.6vw, 16px);
  max-width: 36em;
  margin: 0 auto;
}

/* ============================================================
   3. クイズ体験デモ
   ============================================================ */
.section--try {
  background: linear-gradient(180deg, var(--sky-tint) 0%, var(--paper) 100%);
}

.quiz {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px 28px 28px;
  max-width: 620px;
  margin: 0 auto;
}
@media (max-width: 480px) {
  .quiz { border-radius: 28px; padding: 22px 16px 20px; }
  .quiz__stone { padding: 24px 16px 40px; }
}

/* 石板＋キャラ＋進捗バー（アプリの出題画面に合わせた並び）
   左に --chara-gutter 分の余白をあけ、そこにヤプジマくんを置く。
   キャラは余白より少し大きいので石板の左下に軽く重なるが、問題文には絶対にかからない */
.quiz__board {
  position: relative;
  --chara-w: clamp(70px, 18vw, 92px);
  --chara-h: calc(var(--chara-w) * 1.24);   /* chara-full.png は 809:1003 */
  --chara-into-stone: 30px;                  /* 頭が石板に食い込む量 */
  /* キャラの下半分は石板の外（カードの白地）に立たせる。
     進捗バー領域（margin12＋高さ9）を差し引いた分だけ下に余白を作る */
  padding-bottom: calc(var(--chara-h) - 21px - var(--chara-into-stone));
}

.quiz__stone {
  position: relative;
  /* 岩っぽく見せるため四隅の丸みを不揃いに */
  background: linear-gradient(155deg, #e8e9ea 0%, #d8dadb 100%);
  border-radius: 44px 62px 34px 54px / 52px 38px 60px 42px;
  /* 下の余白は「頭が食い込む分＋少し」だけ。問題文が短くても間延びしない */
  padding: 28px 26px 42px;
  display: flex;
  align-items: center;
  filter: drop-shadow(0 4px 6px rgba(30, 34, 38, 0.12));
}
.quiz__question {
  font-family: var(--font-round);
  font-weight: 800;
  font-size: clamp(15px, 2.1vw, 19px);
  line-height: 1.8;
  text-align: center;
  /* 1行が長くなりすぎないように文字数で頭打ちにする */
  max-width: 19em;
  margin: 0 auto;
}
.quiz__count {
  position: absolute;
  right: 24px; bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

/* 石板の左下に重なるヤプジマくん（全身） */
.quiz__chara {
  position: absolute;
  left: 2px; bottom: 0;
  z-index: 2;
  width: var(--chara-w);
  transition: transform 0.35s ease;
}
.quiz.is-correct .quiz__chara { animation: cheer 0.6s ease; }
@keyframes cheer {
  0%, 100% { transform: translateY(0) rotate(0); }
  30% { transform: translateY(-14px) rotate(-8deg); }
  60% { transform: translateY(-6px) rotate(6deg); }
}

/* 進捗バー（アプリ同様、石板の下・キャラの右） */
.quiz__progress {
  margin: 12px 0 0 calc(var(--chara-w) + 8px);
  height: 9px;
  background: #dcdedf;
  border-radius: 999px;
  overflow: hidden;
}
.quiz__progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: #f5b53c;
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* ○× ボタン */
.quiz__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}
.quiz__actions[hidden] { display: none; }
.quiz__btn {
  appearance: none;
  border: 2.5px solid var(--ink);
  background: #f2f3f4;
  border-radius: 16px;
  height: 74px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.quiz__btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.quiz__btn:active { transform: translateY(0); }
.quiz__btn:disabled { cursor: default; opacity: 0.45; transform: none; box-shadow: none; }
.quiz__btn.is-picked { opacity: 1; background: var(--white); }
.quiz__btn.is-picked.quiz__btn--o { border-color: var(--ok); }
.quiz__btn.is-picked.quiz__btn--x { border-color: var(--ng); }

.quiz__mark { display: block; }
.quiz__mark--o {
  width: 34px; height: 34px;
  border: 5px solid var(--ok);
  border-radius: 50%;
}
.quiz__mark--x {
  position: relative;
  width: 34px; height: 34px;
}
.quiz__mark--x::before,
.quiz__mark--x::after {
  content: "";
  position: absolute;
  inset: 0; margin: auto;
  width: 40px; height: 5px;
  background: var(--ng);
  border-radius: 3px;
}
.quiz__mark--x::before { transform: rotate(45deg); }
.quiz__mark--x::after { transform: rotate(-45deg); }

/* 判定 */
.quiz__result {
  margin-top: 18px;
  text-align: center;
  animation: pop 0.35s ease;
}
.quiz__announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@keyframes pop {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.quiz__verdict {
  font-family: var(--font-round);
  font-weight: 800;
  font-size: clamp(18px, 2.4vw, 22px);
  margin-bottom: 6px;
}
.quiz.is-correct .quiz__verdict { color: var(--ok); }
.quiz.is-wrong .quiz__verdict { color: var(--ng); }
.quiz__explain {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 32em;
  margin: 0 auto;
}
.quiz__next {
  appearance: none;
  border: 0;
  margin-top: 16px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-round);
  font-weight: 800;
  font-size: 15px;
  padding: 12px 30px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.quiz__next:hover { background: var(--accent-deep); transform: scale(1.04); }

/* 貯めたあとの流れ */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}
@media (max-width: 767px) { .flow { grid-template-columns: 1fr; gap: 12px; max-width: 460px; margin-left: auto; margin-right: auto; } }

.flow__step {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 20px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
/* PCは→、SPは↓ でつなぐ */
.flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -12px; top: 50%;
  width: 9px; height: 9px;
  border-top: 3px solid var(--sky-bold);
  border-right: 3px solid var(--sky-bold);
  transform: translateY(-50%) rotate(45deg);
}
@media (max-width: 767px) {
  .flow__step:not(:last-child)::after {
    right: 50%; top: auto; bottom: -11px;
    transform: translateX(50%) rotate(135deg);
  }
}
.flow__icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  margin: 0 auto 10px;
  background: var(--sky-bold);
  color: var(--ink);
  font-family: var(--font-round);
  font-weight: 800;
  font-size: 17px;
  border-radius: 50%;
}
.flow__step h3 {
  font-family: var(--font-round);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}
.flow__step p { font-size: 13px; line-height: 1.75; color: var(--ink-soft); }

/* ============================================================
   4. どんなアプリ？（丸アイコン3つ）
   ============================================================ */
.section--about { background: var(--white); }
.section--about .section__title { font-size: clamp(19px, 2.6vw, 28px); margin-bottom: 44px; }
.section--about .section__title em { font-style: normal; color: #8a3b00; }

/* 横長のイラストを大きく見せたいので、丸ではなくカードで置く */
.point-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 940px;
  margin: 0 auto;
}
@media (max-width: 767px) {
  .point-cards { grid-template-columns: 1fr; gap: 16px; max-width: 460px; }
}

.point-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  padding-bottom: 24px;
  transition: transform 0.25s;
}
.point-card:hover { transform: translateY(-6px); }

.point-card__art {
  background: var(--sky-tint);
  height: 168px;
  display: grid;
  /* 元絵が下で切れているので、帯の下辺に揃えて「奥に立っている」ように見せる */
  place-items: end center;
  padding: 14px 20px 0;
  overflow: hidden;
}
/* 縦長の絵と横長の絵が混ざるので、高さの上限だけpxで揃える */
.point-card__art img {
  width: auto; height: auto;
  max-width: 100%;
  max-height: 140px;
}
.point-card h3 {
  font-family: var(--font-round);
  font-weight: 800;
  font-size: clamp(16px, 1.9vw, 18px);
  margin: 20px 0 6px;
}
.point-card p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  padding: 0 20px;
}

.circles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 20px;
  max-width: 900px;
  margin: 0 auto;
}
.circles--four { grid-template-columns: repeat(4, 1fr); max-width: 1040px; }

@media (max-width: 767px) {
  .circles, .circles--four { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
}

.circle { text-align: center; min-width: 0; }
.circle__img {
  width: min(180px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 14px;
  background: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}
.circle:hover .circle__img { transform: translateY(-6px); }
.circle__img img { width: 78%; height: 78%; object-fit: contain; }
.circle h3 {
  font-family: var(--font-round);
  font-weight: 800;
  font-size: clamp(14px, 1.8vw, 17px);
  margin-bottom: 6px;
}
.circle p { font-size: 13px; line-height: 1.7; }

/* ============================================================
   5. 島のあそび（空色の全幅色面）
   ============================================================ */
.section--features { background: var(--sky-bold); }
.section--features .section__title {
  color: var(--ink);
  font-size: clamp(19px, 2.6vw, 28px);
  margin-bottom: 44px;
}
.section--features .circle h3,
.section--features .circle p { color: var(--ink); }

/* ============================================================
   6. アプリの中身（スクショ横スクロール）
   ============================================================ */
.section--gallery { background: var(--paper); padding-bottom: 72px; }

.gallery {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 18px;
  scrollbar-width: thin;
}
.gallery__track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 0 max(24px, calc((100vw - 1080px) / 2));
}
.gallery__track li { scroll-snap-align: center; flex: none; }
.gallery__track img {
  width: clamp(190px, 46vw, 250px);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.gallery__hint {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}
@media (min-width: 1100px) { .gallery__hint { display: none; } }

/* ============================================================
   7. 安心のしくみ
   ============================================================ */
.section--trust { background: var(--white); }

.why-free {
  max-width: 900px;
  margin: 0 auto 56px;
}
.why-free__lead {
  text-align: center;
  font-weight: 700;
  font-size: clamp(15px, 1.8vw, 17px);
  margin-bottom: 26px;
}
.why-free__flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 767px) { .why-free__flow { grid-template-columns: 1fr; gap: 14px; max-width: 460px; margin: 0 auto; } }

.why-free__flow li {
  position: relative;
  background: var(--sky-tint);
  border-radius: var(--radius);
  padding: 26px 20px 20px;
  text-align: center;
}
.why-free__flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -12px; top: 50%;
  width: 9px; height: 9px;
  border-top: 3px solid var(--sky-bold);
  border-right: 3px solid var(--sky-bold);
  transform: translateY(-50%) rotate(45deg);
}
@media (max-width: 767px) {
  .why-free__flow li:not(:last-child)::after {
    right: 50%; top: auto; bottom: -12px;
    transform: translateX(50%) rotate(135deg);
  }
}
.why-free__num {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  margin: 0 auto 10px;
  background: var(--sky-deep);
  color: var(--white);
  font-family: var(--font-round);
  font-weight: 800;
  font-size: 16px;
  border-radius: 50%;
}
.why-free__flow h3 {
  font-family: var(--font-round);
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.6;
  margin-bottom: 6px;
}
.why-free__flow p { font-size: 13px; line-height: 1.75; color: var(--ink-soft); }

/* 安心ポイント */
.assure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 767px) { .assure-grid { grid-template-columns: 1fr; max-width: 480px; } }

.assure {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 24px 24px 22px 56px;
}
.assure::before {
  content: "";
  position: absolute;
  left: 24px; top: 30px;
  width: 8px; height: 15px;
  border-right: 3px solid var(--ok);
  border-bottom: 3px solid var(--ok);
  transform: rotate(42deg);
}
.assure h3 {
  font-family: var(--font-round);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}
.assure p { font-size: 13.5px; line-height: 1.8; color: var(--ink-soft); }

/* 運営会社 */
.operator {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  max-width: 900px;
  margin: 44px auto 0;
  padding: 30px 32px;
  background: var(--paper);
  border: 2px solid var(--sky-tint);
  border-radius: var(--radius);
}
@media (max-width: 767px) {
  .operator { flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: 26px 22px; max-width: 480px; }
}
/* 運営会社（JBI）のロゴマーク */
.operator__mark {
  flex: none;
  display: block;
  width: 64px;
  transition: transform 0.2s;
}
.operator__mark:hover { transform: scale(1.06); }
.operator__mark img { width: 100%; height: auto; }
.operator__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--sky-text);
}
.operator__body h3 {
  font-family: var(--font-round);
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 800;
  margin-bottom: 8px;
}
.operator__body p { font-size: 13.5px; line-height: 1.85; color: var(--ink-soft); }
.operator__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--sky-text);
  text-decoration: none;
  border-bottom: 2px solid var(--sky-tint);
}
.operator__link:hover { border-color: var(--sky-deep); }

/* ============================================================
   8. 島民の声
   ============================================================ */
.section--voices { background: var(--paper); }

/* ストアレビューを2段で横に流す（マーキー）。
   縦に積むと非常に長くなるため、1画面に収めて雰囲気を伝える見せ方にしている */
.reviews {
  --review-gap: 20px;
  display: grid;
  gap: var(--review-gap);
  /* 全幅で流したいので .container の外側までカードを走らせる */
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.reviews__row {
  display: flex;
  gap: var(--review-gap);
  overflow: hidden;
  /* 左右の端をふわっと消して「まだ続いている」感じを出す */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.reviews__track {
  display: flex;
  gap: var(--review-gap);
  flex: none;
  padding-right: var(--review-gap);
  animation: review-marquee 72s linear infinite;
}
.reviews__row--reverse .reviews__track { animation-direction: reverse; }

@keyframes review-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* 読みたいときは止まる */
.reviews:hover .reviews__track,
.reviews:focus-within .reviews__track { animation-play-state: paused; }

/* フォーカス中の列は横スクロールできるようにする。
   overflow: hidden のままだと tabindex を付けても、その時点で枠外にある
   カードへキーボードで到達できない。トラックは同じ内容を 2 本並べているため、
   停止位置から右へスクロールすれば全レビューを読める。
   スクロールバーは出さない（フォーカスで高さが変わるのを避ける） */
.reviews__row:focus-within {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.reviews__row:focus-within::-webkit-scrollbar { display: none; }

.review {
  flex: none;
  /* 幅を広めに取ると長いレビューでも行数が増えず、省略せずに収まる */
  width: clamp(286px, 30vw, 400px);
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
}
/* 行の高さは一番背の高いカードに揃うが、著者名は本文の直後に置く。
   下に auto で飛ばすと短いカードの真ん中に穴が空いて見える */
.review__author { margin-top: 12px; }

/* 動きを減らす設定のときは流さず、指で横スクロールできるようにする */
@media (prefers-reduced-motion: reduce) {
  .reviews__row {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .reviews__track { animation: none; }
  .reviews__track[aria-hidden="true"] { display: none; }
}

.review__stars {
  color: #8a3b00;
  font-size: 15px;
  letter-spacing: 0.12em;
  line-height: 1.4;
  margin-bottom: 6px;
}
.review__stars-off { color: #5f6669; }
.review h3 {
  font-family: var(--font-round);
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.6;
  margin-bottom: 8px;
}
/* レビューは省略せず全文を出す。カードを広めに取って行数を抑えている */
.review > p:not(.review__stars):not(.review__author) {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}
.review__author {
  font-size: 12px;
  font-weight: 700;
  color: var(--sky-text);
  margin-top: 12px;
}
.review__author::before { content: "— "; }

.reviews__source {
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 18px;
}

/* SNS動画 */
.voices__sns-lead {
  text-align: center;
  font-family: var(--font-round);
  font-weight: 800;
  font-size: clamp(17px, 2.2vw, 22px);
  margin: 56px 0 28px;
}

.sns-videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 440px));
  justify-content: center;
  gap: 24px;
}
@media (max-width: 900px) { .sns-videos { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

.sns-video figcaption {
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  margin-top: 12px;
}

.yt-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.yt-embed img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-embed__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 66px; height: 48px;
  border: 0;
  border-radius: 14px;
  background: rgba(240, 138, 36, 0.95);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.yt-embed__play::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0; height: 0;
  border-style: solid;
  border-width: 9px 0 9px 16px;
  border-color: transparent transparent transparent var(--ink);
}
.yt-embed:hover .yt-embed__play { transform: scale(1.1); background: var(--accent-deep); }

/* ============================================================
   9. はじめ方＋FAQ
   ============================================================ */
.section--start { background: var(--white); }

.howto {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .howto { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; gap: 36px; } }

.howto-step {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 40px 24px 26px;
  text-align: center;
}
.howto-step__num {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-round);
  font-size: 24px;
  font-weight: 800;
  border-radius: 50%;
  border: 4px solid var(--white);
}
.howto-step h3 {
  font-family: var(--font-round);
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
}
.howto-step p { font-size: 13.5px; color: var(--ink-soft); }

.faq__heading { margin-top: 88px; }
@media (max-width: 767px) { .faq__heading { margin-top: 64px; } }

.faq {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 auto;
  scroll-margin-top: var(--anchor-offset);
}

.faq__item {
  background: var(--paper);
  border-radius: 20px;
  overflow: hidden;
}
.faq__item summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 54px 20px 22px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  position: relative;
  user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before {
  content: "Q";
  flex: none;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--sky-bold);
  color: var(--ink);
  font-family: var(--font-round);
  font-weight: 800;
  border-radius: 50%;
}
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 24px;
  width: 9px; height: 9px;
  border-right: 3px solid var(--sky-deep);
  border-bottom: 3px solid var(--sky-deep);
  transform: rotate(45deg);
  transition: transform 0.25s;
}
.faq__item[open] summary::after { transform: rotate(225deg); }
.faq__answer { padding: 0 24px 22px 66px; font-size: 14px; }
@media (max-width: 480px) { .faq__answer { padding-left: 24px; } }

/* ============================================================
   10. CTA
   ============================================================ */
.section--cta {
  background: var(--sky-bold);
  text-align: center;
  overflow: hidden;
  padding-bottom: 0;
}
.cta__face { width: 150px; margin: 0 auto 16px; animation: float 3.4s ease-in-out infinite; }
.cta__title {
  font-family: var(--font-round);
  font-size: clamp(26px, 4.6vw, 46px);
  font-weight: 800;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 14px;
}
.cta__sub {
  color: var(--ink);
  font-size: clamp(13.5px, 1.6vw, 16px);
  font-weight: 700;
  margin-bottom: 30px;
}
.cta__assure { justify-content: center; margin-top: 22px; }
.cta__chicken { width: 110px; margin: 36px auto 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--paper);
  color: var(--ink);
  padding: 34px 0 96px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__jbi img { opacity: 0.85; }
.footer__x { display: grid; place-items: center; opacity: 0.85; transition: opacity 0.2s; }
.footer__x:hover { opacity: 1; }
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer__legal a { font-size: 13px; opacity: 0.85; text-decoration: none; }
.footer__legal a:hover { text-decoration: underline; }
.footer__note {
  width: 100%;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-top: 4px;
}
.footer__copy { font-size: 12px; opacity: 0.65; width: 100%; text-align: center; }
@media (min-width: 768px) { .footer { padding-bottom: 34px; } }

/* ---------- モバイル追従DLバー ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 90;
  transform: translateY(110%);
  transition: transform 0.3s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta p { font-size: 12px; font-weight: 700; }
@media (max-width: 430px) { .sticky-cta p { display: none; } }
.sticky-cta__badges { display: flex; gap: 8px; }
.sticky-cta__badges img { height: 38px; width: auto; }

@media (max-width: 767px) {
  .sticky-cta { display: flex; }
}

/* ---------- スクロールで出現 ---------- */
.has-reveal .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.has-reveal .reveal.is-shown { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticky-cta { transition: none; }
  .faq__item summary::after { transition: none; }
  .quiz__progress-bar { transition: none; }
  .hero__bubble,
  .hero__mate--yapjima,
  .cta__face { animation: none; }
  .quiz.is-correct .quiz__chara { animation: none; }
  .quiz__result { animation: none; }
  .has-reveal .reveal { opacity: 1; transform: none; transition: none; }
}
