:root{
  --blue:#174A9C;
  --navy:#102A5C;
  --blue-dark:#0B214A;
  --light-blue:#EEF4FB;
  --gold:#D9B44A;
  --white:#FFFFFF;
  --line:#D8E1EE;
  --text:#1D2B45;
  --muted:#66738F;
  --shadow:0 10px 30px rgba(16,42,92,.08);
  --shadow-hover:0 16px 36px rgba(16,42,92,.13);
}

/* =================================
   STATION PAGE
================================= */

.station-wrap{
  background:
    linear-gradient(
      180deg,
      #102A5C 0,
      #183A78 250px,
      #F6F8FC 250px
    );
  padding:34px 0 90px;
}

/* 上部タイトル */
.station-title{
  text-align:center;
  font-size:12px;
  letter-spacing:.28em;
  color:rgba(255,255,255,.72);
  margin:-120 0 10px;
  font-weight:700;
}

/* ステーション名 */
.station-name{
  width:min(820px,calc(100% - 32px));
  margin:0 auto 10px;
  padding:16px 28px;
  box-sizing:border-box;
  background:
    linear-gradient(
      135deg,
      #102A5C,
      #174A9C
    );
  border:1px solid rgba(255,255,255,.15);
  border-radius:18px;
  color:#fff;
  font-size:32px;
  font-weight:900;
  letter-spacing:.02em;
  line-height:1.35;
  box-shadow:0 12px 30px rgba(0,25,70,.18);
  text-align:center;
}

.station-name::before,
.station-name::after{
  display:none;
}

.breadcrumb{
  width:min(820px,calc(100% - 32px));
  margin:0 auto 16px;
  color:rgba(255,255,255,.82);
  font-size:12px;
  line-height:1.6;
}

.breadcrumb a{
  color:#fff;
  text-decoration:none;
  transition:.2s ease;
}

.breadcrumb a:hover{
  opacity:.75;
}

.breadcrumb span{
  opacity:.55;
  margin:0 4px;
}

/* =================================
   MAP
================================= */

.station-map{
  width:min(820px,calc(100% - 32px));
  margin:0 auto 15px;
  padding:10px;
  box-sizing:border-box;
  background:#fff;
  border:1px solid rgba(216,225,238,.9);
  border-radius:20px;
  box-shadow:var(--shadow);
}

#station-map-leaflet{
  height:400px;
  border-radius:14px;
  overflow:hidden;
}

/* =================================
   STATION INFORMATION
================================= */

.station-table{
  width:min(820px,calc(100% - 32px));
  margin:0 auto;
  border-collapse:separate;
  border-spacing:0 12px;
}

.station-table tr{
  background:#fff;
  box-shadow:var(--shadow);
  overflow:hidden;
}

.station-table th{
  width:112px;
  box-sizing:border-box;
  background:var(--navy);
  color:#fff;
  padding:20px 18px;
  font-size:14px;
  font-weight:800;
  line-height:1.5;
  vertical-align:top;
  border:none;
}

.station-table td{
  background:#fff;
  color:var(--text);
  padding:16px 18px;
  border:none;
  line-height:1.65;
  font-size:14px;
}

.station-table tr th{
  border-radius:16px 0 0 16px;
}

.station-table tr td{
  border-radius:0 16px 16px 0;
}

/* =================================
   CAR ITEM
================================= */

