/* pawlulu LP（白黒版 2026-12-04）
   方針: 白地に黒文字、アクセント色なし。1列（PCでも中央 480px）。写真→見出し→短い文の繰り返し。
   参考: catlog の構成と落ち着き、Coo&RIKU の書体の雰囲気。原則は research/anti-ai-design.md */

:root {
  /* color */
  --bg: #fbf9f4;
  --ink: #111111;
  --sub: #555555;
  --gray: #f1ede4;
  --line: #e6e1d7;
  --surface: #ffffff; /* 白い面（404 の丸など） */
  --outside: #ece7dc; /* PC の列の外 */
  --accent: var(--ink); /* 主ボタン。アクセント色は使わない */
  --on-accent: var(--bg);
  /* radius */
  --radius-card: 16px;
  --radius-small: 8px;
  --radius-button: 999px;
  /* space */
  --space-section: 40px;
  --gutter: 20px;
  --column: 480px;
  /* font */
  --font-head: 'Nunito', 'Zen Kaku Gothic New', sans-serif;
  --font-body: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  --font-num: 'Nunito', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #171614;
    --ink: #f2f2f2;
    --sub: #a8a8a8;
    --gray: #24221e;
    --line: #302d28;
    --surface: #1e1c19;
    --outside: #0f0e0d;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #171614;
  --ink: #f2f2f2;
  --sub: #a8a8a8;
  --gray: #24221e;
  --line: #302d28;
  --surface: #1e1c19;
  --outside: #0f0e0d;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}
body {
  margin: 0;
  background: var(--outside);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
  word-break: auto-phrase;
  text-wrap: balance;
}
p,
dd {
  margin: 0;
  text-wrap: pretty; /* 最後の行に1〜2文字だけ落ちないように */
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ---------- 列 ---------- */
.page {
  max-width: var(--column);
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: 72px; /* 固定ボタンの分 */
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius-button);
  padding: 13px 32px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-main {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-main:hover {
  opacity: 0.85;
}
.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-inv {
  background: var(--bg);
  color: var(--ink);
}
.btn-sm {
  padding: 6px 16px;
  font-size: 0.82rem;
}
.btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* ---------- ヘッダー ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.2rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.logo svg {
  width: 20px;
  height: 20px;
}
/* ワードマーク（PO の手書きロゴ。アプリの Wordmark と同じ画像を文字色で塗る） */
.wordmark {
  display: inline-block;
  height: 1.5em;
  aspect-ratio: 900 / 227;
  background-color: currentColor;
  -webkit-mask: url('/assets/wordmark.png') center / contain no-repeat;
  mask: url('/assets/wordmark.png') center / contain no-repeat;
  vertical-align: middle;
}

/* ---------- ヒーロー（文の下にアプリの画面。画面は区画の下で切る） ---------- */
.hero {
  margin: 16px var(--gutter) 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--gray);
  padding: 32px var(--gutter) 0;
  display: grid;
  gap: 28px;
}
.hero-copy {
  display: grid;
  gap: 12px;
  justify-items: start;
}
.hero-copy .tag {
  font-size: 0.75rem;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 0 8px;
}
.hero-copy h1 {
  font-size: 2rem;
  line-height: 1.35;
}
.hero-copy p {
  word-break: auto-phrase; /* 短い文なので文節で折り返す */
  font-size: 0.9rem;
  color: var(--sub);
}
.hero-actions {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}
/* 事前登録の次に軽い行き先。ボタンにはせず、下線の文字リンクにする */
.try {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 0;
}
.try small {
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--sub);
}
.hero-phone {
  width: min(280px, 78%);
  justify-self: center;
  margin-bottom: -96px; /* 画面の下は区画で隠す */
}

/* アプリの画面を入れる端末の枠（色はライト・ダークとも同じ黒） */
.phone {
  margin: 0;
  border: 7px solid #111;
  border-radius: 34px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 1px 0 var(--line);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 27px;
}
.hero .phone {
  border-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
/* 区画の中の画面: 上の 7 割だけ見せる */
.phone-crop {
  width: min(250px, 70%);
  justify-self: center;
  aspect-ratio: 520 / 760;
  border-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
  mask-image: linear-gradient(#000 78%, transparent);
}
.phone-crop img {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* ---------- 共通の区画 ---------- */
.claim,
.feature,
.block {
  padding: var(--space-section) var(--gutter) 0;
  display: grid;
  gap: 14px;
}
.claim h2 {
  font-size: 1.6rem;
}
.feature h2,
.block h2,
.band h2 {
  font-size: 1.4rem;
}
.claim > p:not(.today),
.feature > p:not(.no),
.block > p {
  color: var(--sub);
  font-size: 0.92rem;
}
.ul {
  box-shadow: inset 0 -2px 0 var(--ink);
}
.today {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.date {
  font-family: var(--font-num);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.today .date {
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 0 6px;
  font-size: 0.78rem;
}
.no {
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.no::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--ink);
}

/* 灰色の帯 */
.band {
  margin-top: 48px;
  background: var(--gray);
  padding: var(--space-section) var(--gutter);
  display: grid;
  gap: 16px;
}
.band + .block {
  padding-top: var(--space-section);
}
/* 文の区画に置く端末の画面: 見出しとの間をあける */
.feature > .phone-crop,
.block > .phone-crop {
  margin-bottom: 8px;
}

/* ---------- 01 押すと鳴く ---------- */
.demo {
  position: relative;
  background: var(--gray);
  border-radius: var(--radius-card);
  padding: 12px;
}
.card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-small);
  overflow: hidden;
  cursor: pointer;
  background: var(--line);
}
.card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.on-photo {
  position: absolute;
  right: 12px;
  top: 10px;
  color: #fff;
  font-size: 0.85rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.card-meta {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  background: rgba(17, 17, 17, 0.72);
  color: #fff;
  font-size: 0.74rem;
  padding: 2px 10px;
  border-radius: var(--radius-button);
}
.bubble {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, 0);
  opacity: 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.4rem;
  color: #111;
  background: #fff;
  padding: 4px 16px;
  border-radius: var(--radius-small);
  pointer-events: none;
  white-space: nowrap;
}
.bubble.on {
  animation: pop 0.9s ease forwards;
}
@keyframes pop {
  0% {
    opacity: 0;
    transform: translate(-50%, 8px) scale(0.7);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1.06);
  }
  75% {
    opacity: 1;
    transform: translate(-50%, -4px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -14px) scale(1);
  }
}
/* スタンプ: アプリと同じ丸いボタン3つ。送ったものは灰色の地にチェック */
.stamps {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 14px;
}
.stamp {
  display: grid;
  justify-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  min-width: 64px;
}
.stamp-ic {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--bg);
  transition: transform 0.15s ease;
}
.stamp-ic > .icon {
  width: 26px;
  height: 26px;
}
.stamp:active .stamp-ic {
  transform: scale(0.94);
}
.stamp-ok {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: none;
  place-items: center;
}
.stamp-ok .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}
.stamp.is-sent .stamp-ic {
  border-color: transparent;
  background: var(--line);
  animation: sent 0.35s ease;
}
.stamp.is-sent .stamp-ok {
  display: grid;
}
@keyframes sent {
  40% {
    transform: scale(1.12);
  }
}
.left {
  text-align: center;
  font-size: 0.82rem;
  color: var(--sub);
  margin-top: 10px;
}
.left b {
  font-family: var(--font-num);
  color: var(--ink);
}

