:root {
  color-scheme: light;
  --ink: #15201c;
  --muted: #5c6963;
  --paper: #f7f4ed;
  --snow: #fffdf8;
  --mist: #e7f0ec;
  --forest: #12382f;
  --deep: #0a1717;
  --aurora: #47d986;
  --ice: #bfe7f5;
  --ember: #d9793d;
  --line: rgba(21, 32, 28, 0.14);
  --shadow: 0 20px 50px rgba(10, 23, 23, 0.16);
  --display-font:
    "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP",
    "Source Han Serif JP", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px 40px;
  color: var(--snow);
  background: rgba(10, 23, 23, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 0 auto;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 45%, rgba(255, 255, 255, 0.7) 46% 54%, transparent 55%),
    linear-gradient(150deg, var(--aurora), var(--ice) 55%, var(--ember));
  box-shadow: 0 0 24px rgba(71, 217, 134, 0.35);
}

.brand-text {
  display: grid;
  gap: 1px;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--display-font);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-subtitle {
  color: rgba(191, 231, 245, 0.82);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav a {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 253, 248, 0.86);
  font-size: 0.92rem;
  text-decoration: none;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--snow);
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--snow);
  background-image: url("assets/aurora-lapland.jpg");
  background-position: center center;
  background-size: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 23, 23, 0.92) 0%, rgba(10, 23, 23, 0.7) 42%, rgba(10, 23, 23, 0.12) 100%),
    linear-gradient(0deg, rgba(10, 23, 23, 0.84) 0%, rgba(10, 23, 23, 0.05) 52%, rgba(10, 23, 23, 0.35) 100%);
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 150px 0 78px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--ember);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 880px;
  margin: 0;
  font-family: var(--display-font);
  font-size: 4.25rem;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: 0;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.45);
}

.hero-lead {
  max-width: 700px;
  margin: 24px 0 0;
  color: rgba(255, 253, 248, 0.9);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.primary-action {
  background: var(--aurora);
  color: #072015;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: var(--snow);
  background: rgba(255, 255, 255, 0.08);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 980px;
  margin: 46px 0 0;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
}

.hero-stats div {
  min-width: 0;
  padding: 18px;
  background: rgba(10, 23, 23, 0.58);
}

.hero-stats dt {
  margin: 0 0 3px;
  color: rgba(255, 253, 248, 0.64);
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-stats dd {
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.photo-credit {
  position: absolute;
  right: 18px;
  bottom: 14px;
  margin: 0;
  color: rgba(255, 253, 248, 0.72);
  font-size: 0.75rem;
}

.subpage-hero {
  min-height: 560px;
  background-position: center center;
}

.subpage-hero .hero-content {
  padding: 130px 0 68px;
}

.subpage-hero h1 {
  max-width: 980px;
  font-size: 3.5rem;
}

.summary-band {
  background: var(--forest);
  color: var(--snow);
}

.summary-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.summary-inner p {
  margin: 0;
  color: rgba(255, 253, 248, 0.84);
}

.summary-inner a {
  flex: 0 0 auto;
  color: var(--ice);
  font-weight: 800;
}

.summary-link-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.section {
  padding: 88px 0;
}

.section-light {
  background: var(--paper);
}

.section-tint {
  background: var(--mist);
}

.section-dark {
  background: var(--deep);
  color: var(--snow);
}

.section-heading {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto 38px;
}

.section-heading h2 {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
}

.section-dark .section-heading p:not(.eyebrow) {
  color: rgba(255, 253, 248, 0.74);
}

.info-grid,
.area-grid,
.choice-axis-grid,
.destination-grid,
.app-list,
.hotel-grid,
.checklist-grid {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.info-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card,
.area-card,
.axis-card,
.destination-card,
.app-list article,
.hotel-card,
.check-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--snow);
  box-shadow: 0 12px 34px rgba(21, 32, 28, 0.08);
}

.info-card,
.area-card,
.axis-card,
.destination-card,
.app-list article,
.hotel-card {
  padding: 24px;
}

.info-card h3,
.area-card h3,
.axis-card h3,
.destination-card h3,
.app-list h3,
.hotel-card h3,
.timeline h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.35;
}

.info-card p,
.area-card p,
.axis-card p,
.destination-card p,
.app-list p,
.hotel-card p,
.timeline p {
  margin: 0;
  color: var(--muted);
}

.small-note {
  margin-top: 12px;
  color: #6d5b4f;
  font-size: 0.9rem;
}

.note-strip {
  width: min(1180px, calc(100% - 48px));
  margin: 22px auto 0;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 20px;
  border-left: 5px solid var(--ember);
  background: #fff7e8;
}

.note-strip strong {
  flex: 0 0 auto;
}

.route-panel {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr) 48px minmax(0, 1fr) 48px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
}