.car-item{
  background:#F8FAFD;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 14px;
  margin-bottom:8px;
  transition:
    background .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.car-item:last-child{
  margin-bottom:0;
}

.car-item:hover{
  background:#F3F7FC;
  border-color:#BFCFE5;
  box-shadow:0 6px 18px rgba(16,42,92,.07);
  transform:translateY(-1px);
}

.car-header{
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  min-height:28px;
  font-size:17px;
  font-weight:800;
  color:var(--navy);
  line-height:1.5;
}

.car-detail{
  display:none;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid #E0E7F0;
}

.car-img{
  display:block;
  width:100%;
  max-width:360px;
  margin:0 auto 14px;
  border-radius:12px;
}

.car-deploy{
  color:var(--blue);
  font-weight:800;
}

.car-descr{
  color:#4A5870;
  font-size:14px;
  line-height:1.8;
}

/* =================================
   PRICE TABLE
================================= */

.car-price{
  width:100%;
  margin-top:12px;
  border-collapse:separate;
  border-spacing:0;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}

.car-price th{
  background:var(--blue);
  color:#fff;
  padding:10px 12px;
  font-size:12px;
  font-weight:700;
  text-align:center;
  line-height:1.4;
  border:none;
}

.car-price td{
  background:#fff;
  padding:9px 12px;
  font-size:14px;
  font-weight:700;
  text-align:center;
  color:var(--text);
  border:none;
  line-height:1.4;
}

.car-price td:last-child{
  color:var(--blue);
  font-size:15px;
}

.car-price th:first-child,
.car-price td:first-child{
  border-right:1px solid var(--line);
}

.car-price tr:not(:last-child) td{
  border-bottom:1px solid var(--line);
}

.car-price th,
.car-price td{
  border-radius:0!important;
}

/* =================================
   NEAR STATIONS
================================= */

.near-stations{
  width:min(820px,calc(100% - 32px));
  margin:46px auto 0;
  text-align:center;
}

.near-stations h3{
  color:var(--navy);
  font-size:18px;
  font-weight:900;
  margin:0 0 8px;
  letter-spacing:.02em;
}

.near-empty{
  color:var(--muted);
  font-size:14px;
  font-weight:700;
  margin-top:2px;
}

.near-stations ul{
  list-style:none;
  padding:0;
  margin:16px 0 0;
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
}

.near-stations li{
  transition:.2s ease;
}

.near-stations li a{
  display:block;
  padding:8px 13px;
  border-radius:999px;
  background:#fff;
  color:var(--navy);
  text-decoration:none;
  font-size:13px;
  font-weight:800;
  border:1px solid #E0E7F0;
  box-shadow:0 4px 14px rgba(16,42,92,.06);
  transition:.2s ease;
}

.near-stations li a:hover{
  background:#EDF3FA;
  border-color:#C5D4E7;
  transform:translateY(-2px);
}

/* =================================
   PREFECTURE LINKS
================================= */

.pref-links{
  margin-top:28px;
}

.pref-title{
  color:#58677F;
  font-size:13px;
  font-weight:700;
  margin-bottom:12px;
}

.pref-links ul{
  list-style:none;
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  padding:0;
  margin:0;
}

.pref-links a{
  display:block;
  padding:8px 13px;
  border-radius:999px;
  background:#fff;
  color:var(--navy);
  text-decoration:none;
  font-size:13px;
  font-weight:800;
  border:1px solid #E0E7F0;
  box-shadow:0 4px 14px rgba(16,42,92,.06);
  transition:.2s ease;
}

.pref-links a:hover{
  background:#EDF3FA;
  border-color:#C5D4E7;
  transform:translateY(-2px);
}

@media(max-width:768px){

  .station-wrap{
    padding:22px 0 60px;
    margin-top: -10px;
    background:
      linear-gradient(
        180deg,
        #102A5C 0,
        #183A78 210px,
        #F6F8FC 210px
      );
  }

  .station-title{
    font-size:11px;
    letter-spacing:.18em;
  }

  .station-name{
    width:calc(100% - 24px);
    margin-bottom:14px;
    padding:13px 16px;
    border-radius:15px;
    font-size:23px;
    line-height:1.4;
  }

  .breadcrumb{
    width:calc(100% - 24px);
    margin-bottom:18px;
    font-size:11px;
  }

  .station-map{
    width:calc(100% - 24px);
    margin-bottom:15px;
    padding:6px;
    border-radius:16px;
  }

  #station-map-leaflet{
    height:300px;
    border-radius:11px;
  }

  .station-table{
    width:calc(100% - 24px);
    margin:0 auto;
    border-collapse:separate;
    border-spacing:0;
  }

  .station-table tr{
    display:block;
    background:#fff;
    box-shadow:var(--shadow);
    border-radius:14px;
    margin-bottom:12px;
    overflow:hidden;
  }

  .station-table th{
    display:block;
    width:100%;
    background:var(--navy);
    padding:10px 14px;
    font-size:13px;
    border-radius:0!important;
  }

  .station-table td{
    display:block;
    width:100%;
    box-sizing:border-box;
    padding:12px 14px;
    font-size:13px;
    border-radius:0!important;
  }

  .car-item{
    padding:10px 11px;
    border-radius:12px;
    margin-bottom:7px;
  }

  .car-header{
    font-size:15px;
    gap:8px;
  }

  .car-detail{
    margin-top:10px;
    padding-top:10px;
  }

  .car-img{
    max-width:100%;
    border-radius:10px;
    margin-bottom:10px;
  }

  .car-descr{
    font-size:13px;
    line-height:1.7;
  }

  .car-price{
    margin-top:10px;
    table-layout:fixed;
  }

  .car-price tr{
    display:table-row;
    margin:0;
    box-shadow:none;
    border-radius:0;
  }

  .car-price th,
  .car-price td{
    display:table-cell;
    width:50%;
    text-align:center;
    vertical-align:middle;
  }

  .car-price th{
    padding:6px 8px;
    font-size:11px;
  }

  .car-price td{
    padding:7px 8px;
    font-size:12px;
    line-height:1.3;
  }

  .car-price td:last-child{
    font-size:13px;
  }

  .near-stations{
    width:calc(100% - 24px);
    margin-top:34px;
  }

  .near-stations h3{
    font-size:16px;
  }

  .near-stations ul{
    margin-top:13px;
    gap:7px;
  }

  .near-stations li a{
    padding:7px 11px;
    font-size:12px;
  }

  .pref-links{
    margin-top:22px;
  }

  .pref-title{
    font-size:12px;
    margin-bottom:10px;
  }

  .pref-links ul{
    gap:7px;
  }

  .pref-links a{
    padding:7px 11px;
    font-size:12px;
  }

  .leaflet-top,
  .leaflet-bottom{
    z-index:0!important;
  }
}

@media(max-width:480px){

  .station-name{
    font-size:21px;
    padding:12px 13px;
  }

  #station-map-leaflet{
    height:260px;
  }

  .station-table td{
    padding:10px 12px;
  }

  .car-header{
    font-size:14px;
  }

  .car-price th{
    font-size:10px;
  }

  .car-price td{
    font-size:12px;
  }
}
