@charset "UTF-8";

/* ユーアイランド 紹介サイト
 *
 * 配色とトーンはアプリに揃える（docs/デザイン要件定義書.md 3章）。
 * mukutree.top のトンマナには合わせない（別物として扱う。2026/09/03の判断）。
 *
 * 依存ライブラリなし・Webフォントなし（外部へ閲覧者の情報を送らない。FTPで置くだけで動く）。
 * 見出しは "palt"（プロポーショナル詰め）でヒラギノの字間を締める。 */

/* ============================================================
   トークン
   ============================================================ */

:root {
  /* アプリの配色（デザイン要件定義書3章） */
  --bg: #fff9f0;              /* 背景 */
  --surface: #fffefc;         /* サーフェス */
  --surface-muted: #f2f2f1;   /* サーフェス（淡） */
  --sand: #f5efe6;            /* アイコンの地 */
  --sand-line: #e4dacb;       /* アイコンの縁 */
  --primary: #5b8a72;         /* メイン。面・アイコン・罫線（小さい文字には使わない） */
  --primary-dark: #3d5a45;    /* プライマリ（濃）。淡い面の上の文字 */
  --primary-soft: #e3ede6;    /* メインの淡い面 */
  --text: #333232;            /* テキスト（基本） */
  --text-sub: #6b6a69;        /* テキスト（副）。AA（4.5:1）を背景上で満たす濃さ */
  --accent: #d3a24c;          /* アクセント */
  --terracotta: #c4785a;      /* テラコッタ。Material側の印 */
  --terracotta-text: #a4583b; /* テラコッタの文字用（AA） */
  --sea-1: #e6efe7;
  --sea-2: #d5e4d8;
  --ink: #1f2420;             /* 端末の枠・ストアボタン */

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 2px rgba(61, 90, 69, .06), 0 4px 14px rgba(61, 90, 69, .06);
  --shadow-2: 0 2px 6px rgba(61, 90, 69, .07), 0 18px 40px rgba(61, 90, 69, .10);
  --shadow-phone: 0 30px 60px -20px rgba(31, 36, 32, .35), 0 12px 24px -12px rgba(31, 36, 32, .25);

  --measure: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-space: clamp(72px, 11vw, 136px);

  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
          "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --font-num: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* ============================================================
   土台
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-feature-settings: "palt";
  letter-spacing: .04em;
  line-height: 1.4;
  color: var(--text);
  margin: 0;
}

p { margin: 0; }

/* 見出しを意味の切れ目でだけ改行する（Safariは word-break: auto-phrase を持たないため手で区切る） */
.phrase { display: inline-block; }

a { color: var(--primary-dark); text-underline-offset: .22em; text-decoration-thickness: 1px; }

button { font: inherit; color: inherit; }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.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;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--primary-dark); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

[hidden] { display: none !important; }

/* ============================================================
   ヘッダー
   ============================================================ */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 249, 240, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  border-bottom-color: rgba(61, 90, 69, .08);
  box-shadow: 0 6px 24px -18px rgba(61, 90, 69, .5);
}

.header-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 17px; letter-spacing: .06em;
  text-decoration: none; color: var(--text);
  font-feature-settings: "palt";
}
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.site-nav { margin-left: auto; display: flex; gap: 2px; }
.site-nav a {
  position: relative;
  padding: 8px 14px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600; color: var(--text-sub);
  text-decoration: none;
  transition: color .2s, background-color .2s;
}
.site-nav a:hover { color: var(--primary-dark); background: rgba(91, 138, 114, .08); }
.site-nav a[aria-current="true"] { color: var(--primary-dark); background: var(--primary-soft); }

.header-cta {
  display: inline-flex; align-items: center;
  padding: 9px 18px; border-radius: var(--radius-pill);
  background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 700; text-decoration: none; letter-spacing: .04em;
  white-space: nowrap;
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.header-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(31,36,32,.5); }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .header-cta { margin-left: auto; }
}

/* ============================================================
   ボタン
   ============================================================ */

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cta-row--center { justify-content: center; }

