:root {
  --ink: #18342d;
  --muted: #67746f;
  --paper: #f6f2e9;
  --card: #fffdf8;
  --line: #ded8ca;
  --orange: #e95f38;
  --orange-dark: #c74424;
  --mint: #c9e56e;
  --green: #234e42;
  --shadow: 0 18px 60px rgba(31, 49, 42, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; padding-bottom: 108px; color: var(--ink); background: var(--paper); font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.grain { position: fixed; inset: 0; pointer-events: none; opacity: .16; background-image: radial-gradient(rgba(24,52,45,.5) .55px, transparent .55px); background-size: 7px 7px; z-index: -1; }
.site-header { width: min(1160px, calc(100% - 36px)); margin: 0 auto; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 900; letter-spacing: -.02em; }
.brand small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .08em; font-weight: 500; margin-top: 2px; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--mint); font-family: Georgia, serif; font-size: 20px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.text-button { border: 0; background: transparent; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; padding: 9px 11px; cursor: pointer; }
.landing { width: min(1160px, calc(100% - 36px)); margin: 20px auto 72px; }
.hero { min-height: 650px; border: 1px solid var(--line); border-radius: 34px; background: var(--card); display: grid; grid-template-columns: 1.12fr .88fr; overflow: hidden; box-shadow: var(--shadow); }
.hero-copy { padding: clamp(42px, 6vw, 84px); display: flex; flex-direction: column; justify-content: center; }
.eyebrow { margin: 0 0 16px; font-size: 12px; font-weight: 900; letter-spacing: .16em; color: var(--orange); text-transform: uppercase; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: .98; letter-spacing: -.065em; margin: 0; max-width: 760px; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-lead { max-width: 620px; font-size: clamp(16px, 2vw, 21px); line-height: 1.75; color: #4e5f59; margin: 28px 0; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.primary { border: 0; border-radius: 999px; background: var(--orange); color: white; padding: 15px 25px; font-weight: 900; cursor: pointer; box-shadow: 0 9px 24px rgba(233,95,56,.25); transition: .2s ease; }
.primary:hover { transform: translateY(-2px); background: var(--orange-dark); }
.primary.full { width: 100%; border-radius: 12px; }
.hero-meta { color: var(--muted); font-size: 13px; line-height: 1.6; }
.hero-visual { position: relative; padding: 54px; background: var(--green); color: white; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-visual::before { content: ""; width: 420px; height: 420px; border-radius: 50%; position: absolute; background: var(--mint); right: -100px; top: -110px; opacity: .92; }
.route-card { width: min(390px, 100%); position: relative; z-index: 1; transform: rotate(2deg); background: #fffaf0; color: var(--ink); border-radius: 24px; padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.24); }
.route-card .number { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--mint); font-family: Georgia, serif; font-size: 22px; }
.route-card h3 { font-size: 28px; margin: 20px 0 8px; }
.route-card p { color: var(--muted); line-height: 1.65; }
.route-line { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); font-weight: 800; }
.route-line span { color: var(--orange); }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.trust-row article { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: rgba(255,253,248,.68); }
.trust-row b { display: block; margin-bottom: 5px; }
.trust-row span { color: var(--muted); font-size: 13px; }
.test-shell { width: min(820px, calc(100% - 28px)); margin: 16px auto 70px; }
.progress-meta { display: flex; justify-content: space-between; margin: 15px 2px 10px; color: var(--muted); font-size: 12px; font-weight: 700; }
.progress-track { height: 7px; background: #dedbd1; border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: inherit; background: var(--orange); transition: width .3s ease; }
.question-card, .report-card, .history-card { margin-top: 24px; border: 1px solid var(--line); border-radius: 28px; background: var(--card); box-shadow: var(--shadow); padding: clamp(26px, 5vw, 54px); }
.stage-label { display: inline-block; border-radius: 99px; padding: 7px 12px; background: #edf2d6; color: #41531a; font-size: 12px; font-weight: 900; }
.question-card h1 { margin: 22px 0 10px; font-size: clamp(25px, 4vw, 38px); line-height: 1.25; letter-spacing: -.03em; }
.question-tip { color: var(--muted); line-height: 1.65; margin: 0 0 24px; }
.intake-card h1 { max-width: 620px; }
.intake-form { display: grid; gap: 18px; }
.intake-form label { display: grid; gap: 7px; }
.intake-form label > span { font-size: 15px; font-weight: 900; }
.intake-form label > span b { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 7px; border-radius: 50%; background: var(--ink); color: var(--mint); font: 800 11px Georgia, serif; }
.intake-form label > small { color: var(--muted); line-height: 1.55; }
.intake-form textarea { width: 100%; resize: vertical; min-height: 118px; border: 1.5px solid var(--line); border-radius: 15px; background: white; padding: 15px 16px; color: var(--ink); line-height: 1.65; outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
.intake-form textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(233,95,56,.1); }
.intake-note { border-radius: 13px; background: #f1f3e6; color: #536142; padding: 13px 15px; font-size: 12px; line-height: 1.6; }
.options { display: grid; gap: 11px; }
.option { width: 100%; border: 1.5px solid var(--line); border-radius: 15px; padding: 16px 18px; background: white; text-align: left; cursor: pointer; display: flex; align-items: flex-start; gap: 13px; line-height: 1.55; transition: .16s ease; }
.option:hover { border-color: #b7b09f; transform: translateY(-1px); }
.option.selected { border-color: var(--orange); background: #fff2ec; box-shadow: inset 0 0 0 1px var(--orange); }
.option-key { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font: 700 12px Georgia, serif; }
.option.selected .option-key { background: var(--orange); border-color: var(--orange); color: white; }
.test-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.secondary { border: 1px solid var(--line); border-radius: 999px; background: transparent; padding: 13px 22px; font-weight: 800; cursor: pointer; }
.secondary:disabled { opacity: .35; cursor: not-allowed; }
.motivation-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.motivation-grid button { border: 1px solid var(--line); border-radius: 99px; background: white; padding: 11px 15px; cursor: pointer; }
.motivation-grid button.selected { border-color: var(--orange); color: var(--orange); background: #fff2ec; }
.report-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.report-head h1 { margin: 8px 0; font-size: clamp(34px, 6vw, 62px); letter-spacing: -.055em; }
.report-head p { color: var(--muted); line-height: 1.75; max-width: 620px; }
.score-orbit { width: 130px; height: 130px; border-radius: 50%; background: conic-gradient(var(--orange) 0 72%, var(--mint) 72% 100%); padding: 8px; transform: rotate(8deg); }
.score-orbit div { height: 100%; border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--card); font-weight: 900; transform: rotate(-8deg); }
.score-orbit small { display: block; color: var(--muted); font-weight: 500; }
.section-title { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 36px 0 14px; color: var(--muted); }
.chips { display: flex; gap: 9px; flex-wrap: wrap; }
.chip { background: #edf2d6; color: #3e5018; border-radius: 99px; padding: 10px 14px; font-size: 13px; font-weight: 800; }
.warning { border-left: 3px solid var(--orange); padding: 2px 0 2px 15px; color: #60564e; line-height: 1.7; margin: 12px 0; }
.paywall { margin-top: 34px; border-radius: 22px; background: var(--green); color: white; padding: clamp(26px, 4vw, 40px); position: relative; overflow: hidden; }
.paywall::after { content: "¥"; position: absolute; right: -5px; top: -42px; font: 180px Georgia, serif; opacity: .08; }
.paywall h2 { font-size: clamp(24px, 4vw, 35px); margin: 8px 0; }
.paywall p { color: #d9e4df; line-height: 1.7; max-width: 570px; }
.paywall .primary { background: var(--mint); color: var(--ink); position: relative; z-index: 1; }
.track-list { display: grid; gap: 14px; }
.track-card { border: 1px solid var(--line); border-radius: 19px; background: white; padding: 22px; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; }
.rank { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-weight: 900; }
.track-card h3 { margin: 0 0 5px; }
.track-card p { margin: 5px 0; color: var(--muted); line-height: 1.65; font-size: 14px; }
.match { color: var(--orange); font-weight: 900; white-space: nowrap; }
.action-box { background: #f1f3e6; border-radius: 15px; padding: 13px 15px; margin-top: 12px; color: #38442c; font-size: 13px; }
.report-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.history-list { display: grid; gap: 10px; margin-top: 22px; }
.history-item { width: 100%; border: 1px solid var(--line); border-radius: 15px; background: white; padding: 17px; text-align: left; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.history-item b, .history-item span { display: block; }
.history-item span, .history-item time { color: var(--muted); font-size: 12px; margin-top: 4px; }
.account-hero { border-radius: 22px; background: var(--green); color: white; padding: 28px; display: grid; grid-template-columns: auto 1fr; gap: 17px; align-items: center; overflow: hidden; position: relative; }
.account-hero::after { content: "¥"; position: absolute; right: -8px; top: -48px; font: 170px Georgia, serif; color: var(--mint); opacity: .09; }
.account-avatar { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--ink); font: 900 25px Georgia, serif; position: relative; z-index: 1; }
.account-hero h2 { margin: 0 0 5px; font-size: 24px; position: relative; z-index: 1; }
.account-hero p { margin: 0; color: #d9e4df; font-size: 13px; position: relative; z-index: 1; }
.account-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; margin-top: 18px; }
.account-stat { border: 1px solid var(--line); border-radius: 16px; background: white; padding: 18px; }
.account-stat b { display: block; font-size: 23px; margin-bottom: 4px; }
.account-stat span { color: var(--muted); font-size: 12px; }
.bottom-nav { position: fixed; left: 50%; bottom: 18px; z-index: 20; width: min(560px, calc(100% - 28px)); min-height: 72px; transform: translateX(-50%); display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 7px; border: 1px solid rgba(222,216,202,.9); border-radius: 24px; background: rgba(255,253,248,.94); box-shadow: 0 16px 46px rgba(21,45,38,.2); backdrop-filter: blur(18px); }
.bottom-nav-item { min-width: 0; border: 0; border-radius: 17px; background: transparent; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 4px 7px; cursor: pointer; font-size: 11px; font-weight: 800; transition: color .18s ease, background .18s ease, transform .18s ease; }
.bottom-nav-item:hover { color: var(--ink); background: #f1eee5; }
.bottom-nav-item.active { color: var(--orange); background: #fff0e9; }
.bottom-nav-icon { height: 24px; display: grid; place-items: center; font: 900 22px/1 Georgia, serif; }
.bottom-nav-start .bottom-nav-icon { width: 34px; height: 28px; border-radius: 12px; background: var(--ink); color: var(--mint); font-size: 16px; box-shadow: 0 5px 13px rgba(24,52,45,.2); }
.bottom-nav-start.active .bottom-nav-icon { background: var(--orange); color: white; }
.modal-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 18px; background: rgba(12,25,21,.64); backdrop-filter: blur(7px); }
.hidden { display: none !important; }
.auth-card { width: min(440px, 100%); border-radius: 24px; background: var(--card); padding: 30px; position: relative; box-shadow: 0 30px 100px rgba(0,0,0,.3); }
.auth-card h2 { margin: 4px 0 8px; font-size: 28px; }
.muted { color: var(--muted); line-height: 1.6; }
.modal-close { position: absolute; right: 16px; top: 13px; border: 0; background: transparent; font-size: 28px; cursor: pointer; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; background: #ebe7dc; border-radius: 12px; padding: 4px; margin: 23px 0 16px; }
.auth-tabs button { border: 0; border-radius: 9px; padding: 9px; background: transparent; cursor: pointer; font-weight: 800; }
.auth-tabs button.active { background: white; box-shadow: 0 2px 9px rgba(0,0,0,.08); }
.auth-form { display: grid; gap: 13px; }
.auth-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 800; }
.auth-form input { width: 100%; border: 1px solid var(--line); border-radius: 11px; background: white; padding: 12px 13px; outline: none; }
.auth-form input:focus { border-color: var(--orange); }
.inline-field { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.inline-field button { border: 0; border-radius: 10px; background: var(--ink); color: white; padding: 0 13px; cursor: pointer; font-size: 12px; }
.form-message { min-height: 20px; color: var(--orange-dark); font-size: 12px; margin-bottom: 0; }
.toast { position: fixed; left: 50%; bottom: 104px; z-index: 50; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: white; border-radius: 99px; padding: 11px 17px; font-size: 13px; transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.loading { width: min(500px, calc(100% - 32px)); margin: 20vh auto; text-align: center; }
.loading-mark { width: 52px; height: 52px; border: 5px solid #d9d4c8; border-top-color: var(--orange); border-radius: 50%; margin: 0 auto 18px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  body { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .site-header { min-height: 66px; width: calc(100% - 28px); }
  .header-actions .text-button:last-child { display: none; }
  .landing { width: calc(100% - 20px); margin-top: 8px; }
  .hero { min-height: auto; grid-template-columns: 1fr; border-radius: 25px; }
  .hero-copy { padding: 40px 25px 34px; }
  .hero h1 { font-size: 47px; }
  .hero-visual { min-height: 400px; padding: 35px 24px; }
  .trust-row { grid-template-columns: 1fr; }
  .question-card, .report-card, .history-card { border-radius: 22px; padding: 25px 20px; }
  .report-head { grid-template-columns: 1fr; }
  .score-orbit { width: 105px; height: 105px; }
  .track-card { grid-template-columns: auto 1fr; }
  .match { grid-column: 2; }
  .bottom-nav { bottom: 0; width: 100%; min-height: calc(70px + env(safe-area-inset-bottom)); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-width: 1px 0 0; border-radius: 20px 20px 0 0; }
  .bottom-nav-item { border-radius: 14px; }
  .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
}
