/* ============================================================
   treatments-page.css — 診療詳細ページ共通スタイル
   SP基準幅: 390px / breakpoint: 751px
   ============================================================ */

/* ----------------------------------------------------------
   ヒーローセクション
   ---------------------------------------------------------- */
.tp-hero {
  background: #fff;
  padding: 48px 0 0;
  font-family: var(--oc-base-font, "Yu Gothic Medium", "Yu Gothic", YuGothic, sans-serif);
}

.tp-hero a {
  font-family: var(--oc-base-font, "Yu Gothic Medium", "Yu Gothic", YuGothic, sans-serif);
}

.tp-hero__inner {
  margin: 0 auto;
  padding: 0 16px;
  max-width: 1060px;
  box-sizing: border-box;
}

.tp-hero__wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.tp-hero__p {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tp-hero__ttl {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tp-hero__sub {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.5;
}

.tp-hero__main {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  letter-spacing: .04em;
  line-height: 1.3;
}

.tp-hero__desc {
  font-size: 14px;
  font-weight: var(--oc-fw-normal, 500);
  color: #333;
  line-height: 1.8;
}

.tp-hero__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f7f7f7;
  border-radius: 8px;
  overflow: hidden;
}

.tp-hero__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 751px) {
  .tp-hero {
    padding: 80px 0 0;
  }

  .tp-hero__inner {
    padding: 0 38px;
  }

  .tp-hero__wrap {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }

  .tp-hero__p {
    flex: 0 0 42%;
    gap: 32px;
  }

  .tp-hero__main {
    font-size: 40px;
  }

  .tp-hero__desc {
    font-size: 15px;
  }

  .tp-hero__img {
    flex: 1;
    aspect-ratio: auto;
    height: 417px;
    border-radius: 0;
  }
}

/* ----------------------------------------------------------
   機能説明カード（GLP-1の仕組みなど）
   ---------------------------------------------------------- */
.tp-feature-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tp-feature-card {
    background: #F7F7F7;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tp-feature-card__ttl-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tp-feature-card__icon {
  width: 56px;
  height: 56px;
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tp-feature-card__heading {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
}

.tp-feature-card__sub {
  font-size: 15px;
  font-weight: 700;
  color: #8D7F80;
  line-height: 1.4;
}

.tp-feature-card__body {
  font-size: 14px;
  font-weight: var(--oc-fw-normal, 500);
  color: #333;
  line-height: 1.8;
}

@media (min-width: 751px) {
  .tp-feature-grid {
    flex-direction: row;
    gap: 24px;
  }

  .tp-feature-card {
    flex: 1;
  }
}

/* ----------------------------------------------------------
   治療薬ナビ（5列）
   ---------------------------------------------------------- */
.tp-drug-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
      margin-bottom: 56px;
}

.tp-drug-nav .pg-tag-link {
  height: 52px;
  font-size: 14px;
}

