/* =============================================================
* style.css
*
* [目次]
* 1. 変数・リセット
* 2. レイアウト（ページ全体・サイドバー）
* 3. コンポーネント
* 4. メディアクエリ（スマホ）
* ============================================================= */

/* 1. 変数・リセット ---------------------------------------- */
:root {
  /* テキスト */
  --color-font-page-title: #ffffff;
  --color-font-active-text: #ffffff;
  --color-font-inactive-text: #000000;
  --color-font-section-title: #333333;
  --color-font-white: #ffffff;
  --color-font-td: #111827;
  --color-font-th: #374151;


  /* 背景・ボーダー */
  --color-bg-main: #f8f8f8;
  --color-bg-cell: #ffffff;
  --color-bg-image: #ffffff;
  --color-bg-white: #ffffff;
  --color-bg-side-def: #f3f3f3;
  --color-bg-side-title: #dfeff4;
  --color-bg-side-active: linear-gradient(to bottom, #0b63bd, #004b99);
  --color-bg-side-hover: #e8f4fb;

  /* フォントサイズ */
  --font-size-page-title: 16px;
  --font-size-section-title: 20px;
  --font-size-headline: 19px;
  --font-size-content: 16px;
  --font-size-annotation: 14px;
  --font-size-zoom-image-text: 36px;
  --font-size-table-font: 12px;
  --font-size-side-header: 14px;
  --font-size-side-content: 12px;
}

/* 2. レイアウト -------------------------------------------- */
/* ==================================
  ページ全体
  =================================== */
.page-body {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
}

/* 3. コンポーネント -------------------------------------------- */
/* ==================================
  【共通】複数行テキストブロック
  MULTI_TEXT
   ================================== */
.multi-text-block {
  line-height: 1.8;
  color: var(--color-font-section-title); 
}

/* ==================================
  MTマルチカラム
  =================================== */
/*.mt-be-column {
  flex: 1;
  min-width: 0;
}*/

/* ==================================
  【共通】回り込みレイアウト
  WRAP_FLOW_LAYOUT
   ================================== */
.wrap-flow-layout {
  line-height: 1.8;
  color: var(--color-font-section-title); 
}

/* ==================================
  【解説】ページタイトル
  PAGE_TITLE
  =================================== */
.page-title {
  width: 100%;
  height: 56px;
  margin: 0 0 10px 0;
  padding-left: 24px;
  box-sizing: border-box;
  border-radius: 3px 3px 0 0;
  border-bottom: 4px solid #c7d5ea;
  background:
    radial-gradient(ellipse at 62% 100%, rgba(120,160,210,.45) 0%, rgba(70,110,170,.35) 28%, transparent 55%),
    repeating-linear-gradient(0deg, transparent 0px, transparent 2px, rgba(255,255,255,.45) 3px, transparent 4px),
    linear-gradient(90deg, #0b2f75 0%, #123b86 45%, #1d4f9a 100%);
  font-size: var(--font-size-page-title);
  font-weight: bold;
  line-height: 56px;
  color: var(--color-font-page-title);
}

/* ==================================
  【解説】章タイトル
  SECTION_TITLE
  =================================== */
.section-title {
  position: relative;
  width: 100%;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
  font-size: var(--font-size-section-title);
  font-weight: bold;
  color: var(--color-font-section-title);
}
.section-title::after {
  left: 0;
  position: absolute;
  width: 30%;
  height: 4px;
  bottom: -2px;
  background-color: #1a3c7c;
  content: "";
}

h2.section-title {
  margin: 0 !important;
}

.main-blocks .section-title:not(:nth-child(1 of .section-title)) {
  margin-top: 15px;
}

/* ===================================
  【解説】地下鉄情報
  EXPLAIN_SUBWAY_INFO
  ==================================== */
.subway-info-box {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #eee;
  gap: 28px;
}
.subway-info-box .subway-info-left {
  width: 280px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.subway-info-box .subway-logo img {
  width: 60px;
  height: auto;
  display: block;
}
.subway-info-box .subway-label {
  display: inline-flex;
  gap: 8px;
  padding: 2px 8px;
  margin-bottom: 6px;
  background: #e9eef5;
  color: #2c4b6f;
  font-size: 11px;
  line-height: 1.2;
}
.subway-info-box .subway-name {
  font-size: 16px;
  font-weight: bold;
  color: #111;
}
.subway-info-box .subway-info-right {
  flex: 1;
  padding-left: 28px;
  border-left: 1px dotted #999;
  font-size: 12px;
  line-height: 1.5;
  color: #111;
}
.subway-info-box .subway-info-right a {
  color: #0033cc;
}

/* ==================================
  【解説】見出し付きコンテンツ
  HEADLINE_CONTENT
  =================================== */
.headline {
  display: block;
  position: relative;
  margin: 0 0 5px 0 !important;
  padding-left: 1.5em;
  font-size: var(--font-size-headline);
  font-weight: bold;
  color: #003399;
}
.labeled-content-block .headline::before {
  position: absolute;
  top: 0.4em;
  left: 0.4em;
  width: 0.8em;
  height: 0.8em;
  background-color: #003399;
  content: "";
}

.content-box {
  display: block;
  margin-bottom: 10px;
  font-size: var(--font-size-content);
  line-height: 1.8;
  color: var(--color-font-section-title);
}
.content {
  border-top: none !important;
}
.body_content {
  margin: 0;
}

/* ==================================
  【解説】見出し付き画像
  HEADLINE_IMAGE
  =================================== */
.headline-image {
  width: 100%;
  flex-basis: 300px;
  flex-shrink: 0;
}
.headline-image .image img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.headline-image .headline {
  position: static;
  transform: none;
  margin: 8px 0 0;
  text-align: center;
  white-space: normal;
  color: black;
  font-size: smaller;
  font-weight: normal;
}

/* ===================================
  【解説】見出し付きコンテンツ_右画像
  HEADLINE_CONTENT_RIMAGE
  ==================================== */
.headline-content-rimage {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* ===================================
  【解説】画像付きテーブル
  IMAGE_TABLE
  ==================================== */
.subway-table-part {
  display: flex;
  flex: 1;
  margin-bottom: 24px;
  align-items: stretch;
}
.subway-table-part table {
  margin: 0px;
  table-layout: fixed;
  border-collapse: collapse;
  border-top: 1px solid #d1d5db;
  border-right: 1px solid #d1d5db;
  border-bottom: none;
  border-left: none;
}
.subway-table-part table th:nth-child(1) { width: 10%; }
.subway-table-part table th:nth-child(2) { width: 15%; }
.subway-table-part table th:nth-child(3) { width: 30%; }
.subway-table-part table th:nth-child(4) { width: 10%; }
.subway-table-part table th:nth-child(5) { width: 15%; }
.subway-table-part table th:nth-child(6) { width: 10%; }
.subway-table-part table th:nth-child(7) { width: 15%; }
.subway-table-part th,
.subway-table-part td {
  padding: 5px 10px;
  border: 1px solid #d1d5db;
  border-bottom: none;
  background: #f0f0f0;
  font-size: var(--font-size-table-font);
  color: var(--color-font-td);
  line-height: 1.5;
  vertical-align: middle;
}
.subway-table-part th {
  border-bottom: 2px solid #e5e7eb;
  background-color: #f9fafb;
  color: var(--color-font-th);
  font-weight: 600;
  text-align: center;
}
.subway-table-part td {
  background: var(--color-bg-cell);
}
.subway-table-part th:not(:first-child),
.subway-table-part td:not(:first-child) {
  border-bottom: 1px solid #d1d5db;
}
.subway-table-part .logo-column {
  width: 120px;
  text-align: center;
  padding-right: 10px;
  background-color: transparent ;
  border-top: 0 hidden transparent;
  border-left: 0 hidden transparent;
  border-bottom: 0 hidden transparent;
  border-right: 1px solid #d1d5db;
}
.subway-table-part th:nth-child(2),
.subway-table-part td:nth-child(2) {
  border-left: none !important;
  font-weight: bold;
}
.subway-logo-img {
  max-width: 100%;
  width: auto;
  max-height: 100%;
  height: auto;
}

/* ===================================
  サイドメニュー
  ==================================== */
.side-menu-toggle {
  display: none;
}
.sidebar {
  position: sticky;
  top: 20px;
  width: 100%;
  align-self: flex-start;
}
.side-menu {
  border: 1px solid #ddd;
  background: var(--color-bg-side-def);
  font-size: var(--font-size-annotation);
  font-weight: bold;
  margin-bottom: 10px
}
.side-menu-title {
  position: relative;
  margin: 0;
  padding: 8px 10px 8px 24px;
  border-bottom: 1px solid #ddd;
  background: var(--color-bg-side-title);
  font-size: var(--font-size-side-header);
  font-weight: bold;
  color: #111;
}
.side-menu-title::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #68c6e8;
  transform: translateY(-50%);
}
.side-menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.side-menu-list > li {
  border-bottom: 1px solid #ddd;
  background: linear-gradient(#fafafa, #eeeeee);
}
.side-menu-list > li:last-child {
  border-bottom: none;
}
.side-menu-list > li > a {
  display: block;
  position: relative;
  padding: 8px 8px 8px 20px;
  box-sizing: border-box;
  border-left: 4px solid transparent;
  color: #111;
  font-size: var(--font-size-side-content);
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.side-menu-list > li > a::before {
  content: "›";
  position: absolute;
  top: 50%;
  left: 6px;
  transform: translateY(-50%);
  color: #0066aa;
  font-size: var(--font-size-annotation);
  font-weight: normal;
}
.side-menu-list > li > a:hover {
  background: var(--color-bg-side-hover);
  color: #005bac;
}
.sidebar .side-menu-list > li.active > a {
  border-left: 4px solid #4dd0ff;
  background: linear-gradient(to bottom, #0b63bd, #004b99) !important;
  font-weight: bold;
  color: var(--color-font-active-text);
}
.sidebar .side-menu-list > li.active > a::before {
  color: var(--color-font-active-text);
}
.sidebar .side-menu-list > li.active > a:hover {
  background: linear-gradient(to bottom, #0b63bd, #004b99) !important;
  color: var(--color-font-active-text);
}

/* ===================================
  【解説】ページ切替タブ
  PAGE_CHANGE_TAB
  ==================================== */
.page-tabs {
  display: flex;
  width: 100%;
  margin-bottom: 24px;
  border-bottom: 2px solid #005bac;
  gap: 4px;
}
.page-tabs .page-tab {
  display: block;
  width: 50%;
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  background: #e9eef5;
  text-decoration: none;
  font-weight: bold;
  color: #333;
  text-align: center;
}
.page-tabs .page-tab.active {
  border-color: #005bac;
  background: #005bac;
  color: var(--color-font-active-text);
}

/* ==================================
  画像カード 共通
  =================================== */
.image-text-card {
  width: 100%;
  margin-bottom: 24px;
  box-sizing: border-box;
}
.image-text-card__images,
.image-text-card__image,
.image-text-card__body {
  box-sizing: border-box;
}
.image-text-card__image {
  display: flex;
  padding: 5px;
  border: 1px solid #d9d9d9;
  background: var(--color-bg-image);
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.image-text-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.image-text-card__title {
  display: inline;
  font-weight: bold;
}
.image-text-card__text {
  display: inline;
  margin: 0;
}

/* ===================================
  【解説】垂直画像_水平説明
  VIMAGES_HDESCRIPTION
  ==================================== */
.text-position-right {
  display: flex;
  gap: 5px;
  align-items: flex-start;
}
.text-position-right .image-text-card__images {
  /* width: 50%; */
  flex: 1;
  min-width: 0;
  /* flex-shrink: 0; */
}
.text-position-right .image-text-card__body {
  /* width: 50%; */
  flex: 1;
  min-width: 0;
  /* flex-shrink: 0; */
}

/* ===================================
  【解説】垂直画像_垂直説明
  VIMAGES_VDESCRIPTION
  ==================================== */
.text-position-bottom {
  display: block;
}
.text-position-bottom .image-text-card__images {
  width: 100%;
  margin-bottom: 10px;
}
.text-position-bottom .image-text-card__body {
  width: 100%;
}

/* ===================================
  【解説】水平画像
  HORIZONTAL_IMAGES
  ==================================== */
.image-layout-horizontal .image-text-card__images {
  display: flex;
  gap: 8px;
}
.image-layout-horizontal .image-text-card__image {
  flex: 1;
  height: 150px;
}

/* ===================================
  【解説】垂直画像
  VERTICAL_IMAGES
  ==================================== */
.image-layout-vertical .image-text-card__images {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.image-layout-vertical .image-text-card__image {
  width: 100%;
  height: 260px;
}

/* ===================================
  【解説】拡大画像
  CLICK_IMAGE
  ==================================== */
.click-image {
  padding: 5px;
  border: 1px solid #d9d9d9;
  background: var(--color-bg-image);
  align-items: center;
  justify-content: center;
}
.click-image .js-zoom-image {
  cursor: zoom-in;
  width: 100%;
}
.click-image .image-zoom-note {
  display: block;
  margin-top: 4px;
  font-size: var(--font-size-annotation);
  color: #555;
  text-align: left;
}
.click-image .zoom-pdf-link {
  text-decoration: none;
}
.image-zoom-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
}
.image-zoom-modal.is-open {
  display: flex;
}
.image-zoom-modal__img {
  display: block;
  width: 90vw;
  height: 90vh;
  /* 画面内に収める */
  max-width: min(95vw, 1600px);
  max-height: 90vh;
  object-fit: contain;
  /* 強制拡大を削除 */
  transform: none;
  cursor: zoom-out;
}
.image-zoom-close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 10000;
  background: transparent;
  color: var(--color-font-white);
  border: none;
  font-size: var(--font-size-zoom-image-text);
  line-height: 1;
  cursor: pointer;
}
.image-zoom-prev,
.image-zoom-next {
  position: fixed;
  top: 50%;
  z-index: 10000;
  transform: translateY(-50%);
  width: 44px;
  height: 64px;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  color: var(--color-font-white);
  font-size: var(--font-size-zoom-image-text);
  font-weight: bold;
  cursor: pointer;
}
.image-zoom-prev {
  left: 24px;
}
.image-zoom-next {
  right: 24px;
}
.image-zoom-prev:hover,
.image-zoom-next:hover,
.image-zoom-close:hover {
  opacity: 0.75;
}

/* ===================================
  【解説】問い合わせ案内
  CONTACT_FIELD
  ==================================== */
.contact-row {
  display: flex;
  align-items: center;
  column-gap: 18px;
  margin-bottom: 8px;
}
.contact-row .contact-title,
.contact-row .contact-tel,
.contact-row .contact-desc {
  min-width: 0;
}
.contact-row .contact-title {
  position: relative;
  flex: 4;
  padding-left: var(--font-size-annotation);
  font-weight: bold;
}
.contact-row .contact-title::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  background: #153c91;
  transform: translateY(-50%);
}
.contact-title-none {
  position: relative;
  flex: 4;
  padding-left: var(--font-size-annotation);
  font-weight: bold;
  white-space: nowrap;
}
.contact-row .contact-tel {
  flex: 2;
  /* white-space: nowrap; */
}
.contact-row .contact-desc {
  flex: 4;
  white-space: normal;
}

/* ===================================
  車両ガイド罫線
  ==================================== */
.dotted-line {
  border-top: 1px dotted #999;
  margin: 12px 0;
}

/* ===================================
  【解説】主要諸元
  MAIN_SPECIFICATIONS
  ==================================== */
.spec-section {
  width: 100%;
}
.spec-section .subway-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-content);
  font-weight: bold;
}
.spec-section .subway-heading-icon {
  width: 10px;
  height: 10px;
  background: #1b3994;
  flex-shrink: 0;
}
.spec-section .train-spec-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid #8f8f8f;
  font-size: var(--font-size-content);
  margin: 0px !important;
}
.spec-section .train-spec-table tr > *:nth-child(1),
.spec-section .train-spec-table tr > *:nth-child(3) {
  width: 20%;
}
.spec-section .train-spec-table tr > *:nth-child(2),
.spec-section .train-spec-table tr > *:nth-child(4) {
  width: 30%;
}
.spec-section .train-spec-table th,
.spec-section .train-spec-table td {
  border: 1px solid #8f8f8f;
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
}
.spec-section .train-spec-table th {
  background: #d8d8d8;
  font-weight: bold;
}

/* ===================================
  【解説】PDFリンク
  EXPLAIN_PDF_LINK
  ==================================== */
.link-pdf-card {
  display: block;
  padding: 15px;
  background: var(--color-bg-white);
  border: 1px solid #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
}
.link-pdf-card:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-color: #005488;
}
.link-pdf-card .pdf-card-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 12px;
}
.link-pdf-card .link-pdf-title {
  margin: 0;
  font-size: var(--font-size-content);
  color: #005488;
  font-weight: bold;
  flex: 1;
}
.link-pdf-card .pdf-file-icon {
  margin-left: 5px;
  width: 16px;
  display: flex;
  align-items: center;
}
.link-pdf-card .pdf-icon {
  width: 100%;
  height: auto;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.link-pdf-card .image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* 画像の比率を統一 */
  overflow: hidden;
  background: #eee;
}
.link-pdf-card .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 枠に合わせてトリミング */
  transition: transform 0.5s ease;
}
.link-pdf-card .link-pdf-card:hover img {
  transform: scale(1.05);
}