.btn-store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 200px; padding: 12px 28px 13px;
  background: var(--ink); color: #fff;
  border-radius: 16px;
  text-decoration: none; line-height: 1.25;
  box-shadow: 0 10px 24px -10px rgba(31, 36, 32, .6);
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.btn-store:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(31, 36, 32, .6); }
.btn-store:active { transform: translateY(0); }
.btn-store-small { font-size: 11px; font-weight: 600; opacity: .72; letter-spacing: .08em; }
.btn-store-large { font-size: 19px; font-weight: 800; letter-spacing: .04em; font-feature-settings: "palt"; }

.btn-store--light { background: #fff; color: var(--ink); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .45); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 20px; border-radius: var(--radius-pill);
  border: 1.5px solid rgba(61, 90, 69, .28);
  background: transparent; color: var(--primary-dark);
  font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.btn-ghost:hover { background: rgba(91, 138, 114, .08); border-color: var(--primary); }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 200px; padding: 14px 28px; border: 0; border-radius: var(--radius-pill);
  background: var(--primary-dark); color: #fff;
  font-size: 16px; font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 20px -12px rgba(61, 90, 69, .8);
  transition: transform .2s var(--ease-out), background-color .2s;
}
.btn-primary:hover { background: #33503c; transform: translateY(-1px); }

/* ============================================================
   端末の枠（画面写真を入れる）
   ============================================================ */

.phone {
  position: relative;
  border-radius: 13.5% / 6.2%;
  padding: 3.2%;
  background: var(--ink);
  box-shadow: var(--shadow-phone), inset 0 0 0 1.5px rgba(255,255,255,.08);
}
.phone img { border-radius: 11% / 5.1%; width: 100%; background: var(--bg); }
.phone--flat { box-shadow: 0 24px 50px -24px rgba(31, 36, 32, .45), inset 0 0 0 1.5px rgba(255,255,255,.08); }

/* ============================================================
   ヒーロー
   ============================================================ */

.hero {
  position: relative;
  padding-top: clamp(28px, 6vw, 72px);
  background:
    radial-gradient(1200px 500px at 85% 20%, rgba(211, 162, 76, .10), transparent 60%),
    radial-gradient(900px 600px at 0% 0%, rgba(196, 120, 90, .07), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 62%, var(--sea-1) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}

.release-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 12px; margin-bottom: 24px;
  border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--sand-line);
  font-size: 13px; font-weight: 700; color: var(--primary-dark); letter-spacing: .06em;
  box-shadow: var(--shadow-1);
}
.live-dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%; background: #3fa66b;
}
.live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #3fa66b; animation: live 2s var(--ease-out) infinite;
}
@keyframes live { from { transform: scale(1); opacity: .6; } to { transform: scale(3.2); opacity: 0; } }

