/* ============================================================
   component.css — 配下ページ共通コンポーネント
   他ページでも流用する汎用スタイル
   SP基準幅: 390px / breakpoint: 751px / PC基準幅: 1440px
   ============================================================ */

/* ----------------------------------------------------------
   ページ内コンテナ
   ---------------------------------------------------------- */
.pg-section {
  padding: 80px 0;
  background: #fff;
  font-family: 'Noto Sans JP', sans-serif;
}

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

@media (min-width: 751px) {
  .pg-inner { padding: 0 38px; }
}

/* ----------------------------------------------------------
   ページタイトル（h2）
   ---------------------------------------------------------- */
.pg-page-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  letter-spacing: .2em;
}

.pg-page-title__main {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
}

.pg-page-title__sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #8d7f80;
  letter-spacing: .2em;
  line-height: 1.33;
  text-transform: uppercase;
}

/* ----------------------------------------------------------
   リード文
   ---------------------------------------------------------- */
.pg-lead {
  font-size: 15px;
  font-weight: 400;
  color: #333;
  line-height: 1.8;
}

.pg-lead p + p { margin-top: 8px; }

/* ----------------------------------------------------------
   セクション見出し（h3 / 赤四角バレット）
   ---------------------------------------------------------- */
.pg-h3 {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pg-h3__bullet {
  display: block;
  width: 20px;
  height: 20px;
  background: #a72c4a;
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 5px;
}

.pg-h3__text {
  font-size: 21px;
  font-weight: 700;
  color: #333;
  letter-spacing: .1em;
  line-height: 1.4;
}

/* ----------------------------------------------------------
   タグ型リンクグリッド
   ---------------------------------------------------------- */
.pg-tag-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pg-tag-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 16px;
  border: 1px solid #8d7f80;
  border-radius: 8px;
  background: #fff;
  color: #8d7f80;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  letter-spacing: .02em;
  transition: opacity .3s;
  box-sizing: border-box;
}

.pg-tag-link:hover {
  opacity: .7;
}

