/* ナニデルの紹介ページ・プライバシーポリシー・利用規約で共通の見た目。
   アプリと同じく、生成りの紙と墨の字に、朱を 1 色だけ差す。
   ぼかした影・グラデーション・丸すぎる角は使わない。 */

:root {
  --paper: #f4efe6;      /* 生成り（地） */
  --paper-2: #ece4d6;    /* 一段沈んだ紙（区切りの帯） */
  --sheet: #fbf8f2;      /* 上に置いた紙 */
  --ink: #221e1a;        /* 墨（字・端末の枠） */
  --muted: #5f564c;      /* 補足の字（紙の上で 6:1 ほど） */
  --line: #ddd2c1;       /* 罫線 */
  --vermilion: #c9452b;  /* 朱（ボタン・印） */
  --vermilion-dark: #a8361f;
  --brass: #d29c2e;      /* 真鍮（飾りだけ。字には使わない） */
  --max: 1040px;
  --radius: 10px;
  --display: 'Dela Gothic One', 'Hiragino Sans', 'Yu Gothic', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* ページ内の行き先が、上に止まる見出しに隠れないようにする */
section[id] { scroll-margin-top: 80px; }

body {
  margin: 0;
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--vermilion-dark); text-decoration: underline; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }

img { max-width: 100%; height: auto; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* 見出しを語のまとまりで折り返す（語の途中で切らない） */
.phrase { display: inline-block; }

/* ヘッダー */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.95rem; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover { color: var(--ink); }

/* 先頭 */
.hero { padding: 64px 0 48px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
h1, h2 {
  font-family: var(--display);
  font-weight: 400; /* Dela Gothic One は 1 種類の太さだけ。太字にしない */
  letter-spacing: 0.02em;
  color: var(--ink);
}
h1 {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.35;
  margin: 0 0 20px;
}
.lead { font-size: 1.05rem; color: var(--muted); margin: 0 0 28px; }

.stores { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  min-height: 48px;
  /* アプリの押すボタンと同じ、ぼかさない影 */
  box-shadow: 0 4px 0 #000;
}
.store:hover { background: #3a332c; color: var(--paper); }
.store:active { transform: translateY(2px); box-shadow: 0 2px 0 #000; }
.store svg { width: 20px; height: 20px; fill: currentColor; }
.note { color: var(--muted); font-size: 0.92rem; margin: 14px 0 0; }

/* 画面の写しを、CSS で描いた端末の枠に入れる（実在の機種は写さない） */
.shot {
  position: relative;
  margin: 0;
  padding: 12px;
  border-radius: 38px;
  background: var(--ink);
  box-shadow: 0 10px 0 rgba(34, 30, 26, 0.12);
}
.shot img,
.shot video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / 2400;
  object-fit: cover;
  border-radius: 27px;
  background: var(--paper);
}
.hero .shot { max-width: 300px; margin: 0 auto; }
.hero-figure { margin: 0; }
.hero-figure figcaption {
  max-width: 320px;
  margin: 22px auto 0;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
}

/* 節 */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section.band { background: var(--paper-2); }
.section-head { max-width: 680px; margin: 0 0 40px; }
h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  line-height: 1.4;
  margin: 0 0 12px;
}
.section-head p { margin: 0; color: var(--muted); }

/* 手順（文と画面を左右交互に） */
.steps { display: grid; gap: 56px; }
.step {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  align-items: center;
}
.step:nth-child(even) { grid-template-columns: 260px 1fr; }
.step:nth-child(even) .step-text { order: 2; }
.step-num {
  display: inline-block;
  font-family: var(--display);
  color: var(--vermilion);
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.step h3 { font-size: 1.3rem; margin: 0 0 10px; line-height: 1.5; }
.step p { margin: 0; }
.step p + p { margin-top: 10px; }

/* 回し方の 3 つ */
.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.mode { margin: 0; }
.mode .shot { max-width: 250px; margin: 0 auto; }
.mode h3 { font-size: 1.2rem; margin: 26px 0 6px; }
.mode p { margin: 0; }

/* そのほかの機能 */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.gallery figure { margin: 0; }
.gallery .shot { max-width: 250px; margin: 0 auto; }
.gallery figcaption { margin-top: 22px; }
.gallery figcaption strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }

/* 補足 */
.aside { margin: 40px 0 0; color: var(--muted); }

/* データの扱い */
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.rule { padding: 20px 0; border-bottom: 1px solid var(--line); }
.rule h3 { margin: 0 0 6px; font-size: 1.1rem; }
.rule h3::before {
  /* 朱の判子のような丸 */
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--vermilion);
  margin-right: 10px;
  vertical-align: 1px;
}
.rule p { margin: 0; }

/* よくある質問 */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary {
  display: flex;
  align-items: baseline;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: 'Q';
  font-family: var(--display);
  color: var(--vermilion);
  margin-right: 12px;
}
/* 消した三角の代わりに、開閉の印を右に出す */
.faq summary::after { content: '+'; margin-left: auto; padding-left: 16px; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 10px 0 0 28px; }

/* 最後の案内 */
.closing { text-align: center; padding: 72px 0; border-top: 1px solid var(--line); background: var(--paper-2); }
.closing h2 { margin-bottom: 24px; }
.closing .stores { justify-content: center; }

/* フッター */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 0.9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); }

/* 文書（プライバシーポリシー・利用規約） */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.doc h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 8px; }
.doc .effective { color: var(--muted); margin: 0 0 32px; }
.doc h2 {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  font-size: 1.2rem;
  margin: 40px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--vermilion);
}
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin-bottom: 0.4em; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.95rem; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--paper-2); font-weight: 700; }
.doc .important {
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  background: var(--sheet);
  padding: 14px 18px;
  border-radius: 8px;
  margin: 16px 0;
}
.doc .important p { margin: 0; }
.doc .contact {
  margin-top: 40px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sheet);
}
.doc .contact p { margin: 0; }

/* ヘッダーの案内は 1 行に約 900px 要る。それより狭いと折れるので隠し、
   文書への行き先はフッターに残す */
@media (max-width: 960px) {
  .site-nav { display: none; }
}

@media (max-width: 820px) {
  .hero { padding: 40px 0 36px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero .shot { max-width: 260px; }
  .step, .step:nth-child(even) { grid-template-columns: 1fr; gap: 28px; }
  .step:nth-child(even) .step-text { order: 0; }
  .step .shot { max-width: 240px; margin: 0 auto; }
  .modes, .gallery { grid-template-columns: 1fr; gap: 48px; }
  .mode, .gallery figure { max-width: 420px; margin: 0 auto; }
  .rules { grid-template-columns: 1fr; }
}