/* ===================================
  【解説】営業主体カード
  EXPLAIN_SALES_ENTITY
  ==================================== */
.link-info-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
}
.link-info-card .link-info-card__logo {
  width: 66px;
  height: 66px;
  flex: none;
}
.link-info-card .link-info-card__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.link-info-card .link-info-card__body {
  padding-top: 8px;
  font-size: var(--font-size-content);
  line-height: 1.4;
}
.link-info-card .link-info-card__title {
  font-weight: bold;
  color: #000;
  margin-bottom: 2px;
}
.link-info-card .link-info-card__url {
  color: #000;
}
.link-info-card .link-info-card__url a {
  color: #0000ee;
  text-decoration: underline;
}

/* ===================================
  【解説】世界の地下鉄データ
  EXPLAIN_WORLD_SUBWAY_DATA
  ==================================== */
.world-subway-data .world-subway-data-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-section-title);
  font-weight: bold;
  line-height: 1.2;
}
.world-subway-data .world-subway-data-title-mark {
  width: 12px;
  height: 12px;
  background: #284d99;
  flex-shrink: 0;
}
.world-subway-data .world-subway-data-title-text {
  color: #000;
}
.world-subway-data .world-subway-data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid #d6d6d6;
  font-size: var(--font-size-content);
  margin: 0 0 10px 0 !important;
  word-break: break-word;
}
.world-subway-data .world-subway-data-table th:nth-child(1),
.world-subway-data .world-subway-data-table th:nth-child(3) {
  width: 20%;
}
.world-subway-data .world-subway-data-table td:nth-child(2),
.world-subway-data .world-subway-data-table td:nth-child(4) {
  width: 30%;
}
.world-subway-data .world-subway-data-table th,
.world-subway-data .world-subway-data-table td {
  border-bottom: 1px dotted #bfbfbf;
  vertical-align: middle;
  box-sizing: border-box;
  padding: 0.1em 0 0.1em 0.5em !important;
}
.world-subway-data .world-subway-data-table th {
  background: #DFE9ED;
  font-weight: bold;
  text-align: left;
  color: #000;
}
.world-subway-data .world-subway-data-table td {
  background: var(--color-bg-cell);
}
.world-subway-data .world-subway-data-table tr:last-child th,
.world-subway-data .world-subway-data-table tr:last-child td {
  border-bottom: none;
}

