/**
 * 薬局検索TOPページ用スタイル
 */

.card-header-light {
  background: #d8f0d8;
  border-radius: 10px 10px 0 0;
  height: 60px;
}

.area-select-title {
  font-weight: 700;
}

@media (min-width: 640px) {
  .card-header-light {
    height: 100px;
  }
}

.tab-btn {
  height: 80px;
  font-size: 24px;
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  font-weight: 700;
}

.section-title {
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #222222;
  text-align: center;
}

.pill-cta {
  height: 56px;
  font-size: 18px;
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  font-weight: 700;
}

@media (max-width: 640px) {
  .section-title,
  .text-2xl {
    font-size: 18px;
  }

  .tab-btn {
    height: 60px;
    font-size: 18px;
  }

  .pill-cta {
    height: 40px;
    font-size: 16px;
  }

  .card-header-light {
    height: 60px;
  }
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.district-area-link {
  --area-color: #e5e5e5;
  border-color: var(--area-color);
}

.district-area-link:hover,
.district-area-link.is-active {
  background-color: var(--area-color);
  border-color: var(--area-color);
  color: #fff;
}

/* カレンダー展開時: カードの下角丸を除去し、白い橋を作る */
.touban-card.is-open {
  border-radius: 10px 10px 0 0;
  box-shadow: none;
  overflow: visible;
}

.touban-card.is-open::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -32px;
  width: 100%;
  height: 32px;
  background: #ffffff;
}

/* カレンダー展開時のボタン: 白背景+緑ボーダー */
.duty-month-btn.is-open {
  background: #ffffff !important;
  color: #28a570;
  border: 2px solid #28a570;
}

.duty-month-btn.is-open:hover {
  filter: none;
  background: #f9fdf9 !important;
}

/* 矢印を上向きに */
.duty-month-btn.is-open .duty-btn-arrow {
  transform: rotate(-90deg);
}

/* アイコン切り替え */
.duty-month-btn.is-open .duty-btn-icon-closed {
  display: none;
}

.duty-month-btn.is-open .duty-btn-icon-open {
  display: inline;
}

/* カレンダーコンテナ: カードとシームレスに接続 */
#duty-calendar-container {
  border-radius: 0 0 10px 10px;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.05);
}

.duty-calendar-content hr {
  margin: 0.5em 0;
}

.duty-calendar-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 100%;
}

.duty-calendar-content table td,
.duty-calendar-content table th {
  border: 1px solid #ccc;
  padding: 6px 8px;
  vertical-align: top;
}

.duty-calendar-content table a {
  color: #3a7fcf;
  text-decoration: underline;
}

.duty-calendar-content table a:hover {
  color: #ffd784;
}

/* モバイル: テーブルを縮小してスマホ幅に収める */
.duty-calendar-table-wrapper {
  overflow: hidden;
}

.duty-calendar-table-wrapper table {
  transform-origin: left top;
}
