/* 記念日ページ専用スタイル */

/* ============================
   基本情報（facts） — dl/dt/dd グリッド
   ============================ */
.kinenbi-facts {
  margin: 1.2em 0;
  background: linear-gradient(135deg, #f8f9fb 0%, #f0f2f5 100%);
  border-radius: 10px;
  padding: 12px;
  border: 1px solid #e2e5ea;
}
.facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0;
}
.fact-item {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  background: #fff;
  border-radius: 6px;
  margin: 3px;
}
.fact-item dt {
  font-size: 11px;
  font-weight: 600;
  color: #8a8f99;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}
.fact-item dd {
  font-size: 14px;
  font-weight: 500;
  color: #2c3e50;
  margin: 0;
  line-height: 1.45;
}

/* 本文 */
.kinenbi-body {
  margin: 1.5em 0;
  line-height: 1.85;
}
.kinenbi-body p {
  margin-bottom: 1.2em;
}

/* ============================
   参考リンク（カード形式）
   ============================ */
.kinenbi-reference {
  margin: 2em 0;
}
.kinenbi-reference h2 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #4a90d9;
}
.reference-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.reference-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.reference-card:hover {
  background: #eef3fb;
  border-color: #4a90d9;
  box-shadow: 0 2px 8px rgba(74, 144, 217, 0.12);
}
.reference-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  color: #4a90d9;
}
.reference-title {
  font-size: 14px;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ============================
   同じ日の他の記念日
   ============================ */
.kinenbi-same-day {
  margin: 2em 0;
}
.kinenbi-same-day h2 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e8a04a;
}
.same-day-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.same-day-list li {
  font-size: 14px;
  padding: 6px 12px;
  background: #fdf6ec;
  border-radius: 20px;
  border: 1px solid #f0dfc0;
}
.same-day-list li a {
  color: #b87a2a;
  text-decoration: none;
}
.same-day-list li a:hover {
  text-decoration: underline;
}

/* ============================
   カレンダー情報 — カード型グリッド
   ============================ */
.kinenbi-calendar-info {
  margin: 2em 0;
}
.kinenbi-calendar-info h2 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #5ab88f;
}
.cal-info-grid {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.cal-info-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px;
  background: #f0f8f4;
  border-radius: 10px;
  border: 1px solid #d4e8dc;
  text-align: center;
}
.cal-info-label {
  font-size: 11px;
  font-weight: 600;
  color: #5a9a7a;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}
.cal-info-value {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.4;
}
.cal-info-value small {
  font-size: 12px;
  font-weight: 400;
  color: #777;
}

/* 二十四節気・雑節 */
.solar-data {
  margin-top: 12px;
}
.solar-data h3 {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
}
.solar-data ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.solar-data li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: #555;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}
.solar-data li:last-child {
  border-bottom: none;
}
.solar-name {
  font-weight: 500;
  color: #3a7d5c;
}
.solar-date {
  font-size: 12px;
  color: #888;
  flex-shrink: 0;
  margin-left: 12px;
}

/* ============================
   導線リンク
   ============================ */
.kinenbi-navigation {
  margin: 2em 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kinenbi-navigation .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}
.kinenbi-navigation .nav-link:hover {
  background: #eef3fb;
  border-color: #4a90d9;
}
.nav-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: #4a90d9;
}

/* ============================
   モバイル対応
   ============================ */
@media (max-width: 600px) {
  /* facts: 1列に切り替え */
  .facts-grid {
    grid-template-columns: 1fr;
  }
  .fact-item {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    padding: 10px 12px;
  }
  .fact-item dt {
    flex-shrink: 0;
    min-width: 70px;
    margin-bottom: 0;
  }
  .fact-item dd {
    font-size: 13px;
  }

  /* カレンダー情報: 縦並び */
  .cal-info-grid {
    flex-direction: column;
    gap: 8px;
  }
  .cal-info-item {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 14px;
  }
  .cal-info-label {
    margin-bottom: 0;
  }

  /* 参考リンク */
  .reference-card {
    padding: 10px 12px;
  }
  .reference-icon {
    width: 32px;
    height: 32px;
  }
}
