/* ============================================================
   大宮駅ページ CSS — ポラスの分譲住宅 ブランドデザイン
   コンテンツ構成: 三菱地所の住まいリレー準拠
   デザイン: ポラス中央住宅ブランドカラー・タイポグラフィ適用
   ============================================================ */

/* --- CSS Variables --- */
:root {
  /* ポラスブランドカラー */
  --color-primary:      #1a5c3a;   /* 深緑 — 信頼・安心 */
  --color-primary-mid:  #2e7d52;
  --color-primary-lt:   #3d9665;
  --color-primary-bg:   #edf5f0;
  --color-accent:       #c8912a;   /* ウォームゴールド — 品質・高級感 */
  --color-accent-lt:    #f7edda;
  --color-dark:         #1c1c1c;
  --color-text:         #383838;
  --color-text-muted:   #787878;
  --color-border:       #dce6e0;
  --color-bg:           #F6EFE9;   /* 指定ベージュ */
  --color-white:        #ffffff;

  /* Typography — すべてゴシック統一 */
  --font-serif: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;  /* 見出し用も同じゴシック */
  --font-sans:  'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;

  /* Spacing / Radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --shadow-sm:  0 1px 4px rgba(0,0,0,.06);
  --shadow-md:  0 4px 14px rgba(0,0,0,.09);
  --max-w: 1100px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--color-text);
  background: #f5ece5;
  -webkit-font-smoothing: antialiased;
}
.mtc_station img { max-width: 100%; height: auto; display: block; }
.mtc_station a { color: var(--color-primary-mid); text-decoration: none; transition: color .18s; }
.mtc_station a:hover { color: var(--color-primary-lt); text-decoration: underline; }

h2 {
    padding: 0.5em 1em;
    background: #F6F1EE;
    border-left: solid #eddd01 4px;
    margin-bottom: 1em;
    font-size: 28px;
    line-height: 1.3;
}
@media (max-width: 769px) {
    h2 {
        font-size: 20px;
    }
}
/* ============================================================
   STATION HEADER
   ============================================================ */
.station-header {
    background: #f5f5f5;
    padding: 18px 0 16px;
    border-bottom: 4px solid #9acc00;
	text-align:center;
}

#page_title {
    font-size: 30px;
	font-weight:400;
    line-height: 1.4;
    text-align: left;
    display: inline-block;
}

.station-title{text-align:center;}

.station-address {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  color:#000;
  letter-spacing: .03em;
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.main-layout {
  padding: 36px 24px 72px;
}



.wrap-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    background: #FFF;
    margin-top: 0px;
}

@media (max-width: 800px) {
    .wrap-flex {
        flex-direction: column;
    }
}

#contents_image {
    position: relative;
    overflow: hidden;
display: block;
    max-width: 100%;
 width: 56%;
}

@media (max-width: 800px) {
    #contents_image {
        width: 100%;
    }
}

.text_block {
    width: 40%;
    text-align: left;
    line-height: 1.8;
}

@media (max-width: 800px) {
    .text_block {
        width: 100%;
    }
}
/* ============================================================
   STATION IMAGE
   ============================================================ */
.station-image-wrap {
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.station-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

/* ============================================================
   LEAD TEXT
   ============================================================ */
.lead-text {
  /* font-size: 0.9375rem; */
  line-height: 1.8;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  margin-bottom: 44px;
}

.section > p {
  line-height: 1.9;
}

/* テキストを白地カードで囲む */
.text-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.text-card p {
  line-height: 1.9;
  margin: 0;
}

/* Section heading
   ─ 緑の左ボーダー＋白背景カード型
   ─ 左ラインの太さでヒエラルキーを表現、アクセントに緑テキスト
   ─ ゴールドは使わず、緑一色で統一感を出す
*/
.section-heading {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-white);
  border-left: 5px solid var(--color-primary);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 16px;
  letter-spacing: .04em;
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   TABLE
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--color-white);
}

.data-table thead tr {
  background: var(--color-primary-bg);
  border-bottom: 2px solid var(--color-primary);
}

.data-table thead th {
  color: var(--color-primary);
  font-weight: 700;
  padding: 11px 16px;
  text-align: left;
  letter-spacing: .03em;
  white-space: nowrap;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background .13s;
}
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: var(--color-primary-bg); }

.data-table tbody td {
  padding: 10px 16px;
  vertical-align: top;
  line-height: 1.65;
}

.data-table tbody td:first-child {
  font-weight: 700;
  color: var(--color-primary);

}

/* URL table */
.url-table tbody td.url-label {
  white-space: nowrap;
  font-weight: 700;
  color: var(--color-primary);
  width: 140px;
}

.url-table a {
  font-size: 0.82rem;
  word-break: break-all;
  color: var(--color-primary-mid);
}

/* ============================================================
   TIME LIST
   ============================================================ */
.time-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
}

.time-list li {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-border);
  transition: background .13s;
justify-content:start;
gap:10px
}
.time-list li:last-child { border-bottom: none; }
.time-list li:hover { background: var(--color-primary-bg); }

.time-dest {
  font-size: 0.9rem;
  color: var(--color-text);
}

.time-val {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: .02em;
}

/* ============================================================
   NOTE
   ============================================================ */