/* 1行目「UI/UXデザインの用語を、」がおよそ11.2字ぶんの幅なので、それが1行に収まる大きさにする（2026/10/18） */
.hero h1 {
  font-size: clamp(22px, calc((100vw - 2 * var(--gutter)) / 11.8), 44px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .02em;
}
/* 1行ずつ意味の切れ目で改行する（「を、」だけが次の行に落ちないように） */
.h1-line { display: block; white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1080px) {
  .hero h1 { font-size: 3.6vw; }
}
.hero h1 em {
  font-style: normal; color: var(--primary-dark);
  background: linear-gradient(transparent 68%, rgba(211, 162, 76, .38) 68%, rgba(211, 162, 76, .38) 92%, transparent 92%);
  padding: 0 .04em;
}

.hero-sub {
  margin-top: 14px;
  font-size: clamp(17px, 2vw, 21px); font-weight: 800; color: var(--primary-dark);
  font-feature-settings: "palt"; letter-spacing: .04em;
}

.hero-lead {
  margin-top: 18px; max-width: 32em;
  font-size: clamp(15px, 1.6vw, 17px); color: var(--text-sub); line-height: 2;
}
.hero-lead strong { color: var(--text); font-weight: 700; white-space: nowrap; }

.hero .cta-row { margin-top: 32px; }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  list-style: none; padding: 0; margin: 24px 0 0;
  font-size: 13px; color: var(--text-sub); font-weight: 600;
}
.hero-meta li { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta li::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 舞台：島・海・端末・流れ着くパーツ */
.hero-stage {
  position: relative;
  aspect-ratio: 1 / 1.08;
  max-width: 540px; width: 100%;
  justify-self: center;
}

.phone--hero {
  position: absolute; left: 50%; top: 2%;
  width: 50%;
  transform: translateX(-50%) rotate(-2deg);
  z-index: 3;
}

.island {
  position: absolute; left: 50%; bottom: 7%;
  width: 78%; aspect-ratio: 3.4 / 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(60% 70% at 50% 30%, #8fa886 0%, #6f8f68 70%, #5f7d59 100%);
  box-shadow:
    0 14px 0 -2px #e9dcc4,          /* 砂浜 */
    0 22px 0 -4px #dccdb1,
    0 40px 60px -20px rgba(61, 90, 69, .35);
  z-index: 2;
}

.sea { position: absolute; left: 50%; bottom: 0; width: 120%; aspect-ratio: 3 / 1; transform: translateX(-50%); z-index: 1; }
.ripple {
  position: absolute; left: 50%; top: 50%;
  width: 70%; aspect-ratio: 3.4 / 1;
  border-radius: 50%;
  border: 2px solid rgba(91, 138, 114, .22);
  transform: translate(-50%, -50%) scale(.9);
  animation: ripple 6s linear infinite;
}
.ripple--2 { animation-delay: -2s; }
.ripple--3 { animation-delay: -4s; }
@keyframes ripple {
  from { transform: translate(-50%, -50%) scale(.9); opacity: .9; }
  to   { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.drift {
  position: absolute; z-index: 4;
  width: 17%;
  filter: drop-shadow(0 14px 18px rgba(61, 90, 69, .22));
  animation: bob 7s ease-in-out infinite;
}
.drift--toggle { left: 2%;  top: 12%; --r: -10deg; animation-delay: -1s; }
.drift--slider { right: 0;  top: 30%; --r: 8deg;   animation-delay: -3s; width: 19%; }
.drift--card   { left: 6%;  top: 52%; --r: 6deg;   animation-delay: -5s; width: 15%; }
.drift--grid   { right: 7%; top: 3%;  --r: 12deg;  animation-delay: -2s; width: 14%; }
.drift--ui     { right: 4%; top: 60%; --r: -7deg;  animation-delay: -4s; width: 15%; z-index: 2; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50%      { transform: translateY(-12px) rotate(calc(var(--r, 0deg) * -.4)); }
}

/* 流れるパーツ名 */
.marquee {
  position: relative; z-index: 5;
  margin-top: clamp(16px, 4vw, 40px);
  padding: 18px 0 22px;
  display: grid; gap: 10px;
  background: linear-gradient(180deg, transparent, rgba(213, 228, 216, .6));
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-row { overflow: hidden; }
.marquee-track {
  display: flex; gap: 10px; width: max-content;
  animation: marquee 120s linear infinite;
}
.marquee-row--reverse .marquee-track { animation-direction: reverse; animation-duration: 140s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: rgba(255, 254, 252, .9); border: 1px solid var(--sand-line);
  font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.chip--m3::before { background: var(--terracotta); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: left; }
  .hero-stage { max-width: 420px; margin-top: 8px; }
}

/* ============================================================
   数字
   ============================================================ */

.numbers { background: linear-gradient(180deg, var(--sea-2) 0 50%, var(--bg) 50% 100%); }
.number-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 0; padding: 28px clamp(16px, 3vw, 36px);
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}
.number-grid > div { padding: 4px 12px; text-align: center; }
.number-grid > div + div { border-left: 1px solid var(--surface-muted); }
.number-grid dt { font-size: 12px; font-weight: 700; color: var(--text-sub); letter-spacing: .1em; }
.number-grid dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; color: var(--primary-dark); }
.num {
  font-family: var(--font-num);
  font-size: clamp(32px, 4.4vw, 46px); font-weight: 800; line-height: 1.2;
  letter-spacing: .01em; margin-right: 2px; color: var(--primary-dark);
}
.num--text { font-size: clamp(24px, 3.2vw, 34px); }
.num--small { font-size: clamp(18px, 2.2vw, 22px); margin-left: 2px; }

@media (max-width: 640px) {
  .number-grid { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .number-grid > div:nth-child(3) { border-left: 0; }
}

/* ============================================================
   セクション共通
   ============================================================ */

.section { padding-block: var(--section-space); }

.section-head { max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head h2 { font-size: clamp(28px, 4.2vw, 42px); font-weight: 800; }
.section-head > p:last-child:not(.eyebrow) { margin-top: 16px; color: var(--text-sub); }

.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: 13px; font-weight: 800; letter-spacing: .18em;
  color: var(--primary-dark);
}
.eyebrow::before, .eyebrow::after {
  content: ""; display: inline-block; vertical-align: middle;
  width: 18px; height: 2px; margin: 0 10px 3px; border-radius: 2px;
  background: var(--accent);
}

/* ============================================================
   ためしに1問
   ============================================================ */

.section--try { background: var(--bg); }

.quiz {
  max-width: 720px; margin-inline: auto;
  padding: clamp(18px, 3.4vw, 32px);
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--sand-line);
  box-shadow: var(--shadow-2);
}

.quiz-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; font-size: 13px; font-weight: 700; color: var(--text-sub);
  font-variant-numeric: tabular-nums;
}
.quiz-score { color: var(--primary-dark); background: var(--primary-soft); padding: 3px 12px; border-radius: var(--radius-pill); }

.yomifuda {
  position: relative;
  padding: 28px clamp(18px, 3vw, 28px) 30px;
  border-radius: var(--radius-lg);
  background: var(--sand);
  border: 1.5px solid var(--sand-line);
  overflow: hidden;
}
.yomifuda-label {
  display: inline-block; margin-bottom: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--terracotta-text);
}
.yomifuda-text {
  font-size: clamp(18px, 2.6vw, 23px); font-weight: 700; line-height: 1.75;
  font-feature-settings: "palt"; letter-spacing: .04em;
  min-height: 3.5em;
}
.timer { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: rgba(61, 90, 69, .08); }
.timer span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--primary), #86ad96);
  transform-origin: left center;
}
.timer span.is-running { animation: timer var(--duration, 16s) linear forwards; }
.timer span.is-low { background: var(--terracotta); }
.timer span.is-paused { animation-play-state: paused; }
@keyframes timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.torifuda {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  list-style: none; padding: 0; margin: 16px 0 0;
}
.torifuda button {
  position: relative; width: 100%;
  display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 12px;
  padding: 12px 14px; text-align: left;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--sand-line);
  background: #fff; cursor: pointer;
  font-size: 15px; font-weight: 700; line-height: 1.45;
  transition: transform .18s var(--ease-out), border-color .2s, box-shadow .2s, background-color .2s;
}
.torifuda button:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow-1); }
.torifuda button:disabled { cursor: default; }
.torifuda img { width: 56px; height: 56px; border-radius: 12px; }
.torifuda .card-en { display: block; font-size: 11px; font-weight: 600; color: var(--text-sub); letter-spacing: .02em; }