/* 動画から3秒を選ぶ（波形と選んだ範囲） */
.clip {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 12px 14px 14px;
  background: var(--bg);
}
.clip-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--sub);
  margin-bottom: 8px;
}
.clip-head b {
  font-family: var(--font-num);
  color: var(--ink);
}
.wave {
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.wave span {
  flex: 1;
  border-radius: 2px;
  background: var(--line);
}
.wave span.on {
  background: var(--ink);
}
.wave-sel {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: calc(37.5% - 3px);
  width: calc(25% + 4px);
  border: 2px solid var(--ink);
  border-radius: 8px;
}

/* ---------- 02 スワイプ ---------- */
.deck-wrap {
  background: var(--gray);
  border-radius: var(--radius-card);
  padding: 18px 12px 12px;
}
.deck {
  position: relative;
  width: min(270px, 78%);
  margin: 0 auto;
  aspect-ratio: 4 / 5;
}
.swipe-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--line);
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
  transform: translateY(calc(var(--depth) * 8px)) scale(calc(1 - var(--depth) * 0.04));
  transition: transform 0.25s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.swipe-card:not([data-depth='0']) {
  pointer-events: none;
}
.swipe-card.is-dragging {
  transition: none;
  cursor: grabbing;
}
.swipe-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.swipe-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 14px 12px;
  color: #fff;
  font-size: 0.78rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}
