/* ============================================
   WhatHides — lp-main.css
   メインLP専用スタイル
   ============================================ */

:root {
  --c-ink:          #1a1a1a;
  --c-ink-muted:    #6b6b6b;
  --c-ink-faint:    #b0b0b0;
  --c-paper:        #fafaf8;
  --c-surface:      #f3f3ef;
  --c-surface-deep: #eaeae4;
  --c-accent:       #2a52a0;
  --c-accent-bg:    #e8eef9;
  --c-accent2:      #c84b2f;
  --c-green:        #1a7a4a;
  --c-green-bg:     #e6f4ec;
  --c-line:         rgba(26,26,26,0.1);
  --c-line-md:      rgba(26,26,26,0.2);
  --r-sm:           6px;
  --r-md:           12px;
  --f-sans:         'Noto Sans JP', sans-serif;
  --f-serif:        'Noto Serif JP', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-sans);
  background: var(--c-paper);
  color: var(--c-ink);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
  padding: 0 2rem;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-family: var(--f-serif); font-size: 15px; font-weight: 700; letter-spacing: 0.01em; color: var(--c-ink); text-decoration: none; }
.nav-logo span { color: var(--c-accent); }
.nav-cta {
  background: var(--c-accent); color: #fff;
  padding: 7px 18px; border-radius: 30px;
  font-size: 13px; font-weight: 500; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: #1e3f80; transform: translateY(-1px); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 100px 2rem 4rem;
  background: var(--c-paper);
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.04;
  background-image: linear-gradient(var(--c-ink) 1px, transparent 1px),
                    linear-gradient(90deg, var(--c-ink) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-badge {
  display: inline-block;
  background: var(--c-accent-bg); color: var(--c-accent);
  font-size: 12px; font-weight: 500; letter-spacing: 0.06em;
  padding: 5px 14px; border-radius: 30px;
  border: 1px solid rgba(42,82,160,0.2);
  margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp 0.6s 0.1s ease forwards;
}
.hero-title {
  font-family: var(--f-serif); font-size: clamp(32px, 5.5vw, 60px);
  line-height: 1.25; letter-spacing: 0; color: var(--c-ink);
  margin-bottom: 1rem;
  opacity: 0; animation: fadeUp 0.7s 0.25s ease forwards;
}
.hero-title em { font-style: normal; color: var(--c-accent); border-bottom: 3px solid var(--c-accent); padding-bottom: 2px; }
.hero-sub {
  font-size: clamp(15px, 2vw, 18px); color: var(--c-ink-muted);
  max-width: 560px; margin: 0 auto 2.5rem;
  font-weight: 300; line-height: 1.8;
  opacity: 0; animation: fadeUp 0.7s 0.4s ease forwards;
}
.hero-btns {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.7s 0.55s ease forwards;
}
.btn-primary {
  background: var(--c-accent); color: #fff;
  padding: 14px 32px; border-radius: 40px;
  font-size: 15px; font-weight: 500; text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(42,82,160,0.25);
}
.btn-primary:hover { background: #1e3f80; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(42,82,160,0.3); }
.btn-secondary {
  background: transparent; color: var(--c-ink);
  padding: 14px 32px; border-radius: 40px;
  font-size: 15px; font-weight: 400; text-decoration: none;
  border: 1px solid var(--c-line-md);
  transition: background 0.2s, transform 0.15s;
}
.btn-secondary:hover { background: var(--c-surface); transform: translateY(-2px); }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  opacity: 0; animation: fadeUp 0.6s 1s ease forwards;
  font-size: 12px; color: var(--c-ink-faint); letter-spacing: 0.08em;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.hero-scroll-line {
  width: 1px; height: 36px; background: var(--c-ink-faint);
  animation: scrollLine 1.8s 1.5s ease infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── SECTION BASE ── */
section { padding: 6rem 2rem; }
.container { max-width: 900px; margin: 0 auto; }
.section-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em;
  color: var(--c-accent); text-transform: uppercase; margin-bottom: 1rem;
}
.section-title {
  font-family: var(--f-serif); font-size: clamp(24px, 3.5vw, 38px);
  line-height: 1.3; letter-spacing: 0; color: var(--c-ink); margin-bottom: 1rem;
}
.section-sub {
  font-size: 16px; color: var(--c-ink-muted); max-width: 560px;
  font-weight: 300; line-height: 1.8; margin-bottom: 3rem;
}
hr.divider { border: none; border-top: 1px solid var(--c-line); margin: 0; }

/* ── PAIN ── */
#pain { background: var(--c-paper); }
.store-callout {
  margin-top: 2rem;
  background: var(--c-accent-bg);
  border: 1px solid rgba(42,82,160,0.2);
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; flex-wrap: wrap;
}
.store-callout__text {
  font-size: 14px; color: var(--c-ink); line-height: 1.65; flex: 1;
}
.store-callout__text strong {
  display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  color: var(--c-accent); text-transform: uppercase; margin-bottom: 4px;
}
.pain-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px; background: var(--c-line); border: 1px solid var(--c-line);
  border-radius: var(--r-md); overflow: hidden;
}
.pain-item {
  background: var(--c-paper); padding: 1.5rem;
  display: flex; align-items: flex-start; gap: 12px;
}
.pain-check {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--c-accent-bg); border: 1.5px solid var(--c-accent);
  flex-shrink: 0; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
}
.pain-check::after {
  content: ''; display: block;
  width: 5px; height: 9px;
  border-right: 1.5px solid var(--c-accent);
  border-bottom: 1.5px solid var(--c-accent);
  transform: rotate(45deg) translate(-1px,-1px);
}
.pain-text { font-size: 14px; color: var(--c-ink); line-height: 1.65; }

/* ── WHAT ── */
#what { background: var(--c-surface); }
.what-cards {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.what-card {
  background: var(--c-paper); border: 1px solid var(--c-line);
  border-radius: var(--r-md); padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.what-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.07); }
.what-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--c-accent-bg); margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.what-icon svg { width: 20px; height: 20px; }
.what-card-title { font-size: 14px; font-weight: 500; color: var(--c-ink); margin-bottom: 6px; }
.what-card-body { font-size: 13px; color: var(--c-ink-muted); line-height: 1.65; }

