/* ==========================================================================
   AIツール診断 LP — static stylesheet
   Fonts: Shippori Mincho (400/700/800), Zen Kaku Gothic New (400/500/700/900),
          Space Mono (400/700) — only the weights actually used are loaded.
   Layout: fluid clamp() type/spacing + flex-wrap reflow — no fixed breakpoints,
   scales continuously from ~360px phones to wide desktop.
   ========================================================================== */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #070E1A;
  color: #EFE9DB;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: #D8AE63; text-decoration: none; }
a:hover { color: #EACB84; }
::selection { background: #D8AE63; color: #0E1A30; }
img { max-width: 100%; display: block; }

@keyframes sakiFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes cueMove {
  0% { transform: translateY(-6px); opacity: .2; }
  50% { opacity: 1; }
  100% { transform: translateY(6px); opacity: .2; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}

/* Page shell ------------------------------------------------------------ */
.page {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
  background: #0E1A30;
}

/* Shared bits ------------------------------------------------------------ */
.mono { font-family: 'Space Mono', monospace; }
.watermark {
  position: absolute;
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  font-size: clamp(130px, 14vw, 190px);
  top: 26px;
  right: clamp(14px, 3vw, 40px);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .22em;
  margin: 0 0 20px;
}
.eyebrow-rule { display: inline-block; width: 22px; height: 1px; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 19px 22px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .02em;
  border-radius: 14px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { color: inherit; }
.btn:active { transform: translateY(0); }
.btn-gold {
  max-width: 400px;
  background: linear-gradient(180deg, #EBC57E 0%, #D8AE63 100%);
  color: #12203A;
  box-shadow: 0 14px 34px -10px rgba(216, 174, 99, .55), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px -10px rgba(216, 174, 99, .68);
  background: linear-gradient(180deg, #F2CE88 0%, #E1B96E 100%);
}
.btn-navy {
  max-width: 400px;
  background: #12203A;
  color: #F4EFE4;
  font-size: 15.5px;
  padding: 18px 22px;
  box-shadow: 0 12px 28px -12px rgba(18, 32, 58, .6);
}
.btn-navy:hover { transform: translateY(-2px); background: #1A2C4A; }
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex: none;
}
.btn-gold .btn-icon { background: rgba(18, 32, 58, .14); color: #12203A; }
.btn-navy .btn-icon { background: #D8AE63; color: #12203A; }
.btn-fade { font-weight: 500; opacity: .72; }
.btn-full { max-width: none; }
.text-bold { font-weight: 700; }
.btn-sub {
  margin-top: 14px;
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .12em;
  color: #8996AC;
}
.btn-sub-warm { color: #9A8248; }

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 32px) clamp(24px, 6vw, 64px) clamp(56px, 8vw, 92px);
  background: radial-gradient(125% 78% at 50% -12%, #16294A 0%, #0E1A30 56%);
}
.hero-inner { max-width: 1040px; margin: 0 auto; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.brand { display: flex; align-items: center; gap: 10px; }
.avatar-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: #16233E;
  border: 1px solid rgba(216, 174, 99, .32);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.avatar-badge img { width: 160%; height: 160%; object-fit: contain; transform: translateY(16%); }
.brand-text { line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 13.5px; letter-spacing: .02em; color: #EFE9DB; }
.brand-tag { font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: .2em; color: #8996AC; }
.free-pill {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: .14em;
  color: #D8AE63;
  border: 1px solid rgba(216, 174, 99, .35);
  border-radius: 999px;
  padding: 5px 12px;
}

.hero-row { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 48px); align-items: center; }
.mascot-col { flex: 0 1 300px; max-width: 320px; display: flex; flex-direction: column; align-items: center; }
.mascot-wrap { position: relative; display: flex; justify-content: center; margin-bottom: 4px; width: 100%; }
.mascot-glow {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(230px, 26vw, 300px);
  height: clamp(230px, 26vw, 300px);
  background: radial-gradient(circle, rgba(216, 174, 99, .26) 0%, rgba(216, 174, 99, 0) 62%);
}
.mascot-img-hero {
  position: relative;
  width: clamp(170px, 20vw, 220px);
  height: auto;
  animation: sakiFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 26px 42px rgba(0, 0, 0, .5));
}
.mascot-caption { text-align: center; font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .18em; color: #8996AC; }

.text-col { flex: 1 1 360px; min-width: 280px; max-width: 560px; }
.hero-title {
  margin: 0 0 20px;
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: clamp(28px, calc(2.1vw + 16px), 40px);
  line-height: 1.6;
  letter-spacing: .01em;
  color: #F4EFE4;
  text-wrap: pretty;
}
.accent-gold { color: #EBC57E; }
.hero-body { margin: 0 0 30px; font-size: clamp(14.5px, calc(.3vw + 13.5px), 16px); line-height: 2.05; color: #C3C9D6; }
.hero-body strong {
  color: #F4EFE4;
  font-weight: 700;
  border-bottom: 2px solid rgba(216, 174, 99, .5);
  padding-bottom: 1px;
}

.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 7px; margin-top: clamp(32px, 5vw, 48px); }
.scroll-cue-label { font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: .26em; color: #6E7A90; }
.scroll-cue-line { width: 1px; height: 32px; background: linear-gradient(#D8AE63, transparent); animation: cueMove 2.2s ease-in-out infinite; }

/* Section 01 — Pain (paper) ---------------------------------------------- */
.section-pain { position: relative; background: #F3EDE1; color: #232B3A; padding: clamp(56px, 8vw, 96px) clamp(24px, 6vw, 64px) clamp(52px, 7vw, 84px); overflow: hidden; }
.section-pain .watermark { color: rgba(35, 43, 58, .05); }
.section-pain .eyebrow { color: #B18327; }
.section-pain .eyebrow-rule { background: #B18327; }
.section-inner { max-width: 760px; margin: 0 auto; position: relative; }
.section-inner.narrow { max-width: 700px; }
.pain-lead { margin: 0 0 4px; font-family: 'Shippori Mincho', serif; font-weight: 700; font-size: clamp(20px, calc(1.1vw + 16px), 27px); line-height: 1.85; color: #232B3A; text-wrap: pretty; }
.accent-ink { color: #A9761C; }

.stat-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 30px; }
.stat-card {
  flex: 1 1 250px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: #FBF7EE;
  border: 1px solid rgba(35, 43, 58, .09);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 3px 14px rgba(35, 43, 58, .05);
}
.stat-num { flex: none; font-weight: 900; font-size: clamp(42px, calc(2.4vw + 30px), 54px); line-height: .95; color: #B18327; letter-spacing: -.03em; }
.stat-num .unit { font-size: .55em; }
.stat-text { font-size: 13px; line-height: 1.7; color: #3D4453; }
.stat-text strong { font-weight: 700; color: #232B3A; }
.stat-sub { font-size: 11px; color: #7B8091; }
.loop-icon { flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 56px; color: #B18327; }
.loop-label { font-family: 'Space Mono', monospace; font-size: 8px; letter-spacing: .12em; color: #9A8248; }

.pain-close { margin: 0; font-family: 'Shippori Mincho', serif; font-weight: 700; font-size: clamp(19px, calc(1vw + 15px), 24px); line-height: 1.9; color: #232B3A; text-wrap: pretty; }
.underline-ink { border-bottom: 2px solid rgba(177, 131, 39, .45); }

/* Section 02 — Saki (navy) ------------------------------------------------ */
.section-saki { position: relative; background: #0E1A30; padding: clamp(56px, 8vw, 96px) clamp(24px, 6vw, 64px); overflow: hidden; border-top: 1px solid rgba(216, 174, 99, .1); }
.section-saki .watermark { color: rgba(216, 174, 99, .06); top: 30px; }
.section-saki .eyebrow { color: #D8AE63; }
.section-saki .eyebrow-rule { background: #D8AE63; }

.saki-intro { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 26px; }
.mascot-img-saki { width: clamp(84px, 9vw, 110px); height: auto; flex: none; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .45)); }
.saki-intro-text { padding-bottom: 4px; }
.saki-intro-text .eyebrow { margin: 0 0 10px; }
.saki-title { font-family: 'Shippori Mincho', serif; font-weight: 800; font-size: clamp(28px, calc(1.6vw + 20px), 38px); line-height: 1.2; color: #F4EFE4; }

.saki-body { margin: 0 0 6px; font-size: clamp(14.5px, calc(.3vw + 13.5px), 16px); line-height: 2.05; color: #C7CDD9; }
.saki-body strong, .saki-body-2 strong { color: #F4EFE4; font-weight: 700; }
.saki-body-2 { margin: 0 0 8px; font-size: clamp(14.5px, calc(.3vw + 13.5px), 16px); line-height: 2.05; color: #C7CDD9; }

.pedigree { margin: 20px 0 24px; }
.pedigree-label { font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: .16em; color: #8996AC; margin-bottom: 9px; }
.chip-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.chip { padding: 7px 15px; border-radius: 999px; border: 1px solid rgba(216, 174, 99, .28); font-family: 'Space Mono', monospace; font-size: 12px; color: #C3C9D6; }
.chip-arrow { color: #5C6884; font-size: 13px; }
.chip-current { padding: 7px 16px; border-radius: 999px; background: linear-gradient(180deg, #EBC57E, #D8AE63); font-family: 'Space Mono', monospace; font-weight: 700; font-size: 12px; color: #12203A; box-shadow: 0 6px 16px -6px rgba(216, 174, 99, .5); }

.pullquote { margin: 30px 0 0; padding: 26px 0 0; border-top: 1px solid rgba(216, 174, 99, .18); font-family: 'Shippori Mincho', serif; font-weight: 700; font-size: clamp(19px, calc(1vw + 15px), 25px); line-height: 1.9; color: #F4EFE4; text-wrap: pretty; }
.signature { margin-top: 18px; font-family: 'Shippori Mincho', serif; font-weight: 400; font-size: 15px; color: #8996AC; letter-spacing: .06em; }

/* Section 03 — Diagnosis (paper) ------------------------------------------ */
.section-diagnosis { position: relative; background: #F3EDE1; color: #232B3A; padding: clamp(56px, 8vw, 96px) clamp(24px, 6vw, 64px) clamp(52px, 7vw, 84px); overflow: hidden; }
.section-diagnosis .watermark { color: rgba(35, 43, 58, .05); }
.section-diagnosis .eyebrow { color: #B18327; }
.section-diagnosis .eyebrow-rule { background: #B18327; }
.diag-lead { margin: 0 0 6px; font-family: 'Shippori Mincho', serif; font-weight: 700; font-size: clamp(19px, calc(1vw + 15px), 24px); line-height: 1.85; color: #232B3A; text-wrap: pretty; }

.matrix { margin: 32px auto 22px; max-width: 460px; }
.matrix-label-top, .matrix-label-bottom { text-align: center; font-family: 'Space Mono', monospace; font-size: 9.5px; letter-spacing: .14em; color: #9A8248; }
.matrix-label-top { margin-bottom: 9px; }
.matrix-body { display: flex; gap: 11px; }
.matrix-axis-y { flex: none; width: 20px; display: flex; align-items: center; justify-content: center; }
.matrix-axis-y span { writing-mode: vertical-rl; font-family: 'Space Mono', monospace; font-size: 9.5px; letter-spacing: .18em; color: #9A8248; }
.matrix-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.matrix-cell { background: #FBF7EE; border: 1px solid rgba(35, 43, 58, .1); border-radius: 12px; padding: 16px 10px; text-align: center; min-height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.matrix-cell-name { font-weight: 700; font-size: 15.5px; color: #232B3A; line-height: 1.4; }
.matrix-row { display: flex; align-items: center; gap: 11px; margin-top: 9px; }
.matrix-row-spacer { flex: none; width: 20px; }
.matrix-label-bottom { flex: 1; }
.matrix-x-axis { flex: 1; display: flex; align-items: center; gap: 10px; font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .06em; color: #9A8248; }
.matrix-x-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(154, 130, 72, .35), rgba(154, 130, 72, .7)); }

.diag-sub { margin: 22px 0 26px; font-size: 14px; line-height: 2; color: #3D4453; }
.diag-sub strong { font-weight: 700; color: #232B3A; }

/* Teaser band -------------------------------------------------------------- */
.section-teaser { background: #EBE3D4; color: #232B3A; padding: clamp(36px, 5vw, 52px) clamp(24px, 6vw, 64px); border-top: 1px solid rgba(35, 43, 58, .12); }
.teaser-card { display: flex; gap: 16px; align-items: flex-start; border: 1px dashed rgba(35, 43, 58, .24); border-radius: 14px; padding: 22px; background: rgba(255, 255, 255, .42); }
.blueprint-icon { flex: none; width: 44px; height: 56px; border: 1.5px solid #B18327; border-radius: 5px; padding: 9px 7px; display: flex; flex-direction: column; gap: 5px; background: #FBF7EE; }
.blueprint-line { height: 2px; background: rgba(177, 131, 39, .55); border-radius: 2px; }
.badge-soon { display: inline-flex; align-items: center; font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: .14em; color: #8A6F2E; background: rgba(177, 131, 39, .14); border: 1px solid rgba(177, 131, 39, .35); border-radius: 999px; padding: 4px 11px; margin-bottom: 10px; }
.teaser-text { font-size: 13px; line-height: 1.8; color: #3D4453; }
.teaser-text strong { font-weight: 700; color: #232B3A; }
.teaser-note { color: #8A8065; }

/* Section 04 — Trust (navy) ------------------------------------------------ */
.section-trust { position: relative; background: #0E1A30; padding: clamp(56px, 8vw, 96px) clamp(24px, 6vw, 64px); overflow: hidden; border-top: 1px solid rgba(216, 174, 99, .1); }
.section-trust .watermark { color: rgba(216, 174, 99, .06); top: 30px; }
.section-trust .eyebrow { color: #D8AE63; }
.section-trust .eyebrow-rule { background: #D8AE63; }
.trust-heading { margin: 0 0 8px; font-family: 'Shippori Mincho', serif; font-weight: 800; font-size: clamp(23px, calc(1.2vw + 18px), 30px); line-height: 1.5; color: #F4EFE4; }

.principle { display: flex; gap: 16px; padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, .09); }
.principle-first { margin-top: 20px; }
.principle-num { flex: none; font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700; color: #D8AE63; padding-top: 3px; }
.principle-title { font-family: 'Shippori Mincho', serif; font-weight: 700; font-size: 18px; line-height: 1.6; color: #F4EFE4; margin-bottom: 8px; }
.principle-sub { font-size: 13.5px; line-height: 1.85; color: #A7AEBD; }

.compass-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 34px; }
.compass { position: relative; width: 94px; height: 94px; border: 1.5px solid rgba(216, 174, 99, .4); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.compass-v { position: absolute; width: 1px; height: 100%; background: rgba(216, 174, 99, .22); }
.compass-h { position: absolute; height: 1px; width: 100%; background: rgba(216, 174, 99, .22); }
.compass-needle { width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 34px solid #D8AE63; transform: translateY(-7px); }
.compass-n { position: absolute; top: 7px; font-family: 'Space Mono', monospace; font-size: 9px; color: #D8AE63; }
.compass-caption { font-family: 'Shippori Mincho', serif; font-size: 15px; color: #B7BECC; letter-spacing: .04em; }

/* Final CTA ----------------------------------------------------------------- */
.section-final { position: relative; background: radial-gradient(125% 82% at 50% 118%, #17294A 0%, #0A1424 58%); padding: clamp(56px, 8vw, 88px) clamp(24px, 6vw, 64px) clamp(64px, 9vw, 96px); overflow: hidden; text-align: center; border-top: 1px solid rgba(216, 174, 99, .12); }
.final-inner { max-width: 480px; margin: 0 auto; }
.final-mascot-wrap { position: relative; display: flex; justify-content: center; margin-bottom: 8px; }
.final-glow { position: absolute; top: 2%; left: 50%; transform: translateX(-50%); width: clamp(160px, 18vw, 220px); height: clamp(160px, 18vw, 220px); background: radial-gradient(circle, rgba(216, 174, 99, .22) 0%, rgba(216, 174, 99, 0) 62%); }
.mascot-img-final { position: relative; width: clamp(104px, 11vw, 140px); height: auto; animation: sakiFloat 6s ease-in-out infinite; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }
.final-title { margin: 0 0 28px; font-family: 'Shippori Mincho', serif; font-weight: 800; font-size: clamp(24px, calc(1.6vw + 18px), 32px); line-height: 1.65; color: #F4EFE4; text-wrap: pretty; }
.final-inner .btn-sub { text-align: center; }

/* Footer ---------------------------------------------------------------------- */
.footer { background: #070E1A; color: #7A8598; padding: clamp(34px, 5vw, 48px) clamp(24px, 6vw, 64px) clamp(40px, 6vw, 54px); text-align: center; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer-inner { max-width: 480px; margin: 0 auto; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 18px; }
.footer-avatar { width: 30px; height: 30px; }
.footer-name { font-weight: 700; font-size: 12.5px; color: #B7BECC; letter-spacing: .02em; }
.footer-name span { color: #6E7A90; font-weight: 400; }
.footer-disclaimer { margin: 0 auto 18px; font-size: 11px; line-height: 1.85; color: #5E6A7E; }
.footer-copy { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .1em; color: #4C586C; }

/* Sticky bottom CTA ------------------------------------------------------------ */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translate(-50%, 120%);
  opacity: 0;
  width: calc(100% - 28px);
  max-width: 480px;
  z-index: 50;
  padding: 10px 14px;
  background: rgba(9, 17, 29, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(216, 174, 99, .3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .4s ease;
}
.sticky-brand { display: flex; align-items: center; gap: 9px; flex: none; }
.sticky-avatar { width: 34px; height: 34px; }
.sticky-text { line-height: 1.25; }
.sticky-name { font-weight: 700; font-size: 12px; color: #EFE9DB; }
.sticky-sub { font-family: 'Space Mono', monospace; font-size: 8.5px; letter-spacing: .1em; color: #8996AC; }
.sticky-btn { flex: 1; padding: 13px 16px; font-size: 14.5px; border-radius: 11px; white-space: nowrap; box-shadow: 0 6px 16px -6px rgba(216, 174, 99, .6); width: auto; max-width: none; }
.sticky-btn .btn-icon { width: 20px; height: 20px; font-size: 12px; }