.swipe-name b {
  font-family: var(--font-head);
  font-size: 1.05rem;
  margin-right: 8px;
}
.swipe-label {
  position: absolute;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-button);
  background: #fff;
  color: #111;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.swipe-label .icon {
  width: 16px;
  height: 16px;
}
.swipe-label.kawaii {
  right: 14px;
}
.swipe-label.fav {
  left: 14px;
}
.is-kawaii .swipe-label.kawaii,
.is-fav .swipe-label.fav {
  opacity: 1;
}
.deck-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 56px;
}
.round {
  display: grid;
  justify-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  min-width: 64px;
}
.round .icon {
  box-sizing: content-box;
  width: 22px;
  height: 22px;
  padding: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--ink);
}
.round:active .icon {
  transform: scale(0.94);
}
.deck-msg {
  margin-top: 8px;
  min-height: 1.8em;
  text-align: center;
  font-size: 0.78rem;
  color: var(--sub);
}

.family-row figure {
  margin: 0;
  font-size: 0.78rem;
  text-align: center;
  color: var(--sub);
}
.family-row .ph {
  aspect-ratio: 1;
  border-radius: var(--radius-small);
  overflow: hidden;
  margin-bottom: 4px;
  background: var(--gray);
}
.family-row .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- 03 お題 ---------- */
.week {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.week li {
  display: flex;
  gap: 14px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--sub);
}
.week .dw {
  width: 1.5em;
  color: var(--ink);
  font-weight: 700;
}
.week .is-today {
  color: var(--ink);
  font-weight: 700;
}
.week .is-today::after {
  content: '今日';
  margin-left: auto;
  font-size: 0.72rem;
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 0 6px;
  align-self: center;
}

/* 写真からのタグ提案 */
.suggest {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 12px;
  background: var(--bg);
}
.suggest img {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-small);
  object-fit: cover;
  display: block;
}
.suggest-head {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--sub);
  margin-bottom: 6px;
}
.suggest-head .icon {
  width: 16px;
  height: 16px;
}
.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tags li {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border: 1px dashed var(--sub);
  border-radius: var(--radius-button);
  color: var(--sub);
}
.tags .is-on {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
}

/* ---------- 04 ランキング ---------- */
.rank {
  background: var(--gray);
  border-radius: var(--radius-card);
  padding: 14px;
}
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  padding: 3px;
  margin-bottom: 10px;
  background: var(--bg);
}
.seg button {
  border: 0;
  background: transparent;
  border-radius: var(--radius-button);
  min-height: 38px;
  padding: 0 18px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--sub);
}
.seg button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--bg);
}
.rank-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.rank-tabs button {
  font-size: 0.8rem;
  font-weight: 700;
  border: 0;
  background: transparent;
  min-height: 44px;
  padding: 0;
  cursor: pointer;
  color: var(--sub);
  box-shadow: inset 0 -2px 0 transparent;
}
.rank-tabs button[aria-pressed='true'] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--ink);
}
.podium {
  list-style: none;
  margin: 0;
  padding: 0;
}
.podium li {
  display: grid;
  grid-template-columns: 32px 44px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.podium li:last-child {
  border-bottom: 0;
}
.podium .no {
  display: grid;
  place-items: center;
}
.podium .crown {
  width: 30px;
  height: auto;
}
.podium .medal {
  width: 25px;
  height: auto;
  color: var(--sub);
}
.podium .no::before {
  display: none;
}
.podium .face {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
/* 部門選手権 */
.champ {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius-card);
  padding: 14px;
}
.champ-mark {
  display: grid;
  place-items: center;
}
.champ-mark .crown {
  width: 36px;
  height: auto;
}
.champ-kind {
  font-size: 0.72rem;
  color: var(--sub);
}
.champ-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
}
.champ-note {
  font-size: 0.8rem;
  color: var(--sub);
}