/* ===================================
  【解説】利用方法コンテンツ
  EXPLAIN_HEAD_LINE
  ==================================== */
.how-to-use-section {
  margin-top: 10px;
}
.how-to-use-section .how-to-use-section__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-section-title);
  font-weight: bold;
  line-height: 1.2;
}
.how-to-use-section .how-to-use-section__mark {
  width: 12px;
  height: 12px;
  background: #284d99;
  flex-shrink: 0;
}
.how-to-use-section .how-to-use-section__text {
  color: #000;
}
.how-to-use-section .how-to-use-section__content {
  padding-left: 18px; /* 青四角と文字位置を揃える */
  font-size: var(--font-size-content);
  line-height: 1.8;
  color: #000;
}

/* ===================================
  【解説】国コンテナ
  COUNTRY_CONTAINER
  ==================================== */
.country-container {
  background: white;
  margin: 10px;
  padding: 10px;
}
.country-container .city-info-box {
  width: 100%;
  padding: 10px 0 0;
  border-top: 1px dotted #999;
  font-size: var(--font-size-content);
  line-height: 1.8;
  box-sizing: border-box;
}
.country-container .city-info-box__title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-weight: bold;
}
.country-container .city-info-box__mark {
  width: 14px;
  height: 10px;
  background: #284d99;
  flex-shrink: 0;
}
.country-container .city-info-box__title-main,
.country-container .city-info-box__title-sub {
  color: #000;
}
.country-container .city-info-box__text {
  margin: 0;
  color: #000;
}
.country-container .country-info-card {
  display: grid;
  grid-template-columns: 160px 170px 1fr;
  gap: 12px;
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px dotted #999;
  box-sizing: border-box;
  font-size: var(--font-size-annotation);
  line-height: 1.7;
  color: #000;
}
.country-container .country-info-card__left {
  padding-right: 12px;
  border-right: 1px dotted #999;
}
.country-container .country-info-card__flag {
  display: block;
  width: 82px;
  height: auto;
  margin-bottom: 6px;
}
.country-container .country-info-card__name-ja {
  font-size: var(--font-size-content);
  font-weight: bold;
  margin-bottom: 6px;
}
.country-container .country-info-card__name-en {
  font-size: var(--font-size-content);
}
.country-container .country-info-card__middle {
  padding: 2px 12px 0 0;
  border-right: 1px dotted #999;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
}
.country-container .country-info-card__middle div {
  width: 100%;
  white-space: normal;
}
.country-container .country-info-card__right {
  padding-top: 2px;
}

