.journey-principles,
.journey-card-grid {
  margin: 0;
  padding: 0;
  display: grid;
  list-style: none;
}

.journey-principles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.journey-principles li {
  min-height: 152px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border: 1px solid #e6edf1;
  border-radius: 22px;
  background: #fff;
}

.journey-principles li > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 50%;
  color: #fff;
  background: #e94f70;
  font-weight: 900;
}

.journey-principles small,
.journey-card p,
.journey-card dd {
  color: #6d6065;
}

.journey-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.journey-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid #eedde3;
  border-radius: 28px;
  background: linear-gradient(155deg, #fff 15%, #fff4f7);
  box-shadow: 0 16px 42px rgba(82, 58, 67, 0.09);
}

.journey-card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -72px;
  top: -78px;
  border-radius: 50%;
  background: rgba(255, 148, 170, 0.18);
}

.journey-card--sky { background: linear-gradient(155deg, #fff 15%, #eef9ff); }
.journey-card--sky::after { background: rgba(98, 190, 232, 0.18); }
.journey-card--gold { background: linear-gradient(155deg, #fff 15%, #fff7e7); }
.journey-card--gold::after { background: rgba(230, 177, 61, 0.18); }
.journey-card-country { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; font-size: 1.12rem; }
.journey-card-flag { width: 42px; height: 28px; object-fit: cover; border: 1px solid rgba(69, 54, 59, .13); border-radius: 5px; box-shadow: 0 3px 9px rgba(54, 42, 46, .1); }
.journey-card-label { margin: 22px 0 6px; color: #8a6672; font-size: 0.82rem; font-weight: 900; }
.journey-card h3 { margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif; font-size: 1.7rem; line-height: 1.35; }
.journey-card-copy { margin: 18px 0 26px; line-height: 1.8; }
.journey-card dl { margin: 24px 0; display: grid; gap: 13px; }
.journey-card dl div { padding-top: 12px; border-top: 1px solid rgba(97, 75, 83, 0.12); }
.journey-card dt { color: #8d737c; font-size: 0.72rem; font-weight: 900; }
.journey-card dd { margin: 4px 0 0; font-size: 0.9rem; }
.journey-card-cta {
  min-height: 50px;
  margin-top: auto;
  padding: 11px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 999px;
  color: #fff;
  background: #573b46;
  font-weight: 900;
  text-decoration: none;
}
.journey-card-cta:hover { background: #e94f70; }
.journey-trust { margin-bottom: 54px; }

.journey-switch { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.journey-switch a { min-height: 40px; padding: 7px 11px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #efdce3; border-radius: 999px; background: #fff; font-size: 0.8rem; font-weight: 800; text-decoration: none; }
.journey-switch img { width: 30px; height: 20px; object-fit: cover; border: 1px solid rgba(69, 54, 59, .13); border-radius: 4px; }
.journey-switch a[aria-current="page"] { color: #fff; border-color: #e94f70; background: #e94f70; }

.journey-hero {
  padding: clamp(60px, 9vw, 112px) max(18px, calc((100vw - 920px) / 2));
  border-block: 1px solid #f0dce3;
  background:
    radial-gradient(circle at 90% 12%, rgba(109, 195, 237, 0.28), transparent 18rem),
    linear-gradient(145deg, #fff8fb, #f3fbff);
}
.journey-gold .journey-hero { background: radial-gradient(circle at 88% 12%, rgba(232, 181, 68, 0.22), transparent 18rem), linear-gradient(145deg, #fff8fb, #fffaf0); }
.journey-hero > div { max-width: 840px; }
.journey-country,
.country-with-flag { display: flex; align-items: center; gap: 9px; }
.journey-country { margin: 0 0 13px; color: #8a6672; font-weight: 900; }
.journey-country img,
.country-with-flag img { object-fit: cover; border: 1px solid rgba(69, 54, 59, .13); border-radius: 4px; }
.journey-hero h1 { max-width: 820px; margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif; font-size: clamp(2.45rem, 6vw, 4.35rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.045em; }
.journey-title-duration { white-space: nowrap; }
.journey-hero h1 + p { max-width: 680px; margin: 24px 0 0; color: #5e5055; font-size: 1.04rem; }
.journey-hero dl { max-width: 680px; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.journey-hero dl div { padding: 15px 17px; border: 1px solid rgba(226, 200, 209, 0.85); border-radius: 16px; background: rgba(255,255,255,0.82); }
.journey-hero dt { color: #8b717a; font-size: 0.72rem; font-weight: 900; }
.journey-hero dd { margin: 4px 0 0; font-weight: 900; }

.journey-shell,
.journey-stages,
.journey-official-note {
  width: min(calc(100% - 36px), 920px);
  margin-inline: auto;
}
.journey-shell { padding: clamp(68px, 9vw, 104px) 0 38px; }
.journey-overview { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 30px; align-items: start; }
.journey-overview h2,
.journey-official-note h2 { margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif; font-size: clamp(1.75rem, 5vw, 2.8rem); font-weight: 600; line-height: 1.25; }
.progress-card { padding: 26px; border: 1px solid #ecdce2; border-radius: 24px; background: #fff; box-shadow: 0 14px 38px rgba(82, 58, 67, 0.08); }
.progress-card > p { margin: 0 0 12px; display: flex; justify-content: space-between; gap: 16px; }
.progress-card > p span { color: #e94f70; font-weight: 900; }
.progress-card progress { width: 100%; height: 14px; accent-color: #e94f70; }
.progress-card dl { margin: 22px 0 0; display: grid; gap: 13px; }
.progress-card dl div { padding-top: 12px; border-top: 1px solid #f0e5e9; }
.progress-card dt { color: #8b747c; font-size: 0.76rem; font-weight: 900; }
.progress-card dd { margin: 4px 0 0; }

.personalization { margin-top: 28px; border: 1px solid #dce9ef; border-radius: 22px; background: #f7fcff; }
.personalization > summary { min-height: 72px; padding: 17px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; list-style: none; }
.personalization > summary::-webkit-details-marker { display: none; }
.personalization > summary strong,
.personalization > summary small { display: block; }
.personalization > summary small { margin-top: 3px; color: #66777f; font-weight: 400; }
.personalization[open] > summary > span:last-child { transform: rotate(45deg); }
.personalization form { padding: 0 22px 24px; }
.fixed-trip-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.fixed-trip-fields p { margin: 0; padding: 13px; border-radius: 14px; background: #fff; }
.fixed-trip-fields small,
.fixed-trip-fields strong { display: block; }
.form-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid label { font-size: 0.88rem; font-weight: 800; }
.form-grid input,
.form-grid select { width: 100%; min-height: 48px; margin-top: 6px; padding: 9px 11px; border: 1px solid #c8dbe3; border-radius: 11px; color: #352d30; background: #fff; font: inherit; }
.form-grid label > small { display: block; margin-top: 5px; color: #65747b; font-size: 0.74rem; font-weight: 500; }
.purpose-field { margin: 20px 0 0; padding: 0; border: 0; }
.purpose-field legend { margin-bottom: 10px; font-weight: 900; }
.purpose-field legend small { color: #687980; font-weight: 500; }
.purpose-options { display: flex; flex-wrap: wrap; gap: 9px; }
.purpose-chip input { position: absolute; opacity: 0; pointer-events: none; }
.purpose-chip span { min-height: 43px; padding: 9px 14px; display: inline-flex; align-items: center; border: 1px solid #c7dce5; border-radius: 999px; background: #fff; cursor: pointer; font-weight: 800; }
.purpose-chip input:checked + span { color: #fff; border-color: #e94f70; background: #e94f70; }
.purpose-chip input:focus-visible + span { outline: 3px solid rgba(94, 185, 227, 0.85); outline-offset: 3px; }
.date-error { margin: 14px 0 0; padding: 10px 13px; border-radius: 10px; color: #8a233a; background: #fff0f3; font-weight: 800; }
.form-grid input:focus-visible,
.form-grid select:focus-visible,
.save-trip:focus-visible,
.reset-trip:focus-visible,
.stage-complete:focus-within { outline: 3px solid rgba(94, 185, 227, 0.85); outline-offset: 3px; }
.form-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.save-trip,
.reset-trip { min-height: 46px; padding: 9px 16px; border-radius: 999px; font: inherit; font-weight: 900; cursor: pointer; }
.save-trip { color: #fff; border: 1px solid #e94f70; background: #e94f70; }
.reset-trip { color: #684753; border: 1px solid #d8c4cb; background: #fff; }
.save-status { min-height: 1.5em; margin: 12px 0 0; color: #28704e; font-weight: 800; }
.privacy-note { margin: 7px 0 0; color: #64747b; font-size: 0.8rem; }

.journey-timeline { margin-top: 28px; padding: 22px; border: 1px solid #eee1e6; border-radius: 22px; }
.journey-timeline > h2 { margin: 0 0 13px; font-size: 1.3rem; }
.journey-timeline ol { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.journey-timeline a { min-height: 42px; padding: 8px 11px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #ead8df; border-radius: 999px; background: #fff; font-size: 0.8rem; text-decoration: none; }
.journey-timeline a span { color: #e94f70; font-weight: 900; }

.journey-stages { padding: 20px 0 76px; }
.journey-stage { margin-top: 22px; scroll-margin-top: 20px; border: 1px solid #eadde2; border-radius: 26px; background: #fff; box-shadow: 0 14px 38px rgba(80, 56, 65, 0.07); }
.journey-stage.is-complete { border-color: #afd4bf; background: #fbfffc; }
.stage-header { padding: 22px 24px; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 16px; cursor: pointer; list-style: none; }
.stage-header::-webkit-details-marker { display: none; }
.stage-index { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #583d47; font-weight: 900; }
.stage-location { margin: 0; color: #9a7a84; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.1em; }
.stage-header strong { display: block; margin-top: 2px; font-size: 1.32rem; }
.stage-state { padding: 6px 10px; border-radius: 999px; color: #735964; background: #f8edf1; font-size: 0.75rem; font-weight: 900; }
.is-complete .stage-state { color: #256542; background: #e2f5e9; }
.stage-marker { font-size: 1.45rem; transition: transform 160ms ease; }
.journey-stage[open] .stage-marker { transform: rotate(45deg); }
.stage-detail { border-top: 1px solid #f0e5e9; }
.stage-flow { padding: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stage-block,
.journey-affiliate { padding: 19px; border-radius: 18px; }
.stage-block h3,
.journey-affiliate h3 { margin: 2px 0 9px; font-size: 1rem; }
.stage-block p:not(.section-mini),
.journey-affiliate p:not(.section-mini) { margin: 0; color: #51464a; }
.section-mini { margin: 0; color: #d84e6c; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.11em; }
.stage-next-action { border: 1px solid #eedce2; background: #fff8fa; }
.stage-free { border: 1px solid #cfe7da; background: #f5fcf8; }
.stage-caution { border: 1px solid #f0debb; background: #fffbf2; }
.stage-purchase { border: 1px solid #d6e6ee; background: #f6fbfd; }
.stage-purchase small { display: block; margin-top: 11px; color: #718188; }
.journey-product-note { grid-column: 1 / -1; margin: 0; padding: 13px 16px; border-left: 4px solid #9bb7c3; color: #596a71; background: #f7fafb; font-size: 0.86rem; }
.journey-affiliate { grid-column: 1 / -1; border: 1px solid #efbdc9; background: #fff7f9; }
.journey-affiliate-cta { min-height: 48px; margin-top: 16px; padding: 10px 16px; display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; color: #fff; background: #e94f70; font-weight: 900; text-decoration: none; }
.backup-note { margin-top: 13px; color: #66575c; font-size: 0.86rem; }
.stage-actions { padding: 18px 24px 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid #f2e8ec; }
.stage-complete { min-height: 48px; padding: 10px 14px; display: inline-flex; align-items: center; gap: 10px; border: 1px solid #d9c9cf; border-radius: 13px; cursor: pointer; font-weight: 900; }
.stage-complete input { width: 20px; height: 20px; accent-color: #3c8b61; }
.stage-next { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: #d94565; font-weight: 900; text-decoration: none; }

.journey-official-note { margin-bottom: 100px; padding: clamp(28px, 5vw, 42px); border: 1px solid #e8dce1; border-radius: 28px; background: linear-gradient(145deg, #fff9fb, #f7fcff); }
.journey-official-note > p { max-width: 720px; color: #605459; }
.journey-official-note .observed-date { margin-top: 16px; font-size: 0.84rem; font-weight: 800; }

.mobile-utilities { position: fixed; z-index: 40; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); width: min(calc(100% - 24px), 520px); padding: 7px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; transform: translateX(-50%); border: 1px solid rgba(226, 204, 212, 0.92); border-radius: 18px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 12px 34px rgba(77, 54, 63, 0.18); backdrop-filter: blur(12px); }
.mobile-utilities button { min-height: 48px; padding: 8px 11px; border: 0; border-radius: 13px; color: #5b3d48; background: #fff0f4; font: inherit; font-weight: 900; cursor: pointer; }
.mobile-utilities button:last-child { color: #fff; background: #e94f70; }
.utility-dialog { width: min(calc(100% - 30px), 520px); padding: 0; border: 0; border-radius: 24px; color: #382e32; }
.utility-dialog::backdrop { background: rgba(37, 26, 30, 0.48); }
.dialog-card { position: relative; padding: 28px; }
.dialog-card h2 { margin: 0 36px 14px 0; font-size: 1.35rem; }
.dialog-card li + li { margin-top: 8px; }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f8e8ed; font-size: 1.25rem; cursor: pointer; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 30px); padding: 11px 16px; transform: translateX(-50%); border-radius: 999px; color: #fff; background: #4f3841; box-shadow: 0 8px 24px rgba(0,0,0,.18); font-weight: 800; }
body:has(.mobile-utilities) { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
body.keyboard-active .mobile-utilities { display: none; }

@media (max-width: 860px) {
  .journey-card-grid { grid-template-columns: 1fr; }
  .journey-card { min-height: 0; }
  .journey-overview { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .journey-principles,
  .stage-flow,
  .form-grid { grid-template-columns: 1fr; }
  .journey-switch { max-width: 176px; }
  .journey-switch a { min-height: 38px; padding-inline: 9px; font-size: 0.72rem; }
  .journey-hero { padding-inline: 18px; }
  .journey-hero dl { grid-template-columns: 1fr; }
  .journey-shell,
  .journey-stages,
  .journey-official-note { width: min(calc(100% - 24px), 920px); }
  .stage-header { grid-template-columns: auto 1fr auto; padding: 18px; gap: 11px; }
  .stage-state { grid-column: 2; justify-self: start; }
  .stage-marker { grid-column: 3; grid-row: 1 / span 2; }
  .stage-flow { padding: 18px; }
  .stage-actions { align-items: stretch; flex-direction: column; padding: 16px 18px 20px; }
  .stage-complete,
  .stage-next { width: 100%; justify-content: center; }
  .journey-product-note { grid-column: auto; }
  .journey-timeline ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-timeline a { width: 100%; }
}

@media (max-width: 390px) {
  .journey-timeline ol,
  .fixed-trip-fields { grid-template-columns: 1fr; }
  .journey-hero h1 { font-size: 2.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .personalization > summary > span:last-child,
  .stage-marker { transition: none; }
}