.note {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

/* ============================================================
   PASSENGER COUNT — HORIZONTAL BAR CHART
   元サイト準拠：路線ごとに分けた横棒グラフ
   ============================================================ */

.chart-block {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.chart-block:last-child { margin-bottom: 0; }

.chart-title {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 16px;
  letter-spacing: .02em;
}

/* 各行 */
.hbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.hbar-year {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  width: 34px;
  flex-shrink: 0;
  text-align: right;
}

/* トラック（グレー背景） */
.hbar-track {
  flex: 1;
  height: 28px;
  background: #f0ece8;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

/* バー本体 */
.hbar-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  box-sizing: border-box;
  min-width: 60px;
  /* アニメーション */
  animation: barGrow .6s cubic-bezier(.4,0,.2,1) both;
  transform-origin: left center;
}

@keyframes barGrow {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}

.hbar-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-white);
  white-space: nowrap;
}

/* 軸ラベル */
.hbar-axis {
  display: flex;
  justify-content: space-between;
  padding: 6px 0 0 44px; /* year幅+gap分インデント */
  font-size: 0.72rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  margin-top: 4px;
}

.hbar-unit {
  text-align: center;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  padding-left: 44px;
  margin-top: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .station-title {
    font-size: 1.4rem;
    flex-direction: column;
    gap: 4px;
  }

  .section-heading {
    font-size: 0.95rem;
    padding: 11px 14px;
  }

  .data-table thead th,
  .data-table tbody td {
    padding: 9px 12px;
    font-size: 0.82rem;
  }

  .time-list li {
    padding: 10px 14px;
  }
}


@media screen and (min-width: 768px) {
    .bg01_wrap {
        text-align: center;
    }
}

@media screen and (min-width: 768px) {
    .bg01_wrap {
        background: #F5EDE5;
        padding: 40px 100px 40px;
    }
}

@media screen and (max-width: 768px) {
    .bg01_wrap {
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .bg01_wrap {
        background: #F5EDE5;
        padding: 20px 20px;
    }
}

@media screen and (min-width: 768px) {
    .white_wrap {
        width: 1100px;
        padding: 60px 0px;
        background: #ffffff;
        margin: 0 auto;
        border-radius: 10px;
    }
}

@media screen and (min-width: 768px) {
    .white_wrap_inner {
        width: 960px;
        margin: 0 auto;
		text-align: left;
    }
}

@media screen and (max-width: 768px) {
    .white_wrap {
        width: calc(100% - 20px);
        padding: 30px 30px;
        background: #ffffff;
        margin: 0 auto;
        border-radius: 10px;
    }
}

@media screen and (max-width: 768px) {
    .white_wrap_inner {
        width: 100%;
        margin: 0 auto;
		text-align: left;
    }
}

.btn_search {
	font-size: 18px;
	font-family: 'Noto Sans JP', sans-serif;
	font-feature-settings: "palt";
	display: flex;
	align-items: center;
	margin: 0px auto 30px;
	width: 100%;
	max-width: 350px;
	border-radius: 30px;
	/* text-align: center; */
	justify-content: center;
	height: 60px;
	background: rgb(239,221,0);
	background: linear-gradient(90deg, rgba(239,221,0,1) 0%, rgba(159,205,0,1) 100%);
	color: #FFFFFF;
	-moz-text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
	-webkit-text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
	-ms-text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
	text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
	-moz-box-shadow: 3px 3px 3px 0px rgba(0, 0, 0, 0.3);
	-webkit-box-shadow: 3px 3px 3px 0px rgba(0, 0, 0, 0.3);
	-ms-box-shadow: 3px 3px 3px 0px rgba(0, 0, 0, 0.3);
	box-shadow: 3px 3px 3px 0px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 768px) {
    .btn_search {
        font-size: 16px;
        font-family: 'Noto Sans JP', sans-serif;
        font-feature-settings: "palt";
        display: flex;
        align-items: center;
        margin: 0px auto 30px ;
        width: 100%;
        max-width: 90%;
        border-radius: 30px;
        /* text-align: center; */
        justify-content: center;
        height: 60px;
        background: rgb(239, 221, 0);
        background: linear-gradient(90deg, rgba(239, 221, 0, 1) 0%, rgba(159, 205, 0, 1) 100%);
        color: #FFFFFF;
        -moz-text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
        -webkit-text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
        -ms-text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
        text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
        -moz-box-shadow: 3px 3px 3px 0px rgba(0, 0, 0, 0.3);
        -webkit-box-shadow: 3px 3px 3px 0px rgba(0, 0, 0, 0.3);
        -ms-box-shadow: 3px 3px 3px 0px rgba(0, 0, 0, 0.3);
        box-shadow: 3px 3px 3px 0px rgba(0, 0, 0, 0.3);
    }
}

/* ============================================================
   乗降客数グラフ（passenger-chart.js 用）
   ============================================================ */
.chart-container {
  width: 100%;
}

.charts-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 24px;
}

.chart-wrapper {
  width: 100%;
  min-width: 0;
}

.series-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.chart-area {
  width: 100%;
  height: 230px;
  min-width: 0;
}

.chart-svg {
  display: block;
  width: 100%;
  height: 230px;
  overflow: visible;
}

.axis-line {
  stroke: rgba(0, 0, 0, 0.25);
  stroke-width: 1;
  shape-rendering: crispEdges;
}

.axis-tick {
  fill: rgba(0, 0, 0, 0.65);
  font-family: Gothic, system-ui, sans-serif;
  font-size: 10px;
}

.axis-title {
  fill: rgba(0, 0, 0, 0.75);
  font-family: Gothic, system-ui, sans-serif;
  font-size: 11px;
}

.bar {
  fill: #1a5c3a;
}

.value-label {
  fill: #111;
  font-family: Gothic, system-ui, sans-serif;
  font-size: 12px;
}

@media (max-width: 600px) {
  .value-label,
  .axis-title {
    font-size: 10px;
  }
  .axis-tick {
    font-size: 9px;
  }
}