/* ===================================
  【解説】あらましテーブル
  EXPLAIN_SUMMARY_TABLE
  ==================================== */
.explain_summary_table table {
  width: 100%;
}
.explain_summary_table td {
  margin: 0px; 
  padding: 3px 12px; 
  outline: none; 
  font-style: normal; 
  text-decoration: none; 
  font-size: 12px; 
  line-height: 1.6em; 
  vertical-align: top; 
  border-bottom: 1px dotted rgb(204, 204, 204); 
}
.explain_summary_table td:nth-child(1) {
  background: rgb(223, 233, 237);
  font-weight: bold;
  text-align: center;
}
.explain_summary_table td:nth-child(2) {
  background: rgb(255, 255, 255);
}

/* ===================================
  【解説】建設中テーブル
  EXPLAIN_CONSTRUCTION_TABLE
  ==================================== */
.construction-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: var(--font-size-content);
  margin-bottom: 10px;
}
.construction-table th,
.construction-table td {
  border: 1px solid #cfcfcf;
  padding: 10px;
  vertical-align: middle;
  background: var(--color-bg-cell);
}
.construction-table tbody tr:first-child th {
  background: #1f4293;
  color: var(--color-bg-cell);
  text-align: center;
  font-weight: bold;
}
.construction-table tbody tr:not(:first-child) td:first-child {
  background: #eef9fb;
  text-align: center;
}
.construction-table a {
  color: #0070d8;
  text-decoration: underline;
  font-weight: bold;
}

