/* 下層ページ（対応疾患テンプレート）。Figma「うつ病」node 38800:2093。
   PC: コンテンツ幅 920px / 本文中の写真 700px / FV 帯 1440×414
   SP: コンテンツ幅 335px / 写真 300px / FV 帯 375×188 */

/* ===== FV 帯 ===== */
.p-lfv {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.p-lfv__bg { display: block; grid-area: 1 / 1; width: 100%; }
.p-lfv__bg img {
  display: block;
  width: 100%;
  aspect-ratio: 1440 / 414;
  object-fit: cover;
}
.p-lfv__title {
  grid-area: 1 / 1;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--c-wh);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}

/* ===== パンくず ===== */
.c-crumb { padding: 22px 0 0; }
/* 階層が 2 つ以上あるページでは途中のリンクが本文と同じ 16px になり、
   「>」や現在地の 13px と不ぞろいに見える。行ごと同じ大きさにする。 */
.c-crumb .p-lower__inner { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.c-crumb__home { display: grid; place-items: center; width: 22px; height: 22px; color: var(--c-green-deep); }
.c-crumb__home svg { width: 20px; height: 20px; }
.c-crumb__sep,
.c-crumb__current { font-size: 13px; color: var(--c-green-deep); }

/* ===== 本文の器 ===== */
.p-lower { padding: 40px 0 120px; }
.p-lower__inner { width: min(100% - 80px, 920px); margin-inline: auto; }

.p-lower__lead,
.p-lower p {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 2;
  letter-spacing: .03em;
  color: var(--c-green-deep);
}
.p-lower p + p { margin-top: 1.4em; }

.p-lower__fig { margin: 44px 0; text-align: center; }
.p-lower__fig img {
  width: min(100%, 700px);
  aspect-ratio: 700 / 348;
  object-fit: cover;
  border-radius: 2px;
}

/* 図版（SVG）は写真と違い、切り取られると内容が欠ける。全体を収める。 */
.p-lower__fig img[src$=".svg"] {
  /* 読み込み前も場所を確保してガタつきを防ぐため、比率は明示する */
  aspect-ratio: 900 / 470;
  height: auto;
  object-fit: contain;
}

/* ===== 目次 ===== */
.c-toc {
  margin: 48px 0 96px;
  padding: 38px 44px;
  background: var(--c-wh);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(8, 76, 38, .07);
}
.c-toc__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 40px;
}
.c-toc__list a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--c-green-deep);
}
.c-toc__list a::before {
  content: "";
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  border: 1px solid var(--c-green-mid);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--c-wh), inset 0 0 0 5px var(--c-green-mid);
}

/* ===== 見出し ===== */
.c-h2 {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 96px 0 0;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--c-green-deep);
  text-align: center;
}
.c-h2::before,
.c-h2::after { content: ""; flex: 1; height: 1px; background: var(--c-green-mid); }
.c-h2 + p,
.c-h2 + .c-faq { margin-top: 52px; }
.c-h2 + .p-lower__fig { margin-top: 52px; }

.c-h3 {
  margin: 60px 0 28px;
  padding: 18px 24px;
  border-radius: 4px;
  background: linear-gradient(90deg, #cfe8cf 0%, #d9eee3 50%, #cfe6e6 100%);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--c-green-deep);
  text-align: center;
}
.p-lower__fig + .c-h3 { margin-top: 44px; }

/* ===== 「詳しくはこちら」 ===== */
.c-more { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 26px; }
.c-more a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-gothic);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-green-deep);
}

/* ===== よくある質問 ===== */
.c-faq__item + .c-faq__item { margin-top: 46px; }
.c-faq__q {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-green-mid);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--c-green-deep);
}
.c-faq__mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--c-green-mid);
  border-radius: 50%;
  font-family: var(--font-en);
  font-size: 19px;
  font-weight: 400;
  color: var(--c-green-mid);
}
.c-faq__a {
  margin-top: 22px;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 2;
  letter-spacing: .03em;
  color: var(--c-green-deep);
}

/* ===== SP ===== */
/* 表（受付時間・担当医表・沿革など）。原稿の Google ドキュメントの表をそのまま持ってくる。 */
.c-table {
  margin: 40px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.c-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.7;
}
.c-table th,
.c-table td {
  padding: 14px 16px;
  border: 1px solid #d7e4dc;
  text-align: center;
  vertical-align: middle;
}
.c-table thead th {
  background: var(--c-green-deep);
  color: #fff;
  font-weight: 700;
  letter-spacing: .04em;
}
.c-table tbody th {
  background: #eef6f0;
  color: var(--c-green-deep);
  font-weight: 700;
  white-space: nowrap;
}
.c-table tbody tr:nth-child(even) td { background: #fafcfa; }
.c-h2 + .c-table { margin-top: 52px; }

/* 原稿で「・」区切りのべた書きになっている箇条書き。 */
.c-list {
  margin: 24px 0;
  padding: 0;
  list-style: none;
}
.c-list li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  line-height: 2.1;
}
.c-list li + li { margin-top: 6px; }
.c-list li::before {
  content: "";
  position: absolute;
  top: .85em;
  left: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-green-mid);
}
/* 注記（※）のリスト。※ 自体が行頭記号なので緑のドットは出さず、
   折り返した2行目を字下げして「※」のぶんだけぶら下げる。 */
.c-list--note li { padding-left: 1.5em; text-indent: -1.5em; }
.c-list--note li::before { content: none; }