.route-step {
  padding: 22px;
  border: 1px solid rgba(18, 56, 47, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
}

.route-step h3 {
  margin: 12px 0 8px;
  font-size: 1.06rem;
}

.route-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.route-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #072015;
  background: var(--aurora);
  font-weight: 900;
}

.route-line {
  align-self: center;
  height: 2px;
  background: linear-gradient(90deg, var(--forest), var(--ember));
}

.area-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.choice-axis-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.axis-card {
  position: relative;
  min-width: 0;
}

.axis-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #072015;
  background: var(--aurora);
  font-weight: 900;
}

.destination-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.destination-card {
  position: relative;
  overflow: hidden;
}

.destination-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--aurora), var(--ice), var(--ember));
}

.destination-label {
  margin: 0 0 8px;
  color: var(--ember);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.destination-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.destination-card li + li {
  margin-top: 8px;
}

.destination-card h3 a {
  color: inherit;
  text-decoration: none;
}

.destination-card h3 a:hover {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.card-action,
.inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 18px;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.card-action {
  padding: 9px 14px;
  color: #072015;
  background: var(--aurora);
}

.inline-action {
  padding: 8px 0;
  color: var(--forest);
}

.card-action:hover,
.inline-action:hover {
  transform: translateY(-1px);
}

.feature-list {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.feature-list li {
  padding: 18px 20px;
  border-left: 5px solid var(--aurora);
  border-radius: 8px;
  color: var(--muted);
  background: var(--snow);
  box-shadow: 0 12px 34px rgba(21, 32, 28, 0.08);
}

.feature-list strong {
  color: var(--forest);
}

.comparison-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 24px auto 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--snow);
  box-shadow: 0 12px 34px rgba(21, 32, 28, 0.08);
}

.comparison-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table thead th {
  background: #eaf3ee;
  color: var(--forest);
  font-size: 0.88rem;
}

.comparison-table tbody th {
  color: var(--forest);
}

.comparison-table td {
  color: var(--muted);
}

.comparison-table a {
  color: var(--forest);
  font-weight: 900;
  text-decoration: none;
}

.comparison-table a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.timeline {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 22px;
  padding: 0 0 24px;
}

.timeline li:not(:last-child) .timeline-body {
  border-bottom: 1px solid var(--line);
}

.timeline-date {
  align-self: start;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--snow);
  background: var(--forest);
  font-weight: 900;
  text-align: center;
}

.timeline-body {
  padding: 6px 0 24px;
}

