/* SCR Manager LP のスタイル
   雰囲気: 黒に近い背景・大きく明るい見出し・細い枠線・ヒーローの淡い光（開発者向けツールのサイトを参考） */
:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --bg-2: #0f1114;
  --surface: #14171b;
  --surface-2: #1a1e23;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #eceef1;
  --muted: #9ba3ad;
  --faint: #838b96;
  --accent: #5eead4; /* ボタン・強調。暗い文字を載せる */
  --accent-2: #a5b4fc;
  --accent-ink: #04201c;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic Medium', 'Yu Gothic', YuGothic, Meiryo, 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.85;
  word-break: auto-phrase; /* 日本語を文節で折り返す（対応ブラウザのみ） */
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.4; text-wrap: balance; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.inner { max-width: 64rem; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 44rem; }
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-2); }
.section h2 { font-size: 1.6rem; font-weight: 700; }
.lead { margin-top: 16px; color: var(--muted); }
.body-text { margin-top: 16px; color: var(--muted); }
.small { margin-top: 16px; font-size: 0.85rem; color: var(--faint); }
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--line-strong); }
.card h3 { font-size: 1.1rem; }
.card h3 + p { margin-top: 10px; color: var(--muted); }
.list { margin-top: 12px; padding-left: 1.4em; }
.list li + li { margin-top: 6px; }

/* ヘッダー */
.header {
  position: fixed; inset: 0 0 auto; z-index: 10;
  background: rgba(10, 11, 13, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.logo { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 700; color: var(--text); text-decoration: none; }
.logo::before { content: ''; width: 22px; height: 22px; background: url('favicon.svg') center / contain no-repeat; }

/* 「使ってみたい」ボタン */
.interest {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 700; font-size: 1.05rem; padding: 12px 28px;
  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.3), 0 8px 32px -8px rgba(94, 234, 212, 0.55);
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.interest:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.5), 0 10px 40px -6px rgba(94, 234, 212, 0.7); }
.interest .when-on { display: none; }
.interest[aria-pressed="true"] {
  background: transparent; color: var(--muted); border-color: var(--line-strong);
  box-shadow: none; transform: none; cursor: default;
}
.interest[aria-pressed="true"] .when-off { display: none; }
.interest[aria-pressed="true"] .when-on { display: inline; }
.interest-sm { font-size: 0.85rem; padding: 6px 16px; box-shadow: none; white-space: nowrap; }
.interest-sm:hover { box-shadow: none; }
.interest-lg { font-size: 1.15rem; padding: 15px 40px; }
.cta-row { margin-top: 32px; display: flex; flex-direction: column; align-items: center; }
.cta-center { margin-top: 36px; display: flex; flex-direction: column; align-items: center; }
/* 押した後だけ出るお礼 */
.thanks { display: none; margin-top: 14px; max-width: 26rem; font-size: 0.9rem; color: var(--accent); }
.interest[aria-pressed="true"] + .thanks { display: block; }
.final .thanks { color: var(--accent); }

/* ヒーロー: 細かい格子と淡い光 */
.hero {
  position: relative; overflow: hidden;
  padding: 120px 0 72px; text-align: center;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(94, 234, 212, 0.16), transparent 70%),
    radial-gradient(40% 40% at 80% 20%, rgba(165, 180, 252, 0.12), transparent 70%),
    var(--bg);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero .inner { position: relative; max-width: 50rem; }
