/* ============================================================
   整骨院元 くまなん院 / 腰椎椎間板ヘルニアページ 専用スタイル
   ファイル名: hernia.css
   ※ 全スタイルは .km-page--hernia スコープ内に限定
   ※ 他ページへの干渉なし
   ============================================================ */

/* ============================================================
   カラー変数
   ============================================================ */
.km-page--hernia {
  --hr-orange: #E8722A;
  --hr-orange-light: #fff3ec;
  --hr-orange-dark: #c45a18;
  --hr-red: #e5393a;
  --hr-red-light: #fdeceb;
  --hr-maroon: #9c1c3f;
  --hr-maroon-light: #fbe9ee;
  --hr-teal: #2bb3a3;
  --hr-teal-light: #e6f7f5;
  --hr-gray: #f5f5f5;
  --hr-border: #e0d0c0;
  --hr-text: #333;
  --hr-text-sub: #555;
}

/* ============================================================
   ページラッパー
   ============================================================ */
.km-page--hernia {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
  color: var(--hr-text);
  line-height: 1.7;
}

/* ============================================================
   テキストカラーユーティリティ
   ============================================================ */
.km-page--hernia .hr-text-orange { color: var(--hr-orange); font-weight: bold; }
.km-page--hernia .hr-text-red    { color: var(--hr-red);    font-weight: bold; }
.km-page--hernia .hr-text-maroon { color: var(--hr-maroon); font-weight: bold; }
.km-page--hernia .hr-text-teal   { color: var(--hr-teal);   font-weight: bold; }

/* ============================================================
   共通セクション
   ============================================================ */
.km-page--hernia .hr-section {
  padding: 32px 16px;
}

.km-page--hernia .hr-section--nopad {
  padding: 0;
}

.km-page--hernia .hr-section--beige {
  background: #fdf6f0;
  padding: 32px 16px;
}

.km-page--hernia .hr-section--teal {
  background: var(--hr-teal-light);
  padding: 32px 16px;
}

.km-page--hernia .hr-full-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   セクションタイトル共通
   ============================================================ */
.km-page--hernia .hr-section-title {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  color: var(--hr-text);
  margin-bottom: 6px;
  line-height: 1.5;
}

.km-page--hernia .hr-section-title-line {
  width: 60px;
  height: 3px;
  background: var(--hr-orange);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.km-page--hernia .hr-section-title-line--teal {
  background: var(--hr-teal);
}

.km-page--hernia .hr-section-lead {
  font-size: 14px;
  text-align: center;
  color: var(--hr-text-sub);
  margin-bottom: 20px;
  line-height: 1.8;
}

/* ============================================================
   SECTION: どんな症状？
   ============================================================ */
.km-page--hernia .hr-syoujou-wrap {
  /* ラッパー */
}

.km-page--hernia .hr-syoujou-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--hr-text);
  margin-bottom: 4px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--hr-teal);
}

.km-page--hernia .hr-syoujou-body {
  font-size: 14px;
  line-height: 1.9;
  color: var(--hr-text-sub);
  margin: 16px 0 20px;
}

.km-page--hernia .hr-syoujou-body mark {
  background: #ffe680;
  color: var(--hr-text);
  padding: 0 2px;
}

.km-page--hernia .hr-mechanism-box {
  border: 2px solid var(--hr-teal);
  border-radius: 8px;
  overflow: hidden;
}

.km-page--hernia .hr-mechanism-box-title {
  background: var(--hr-teal);
  color: #fff;
  font-weight: bold;
  font-size: 15px;
  padding: 10px 16px;
}

.km-page--hernia .hr-mechanism-box-body {
  padding: 16px;
}

.km-page--hernia .hr-mechanism-box-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--hr-text-sub);
  margin-bottom: 14px;
}

.km-page--hernia .hr-mechanism-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* ============================================================
   SECTION: お悩みリスト（4カード／赤バナー）
   ============================================================ */
.km-page--hernia .hr-nayami-wrap {
  /* ラッパー */
}

.km-page--hernia .hr-nayami-header {
  background: var(--hr-red);
  color: #fff;
  text-align: center;
  padding: 16px 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.6;
  margin-bottom: 20px;
}

.km-page--hernia .hr-nayami-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.km-page--hernia .hr-nayami-card {
  border: 1px solid var(--hr-red);
  border-radius: 6px;
  padding: 12px 10px;
  background: #fff;
}

.km-page--hernia .hr-nayami-card-title {
  font-size: 14px;
  font-weight: bold;
  color: var(--hr-text);
  margin-bottom: 6px;
}

.km-page--hernia .hr-nayami-card-desc {
  font-size: 11px;
  line-height: 1.6;
  color: var(--hr-text-sub);
}

.km-page--hernia .hr-nayami-closing {
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: var(--hr-text);
  line-height: 1.6;
}

