:root {
  --primary-color: #900000;
  --gold-color: #c5a059;
  --bg-light: #fdfbf7;
  --text-color: #333333;
  --border-color: #e0d8c8;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  background-color: var(--bg-light);
  color: var(--text-color);
  line-height: 1.8;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-title {
  text-align: center;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 15px;
  margin-bottom: 40px;
}

.page-title h1 {
  font-size: 2rem;
  color: var(--primary-color);
  margin: 0;
}

.page-title p {
  font-size: 0.95rem;
  color: #666;
  margin-top: 5px;
}

.year-banner {
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: center;
  padding: 12px;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 30px;
  border-radius: 4px;
}

.section-block {
  background: #ffffff;
  padding: 30px;
  margin-bottom: 40px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.section-title {
  font-size: 1.4rem;
  color: var(--primary-color);
  border-left: 4px solid var(--primary-color);
  padding-left: 12px;
  margin-top: 0;
  margin-bottom: 20px;
}

.gender-sub-title {
  font-size: 1.15rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 5px;
}

.yaku-detail-box {
  background-color: #fcf9f2;
  border: 1px solid #ebdcb9;
  padding: 1rem;
  margin-top: 20px;
  border-radius: 4px;
}

.yaku-detail-box h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 1.05rem;
}

.yaku-detail-box ul {
  padding-left: 1rem;
  margin-bottom: 10px;
}

.table-responsive {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
  text-align: center;
}

th, td {
  border: 1px solid var(--border-color);
  padding: 12px 8px;
  font-size: 0.95rem;
}

th {
  background-color: #f7f3eb;
  color: var(--primary-color);
  font-weight: bold;
}

.highlight-taiyaku {
  background-color: #fff0f0;
  font-weight: bold;
  color: #b00000;
}

.badge-taiyaku {
  background: #b00000;
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
}

.guide-list {
  padding-left: 20px;
}

.guide-list li {
  margin-bottom: 8px;
}

.note-text {
  font-size: 0.85rem;
  color: #666;
  margin-top: 10px;
}

.btn-reserve {
  display: block;
  width: 260px;
  margin: 30px auto 0;
  padding: 15px;
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.btn-reserve:hover {
  background-color: #700000;
}

/* パンくずリスト */
.breadcrumb {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: #333;
  font-weight: bold;
}

/* ページ下部 ナビゲーションブロック */
.navigation-footer {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

/* 一覧へ戻るボタン */
.btn-back {
  display: inline-block;
  padding: 10px 20px;
  color: #666;
  background-color: #f0ece1;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-back:hover {
  background-color: #e2dbca;
  color: #333;
}


.yaku-checker-container {
  max-width: 480px;
  margin: 20px auto;
  padding: 20px;
  background-color: #FAF8F5;
  border: 1px solid #E5DFD5;
  border-radius: 8px;
  box-sizing: border-box;
}

.checker-title {
  font-size: 1.2rem;
  color: #3B200B;
  text-align: center;
  margin: 0 0 8px 0;
  border-bottom: 2px solid #8B0000;
  padding-bottom: 6px;
}

.checker-desc {
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.4;
}

.checker-desc span {
  font-weight: bold;
  color: #8B0000;
}

.checker-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group-radio {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.birth-label {
  display: block;
  font-size: 0.85rem;
  font-weight: bold;
  color: #3B200B;
  margin-bottom: 6px;
}

/* 年月日セレクトボックスのレイアウト */
.select-row {
  display: flex;
  gap: 6px;
  width: 100%;
}

.year-item {
  flex: 5; /* 年を広めに */
}

.month-item {
  flex: 3;
}

.day-item {
  flex: 3;
}

.input-select {
  width: 100%;
  padding: 10px 4px;
  font-size: 0.95rem;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  background-color: #FFF;
  color: #333;
  box-sizing: border-box;
  text-align-last: center;
}

.btn-check {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-weight: bold;
  color: #FFF;
  background-color: #8B0000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 4px;
  transition: opacity 0.2s;
}

.btn-check:hover {
  opacity: 0.9;
}

/* 結果表示スタイル */
.checker-result {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed #CBD5E1;
}

.result-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  background: #FFF;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid #E2E8F0;
  margin-bottom: 12px;
  font-weight: bold;
  font-size: 0.88rem;
}

.status-card {
  background: #FFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
}

.status-card.danger {
  border: 2px solid #DC2626;
  background: #FFF5F5;
}

.status-card.warning {
  border: 2px solid #D97706;
  background: #FFFBEB;
}

.status-card.safe {
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
}

.status-heading {
  margin: 0 0 6px 0;
  font-size: 0.85rem;
  color: #64748B;
}

.status-text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: bold;
  line-height: 1.4;
}

.danger .status-text { color: #DC2626; }
.warning .status-text { color: #D97706; }
.safe .status-text { color: #475569; }
/* ===================================================
   ⛩️ 厄除けページ専用スタイル (yakuyoke.css)
=================================================== */

/* --- 1. ul, li のインデント調整（前厄・本厄・後厄リスト） --- */
.yaku-detail-box {
  padding: 16px;
  box-sizing: border-box;
}

.yaku-detail-box h3 {
  margin: 0 0 12px 0;
  font-size: 1rem;
  color: #3b200b;
}

.yaku-detail-box ul {
  list-style-type: disc;
  padding-left: 1.2rem !important; /* ブラウザ標準の40pxを浅くリセット */
  margin: 0 0 12px 0 !important;
}

.yaku-detail-box ul li {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 8px;
  padding-left: 0 !important;
}

.yaku-detail-box .note-text {
  font-size: 0.8rem;
  color: #777;
  line-height: 1.5;
  margin-top: 8px;
}

/* --- 2. シミュレーター全体のセンタリング & スマホ最適化 --- */
.yaku-checker-container {
  max-width: 480px;
  margin: 24px auto !important; /* PC・スマホ共通で中央揃え */
  padding: 20px 16px;
  background-color: #FAF8F5;
  border: 1px solid #E5DFD5;
  border-radius: 8px;
  box-sizing: border-box;
  text-align: center; /* タイトル・ラジオボタン等のセンター基準 */
}

.checker-title {
  font-size: 1.2rem;
  color: #3B200B;
  text-align: center;
  margin: 0 0 8px 0;
  border-bottom: 2px solid #8B0000;
  padding-bottom: 6px;
}

.checker-desc {
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ラジオボタン（性別）を中央配置 */
.form-group-radio {
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  gap: 24px;
  margin-bottom: 14px;
}

.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  cursor: pointer;
}

/* 生年月日入力グループ */
.form-group-birth-split {
  text-align: left;
  margin-bottom: 14px;
}

.birth-label {
  display: block;
  font-size: 0.85rem;
  font-weight: bold;
  color: #3B200B;
  margin-bottom: 6px;
  text-align: center; /* ラベルも中央 */
}

/* 年・月・日のセレクト行 */
.select-row {
  display: flex !important;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.year-item { flex: 5; }
.month-item { flex: 3; }
.day-item { flex: 3; }

.input-select {
  width: 100%;
  padding: 10px 4px;
  font-size: 0.95rem;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  background-color: #FFF;
  color: #333;
  box-sizing: border-box;
  text-align-last: center; /* セレクトボックス内の文字を中央揃え */
}

/* 判定ボタン */
.btn-check {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 10px auto 0 auto !important; /* ボタン自体を中央配置 */
  padding: 12px;
  font-size: 1rem;
  font-weight: bold;
  color: #FFF;
  background-color: #8B0000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-check:hover {
  opacity: 0.9;
}

/* 結果表示カード */
.checker-result {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed #CBD5E1;
  text-align: left; /* 結果の中身は左揃えで読みやすく */
}

.result-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  background: #FFF;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid #E2E8F0;
  margin-bottom: 12px;
  font-weight: bold;
  font-size: 0.88rem;
}

.status-card {
  background: #FFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
}

.status-card.danger { border: 2px solid #DC2626; background: #FFF5F5; }
.status-card.warning { border: 2px solid #D97706; background: #FFFBEB; }
.status-card.safe { border: 1px solid #CBD5E1; background: #F8FAFC; }

.status-heading {
  margin: 0 0 6px 0;
  font-size: 0.85rem;
  color: #64748B;
}

.status-text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: bold;
  line-height: 1.4;
}

.danger .status-text { color: #DC2626; }
.warning .status-text { color: #D97706; }
.safe .status-text { color: #475569; }