:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5b6475;
  --line: #dfe5ef;
  --surface: #ffffff;
  --soft: #f5f7fb;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --rose: #ec4899;
  --teal: #14b8a6;
  --amber: #f59e0b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: var(--ink);
  background: #f8fafc;
  letter-spacing: 0;
  overflow-x: clip;
}

button,
input,
select {
  font: inherit;
  min-width: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid rgba(226, 232, 240, 0.75);
  backdrop-filter: blur(18px);
}

.brand,
.top-nav,
.header-action {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: white;
  background: #172554;
  border-radius: 999px;
}

.brand svg,
.header-action svg,
button svg,
.ghost-button svg,
.bottom-cta svg {
  width: 18px;
  height: 18px;
}

.top-nav {
  gap: 24px;
}

.top-nav a,
.header-action {
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.header-action {
  min-height: 38px;
  padding: 0 18px;
  color: var(--blue);
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
}

.hero {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  isolation: isolate;
  background: #dbeafe;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  background-image: url("./hero-background.png");
  background-position: center center;
  background-size: cover;
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(248, 250, 252, 0.94) 0%, rgba(248, 250, 252, 0.84) 31%, rgba(248, 250, 252, 0.38) 54%, rgba(248, 250, 252, 0.06) 100%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.06) 0%, rgba(248, 250, 252, 0.1) 56%, rgba(248, 250, 252, 0.98) 100%);
}

.hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 132px 0 56px;
}

.hero-copy {
  width: min(560px, 100%);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 800;
}

.eyebrow span {
  width: 10px;
  height: 10px;
  background: var(--blue);
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.13);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3,
p,
a,
button,
label,
span,
strong {
  overflow-wrap: anywhere;
}

.hero-copy h1 {
  max-width: 540px;
  margin-top: 24px;
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 800;
  line-height: 1.18;
}

