/*
 * コエマドの色・角丸・影・文字の共通の定義（LP と本体のアプリで同じ値を使う）
 *   - 本体: app/src/styles/global.css が読み込む（Vite が 1 つの CSS にまとめる）
 *   - LP:   lp/build.mjs が lp/dist/styles.css の先頭に入れる
 * 色を変えるときはここだけを変える。ライト / ダークの両方でコントラストを確かめる（画面テストの axe）
 */

:root {
  --bg: #f5f6f4;
  --surface: #ffffff;
  --surface-2: #f0f3f1;
  --tint: #e9f3ee;
  --text: #1c2420;
  --muted: #55625b;
  --ink: #2c3a33;
  --line: #c9d5cf;
  --border: #dde3df;
  --border-strong: #b9c4be;
  --accent: #2b7a57;
  --accent-hover: #236849;
  --accent-deep: #1b5a3e;
  --accent-weak: #dcefe5;
  --accent-ink: #1f6146;
  --on-accent: #ffffff;
  --warm: #e8893a;
  --warm-weak: #fdeedd;
  --sky-weak: #e3eef8;
  --yellow-weak: #fbf3d6;
  --hl: #ffd98a;
  --star: #d99a00;
  --warn: #8a4f00;
  --warn-bg: #fff3dd;
  --danger: #b3261e;
  --danger-deep: #8c1d17;
  --danger-bg: #fdecea;
  --new: #b03a5b;
  --new-bg: #fbe7ed;
  --focus: #1f6feb;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  /* 押せる感じの、厚みのある影（ボタン・カード）。背景の色が変わっても見えるよう、線の色で付ける */
  --shadow-btn: 0 4px 0 var(--accent-deep);
  --shadow-card: 5px 5px 0 var(--line);

  /* ロゴの色（docs/brand/README.md。形はファイルのまま、色だけここで当てる） */
  --logo-line: #2d7959;
  --logo-pane: #dcefe6;
  --logo-lit: #e98840;
  --logo-text: #2c3a33;

  --font:
    'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', Meiryo, system-ui, sans-serif;
  --maru: 'Zen Maru Gothic', var(--font);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131715;
    --surface: #1c2220;
    --surface-2: #232b28;
    --tint: #18221d;
    --text: #e6ece8;
    --muted: #a3b2aa;
    --ink: #c9d6cf;
    --line: #3a4741;
    --border: #2f3934;
    --border-strong: #4a5751;
    --accent: #5cc093;
    --accent-hover: #74cfa5;
    --accent-deep: #2f7d59;
    --accent-weak: #1e3a2d;
    --accent-ink: #74cfa5;
    --on-accent: #0d1a14;
    --warm: #f0a35e;
    --warm-weak: #3a2a1a;
    --sky-weak: #1b2a36;
    --yellow-weak: #332c14;
    --hl: rgba(240, 163, 94, 0.38);
    --star: #f0c24b;
    --warn: #f2b660;
    --warn-bg: #3a2c15;
    --danger: #ff8a80;
    --danger-deep: #b3453c;
    --danger-bg: #3d1b19;
    --new: #f08aa6;
    --new-bg: #3d1f29;
    --focus: #7aa7ff;
    --logo-line: #ffffff;
    --logo-pane: #3f8c6b;
    --logo-lit: #f6ae78;
    --logo-text: #ffffff;

    color-scheme: dark;
  }
}

/* ロゴ（shared/brand-logo.js がインラインの SVG にしたもの）の色 */
.logo-line {
  stroke: var(--logo-line);
}

.logo-pane {
  fill: var(--logo-pane);
}

.logo-lit {
  fill: var(--logo-lit);
}

.logo-text {
  fill: var(--logo-text);
}

/*
 * コエマド LP（www.koemado.com）
 * コンセプト: 「声（吹き出し）」と「窓（窓枠）」。配色は本体と同じ緑に、暖かい差し色を 1 つ足す。
 * ライト / ダーク、スマホ優先。見出しだけ Zen Maru Gothic（自分のサイトから配る。使う文字だけに絞ったもの）
 * 色・角丸・文字の定義（:root の CSS 変数）は、本体のアプリと共通の shared/tokens.css にある。
 * lp/build.mjs が lp/dist/styles.css の先頭に入れる（ここには書かない）
 */

