:root {
  --blue:         #005AAB;
  --blue-dark:    #368AD5;
  --blue-deeper:  #003F78;
  --blue-vivid:   #0A70E3;
  --blue-light:   #EBF4FC;
  --white:        #ffffff;
  --off-white:    #F9F9F8;
  --gray-100:     #D0D0D9;
  --gray-200:     #9EAAB1;
  --gray-400:     #656568;
  --gray-600:     #5F6368;
  --text:         #191A1C;
  --sans:         "Gen Interface JP", Helvetica, "Hiragino Sans", "Noto Sans JP", sans-serif;
  --sans-bold:    "Gen Interface JP-Bold", Helvetica, "Hiragino Sans", "Noto Sans JP", sans-serif;
  --transition:   0.18s ease;
}

@font-face { font-family: "Gen Interface JP"; src: url("/fonts/gen-interface-jp/GenInterfaceJP-Regular.woff2") format("woff2"), local("Gen Interface JP"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gen Interface JP-Bold"; src: url("/fonts/gen-interface-jp/GenInterfaceJP-Bold.woff2") format("woff2"), local("Gen Interface JP-Bold"); font-weight: 700; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
body { font-family: var(--sans); font-size: 18px; line-height: 1.8; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

.breadcrumb { background: transparent; border-bottom: none; padding: 0; }
.breadcrumb__inner {
  max-width: 1200px; margin: 0 auto; padding: 12px 48px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--gray-600);
}
.breadcrumb a { color: var(--blue); text-decoration: underline; transition: color var(--transition); }
.breadcrumb a:hover { color: var(--blue-dark); }
.breadcrumb__sep { color: var(--gray-400); font-size: 11px; }
.breadcrumb__cur { color: var(--text); font-weight: 500; }

.page-layout { max-width: 1200px; margin: 0 auto; padding: 56px 48px; }
.page-main { min-width: 0; }
.page-main > .detail-section,
.page-main > .purchase-cta { margin-top: 120px; }
.page-main > :first-child { margin-top: 0 !important; }

.route-title {
  font-size: 48px; font-weight: 800; color: var(--text);
  letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 14px;
  font-family: var(--sans-bold);
}
.route-title__arrow { display: inline-block; vertical-align: middle; margin: 0 6px; color: var(--blue); font-size: 20px; }

.detail-section { margin-bottom: 48px; }
.detail-section__title {
  font-size: 36px; font-weight: 700; color: var(--text);
  letter-spacing: -0.01em;
  padding-bottom: 16px; border-bottom: 2px solid var(--text);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans-bold);
}

.route-diagram {
  border: 1px solid var(--gray-200);
  aspect-ratio: 2 / 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.route-diagram img { width: 100%; height: 100%; object-fit: cover; display: block; }
.route-diagram__note { font-size: 18px; color: var(--text); margin-top: 16px; list-style: none; }
.route-diagram__note li { margin-bottom: 4px; }

.fare-block { border: 1px solid var(--gray-200); border-radius: 8px; padding: 24px 28px; margin-bottom: 20px; }
.fare-block__row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.fare-block__row:last-of-type { margin-bottom: 0; }
.fare-block__label { font-size: 18px; color: var(--text); min-width: 44px; }
.fare-block__amount { font-size: 22px; font-weight: 800; color: var(--blue-deeper); letter-spacing: -0.01em; }
.fare-block__notes { list-style: none; margin: 18px 0 0; padding: 0; }
.fare-block__notes li { position: relative; padding-left: 14px; font-size: 18px; color: var(--text); line-height: 1.8; }
.fare-block__notes li::before { content: '・'; position: absolute; left: 0; color: var(--gray-400); }

.offline-list { list-style: none; margin: 0; padding: 0; }
.offline-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--gray-100); font-size: 18px; }
.offline-item:last-child { border-bottom: none; }
.offline-item span { font-size: 18px; color: var(--text); }
.offline-intro { font-size: 18px; color: var(--text); margin-bottom: 16px; }