.torifuda button.is-correct { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px rgba(91, 138, 114, .25); }
.torifuda button.is-wrong { border-color: var(--terracotta); background: #fbeee8; animation: shake .4s; }
.torifuda button.is-dim { opacity: .45; }
.torifuda button.is-correct::after, .torifuda button.is-wrong::after {
  position: absolute; top: -9px; right: -9px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: 14px; font-weight: 800; line-height: 1;
}
.torifuda button.is-correct::after { content: "○"; background: var(--primary-dark); }
.torifuda button.is-wrong::after { content: "×"; background: var(--terracotta-text); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.quiz-feedback { min-height: 0; margin-top: 16px; }
.quiz-feedback:empty { margin-top: 0; }
.feedback {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start;
  padding: 16px 18px; border-radius: var(--radius-md);
  background: var(--primary-soft);
  animation: rise .35s var(--ease-out);
}
.feedback--miss { background: #fbeee8; }
.feedback-mark { grid-row: span 2; font-size: 22px; font-weight: 800; line-height: 1.4; color: var(--primary-dark); }
.feedback--miss .feedback-mark { color: var(--terracotta-text); }
.feedback-title { font-weight: 800; }
.feedback-title small { font-weight: 600; color: var(--text-sub); margin-left: 6px; }
.feedback-body { font-size: 14px; color: var(--text-sub); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.quiz-actions { display: flex; justify-content: center; margin-top: 18px; }
.quiz-actions:has(> [hidden]:only-child) { display: none; }

.quiz-result { text-align: center; padding: 8px 0 4px; animation: rise .4s var(--ease-out); }
.quiz-result-score { font-size: clamp(22px, 3vw, 28px); font-weight: 800; color: var(--primary-dark); font-feature-settings: "palt"; }
.quiz-result-note { margin: 8px 0 22px; color: var(--text-sub); font-size: 14px; }

.noscript-note { text-align: center; color: var(--text-sub); }

@media (max-width: 560px) {
  .torifuda { grid-template-columns: 1fr; gap: 8px; }
  .torifuda button { grid-template-columns: 44px 1fr; padding: 10px 12px; font-size: 14px; }
  .torifuda img { width: 44px; height: 44px; border-radius: 10px; }
}

/* ============================================================
   ゲーム
   ============================================================ */

.section--games { background: linear-gradient(180deg, var(--bg), var(--sand) 100%); }

.game-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 28px); }

.game {
  position: relative; overflow: hidden;
  padding: clamp(22px, 3vw, 34px);
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--sand-line);
  box-shadow: var(--shadow-1);
}
.game::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 120, 90, .14), transparent 70%);
}
.game--shinkei::before { background: radial-gradient(circle, rgba(91, 138, 114, .18), transparent 70%); }
.game--shiwake::before { background: radial-gradient(circle, rgba(211, 162, 76, .20), transparent 70%); }
.game--narabekae::before { background: radial-gradient(circle, rgba(74, 106, 140, .16), transparent 70%); }