/* ==================================
  【解説】車両ガイドカード
  EXPLAIN_GUIDE_CARD
  =================================== */
.card-wrapper {
  display: flex;
  height: auto;
  padding: 10px;
}
.vehicle-card {
  display: flex;
  width: 100%;
  background-color: #ffffff;
  box-sizing: border-box;
}
.vehicle-card-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: space-between;
}
.vehicle-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 10px;
  padding: 4px;
}
.vehicle-card-header.train-color {
  border-bottom: 2px solid var(--train-color);
}
.vehicle-card-title {
  margin: 0;
  font-size: 34px;
  color: black;
  font-family: fantasy;
  transform: scaleY(1.4);
}
.vehicle-card-meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  font-size: 13px;
}
.vehicle-card-badge {
  display: flex;
  flex-direction: column;
  color: #ffffff;
  width: 44px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 10%;
}
.vehicle-card-badge .badge-top-text {
  font-size: 12px;
  font-weight: bold;
}
.vehicle-card-badge .badge-bottom-text {
  font-size: 10px;
}
.vehicle-card-thumb img {
  width:100%;
  height:100%;
  object-fit:cover;
}
.vehicle-card-badge.m-linear {
  background-color: var(--color-bg-card-badge-linear);
}
.vehicle-card-badge.m-rubber {
  background-color: var(--color-bg-card-badge-rubber);
}
.vehicle-card-line.train-color {
  color: var(--train-color);
}

