/* Classify のランディングページ（日本語・英語で共通） */

:root {
  --bg: #FEF9EB;            /* background */
  --surface: #FFFDF6;
  --surface-alt: #F6F0DC;
  --text: #1D1C14;          /* onSurface */
  --text-sub: #4A4838;
  --primary: #676013;       /* primary */
  --on-primary: #FFFFFF;
  --primary-container: #F0E58B;
  --on-primary-container: #4E4800;
  --badge: #EAE3BD;         /* secondaryContainer */
  --line: #DCD6BE;
  --frame: #1B1B17;
  --shadow: 0 18px 40px rgba(60, 55, 0, 0.18);
  --radius: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15140C;
    --surface: #1F1E15;
    --surface-alt: #2A2920;
    --text: #E7E2D5;
    --text-sub: #C9C5B0;
    --primary: #D3C972;
    --on-primary: #363100;
    --primary-container: #4E4800;
    --on-primary-container: #F0E58B;
    --badge: #3A3824;
    --line: #3D3B2E;
    --frame: #050504;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  line-height: 1.75;
  /* スマホの画面の下に固定するボタンに、最後の内容が隠れないように */
  padding-bottom: 88px;
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

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

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

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

/* ---------- 上部 ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.brand img { width: 36px; height: 36px; border-radius: 9px; }

.lang { font-size: 0.9rem; }

/* ---------- ファーストビュー ---------- */
.hero {
  display: grid;
  gap: 28px;
  padding: 16px 0 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; gap: 48px; padding: 40px 0 72px; }
}

.lead-problem {
  margin: 0 0 8px;
  color: var(--text-sub);
  font-size: 0.98rem;
}

/* 見出しは語の途中で折り返さない（日本語は文節で折り返す。対応していないブラウザでは通常の折り返し） */
h1, h2, h3, .final { text-wrap: balance; }
:lang(ja) :is(h1, h2, h3, .final, .section-lead) { word-break: auto-phrase; }

h1 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 6.2vw, 2.7rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.hero p.sub { margin: 0 0 20px; font-size: 1.05rem; color: var(--text-sub); }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.badges li {
  background: var(--badge);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* バッジの周りの余白 */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* Google Play のバッジ */
.play-badge { display: inline-block; line-height: 0; }
.play-badge img { display: block; width: auto; height: 56px; }

/* QR コード（PC の幅だけ） */
.qr { display: none; margin: 0; }
.qr img { display: block; width: 112px; height: 112px; border-radius: 8px; }
.qr figcaption { max-width: 10em; font-size: 0.85rem; color: var(--text-sub); }

@media (min-width: 900px) {
  .qr { display: flex; align-items: center; gap: 12px; }
}

.cta-note { font-size: 0.85rem; color: var(--text-sub); margin: 0; }

/* ---------- 端末の画面（枠は CSS で描く。Android のパンチホール） ---------- */
.phone {
  position: relative;
  width: min(300px, 78vw);
  margin: 0 auto;
  padding: 9px;
  border-radius: 38px;
  background: var(--frame);
  box-shadow: var(--shadow);
}

.phone img { border-radius: 30px; width: 100%; aspect-ratio: 9 / 20; object-fit: cover; }

.phone::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border-radius: 50%;
  background: #000;
}

.phone.small { width: min(230px, 62vw); padding: 7px; border-radius: 30px; }
.phone.small img { border-radius: 24px; }
.phone.small::after { top: 15px; width: 9px; height: 9px; margin-left: -4.5px; }

/* ---------- セクション ---------- */
section { padding: 56px 0; }

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

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 4.8vw, 2rem);
  line-height: 1.4;
  text-align: center;
}

.section-lead { text-align: center; color: var(--text-sub); margin: 0 auto 36px; max-width: 640px; }

/* できること */
.features { display: grid; gap: 28px; }

@media (min-width: 900px) {
  .features { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px 28px;
}

.card h3 { margin: 20px 0 8px; font-size: 1.2rem; line-height: 1.45; }

.card p { margin: 0 0 10px; }

.note { font-size: 0.88rem; color: var(--text-sub); }

.extras { margin: 12px 0 0; padding: 0; list-style: none; }

.extras li {
  margin: 0 0 8px;
  padding: 10px 12px;
  background: var(--surface-alt);
  border-radius: 12px;
  font-size: 0.93rem;
}

.extras strong { display: block; }

/* 写真を外に送らない */
.privacy {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

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

.privacy li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}

.privacy strong { display: block; margin-bottom: 4px; }

.center-note { text-align: center; margin: 24px auto 0; max-width: 720px; }

/* 使い方 */
.howto { display: grid; gap: 32px; align-items: center; }

@media (min-width: 900px) {
  .howto { grid-template-columns: 1fr 260px; gap: 56px; max-width: 900px; margin: 0 auto; }
}

.steps { counter-reset: step; margin: 0; padding: 0; list-style: none; }

.steps li {
  position: relative;
  padding: 0 0 20px 60px;
  min-height: 52px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.steps strong { display: block; font-size: 1.1rem; }

/* 料金 */
.table-wrap { overflow-x: auto; max-width: 820px; margin: 0 auto; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.95rem;
}

table { table-layout: fixed; }

th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }

/* 機能の名前の列を広く、無料・Pro の列を同じ幅に（スマホの幅で「無 / 料」のように 1 文字ずつ折り返さないように） */
th:first-child, td:first-child { text-align: left; width: 46%; }
th:not(:first-child), td:not(:first-child) { width: 27%; }

:lang(ja) :is(th, td) { word-break: auto-phrase; }

@media (min-width: 700px) {
  th, td { padding: 12px 16px; }
}

thead th { background: var(--primary-container); color: var(--on-primary-container); }

tbody tr:last-child td { border-bottom: none; }

.pro { font-weight: 700; }

/* よくある質問 */
.faq { max-width: 820px; margin: 0 auto; }

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 0 0 12px;
  padding: 0 18px;
}

summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style-position: outside;
}

details p { margin: 0 0 16px; }

/* フッター */
footer { padding: 56px 0 40px; text-align: center; }

.final { font-size: clamp(1.3rem, 4.4vw, 1.7rem); font-weight: 700; margin: 0 0 20px; }

.links { margin: 32px 0 12px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 0.92rem; }

.copyright { font-size: 0.85rem; color: var(--text-sub); margin: 0; }

.trademark { font-size: 0.78rem; color: var(--text-sub); margin: 8px 0 0; }

/* スマホの画面の下に固定するボタン（PC の幅では出さない） */
.sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  z-index: 10;
}


@media (min-width: 900px) {
  .sticky { display: none; }
}