.game-main { position: relative; display: flex; align-items: center; gap: 18px; }
.game-thumb { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 10px 20px -10px rgba(31, 36, 32, .5); }
.game h3 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; }
.game-tagline { color: var(--text-sub); font-size: 14px; font-weight: 600; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 20px 0 0; }
.tags li {
  padding: 3px 12px; border-radius: var(--radius-pill);
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: 12px; font-weight: 700;
}
.game--karuta .tags li { background: #f8e9e1; color: var(--terracotta-text); }
.game--shiwake .tags li { background: #f7ecd6; color: #855f1c; }
.game--narabekae .tags li { background: #e4ebf2; color: #3c5a78; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: step;
  position: relative; padding-left: 46px;
  font-size: 14px; color: var(--text-sub); line-height: 1.75;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 1px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); border: 1.5px solid var(--sand-line);
  font-family: var(--font-num); font-weight: 800; font-size: 14px; color: var(--primary-dark);
}
.steps strong { display: block; color: var(--text); font-size: 15px; }

@media (max-width: 760px) {
  .game-list { grid-template-columns: 1fr; }
}

/* ============================================================
   資格の勉強
   ============================================================ */

.section--exam { background: var(--sand); }
.section--exam .showcase-row { max-width: 980px; }

.exam-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.exam-list li {
  padding: 18px 20px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--sand-line);
}
.exam-list h3 { font-size: 19px; font-weight: 800; }
.exam-list p { margin-top: 6px; font-size: 14px; color: var(--text-sub); line-height: 1.8; }

.exam-note {
  margin-top: 22px; padding-left: 14px;
  border-left: 3px solid var(--sand-line);
  font-size: 13px; color: var(--text-sub); line-height: 1.9;
}

/* ============================================================
   100パーツ
   ============================================================ */

.section--parts { background: var(--surface); }

.wall-filter {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
  margin-bottom: 24px;
}
.wall-filter button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--sand-line); background: #fff;
  font-size: 14px; font-weight: 700; color: var(--text-sub); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.wall-filter button span:last-child { font-family: var(--font-num); font-weight: 800; opacity: .7; }
.wall-filter button[aria-pressed="true"] { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }

.wall-frame { position: relative; }
.wall-frame.is-folded { max-height: 470px; overflow: hidden; }
.wall-frame.is-folded::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px;
  background: linear-gradient(180deg, rgba(255, 254, 252, 0), var(--surface) 90%);
  pointer-events: none;
}