@media (min-width: 751px) {
  .tp-drug-nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

/* ----------------------------------------------------------
   治療薬ブロック
   ---------------------------------------------------------- */
.tp-drug-blocks {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.tp-drug-block {
    overflow: hidden;
    scroll-margin-top: 80px;
    background: #ffffff;
}

.tp-drug-block__inner {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 751px) {
  .tp-drug-block__inner {
    padding: 40px;
    gap: 40px;
  }
}

.tp-drug-block__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tp-drug-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.5;
  align-self: flex-start;
}

.tp-drug-label--injection {
  background: #EFEDED;
  color: #8D7F80;
}

.tp-drug-label--oral {
  background: #EFEDED;
  color: #8D7F80;
}

.tp-drug-name-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.tp-drug-name {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
}

.tp-drug-name__sub {
  font-size: 14px;
  font-weight: var(--oc-fw-normal, 500);
  color: #686868;
  line-height: 1.5;
}

@media (min-width: 751px) {
  .tp-drug-name {
    font-size: 24px;
  }
}

.tp-drug-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tp-drug-body__img {
  width: 100%;
  height: auto;
  background: #f7f7f7;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.tp-drug-body__img img {
  display: block;
  width: 100%;
  height: auto;
}

.tp-drug-body__text {
  font-size: 14px;
  font-weight: var(--oc-fw-normal, 500);
  color: #333;
  line-height: 1.8;
}

@media (min-width: 751px) {
  .tp-drug-body {
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
  }

  .tp-drug-body__img {
    flex: 0 0 45%;
    height: auto;
  }

  .tp-drug-body__text {
    flex: 1;
    font-size: 15px;
  }
}

.tp-drug-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ----------------------------------------------------------
   番号付き h4
   ---------------------------------------------------------- */
.tp-h4 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tp-h4__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #8D7F80;
  color: #fff;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

.tp-h4__text {
  font-size: 17px;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
}

/* ----------------------------------------------------------
   箇条書き（ドット）
   ---------------------------------------------------------- */
.tp-dot-list {
  list-style: none;
  margin: 0;
  padding: 24px;
  background: #F7F7F7;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tp-dot-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: #333;
  line-height: 1.7;
}

.tp-dot-item::before {
  content: '';
  display: block;
  width: 17px;
  height: 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='13' viewBox='0 0 17 13' fill='none'%3E%3Cpath d='M5.7 12.025L0 6.325L1.425 4.9L5.7 9.175L14.875 0L16.3 1.425L5.7 12.025Z' fill='%23A72C4A'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
  margin-top: 6px;
}

.tp-dot-item strong {
  font-weight: 700;
  white-space: nowrap;
}

@media (min-width: 751px) {
  .tp-dot-item {
    font-size: 15px;
  }
}

/* ----------------------------------------------------------
   用量・副作用テーブル
   ---------------------------------------------------------- */
.tp-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.tp-table {
  width: 100%;
  min-width: 360px;
  border-collapse: collapse;
}

.tp-table th,
.tp-table td {
  border: 1px solid #e2e2e2;
  padding: 10px 12px;
  vertical-align: middle;
  font-size: 13px;
  color: #333;
  line-height: 1.6;
}

.tp-table thead th {
  background: #F7F7F7;
  color: #333;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}


/* 薬ごとの2px区切り線を無効化（通常の1px罫線にする） */
.page--treatment-glp1 .pg-price-table__group-sep td {
  border-top: 1px solid #e2e2e2;
}

/* 料金表の薬品名列（一番左の列）の背景色をグレーに */
.page--treatment-glp1 .pg-price-table__drug {
  background: #f7f7f7;
}

/* 料金表などのテーブル内テキストをすべて中央揃えに統一 */
.page--treatment-glp1 .pg-price-table th,
.page--treatment-glp1 .pg-price-table td,
.page--treatment-glp1 .pg-price-fee th,
.page--treatment-glp1 .pg-price-fee td {
  text-align: center !important;
}

.tp-table tbody td {
  background: #fff;
}

.tp-table tbody td:first-child {
  text-align: center;
  white-space: nowrap;
  font-weight: 500;
}

/* テーブル内のリスト */
.tp-table-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.tp-table-list li {
  position: relative;
  padding-left: 1em;
  margin-bottom: 2px;
}

.tp-table-list > li:last-child {
  margin-bottom: 0;
}

.tp-table-list > li::before {
  content: '・';
  position: absolute;
  left: 0;
  top: 0;
}

@media (min-width: 751px) {
  .tp-table th,
  .tp-table td {
    font-size: 15px;
    padding: 12px 16px;
  }
}

/* ----------------------------------------------------------
   使用禁止ボックス
   ---------------------------------------------------------- */
.tp-warning {
  background: #f7f7f7;
  border: none;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tp-warning__header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tp-warning__icon {
  width: 24px;
  height: 24px;
  aspect-ratio: 1/1;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

.tp-warning__ttl {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.tp-warning__list {
  font-size: 14px;
  color: #333;
  line-height: 1.8;
  list-style: none;
  margin: 0;
  padding: 0 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tp-warning__list > li {
  position: relative;
  padding-left: 12px;
}

.tp-warning__list > li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: #333;
}

/* ----------------------------------------------------------
   受診ステップグリッド（2×2）
   ---------------------------------------------------------- */
.tp-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.tp-step-card {
  background: #F7F7F7;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tp-step-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tp-step-card__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #8d7f80;
  color: #fff;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  font-family: 'Montserrat', sans-serif;
}

.tp-step-card__ttl {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  line-height: 1.5;
  font-family: var(--oc-base-font, "Yu Gothic Medium", "Yu Gothic", YuGothic, sans-serif);
}

.tp-step-card__body {
  font-size: 14px;
  color: #333;
  line-height: 1.7;
  font-family: var(--oc-base-font, "Yu Gothic Medium", "Yu Gothic", YuGothic, sans-serif);
}

@media (min-width: 751px) {
  .tp-steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .tp-step-card {
    padding: 24px;
    gap: 24px;
  }

  .tp-step-card__ttl {
    font-size: 18px;
  }

  .tp-step-card__body {
    font-size: 15px;
  }
}

/* ----------------------------------------------------------
   注意事項グリッド（2×2）
   ---------------------------------------------------------- */
.tp-notice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.tp-notice-item {
  background: #F7F7F7;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tp-notice-item__ttl {
  font-size: 18px;
  font-weight: 700;
  color: #a72c4a;
  line-height: 1.5;
  font-family: var(--oc-base-font, "Yu Gothic Medium", "Yu Gothic", YuGothic, sans-serif);
}

.tp-notice-item__body {
  font-size: 14px;
  color: #333;
  line-height: 1.7;
  font-family: var(--oc-base-font, "Yu Gothic Medium", "Yu Gothic", YuGothic, sans-serif);
}

@media (min-width: 751px) {
  .tp-notice-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .tp-notice-item {
    padding: 40px;
  }

  .tp-notice-item__body {
    font-size: 15px;
  }
}

/* ----------------------------------------------------------
   FAQ見出し（h2 + english sub）
   ---------------------------------------------------------- */
.tp-faq-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tp-faq-heading__main {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  letter-spacing: 2px;
  line-height: normal;
  font-family: var(--oc-base-font, "Yu Gothic Medium", "Yu Gothic", YuGothic, sans-serif);
}

.tp-faq-heading__sub {
  font-size: 12px;
  font-weight: 600;
  color: #8d7f80;
  font-family: 'Montserrat', sans-serif;
  line-height: 16px;
}

/* ----------------------------------------------------------
   グレーボックス（tp-payment-listと同じデザイン）
   ---------------------------------------------------------- */
.tp-gray-box {
  padding: 24px;
  background: #f7f7f7;
  border-radius: 8px;
}

/* ----------------------------------------------------------
   支払い方法リスト
   ---------------------------------------------------------- */
.tp-payment-list {
  list-style: none;
  margin: 0;
  padding: 24px;
  background: #f7f7f7;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tp-payment-item {
  font-size: 14px;
  color: #333;
  line-height: 1.7;
}

@media (min-width: 751px) {
  .tp-payment-item {
    font-size: 15px;
  }
}

/* ----------------------------------------------------------
   症状リスト
   ---------------------------------------------------------- */
.tp-symptom-list {
  list-style: none;
  margin: 0;
  padding: 24px;
  background: #F7F7F7;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 8px;
}

.tp-symptom-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  line-height: 1.6;
}

.tp-symptom-item__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 751px) {
  .tp-symptom-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .tp-symptom-item {
    font-size: 15px;
  }
}

/* 主な対象疾患（2列グリッド） */
.tp-disease-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 751px) {
  .tp-disease-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* ----------------------------------------------------------
   治療法タブナビ
   ---------------------------------------------------------- */
.tp-treatment-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-bottom: 56px;
}

.tp-treatment-tabs .pg-tag-link {
  height: 52px;
  font-size: 14px;
}

@media (min-width: 751px) {
  .tp-treatment-tabs {
    flex-direction: row;
    gap: 24px;
  }

  .tp-treatment-tabs li {
    flex: 1;
  }

  .tp-treatment-tabs .pg-tag-link {
    height: 60px;
    font-size: 15px;
  }
}

/* ----------------------------------------------------------
   治療法ブロック（食事療法・運動療法・投薬治療）
   ---------------------------------------------------------- */
.tp-treatment-block {
  background: #fff;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  scroll-margin-top: 80px;
}

.tp-treatment-block__ttl {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
}

@media (min-width: 751px) {
  .tp-treatment-block {
    padding: 40px;
    gap: 40px;
  }

  .tp-treatment-block__ttl {
    font-size: 24px;
  }
}

/* ----------------------------------------------------------
   計算式ボックス
   ---------------------------------------------------------- */
.tp-formula-box {
  background: #F7F7F7;
  padding: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  line-height: 1.6;
}

@media (min-width: 751px) {
  .tp-formula-box {
    font-size: 15px;
  }
}

/* ----------------------------------------------------------
   未承認医薬品等に関する開示情報
   ---------------------------------------------------------- */
.tp-disclosure {
  font-size: 12px;
  color: #686868;
  line-height: 1.7;
}

.tp-disclosure__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #686868;
}

.tp-disclosure__list li {
  padding-left: 1.2em;
  text-indent: -1.2em;
  color: #686868;
}

.tp-disclosure__list li * {
  color: #686868;
}

.tp-disclosure__list li::before {
  content: '●';
  font-size: 3px;
  vertical-align: middle;
  margin-right: 4px;
}