/* ============================================================
   SECTION: 原因（7つの要因）
   ============================================================ */
.km-page--hernia .hr-genin-wrap {
  /* ラッパー */
}

.km-page--hernia .hr-genin-lead {
  font-size: 14px;
  line-height: 1.8;
  color: var(--hr-text-sub);
  margin-bottom: 20px;
}

.km-page--hernia .hr-genin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

.km-page--hernia .hr-genin-card {
  background: var(--hr-red);
  color: #fff;
  border-radius: 6px;
  padding: 12px 12px;
}

.km-page--hernia .hr-genin-card-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 6px;
  text-align: center;
}

.km-page--hernia .hr-genin-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 11px;
  line-height: 1.7;
}

.km-page--hernia .hr-genin-card-list li::before {
  content: "・";
}

.km-page--hernia .hr-genin-sub-title {
  font-size: 17px;
  font-weight: bold;
  color: var(--hr-red);
  text-align: center;
  margin-bottom: 16px;
}

.km-page--hernia .hr-genin-illust-img {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid var(--hr-red);
  border-radius: 8px;
  margin-bottom: 16px;
}

.km-page--hernia .hr-genin-summary {
  font-size: 14px;
  line-height: 1.9;
  color: var(--hr-text-sub);
}

/* ============================================================
   SECTION: なりやすい特徴（表組み）
   ============================================================ */
.km-page--hernia .hr-tokuchou-wrap {
  /* ラッパー */
}

.km-page--hernia .hr-tokuchou-lead {
  font-size: 14px;
  line-height: 1.8;
  color: var(--hr-text-sub);
  margin-bottom: 20px;
}

.km-page--hernia .hr-tokuchou-sub-title {
  font-size: 15px;
  font-weight: bold;
  color: var(--hr-teal);
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 3px solid var(--hr-teal);
}

.km-page--hernia .hr-tokuchou-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.km-page--hernia .hr-tokuchou-table th {
  background: var(--hr-teal);
  color: #fff;
  padding: 10px 8px;
  text-align: center;
  font-weight: bold;
  border: 1px solid #bde6e0;
  width: 24%;
}

.km-page--hernia .hr-tokuchou-table td {
  padding: 10px 8px;
  border: 1px solid #ddd;
  vertical-align: top;
  line-height: 1.6;
}

.km-page--hernia .hr-tokuchou-table tr:nth-child(even) td {
  background: #f8f8f8;
}

.km-page--hernia .hr-tokuchou-name {
  font-weight: bold;
  color: var(--hr-teal);
}

/* ============================================================
   SECTION: 3つのメリット
   ============================================================ */
.km-page--hernia .hr-merit-wrap {
  /* ラッパー */
}

.km-page--hernia .hr-merit-header {
  position: relative;
  margin-bottom: 24px;
  background: var(--hr-maroon);
  border-radius: 8px;
  overflow: hidden;
  min-height: 140px;
}

.km-page--hernia .hr-merit-header-photo img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  display: block;
  object-fit: cover;
  opacity: 0.45;
  position: absolute;
  top: 0;
  left: 0;
}

.km-page--hernia .hr-merit-header-text {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  width: 100%;
  padding: 20px 16px;
  box-sizing: border-box;
}

.km-page--hernia .hr-merit-header-sub {
  font-size: 12px;
  color: #f3d7de;
  margin-bottom: 4px;
}

.km-page--hernia .hr-merit-header-title {
  font-size: 17px;
  font-weight: bold;
  line-height: 1.6;
  margin-bottom: 6px;
}

.km-page--hernia .hr-merit-header-count {
  font-size: 24px;
  font-weight: bold;
  color: #ffd6de;
}

.km-page--hernia .hr-merit-header-count span {
  font-size: 42px;
}

.km-page--hernia .hr-merit-header-desc {
  font-size: 12px;
  color: #f3d7de;
}

/* アイコン帯（3つのアイコン） */
.km-page--hernia .hr-merit-icons {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  margin-bottom: 24px;
  padding: 16px 12px;
  background: var(--hr-maroon-light);
  border-radius: 8px;
  border: 1px solid #f0c0cc;
}

.km-page--hernia .hr-merit-icon-item {
  text-align: center;
  flex: 1;
  font-size: 11px;
  color: var(--hr-text);
  line-height: 1.5;
}

.km-page--hernia .hr-merit-icon-img {
  width: 60px;
  height: 60px;
  display: block;
  margin: 0 auto 8px;
  object-fit: contain;
}

.km-page--hernia .hr-merit-icon-label {
  text-align: center;
  font-size: 11px;
  font-weight: bold;
  color: var(--hr-maroon);
  line-height: 1.4;
}