@media (min-width: 751px) {
  .pg-tag-links {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .pg-tag-link {
    padding: 0 17px;
  }
}

/* ----------------------------------------------------------
   コンテンツグループ（h3 + タグリスト のまとまり）
   ---------------------------------------------------------- */
.pg-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ----------------------------------------------------------
   セクションまとめ（グループ複数）
   ---------------------------------------------------------- */
.pg-groups {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* ----------------------------------------------------------
   ページ上部エリア（タイトル + リード）
   ---------------------------------------------------------- */
.pg-top {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 80px;
}

/* ----------------------------------------------------------
   ブレッドクラム（SWELLの .p-breadcrumb を上書き）
   ---------------------------------------------------------- */
.p-breadcrumb {
  background: #f7f7f7 !important;
  box-shadow: inset 0 -1px 8px rgba(0, 0, 0, .06) !important;
  padding: 8px 16px !important;
}

.p-breadcrumb__list {
  gap: 5px !important;
  font-size: 10px !important;
  font-weight: 500;
  color: #333;
  padding-left: 0 !important;
}

.p-breadcrumb__item {
  font-size: 10px;
}

.p-breadcrumb__text {
  font-size: 10px;
  color: #333;
}

.p-breadcrumb__item:last-child .p-breadcrumb__text {
  font-weight: 700;
  opacity: .8;
}

/* ----------------------------------------------------------
   本文テキストブロック（経歴・学会等）
   ---------------------------------------------------------- */
.pg-text-body {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  line-height: 1.8;
}

.pg-text-body p + p { margin-top: 8px; }

/* ----------------------------------------------------------
   院長プロフィール
   ---------------------------------------------------------- */
.pg-doctor {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* SP/Tablet: 写真エリア */
.pg-doctor__photo {
  width: 100%;
  height: auto;
  background: #f7f7f7;
  overflow: hidden;
  flex-shrink: 0;
}

.pg-doctor__photo img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.pg-doctor__info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* SP: 役職・氏名はセンター揃え */
.pg-doctor__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pg-doctor__role {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  text-align: center;
}

.pg-doctor__name-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pg-doctor__name {
  font-size: 32px;
  font-weight: 600;
  color: #333;
  letter-spacing: .06em;
  line-height: 1.275;
}

.pg-doctor__name-en {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #616161;
  letter-spacing: .11em;
  line-height: 1.4;
}

.pg-doctor__message {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* SP: 17px */
.pg-doctor__quote {
  font-size: 17px;
  font-weight: 500;
  color: #333;
  letter-spacing: .06em;
  line-height: 1.8;
}

.pg-doctor__body {
  font-size: 14px;
  font-weight: 400;
  color: #333;
  line-height: 1.8;
}

.pg-doctor__body p + p { margin-top: 8px; }
@media (min-width: 751px) and (max-width: 1023px) {
  .pg-doctor__photo {
    width: 60%;
    height: auto;
    margin: 0 auto;
    background: #f7f7f7;
    overflow: hidden;
    flex-shrink: 0;
  }
}


@media (min-width: 1024px) {
  .pg-doctor {
    flex-direction: row;
    gap: 80px;
    align-items: center;
  }

  .pg-doctor__photo {
    flex: 0 0 50%;
    height: auto;
    align-self: stretch;
  }

  .pg-doctor__info { flex: 1; }

  /* PC: 左揃えに戻す */
  .pg-doctor__meta {
    align-items: flex-start;
  }

  .pg-doctor__role {
    text-align: left;
  }

  /* PC: 18px */
  .pg-doctor__quote {
    font-size: 18px;
  }
}

/* ----------------------------------------------------------
   SNSアイコン行
   ---------------------------------------------------------- */
.pg-sns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pg-sns__link {
  display: flex;
  align-items: center;
  transition: opacity .3s;
}

.pg-sns__link:hover { opacity: .7; }

.pg-sns__link--yt img { height: 16px; width: 20px; }
.pg-sns__link--x  img { height: 20px; width: 20px; }
.pg-sns__link--ig img { height: 20px; width: 20px; }
.pg-sns__link--tk img { height: 16px; width: 16px; }

/* ----------------------------------------------------------
   グレー背景ブロック
   ---------------------------------------------------------- */
.pg-block {
  background: #f7f7f7;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

/* ----------------------------------------------------------
   箇条書きリスト（ドット付き）
   ---------------------------------------------------------- */
.pg-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pg-bullet {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pg-bullet__row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pg-bullet__dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #beb2b3;
  flex-shrink: 0;
  margin-top: 6px;
}

.pg-bullet__text {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  line-height: 1.8;
}

.pg-bullet__sub {
  padding-left: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #686868;
  line-height: 1.6;
}

/* ----------------------------------------------------------
   ブロック内太字テキスト / アンダーラインリンク
   ---------------------------------------------------------- */
.pg-block-intro {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  line-height: 1.8;
}

.pg-link-sub {
  font-size: 15px;
  font-weight: 500;
  color: #686868;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline-block;
  transition: opacity .3s;
}

.pg-link-sub:hover { opacity: .7; }

/* ----------------------------------------------------------
   STEPリスト
   ---------------------------------------------------------- */
.pg-step-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
}

.pg-step {
  background: #fff;
  border: 1px solid #e2e2e2;
  padding: 24px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 751px) {
  .pg-step { padding: 40px; }
}

.pg-step__ttl {
  border-bottom: 1px solid #e2e2e2;
  padding-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  line-height: 1.688;
}

.pg-step__num { color: #a72c4a; }

.pg-step__body {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  line-height: 1.8;
}

.pg-step__body p + p { margin-top: 0; }

.pg-step__arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 8px 0;
}

.pg-step__arrow::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid #a72c4a;
  border-bottom: 2px solid #a72c4a;
  transform: rotate(45deg) translate(-2px, -2px);
}

/* ----------------------------------------------------------
   ボタングループ
   ---------------------------------------------------------- */
.pg-btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

@media (min-width: 751px) {
  .pg-btn-group {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
  }
}

/* 塗りボタン（プライマリ） */
.pg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #a72c4a;
  color: #fff;
  border: 1px solid #a72c4a;
  border-radius: 8px;
  padding: 16px 32px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  transition: opacity .3s;
}

.pg-btn::after {
  content: '›';
  font-size: 18px;
  line-height: 1;
  color: #fff;
}

.pg-btn:hover {
  opacity: .85;
  color: #fff;
}

@media (min-width: 751px) {
  .pg-btn { width: 320px; }
}

/* 輪郭ボタン（セカンダリ） */
.pg-btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  color: #8d7f80;
  border: 1px solid #8d7f80;
  border-radius: 8px;
  padding: 16px 32px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  transition: opacity .3s;
}

.pg-btn-outline::after {
  content: '›';
  font-size: 18px;
  line-height: 1;
  color: #8d7f80;
}

.pg-btn-outline:hover {
  opacity: .7;
  color: #8d7f80;
}

@media (min-width: 751px) {
  .pg-btn-outline { width: 320px; }
}

/* ----------------------------------------------------------
   診療サービスカード（診療可能科目）
   ---------------------------------------------------------- */
.pg-service-cards {
  background: #f7f7f7;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 751px) {
  .pg-service-cards {
    padding: 40px;
  }
}

@media (min-width: 1024px) {
  .pg-service-cards {
    flex-direction: row;
  }
}

.pg-service-card {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  flex: 1;
}

.pg-service-card__icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.pg-service-card__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pg-service-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pg-service-card__cat {
  font-size: 15px;
  font-weight: 400;
  color: #333;
  letter-spacing: .1em;
  line-height: 1.5;
}

.pg-service-card__name {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
}

@media (min-width: 751px) {
  .pg-service-card__cat { font-size: 14px; }
}

/* ----------------------------------------------------------
   診察時間テーブル
   ---------------------------------------------------------- */
.pg-table-wrap {
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.pg-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.pg-table th,
.pg-table td {
  border: 1px solid #e2e2e2;
  text-align: center;
  vertical-align: middle;
}

@media (min-width: 751px) {
  .pg-table thead th br {
    display: none;
  }
}

.pg-table thead th:first-child {
  width: 60px;
  padding: 8px 4px;
}

.pg-table thead th {
  background: #f7f7f7;
  padding: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
}

.pg-table tbody td {
  background: #fff;
  padding: 10px 8px;
}

.pg-table tbody td:first-child {
  font-size: 11px;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
}

@media (min-width: 751px) {
  .pg-table thead th:first-child { width: 200px; padding: 10px 12px; }
  .pg-table thead th { font-size: 16px; padding: 10px 12px; }
  .pg-table tbody td:first-child { font-size: 16px; font-weight: 700; }
}

.pg-table__circle {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #a72c4a;
  margin: 0 auto;
}

@media (min-width: 751px) {
  .pg-table__circle { width: 20px; height: 20px; }
}

/* ----------------------------------------------------------
   注釈テキスト
   ---------------------------------------------------------- */
.pg-note {
  font-size: 13px;
  font-weight: 400;
  color: #333;
  line-height: 1.6;
}

/* ----------------------------------------------------------
   料金表 キャンペーンバナー
   ---------------------------------------------------------- */
.pg-price-campaign {
  margin-bottom: 60px;
}

@media (min-width: 751px) {
  .pg-price-campaign {
    margin-bottom: 80px;
  }
}

.pg-price-campaign img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ----------------------------------------------------------
   料金表 各セクション
   ---------------------------------------------------------- */
.pg-price-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  scroll-margin-top: 80px;
}

/* 薬品テーブル・費用テーブルの小見出し */
.pg-price-subh {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  padding-left: 12px;
  border-left: 3px solid #989898;
  line-height: 1.4;
}

/* ----------------------------------------------------------
   料金テーブル（薬品名・数量・価格）
   横スクロール対応
   ---------------------------------------------------------- */
.pg-price-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.pg-price-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  table-layout: fixed;
}

