body {
  background-color: #121212;
  color: #eee;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  box-sizing: border-box;
}

.container {
  width: 100%;
  max-width: 480px;
  background-color: #1e1e1e;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

h2 {
  text-align: center;
  color: #eee; /* タイトルは白系に戻して落ち着かせます */
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 1.8rem;
}

.section {
  margin-bottom: 30px;
}

label {
  display: block;
  font-size: 1.0rem;
  margin-bottom: 12px;
  color: #aaa;
  font-weight: bold;
}

/* --- ボタングループ (ここを大幅強化) --- */
.button-group {
  display: flex;
  gap: 15px;
}

.button-group button {
  flex: 1;
  padding: 18px 10px; /* 文字数によって調整 */
  border: 2px solid #333;
  background-color: #2c2c2c;
  color: #888;
  font-size: 1.1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-weight: bold;
}

/* ホバー時の挙動 */
.button-group button:hover {
  background-color: #3a3a3a;
}

/* 選択された時の共通スタイル */
.button-group button.active {
  color: white;
  transform: scale(1.05); /* 少し大きく */
  border-color: transparent; /* 枠線を消して背景色を目立たせる */
}

/* --- モードごとの個別カラー設定 --- */

/* 🚃 電車：オレンジ (JR東海カラー風) */
#mode-transit.active {
  background-color: #ff8c00; 
  box-shadow: 0 0 15px rgba(255, 140, 0, 0.4);
}

/* 🚲 自転車：スカイブルー */
#mode-bike.active {
  background-color: #00bfff;
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.4);
}

/* 🏃 ラン：ホットピンク */
#mode-run.active {
  background-color: #ff1493;
  box-shadow: 0 0 15px rgba(255, 20, 147, 0.4);
}

/* ---------------------------------- */

#current-location-text {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #4caf50;
  text-align: right;
  min-height: 1.2em;
}

/* セレクトボックス */
select {
  width: 100%;
  padding: 18px;
  font-size: 1.2rem;
  border-radius: 12px;
  border: 1px solid #444;
  background-color: #2c2c2c;
  color: white;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 1.5rem center;
  background-size: 0.8rem auto;
}

/* 検索ボタン */
.action-btn {
  width: 100%;
  padding: 22px;
  font-size: 1.4rem;
  font-weight: bold;
  background: linear-gradient(145deg, #444, #555);
  color: white;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.1s;
}
.action-btn:active {
  transform: scale(0.98);
}

/* 結果カード */
.info-card {
  background-color: #2a2a2a;
  border-left: 6px solid #4caf50; /* 結果が出たら緑のライン */
  padding: 20px;
  margin: 25px 0;
  border-radius: 8px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
}

.info-card .label {
  font-size: 0.95rem;
  color: #aaa;
  margin: 0;
}

.result-text {
  font-size: 1.3rem;
  margin: 0 0 20px 0;
  white-space: pre-line;
  line-height: 1.6;
}

.result-time {
  font-size: 3.5rem;
  font-weight: bold;
  color: #4caf50;
  margin: 0;
  text-align: center;
  line-height: 1;
}

.note {
  font-size: 0.8rem;
  color: #777;
}

/* LINE送信ボタン */
.line-btn {
  width: 100%;
  padding: 22px;
  font-size: 1.4rem;
  font-weight: bold;
  background-color: #06c755;
  color: white;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(6, 199, 85, 0.4);
  transition: transform 0.1s;
}
.line-btn:active {
  transform: scale(0.98);
}

#message-area {
  margin-top: 20px;
  text-align: center;
  font-weight: bold;
  white-space: pre-wrap;
  min-height: 20px;
}
.error { color: #ff4d4d; }
.success { color: #06c755; }
