﻿@charset "UTF-8";
/* CSS Document */

/********************************************** 
	副駅名
********************************************* */

/* ★ PC含め共通 */
.station-row {
  display: flex;
  align-items: center;   /* 左の番号を中央に */
}


/* 右側：横並び（PC） */
.right {
  display: grid;
  grid-template-columns: 250px auto;
  align-items: flex-start;
  white-space: nowrap;
  /* column-gap: 16px; */
}


/* 画像 */
.station-img {
  display: inline-block;
  align-items: flex-start;
  vertical-align: middle;
}


.sub {
  white-space: nowrap;
}

/* 初期（PC） */
.img-sp {
  display: none;
  margin-left: 0;
}









/* スマホ・iPad */
@media (max-width: 1024px) {
  table.station-list th {
    --line-pos: calc(1rem + 17px - 3px);
  }

  table.station-list th a {
    white-space: nowrap;        /* 文字を改行させない */

  }

  .station-img {

  display: block;       /* inline-block だと隙間が出るケースあり */
  margin: 0;
  padding: 0;
  }
 
  .station-row {
	display: flex;
	align-items: center;   /* ←これがポイント（全体の縦中央） */
  }
	
  /* 右ブロック（縦並び） */
  .right {
	display: flex;
	flex-direction: column;
  }
	
  /* 文字 */
  .right a {
	white-space: nowrap;
  }
  
  
/* 副駅名＋画像は横並び */

.sub {
  display: flex;
  justify-content: flex-start; /* ← 左寄せ */
  gap: 0;                    /* ← 要素間のスペース */
  white-space: nowrap;
}


.sub a {
  margin: 0;
  padding: 0;
}


/* スマホ用 */
  .img-pc {
    display: none;
	margin-left: 0;
  }
  .img-sp {
    display: inline-block;
  }


}


