@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Zen+Kaku+Gothic+New:wght@500;700;900&display=swap');

:root {
  --navy: #1e3a5f;
  --navy-deep: #27466a;
  --navy-mid: #214261;
  --navy-line: #2f527a;
  --amber: #e8c07d;
  --green: #2d6a4f;
  --red: #c45b5b;
  --cream-bg: #e9e6df;
  --card-bg: #f7f5f0;
  --border: #eee7da;
  --border2: #e0dace;
  --text-sub: #8a93a0;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--cream-bg);
  font-family: 'Noto Sans JP', sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #1a2733;
}

button { font-family: inherit; }

.zk { font-family: 'Zen Kaku Gothic New', sans-serif; }

.app {
  max-width: 460px;
  margin: 0 auto;
  background: var(--card-bg);
  min-height: 100vh;
  box-shadow: 0 0 60px rgba(30, 58, 79, .08);
}

/* HEADER */
.header {
  background: var(--navy);
  color: #fff;
  padding: 32px 22px 28px;
  position: relative;
  overflow: hidden;
}
.header__mountain {
  position: absolute; bottom: -2px; left: -20px; right: -20px; height: 96px;
  clip-path: polygon(0 100%, 28% 40%, 37% 56%, 50% 0, 63% 56%, 72% 40%, 100% 100%);
  background: var(--navy-deep);
}
.header__sun {
  position: absolute; left: 50%; transform: translateX(-50%); top: 60px; width: 120px; height: 40px;
  clip-path: polygon(50% 0, 60% 56%, 40% 56%);
  background: #f3f1ec; opacity: .92;
}
.header__content { position: relative; }
.header__eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--amber); margin-bottom: 13px;
}
.header__eyebrow-dot { width: 6px; height: 6px; background: var(--amber); border-radius: 50%; }
.header h1 { margin: 0; font-weight: 900; font-size: 30px; line-height: 1.18; letter-spacing: .01em; }
.header p { margin: 14px 0 0; font-size: 13px; line-height: 1.7; color: #c7d2df; max-width: 290px; }
.header__hl { color: var(--amber); font-weight: 700; }

/* INPUTS WRAP */
.inputs { padding: 22px 18px 6px; }

.notice {
  background: #fbf4e3; border: 1px solid #ecd8a8; border-radius: 14px; padding: 14px 16px; margin-bottom: 14px;
}
.notice__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.notice__dot { width: 9px; height: 9px; border-radius: 50%; background: #d99a2b; flex-shrink: 0; }
.notice__title { font-weight: 900; font-size: 13px; color: #8a6a1e; }
.notice__body { display: flex; flex-direction: column; gap: 6px; font-size: 12px; line-height: 1.55; color: #6b5a30; }
.notice__link { color: #6b5a30; text-decoration: underline; font-weight: 700; }

.hint-box {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 13px 16px; margin-bottom: 18px;
  display: flex; align-items: center; gap: 11px;
}
.hint-box__num {
  width: 26px; height: 26px; border-radius: 50%; background: #eaf0e9; color: var(--green);
  font-size: 13px; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hint-box__text { font-size: 12.5px; line-height: 1.5; color: #48535f; font-weight: 500; }
.hint-box__text b { color: var(--navy); }

.section-divider {
  font-weight: 900; font-size: 12px; color: var(--green); letter-spacing: .04em;
  margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.section-divider--muted { color: #a89f8e; margin: 8px 0 16px; }
.section-divider__line { flex: 1; height: 1px; background: #dcd6cb; }
.section-divider--muted .section-divider__line { background: var(--border2); }

.field { margin-bottom: 20px; }
.field__label { display: flex; align-items: baseline; gap: 8px; margin-bottom: 9px; }
.field__num { font-weight: 900; color: #d99a2b; font-size: 15px; }
.field__name { font-weight: 700; font-size: 14px; }
.field__sub { font-size: 11px; color: var(--text-sub); }
.field__note { font-size: 11px; color: var(--text-sub); margin-top: 7px; }
.field__note b { color: var(--green); }
.field__link { font-size: 11px; color: var(--navy); text-decoration: underline; margin-top: 6px; display: inline-block; }

.select-wrap { position: relative; }
.select-wrap select {
  width: 100%; appearance: none; -webkit-appearance: none; background: #fff;
  border: 1.5px solid var(--border2); border-radius: 11px; padding: 14px 40px 14px 15px;
  font-family: inherit; font-size: 15px; font-weight: 700; color: var(--navy); cursor: pointer;
}
.select-wrap__arrow {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none;
  border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--navy);
}

.seg-grid { display: grid; gap: 7px; }
.seg-grid--2 { grid-template-columns: repeat(2, 1fr); }
.seg-grid--3 { grid-template-columns: repeat(3, 1fr); }
.seg-grid--4 { grid-template-columns: repeat(4, 1fr); }

.seg-btn {
  border: 1.5px solid var(--border2); border-radius: 11px; padding: 11px 4px; font-size: 13px; font-weight: 700;
  cursor: pointer; text-align: center; line-height: 1.2; transition: all .12s; background: #fff; color: #56606c;
}
.seg-btn__sub { display: block; font-size: 10.5px; opacity: .72; font-weight: 700; margin-top: 3px; }
.seg-btn.is-active {
  background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 4px 12px rgba(30, 58, 79, .22);
}

.gear-note {
  font-size: 11px; line-height: 1.5; color: #8a7f6d; background: #f4f0e7; border-radius: 9px;
  padding: 8px 11px; margin-bottom: 9px;
}
.gear-note b { color: #5a5342; }

.route-list { display: flex; flex-direction: column; gap: 8px; }
.route-card {
  width: 100%; text-align: left; border: 1.5px solid var(--border2); border-radius: 12px; padding: 12px 14px;
  cursor: pointer; transition: all .12s; background: #fff; color: #3a4654;
}
.route-card.is-active { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 4px 12px rgba(30, 58, 79, .22); }
.route-card__head { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.route-card__name { font-weight: 900; font-size: 14px; }
.route-card__badge { background: #eaf0e9; color: var(--green); font-size: 9.5px; font-weight: 900; padding: 2px 7px; border-radius: 20px; }
.route-card__level { margin-left: auto; font-size: 10.5px; font-weight: 700; }
.route-card__desc { font-size: 11px; line-height: 1.5; opacity: .82; font-weight: 500; }

.mini-field__label { display: flex; align-items: baseline; gap: 5px; margin-bottom: 9px; }
.mini-field__num { font-weight: 900; color: #d99a2b; font-size: 14px; }
.mini-field__name { font-weight: 700; font-size: 13px; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.foot-note { font-size: 11px; color: #9a9286; margin: 4px 0 0; line-height: 1.6; }

/* TIERS */
.tiers { background: var(--navy); margin-top: 20px; padding: 26px 18px 24px; color: #fff; }
.tiers__title { font-weight: 900; font-size: 16px; margin-bottom: 3px; }
.tiers__sub { font-size: 11px; color: #9fb2c6; margin-bottom: 18px; }
.tiers__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.tier-card {
  position: relative; border-radius: 14px; padding: 16px 11px 14px; text-align: center;
  background: var(--navy-mid); border: 1.5px solid var(--navy-line);
}
.tier-card.is-closest { background: var(--navy-deep); border-color: var(--amber); }
.tier-card__badge {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: var(--amber); color: var(--navy);
  font-size: 9px; font-weight: 900; padding: 2px 8px; border-radius: 20px; white-space: nowrap;
}
.tier-card__name { font-size: 12px; font-weight: 700; margin-bottom: 7px; }
.tier-card__total { font-weight: 900; font-size: 19px; letter-spacing: -.01em; line-height: 1; }
.tier-card__note { font-size: 9.5px; color: #7d93aa; margin-top: 9px; line-height: 1.5; }

/* RESULT */
.result { padding: 26px 18px 6px; scroll-margin-top: 12px; }
.verdict { background: var(--navy); border-radius: 18px; padding: 20px; margin-bottom: 14px; color: #fff; }
.verdict__label { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--amber); margin-bottom: 8px; }
.verdict__text { font-size: 14px; line-height: 1.6; font-weight: 700; }
.verdict__cta {
  text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--amber); color: var(--navy); font-weight: 900; font-size: 13px; padding: 13px;
  border-radius: 12px; margin-top: 14px;
}
.verdict__foot { font-size: 10.5px; color: #9fb2c6; margin-top: 8px; line-height: 1.5; text-align: center; }

.result-card {
  background: #fff; border-radius: 18px; padding: 22px 20px; box-shadow: 0 8px 28px rgba(30, 58, 79, .09); border: 1px solid var(--border);
}
.result-card__label { font-size: 12px; font-weight: 700; color: var(--text-sub); letter-spacing: .04em; }
.result-card__amount { display: flex; align-items: flex-end; gap: 6px; margin: 6px 0 2px; }
.result-card__yen { font-weight: 900; font-size: 46px; line-height: .95; color: var(--navy); }
.result-card__unit { font-weight: 700; font-size: 16px; color: var(--navy); margin-bottom: 7px; }
.result-card__diff { font-size: 11.5px; font-weight: 700; margin-bottom: 18px; }
.result-card__article-link {
  display: inline-block; font-size: 11.5px; color: var(--navy); text-decoration: underline; margin-bottom: 18px;
}

.breakdown { display: flex; flex-direction: column; gap: 11px; }
.breakdown-row__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.breakdown-row__label { font-size: 12.5px; font-weight: 700; color: #3a4654; }
.breakdown-row__amount { font-size: 12.5px; font-weight: 700; color: var(--navy); }
.breakdown-row__bar { height: 7px; background: #f0ece2; border-radius: 6px; overflow: hidden; }
.breakdown-row__bar-fill { height: 100%; border-radius: 6px; }

/* METERS */
.meters { padding: 18px 18px 6px; }
.meters__title { font-weight: 900; font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.meters__sub { font-size: 11px; color: var(--text-sub); margin-bottom: 14px; }
.meters__list { display: flex; flex-direction: column; gap: 10px; }
.meter-card {
  background: #fff; border-radius: 13px; padding: 13px 16px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--border);
}
.meter-card__label { font-size: 13px; font-weight: 700; color: #3a4654; width: 54px; }
.meter-card__stars { font-size: 19px; letter-spacing: 2px; }
.meter-card__tag { font-size: 11px; color: #9aa3ae; margin-left: auto; font-weight: 700; }

/* WARNINGS / SAVINGS */
.warnings, .savings { padding: 14px 18px 6px; }
.section-heading { font-size: 12px; font-weight: 700; color: var(--text-sub); letter-spacing: .04em; margin-bottom: 10px; }
.section-heading--zk { font-weight: 900; font-size: 15px; color: var(--navy); margin-bottom: 12px; }

.warning-box { border-radius: 13px; padding: 13px 15px; border: 1px solid; }
.warning-box--danger { border-color: #e6b4b4; background: #fbeeee; }
.warning-box--warn { border-color: #ecd8a8; background: #fbf4e3; }
.warning-box__head { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.warning-box__dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.warning-box--danger .warning-box__dot { background: var(--red); }
.warning-box--warn .warning-box__dot { background: #d99a2b; }
.warning-box__title { font-weight: 700; font-size: 13px; color: #2a3744; }
.warning-box__text { font-size: 12px; line-height: 1.6; color: #55606c; padding-left: 18px; }
.stack { display: flex; flex-direction: column; gap: 9px; }

.saving-box { background: #eef5ef; border: 1px solid #cfe3d4; border-radius: 13px; padding: 13px 15px; display: flex; gap: 11px; align-items: center; }
.saving-box__amount { font-weight: 900; font-size: 15px; color: var(--green); white-space: nowrap; }
.saving-box__text { font-size: 12px; line-height: 1.55; color: #34503e; }

/* FORGOTTEN COSTS */
.forgot { padding: 16px 18px 6px; }
.forgot__list { background: #fff; border-radius: 15px; padding: 6px 16px; border: 1px solid var(--border); }
.forgot-row { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid #f2eee4; }
.forgot-row:last-child { border-bottom: none; }
.forgot-row__mark {
  width: 21px; height: 21px; border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900;
}
.forgot-row__mark--on { background: var(--green); color: #fff; }
.forgot-row__mark--off { border: 2px solid #d3cbbb; }
.forgot-row__label { font-size: 13px; margin-left: 0; }
.forgot-row__hint { font-size: 11px; color: #a8a293; margin-left: auto; font-weight: 700; }

/* DIAGNOSIS */
.diagnosis { background: var(--navy); margin-top: 22px; padding: 26px 18px 24px; color: #fff; }
.diagnosis__eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; color: var(--amber); margin-bottom: 13px; }
.diagnosis__title { font-weight: 900; font-size: 17px; margin-bottom: 16px; line-height: 1.4; }
.diagnosis__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.diagnosis-card { border-radius: 14px; padding: 16px 14px; text-align: center; background: var(--navy-mid); border: 1.5px solid var(--navy-line); }
.diagnosis-card.is-favored { background: var(--navy-deep); border-color: var(--amber); }
.diagnosis-card__label { font-size: 12px; font-weight: 700; margin-bottom: 7px; color: #cdd9e6; }
.diagnosis-card__stars { font-size: 21px; letter-spacing: 2px; color: var(--amber); }
.diagnosis__axes-label { font-size: 11.5px; font-weight: 700; color: #9fb2c6; margin-bottom: 10px; }
.axis-card { background: var(--navy-deep); border-radius: 12px; padding: 13px 15px; }
.axis-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.axis-card__name { font-size: 13px; font-weight: 900; }
.axis-card__verdict { font-size: 11px; font-weight: 700; color: var(--amber); }
.axis-card__text { font-size: 12px; line-height: 1.6; color: #c7d2df; }
.diagnosis__article-link { display: inline-block; margin-top: 14px; font-size: 12px; color: var(--amber); text-decoration: underline; font-weight: 700; }

/* PREP */
.prep { padding: 26px 18px 6px; }
.prep-item { background: #fff; border: 1px solid var(--border); border-radius: 13px; padding: 13px 15px; display: flex; gap: 11px; align-items: flex-start; }
.prep-item__box { width: 20px; height: 20px; border: 2px solid #d99a2b; border-radius: 6px; flex-shrink: 0; margin-top: 1px; }
.prep-item__text { font-size: 13px; line-height: 1.55; color: #34404c; font-weight: 500; }

/* VIDEOS */
.videos { padding: 20px 18px 104px; }
.videos__title { font-weight: 900; font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.videos__sub { font-size: 11px; color: var(--text-sub); margin-bottom: 14px; }
.videos__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.video-card { text-decoration: none; display: block; background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; color: inherit; }
.video-card__thumb { height: 74px; background-size: cover; background-position: center; position: relative; }
.video-card__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%; background: rgba(30,58,79,.85); display: flex; align-items: center; justify-content: center;
}
.video-card__play-icon { border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.video-card__body { padding: 11px 13px 13px; }
.video-card__tag { font-size: 9.5px; font-weight: 700; color: #d99a2b; letter-spacing: .06em; margin-bottom: 4px; }
.video-card__title { font-size: 12.5px; font-weight: 700; color: #28323d; line-height: 1.4; }
.videos__foot { text-align: center; font-size: 10.5px; color: #b3ab9c; margin-top: 24px; line-height: 1.6; }

.playlist-card {
  text-decoration: none; display: flex; gap: 12px; align-items: center; margin-top: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; color: inherit;
}
.playlist-card__thumb { flex-shrink: 0; width: 108px; height: 74px; background-size: cover; background-position: center; position: relative; }
.playlist-card__body { padding: 11px 13px 11px 0; min-width: 0; }
.playlist-card__tag { font-size: 9.5px; font-weight: 700; color: #d99a2b; letter-spacing: .06em; margin-bottom: 4px; }
.playlist-card__title { font-size: 12.5px; font-weight: 700; color: #28323d; line-height: 1.4; margin-bottom: 3px; }
.playlist-card__desc { font-size: 10.5px; color: var(--text-sub); line-height: 1.4; }

/* STICKY */
.sticky-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; width: min(432px, calc(100% - 28px));
  background: var(--navy); color: #fff; border-radius: 16px; padding: 12px 16px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 12px 34px rgba(20, 40, 60, .34); z-index: 60;
}
.sticky-bar__info { flex: 1; min-width: 0; }
.sticky-bar__label { font-size: 10px; color: #9fb2c6; font-weight: 700; letter-spacing: .04em; }
.sticky-bar__row { display: flex; align-items: baseline; gap: 7px; }
.sticky-bar__yen { font-weight: 900; font-size: 23px; line-height: 1.1; }
.sticky-bar__tier { font-size: 11px; color: var(--amber); font-weight: 700; white-space: nowrap; }
.sticky-bar__cta { text-decoration: none; background: var(--amber); color: var(--navy); font-weight: 900; font-size: 12px; padding: 11px 15px; border-radius: 11px; white-space: nowrap; }