.notes-box ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
.notes-box li { font-size: 18px; color: var(--text); padding-left: 14px; position: relative; }
.notes-box li::before { content: '・'; position: absolute; left: 0; color: var(--gray-400); }

.fare-block__notes a,
.offline-item span a,
.offline-intro a,
.notes-box a,
.route-diagram__note a {
  color: var(--blue); text-decoration: underline; transition: color var(--transition);
}
.fare-block__notes a:hover,
.offline-item span a:hover,
.offline-intro a:hover,
.notes-box a:hover,
.route-diagram__note a:hover {
  color: var(--blue-dark);
}

.purchase-cta { background: var(--blue); border-radius: 12px; padding: 52px 40px; text-align: center; }
.purchase-cta__title { font-size: 24px; font-weight: 700; color: #fff; letter-spacing: -0.01em; margin-bottom: 16px; font-family: var(--sans-bold); }
.purchase-cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.purchase-cta__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: transparent; color: #fff; border: 2px solid #fff;
  padding: 10px 32px; font-size: 18px; font-weight: 700;
  text-decoration: none; font-family: var(--sans);
  border-radius: 100px;
  transition: opacity var(--transition), background var(--transition);
  letter-spacing: 0.02em;
  flex: 0 0 420px; white-space: nowrap; text-align: center;
}
.purchase-cta__btn:hover { background: rgba(255,255,255,0.15); opacity: 1; }
.purchase-cta__actions .purchase-cta__btn:first-child { background: #fff; color: var(--blue); border: none; }
.purchase-cta__actions .purchase-cta__btn:first-child:hover { opacity: 0.88; background: #fff; }

.floating-cta-bar {
  position: fixed; left: 50%; bottom: 28px;
  width: min(720px, calc(100% - 40px));
  display: flex; gap: 12px; z-index: 300;
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity 0.32s ease, transform 0.32s ease;
}
.floating-cta-bar.visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.floating-cta-bar .btn-primary {
  flex: 1; justify-content: center; text-align: center;
  padding: 16px 16px; font-size: 18px; font-weight: 700; line-height: 1.35;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2); border-radius: 100px;
}
.floating-cta-bar a:last-child { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.floating-cta-bar a:last-child:hover { background: var(--blue); color: #fff; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff;
  padding: 12px 24px; font-size: 18px; font-weight: 600;
  border-radius: 100px; font-family: var(--sans);
  letter-spacing: 0.03em; transition: background var(--transition);
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-primary:active { background: var(--blue-deeper); }

@media (max-width: 768px) {
  .breadcrumb__inner { padding: 10px 20px; font-size: 10px; flex-wrap: wrap; }
  .page-layout { max-width: 100%; margin: 0; padding: 32px 20px; }
  .page-main > .detail-section,
  .page-main > .purchase-cta { margin-top: 48px; }
  .route-title { font-size: 28px; }
  .offline-intro { font-size: 12px; }
  .detail-section__title { font-size: 24px; }
  .fare-block { padding: 20px; }
  .fare-block__amount { font-size: 20px; }
  .purchase-cta { padding: 36px 24px; }
  .purchase-cta__title { font-size: 16px; }
  .purchase-cta__actions { flex-direction: column; align-items: stretch; }
  .purchase-cta__btn { flex: 0 0 auto; max-width: none; padding: 10px 24px; font-size: 16px; border-radius: 100px; white-space: normal; }
  .floating-cta-bar { bottom: 16px; width: calc(100% - 24px); flex-direction: column; gap: 8px; }
  .floating-cta-bar .btn-primary { padding: 13px 16px; font-size: 16px; }
  .fare-block__label { font-size: 12px; }
  .route-diagram__note { font-size: 12px; }
  .fare-block__notes li { font-size: 12px; }
  .offline-item { font-size: 12px; }
  .offline-item span { font-size: 12px; }
  .notes-box li { font-size: 12px; }
  .btn-primary { font-size: 16px; }
}