/* oshi-log 検証LP 共通CSS（外部フォント・画像なし） */
:root {
  --bg: #fffaf8;
  --surface: #ffffff;
  --surface-2: #f7eef1;
  --text: #1f1a1c;
  --muted: #574c52;
  --border: #e3d4da;
  --accent: #a8285a;
  --accent-text: #ffffff;
  --accent-hover: #8a1f49;
  --secondary-text: #a8285a;
  --notice-bg: #fff3e6;
  --notice-border: #e0b27a;
  --focus: #1d5fd1;
  --bar-bg: #e8dce1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17131a;
    --surface: #221c26;
    --surface-2: #2b2330;
    --text: #f4eff2;
    --muted: #cbbec6;
    --border: #3f3446;
    --accent: #f29ab9;
    --accent-text: #1d0c14;
    --accent-hover: #f7b8cf;
    --secondary-text: #f29ab9;
    --notice-bg: #2e2418;
    --notice-border: #8a6a3d;
    --focus: #8ab4ff;
    --bar-bg: #3f3446;
  }
}

*, *::before, *::after { 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, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

a { color: var(--secondary-text); }
a:focus-visible, .button:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 8px; top: -60px;
  background: var(--surface); color: var(--text);
  padding: 8px 12px; border: 2px solid var(--focus); border-radius: 8px;
  z-index: 10;
}
.skip:focus { top: 8px; }

.site-header, main, .site-footer {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.site-header { padding-top: 16px; }
.logo { margin: 0; font-weight: 700; letter-spacing: 0.02em; color: var(--muted); }

h1, h2, h3 { line-height: 1.4; margin: 0 0 12px; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.0625rem; }
p { margin: 0 0 12px; }

.small { font-size: 0.875rem; color: var(--muted); }

.hero { padding: 32px 0 24px; }
.lead { font-size: 1.0625rem; margin-bottom: 20px; }

.section { padding: 28px 0; border-top: 1px solid var(--border); }
.section:focus { outline: none; }

.feature, .qa {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}
.feature p, .qa p { margin: 0; }

/* ボタン：最小 48px の高さ。プランのボタンは全部同じ見た目 */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--accent);
  margin-bottom: 12px;
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button-secondary {
  background: transparent;
  color: var(--secondary-text);
}
.button-secondary:hover { background: var(--surface-2); border-color: var(--accent); }

/* 画面イメージ */
.mock { margin: 16px 0 0; }
.mock-screen {
  max-width: 340px;
  margin: 0 auto;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  font-size: 0.875rem;
  line-height: 1.6;
}
.mock-head, .mock-row, .mock-nav {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.mock-head {
  padding: 10px 14px;
  font-weight: 700;
  background: var(--surface-2);
}
.mock-block { padding: 10px 14px; border-top: 1px solid var(--border); }
.mock-title { margin: 0 0 4px; font-weight: 700; }
.mock-row span:last-child:not(:first-child) { text-align: right; white-space: nowrap; }
.mock-bar-row { align-items: center; margin-top: 4px; }
.mock-bar {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: var(--bar-bg);
  overflow: hidden;
}
.mock-bar > span { display: block; height: 100%; background: var(--accent); }
.mock-photo-row { justify-content: flex-start; align-items: center; }
.mock-photo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  font-size: 0.6875rem;
  color: var(--muted);
}
.mock-nav {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
}

/* プラン */
.notice {
  background: var(--notice-bg);
  border: 1px solid var(--notice-border);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.9375rem;
}
.notice p:last-child { margin-bottom: 0; }

.plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.plan-name { margin-bottom: 4px; }
.plan-price { font-size: 1.125rem; font-weight: 700; margin-bottom: 4px; }
.plan-desc { color: var(--muted); }
.plan .button { width: 100%; margin-bottom: 0; }

/* 押した後のページ */
.thanks { padding: 32px 0 24px; }
.actions { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.actions .button { width: 100%; margin-bottom: 0; }

/* 入口 */
.entry { padding: 48px 16px; text-align: center; color: var(--muted); }

/* フッター */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  padding-bottom: 40px;
  font-size: 0.875rem;
  color: var(--muted);
}
.site-footer h2 { font-size: 1rem; color: var(--text); margin-bottom: 6px; }
.site-footer section { margin-bottom: 16px; }
.copyright { margin-top: 8px; }

@media (min-width: 640px) {
  h1 { font-size: 2.125rem; }
  .plan-list { grid-template-columns: repeat(3, 1fr); }
  .plan { display: flex; flex-direction: column; }
  .plan .button { margin-top: auto; }
  .actions { flex-direction: row; }
  .actions .button { width: auto; flex: 1; }
}