.pg-price-table th,
.pg-price-table td {
  border: 1px solid #e2e2e2;
  padding: 10px 12px;
  vertical-align: middle;
  font-size: 13px;
  text-align: center;
}

.pg-price-table thead th {
  background: #989898;
  font-weight: 700;
  color: #fff;
  text-align: center;
  white-space: nowrap;
}

/* 薬品名列 */
.pg-price-table th:first-child,
.pg-price-table td:first-child {
  text-align: center;
}

/* 薬品名セル（rowspan） */
.pg-price-table tbody td.pg-price-table__drug {
  font-weight: 700;
  background: #f7f7f7;
}

/* 数量セル */
.pg-price-table__qty {
  text-align: center;
  white-space: nowrap;
}

/* 価格セル */
.pg-price-table__price {
  text-align: center;
}

/* 薬品グループ区切り（2px ボーダー） */
.pg-price-table__group-sep td {
  border-top: 2px solid #989898;
}

.pg-price-table tbody td {
  background: #fff;
  color: #333;
  line-height: 1.6;
}

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

/* ----------------------------------------------------------
   料金テーブル（その他費用 2列）
   ---------------------------------------------------------- */
.pg-price-fee-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.pg-price-fee {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.pg-price-fee th,
.pg-price-fee td {
  width: 50%;
  border: 1px solid #e2e2e2;
  padding: 12px 16px;
  vertical-align: middle;
  font-size: 13px;
  text-align: center;
}

.pg-price-fee thead th {
  background: #989898;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.pg-price-fee thead th:first-child {
  text-align: center;
}

.pg-price-fee tbody td:first-child {
  font-weight: 700;
  background: #f7f7f7;
  color: #333;
}

.pg-price-fee tbody td:last-child {
  text-align: center;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
  min-width: 100px;
}

@media (min-width: 751px) {
  .pg-price-fee th,
  .pg-price-fee td { font-size: 15px; }
}

/* ----------------------------------------------------------
   よくある質問（アコーディオン）
   ---------------------------------------------------------- */
.pg-faq {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pg-faq__item details {
  border: 1px solid #8d7f80;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.pg-faq__q {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding: 17px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.pg-faq__q::-webkit-details-marker { display: none; }

.pg-faq__q-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #a72c4a;
  letter-spacing: .1em;
  flex-shrink: 0;
  line-height: 1;
}

.pg-faq__q-text {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  line-height: 1.6;
  flex: 1;
}

.pg-faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 300;
  color: #8D7F80;
  line-height: 1;
}

.pg-faq__icon::after {
  content: '+';
}

details[open] .pg-faq__icon::after {
  content: '−';
}

.pg-faq__a {
  padding: 16px 17px 20px;
  border-top: 1px solid #e2e2e2;
  font-size: 14px;
  font-weight: 400;
  color: #333;
  line-height: 1.8;
}

@media (min-width: 751px) {
  .pg-faq__q-text { font-size: 15px; }
  .pg-faq__a { font-size: 15px; padding: 20px 24px 24px; }
}