/* ---------- 05 家族 ---------- */
.family {
  display: grid;
  gap: 10px;
}
.family-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.family-row .zz {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--sub);
  border: 1px dashed var(--line);
  background: transparent;
}
.icon {
  width: 18px;
  height: 18px;
  flex: none;
}
/* 公開範囲: 3つから選ぶ（選んだものは黒地に白） */
.vis {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vis li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  padding: 5px 12px 5px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  color: var(--sub);
}
.vis .is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  font-weight: 700;
}
/* ---------- 1日の流れ ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.timeline li {
  display: grid;
  grid-template-columns: 4.5em 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.timeline time {
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 0.9rem;
}
.timeline p {
  color: var(--sub);
  font-size: 0.9rem;
}
.timeline b {
  display: block;
  color: var(--ink);
  font-family: var(--font-head);
}

/* ---------- 保護団体 ---------- */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ink) !important;
}
.steps span:not([aria-hidden]) {
  border: 1px solid var(--ink);
  border-radius: var(--radius-small);
  padding: 2px 10px;
}
.steps .is-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--ink);
  color: var(--bg);
}
.steps .is-badge .icon {
  width: 16px;
  height: 16px;
}

/* ---------- しないこと ---------- */
.promise {
  margin: 0;
  border-top: 1px solid var(--line);
}
.promise div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.promise dt {
  font-family: var(--font-head);
  font-weight: 700;
}
.promise dd {
  margin: 2px 0 0;
  color: var(--sub);
  font-size: 0.88rem;
}

/* ---------- 事前登録 ---------- */
.form {
  margin-top: 4px;
}
.form-body {
  display: grid;
  gap: 10px;
}
.form label[for],
.radio legend {
  font-size: 0.85rem;
  font-weight: 700;
}
.form input[type='email'] {
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-small);
  background: var(--bg);
  color: var(--ink);
  width: 100%;
}
.radio {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.radio legend {
  padding: 0;
  margin-bottom: 4px;
}
/* 選択チップ: ブラウザ既定の丸ラジオは出さず、選んだものを塗る（アプリの .chip と同じ） */
.radio label {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  font-size: 0.92rem;
  cursor: pointer;
  user-select: none;
}
.radio input {
  /* チップ全体に透明で重ねる（どこを押しても選べる。自動テストの check() もそのまま動く） */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.radio label:has(input:checked) {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
}
.radio label:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.turnstile:empty {
  display: none;
}
.err {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  border-left: 3px solid var(--ink);
  padding-left: 10px;
}
.fine {
  font-size: 0.78rem;
  color: var(--sub);
}
.done {
  display: grid;
  gap: 8px;
  justify-items: start;
  border: 1px solid var(--ink);
  border-radius: var(--radius-small);
  padding: 18px;
}
.done strong {
  font-family: var(--font-head);
  font-size: 1.15rem;
}
.letter {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 0.9rem;
  line-height: 2;
}
.letter .sign {
  display: block;
  text-align: right;
  margin-top: 6px;
  color: var(--ink);
}
.maker {
  font-size: 0.85rem;
}
.hash {
  font-weight: 700;
  color: var(--ink);
}
.copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  vertical-align: middle;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: var(--radius-button);
  min-height: 44px;
  padding: 0 14px 0 12px;
  margin-left: 4px;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.12s ease,
    background-color 0.22s ease,
    color 0.22s ease;
}
.copy:active {
  transform: scale(0.96);
}
/* コピーした手ごたえ（refine-copy-feedback）: 白黒が反転し、チェックの線が引かれ、軽く弾む */
.copy[data-state='copied'] {
  background: var(--ink);
  color: var(--bg);
}
.copy[data-state='copied'].is-pop {
  animation: copy-pop 0.36s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.copy[data-state='failed'].is-pop {
  animation: copy-shake 0.32s ease;
}
.copy-wrap {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
/* 結果の吹き出し（ボタンの上、右端をそろえて左へ伸ばす。画面の外にはみ出さない） */
.copy-bubble {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  padding: 4px 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px) scale(0.9);
  transform-origin: 80% 100%;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.copy-bubble::after {
  content: '';
  position: absolute;
  right: 22px;
  bottom: -5px;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--bg);
  transform: rotate(45deg);
}
.copy-bubble[data-show='true'] {
  opacity: 1;
  transform: none;
}
.copy-bubble.is-pop {
  animation: copy-bubble-in 0.34s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes copy-bubble-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.7);
  }
}
.copy__icon {
  display: inline-grid;
  place-items: center;
}
.copy__icon svg {
  grid-area: 1 / 1;
  transition:
    opacity 0.18s ease,
    transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.copy__icon [data-copy-icon='check'] {
  opacity: 0;
  transform: scale(0.5) rotate(-12deg);
}
.copy[data-state='copied'] [data-copy-icon='copy'] {
  opacity: 0;
  transform: scale(0.5);
}
.copy[data-state='copied'] [data-copy-icon='check'] {
  opacity: 1;
  transform: none;
}
.copy__check {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.copy[data-state='copied'] .copy__check {
  animation: copy-check-draw 0.28s 0.08s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes copy-pop {
  0% {
    transform: scale(0.96);
  }
  55% {
    transform: scale(1.04);
  }
  100% {
    transform: none;
  }
}
@keyframes copy-check-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes copy-shake {
  20%,
  60% {
    transform: translateX(-3px);
  }
  40%,
  80% {
    transform: translateX(3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .copy__icon svg,
  .copy-bubble {
    transform: none !important;
  }
  .copy__check {
    stroke-dashoffset: 0;
  }
}
/* 読み上げだけに使う（見た目には出さない） */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-family: var(--font-num);
  font-weight: 800;
}
.faq details[open] summary::after {
  content: '−';
}
.faq details p {
  color: var(--sub);
  font-size: 0.88rem;
  padding-top: 6px;
}

/* ---------- フッター ---------- */
footer {
  margin-top: 56px;
  padding: 24px var(--gutter) 32px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--sub);
}
.theme {
  display: inline-flex;
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  overflow: hidden;
  margin-bottom: 8px;
}
.theme button {
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  width: 48px;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--sub);
}
.theme button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- 下部の固定ボタン（catlog と同じく常に出す。登録欄が見えたら隠す） ---------- */
.sticky-cta {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--column);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--ink);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 700;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}
.sticky-cta.hide {
  transform: translate(-50%, 110%);
  opacity: 0;
  pointer-events: none;
}

