/**
 * インプラント治療費 (post 355) 専用スタイル
 *
 * 命名: BEM 風 .implant-cost-{block}__{element}--{modifier}
 * 親テーマ + 子テーマの後に enqueue されるので、必要なところだけ上書き
 *
 * MHLW ガイドライン考慮:
 *   - リスク・期間情報は料金情報と同等の見やすさ (font-size, color, padding) で表示
 *   - 利点だけ強調しない
 */

/* ===== 全体コンテナ =====
 * テーマの #main_col 幅に追従 (max-width 制約は付けない)。
 * 文章主体のセクションは内側で max-width を絞る方針。
 */
.implant-cost-page {
  padding: 24px 16px;
  line-height: 1.75;
  color: #2c2c2c;
}
.implant-cost-page > .implant-cost-section,
.implant-cost-page > .implant-cost-hero {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
/* 症例集セクションは max-width をテーマ任せ (4 カラム carousel 用) */
.implant-cost-page > .implant-cost-section.implant-cost-section--cases {
  max-width: none;
}

.implant-cost-page * {
  box-sizing: border-box;
}

/* ===== ヒーロー ===== */
.implant-cost-hero {
  background: linear-gradient(135deg, #f7fbff 0%, #e8f3ff 100%);
  border-radius: 16px;
  padding: 32px 24px;
  margin-bottom: 40px;
  border: 1px solid #cfe2ff;
}
.implant-cost-hero__title {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: #1a4d8c;
  line-height: 1.4;
}
.implant-cost-hero__subtitle {
  font-size: 0.95rem;
  color: #555;
  margin: 0 0 24px;
}
.implant-cost-hero__ranges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.implant-cost-hero__range {
  background: #fff;
  border: 1px solid #cfe2ff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.implant-cost-hero__range-label {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 8px;
  font-weight: 600;
}
.implant-cost-hero__range-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a4d8c;
  margin-bottom: 6px;
}
.implant-cost-hero__range-note {
  font-size: 0.8rem;
  color: #777;
  line-height: 1.5;
}
/* ===== 税表記の告知バー (ページ最上段) ===== */
.implant-cost-tax-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff8e8;
  border: 1px solid #f0c040;
  border-left: 5px solid #d4a017;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #5c4400;
}
.implant-cost-tax-notice__badge {
  flex-shrink: 0;
  display: inline-block;
  padding: 4px 10px;
  background: #d4a017;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 4px;
  white-space: nowrap;
}
.implant-cost-tax-notice__text {
  flex: 1;
  font-weight: 600;
}
@media (max-width: 600px) {
  .implant-cost-tax-notice {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.9rem;
  }
}

/* ===== 各セクション共通 ===== */
.implant-cost-section {
  margin-bottom: 48px;
  padding-top: 8px;
}
.implant-cost-section__title {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 3px solid #1a4d8c;
  color: #1a4d8c;
}
.implant-cost-section__intro {
  font-size: 0.95rem;
  color: #555;
  margin: 0 0 24px;
}

