/* /ski/higaeri/ 専用。共通3枚の最後に読み込む */
html:has(.higaeri-page){
  scroll-behavior: auto !important;
}
.higaeri-page{
  --hg-navy:#122846;
  --hg-blue:#276ec7;
  --hg-green:#137452;
  --hg-ink:#182d45;
  color:var(--hg-ink);
  background:#fff;
  overflow-x: clip;
}
.higaeri-page *{
  box-sizing:border-box;
}
.higaeri-page button,
.higaeri-page a{
  font:inherit;
}
.higaeri-container{
  width:min(1120px,calc(100% - 40px));
  margin-inline:auto;
}
.higaeri-page [id]{
  scroll-margin-top:95px;
}
.higaeri-page a{
  text-decoration:none;
}
.higaeri-page :is(a,button):focus-visible{
  outline:3px solid #e9a900;
  outline-offset:4px;
}
.higaeri-hero{
  position:relative;
  isolation:isolate;
  min-height:560px;
  display:flex;
  align-items:center;
  color:#fff;
  background:#204366;
}
.higaeri-hero__visual{
  position:absolute;
  inset:0;
  z-index:-1;
  overflow: hidden;
}
.higaeri-hero__visual img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 42%;
}
.higaeri-hero__visual::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(9,30,57,.56) 0%,rgba(9,30,57,.30) 38%,rgba(9,30,57,.06) 72%,transparent 100%);
}
.higaeri-hero__inner{
  width:min(1120px,calc(100% - 40px));
  margin:70px auto;
}
.higaeri-hero__season,
.higaeri-eyebrow{
  font-size:13px;
  font-weight:800;
  letter-spacing:.2em;
}
.higaeri-hero__season{
  color:#a9dbff;
}
.higaeri-page .higaeri-hero h2{
  max-width:850px;
  margin:18px 0 24px;
  font-size:clamp(32px,5.1vw,65px);
  font-weight:900;
  line-height:1.27;
  letter-spacing:.02em;
  text-shadow:0 2px 16px #0a294a6e;
}
.higaeri-page .higaeri-hero h2 span{
  font-size:.78em;
}
.higaeri-hero__lead{
  font-size:clamp(16px,1.7vw,21px);
  font-weight:700;
  line-height:1.8;
  text-shadow:0 2px 10px rgba(7,24,45,.7);
}
.higaeri-hero__actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:30px;
}
.higaeri-btn{
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  min-width:235px;
  min-height:56px;
  padding:13px 22px;
  border:1px solid #fff;
  border-radius:999px;
  font-weight:800!important;
  cursor:pointer;
  transition:transform .2s,background .2s,box-shadow .2s;
  font-size: 14px!important;
}
.higaeri-btn:hover{
  transform:translateY(-3px);
  box-shadow:0 9px 25px #091d3b55;
}
.higaeri-btn--primary{
  background:#fff;
  color:var(--hg-navy);
}
.higaeri-btn--outline{
  background:#fff1;
  color:#fff!important;
}
.higaeri-jump{
  background:#fff;
  box-shadow:0 4px 18px #18345114;
}
.higaeri-page .higaeri-jump .higaeri-jump__inner{
  display:flex;
  justify-content:center;
  gap:0;
}
.higaeri-page .higaeri-jump .higaeri-jump__inner > a{
  flex:1;
  max-width:350px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding:20px 8px;
  color:var(--hg-navy);
  font-weight:800;
  border-right:1px solid #e5edf6;
  font-size: 14px!important;
}
.higaeri-page .higaeri-jump .higaeri-jump__inner > a:first-child{
  border-left:1px solid #e5edf6;
}
.higaeri-page .higaeri-jump .higaeri-jump__inner > a:hover{
  background:#edf6ff;
  color:var(--hg-blue);
}
.higaeri-intro{
  text-align:center;
  padding-block:84px 92px;
}
.higaeri-eyebrow{
  color:var(--hg-blue);
  margin:0 0 14px;
}
.higaeri-page .higaeri-intro h2,
.higaeri-page .higaeri-types h2,
.higaeri-page .higaeri-lineup h2,
.higaeri-page .higaeri-guide h2{
  margin:0;
  color:var(--hg-navy);
  font-size:clamp(26px,3vw,38px);
  font-weight:900;
  line-height:1.4;
}
.higaeri-intro>p:last-child{
  max-width:1160px;
  margin:22px auto 0;
  font-size:16px;
  line-height:2;
}
.higaeri-types{
  padding:78px 0 90px;
  background:#f1f7fc;
}
.higaeri-section-lead{
  margin:12px 0 34px;
  line-height:1.8;
}
.higaeri-types__grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.higaeri-type{
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:30px;
  border:1px solid #e0eaf2;
  border-radius:22px;
  background:#fff;
  box-shadow:0 14px 35px #12375d0a;
}
.higaeri-type__top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:#3070a9;
  font-weight:900;
  font-size:12px;
  letter-spacing:.08em;
}
.higaeri-type__top span:last-child{
  font-size:31px;
  line-height:1;
}
.higaeri-type h3{
  margin:22px 0 4px;
  color:var(--hg-navy);
  font-size:30px;
  font-weight:900;
}
.higaeri-type__tagline{
  font-weight:800;
  font-size:16px;
}
.higaeri-type>p:not(.higaeri-type__tagline){
  line-height:1.85;
  flex:1;
  font-size: 12px;
}
.higaeri-type__action{
  width:100%;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-top:22px;
  padding:14px 18px;
  border:0;
  border-radius:12px;
  background:var(--hg-blue);
  color:#fff;
  font-weight:800!important;
  cursor:pointer;
  transition:filter .2s,transform .2s;
  font-size: 14px!important;
}
.higaeri-type__action:hover{
  filter:brightness(1.12);
  transform:translateY(-2px);
}
.higaeri-type__detail{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:10px;
  padding:11px 18px;
  border:1px solid #d7e3ec;
  border-radius:12px;
  color:var(--hg-navy);
  font-size:14px;
  font-weight:800;
  text-decoration:none;
  transition:background .2s,border-color .2s;
}
.higaeri-type__detail:hover{
  background:#f3f8fc;
  border-color:var(--hg-blue);
}
.higaeri-type--night .higaeri-type__action{
  background:#434e99;
}
.higaeri-type--jr .higaeri-type__action{
  background:var(--hg-green);
}
.higaeri-type--night .higaeri-type__top{
  color:#434e99;
}
.higaeri-type--jr .higaeri-type__top{
  color:var(--hg-green);
}
.higaeri-types__note{
  margin:20px 0 0;
  font-size:12px;
  color:#536579;
}
.higaeri-lineup{
  padding:80px 0 100px;
}
.higaeri-lineup__heading>p:last-child{
  margin:12px 0 30px;
  line-height:1.8;
}
.higaeri-guide{
  padding:78px 0 90px;
  background:#eaf5fb;
}
.higaeri-guide__grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  margin-top:32px;
}
.higaeri-guide__grid>div{
  padding:24px 26px;
  background:#fff;
  border-radius:17px;
}
.higaeri-guide__grid span{
  color:var(--hg-blue);
  font-size:20px;
  font-weight:900;
}
.higaeri-guide__grid h3{
  margin:12px 0;
  color:var(--hg-navy);
  font-size:20px;
}
.higaeri-guide__grid p{
  margin:0;
  line-height:1.8;
}
.higaeri-end{
  padding:36px 0;
  background:var(--hg-navy);
  color:#fff;
}
.higaeri-end .higaeri-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.higaeri-end p{
  margin:0;
  font-weight:800;
}
.higaeri-end a{
  display:inline-flex;
  gap:30px;
  justify-content:space-between;
  min-width:230px;
  padding:13px 20px;
  border:1px solid #fff;
  border-radius:999px;
  color:#fff;
  font-weight:800;
}
.higaeri-end a:hover{
  background:#fff;
  color:var(--hg-navy);
}
@media(max-width:800px){
  .higaeri-types__grid,
.higaeri-guide__grid{
    grid-template-columns:1fr;
  }
  .higaeri-type{
    padding:25px;
  }
  .higaeri-type h3{
    margin-top:10px;
  }
  .higaeri-type__action{
    margin-top:8px;
  }
}
@media(max-width:640px){
  .higaeri-page .higaeri-container,
.higaeri-hero__inner{
    width:calc(100% - 32px);
  }
  .higaeri-hero{
    min-height:540px;
    align-items:end;
  }
  .higaeri-hero__visual{
    background:none;
  }
  .higaeri-hero__visual img{
    object-position:center;
  }
  .higaeri-hero__visual::after{
    background:linear-gradient(0deg,rgba(9,30,57,.70) 0%,rgba(9,30,57,.34) 42%,rgba(9,30,57,.03) 78%,transparent 100%);
  }
  .higaeri-hero__inner{
    margin:80px auto 42px;
  }
  .higaeri-page .higaeri-hero h2{
    margin:12px 0 16px;
  }
  .higaeri-hero__actions{
    flex-direction:column;
  }
  .higaeri-btn{
    width:100%;
  }
  .higaeri-page .higaeri-jump .higaeri-jump__inner{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 8px;
    gap: 0;
    align-items: stretch;
    overflow: visible;
  }
  .higaeri-page .higaeri-jump .higaeri-jump__inner > a{
    display: flex;
    float: none;
    flex: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 54px;
    margin: 0;
    padding: 10px 3px;
    gap: 2px;
    border: 0;
    border-radius: 0;
    white-space: normal;
    line-height: 1.3;
    font-size: clamp(10px, 2.8vw, 12px);
    text-align: center;
  }
  .higaeri-page .higaeri-jump .higaeri-jump__inner > a > span{
    flex: 0 0 auto;
  }
  .higaeri-page .higaeri-jump .higaeri-jump__inner > a:first-child{
    border-left: 0;
  }
  .higaeri-intro{
    padding-block:64px;
  }
  .higaeri-types,
.higaeri-guide{
    padding-block:60px;
  }
  .higaeri-lineup{
    padding-block:62px;
  }
  .higaeri-end .higaeri-container{
    display:block;
  }
  .higaeri-end a{
    margin-top:14px;
    width:100%;
  }
}