.wall {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px;
}
.wall li {
  position: relative;
  aspect-ratio: 1;
  border-radius: 18px;
  transition: transform .25s var(--ease-out);
}
.wall li img { width: 100%; height: 100%; border-radius: 18px; }
.wall li:hover { transform: translateY(-3px) scale(1.04); z-index: 2; }
.wall-name {
  position: absolute; left: 50%; bottom: calc(100% + 6px);
  transform: translate(-50%, 4px);
  padding: 5px 10px; border-radius: 8px;
  background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1.4;
  opacity: 0; pointer-events: none;
  transition: opacity .15s, transform .15s;
}
.wall li:hover .wall-name { opacity: 1; transform: translate(-50%, 0); }
.wall li.is-hidden { display: none; }

.wall-more-row { display: flex; justify-content: center; margin-top: 20px; }
.wall-more-row:has(> [hidden]) { display: none; }
.wall-note { margin-top: 20px; text-align: center; font-size: 13px; color: var(--text-sub); }
.src-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 4px 1px 6px; vertical-align: middle; }
.src-dot--hig { background: var(--primary); }
.src-dot--m3 { background: var(--terracotta); }

@media (max-width: 560px) {
  .wall { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
  .wall li, .wall li img { border-radius: 14px; }
  .wall-frame.is-folded { max-height: 380px; }
}

/* ============================================================
   できること
   ============================================================ */

.section--features { background: var(--bg); }

.showcase { display: grid; gap: clamp(56px, 8vw, 104px); }
.showcase-row {
  display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
  align-items: center; gap: clamp(32px, 7vw, 96px);
  max-width: 920px; margin-inline: auto;
}
.showcase-row--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 290px); }
.showcase-row--flip .phone { order: 2; }
.showcase-row .phone { width: 100%; max-width: 270px; justify-self: center; }
.showcase-row .phone::before {
  content: ""; position: absolute; inset: 8% -18% -6% -18%; z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--sea-2), transparent);
}
.showcase-num {
  font-family: var(--font-num); font-size: 15px; font-weight: 800;
  color: var(--accent); letter-spacing: .12em; margin-bottom: 8px;
}
.showcase-text h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.showcase-text > p:not(.showcase-num) { margin-top: 14px; color: var(--text-sub); }

