:root {
  --ink: #231f20;
  --ink-2: #4a4341;
  --line: #e4dbcd;
  --paper: #fbf8f2;
  --card: #ffffff;
  --a: #ea7a11;
  --a-d: #c4161c;
  --a-soft: #fdf1e2;
  --b: #e6007e;
  --b-d: #9b0056;
  --b-soft: #fdeaf4;
  --green: #1f8a4c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(35, 31, 32, 0.05), 0 8px 24px rgba(35, 31, 32, 0.07);
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: inline-block;
}
a {
  color: inherit;
}
.wrap {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}

/* ---------- hero ---------- */
.hero {
  background: radial-gradient(120% 90% at 50% 0%, #fff8ec 0%, #f6ecd8 55%, #efe2c8 100%);
  border-bottom: 1px solid var(--line);
  padding: 38px 0 34px;
  text-align: center;
}
.hero-tag {
  display: inline-block;
  background: var(--a-d);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  padding: 6px 16px;
  border-radius: 999px;
}
.hero h1 {
  margin: 16px 0 6px;
  font-size: clamp(26px, 6.4vw, 50px);
  line-height: 1.24;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.hero p {
  margin: 0;
  color: var(--ink-2);
  font-size: clamp(13px, 3.3vw, 16px);
}
.hero-plans {
  display: grid;
  gap: 10px;
  margin: 26px auto 0;
  max-width: 820px;
  grid-template-columns: 1fr;
}
.hero-plan {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: left;
  box-shadow: var(--shadow);
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.hero-plan:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(35, 31, 32, 0.12);
}
.hero-plan .hp-no {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 15px;
}
.hero-plan.pa .hp-no {
  background: var(--a);
}
.hero-plan.pb .hp-no {
  background: var(--b);
}
.hero-plan .hp-t {
  font-weight: 800;
  font-size: clamp(14px, 3.6vw, 17px);
  line-height: 1.4;
}
.hero-plan .hp-s {
  font-size: 11.5px;
  color: #8b8179;
  letter-spacing: 0.04em;
}
.hero-plan .hp-go {
  margin-left: auto;
  font-size: 18px;
  color: #c5bcb1;
}

/* ---------- plan ---------- */
.plan-head {
  padding: 30px 0 26px;
  color: #fff;
}
.plan-a .plan-head {
  background: linear-gradient(105deg, #c4161c, #ea7a11);
}
.plan-b .plan-head {
  background: linear-gradient(105deg, #9b0056, #e6007e);
}
.plan-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 999px;
}
.plan-title {
  margin: 12px 0 4px;
  font-size: clamp(21px, 5.4vw, 36px);
  line-height: 1.3;
  font-weight: 900;
}
.plan-sub {
  margin: 0;
  font-size: clamp(12px, 3.2vw, 14px);
  opacity: 0.9;
}
.plan-inner {
  padding: 24px 0 46px;
}

/* fare */
.fare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}
.fare-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
}
.fare-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}
.fare-value {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.fare-value b {
  font-size: 26px;
  letter-spacing: -0.01em;
}
.fare-normal {
  background: #f4f1ea;
}
.fare-normal .fare-value {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  color: #8b8179;
}
.fare-pass {
  color: #fff;
}
.plan-a .fare-pass {
  background: linear-gradient(100deg, #c4161c, #e2541b);
}
.plan-b .fare-pass {
  background: linear-gradient(100deg, #9b0056, #e6007e);
}
.fare-pass .fare-label {
  color: rgba(255, 255, 255, 0.85);
}
.fare-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}
.fare-save {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--ink);
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.fare-save b {
  font-size: 17px;
}
.fare-save small {
  font-size: 10px;
  margin-left: 4px;
  opacity: 0.85;
}

/* plan grid */
.plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}
.map {
  margin: 0;
}
.map img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #f6efe2;
  box-shadow: var(--shadow);
}
.map figcaption {
  font-size: 11.5px;
  color: #8b8179;
  margin-top: 8px;
  line-height: 1.6;
}

.sec-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 4px solid currentColor;
}
.plan-a .sec-title {
  color: var(--a-d);
}
.plan-b .sec-title {
  color: var(--b-d);
}
.sec-title small {
  font-size: 11px;
  font-weight: 600;
  color: #8b8179;
  margin-left: 6px;
  letter-spacing: 0.04em;
}
.sec-title-spots {
  margin-top: 38px;
}

/* timeline */
.day {
  margin-bottom: 22px;
}
.day-head {
  margin-bottom: 10px;
}
.day-head span {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  padding: 5px 20px;
  border-radius: 999px;
}
.tl {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tl-item {
  display: grid;
  grid-template-columns: 96px 22px 1fr;
  align-items: start;
  column-gap: 6px;
  position: relative;
  padding: 5px 0;
}
.tl-ic {
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
  background: var(--green);
  border-radius: 6px;
  padding: 5px 4px;
  text-align: center;
  line-height: 1.3;
  margin-top: 2px;
}
.tl-item.is-ic-only .tl-ic {
  opacity: 0.75;
}
.tl-ic:empty,
.tl-ic-blank {
  visibility: hidden;
}
.tl-dot {
  position: relative;
  align-self: stretch;
  min-height: 38px;
}
.tl-dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: -14px;
  width: 7px;
  transform: translateX(-50%);
  background: #d9d2c6;
}
.tl-item:last-child .tl-dot::before {
  bottom: 50%;
}
.tl-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 13px;
  width: 11px;
  height: 11px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  border: 3px solid #9a9086;
}
.plan-a .tl-item:not(.is-ic-only) .tl-dot::after {
  border-color: var(--a);
}
.plan-b .tl-item:not(.is-ic-only) .tl-dot::after {
  border-color: var(--b);
}
.tl-body {
  padding: 1px 0 4px 6px;
  min-height: 24px;
}
.tl-dest {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14.5px;
  line-height: 1.45;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: 0.15s;
}
a.tl-dest:hover {
  border-bottom-color: currentColor;
}
.tl-no {
  flex: none;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 900;
}
.plan-a .tl-no {
  background: var(--a);
}
.plan-b .tl-no {
  background: var(--b);
}
.tl-stay {
  color: #6b6259;
  font-weight: 700;
  font-size: 13.5px;
}
.tl-lunch {
  display: inline-block;
  margin-top: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
}
.plan-a .tl-lunch {
  background: #fdf0d5;
  color: #9a6410;
  border: 1px solid #f0dcb0;
}
.plan-b .tl-lunch {
  background: #fdeaf4;
  color: #a2185f;
  border: 1px solid #f4cfe2;
}