/* ── DEMO ── */
#demo { background: var(--c-paper); }
.demo-tabs {
  display: flex; gap: 4px;
  background: var(--c-surface); border-radius: 10px; padding: 4px;
  margin-bottom: 2rem; width: fit-content;
}
.demo-tab {
  padding: 8px 20px; border-radius: 8px; font-size: 13px; font-weight: 500;
  cursor: pointer; border: none; background: transparent; color: var(--c-ink-muted);
  transition: background 0.2s, color 0.2s;
}
.demo-tab.active { background: var(--c-paper); color: var(--c-accent); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.demo-panel { display: none; }
.demo-panel.active { display: block; }
.demo-frame {
  border: 1px solid var(--c-line); border-radius: var(--r-md);
  background: var(--c-paper); padding: 1.5rem; overflow: hidden;
}

/* ── COURSE ── */
#course { background: var(--c-surface); }
.course-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.course-box {
  background: var(--c-paper); border: 1px solid var(--c-line);
  border-radius: var(--r-md); padding: 1.75rem;
}
.course-box.free { border-color: var(--c-green); border-width: 2px; }
.course-box-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 500; margin-bottom: 1rem;
}
.badge-free { background: var(--c-green-bg); color: var(--c-green); }
.badge-paid { background: var(--c-accent-bg); color: var(--c-accent); }
.course-box-title { font-size: 16px; font-weight: 500; margin-bottom: 0.75rem; }
.course-list { list-style: none; }
.course-list li {
  font-size: 13px; color: var(--c-ink-muted); padding: 5px 0;
  padding-left: 16px; position: relative; line-height: 1.55;
}
.course-list li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--c-line-md);
}
.info-table { width: 100%; border-collapse: collapse; margin-top: 2rem; }
.info-table tr { border-bottom: 1px solid var(--c-line); }
.info-table td { padding: 12px 0; font-size: 14px; vertical-align: top; }
.info-table td:first-child { color: var(--c-ink-muted); width: 80px; font-size: 13px; }