/* ===== 6 ケース料金 ===== */
.implant-cost-tooth {
  margin-bottom: 40px;
}
.implant-cost-tooth__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 8px;
  padding-left: 12px;
  border-left: 5px solid #1a4d8c;
}
.implant-cost-tooth__desc {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 16px;
}
.implant-cost-patterns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.implant-cost-pattern {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.implant-cost-pattern--minimum  { border-color: #b8d4f0; }
.implant-cost-pattern--standard { border-color: #4a90c8; box-shadow: 0 2px 12px rgba(74,144,200,0.15); }
.implant-cost-pattern--maximum  { border-color: #d4a017; }

.implant-cost-pattern__head {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid #eee;
}
.implant-cost-pattern--minimum  .implant-cost-pattern__head { background: #f0f7ff; }
.implant-cost-pattern--standard .implant-cost-pattern__head { background: #e3f0fc; }
.implant-cost-pattern--maximum  .implant-cost-pattern__head { background: #fff8e8; }

.implant-cost-pattern__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
}
.implant-cost-pattern__total {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a4d8c;
}
.implant-cost-pattern--maximum .implant-cost-pattern__total { color: #b8860b; }

.implant-cost-pattern__body {
  padding: 16px 20px;
  flex-grow: 1;
}
.implant-cost-pattern__desc {
  font-size: 0.9rem;
  color: #444;
  margin: 0 0 12px;
}
.implant-cost-pattern__when {
  font-size: 0.82rem;
  color: #555;
  margin: 0 0 12px;
  padding: 8px 12px;
  background: #fafafa;
  border-radius: 6px;
  line-height: 1.6;
}
.implant-cost-pattern__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.implant-cost-pattern__table th {
  text-align: left;
  font-weight: 500;
  padding: 6px 0;
  color: #444;
  border-bottom: 1px solid #f0f0f0;
}
.implant-cost-pattern__table td {
  text-align: right;
  padding: 6px 0;
  font-weight: 600;
  color: #1a4d8c;
  white-space: nowrap;
  border-bottom: 1px solid #f0f0f0;
}

/* ===== 個別処置料金一覧 ===== */
.implant-cost-pricelist__group {
  margin-bottom: 28px;
}
.implant-cost-pricelist__cat {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 12px;
  padding-left: 12px;
  border-left: 4px solid #1a4d8c;
  color: #1a4d8c;
}
.implant-cost-pricelist__items {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}
.implant-cost-pricelist__item {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  background: #fff;
}
.implant-cost-pricelist__item:last-child {
  border-bottom: none;
}
.implant-cost-pricelist__item:nth-child(even) {
  background: #fafbfc;
}
.implant-cost-pricelist__item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}
.implant-cost-pricelist__item-name {
  font-weight: 600;
  color: #2c2c2c;
  font-size: 0.98rem;
  line-height: 1.5;
  flex: 1 1 auto;
}
.implant-cost-pricelist__item-price {
  font-weight: 700;
  color: #1a4d8c;
  white-space: nowrap;
  flex: 0 0 auto;
}
.implant-cost-pricelist__item-desc {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.65;
  margin: 0;
  padding-left: 4px;
}

/* ===== 治療期間 ===== */
.implant-cost-period__phases {
  margin-bottom: 24px;
}
.implant-cost-phase {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-left: 3px solid #1a4d8c;
  margin-bottom: 12px;
  background: #fafcff;
  border-radius: 0 8px 8px 0;
}
.implant-cost-phase__order {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1a4d8c;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.implant-cost-phase__body {
  flex-grow: 1;
}
.implant-cost-phase__name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #1a4d8c;
}
.implant-cost-phase__meta {
  font-size: 0.82rem;
  color: #666;
  margin-bottom: 6px;
}
.implant-cost-phase__meta span {
  display: inline-block;
  margin-right: 12px;
  padding: 2px 8px;
  background: #e8f0f8;
  border-radius: 4px;
}
.implant-cost-phase__desc {
  font-size: 0.9rem;
  color: #444;
  margin: 0;
}
.implant-cost-period__total {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin: 16px 0 24px;
  padding: 16px;
  background: #f0f7ff;
  border-radius: 8px;
}
.implant-cost-period__total-item {
  font-size: 0.95rem;
}
.implant-cost-period__maintenance {
  padding: 16px;
  background: #fffbe8;
  border-left: 4px solid #d4a017;
  border-radius: 0 8px 8px 0;
}
.implant-cost-period__maintenance h3 {
  font-size: 1rem;
  margin: 0 0 8px;
  color: #b8860b;
}
.implant-cost-period__maintenance p {
  margin: 4px 0;
  font-size: 0.9rem;
}

/* ===== リスク・副作用 ===== */
.implant-cost-risks {
  /* MHLW ガイドライン: 利点と同等以上の見やすさ */
}
.implant-cost-risks .implant-cost-section__title {
  border-color: #c9302c;
  color: #c9302c;
}
.implant-cost-risk-cat {
  margin-bottom: 20px;
  padding: 16px 20px;
  background: #fff8f7;
  border: 1px solid #f5d6d2;
  border-radius: 8px;
}
.implant-cost-risk-cat__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: #c9302c;
}
.implant-cost-risk-cat__list {
  margin: 0;
  padding-left: 20px;
}
.implant-cost-risk-cat__list li {
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: #333;
  line-height: 1.7;
}
.implant-cost-risks__closing {
  margin-top: 20px;
  padding: 16px;
  background: #fafafa;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #555;
}

/* ===== 支払・保証・医療費控除 ===== */
.implant-cost-payment__group {
  margin-bottom: 20px;
  padding: 16px;
  background: #fafcff;
  border-radius: 8px;
}
.implant-cost-payment__group h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: #1a4d8c;
}
.implant-cost-payment__group ul {
  margin: 0 0 8px;
  padding-left: 20px;
}
.implant-cost-payment__group p {
  margin: 4px 0;
  font-size: 0.92rem;
}
.implant-cost-payment__note {
  font-size: 0.82rem;
  color: #999;
  font-style: italic;
}

/* ===== 信頼性ブロック ===== */
.implant-cost-trust__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.implant-cost-trust__list li {
  margin: 0;
}
.implant-cost-trust__list a {
  display: block;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #cfe2ff;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}
.implant-cost-trust__list a:hover {
  background: #f7fbff;
  border-color: #1a4d8c;
  transform: translateY(-2px);
}
.implant-cost-trust__label {
  display: block;
  font-weight: 700;
  color: #1a4d8c;
  margin-bottom: 4px;
}
.implant-cost-trust__desc {
  display: block;
  font-size: 0.85rem;
  color: #666;
}

/* ===== CTA ===== */
.implant-cost-cta {
  background: linear-gradient(135deg, #f7fbff 0%, #e8f3ff 100%);
  border-radius: 16px;
  padding: 32px 24px;
}
.implant-cost-cta__message {
  font-size: 0.95rem;
  margin: 0 0 24px;
  line-height: 1.7;
}
.implant-cost-cta__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.implant-cost-cta__tel {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid #1a4d8c;
}
.implant-cost-cta__tel-label {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 4px;
}
.implant-cost-cta__tel-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a4d8c;
  margin-bottom: 4px;
}
.implant-cost-cta__tel-hours {
  font-size: 0.78rem;
  color: #777;
}
.implant-cost-cta__form {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a4d8c;
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.2s;
}
.implant-cost-cta__form:hover {
  background: #143a6d;
  color: #fff;
}

/* ===== 症例集セクション =====
 * 親テーマ birth_057 の #blog_list .item スタイルを流用するため、
 * 同じマークアップ (article.item / a.image / .title_area / .meta) を使用。
 * セクション内に追加のラッパー .implant-cost-cases-list を置く。
 */
.implant-cost-cases-list-wrap {
  margin-top: 8px;
}
.implant-cost-cases-list-wrap #blog_list {
  /* テーマの #blog_list .item レイアウトを継承 */
}
.implant-cost-cases-more {
  text-align: center;
  margin-top: 24px;
}
.implant-cost-cases-more a {
  display: inline-block;
  padding: 12px 32px;
  background: #1a4d8c;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
}
.implant-cost-cases-more a:hover {
  background: #143a6d;
  color: #fff;
}

/* ===== レスポンシブ ===== */
@media (max-width: 700px) {
  .implant-cost-hero__title { font-size: 1.4rem; }
  .implant-cost-hero__range-value { font-size: 1.4rem; }
  .implant-cost-section__title { font-size: 1.2rem; }
  .implant-cost-tooth__title { font-size: 1.05rem; }
  .implant-cost-pattern__total { font-size: 1.3rem; }
  .implant-cost-cta__buttons {
    grid-template-columns: 1fr;
  }
  .implant-cost-phase {
    flex-direction: column;
    gap: 8px;
  }
  .implant-cost-phase__order {
    align-self: flex-start;
  }
}