/* /ski/higaeri/bus.php と /ski/higaeri/jr.php の共通スタイル */
.higaeri-detail { --detail-accent:#276ec7; --detail-soft:#edf5ff; }
.higaeri-detail--jr { --detail-accent:#137452; --detail-soft:#edf8f3; }
.higaeri-detail__hero { position:relative; isolation:isolate; display:flex; align-items:center; min-height:480px; padding:88px 0; color:#fff; background:#153b60; overflow:hidden; }
.higaeri-detail__hero > .higaeri-container { position:relative; z-index:1; }
.higaeri-detail__hero-visual { position:absolute; inset:0; z-index:0; }
.higaeri-detail__hero-visual img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
.higaeri-detail__hero-visual::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(7,30,56,.58) 0%,rgba(7,30,56,.32) 36%,rgba(7,30,56,.06) 70%,transparent 100%); }
/*.higaeri-detail--jr .higaeri-detail__hero-visual::after { background:linear-gradient(90deg,rgba(8,52,46,.84) 0%,rgba(8,52,46,.65) 35%,rgba(8,52,46,.16) 70%,rgba(8,52,46,.04) 100%); }*/
.higaeri-detail .higaeri-detail__hero h2 { max-width:930px; margin:14px 0 18px; font-size:clamp(32px,5vw,62px); font-weight:900; line-height:1.3; text-shadow:0 2px 14px rgba(7,24,45,.72); }
.higaeri-detail .higaeri-detail__hero h2 span { font-size:.72em; }
.higaeri-detail__hero p:not(.higaeri-hero__season) { font-size:clamp(16px,1.8vw,21px); font-weight:700; line-height:1.8; text-shadow:0 2px 10px rgba(7,24,45,.7); }
.higaeri-detail .higaeri-jump__inner > a { max-width:none; }
.higaeri-detail__intro { padding-block:78px 84px; }
.higaeri-detail .higaeri-eyebrow { color:var(--detail-accent); }
.higaeri-detail__hero .higaeri-hero__season { color:#c8eeff; }
.higaeri-detail h2:not(#page-title) { margin:0; color:var(--hg-navy); font-size:clamp(26px,3vw,38px); font-weight:900; line-height:1.4; }
.higaeri-detail__intro > p:not(.higaeri-eyebrow) { max-width:1140px; margin:16px 0 0; line-height:1.9; font-size: 14px!important; }
.higaeri-detail__choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-top:30px; }
.higaeri-detail__choice { display:flex; flex-direction:column; gap:10px; padding:28px; border:1px solid #dce9f4; border-radius:20px; background:#fff; box-shadow:0 12px 30px #12375d0d; color:var(--hg-navy); }
.higaeri-detail__choice > span { color:var(--detail-accent); font-size:12px; font-weight:900; letter-spacing:.12em; }
.higaeri-detail__choice > strong { font-size:28px; }
.higaeri-detail__choice > small { flex:1; font-size:14px; line-height:1.8; }
.higaeri-detail__choice > b { color:var(--detail-accent); font-size:14px; }
.higaeri-detail__choice--night > span,.higaeri-detail__choice--night > b { color:#434e99; }
.higaeri-detail__choice:hover { border-color:var(--detail-accent); transform:translateY(-2px); }
.higaeri-detail__lineup { padding:76px 0 92px; background:var(--detail-soft); }
.higaeri-detail__lineup--night { background:#f1f1fb; }
.higaeri-detail__lineup--night .higaeri-eyebrow { color:#434e99; }
.higaeri-detail__heading { margin-bottom:30px; }
.higaeri-detail__heading > p:not(.higaeri-eyebrow) { line-height:1.8; font-size: 14px; margin-bottom: 15px; }
.higaeri-detail__search { display:inline-flex; align-items:center; justify-content:space-between; gap:18px; min-height:48px; padding:10px 20px; border:0; border-radius:999px; background:var(--detail-accent); color:#fff; font-size:14px!important; font-weight:800!important; cursor:pointer; }
.higaeri-detail__lineup--night .higaeri-detail__search { background:#434e99; }
.higaeri-detail__search:hover { filter:brightness(1.12); }
.higaeri-detail__help { padding:76px 0 90px; }
.higaeri-detail__tips { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-top:30px; }
.higaeri-detail__tips > div { padding:24px; border:1px solid #e3edf4; border-radius:16px; background:#fff; }
.higaeri-detail__tips strong { color:var(--detail-accent); font-size:18px; }
.higaeri-detail__tips p { margin:10px 0 0; font-size:14px; line-height:1.8; }
.higaeri-detail__footer { padding:32px 0; background:var(--hg-navy); }
.higaeri-detail__footer .higaeri-container { display:flex; gap:14px; flex-wrap:wrap; }
.higaeri-detail__footer a { display:inline-flex; align-items:center; min-height:46px; padding:10px 18px; border:1px solid #fff; border-radius:999px; color:#fff; font-size:14px; font-weight:800; }
.higaeri-detail__footer a:hover { background:#fff; color:var(--hg-navy); }
@media(max-width:800px) { .higaeri-detail__tips { grid-template-columns:1fr; } }
@media(max-width:640px) { .higaeri-detail__hero { min-height:500px; padding:70px 0 46px; align-items:flex-end; } .higaeri-detail__hero-visual img { object-position:72% center; } .higaeri-detail__hero-visual::after { background:linear-gradient(0deg,rgba(7,30,56,.68) 0%,rgba(7,30,56,.35) 45%,rgba(7,30,56,.03) 80%,transparent 100%); } .higaeri-detail--jr .higaeri-detail__hero-visual::after { background:linear-gradient(0deg,rgba(8,52,46,.68) 0%,rgba(8,52,46,.35) 45%,rgba(8,52,46,.03) 80%,transparent 100%); } .higaeri-detail__choices { grid-template-columns:1fr; } .higaeri-detail__intro,.higaeri-detail__lineup,.higaeri-detail__help { padding-block:60px; } .higaeri-detail__footer a { width:100%; } }


/* =========================================================
   バスページ：小物販売・時刻表・運行ルート
========================================================= */

.bus-detail-section {
  width: min(1120px, calc(100% - 40px));
  margin: 44px auto 0;
  overflow: hidden;
  border: 1px solid #d7e8f4;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(6, 78, 124, 0.1);
}

.bus-detail-section__heading {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 34px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #087bf5 0%, #064e7c 100%);
}

.bus-detail-section__heading::after {
  content: "";
  position: absolute;
  top: -65px;
  right: -30px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.05);
}

.bus-detail-section__icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(4px);
}

.bus-detail-section__icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bus-detail-section__heading > div {
  position: relative;
  z-index: 1;
}

.bus-detail-section__label {
  margin: 0 0 4px;
  color: #bfe5ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.bus-detail-section__heading h2 {
  margin: 0;
  color: #fff!important;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.3;
}

.bus-detail-section__heading div > p:last-child {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.7;
}

.bus-detail-section__body {
  padding: 32px 34px 36px;
  background: linear-gradient(180deg, #f7fbfe 0, #fff 170px);
}

/* include側の横幅・余白をセクション内に統一 */
.bus-detail-section__body > .main-in {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* 小物販売 */
.bus-item-panel .bo-b_ble-gray {
  margin: 0 0 18px!important;
  padding: 0!important;
  border: 0!important;
  color: #064e7c!important;
  font-size: 14px!important;
}

.bus-item-panel h2::before,
.bus-item-panel h2::after,
.bus-detail-section__heading h2::before,
.bus-detail-section__heading h2::after {
  display: none !important;
  content: none !important;
}

.bus-item-panel .h-gray_x_blu {
  border: 0;
  border-radius: 10px 10px 0 0;
  color: #064e7c;
  background: #eaf6ff;
}

.bus-item-panel img {
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(6, 78, 124, 0.12);
}

.bus-item-panel table.normal {
  overflow: hidden;
  border-radius: 0 0 10px 10px;
}

/* 時刻表タブ・表 */
.bus-time-switcher {
  position: relative;
}

.bus-time-switcher > .panel-radios {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.bus-time-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 920px;
  margin: 0 auto 24px;
}

/* 旧 top.css の #tabs-list 系指定より優先する */
#tabs-list.bus-time-tabs {
  width: 100%;
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  box-sizing: border-box;
}

.bus-time-tab {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 12px 20px;
  border: 2px solid #c9e0ef;
  border-radius: 16px;
  color: #064e7c;
  background: #fff;
  box-shadow: 0 7px 18px rgba(6, 78, 124, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#tabs-list.bus-time-tabs .bus-time-tab {
  border: 1px solid #d7e8f4;
  box-sizing: border-box;
}

.bus-time-tab:hover {
  border-color: #087bf5;
  transform: translateY(-2px);
  box-shadow: 0 11px 24px rgba(6, 78, 124, 0.15);
}

.bus-time-tab__icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ffb400, #e27300);
  font-size: 23px;
  line-height: 1;
}

.bus-time-tab--night .bus-time-tab__icon {
  background: linear-gradient(135deg, #526db2, #172d63);
}

.bus-time-tab--return .bus-time-tab__icon {
  background: linear-gradient(135deg, #47c4c4, #249696);
}

.bus-time-tab small,
.bus-time-tab strong {
  display: block;
}

.bus-time-tab small {
  margin-bottom: 2px;
  color: #6a8192;
  font-size: 11px;
  font-weight: 700;
}

.bus-time-tab strong {
  font-size: 18px;
  font-weight: 900;
}

#panel-1-ctrl:checked ~ .bus-time-tabs [for="panel-1-ctrl"],
#panel-4-ctrl:checked ~ .bus-time-tabs [for="panel-4-ctrl"],
#panel-5-ctrl:checked ~ .bus-time-tabs [for="panel-5-ctrl"] {
  border-color: transparent !important;
  outline: 0;
  color: #fff;
  background: linear-gradient(135deg, #ff8303, #e26600);
  box-shadow: 0 12px 28px rgba(6, 78, 124, 0.24);
}

#panel-4-ctrl:checked ~ .bus-time-tabs [for="panel-4-ctrl"] {
  background: linear-gradient(135deg, #315caa, #172d63);
}

#panel-5-ctrl:checked ~ .bus-time-tabs [for="panel-5-ctrl"] {
  background: linear-gradient(135deg, #31aaaa, #197f8a);
  box-shadow: 0 12px 28px rgba(49, 170, 170, 0.28);
}

#panel-1-ctrl:checked ~ .bus-time-tabs [for="panel-1-ctrl"] small,
#panel-4-ctrl:checked ~ .bus-time-tabs [for="panel-4-ctrl"] small,
#panel-5-ctrl:checked ~ .bus-time-tabs [for="panel-5-ctrl"] small {
  color: rgba(255, 255, 255, 0.78);
}

.bus-time-panels {
  border: 1px solid #d7e8f4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(6, 78, 124, 0.07);
}

/* 旧 top.css の #panels 指定を時刻表内だけでリセット */
#panels.bus-time-panels {
  width: 100%;
  max-width: none;
  border: 1px solid #d7e8f4 !important;
  box-sizing: border-box;
}

.bus-time-panel {
  display: none;
  width: 100%;
  max-width: none;
  padding: 24px 28px 28px;
  box-sizing: border-box;
}

#panels.bus-time-panels > .bus-time-panel {
  float: none;
  width: 100% !important;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

#panel-1-ctrl:checked ~ .bus-time-panels #panel-1,
#panel-4-ctrl:checked ~ .bus-time-panels #panel-4,
#panel-5-ctrl:checked ~ .bus-time-panels #panel-5 {
  display: block;
}

.bus-time-note {
  margin: 0 0 10px;
  color: #657b8d;
  font-size: 12px;
  text-align: right;
}

.bus-time-table {
  width: 100% !important;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  table-layout: fixed;
  box-sizing: border-box;
}

.bus-time-table th,
.bus-time-table td {
  padding: 13px 15px;
  border-color: #dce9f2;
  vertical-align: middle;
}

.bus-time-table > thead th,
.bus-time-table > thead td {
  color: #fff;
  background: #064e7c;
}

.bus-time-table__departure {
  border-bottom: 4px double #8ca9bc;
}

.bus-time-table__arrival {
  border-top: 4px double #8ca9bc;
}

/* PC：旧CSSの幅・float指定をリセットし、時刻表をパネル全幅で表示 */
@media (min-width: 769px) {
  #panels.bus-time-panels {
    overflow: hidden;
  }

  #panels.bus-time-panels > section.bus-time-panel {
    position: static !important;
    float: none !important;
    clear: both;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 28px 32px 32px !important;
  }

  #panels.bus-time-panels .bus-time-note {
    display: block;
    width: 100%;
    margin: 0 0 18px !important;
    padding: 11px 15px;
    border-left: 4px solid #087bf5;
    border-radius: 0 8px 8px 0;
    color: #426175;
    background: #eff8fd;
    box-sizing: border-box;
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
  }

  #panels.bus-time-panels table.normal.bus-time-table {
    display: table !important;
    float: none !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed !important;
  }

  #panels.bus-time-panels .bus-time-table th,
  #panels.bus-time-panels .bus-time-table td {
    height: auto;
    padding: 14px 18px;
    border-color: #d9e6ef;
    box-sizing: border-box;
    font-size: 13px;
    line-height: 1.55;
  }

  #panels.bus-time-panels .bus-time-table tbody th {
    color: #17394f;
    background: #f4f8fb;
  }

  #panels.bus-time-panels .bus-time-table tbody tr:nth-child(even) td {
    background: #f9fcfe;
  }

  #panels.bus-time-panels .bus-time-table tbody strong {
    color: #083f68;
    font-size: 1.06em;
  }

  #panels.bus-time-panels .bus-time-alert {
    width: 100%;
    margin: 18px 0 0 !important;
    box-sizing: border-box;
  }
}