/* メリットカードリスト */
.km-page--hernia .hr-merit-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.km-page--hernia .hr-merit-card {
  border: 2px solid var(--hr-maroon);
  border-radius: 8px;
  overflow: hidden;
}

.km-page--hernia .hr-merit-card-header {
  background: var(--hr-maroon);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.km-page--hernia .hr-merit-card-num {
  font-size: 32px;
  font-weight: bold;
  color: rgba(255,255,255,0.5);
  line-height: 1;
  min-width: 40px;
}

.km-page--hernia .hr-merit-card-title {
  font-size: 17px;
  font-weight: bold;
  line-height: 1.4;
}

.km-page--hernia .hr-merit-card-body {
  padding: 16px;
}

.km-page--hernia .hr-merit-card-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  margin-bottom: 12px;
}

.km-page--hernia .hr-merit-card-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--hr-text-sub);
}

/* ============================================================
   SECTION: 予防法
   ============================================================ */
.km-page--hernia .hr-yobou-wrap {
  /* ラッパー */
}

.km-page--hernia .hr-yobou-lead {
  font-size: 14px;
  text-align: center;
  line-height: 1.8;
  color: var(--hr-text-sub);
  margin-bottom: 24px;
}

.km-page--hernia .hr-yobou-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 14px;
  margin-bottom: 24px;
}

.km-page--hernia .hr-yobou-item {
  text-align: center;
}

.km-page--hernia .hr-yobou-item-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 10px;
  background: #fff;
}

.km-page--hernia .hr-yobou-item-label {
  font-size: 12px;
  line-height: 1.6;
  color: var(--hr-text);
  text-align: center;
  margin: 0;
}

.km-page--hernia .hr-yobou-closing {
  background: var(--hr-teal);
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  padding: 14px 16px;
  border-radius: 8px;
  line-height: 1.6;
}

/* ============================================================
   SECTION: FAQ
   ============================================================ */
.km-page--hernia .hr-faq-wrap {
  /* ラッパー */
}

.km-page--hernia .hr-faq-header {
  background: var(--hr-teal);
  color: #fff;
  text-align: center;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.km-page--hernia .hr-faq-header-title {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.5;
}

.km-page--hernia .hr-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.km-page--hernia .hr-faq-item {
  border: 1px solid var(--hr-border);
  border-radius: 8px;
  overflow: hidden;
}

.km-page--hernia .hr-faq-q {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--hr-teal-light);
  font-size: 14px;
  font-weight: bold;
  color: var(--hr-text);
  line-height: 1.6;
}

.km-page--hernia .hr-faq-q-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--hr-teal);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
}

.km-page--hernia .hr-faq-a {
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--hr-text-sub);
  background: #fff;
}

.km-page--hernia .hr-faq-a-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--hr-maroon);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 8px;
  vertical-align: middle;
}

/* ============================================================
   関連する症状・施術（リンクリスト）
   ============================================================ */
.km-page--hernia .hr-related-wrap {
  text-align: center;
}

.km-page--hernia .hr-related-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--hr-text);
  margin-bottom: 14px;
}

.km-page--hernia .hr-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.km-page--hernia .hr-related-list li a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--hr-orange-light);
  color: var(--hr-orange-dark);
  border: 1px solid var(--hr-orange);
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
}

/* ============================================================
   レスポンシブ（スマートフォン対応）
   ============================================================ */
@media (max-width: 480px) {
  .km-page--hernia .hr-section {
    padding: 24px 12px;
  }

  .km-page--hernia .hr-section-title,
  .km-page--hernia .hr-syoujou-title {
    font-size: 17px;
  }

  .km-page--hernia .hr-nayami-grid,
  .km-page--hernia .hr-genin-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .km-page--hernia .hr-nayami-card-title {
    font-size: 13px;
  }

  .km-page--hernia .hr-nayami-card-desc {
    font-size: 10.5px;
  }

  .km-page--hernia .hr-genin-card-title {
    font-size: 13px;
  }

  .km-page--hernia .hr-yobou-grid {
    gap: 16px 10px;
  }

  .km-page--hernia .hr-yobou-item-img {
    width: 84px;
    height: 84px;
  }

  .km-page--hernia .hr-merit-icons {
    gap: 4px;
    padding: 12px 8px;
  }

  .km-page--hernia .hr-merit-icon-img {
    width: 48px;
    height: 48px;
  }

  .km-page--hernia .hr-merit-icon-label {
    font-size: 10px;
  }

  .km-page--hernia .hr-merit-card-num {
    font-size: 26px;
    min-width: 32px;
  }

  .km-page--hernia .hr-merit-card-title {
    font-size: 15px;
  }

  .km-page--hernia .hr-tokuchou-table {
    font-size: 11px;
  }

  .km-page--hernia .hr-tokuchou-table th,
  .km-page--hernia .hr-tokuchou-table td {
    padding: 8px 6px;
  }
}