/* ── PROFILE ── */
#profile { background: var(--c-paper); }
.profile-card {
  display: flex; gap: 2.5rem; align-items: flex-start;
  background: var(--c-surface); border-radius: var(--r-md);
  padding: 2.5rem; border: 1px solid var(--c-line);
}
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--c-accent); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-serif); font-size: 28px; color: #fff;
}
.profile-name { font-size: 20px; font-weight: 500; margin-bottom: 4px; }
.profile-role { font-size: 13px; color: var(--c-ink-muted); margin-bottom: 1rem; }
.profile-bio { font-size: 14px; color: var(--c-ink-muted); line-height: 1.8; margin-bottom: 1.25rem; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-badge {
  padding: 4px 12px; border-radius: 20px;
  font-size: 12px; background: var(--c-paper); border: 1px solid var(--c-line);
  color: var(--c-ink-muted);
}

/* ── CTA ── */
#cta {
  background: var(--c-ink); color: #fff;
  text-align: center; padding: 7rem 2rem;
}
#cta .section-label { color: rgba(255,255,255,0.4); }
#cta .section-title { color: #fff; margin-bottom: 1rem; }
#cta .section-sub { color: rgba(255,255,255,0.6); margin: 0 auto 2.5rem; }
.cta-note { font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 1rem; }
.btn-white {
  background: #fff; color: var(--c-ink);
  padding: 14px 36px; border-radius: 40px;
  font-size: 15px; font-weight: 500; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  display: inline-block;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }

/* ── FOOTER ── */
footer {
  background: var(--c-ink); border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center; padding: 2rem;
  font-size: 12px; color: rgba(255,255,255,0.3);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media(max-width:640px){
  nav { padding: 0 1rem; }
  section { padding: 4rem 1.25rem; }
  .what-cards { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr; }
  .profile-card { flex-direction: column; gap: 1.5rem; }
  .demo-tabs { width: 100%; }
  .demo-tab { flex: 1; text-align: center; }
}

/* ── DEMO STYLES ── */
.d-wrap { font-family: var(--f-sans); }
.d-stage-bar { display:flex; align-items:center; justify-content:center; gap:8px; margin-bottom:1.5rem; flex-wrap:wrap; }
.d-dot { width:8px; height:8px; border-radius:50%; background:var(--c-surface-deep); transition:background 0.4s; }
.d-dot.on { background:var(--c-accent); }
.d-lbl { font-size:12px; color:var(--c-ink-muted); transition:color 0.4s; }
.d-lbl.on { color:var(--c-accent); font-weight:500; }
.d-sep { font-size:12px; color:var(--c-line-md); }
.d-scene { display:none; }
.d-scene.vis { display:block; }
.d-panel { background:var(--c-surface); border-radius:var(--r-sm); padding:1rem 1.25rem; border:1px solid var(--c-line); }
.d-ptitle { font-size:11px; font-weight:500; color:var(--c-ink-muted); letter-spacing:0.06em; margin-bottom:10px; }
.d-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:12px; }
@media(max-width:540px){ .d-row { grid-template-columns:1fr; } }
.wb { background:#f8f7f2; border:1px solid var(--c-surface-deep); border-radius:var(--r-sm); padding:10px; font-family:monospace; min-height:140px; }
.wb-line { font-size:13px; color:var(--c-ink); line-height:1.8; opacity:0; transform:translateX(-4px); transition:opacity 0.4s,transform 0.4s; }
.wb-line.s { opacity:1; transform:none; }
.wb-sc { font-size:12px; color:var(--c-ink-faint); font-style:italic; }
.up-area { border:1.5px dashed var(--c-line-md); border-radius:var(--r-sm); display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:140px; gap:8px; }
.up-icon { width:32px; height:32px; }
.up-txt { font-size:13px; color:var(--c-ink-muted); }
.up-prog { width:80%; height:4px; background:var(--c-surface-deep); border-radius:2px; overflow:hidden; margin-top:6px; display:none; }
.up-bar { height:100%; width:0%; background:var(--c-accent); border-radius:2px; transition:width 0.8s ease; }
.d-chat { display:flex; flex-direction:column; gap:9px; }
.d-msg { max-width:88%; padding:8px 12px; border-radius:10px; font-size:13px; line-height:1.6; opacity:0; transform:translateY(5px); transition:opacity 0.4s,transform 0.4s; }
.d-msg.s { opacity:1; transform:none; }
.d-msg.u { align-self:flex-end; background:var(--c-accent-bg); color:#1e3f80; border-radius:10px 10px 2px 10px; }
.d-msg.a { align-self:flex-start; background:#fff; border:1px solid var(--c-line); color:var(--c-ink); border-radius:10px 10px 10px 2px; }
.d-typing { align-self:flex-start; background:#fff; border:1px solid var(--c-line); border-radius:10px 10px 10px 2px; padding:9px 12px; opacity:0; transition:opacity 0.3s; }
.d-typing.s { opacity:1; }
.d-dots { display:flex; gap:4px; }
.d-dot2 { width:6px; height:6px; border-radius:50%; background:#bbb; animation:dblink 1.2s infinite; }
.d-dot2:nth-child(2){animation-delay:0.2s;}.d-dot2:nth-child(3){animation-delay:0.4s;}
@keyframes dblink{0%,80%,100%{opacity:0.3}40%{opacity:1}}
.exc-table { width:100%; border-collapse:collapse; font-size:13px; }
.exc-table th { background:var(--c-green-bg); color:var(--c-green); font-weight:500; padding:5px 10px; border:1px solid rgba(26,122,74,0.15); text-align:left; }
.exc-table td { padding:5px 10px; border:1px solid var(--c-line); color:var(--c-ink); }
.exc-table tr:nth-child(even) td { background:var(--c-surface); }
.exc-row { opacity:0; transform:translateY(4px); transition:opacity 0.35s,transform 0.35s; }
.exc-row.s { opacity:1; transform:none; }
.think-box { background:#fff; border:1px solid var(--c-line); border-radius:var(--r-sm); padding:1rem; margin-bottom:12px; }
.think-ttl { font-size:11px; font-weight:500; color:#534AB7; letter-spacing:0.06em; margin-bottom:10px; }
.think-item { display:flex; align-items:flex-start; gap:8px; margin-bottom:7px; opacity:0; transform:translateX(-4px); transition:opacity 0.4s,transform 0.4s; }
.think-item.s { opacity:1; transform:none; }
.t-bul { width:6px; height:6px; border-radius:50%; background:#AFA9EC; margin-top:6px; flex-shrink:0; }
.t-txt { font-size:13px; color:var(--c-ink-muted); line-height:1.55; }
.slide-stack { display:flex; flex-direction:column; gap:10px; }
.slide { background:#fff; border:1px solid var(--c-line); border-radius:var(--r-sm); overflow:hidden; opacity:0; transform:translateY(8px); transition:opacity 0.45s,transform 0.45s; }
.slide.s { opacity:1; transform:none; }
.slide-hdr { padding:7px 12px; font-size:11px; font-weight:500; letter-spacing:0.05em; }
.sh-p { background:#EEEDFE; color:#3C3489; }
.sh-t { background:var(--c-green-bg); color:var(--c-green); }
.sh-c { background:#FAECE7; color:#712B13; }
.sh-b { background:var(--c-accent-bg); color:var(--c-accent); }
.slide-body { padding:9px 12px; }
.slide-ttl { font-size:14px; font-weight:500; color:var(--c-ink); margin-bottom:5px; }
.slide-pts { list-style:none; }
.slide-pts li { font-size:12px; color:var(--c-ink-muted); padding:2px 0 2px 12px; position:relative; }
.slide-pts li::before { content:''; position:absolute; left:0; top:9px; width:4px; height:4px; border-radius:50%; background:var(--c-line-md); }
.d-result { text-align:center; padding:1.5rem 0; }
.t-row { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:6px; margin-bottom:1.25rem; }
.t-badge { display:inline-flex; align-items:center; padding:5px 14px; border-radius:20px; font-size:12px; font-weight:500; }
.t-bef { background:#FCEBEB; color:#A32D2D; }
.t-aft { background:var(--c-green-bg); color:var(--c-green); }
.t-arr { font-size:14px; color:var(--c-ink-muted); }
.d-note { font-size:13px; color:var(--c-ink-muted); line-height:1.8; }
.d-tag2 { display:inline-block; margin-top:1rem; padding:5px 14px; background:var(--c-accent-bg); color:var(--c-accent); border-radius:20px; font-size:12px; font-weight:500; }
.step-note { font-size:12px; color:var(--c-ink-muted); text-align:center; margin-top:0.75rem; min-height:18px; }
.d-btns { display:flex; gap:8px; justify-content:center; margin-top:1.5rem; }
.d-btn { padding:8px 20px; font-size:13px; border-radius:8px; border:1px solid var(--c-line-md); background:#fff; color:var(--c-ink); cursor:pointer; transition:background 0.15s; }
.d-btn:disabled { opacity:0.35; cursor:default; }
.d-btn.pri { background:var(--c-accent); color:#fff; border-color:var(--c-accent); }
.d-btn.rep { background:var(--c-green-bg); color:var(--c-green); border-color:rgba(26,122,74,0.25); }