.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 30px; font-weight: 600; font-size: 15px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%233d5a45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.tiles {
  list-style: none; padding: 0; margin: clamp(64px, 9vw, 112px) 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 20px);
}
.tiles li {
  padding: 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--sand-line);
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.tiles li:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.tile-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px; margin-bottom: 16px;
  background: var(--primary-soft);
}
.tile-icon svg {
  width: 26px; height: 26px;
  fill: none; stroke: var(--primary-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.tiles h3 { font-size: 17px; font-weight: 800; }
.tiles p { margin-top: 8px; font-size: 14px; color: var(--text-sub); line-height: 1.8; }

@media (max-width: 680px) {
  .showcase-row, .showcase-row--flip { grid-template-columns: 1fr; gap: 28px; }
  .showcase-row--flip .phone { order: 0; }
  .showcase-row .phone { max-width: 240px; }
  .tiles { grid-template-columns: 1fr; }
}

/* ============================================================
   画面ギャラリー
   ============================================================ */

.section--screens { background: linear-gradient(180deg, var(--bg), var(--sea-1)); overflow: hidden; }

.shots {
  display: flex; gap: clamp(16px, 2.4vw, 28px);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 12px max(var(--gutter), calc((100vw - var(--measure)) / 2 + var(--gutter))) 36px;
  scrollbar-width: thin; scrollbar-color: rgba(61, 90, 69, .3) transparent;
}
.shots figure { margin: 0; flex: none; width: clamp(200px, 22vw, 250px); scroll-snap-align: center; }
.shots figcaption { margin-top: 14px; text-align: center; font-size: 14px; font-weight: 700; color: var(--primary-dark); }

/* ============================================================
   最後のCTA
   ============================================================ */

.closing { padding: var(--section-space) 0; background: var(--sea-1); }
.closing-panel {
  position: relative; overflow: hidden;
  padding: clamp(48px, 8vw, 88px) clamp(20px, 5vw, 48px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(255, 255, 255, .12), transparent 60%),
    radial-gradient(500px 300px at 100% 100%, rgba(211, 162, 76, .25), transparent 60%),
    var(--primary-dark);
  color: #fff; text-align: center;
  box-shadow: 0 40px 80px -40px rgba(31, 36, 32, .6);
}
.closing-icon { width: 112px; height: 112px; margin: 0 auto 28px; border-radius: 26px; box-shadow: 0 18px 36px -12px rgba(0, 0, 0, .45); }
.closing h2 { color: #fff; font-size: clamp(28px, 4.6vw, 46px); font-weight: 800; }
.closing p { margin: 16px 0 32px; color: rgba(255, 255, 255, .82); }
.closing-drift {
  position: absolute; width: clamp(80px, 12vw, 140px); opacity: .9;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .25));
  animation: bob 8s ease-in-out infinite;
}
.closing-drift--a { left: 5%; top: 14%; --r: -12deg; }
.closing-drift--b { right: 6%; bottom: 12%; --r: 10deg; animation-delay: -4s; }
@media (max-width: 640px) {
  .closing-drift { opacity: .35; }
}

/* ============================================================
   フッター
   ============================================================ */

.site-footer { background: var(--sea-1); padding: 0 0 48px; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
  padding-top: 28px; border-top: 1px solid rgba(61, 90, 69, .14);
}
.brand--footer { font-size: 15px; }
.brand--footer img { width: 28px; height: 28px; border-radius: 7px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer-links a { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text-sub); }
.footer-links a:hover { color: var(--primary-dark); text-decoration: underline; }
.copyright { margin-left: auto; font-size: 13px; color: var(--text-sub); }
@media (max-width: 640px) {
  .copyright { margin-left: 0; width: 100%; }
}

/* ============================================================
   文書ページ（プライバシーポリシー・サポート）
   ============================================================ */

.page-doc .site-footer { background: var(--bg); }

.doc-hero {
  padding: clamp(40px, 7vw, 80px) 0 clamp(28px, 4vw, 40px);
  background: linear-gradient(180deg, var(--bg), var(--sand));
}
.doc-hero .wrap, .doc .wrap { max-width: 780px; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; text-decoration: none; color: var(--primary-dark);
}
.back-link:hover { text-decoration: underline; }
.doc-hero h1 { margin-top: 18px; font-size: clamp(28px, 4.4vw, 40px); font-weight: 800; }
.updated { margin-top: 10px; font-size: 13px; color: var(--text-sub); }

.doc { padding: clamp(28px, 4vw, 48px) 0 var(--section-space); }
.doc h2 {
  margin: 56px 0 16px; padding-top: 24px;
  font-size: clamp(20px, 2.6vw, 24px); font-weight: 800;
  border-top: 1px solid var(--sand-line);
}
.doc h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc h3 { margin: 32px 0 8px; font-size: 17px; font-weight: 800; }
.doc p, .doc li { color: var(--text); }
.doc p + p { margin-top: 1em; }
.doc ul, .doc ol { padding-left: 1.4em; margin: 12px 0; }
.doc li + li { margin-top: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; line-height: 1.7; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--sand-line); }
.doc th { background: var(--sand); font-weight: 700; white-space: nowrap; }
.table-scroll { overflow-x: auto; }

.callout {
  margin: 20px 0; padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--sand-line);
  box-shadow: var(--shadow-1);
}
.callout:first-child { margin-top: 0; }
.callout p + p { margin-top: 6px; }
.callout-note { font-size: 14px; color: var(--text-sub); }

.faq { display: grid; gap: 10px; margin-top: 8px; }
.faq details {
  border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--sand-line);
  transition: box-shadow .2s;
}
.faq details[open] { box-shadow: var(--shadow-1); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; font-weight: 700; font-feature-settings: "palt";
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 9.5l4 4 4-4' fill='none' stroke='%233d5a45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  transition: transform .25s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq .faq-body { padding: 0 20px 18px; color: var(--text-sub); }
.faq .faq-body p + p { margin-top: .8em; }
.faq .faq-body ul { margin: .6em 0 0; }
.faq .faq-body li { color: var(--text-sub); }
.faq .faq-body ul + p { margin-top: .8em; }

/* ============================================================
   動きを減らす
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .marquee-track { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track > .chip:nth-child(n+26) { display: none; }
  .timer span.is-running { animation: none !important; }
}
