/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* まちと政策 メインカラー設定（ティール / design/README.md「5. デザイントークン」準拠） */

:root {
  --bg-main-rgb: 13, 138, 122; /* #0d8a7a */
  --main-color: #0d8a7a;
  --main-color-hover: #0a6e62; /* ホバー用：少し濃いティール */
  --main-color-subtle: #e3f4f1; /* 淡色背景 */
  --main-border-subtle: #d8ece7; /* 淡色ボーダー */
}

/* メインボタン */
.btn-main {
  background-color: var(--main-color) !important;
  border-color: var(--main-color) !important;
  color: white !important;
  transition: all 0.2s ease-in-out;
}
.btn-main:hover {
  background-color: var(--main-color-hover) !important;
  border-color: var(--main-color-hover) !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* アウトラインボタン */
.btn-outline-main {
  color: var(--main-color) !important;
  border-color: var(--main-color) !important;
  background-color: transparent !important;
  transition: all 0.2s ease-in-out;
}
.btn-outline-main:hover {
  color: white !important;
  background-color: var(--main-color) !important;
}

/* 背景色（透明度対応） */
.bg-main {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--bg-main-rgb), var(--bs-bg-opacity)) !important;
}

/* お知らせ（alert-info のティール版）
 * 淡色ティール背景は bg-machi-mint 等の淡色セクションに溶け込むため、
 * 白背景 + ティールボーダーでどの背景上でも視認できるようにしている。 */
.alert-main {
  background-color: #fff;
  border: 1px solid var(--main-color);
  color: #21403a;
}

.alert-main .bi {
  color: var(--main-color);
}

/* 枠線 */
.border-main {
  border-color: var(--main-color) !important;
}

/* テキストカラー */
.text-main {
  color: var(--main-color) !important;
}

/* 追加スタイル */
.min-vh-50 {
  min-height: 50vh;
}

/* 固定ヘッダー対応 */
.page-content {
  padding-top: 56px; /* ナビゲーションバーの高さ */
}