/* 4. メディアクエリ（スマホ） -------------------------------------------- */
@media screen and (max-width: 929px) {
  /* ===================================
    MTマルチカラム
    ==================================== */
  .mt-be-columns,
  .mt-be-columns[style] {
    display: block !important;
  }
  .mt-be-columns .mt-be-column {
    display: block !important;
    width: 100% !important;
    flex: none !important;
    max-width: 100% !important;
  }

  /* ===================================
    サイドメニュー
    ==================================== */
  .sidebar {
    position: fixed;
    left: -220px;
    top: var(--main-top, 0px);
    width: 220px;
    height: calc(100vh - var(--main-top, 0px));
    z-index: 1000;
    background: var(--color-bg-white);
    transition: left 0.3s ease;
    overflow-y: auto;
  }
  .sidebar.is-open {
    left: 0;
  }
  .side-menu-toggle {
    display: block;
    position: fixed;
    left: 0;
    top: calc(var(--main-top, 0px) + 20px);
    z-index: 1001;
    width: 32px;
    height: 70px;
    background: #005bac;
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: var(--font-size-zoom-image-text);
    font-weight: bold;
    cursor: pointer;
    transition: left 0.3s ease;
  }
  .sidebar.is-open + .side-menu-toggle,
  .side-menu-toggle.open {
    left: 220px !important;
  }

  /* ===================================
    【解説】地下鉄情報
    EXPLAIN_SUBWAY_INFO
    ==================================== */
  .subway-info-box {
    display: block;
    padding: 14px;
  }
  .subway-info-box .subway-info-left {
    width: 100%;
    margin-bottom: 14px;
  }
  .subway-info-box .subway-info-right {
    padding-left: 0;
    padding-top: 12px;
    border-left: none;
    border-top: 1px dotted #999;
  }

  /* ===================================
    【解説】見出し付きコンテンツ_右画像
    HEADLINE_CONTENT_RIMAGE
    ==================================== */
  .headline-content-rimage {
    display: block;
  }
  .headline-content-rimage .labeled-content-block {
    width: 100%;
    margin-bottom: 16px;
  }
  .headline-content-rimage .headline-image {
    width: 100%;
    flex-basis: auto;
  }
  .headline-content-rimage .headline-image img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  /* ===================================
    【解説】画像付きテーブル
    IMAGE_TABLE
    ==================================== */
  .subway-table-part {
    display: block;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .subway-table-part table {
    min-width: 700px;
    width: max-content;
    table-layout: fixed;
  }

  /* ===================================
    【解説】拡大画像
    CLICK_IMAGE
    ==================================== */
  .image-zoom-modal__img {
    max-width: 96vw;
    max-height: 82vh;
  }
  .image-zoom-prev,
  .image-zoom-next {
    width: 36px;
    height: 56px;
    background: rgba(0, 0, 0, 0.25);
    font-size: var(--font-size-zoom-image-text);
  }
  .image-zoom-prev {
    left: 8px;
  }
  .image-zoom-next {
    right: 8px;
  }

  /* ===================================
    【解説】問い合わせ案内
    CONTACT_FIELD
    ==================================== */
  .contact-row {
    gap: 3px;
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-row .contact-tel {
    order: 5;
  }
  .contact-row .contact-tel,
  .contact-row .contact-desc {
    padding-left: 14px;
    white-space: normal;
  }
/*
  .contact-row .contact-title,
  .contact-row .contact-tel, 
  .contact-row .contact-desc {
    width: 100% 
  }
*/
  /* ===================================
    【解説】国コンテナ
    COUNTRY_CONTAINER
    ==================================== */
  .country-container .country-info-card {
    display: block;
  }
  .country-container .country-info-card__left,
  .country-container .country-info-card__middle {
    border-right: none;
    border-bottom: 1px dotted #999;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }
  .country-container .country-info-card__middle {
    white-space: normal;
  }

  /* ===================================
    【解説】建設中テーブル
    EXPLAIN_CONSTRUCTION_TABLE
    ==================================== */
  .construction-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
  }
  .construction-table tbody {
    display: table;
    width: 900px;
  }
}