.bus-time-alert {
  margin: 14px 0 0;
  padding: 11px 14px;
  border-radius: 10px;
  color: #a13d2d;
  background: #fff4f1;
  font-size: 12px;
  line-height: 1.65;
}

/* 運行ルート */
.bus-route-group + .bus-route-group {
  margin-top: 34px;
}

.bus-route-group-title {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 12px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  color: #064e7c;
  background: transparent;
}

.bus-route-group-title::before,
.bus-route-group-title::after {
  display: none !important;
  content: none !important;
}

.bus-route-group-title .fas {
  grid-row: 1 / 3;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  color: #fff !important;
  background: linear-gradient(135deg, #087bf5, #064e7c);
  font-size: 20px;
}

.bus-route-group-title span {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.3;
}

.bus-route-group-title small {
  color: #657b8d;
  font-size: 12px;
  font-weight: 500;
}

.bus-route-grid {
  display: grid !important;
  gap: 16px;
  width: 100%;
}

.bus-route-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bus-route-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bus-route-card {
  position: relative;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 20px;
  border: 1px solid #d7e8f4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(6, 78, 124, 0.07);
}

.bus-route-card h3 {
  margin: -20px -20px 18px;
  border: 0;
  border-radius: 16px 16px 0 0;
  color: #fff;
  background: linear-gradient(135deg, #087bf5, #064e7c);
}

.bus-route-card--night h3 {
  background: linear-gradient(135deg, #315caa, #172d63);
}

.bus-route-card p {
  position: relative;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.6;
}

.bus-route-panel .bus-route-card {
  color: #087bf5 !important;
}

@media (max-width: 767px) {
  .bus-detail-section {
    width: calc(100% - 24px);
    margin-top: 28px;
    border-radius: 18px;
  }

  .bus-detail-section__heading {
    align-items: flex-start;
    gap: 14px;
    padding: 22px 18px;
  }

  .bus-detail-section__icon {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    border-radius: 14px;
  }

  .bus-detail-section__icon svg {
    width: 29px;
    height: 29px;
  }

  .bus-detail-section__heading div > p:last-child {
    font-size: 12px;
  }

  .bus-detail-section__body {
    padding: 12px;
  }

  .bus-item-panel .w70per,
  .bus-item-panel .w48per,
  .bus-item-panel .mw48per,
  .bus-item-panel .mw50per {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
  }

  .bus-item-panel .mw50per {
    margin: 16px 0;
  }

  .bus-time-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 12px;
  }

  .bus-time-tab {
    min-height: 76px;
    flex-direction: column;
    gap: 4px;
    padding: 7px 3px;
    border-radius: 12px;
  }

  .bus-time-tab__icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: 16px;
  }

  .bus-time-tab small {
    display: none;
  }

  .bus-time-tab strong {
    font-size: 11px;
    white-space: nowrap;
  }

  /* SP：旧CSSの左寄せを打ち消し、アイコンと文言をボタン中央へ */
  #tabs-list.bus-time-tabs .bus-time-tab {
    justify-content: center !important;
    align-items: center !important;
    padding: 10px 4px !important;
    text-align: center !important;
  }

  #tabs-list.bus-time-tabs .bus-time-tab__icon {
    margin: 0 auto 5px !important;
  }

  #tabs-list.bus-time-tabs .bus-time-tab > span:not(.bus-time-tab__icon) {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center !important;
  }

  #tabs-list.bus-time-tabs .bus-time-tab strong,
  #tabs-list.bus-time-tabs .bus-time-tab small {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    text-align: center !important;
  }

  .bus-time-panels {
    overflow: visible;
    border-radius: 12px;
  }

  .bus-time-panel {
    padding: 10px;
  }

  .bus-time-note {
    font-size: 10px;
    line-height: 1.5;
    text-align: left;
  }

  .bus-time-table,
  .bus-time-table tbody {
    display: block;
    width: 100%;
  }

  .bus-time-table tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid #d7e8f4;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(6, 78, 124, 0.06);
  }

  .bus-time-table--morning tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bus-time-table--night tr {
    grid-template-columns: 1fr;
  }

  .bus-time-table--return tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bus-time-table > thead {
    display: none;
  }

  .bus-time-table th,
  .bus-time-table td {
    display: block;
    width: auto !important;
    min-width: 0;
    padding: 10px 6px;
    border: 0;
    border-right: 1px solid #e2edf4;
    background: #fff;
    font-size: 11px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .bus-time-table th {
    grid-column: 1 / -1;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid #d7e8f4;
    color: #064e7c;
    background: #eef8ff;
    text-align: left;
  }

  .bus-time-table td:last-child {
    border-right: 0;
  }

  .bus-time-table td::before {
    display: block;
    margin-bottom: 4px;
    color: #6a8192;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.3;
  }

  .bus-time-table--morning td:nth-of-type(1)::before {
    content: "朝発 12/25～1/23";
  }

  .bus-time-table--morning td:nth-of-type(2)::before {
    content: "朝発 1/24～3/29";
  }

  .bus-time-table--morning td[colspan="2"] {
    grid-column: span 2;
  }

  .bus-time-table--morning td[colspan="2"]::before {
    content: "朝発";
  }

  .bus-time-table--night td:nth-of-type(1)::before {
    content: "夜発";
  }

  .bus-time-table--return td:nth-of-type(1)::before {
    content: "通常運行日";
  }

  .bus-time-table--return td:nth-of-type(2)::before {
    content: "日曜・特定日";
  }

  .bus-time-table__departure {
    border-bottom: 1px solid #d7e8f4;
  }

  .bus-route-grid--3,
  .bus-route-grid--2 {
    grid-template-columns: 1fr;
  }

  .bus-route-group-title span {
    font-size: 18px;
  }
}

