/* 全体のレイアウト */
.station-search-wrap {
  max-width: 100%;
  margin: 0 auto;
  padding: 5px;
}

.site-content,
.main,
#content {
  overflow: visible !important;
}

.search-header {
  position: sticky;
  background: #fff;
  padding: 5px 0;
  text-align: center;
  border-bottom: 3px solid teal;
}

.search-title {
  margin: 0;
  margin-bottom: 5px;
  font-size: 24px;
  border-bottom: solid 3px teal;
}

.search-description {
  margin: 0px;
  margin-bottom: 5px;
  color: #666;
  font-size: 14px;
}

.search-caution {
  margin: 0px;
  color: #666;
  font-size: 14px;
}

.x-image {
  margin:  0 auto;
  margin-top: 5px; 
  display: block;
  width: 30px;
  height: auto;
}

.x-image:hover {
  transform: rotate(15deg);
  transition: transform 0.3s ease;
}

.external-link-button {
  display: inline-block;
  margin:  0 auto; 
  padding: 2px 4px;
  background: teal;
  color: white !important;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s ease, transform 0.1s ease;
}

.external-link-button:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

.external-link-button:active {
  transform: translateY(0);
}

.weather-box {
  display: inline-block;
  margin: 20px 0;
}

/* 各ブロック */
.weather-block {
  min-width: 300px;
}

/* 横スクロール */
.weather-scroll {
  overflow-x: auto;
  margin: 2px;
}

/* テーブル本体 */
.weather-h-table {
  width: max-content;
  border-collapse: collapse;
  font-size: 12px; /* ← 小さめで読みやすい */
  text-align: center;
  background: #ffffff;
  color: #333;
}

/* 左端の「今日:4/5(mon)」「明日:4/6(tue)」 */
.label-cell {
  font-weight: 600;
  white-space: nowrap;
  padding: 4px 6px;
  background: #e6f4f4; /* ← teal の薄い背景 */
  border-right: 1px solid #bcdede;
  border-bottom: 1px solid #bcdede;
  color: #006d6d; /* 濃い teal */
}

/* 時刻セル */
.weather-h-table td {
  padding: 4px 6px;
  border-bottom: 1px solid #e0e0e0;
  min-width: 42px;
}

/* 1行目（時間軸） */
.weather-h-table tr:first-child td {
  font-weight: 600;
  background: #f7fafa;
  border-bottom: 2px solid #bcdede;
  color: #006d6d; /* teal */
}

/* アイコンセル（天気） */
.weather-h-table td:not(.label-cell) {
  font-size: 15px; /* ← 控えめ */
  line-height: 1.2;
}

@media (max-width: 480px) {

  /* テーブル全体の文字サイズを縮小 */
  .weather-h-table {
    font-size: 8px;
  }

  /* 左端の今日/明日/横浜の天気 */
  .label-cell {
    font-size: 8px;
    padding: 1px 1px;
  }

  /* 時刻セル */
  .weather-h-table td {
    font-size: 8px;
    padding: 1px 1px;
    min-width: 36px; /* ← スマホでは少し狭く */
  }

  /* アイコン（天気） */
  .weather-h-table td:not(.label-cell) {
    font-size: 8px; /* ← アイコンは少し大きめで視認性確保 */
  }
}


.station-search-input{
    position: sticky;
    width: 100%;
    top: 100px;
    margin-top: 15px;
}

/* 検索フォーム */
#stationSearch {
  width: 100%;
  padding: 12px;
  font-size: 18px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 20px;
}

.no-result-lavel {
  text-align: center;
  font-size: 20px;
  margin-top: 20px;
  color: black;
}

/* カード */
.result-card {
  padding: 16px;
  border: 1px solid teal;
  margin: 12px 0;
  border-radius: 8px;
  background: white;
}

/* 横並びの行 */
.card-header-row {
  display: flex;
  align-items: center;
  gap: 10px; /* 駅名とバーの間の余白 */
  margin-bottom: 12px;
}

/* 駅名（station-name）：teal枠＋teal文字 */
.station-name {
  display: inline-block;
  padding: 2px 8px;
  font-size: 16px;
  font-weight: bold;
  color: teal;
  border: 2px solid teal;
  border-radius: 4px;
  background: white;
  margin: 0;
  white-space: nowrap; /* 改行しない */
}

/* スポット名バー（右側の帯） */
.card-spot-name-bar {
  background: teal;
  padding: 4px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  flex: 1;
}

/* スポット名（白文字） */
.card-spot-name-bar .spot-name {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: white;
  white-space: nowrap;
}


.result-card .pharagraph{
 margin: 0px !important;
}

/* iframe の余白 */
.result-card iframe {
  width: 100%;
  height: 300px;
  border: 0;
  margin: 12px 0;
  border-radius: 6px;
}