.c-h2 + .c-list { margin-top: 52px; }

@media (max-width: 767px) {
  .p-lfv__bg img { aspect-ratio: 375 / 130; }
  .p-lfv__title { font-size: 24px; letter-spacing: .12em; }

  .c-crumb { padding-top: 14px; }
  .c-crumb .p-lower__inner { font-size: 12px; }
  .c-crumb__sep, .c-crumb__current { font-size: 12px; }

  .p-lower { padding: 24px 0 64px; }
  .p-lower__inner { width: min(100% - 40px, 335px); }
  .p-lower__lead,
  .p-lower p { font-size: 14px; line-height: 1.95; }

  .p-lower__fig { margin: 28px 0; }
  .p-lower__fig img { width: min(100%, 300px); }

  .c-toc { margin: 30px 0 54px; padding: 24px 20px; }
  .c-toc__list { grid-template-columns: 1fr; gap: 16px; }
  .c-toc__list a { font-size: 16px; gap: 10px; }

  .c-h2 { margin-top: 56px; gap: 16px; font-size: 22px; }
  .c-h2 + p,
  .c-h2 + .c-faq,
  .c-h2 + .p-lower__fig { margin-top: 28px; }

  .c-h3 { margin: 36px 0 20px; padding: 14px 16px; font-size: 17px; }
  .p-lower__fig + .c-h3 { margin-top: 28px; }

  .c-more { gap: 10px 20px; margin-top: 18px; }
  .c-more a { font-size: 13px; }

  .c-faq__item + .c-faq__item { margin-top: 30px; }
  .c-faq__q { gap: 12px; padding-bottom: 12px; font-size: 16px; }
  .c-faq__mark { width: 30px; height: 30px; font-size: 16px; }
  .c-faq__a { margin-top: 14px; font-size: 14px; line-height: 1.95; }

  .c-table { margin: 28px 0; }
  .c-table table { font-size: 13px; min-width: 520px; }
  .c-table th,
  .c-table td { padding: 10px 8px; }
  .c-h2 + .c-table { margin-top: 28px; }

  .c-list { margin: 18px 0; }
  .c-list li { padding-left: 20px; font-size: 14px; line-height: 1.95; }
  .c-list li::before { top: .8em; left: 4px; width: 6px; height: 6px; }
  .c-h2 + .c-list { margin-top: 28px; }
}

/* 本文の中から自動で張っている内部リンク（inc/autolink.php）と、
   原稿の中に直接書かれている class なしのリンク。
   読みの流れを止めないよう、下線だけで色は本文のままにする。
   下線がないと本文に埋もれてリンクだと気づかれないため、
   見た目を自前で持つもの（.c-more の「…について詳しく」、
   目次 .c-toc、電話ボタンなど）以外はすべて同じ下線にそろえる。 */
.p-lower__inner p:not(.c-more) > a:not([class]),
.p-lower__inner td > a:not([class]),
.c-autolink {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--c-green-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.p-lower__inner p:not(.c-more) > a:not([class]):hover,
.p-lower__inner p:not(.c-more) > a:not([class]):focus-visible,
.p-lower__inner td > a:not([class]):hover,
.p-lower__inner td > a:not([class]):focus-visible,
.c-autolink:hover,
.c-autolink:focus-visible {
  color: var(--c-green-deep);
  text-decoration-color: currentColor;
}

/* ===== 施設写真のギャラリー（シェアハウス花みずき） =====
   いただいている素材が 516×395 と小さく、700px 幅の .p-lower__fig に
   入れると引き伸ばされて粗く見える。2 列で小さめに出して粗さを避ける。
   高解像度の素材に差し替えられたら .p-lower__fig に戻してよい。 */
.c-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 28px;
  /* 本文幅いっぱい（446px/枚）だと 516px の素材がほぼ等倍になり甘く見える。
     図版と同じ 700px に収めて 1 枚 336px にする。 */
  max-width: 700px;
  margin: 44px auto;
  padding: 0;
  list-style: none;
}
.c-gallery figure { margin: 0; }
.c-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 516 / 395;
  object-fit: cover;
  border-radius: 2px;
}
.c-gallery figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  color: var(--c-green-deep);
}
/* 素材が小さい写真を単体で置くとき（花みずきの外観など） */
.p-lower__fig--sm img { width: min(100%, 520px); aspect-ratio: 808 / 570; }

@media (max-width: 767px) {
  .c-gallery { grid-template-columns: 1fr; gap: 20px; margin: 28px 0; }
  .c-gallery img { max-width: 300px; margin-inline: auto; }
  .c-gallery figcaption { font-size: 13px; }
  .p-lower__fig--sm img { width: min(100%, 300px); }
}

/* ===== 本文中の SNS リンク（アイコン＋アカウント名） ===== */
.c-sns-link { margin-top: 20px; }
.c-sns-link a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px 10px 14px;
  border: 1px solid var(--c-green-mid);
  border-radius: 999px;
  color: var(--c-green-deep);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  transition: background-color .25s, border-color .25s;
}
.c-sns-link a:hover,
.c-sns-link a:focus-visible {
  background: #f3f8f4;
  border-color: var(--c-green-deep);
  opacity: 1;
}
.c-sns-link img { width: 30px; height: 30px; flex-shrink: 0; }

@media (max-width: 767px) {
  .c-sns-link a { font-size: 13px; padding: 9px 18px 9px 12px; }
  .c-sns-link img { width: 26px; height: 26px; }
}
