/**
 * 薬局詳細ページ用スタイル
 */

/* アコーディオン */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-content.active {
  max-height: 2000px;
}

.accordion-toggle svg {
  transition: transform 0.3s ease;
}

.accordion-toggle > img:last-child {
  transition: transform 0.3s ease;
  transform: rotate(180deg);
}

.accordion-toggle.active > img:last-child {
  transform: rotate(0deg);
}

/* 基本情報テーブル */
.detail-table th,
.detail-table td {
  padding-top: 25px;
  padding-bottom: 25px;
}

.map-iframe {
  display: block;
}

/* 開局時間：常に横並び */
.hours-row {
  display: block;
}

.hours-label,
.hours-time {
  display: inline;
}

/* レスポンシブ */
@media (max-width: 640px) {
  main.max-w-\[1200px\] {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .detail-table tbody tr {
    display: flex;
    flex-direction: column;
  }

  .detail-table th {
    width: 100% !important;
    font-size: 15px !important;
    padding-top: 12px !important;
    padding-bottom: 2px !important;
    line-height: 1.4;
  }

  .detail-table td {
    width: 100% !important;
    font-size: 14px !important;
    padding-top: 2px !important;
    padding-bottom: 12px !important;
    line-height: 1.4;
  }

  table:not(.detail-table) th,
  table:not(.detail-table) td {
    font-size: 0.75rem;
    padding: 0.75rem 0.5rem;
  }
}
