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

:root {
  /* color */
  --bg: #ffffff;
  --ink: #111111;
  --sub: #555555;
  --gray: #f6f6f6;
  --line: #e5e5e5;
  --outside: #ededed; /* 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: #111111;
    --ink: #f2f2f2;
    --sub: #a8a8a8;
    --gray: #1c1c1c;
    --line: #2c2c2c;
    --outside: #0a0a0a;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #111111;
  --ink: #f2f2f2;
  --sub: #a8a8a8;
  --gray: #1c1c1c;
  --line: #2c2c2c;
  --outside: #0a0a0a;
  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 {
  margin: 0;
}
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;
}
.logo-paw {
  fill: var(--ink);
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  margin: 16px var(--gutter) 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--gray);
}
.hero-photo {
  position: absolute;
  inset: 0;
}
.hero-photo svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px var(--gutter) 22px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  display: grid;
  gap: 8px;
}
.hero-copy .tag {
  justify-self: start;
  font-size: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  padding: 0 8px;
}
.hero-copy h1 {
  font-size: 1.8rem;
  line-height: 1.4;
}
.hero-copy p {
  font-size: 0.86rem;
}

/* ---------- 共通の区画 ---------- */
.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):not(.swipe-cap),
.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);
}

/* ---------- 01 押すと鳴く ---------- */
.demo {
  position: relative;
  background: var(--gray);
  border-radius: var(--radius-card);
  padding: 12px;
}
.demo-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0 4px 8px;
}
.demo-odai {
  color: var(--sub);
}
.card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-small);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg);
}
#petArt,
#petArt svg {
  width: 100%;
  height: 100%;
  display: block;
}
.on-photo {
  position: absolute;
  right: 12px;
  bottom: 52px;
  color: #fff;
  font-size: 0.85rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.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);
  }
}
.stamps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.stamp {
  border-radius: var(--radius-small);
  padding: 11px;
  font-family: var(--font-head);
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--ink);
}
.stamp.pat {
  background: var(--ink);
  color: var(--bg);
}
.stamp.treat {
  background: var(--bg);
  color: var(--ink);
}
.stamp:active {
  transform: scale(0.97);
}
.left {
  text-align: center;
  font-size: 0.82rem;
  color: var(--sub);
  margin-top: 8px;
}
.left b {
  font-family: var(--font-num);
  color: var(--ink);
}
.pt {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  color: var(--ink);
  animation: fly 0.9s ease-out forwards;
}
@keyframes fly {
  to {
    transform: translate(var(--dx), var(--dy)) rotate(var(--r));
    opacity: 0;
  }
}

/* ---------- 02 スワイプ ---------- */
.swipe {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.swipe figure,
.family-row figure {
  margin: 0;
  font-size: 0.78rem;
  text-align: center;
  color: var(--sub);
}
.swipe .ph,
.family-row .ph {
  aspect-ratio: 1;
  border-radius: var(--radius-small);
  overflow: hidden;
  margin-bottom: 4px;
  background: var(--gray);
}
.swipe .ph svg,
.family-row .ph svg {
  width: 100%;
  height: 100%;
  display: block;
}
.swipe-cap {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--sub);
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

/* ---------- 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;
}

/* ---------- 04 ランキング ---------- */
.rank {
  background: var(--gray);
  border-radius: var(--radius-card);
  padding: 14px;
}
.rank-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.rank-tabs button {
  font-size: 0.8rem;
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: var(--radius-button);
  padding: 3px 12px;
  cursor: pointer;
}
.rank-tabs button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--bg);
}
.podium {
  list-style: none;
  margin: 0;
  padding: 0;
}
.podium li {
  display: grid;
  grid-template-columns: 1.6em 44px 1fr auto;
  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 {
  font-size: 1.1rem;
}
.podium .no::before {
  display: none;
}
.podium .face {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
}
.podium .face svg {
  width: 100%;
  height: 100%;
  display: block;
}
.podium .sc {
  font-family: var(--font-num);
  font-weight: 700;
  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-items: center;
  font-family: var(--font-num);
  font-weight: 800;
  color: var(--sub);
  border: 1px dashed var(--line);
  background: transparent;
}
.log {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 3px;
}
.log span {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--line);
}
.log .mid {
  background: var(--sub);
}
.log .on {
  background: var(--ink);
}
.log-cap {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--sub);
}

/* ---------- 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;
}

/* ---------- しないこと ---------- */
.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: 6px 16px;
}
.radio legend {
  padding: 0;
  margin-bottom: 4px;
}
.radio label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  cursor: pointer;
}
.radio input {
  accent-color: var(--ink);
}
.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 {
  font-size: 0.75rem;
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: var(--radius-button);
  padding: 0 10px;
  margin-left: 4px;
  cursor: pointer;
}
.copy-msg {
  font-size: 0.75rem;
  margin-left: 6px;
}

/* ---------- 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 {
  border: 0;
  background: transparent;
  padding: 4px 12px;
  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;
}