/* cards */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  scroll-margin-top: 76px;
}
.card-media {
  position: relative;
  aspect-ratio: 16/10;
  background: #efe9de;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-no {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.plan-a .card-no {
  background: var(--a);
}
.plan-b .card-no {
  background: var(--b);
}
.card-body {
  padding: 14px 16px 18px;
}
.card-city {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.plan-a .card-city {
  background: var(--a-soft);
  color: #a85a0c;
}
.plan-b .card-city {
  background: var(--b-soft);
  color: #a2185f;
}
.card-title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 800;
}
.card-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-2);
}
.card-note {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: #b3261e;
  background: #fdeceb;
  border-radius: 8px;
  padding: 8px 10px;
}

/* page notes */
.page-notes {
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: #8b8179;
  font-size: 12px;
  line-height: 1.9;
}
.page-notes .wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.foot-note {
  margin: 0;
}

/* ---------- tablet ---------- */
@media (min-width: 680px) {
  .hero-plans {
    grid-template-columns: 1fr 1fr;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .fare {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 18px 22px;
  }
  .fare-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .fare-value {
    font-size: 16px;
  }
  .fare-value b {
    font-size: 30px;
  }
  .tl-item {
    grid-template-columns: 118px 26px 1fr;
  }
  .tl-ic {
    font-size: 12.5px;
  }
  .tl-dest {
    font-size: 15.5px;
  }
}

/* ---------- desktop ---------- */
@media (min-width: 1024px) {
  body {
    font-size: 16px;
  }
  .hero {
    padding: 56px 0 50px;
  }
  .plan-head {
    padding: 40px 0 34px;
  }
  .plan-inner {
    padding: 30px 0 64px;
  }
  .plan-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.85fr);
    gap: 32px;
    align-items: start;
  }
  .route {
    position: sticky;
    top: 82px;
  }
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
  .card-title {
    font-size: 18px;
  }
  .sec-title {
    font-size: 16px;
  }
}
@media (min-width: 1360px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- fixes --- */
.plan {
  scroll-margin-top: 62px;
}
.tl-ic-empty {
  background: transparent;
}
.tl-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-plan .hp-t,
.hero-plan .hp-s {
  display: block;
}
.hero-plan > span:nth-child(2) {
  min-width: 0;
}
.card-media {
  overflow: hidden;
  flex: 0 0 auto;
}
.card-media img {
  position: absolute;
  inset: 0;
}
.map-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.map-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(35, 31, 32, 0.78);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(24, 21, 19, 0.96);
  display: none;
  overflow: auto;
  padding: 56px 12px 24px;
  -webkit-overflow-scrolling: touch;
}
.lightbox.open {
  display: block;
}
.lightbox img {
  margin: 0 auto;
  max-width: none;
  width: auto;
  min-width: min(100%, 900px);
  height: auto;
  border-radius: 8px;
}
.lightbox-close {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 101;
  background: #fff;
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 18px;
  cursor: pointer;
}
@media print {
  .plan-head {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* --- fare extra note --- */
.fare-extra {
  margin: 10px 2px 0;
  font-size: 11.5px;
  color: #8b8179;
  text-align: right;
}

/* --- route chart tags (set-ticket / gate) --- */
.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}
.tl-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  line-height: 1.5;
  white-space: nowrap;
}
.tl-tag-set {
  background: #e6f3f1;
  color: #136f63;
  border: 1px solid #bfe3dd;
}
.tl-tag-gate {
  background: #f4f1ea;
  color: #6b6259;
  border: 1px solid var(--line);
}

/* --- card without photo: price-table card --- */
.card-price .card-body {
  padding: 16px;
}
.card-head-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.card-no-static {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
}
.plan-a .card-no-static {
  background: var(--a);
}
.plan-b .card-no-static {
  background: var(--b);
}
.card-head-inline .card-title {
  margin: 0;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin: 10px 0;
}
.price-table-title {
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--ink);
}
.price-table th,
.price-table td {
  padding: 7px 6px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.price-table thead th {
  font-size: 11px;
  color: var(--ink-2);
  font-weight: 700;
  background: #f6f1e8;
}
.price-table td:first-child,
.price-table th:first-child {
  text-align: left;
  font-weight: 700;
}
.price-table .price-note {
  font-size: 11px;
  color: var(--ink-2);
  font-weight: 400;
  line-height: 1.7;
  margin: 0 0 8px;
}
.price-table-foot {
  font-size: 10.5px;
  color: #8b8179;
  text-align: right;
  margin: 4px 0 0;
}

/* --- photo credit --- */
.card-credit {
  font-size: 10.5px;
  color: #8b8179;
  margin: 6px 0 0;
  text-align: right;
}