.lead {
  max-width: 580px;
  margin-top: 24px;
  color: #172033;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.9;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.check-form {
  width: min(470px, 100%);
  margin-top: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.check-form label {
  display: grid;
  gap: 8px;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.date-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 10px;
}

input,
select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  color: var(--ink);
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.date-row button,
.bottom-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  color: white;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(100deg, var(--blue), var(--rose));
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.optional-fields {
  margin-top: 16px;
}

.optional-fields summary {
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.optional-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.privacy-note,
.form-error {
  margin-top: 12px;
  color: #475569;
  font-size: 12px;
  text-align: center;
}

.form-error {
  min-height: 18px;
  color: #b91c1c;
  font-weight: 700;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 36px;
  overflow: hidden;
  background: rgba(203, 213, 225, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-stats div {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 2px 16px;
  align-items: center;
  min-height: 100px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.74);
}

.hero-stats svg {
  grid-row: span 2;
  width: 52px;
  height: 52px;
  padding: 12px;
  color: var(--blue);
  background: #e0f2fe;
  border-radius: 999px;
}

.hero-stats strong {
  font-size: 30px;
  line-height: 1;
}

.hero-stats span {
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.app-band,
.dashboard,
.daily-band,
.pros-cons,
.source-band,
.bottom-cta {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-width: 0;
  max-width: 100%;
}

.app-band {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 34px;
  align-items: center;
  padding: 42px 0 38px;
  min-height: 600px;
}

.section-copy h2,
.pros-cons h2,
.bottom-cta h2 {
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.3;
  max-width: 100%;
}

.section-copy p:not(.section-kicker) {
  margin-top: 18px;
  color: #334155;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.9;
  max-width: 100%;
}

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 100%;
  min-height: 560px;
  overflow: hidden;
}

.mini-schedule {
  width: min(360px, 100%);
  margin-top: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.09);
  transform: rotate(-5deg);
}

.mini-schedule h3 {
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 800;
}

.mini-schedule p {
  display: grid;
  grid-template-columns: 24px 58px 1fr;
  gap: 8px;
  align-items: center;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.mini-schedule p + p {
  margin-top: 10px;
}

.mini-schedule svg {
  width: 22px;
  height: 22px;
  color: var(--blue);
}

.mini-schedule span {
  color: #64748b;
}

.phone-mock {
  position: relative;
  z-index: 2;
  width: min(280px, 74vw);
  max-width: 100%;
  min-height: 545px;
  padding: 16px 13px;
  background: #0f172a;
  border: 5px solid #111827;
  border-radius: 38px;
  box-shadow: 0 30px 55px rgba(15, 23, 42, 0.28);
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 92px;
  height: 22px;
  background: #05070d;
  border-radius: 0 0 16px 16px;
  transform: translateX(-50%);
  z-index: 3;
}

.phone-screen {
  display: grid;
  gap: 12px;
  min-height: 505px;
  padding: 42px 18px 18px;
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  border-radius: 28px;
}

.phone-screen > p {
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.phone-screen > strong {
  font-size: 18px;
  text-align: center;
}

.score-ring {
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  margin: 4px auto 10px;
  color: #111827;
  font-size: 42px;
  font-weight: 800;
  background:
    radial-gradient(circle, #fff 58%, transparent 60%),
    conic-gradient(#14b8a6 0 62%, #e2e8f0 62% 100%);
  border-radius: 999px;
}

.score-ring small {
  font-size: 14px;
}

.phone-screen article {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.phone-screen article span,
.phone-screen article em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.phone-screen article b {
  font-size: 24px;
}

.phone-screen article em {
  color: var(--blue);
}

.floating-card {
  position: absolute;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: 250px;
  padding: 24px 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 8px;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(14px);
}

.floating-card h3 {
  font-size: 17px;
  font-weight: 800;
}

.floating-card p {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.floating-card span {
  display: inline-grid;
  min-height: 36px;
  place-items: center;
  color: var(--blue);
  background: #eff6ff;
  border-radius: 999px;
}

.past-card {
  left: 0;
  bottom: 86px;
  transform: rotate(-8deg);
}

.future-card {
  right: 0;
  top: 96px;
  background: rgba(253, 242, 248, 0.84);
  transform: rotate(8deg);
}

.dashboard {
  padding: 32px 0 42px;
  overflow: hidden;
}

.result-shell {
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.result-shell > * {
  min-width: 0;
  max-width: 100%;
}

.result-hero {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 22px;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  min-height: 210px;
  padding: 26px;
  color: white;
  background:
    radial-gradient(circle at 82% 20%, rgba(20, 184, 166, 0.95), transparent 32%),
    linear-gradient(135deg, #4f46e5, #38bdf8);
  border-radius: 8px;
}

.muted-label {
  font-size: 14px;
  font-weight: 800;
  opacity: 0.86;
}

.result-hero strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(56px, 8vw, 96px);
  line-height: 1;
}

.result-hero span {
  display: block;
  margin-top: 14px;
  font-weight: 700;
}

.life-curve {
  position: relative;
  min-width: 0;
  height: 150px;
}

.life-curve::before {
  position: absolute;
  inset: 50% 6% auto;
  height: 4px;
  content: "";
  background: rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  transform: rotate(-16deg);
}

.point {
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border: 4px solid rgba(37, 99, 235, 0.7);
  border-radius: 999px;
  box-shadow: 0 0 0 9px rgba(255, 255, 255, 0.18);
}

.point.past {
  left: 12%;
  top: 62%;
}

.point.now {
  left: 48%;
  top: 45%;
}

.point.future {
  right: 10%;
  top: 22%;
}

.timeline-card,
.metric-card,
.daily-grid article,
.notice,
.source-list span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline-card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 22px;
}

.card-heading,
.ghost-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-heading h3 {
  font-size: 20px;
  font-weight: 800;
}

.ghost-button {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.timeline li {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 82px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.timeline li.active {
  background: #eff6ff;
  border-color: #93c5fd;
}

.timeline span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.timeline strong {
  font-size: 14px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.metric-card {
  display: grid;
  gap: 9px;
  min-height: 188px;
  padding: 18px;
}

.metric-card svg {
  width: 36px;
  height: 36px;
  padding: 8px;
  color: #334155;
  background: #eef2ff;
  border-radius: 8px;
}

.metric-card p,
.metric-card span,
.metric-card em {
  color: #475569;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.metric-card strong {
  font-size: 30px;
  line-height: 1.1;
}

.metric-card em {
  width: fit-content;
  padding: 5px 8px;
  color: #1e3a8a;
  background: #eff6ff;
  border-radius: 999px;
}

.daily-band {
  padding: 46px 0;
}

.section-copy.compact {
  max-width: 620px;
}

.daily-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.daily-grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.daily-grid svg {
  width: 38px;
  height: 38px;
  padding: 9px;
  color: var(--teal);
  background: #ccfbf1;
  border-radius: 999px;
}

.daily-grid span {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.daily-grid strong {
  font-size: 16px;
}

.daily-grid p {
  color: #475569;
  font-size: 13px;
}

.pros-cons {
  padding: 44px 0;
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.notice {
  padding: 26px;
}

.notice.good {
  background: linear-gradient(135deg, #f0fdfa, #ffffff);
}

.notice.caution {
  background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.notice h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
}

.notice.good svg {
  color: #0f766e;
}

.notice.caution svg {
  color: var(--amber);
}

.notice ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 1.2em;
  color: #334155;
  font-weight: 600;
  line-height: 1.7;
}

.source-band {
  display: grid;
  grid-template-columns: 0.58fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 46px 0 58px;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.source-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 14px;
  color: #334155;
  font-weight: 800;
}

.source-list svg {
  color: var(--blue);
}

.bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 52px;
  padding: 30px;
  color: white;
  background: linear-gradient(100deg, #2563eb, #06b6d4 48%, #ec4899);
  border-radius: 8px;
}

.bottom-cta h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
}

.bottom-cta a {
  min-width: 220px;
  color: var(--blue);
  background: white;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 4vw, 42px);
  color: #64748b;
  background: white;
  border-top: 1px solid var(--line);
}

footer p:first-child {
  color: var(--ink);
  font-weight: 800;
}

@media (min-width: 1440px) {
  .hero-copy h1 {
    max-width: 570px;
  }
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
  }

  .top-nav {
    display: none;
  }

  .hero {
    min-height: 760px;
  }

  .hero-bg {
    inset: 0;
    width: 100%;
    height: 100%;
    background-position: 66% center;
    opacity: 1;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(248, 250, 252, 0.84) 0%, rgba(248, 250, 252, 0.76) 52%, rgba(248, 250, 252, 0.98) 100%),
      linear-gradient(90deg, rgba(248, 250, 252, 0.9) 0%, rgba(248, 250, 252, 0.48) 100%);
  }

  .hero-inner {
    padding-top: 56px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .date-row,
  .app-band,
  .result-hero,
  .source-band,
  .notice-grid,
  .bottom-cta {
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .metric-grid,
  .daily-grid,
  .source-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-band {
    gap: 20px;
    padding-top: 46px;
  }

  .phone-stage {
    min-height: 720px;
    overflow: visible;
  }

  .past-card {
    left: 10px;
    bottom: 30px;
  }

  .future-card {
    right: 10px;
    top: 20px;
  }

  .bottom-cta {
    display: grid;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-action {
    display: none;
  }

  .hero-inner,
  .app-band,
  .dashboard,
  .daily-band,
  .pros-cons,
  .source-band,
  .bottom-cta {
    width: min(100% - 28px, 1180px);
  }

  .hero-copy {
    max-width: 340px;
  }

  .hero-bg {
    background-position: 70% center;
  }

  .hero-copy h1 {
    max-width: 320px;
    font-size: 24px;
    line-height: 1.28;
    word-break: break-all;
  }

  .lead {
    max-width: 330px;
    font-size: 13px;
    line-height: 1.75;
  }

  .check-form,
  .result-shell {
    padding: 16px;
  }

  .privacy-note,
  .form-error {
    text-align: left;
  }

  .mini-schedule {
    transform: none;
  }

  .optional-grid,
  .hero-stats,
  .metric-grid,
  .daily-grid,
  .source-list {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    min-height: 88px;
  }

  .result-hero {
    padding: 20px;
  }

  .life-curve {
    height: 110px;
  }

  .floating-card {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
  }

  .phone-stage {
    gap: 14px;
    min-height: auto;
    overflow: visible;
  }

  footer {
    display: grid;
  }
}

@media (max-width: 450px) {
  .hero-inner,
  .app-band,
  .dashboard,
  .daily-band,
  .pros-cons,
  .source-band,
  .bottom-cta {
    width: calc(100% - 24px);
  }

  .hero-inner {
    padding-top: 52px;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: 26px;
    line-height: 1.32;
  }

  .lead {
    font-size: 13px;
  }

  .check-form {
    padding: 14px;
  }

  .date-row button {
    padding: 0 16px;
  }

  .hero-stats div {
    grid-template-columns: 46px 1fr;
    padding: 18px;
  }

  .hero-stats svg {
    width: 46px;
    height: 46px;
  }

  .section-copy h2,
  .pros-cons h2,
  .bottom-cta h2 {
    font-size: 25px;
    line-height: 1.36;
    word-break: break-all;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