/* =========================================================
   SECTION HEADER
========================================================= */

.jr-guide__header {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.jr-guide__eyebrow,
.jr-info-card__eyebrow {
  margin: 0 0 8px;
  color: var(--detail-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.jr-guide__title {
  margin: 0;
  color: #0c4933;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.jr-guide__lead {
  margin: 17px auto 0;
  font-size: 16px;
  line-height: 1.9;
}

/* =========================================================
   INFORMATION CARD
========================================================= */

.jr-info-card {
  display: grid;
  grid-template-columns:
    minmax(0, 0.8fr)
    minmax(300px, 1.2fr);
  overflow: hidden;
  border: 1px solid var(--jr-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(9, 45, 77, 0.08);
}

.jr-info-card__body {
  padding: 38px;
}

.jr-info-card__title {
  margin: 0;
  color: var(--jr-navy);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.4;
}

.jr-info-card__lead {
  margin: 17px 0 0;
  font-size: 14px;
  line-height: 1.85;
}

.jr-info-card--station .jr-info-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #f4f9fc;
}

.jr-info-card--station .jr-info-card__visual img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

/* =========================================================
   CARD CONTAINER
========================================================= */

.jr-guide__cards {
  display: grid;
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}

/* =========================================================
   CARD IMAGE
========================================================= */

.jr-info-card__visual {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #dcecf5;
}

.jr-info-card__visual img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.jr-info-card__visual figcaption {
  position: absolute;
  right: 16px;
  bottom: 14px;
  padding: 6px 9px;
  border-radius: 4px;
  background: rgba(5, 39, 31, 0.76);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}


/* =========================================================
   STATION FARES
========================================================= */

.jr-station-fares {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.jr-station-fares__item {
  padding: 16px;
  border: 1px solid #cfe2ed;
  border-radius: 12px;
  background: #f6fbfe;
}

.jr-station-fares__item--primary {
  border-color: #acd4e9;
  background: var(--jr-sky);
}

.jr-station-fares__station,
.jr-station-fares__price,
.jr-station-fares__oneway {
  display: block;
}

.jr-station-fares__station {
  color: var(--jr-navy);
  font-size: 13px;
  font-weight: 800;
}

.jr-station-fares__price {
  margin-top: 4px;
  font-size: 12px;
}

.jr-station-fares__price strong {
  color: #d94f32;
  font-size: 28px;
  line-height: 1;
}

.jr-station-fares__price small {
  margin-left: 2px;
  font-size: 12px;
}

.jr-station-fares__oneway {
  margin-top: 5px;
  color: #677985;
  font-size: 11px;
}


/* =========================================================
   NOTES / TARGET PRODUCT
========================================================= */

.jr-info-notes {
  margin: 16px 0 0;
  padding-left: 1.5em;
  color: #66757e;
  font-size: 11px;
  line-height: 1.75;
}

.jr-info-card__target {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 0 0;
  font-size: 12px;
  font-weight: 700;
}

.jr-info-card__target span {
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--detail-accent);
  color: #fff;
  font-size: 10px;
}


/* =========================================================
   GREEN CAR
========================================================= */

.jr-info-card--green {
  grid-template-columns:
    minmax(300px, 0.92fr)
    minmax(0, 1.08fr);
  border-color: #cde1d7;
}

.jr-info-card--green .jr-info-card__eyebrow {
  color: var(--detail-accent);
}

.jr-green-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px 10px;
  margin-top: 21px;
}

.jr-green-price__label {
  font-size: 13px;
  font-weight: 700;
}

.jr-green-price__main {
  margin: 0;
  color: var(--jr-green);
}

.jr-green-price__main strong {
  font-size: 39px;
  line-height: 1;
}

.jr-green-price__main span {
  margin-left: 3px;
  font-size: 16px;
  font-weight: 800;
}

.jr-green-price__note {
  color: #68766f;
  font-size: 11px;
}

.jr-green-period {
  margin: 15px 0 0;
  padding: 10px 12px;
  border-radius: 7px;
  background: #edf6f1;
  color: #49645a;
  font-size: 12px;
}

.jr-green-period span {
  margin-right: 7px;
  color: var(--jr-green);
  font-weight: 800;
}


/* =========================================================
   SMARTPHONE
========================================================= */

@media (max-width: 767px) {
  .jr-guide {
    padding: 48px 15px 56px;
  }

  .sp-only {
    display: block;
  }

  .jr-guide__header {
    margin-bottom: 24px;
    text-align: left;
  }

  .jr-guide__title {
    font-size: 22px;
  }

  .jr-guide__lead {
    margin-top: 13px;
    font-size: 14px;
    line-height: 1.8;
  }


  /* Tour points
  ----------------------------------------- */

  .jr-guide-points {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .jr-guide-points li {
    padding: 13px 15px;
  }

  .jr-guide-points li > span:last-child {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 8px;
  }

  .jr-guide-points small {
    margin-top: 0;
  }

  .jr-guide__header {
    margin-bottom: 24px;
    text-align: left;
  }

  /* Cards
  ----------------------------------------- */

  .jr-guide__cards {
    gap: 14px;
  }

  .jr-info-card,
  .jr-info-card--green {
    grid-template-columns: 1fr;
    border-radius: 15px;
  }

  .jr-info-card__body {
    padding: 24px 18px;
  }

  .jr-info-card__title {
    font-size: 21px;
  }

  .jr-info-card__lead {
    margin-top: 13px;
    font-size: 13px;
    line-height: 1.8;
  }


  /* Card image
  ----------------------------------------- */

  .jr-info-card__visual {
    min-height: auto;
    order: -1;
  }

  .jr-info-card__visual img {
    min-height: 0;
    aspect-ratio: 16 / 8.5;
  }

  .jr-info-card--station .jr-info-card__visual {
    padding: 12px;
  }

  .jr-info-card--station .jr-info-card__visual img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }
  /* Station fares
  ----------------------------------------- */

  .jr-station-fares {
    margin-top: 18px;
  }

  .jr-station-fares__item {
    padding: 13px 10px;
  }

  .jr-station-fares__price strong {
    font-size: 25px;
  }

  .jr-info-card__target {
    align-items: flex-start;
  }

  .bus-guide .jr-guide__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Green car
  ----------------------------------------- */

  .jr-green-price__main strong {
    font-size: 35px;
  }

  .jr-green-period span {
    display: block;
    margin: 0 0 2px;
  }
}