@font-face {
  font-family: 'Zen Maru Gothic';
  src: url('/fonts/zen-maru-gothic-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
}

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

a {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* 上に固定したヘッダーの下に、移動先の見出しが隠れないようにする */
[id] {
  scroll-margin-top: 76px;
}

.maru {
  font-family: var(--maru);
  font-weight: 700;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 8px 12px;
  background: var(--surface);
  z-index: 10;
}

.skip:focus {
  left: 8px;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

.wrap--narrow {
  max-width: 640px;
}

/* 蛍光ペンの下線 */
.hl {
  background: linear-gradient(transparent 60%, var(--hl) 60%, var(--hl) 92%, transparent 92%);
  padding: 0 0.08em;
}

/* ---------- ヘッダー ---------- */
.site-header {
  /* メニュー（.site-menu）の位置の基準にもなる */
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--surface);
  border-bottom: 2px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* メニューのボタン（三本線。開いているときは閉じる印） */
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.menu-btn__bars,
.menu-btn__bars::before,
.menu-btn__bars::after {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
}

.menu-btn__bars {
  position: relative;
}

.menu-btn__bars::before,
.menu-btn__bars::after {
  content: '';
  position: absolute;
  left: 0;
}

.menu-btn__bars::before {
  top: -7px;
}

.menu-btn__bars::after {
  top: 7px;
}

.menu-btn[aria-expanded='true'] .menu-btn__bars {
  background: transparent;
}

.menu-btn[aria-expanded='true'] .menu-btn__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-btn[aria-expanded='true'] .menu-btn__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* 開いたメニュー（ヘッダーのすぐ下。fixed は使わない） */
.site-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 2px;
  background: var(--surface);
  border-bottom: 2px solid var(--line);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.site-menu[hidden] {
  display: none;
}

.site-menu__list {
  margin: 0;
  padding: 6px 16px 12px;
  list-style: none;
}

.site-menu__list li + li {
  border-top: 2px dashed var(--line);
}

.site-menu__list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  color: var(--text);
  font-size: 17px;
  text-decoration: none;
}

.site-menu__list a::before {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 12px;
  border-radius: 50% 50% 50% 2px;
  background: var(--accent);
}

.site-menu__list a:hover {
  color: var(--accent);
}

@media (min-width: 720px) {
  .site-menu {
    left: auto;
    right: max(16px, calc((100% - 1040px) / 2 + 16px));
    width: 300px;
    margin-top: 8px;
    border: 2px solid var(--ink);
    border-radius: var(--radius-lg);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

/* ロゴ（docs/brand/ の横組み。形はファイルのまま、色は shared/tokens.css のロゴの色）。スマホ 28px・PC 32px */
.brand__logo {
  display: block;
  width: auto;
  height: 28px;
}

@media (min-width: 720px) {
  .site-header .brand__logo {
    height: 32px;
  }
}

/* ---------- ボタン（押せる感じの、厚みのあるボタン） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 4px 0 var(--accent-deep);
  font: inherit;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--accent-deep);
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--accent-deep);
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn--small {
  min-height: 44px;
  padding: 6px 18px;
  font-size: 15px;
  box-shadow: 0 3px 0 var(--accent-deep);
}

.btn--large {
  min-height: 58px;
  padding: 12px 30px;
  font-size: 18px;
}

.btn--block {
  display: flex;
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  text-underline-offset: 4px;
}

/* ---------- ファーストビュー ---------- */
.hero {
  padding: 36px 0 56px;
  /* 方眼紙のような点（ぼかしの丸は使わない） */
  background-color: var(--bg);
  background-image: radial-gradient(var(--line) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
}

.hero__inner {
  display: grid;
  gap: 24px;
  align-items: center;
}

@media (min-width: 860px) {
  .hero {
    padding: 64px 0 80px;
  }
  .hero__inner {
    grid-template-columns: 1.15fr 1fr;
    gap: 40px;
  }
}

.hero__title {
  margin: 0 0 18px;
  font-size: clamp(36px, 10vw, 60px);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.hero__lead {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.hero__lead--sub {
  margin-bottom: 22px;
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin: 0 0 10px;
}

.hero__note {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.hero__art {
  max-width: 460px;
  justify-self: center;
  width: 100%;
}

/* ---------- イラスト（インラインの SVG。手描き風のやわらかい線） ---------- */
.ill-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ill-thin {
  stroke-width: 2;
}

.ill-warm-line {
  stroke: var(--warm);
}

.ill-accent-line {
  stroke: var(--accent);
  stroke-width: 4;
}

.ill-paper.ill-line,
.ill-paper {
  fill: var(--surface);
}

.ill-fill-g.ill-line,
.ill-fill-g {
  fill: var(--accent-weak);
}

.ill-fill-w.ill-line,
.ill-fill-w {
  fill: var(--warm-weak);
}

.ill-off.ill-line {
  fill: var(--line);
}

.ill-accent {
  fill: var(--accent);
}

.ill-warm {
  fill: var(--warm);
}

.ill-star {
  fill: var(--star);
}

.ill-heart {
  fill: var(--warm);
}

.ill-ink {
  fill: var(--ink);
}

.ill-check {
  fill: none;
  stroke: var(--on-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ill-accent-line.ill-tick {
  stroke-width: 2.2;
}

.ill-dash {
  fill: none;
  stroke: var(--warm);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 2 7;
}

/* ---------- セクション（背景を交互に変え、境目を波線にする） ---------- */
.section {
  position: relative;
  padding: 64px 0;
}

.section--tint {
  background: var(--tint);
}

.section--tint::before,
.section--tint::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 18px;
  background: var(--tint);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 18'%3E%3Cpath d='M0 18 Q15 0 30 9 T60 9 T90 9 T120 9 V18 Z'/%3E%3C/svg%3E")
    repeat-x;
  -webkit-mask-size: 120px 18px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 18'%3E%3Cpath d='M0 18 Q15 0 30 9 T60 9 T90 9 T120 9 V18 Z'/%3E%3C/svg%3E")
    repeat-x;
  mask-size: 120px 18px;
}

.section--tint::before {
  top: -17px;
}

.section--tint::after {
  bottom: -17px;
  transform: scaleY(-1);
}

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

.section-head {
  margin-bottom: 28px;
}

/* 小さな英字のラベル（吹き出しの形） */
.eyebrow {
  position: relative;
  display: inline-block;
  margin: 0 0 12px;
  padding: 2px 14px;
  border-radius: 999px;
  background: var(--accent-weak);
  color: var(--accent-ink);
  font-size: 13px;
  letter-spacing: 0.16em;
}

.eyebrow::after {
  content: '';
  position: absolute;
  left: 18px;
  bottom: -6px;
  border: 6px solid transparent;
  border-top-color: var(--accent-weak);
  border-bottom: 0;
}

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

.section--tint .eyebrow::after {
  border-top-color: var(--surface);
}

.section-title {
  margin: 0;
  font-size: clamp(22px, 6.1vw, 36px);
  line-height: 1.4;
}

.section-lead {
  margin: 12px 0 0;
  color: var(--muted);
}

.note {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- お悩み（会話の吹き出し） ---------- */
.talk {
  display: grid;
  gap: 16px;
  max-width: 680px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.talk__item {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.talk__item--indent {
  margin-left: 28px;
}

@media (min-width: 720px) {
  .talk__item--indent {
    margin-left: 64px;
  }
}

.talk__face {
  flex: none;
  width: 46px;
  height: 46px;
}

.talk__face svg {
  display: block;
}

.talk__bubble {
  position: relative;
  margin: 0;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: 20px 20px 20px 4px;
  background: var(--surface);
  font-weight: 700;
}

.talk__item--indent .talk__bubble {
  background: var(--warm-weak);
}

/* ---------- 3 ステップ ---------- */
.steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: 1fr 48px 1fr 48px 1fr;
    align-items: stretch;
  }
}

.step {
  position: relative;
  padding: 30px 20px 22px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
}

.step--1 {
  background: var(--accent-weak);
}

.step--2 {
  background: var(--warm-weak);
}

.step--3 {
  background: var(--sky-weak);
}

.step__no {
  position: absolute;
  top: -22px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--ink);
  border-radius: 50% 50% 50% 8px;
  background: var(--surface);
  color: var(--accent);
  font-size: 30px;
  line-height: 1;
}

.step__art {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 4px auto 10px;
}

.step__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.45;
}

.step__time {
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

.step p {
  margin: 0;
}

.step__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
}

.step__arrow svg {
  width: 40px;
  height: 40px;
  transform: rotate(90deg);
}

@media (min-width: 900px) {
  .step__arrow {
    height: auto;
  }
  .step__arrow svg {
    transform: none;
  }
}

/* ---------- 表示イメージ（架空のお店のホームページ） ---------- */
.sample {
  margin: 0;
}

.browser {
  max-width: 720px;
  margin: 0 auto;
  border: 2px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  background: #fffaf3;
  box-shadow: 8px 8px 0 var(--accent-weak);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 2px solid var(--ink);
  background: var(--surface);
}

.browser__dots {
  display: inline-flex;
  gap: 6px;
}

.browser__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warm);
}

.browser__dots i:nth-child(2) {
  background: var(--star);
}

.browser__dots i:nth-child(3) {
  background: var(--accent);
}

.browser__url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 架空のお店のページは、どちらのテーマでも明るい配色のまま（お店のホームページの見本） */
.mock-site {
  color: #3b2f25;
  font-size: 14px;
  line-height: 1.7;
}

.mock-site p {
  margin: 0;
}

.mock-site__header {
  padding: 12px 16px;
  background: #8a5a36;
  color: #ffffff;
}

.mock-site__name {
  display: block;
  font-size: 17px;
  font-weight: 700;
}

.mock-site__nav {
  font-size: 12px;
}

.mock-site__hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f4e7d7;
}

.mock-site__hero svg {
  flex: none;
  width: 72px;
}

.mock-pot {
  fill: #c98a5a;
  stroke: #3b2f25;
  stroke-width: 2;
}

.mock-pot-line {
  fill: none;
  stroke: #3b2f25;
  stroke-width: 1.6;
}

.mock-site__voices {
  position: relative;
  padding: 16px;
}

.mock-site__h {
  margin-bottom: 10px !important;
  font-size: 16px;
  font-weight: 700;
}

/* 本物の widget と同じ見た目（ライトのテーマ） */
.mock-widget {
  padding: 14px;
  border-radius: 14px;
  background: #f5f6f4;
  color: #1c2420;
  outline: 3px dashed var(--warm);
  outline-offset: 5px;
}

.mock-widget__title {
  font-size: 17px;
  font-weight: 700;
}

.mock-widget__label {
  margin-bottom: 10px !important;
  color: #5b6962;
  font-size: 12px;
}

.mock-widget__card {
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid #dde3df;
  border-radius: 10px;
  background: #ffffff;
}

.mock-widget__stars::before {
  content: '★★★★★';
  color: #d99a00;
  letter-spacing: 1px;
}

.mock-widget__stars[data-stars='4']::before {
  content: '★★★★';
}

.mock-widget__stars[data-stars='4']::after {
  content: '★';
  color: #c9d1cc;
}

.mock-widget__meta {
  color: #5b6962;
  font-size: 12px;
}

.mock-widget__reward {
  color: #5b6962;
  font-size: 12px;
}

.mock-widget__powered {
  margin-top: 6px !important;
  color: #5b6962;
  font-size: 11px;
  text-align: right;
}

@media (max-width: 559px) {
  .mock-widget__card--3 {
    display: none;
  }
}

@media (min-width: 560px) {
  .mock-widget {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 10px;
  }
  .mock-widget__title,
  .mock-widget__label,
  .mock-widget__reward,
  .mock-widget__powered {
    grid-column: 1 / -1;
  }
}

/* 「ここがコエマド」の吹き出し */
.callout {
  position: absolute;
  top: 6px;
  right: 14px;
  z-index: 1;
  padding: 4px 14px;
  border: 2px solid #3b2f25;
  border-radius: 16px 16px 4px 16px;
  background: var(--hl);
  color: #1c2420;
  font-size: 15px;
  transform: rotate(-3deg);
}

@media (prefers-color-scheme: dark) {
  .callout {
    background: #ffd98a;
  }
}

.callout::after {
  content: '';
  position: absolute;
  right: 18px;
  bottom: -10px;
  border: 8px solid transparent;
  border-top-color: #3b2f25;
  border-bottom: 0;
}

.sample__caption {
  margin: 16px auto 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.sample__link {
  margin: 8px 0 0;
  text-align: center;
}

.sample__link-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 特長（窓の形のカード） ---------- */
.features {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .features {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .feature:nth-child(even) {
    transform: translateY(24px);
  }
}

.feature {
  position: relative;
  padding: 26px 20px 22px;
  border: 2px solid var(--ink);
  border-radius: 90px 90px 18px 18px;
  text-align: center;
}

.feature--g {
  background: var(--accent-weak);
}

.feature--w {
  background: var(--warm-weak);
}

.feature--s {
  background: var(--sky-weak);
}

.feature--y {
  background: var(--yellow-weak);
}

.feature__icon {
  display: inline-flex;
  width: 72px;
  height: 72px;
  padding: 8px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--surface);
}

.feature__title {
  margin: 12px 0 8px;
  font-size: 19px;
  line-height: 1.5;
}

.feature p {
  margin: 0;
  text-align: left;
}

@media (min-width: 720px) {
  .features + .note {
    margin-top: 44px;
  }
}

/* ---------- 申し込みへの案内（表示イメージの後の 1 か所だけ） ---------- */
.cta-section {
  padding: 56px 0 64px;
  background-color: var(--warm-weak);
  background-image: radial-gradient(var(--warm) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  background-position: center;
}

.cta-section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.cta-section__title {
  max-width: 640px;
  margin: 0;
  padding: 18px 22px;
  border: 2px solid var(--ink);
  border-radius: 24px 24px 24px 6px;
  background: var(--surface);
  font-size: clamp(20px, 5.4vw, 30px);
  line-height: 1.5;
}

/* ---------- β版の条件（窓の形） ---------- */
.window-card {
  max-width: 760px;
  padding: 28px 20px 20px;
  border: 2px solid var(--ink);
  border-radius: 28px 28px 14px 14px;
  background: var(--surface);
  box-shadow: 8px 8px 0 var(--accent-weak);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 34px;
}

.check-list__note {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.5 3.5L16 8' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 22px no-repeat;
}

/* ---------- コエマドを使ってみる（道のり） ---------- */
.flow {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 10px;
  bottom: 10px;
  border-left: 3px dashed var(--warm);
}

.flow__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.flow__no {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--warm-weak);
  font-size: 20px;
}

.flow__item p {
  margin: 0;
  font-weight: 700;
}

@media (min-width: 860px) {
  .flow {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .flow::before {
    left: 22px;
    right: 22px;
    top: 21px;
    bottom: auto;
    border-left: 0;
    border-top: 3px dashed var(--warm);
  }
  .flow__item {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- よくある質問 ---------- */
.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq details {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  margin-left: auto;
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '−';
}

.qa {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
}

.qa--q {
  background: var(--accent);
  color: var(--on-accent);
}

.qa--a {
  background: var(--warm);
  color: #1c2420;
}

.faq__a {
  display: flex;
  gap: 12px;
  padding: 4px 16px 16px;
  border-top: 2px dashed var(--line);
  padding-top: 14px;
}

.faq__a p,
.faq__a ul {
  margin: 0 0 8px;
}

.faq__a > p:last-child,
.faq__a > div > :last-child {
  margin-bottom: 0;
}

/* ---------- 申し込みフォーム ---------- */
.notice {
  margin: 0 0 20px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--warm-weak);
  font-weight: 700;
}

.form {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 22px 16px;
  box-shadow: 8px 8px 0 var(--accent-weak);
}

.field {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field__label {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  font-weight: 700;
}

.req,
.opt {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  vertical-align: 2px;
  line-height: 1.6;
}

.req {
  background: var(--danger-bg);
  color: var(--danger);
}

.opt {
  background: var(--bg);
  color: var(--muted);
}

/* 入力欄の文字は 16px 以上（iPhone の自動ズームを防ぐ） */
.input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

textarea.input {
  resize: vertical;
}

.input[aria-invalid='true'] {
  border-color: var(--danger);
}

.field__hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.field__error {
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 14px;
  font-weight: 700;
}

.choices {
  display: grid;
  gap: 8px;
}

@media (min-width: 560px) {
  .choices {
    grid-template-columns: 1fr 1fr;
  }
}

.choice,
.check-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
}

.choice input,
.check-line input {
  width: 22px;
  height: 22px;
  margin: 0;
  flex: none;
  accent-color: var(--accent);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile {
  min-height: 70px;
  margin: 0 0 16px;
}

.form-error {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--danger-bg);
  color: var(--danger);
  font-weight: 700;
}

.done {
  padding: 20px 16px;
  border-radius: var(--radius-lg);
  background: var(--accent-weak);
  border: 2px solid var(--accent);
}

.done__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
}

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

/* ---------- フッター ---------- */
.site-footer {
  padding: 36px 0 44px;
  background: var(--surface);
  border-top: 2px solid var(--line);
  font-size: 14px;
}

.site-footer__brand {
  margin: 0 0 8px;
}

.site-footer__info {
  margin: 0 0 12px;
}

.site-footer__info div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.site-footer__info dt {
  min-width: 6.5em;
  color: var(--muted);
}

.site-footer__info dd {
  display: flex;
  align-items: center;
  margin: 0;
}

.site-footer__info a,
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

/* ---------- 動き（動きを減らす設定のときは動かさない。motion.js が html に js-motion を付ける） ---------- */
.js-motion .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.js-motion .reveal.is-in {
  opacity: 1;
  transform: none;
}

.js-motion .feature.reveal.is-in:nth-child(even) {
  transform: none;
}

@media (min-width: 720px) {
  .js-motion .feature.reveal.is-in:nth-child(even) {
    transform: translateY(24px);
  }
}

/*
 * ファーストビューのアニメーション（8 秒でくり返す。SVG と CSS だけ）
 *   0〜29%  POP の QR コードを読み取る（読み取りの線 → 印）
 *  29〜58%  星が付き、感想の行がのび、送るボタンを押す
 *  58〜76%  声が点線に沿って、お店の窓へ飛ぶ
 *  72〜82%  いちばん上のカードになり、前の声は 1 段下へ。掲載のスイッチがオン
 *  82〜94%  そのまま見せる（約 1 秒）→ 最初に戻る
 * 動きを減らす設定のとき・アニメーションが無いときは、「載ったあと」の絵のまま止まる（下の初期値）。
 * 画面の外に出たら motion.js が .is-paused を付けて止める。点滅はしない（明るさが急に変わる動きはない）
 */
.hero-anim .a-qr,
.hero-anim .a-check,
.hero-anim .a-fly {
  opacity: 0;
}

.hero-anim .a-shift {
  transform: translateY(44px);
}

.hero-anim .a-knob {
  transform: translateX(11px);
}

.hero-anim .a-star,
.hero-anim .a-check,
.hero-anim .a-send,
.hero-anim .a-new {
  transform-box: fill-box;
  transform-origin: center;
}

.hero-anim .a-line {
  transform-box: fill-box;
  transform-origin: left center;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-anim .a-qr {
    animation: koe-qr 8s infinite both;
  }
  .hero-anim .a-scan {
    animation: koe-scan 8s infinite both;
  }
  .hero-anim .a-check {
    animation: koe-check 8s infinite both;
  }
  .hero-anim .a-form {
    animation: koe-form 8s infinite both;
  }
  .hero-anim .a-star {
    animation: koe-star 8s infinite both;
  }
  .hero-anim .a-star2 {
    animation-delay: 0.16s;
  }
  .hero-anim .a-star3 {
    animation-delay: 0.32s;
  }
  .hero-anim .a-star4 {
    animation-delay: 0.48s;
  }
  .hero-anim .a-star5 {
    animation-delay: 0.64s;
  }
  .hero-anim .a-line {
    animation: koe-line 8s infinite both;
  }
  .hero-anim .a-line2 {
    animation-delay: 0.24s;
  }
  .hero-anim .a-line3 {
    animation-delay: 0.48s;
  }
  .hero-anim .a-send {
    animation: koe-send 8s infinite both;
  }
  .hero-anim .a-fly {
    animation: koe-fly 8s infinite both linear;
  }
  .hero-anim .a-new {
    animation: koe-new 8s infinite both;
  }
  .hero-anim .a-shift {
    animation: koe-shift 8s infinite both;
  }
  .hero-anim .a-on {
    animation: koe-on 8s infinite both;
  }
  .hero-anim .a-knob {
    animation: koe-knob 8s infinite both;
  }
  .hero-anim.is-paused * {
    animation-play-state: paused;
  }
}

@keyframes koe-qr {
  0%,
  27% {
    opacity: 1;
  }
  29.5%,
  96% {
    opacity: 0;
  }
  99%,
  100% {
    opacity: 1;
  }
}

@keyframes koe-scan {
  0%,
  2% {
    opacity: 0;
    transform: translateY(0);
  }
  4% {
    opacity: 1;
    transform: translateY(0);
  }
  11% {
    opacity: 1;
    transform: translateY(46px);
  }
  18% {
    opacity: 1;
    transform: translateY(0);
  }
  20%,
  100% {
    opacity: 0;
    transform: translateY(0);
  }
}

@keyframes koe-check {
  0%,
  20% {
    opacity: 0;
    transform: scale(0.5);
  }
  23% {
    opacity: 1;
    transform: scale(1.08);
  }
  25%,
  27% {
    opacity: 1;
    transform: scale(1);
  }
  29.5%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes koe-form {
  0%,
  27% {
    opacity: 0;
  }
  30%,
  94% {
    opacity: 1;
  }
  97%,
  100% {
    opacity: 0;
  }
}

@keyframes koe-star {
  0%,
  33% {
    opacity: 0;
    transform: scale(0.3);
  }
  35.5% {
    opacity: 1;
    transform: scale(1.25);
  }
  37%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes koe-line {
  0%,
  43% {
    transform: scaleX(0);
  }
  46%,
  100% {
    transform: scaleX(1);
  }
}

@keyframes koe-send {
  0%,
  53% {
    transform: none;
  }
  55% {
    transform: translateY(2px) scale(0.94);
  }
  58%,
  100% {
    transform: none;
  }
}

@keyframes koe-fly {
  0%,
  55% {
    opacity: 0;
    transform: translate(0, 0) scale(0.5);
  }
  58% {
    opacity: 1;
    transform: translate(0px, 0px);
  }
  59.4% {
    opacity: 1;
    transform: translate(0.1px, -6px);
  }
  60.8% {
    opacity: 1;
    transform: translate(1.6px, -20.5px);
  }
  62.2% {
    opacity: 1;
    transform: translate(6.5px, -36.7px);
  }
  63.6% {
    opacity: 1;
    transform: translate(15.4px, -47.8px);
  }
  65% {
    opacity: 1;
    transform: translate(27.2px, -48.8px);
  }
  66.4% {
    opacity: 1;
    transform: translate(39.2px, -37.4px);
  }
  67.8% {
    opacity: 1;
    transform: translate(48.5px, -15.8px);
  }
  69.2% {
    opacity: 1;
    transform: translate(53.8px, 10.5px);
  }
  70.6% {
    opacity: 1;
    transform: translate(55.7px, 32.8px);
  }
  72% {
    opacity: 1;
    transform: translate(56px, 42px);
  }
  76%,
  100% {
    opacity: 0;
    transform: translate(157px, 53px) scale(1.5);
  }
}

@keyframes koe-new {
  0%,
  72% {
    opacity: 0;
    transform: scale(0.85);
  }
  77%,
  94% {
    opacity: 1;
    transform: none;
  }
  98%,
  100% {
    opacity: 0;
    transform: none;
  }
}

@keyframes koe-shift {
  0%,
  72% {
    transform: translateY(0);
  }
  77%,
  94% {
    transform: translateY(44px);
  }
  99%,
  100% {
    transform: translateY(0);
  }
}

@keyframes koe-on {
  0%,
  78% {
    opacity: 0;
  }
  82%,
  100% {
    opacity: 1;
  }
}

@keyframes koe-knob {
  0%,
  78% {
    transform: translateX(0);
  }
  82%,
  100% {
    transform: translateX(11px);
  }
}

/* メニューを開く動き（動きを減らす設定のときは、すぐに出す） */
@media (prefers-reduced-motion: no-preference) {
  .site-menu:not([hidden]) {
    animation: koe-menu 0.18s ease-out;
  }
  .menu-btn__bars,
  .menu-btn__bars::before,
  .menu-btn__bars::after {
    transition:
      transform 0.18s ease,
      top 0.18s ease,
      background 0.18s ease;
  }
}

@keyframes koe-menu {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .step,
  .talk__bubble,
  .faq details {
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }
  .step:hover,
  .talk__bubble:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 0 var(--line);
  }
  .feature {
    transition: box-shadow 0.2s ease;
  }
  .feature:hover {
    box-shadow: 0 6px 0 var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