.budget-layout {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.budget-controls {
  position: sticky;
  top: 92px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.budget-controls label {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 253, 248, 0.78);
  font-weight: 800;
}

.exchange-input {
  display: grid;
  grid-template-columns: auto minmax(76px, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.exchange-input input,
.cost-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(21, 32, 28, 0.18);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--snow);
}

.total-board {
  margin-top: 22px;
  padding: 18px;
  border-radius: 8px;
  background: var(--snow);
  color: var(--ink);
}

.total-board p,
.total-board span {
  margin: 0;
}

.total-board strong {
  display: block;
  margin: 4px 0;
  color: var(--forest);
  font-size: 2rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.total-board span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.budget-controls .small-note {
  color: rgba(255, 253, 248, 0.72);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: var(--snow);
}

.cost-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  color: var(--ink);
}

.cost-table th,
.cost-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.cost-table thead th {
  background: #eaf3ee;
  color: var(--forest);
  font-size: 0.88rem;
}

.cost-table tbody th {
  min-width: 142px;
}

.cost-table td:nth-child(2) {
  min-width: 190px;
}

.cost-table td:last-child {
  min-width: 180px;
  color: var(--muted);
  font-size: 0.92rem;
}

.app-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-list a {
  display: inline-block;
  margin-top: 12px;
  color: var(--forest);
  font-weight: 800;
}

.hotel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hotel-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.hotel-card.accent {
  border-color: rgba(217, 121, 61, 0.45);
  background: #fff5e7;
}

.packing-status {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: minmax(140px, auto) minmax(160px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 8px;
  background: var(--forest);
  color: var(--snow);
}

.packing-status span,
.packing-status strong {
  display: block;
}

#packingCount {
  color: var(--aurora);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.1;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--aurora), var(--ice));
  transition: width 180ms ease;
}

.packing-status button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--snow);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.packing-status button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.checklist-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.check-group {
  margin: 0;
  padding: 20px;
  min-width: 0;
}

.check-group legend {
  padding: 0 4px;
  color: var(--forest);
  font-weight: 900;
}

.check-group label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.check-group input {
  width: 18px;
  height: 18px;
  margin-top: 5px;
  accent-color: var(--forest);
}

.sources .source-list {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.source-list a {
  display: block;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--ice);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.source-list a:hover {
  border-color: rgba(191, 231, 245, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 40px;
  color: rgba(255, 253, 248, 0.78);
  background: #050d0d;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ice);
  font-weight: 800;
}

@media (max-width: 1040px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 24px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 740px;
  }

  .subpage-hero {
    min-height: 540px;
  }

  .hero h1 {
    font-size: 3.45rem;
  }

  .subpage-hero h1 {
    font-size: 3rem;
  }

  .hero-stats,
  .info-grid,
  .choice-axis-grid,
  .destination-grid,
  .app-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .route-line {
    width: 2px;
    height: 20px;
    justify-self: center;
  }

  .budget-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .budget-controls {
    position: static;
  }

  .checklist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-nav a {
    text-align: center;
  }

  .hero {
    min-height: 720px;
    background-position: center top;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(10, 23, 23, 0.92) 0%, rgba(10, 23, 23, 0.58) 58%, rgba(10, 23, 23, 0.22) 100%);
  }

  .hero-content,
  .summary-inner,
  .section-heading,
  .info-grid,
  .area-grid,
  .choice-axis-grid,
  .destination-grid,
  .app-list,
  .hotel-grid,
  .checklist-grid,
  .note-strip,
  .route-panel,
  .comparison-wrap,
  .timeline,
  .budget-layout,
  .packing-status,
  .feature-list,
  .sources .source-list {
    width: min(100% - 32px, 1180px);
  }

  .hero-content {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .subpage-hero h1 {
    font-size: 2.35rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-stats,
  .info-grid,
  .area-grid,
  .choice-axis-grid,
  .destination-grid,
  .app-list,
  .hotel-grid,
  .checklist-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .photo-credit {
    position: relative;
    right: auto;
    bottom: auto;
    padding: 0 16px 12px;
    background: rgba(10, 23, 23, 0.82);
  }

  .summary-inner,
  .summary-link-group,
  .note-strip,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 62px 0;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  .timeline li {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .timeline-date {
    width: 96px;
  }

  .packing-status {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer {
    padding: 24px;
  }
}

@media (max-width: 420px) {
  .brand {
    white-space: normal;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-subtitle {
    font-size: 0.62rem;
  }

  .site-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h1 {
    font-size: 2.15rem;
  }

  .hero-stats div,
  .info-card,
  .area-card,
  .destination-card,
  .app-list article,
  .hotel-card,
  .check-group,
  .budget-controls {
    padding: 18px;
  }
}
