@charset "UTF-8";

/* ----------------------------------------------------------------------
 設備紹介ページ (page-tcd-facility_introduction.php) 専用スタイル
---------------------------------------------------------------------- */

/* ----- セクション間の余白 ----- */
.fi_section {
  margin-bottom: 60px !important;
}
.fi_section:last-of-type {
  margin-bottom: 0 !important;
}

/* ----- 設備カードグリッド ----- */
.fi_items {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 28px;
}

/* ----- 設備カード（横並び：左画像・右テキスト） ----- */
.fi_item {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  background: #fff;
  border: 1px solid #e4eaf0;
  border-radius: 8px;
  padding: 24px 28px;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

/* ----- 画像エリア ----- */
.fi_item_img {
  flex: 0 0 330px;
  width: 330px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: #f4f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fi_item_img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity .2s;
}
.fi_item_img a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}
.fi_item_img a:hover img {
  opacity: .85;
}

/* ダミー画像枠 */
.fi_item_img--dummy {
  border: 2px dashed #c8d4df;
}
.fi_item_img--dummy span {
  font-size: 0.8rem;
  color: #9aacba;
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.5;
}
.fi_item_img--dummy span::before {
  content: '';
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aacba' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* ----- テキストエリア ----- */
.fi_item_body {
  flex: 1;
  min-width: 0;
}

/* メーカー名 */
.fi_item_maker {
  font-size: 0.78rem !important;
  color: #8a9baa !important;
  margin: 0 0 4px !important;
  line-height: 1.4 !important;
}

/* 製品名 */
.fi_item_name {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--main_color) !important;
  margin: 0 0 10px !important;
  line-height: 1.5 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 8px !important;
}

/* カテゴリーバッジ */
.fi_item_category {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--main_color);
  background: color-mix(in srgb, var(--main_color) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--main_color) 30%, #fff);
  border-radius: 20px;
  padding: 2px 10px;
  white-space: nowrap;
  vertical-align: middle;
}

/* 説明文 */
.fi_item_desc {
  font-size: 0.9rem !important;
  line-height: 1.8 !important;
  color: #444 !important;
  margin: 0 0 14px !important;
}

/* メーカーサイトリンク */
.fi_item_link {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--main_color) !important;
  border: 1px solid var(--main_color);
  border-radius: 20px;
  padding: 4px 16px;
  text-decoration: none !important;
  transition: background .2s, color .2s;
  line-height: 1.6;
}
.fi_item_link::after {
  content: ' ↗';
  font-size: 0.75em;
}
.fi_item_link:hover,
.fi_item_link:focus {
  background: var(--main_color);
  color: #fff !important;
}

/* ======================================================
   自費診療 アコーディオン
====================================================== */

/* トリガー（details要素） */
.fi_fee {
  margin-top: 16px;
  border: 1px solid color-mix(in srgb, var(--main_color) 35%, #fff);
  border-radius: 8px;
  overflow: hidden;
}

/* サマリー（クリック部分） */
.fi_fee_summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--main_color);
  background: color-mix(in srgb, var(--main_color) 8%, #fff);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.fi_fee_summary::-webkit-details-marker { display: none; }
.fi_fee_summary::after {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform .25s;
  filter: invert(28%) sepia(60%) saturate(600%) hue-rotate(180deg);
}
.fi_fee[open] > .fi_fee_summary::after {
  transform: rotate(180deg);
}
.fi_fee_summary:hover {
  background: color-mix(in srgb, var(--main_color) 15%, #fff);
}

/* コンテンツパネル */
.fi_fee_panel {
  padding: 16px 18px 18px;
  background: #fff;
  border-top: 1px solid color-mix(in srgb, var(--main_color) 20%, #fff);
}

/* 注記 */
.fi_fee_note {
  font-size: 0.78rem !important;
  color: #777 !important;
  margin: 0 0 14px !important;
  line-height: 1.6 !important;
}

/* 当日払い・回数券 セクション */
.fi_fee_section {
  padding-top: 14px;
}
.fi_fee_section + .fi_fee_section {
  margin-top: 14px;
  border-top: 1px dashed #d0dce6;
  padding-top: 14px;
}
.fi_fee_section_title {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: var(--main_color) !important;
  display: inline-block !important;
  padding: 2px 10px !important;
  border-radius: 3px !important;
  margin: 0 0 10px !important;
  letter-spacing: 0.05em !important;
}

/* グループ横並び */
.fi_fee_groups {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.fi_fee_group {
  min-width: 120px;
}

/* グループ見出し */
.fi_fee_group_title {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: var(--main_color) !important;
  margin: 0 0 6px !important;
  padding-bottom: 4px !important;
  border-bottom: 1px solid color-mix(in srgb, var(--main_color) 30%, #fff) !important;
}

/* 料金テーブル */
.fi_fee_table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.88rem;
  margin: 1em!important;;
}
.fi_fee_table th,
.fi_fee_table td {
  padding: 4px 10px 4px 0!important;
  vertical-align: middle;
  white-space: nowrap;
  border: none !important;
  background: transparent !important;
  

}
.fi_fee_table th {
  font-weight: 500;
  color: #555;
  width: 5em;
  padding: 0;
}
.fi_fee_table td {
  font-weight: 700;
  color: #222;
  text-align: right;
  padding-right: 0;
  padding: 0;
}

/* ======================================================
   レスポンシブ
====================================================== */
@media screen and (max-width: 1100px) {
  .fi_item_img {
    flex: 0 0 260px;
    width: 260px;
  }
}

@media screen and (max-width: 900px) {
  .fi_item_img {
    flex: 0 0 200px;
    width: 200px;
  }
}

@media screen and (max-width: 680px) {
  .fi_item {
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }
  .fi_item_img {
    flex: none;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    aspect-ratio: 3 / 2;
  }
  .fi_item_img--dummy span::before {
    width: 28px;
    height: 28px;
  }
  .fi_item_name {
    font-size: 1.05rem !important;
  }
  .fi_item_desc {
    font-size: 0.88rem !important;
  }
}