/* ---------- プライバシーポリシー（同じ列の中に表示） ---------- */
.wrap {
  max-width: var(--column);
  margin: 0 auto;
  background: var(--bg);
}
.top-in {
  display: flex;
  align-items: center;
  width: 100%;
}
.doc {
  padding: 32px var(--gutter) 64px;
  min-height: 100vh;
}
.doc h1 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.doc h2 {
  font-size: 1.1rem;
  margin: 32px 0 8px;
}
.doc p,
.doc li {
  color: var(--sub);
  font-size: 0.92rem;
}
.doc ul {
  padding-left: 1.2em;
}
.doc .form {
  margin-top: 12px;
}
body > header.top {
  max-width: var(--column);
  margin: 0 auto;
}
[hidden] {
  display: none !important;
}

/* ---------- 404（アプリのエラー画面と同じ犬のイラスト） ---------- */
.nf {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 32px;
  padding-bottom: 12vh;
  text-align: center;
}
/* アプリのエラー画面と同じ比率: 丸 140・顔 112・印 40（viewBox 160） */
.nf-art {
  display: block;
  width: 160px;
  height: 160px;
  margin-bottom: 24px;
  color: var(--ink);
  overflow: visible;
}
.nf-art__disc {
  fill: var(--surface);
  stroke: var(--line);
  stroke-width: 1.5;
}
.nf-art__badge {
  fill: var(--ink);
  stroke: var(--bg);
  stroke-width: 4;
}
.nf-art__mark {
  color: var(--bg);
}
.nf h1 {
  font-size: 1.125rem;
  line-height: 1.5;
  margin: 0;
  text-wrap: balance;
  word-break: auto-phrase;
}
.nf p {
  color: var(--sub);
  max-width: 18rem;
  margin: 8px 0 0;
  font-size: 0.875rem;
  line-height: 1.9;
  text-wrap: balance;
  word-break: auto-phrase;
}
.nf-btn {
  display: block;
  width: 18rem;
  max-width: 100%;
  margin-top: 16px;
  padding: 14px 28px;
  border-radius: var(--radius-button);
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}

/* 404: ロゴの帯の下の高さいっぱいを使い、中身を中ほどに置く */
body:has(> main.nf) {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
body:has(> main.nf) > header.top {
  width: 100%;
}
main.nf {
  flex: 1;
  width: 100%;
}

/* 画面の色の切り替え: 指で押せる高さ（44px） */
.theme button {
  min-height: 44px;
}