.eyebrow {
  display: inline-block; padding: 4px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(255, 255, 255, 0.03); font-size: 0.8rem; color: var(--muted);
}
.hero h1 {
  margin-top: 20px; font-size: 2rem; font-weight: 700; line-height: 1.3;
  background: linear-gradient(180deg, #ffffff 30%, #aab2bc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.reason { margin: 20px auto 0; max-width: 36rem; color: var(--muted); font-size: 1.02rem; }
.note { margin: 20px auto 0; max-width: 32rem; font-size: 0.85rem; color: var(--faint); }
.text-link { display: inline-block; margin-top: 14px; color: var(--muted); font-size: 0.95rem; text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.text-link:hover { color: var(--text); }
.text-link::after { content: ' →'; }

/* 紙で管理しようと考えている方へ・カードをなくしたとき・使い方 */
.narrow-text > * { max-width: 44rem; }
.grid2 { display: grid; gap: 16px; margin-top: 32px; }
.steps { display: grid; gap: 16px; margin-top: 32px; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 0.8rem; color: var(--accent);
}

/* 折りたたみ（FAQ・プライバシーポリシー） */
.details { border-bottom: 1px solid var(--line); }
.details summary { display: flex; align-items: center; gap: 16px; padding: 20px 4px; cursor: pointer; list-style: none; }
.details summary::-webkit-details-marker { display: none; }
.details summary::after {
  content: '+'; margin-left: auto; flex-shrink: 0; font-family: var(--mono); font-size: 1.2rem; line-height: 1; color: var(--faint);
  transition: transform 0.2s;
}
.details[open] summary::after { transform: rotate(45deg); }
.details summary:hover h3 { color: #fff; }
.details summary h3 { font-size: 1rem; font-weight: 600; color: var(--text); }
.details-body { padding: 0 4px 22px; color: var(--muted); }
.details-body p + p, .details-body .list + p { margin-top: 8px; }
#faq h2 + .details { margin-top: 24px; border-top: 1px solid var(--line); }

/* デモ動画 */
.video {
  position: relative; margin-top: 32px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(94, 234, 212, 0.25);
}
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; color: var(--faint); font-family: var(--mono); font-size: 0.9rem; }
.video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border: 0; background: rgba(0, 0, 0, 0.25); cursor: pointer; }
.video-play span { width: 68px; height: 68px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.video-play span::after { content: ''; margin-left: 5px; border-left: 20px solid var(--accent-ink); border-top: 13px solid transparent; border-bottom: 13px solid transparent; }

/* 動画のチャプター（スマホは縦並び、PC は横並び） */
.chapters { display: grid; gap: 10px; margin-top: 16px; }
.chapter {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600; text-align: left; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.chapter:hover { border-color: var(--line-strong); background: var(--surface-2); }
.chapter[aria-current="true"] { border-color: var(--accent); }
.chapter-label::before { content: '▶'; margin-right: 10px; font-size: 0.75em; color: var(--accent); }
.chapter-time { font-family: var(--mono); font-size: 0.85rem; font-weight: 400; color: var(--muted); }

/* note の記事（横並び。増えたら横にスクロール） */
.columns {
  display: flex; gap: 16px; margin: 32px 0 0; padding: 0 0 8px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory;
}
.columns li { flex: 0 0 min(320px, 85%); scroll-snap-align: start; }
.column-card {
  display: flex; flex-direction: column; gap: 10px; height: 100%;
  padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  color: var(--text); text-decoration: none; transition: border-color 0.2s, background 0.2s;
}
.column-card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.column-date { font-family: var(--mono); font-size: 0.8rem; color: var(--faint); }
.column-title { font-weight: 700; line-height: 1.5; }
.column-more { margin-top: auto; font-size: 0.85rem; color: var(--accent); }
.column-more::after { content: ' →'; }
#column .text-link { margin-top: 20px; }

/* 最後の CTA */
.final { padding: 32px 0 80px; text-align: center; }
.final .inner {
  width: calc(100% - 32px);
  padding-top: 56px; padding-bottom: 56px;
  border: 1px solid var(--line); border-radius: 20px;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(94, 234, 212, 0.14), transparent 70%),
    var(--surface);
}
.final h2 { font-size: 1.5rem; }
.final p { margin: 14px auto 0; max-width: 32rem; color: var(--muted); }

/* フッター */
.footer { padding: 40px 0 48px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.85rem; }
.footer a { color: var(--muted); }
.footer p + p { margin-top: 8px; }
.details-dark { margin-top: 20px; border-top: 1px solid var(--line); }
.details-dark summary { padding: 14px 0; color: var(--muted); font-weight: 600; }
.details-dark .details-body { padding: 0 0 20px; color: var(--faint); }
.details-dark a { word-break: break-all; }
.ph { margin-top: 16px !important; font-weight: 700; color: var(--muted); }
.copyright { margin-top: 28px !important; font-family: var(--mono); font-size: 0.8rem; }

/* PC */
@media (min-width: 768px) {
  body { font-size: 17px; }
  .inner { padding: 0 32px; }
  .section { padding: 104px 0; }
  .section h2 { font-size: 2.1rem; }
  .header-inner { height: 64px; }
  .interest-sm { font-size: 0.9rem; padding: 7px 18px; }
  .interest-lg { font-size: 1.25rem; }
  .hero { padding: 176px 0 120px; }
  .hero h1 { font-size: 3.4rem; line-height: 1.25; }
  .reason { font-size: 1.15rem; }
  .note { font-size: 0.9rem; }
  .grid2 { grid-template-columns: 1fr 1fr; }
  .chapters { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .final { padding: 40px 0 120px; }
  .final .inner { padding-top: 80px; padding-bottom: 80px; }
  .final h2 { font-size: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .interest, .card, .details summary::after { transition: none; }
}

/* 404 */
.notfound main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; text-align: center; }
.notfound h1 { font-size: 1.25rem; }
.notfound a.interest { text-decoration: none; }
