:root {
  color-scheme: light;
  --navy: #00114d;
  --ink: #333333;
  --muted: #666666;
  --line: #dedede;
  --paper: #f1efea;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--white);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 128px;
  padding: 28px 24px 24px;
  border-bottom: 1px solid #efefef;
  background: rgba(255, 255, 255, 0.98);
}

.brand {
  display: block;
  width: 300px;
  max-width: 72vw;
  line-height: 0;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.completion-main {
  padding: 72px 24px 64px;
  background:
    linear-gradient(to bottom, rgba(241, 239, 234, 0.45), rgba(255, 255, 255, 0) 220px),
    var(--white);
}

.completion-panel {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 56px 64px 60px;
  border-top: 3px solid var(--navy);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--white);
  text-align: center;
}

.status-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border: 1px solid var(--navy);
  border-radius: 50%;
  place-items: center;
}

.status-icon span {
  display: block;
  width: 26px;
  height: 14px;
  margin-top: -5px;
  border-bottom: 2px solid var(--navy);
  border-left: 2px solid var(--navy);
  transform: rotate(-45deg);
}

.overline {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 13px;
  letter-spacing: 0.12em;
}

h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.mobile-break {
  display: none;
}

.lead {
  margin: 24px 0 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 2;
}

.journey {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 40px 0 0;
  padding: 0;
  color: #777777;
  font-size: 13px;
  list-style: none;
}

.journey li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.journey li::before {
  position: absolute;
  z-index: 0;
  top: 15px;
  right: 50%;
  width: 100%;
  height: 1px;
  background: #d8d8d8;
  content: "";
}

.journey li:first-child::before {
  display: none;
}

.journey span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 30px;
  height: 30px;
  border: 1px solid #b8b8b8;
  border-radius: 50%;
  background: var(--white);
  color: #777777;
  font-family: Georgia, serif;
  line-height: 1;
  place-items: center;
}

.journey .is-complete,
.journey .is-current {
  color: var(--navy);
}

.journey .is-complete span {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.journey .is-current span {
  border-color: var(--navy);
  color: var(--navy);
}

.next-action {
  margin: 40px 0 0;
  padding: 20px 24px;
  background: var(--paper);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.next-action p {
  margin: 0;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 460px);
  min-height: 60px;
  margin: 28px auto 0;
  padding: 14px 24px 14px 28px;
  border: 1px solid var(--navy);
  border-radius: 0;
  background: var(--navy);
  color: var(--white);
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.primary-button span {
  font-family: Georgia, serif;
  font-size: 20px;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--white);
  color: var(--navy);
}

.primary-button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
}

.privacy-note {
  max-width: 560px;
  margin: 24px auto 0;
  color: #777777;
  font-size: 11px;
  line-height: 1.8;
}

.preview-note {
  width: min(100%, 760px);
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.preview-note[hidden] {
  display: none;
}

.site-footer {
  padding: 36px 24px 40px;
  border-top: 1px solid #e8e8e8;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}

.site-footer p {
  margin: 2px 0;
}

.site-footer .footer-name {
  margin-bottom: 10px;
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.08em;
}

@media (max-width: 639px) {
  .site-header {
    min-height: 96px;
    padding: 20px 18px 18px;
  }

  .brand {
    width: 230px;
  }

  .completion-main {
    padding: 36px 14px 40px;
  }

  .completion-panel {
    padding: 36px 22px 40px;
  }

  .status-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
  }

  .overline {
    font-size: 12px;
  }

  h1 {
    font-size: 29px;
  }

  .mobile-break {
    display: block;
  }

  .lead {
    font-size: 15px;
  }

  .journey {
    margin-top: 32px;
    font-size: 11px;
  }

  .next-action {
    margin-top: 32px;
    padding: 18px 16px;
    font-size: 13px;
  }

  .primary-button {
    min-height: 58px;
    padding-right: 20px;
    padding-left: 20px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary-button {
    transition: none;
  }
}
