/*==================================================================================================================================

  *下層メイン部分

==================================================================================================================================*/
.under_main {
  background-image: url('../images/mv-under.jpg');
  background-size: cover;
  /* 画像を要素全体にフィットさせる */
  background-position: center center;
  /* 画像の位置を中央に */
  background-repeat: no-repeat;
  /* 画像の繰り返しを防ぐ */
  padding: 100px 0;
  /* 上下の余白（必要に応じて調整） */
  position: relative;
  /* 必要に応じて背景画像に重ねるコンテンツの位置調整 */
}

.ttl.w1200 {
  max-width: 1200px;
  margin: 0 auto;
  /* 中央寄せ */
  padding: 20px;
  /* 内部余白 */
  text-align: center;
}

.under_h1 {
  font-family: 'Noto Serif', serif;
  font-size: 48px;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  margin: 0;
  padding: 20px;
  text-transform: uppercase;
}

/* =========================
   モバイル ～768px
   ========================= */
@media (max-width: 768px) {
  .under_h1 {
    font-size: 36px;
  }

  .under_main {
    padding: 50px 0;
  }
}

/*==================================================================================================================================

  *下層デザイン

==================================================================================================================================*/
.clinic-box {
  width: 100%;
  background-color: #FDF6F7;
}

.staff-introduction {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  color: #333;
  background-color: #fff;
}

/* h2のデザイン（背景色付き） */
.intro-title {
  background: linear-gradient(45deg, #b35e6d, #e7bbbb, #ffffff);
  color: #fff;
  padding: 10px 20px;
  font-size: 30px;
  font-weight: 400;
  margin: 100px 0 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4), 0 0 25px rgba(255, 255, 255, 0.6);
  border-radius: 5px;
}

.intro p {
  padding: 0 10px;
  font-size: 16px;
  line-height: 1.6;
  margin-top: 15px;
  z-index: 1;
}

/* =========================
   3カラムデザイン　外観/内装/待合
   ========================= */
.clinic-images {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.clinic-image {
  flex: 1;
  text-align: center;
}

.clinic-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.clinic-image p {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

/* =========================
   モバイル ～768px
   ========================= */
@media (max-width: 768px) {
  .clinic-images {
    flex-direction: column;
    /* モバイルでは縦並び */
    align-items: center;
    /* 中央寄せ */
  }

  .clinic-image {
    margin-bottom: 20px;
  }

  .clinic-image img {
    max-width: 100%;
    /* 画像が小さくなりすぎないように */
  }

  .staff-introduction {
    padding: 20px;
    /* 余白を少し小さく */
  }

  .intro-title {
    font-size: 23px;
    margin: 40px 0 10px;
  }
}

/* =========================
   院長紹介
   ========================= */
.director-main {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 20px;
}

/* 左：テキスト部分 */
.director-text p {
  line-height: 1.8;
  margin-bottom: 16px;
}

/* 右：写真＋名前 */
.director-photo-box {
  width: 320px;
  /* 260 → 320に拡大 */
  text-align: center;
}

.director-photo img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #b35e6d;
  /* 少し太くして存在感UP */
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.director-name-box {
  margin-top: 12px;
}

.director-name-jp {
  font-size: 18px;
  font-weight: 700;
}

.director-name-en {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #777;
}

/* メッセージ枠全体 */
.director-message {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid #c8a88b;
  border-radius: 10px;
}

/* メッセージ見出し（h3）のデザイン強化） */
.director-subtitle {
  font-family: 'Noto Serif', serif;
  margin-bottom: 10px;
  padding: 10px;
  font-size: 18px;
  font-weight: 500;
  color: #c8a88b;
  background: linear-gradient(90deg, #e9d8c547, #ffffff);
  border-left: 4px solid #c8a88b;
}

/* 下段：略歴・所属・資格 3カラム */
.director-columns {
  display: flex;
  gap: 30px;
  margin-top: 40px;
}

.director-column {
  flex: 1;
  background: #e9d8c51c;
  /* うっすらピンク背景 */
  border: 1.5px solid #c8a88b;
  /* ピンク枠 */
  border-radius: 10px;
  padding: 16px 18px;
}

/* 各ボックスのh3デザイン */
.director-col-title {
  font-family: 'Noto Serif', serif;
  position: relative;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 6px;
  color: #b35e6d;
}

/* h3下にアクセントライン */
.director-col-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, #b35e6d, #e9d8c5);
  border-radius: 999px;
}

.director-column p {
  line-height: 1.7;
  font-size: 14px;
}

/* =========================
   モバイル ～768px
   ========================= */
@media (max-width: 768px) {
  .director-main {
    flex-direction: column;
  }

  .director-photo-box {12歳以上のお子さまについては婦人科・内科共に対応しております。お子様とお気軽にお越しください。
    margin: 0 auto 10px;
  }

  .director-columns {
    flex-direction: column;
  }
}

/* =========================
   よくある質問
   ========================= */
/* QAセクションのスタイル */
.qa-7 {
  margin: 0 auto 10px;     /* 自動で中央に配置、下に10pxのマージン */
  border: none;
  box-shadow: 0 4px 4px rgb(0 0 0 / 2%), 0 2px 3px -2px rgba(0 0 0 / 5%);
  background-color: #e9d8c526;
  border-radius: 50px;
}

/* 詳細情報（Q&A）の配置 */
.qa-7 summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 1em 2em 1em 3em;
  cursor: pointer;
}

.qa-7 summary::before,
.qa-7 p::before {
  font-family: 'Noto Sans JP', sans-serif;
  position: absolute;
  left: 1em;
  font-weight: 600;
  font-size: 1.3em;
}

.qa-7 summary::before {
  color: #ea9d96;
  content: "Q";
}

.qa-7 summary::after {
  transform: translateY(-25%) rotate(45deg);
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-bottom: 3px solid #666666b3;
  border-right: 3px solid #666666b3;
  content: '';
  transition: transform .5s;
}

.qa-7[open] summary::after {
  transform: rotate(225deg);
}

.qa-7 p {
  position: relative;
  transform: translateY(-10px);
  opacity: 0;
  margin: 0;
  padding: .3em 3em 1.5em;
  color: #333;
  transition: transform .5s, opacity .5s;
}

.qa-7[open] p {
  transform: none;
  opacity: 1;
}

.qa-7 p::before {
  color: #92d0c2;
  line-height: 1.2;
  content: "A";
}
/* ボタンのデザイン */
.qa-7 .button-container {
  display: flex;
  justify-content: center;
  margin-top: 1em;
}

.qa-7 button {
  display: inline-block;
  padding: 0.5em 1.5em;
  font-size: 1em;
  font-weight: 300;
  font-family: 'Noto Sans JP', sans-serif;
  color: #fff;
  background-color: #964E73;
  border: none;
  cursor: pointer;
  transition: background-color .3s;
  margin-bottom: 1em;
}

.qa-7 button:hover {
  background-color: #C39AAF;
}

/* ボタンのリンクスタイル */
.qa-7 a {
  text-decoration: none;
  display: flex;
  justify-content: center;
  width: 100%;
}

/* =========================
   ジャンプボタン
   ========================= */
/* ジャンプボタンのスタイル */
.jump-buttons {
  margin-bottom: 20px;
  text-align: center;  /* ボタンを中央に配置 */
}

.jump-buttons a {
  display: inline-block;
  margin: 0 15px;
  padding: 10px 20px;
  background-color: #c97c7c;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.jump-buttons a:hover {
  background-color: #b35e6d; /* ホバー時の色を少し濃く */
}

/* モバイル版（画面幅768px以下）でボタンの表示を調整 */
@media (max-width: 768px) {
  .jump-buttons {
    flex-direction: column; /* ボタンを縦に並べる */
    align-items: center; /* 中央に揃える */
    margin-bottom: 30px; /* 下に少し余白 */
  }

  .jump-buttons a {
    margin: 10px 0; /* 縦に並べる際のボタン間隔 */
    padding: 12px 25px; /* ボタンサイズを少し大きく */
    font-size: 18px; /* フォントサイズを少し大きく */
  }
}

/* 各セクションのIDに対して余白を追加 */
#fujinka, #chuuzetsu, #seidoitsusei {
  scroll-margin-top: 145px; /* 80px分上に調整 */
}

/* =========================
   ｈ3の2カラムデザイン
   ========================= */
.staff-sub-title {
    font-family: 'Noto Serif', serif;
    font-size: 24px;
    font-weight: 500;
    margin: 20px 10px;
    color: #b35e6d;
    text-align: left;
    line-height: 1.5;
    text-shadow: 1px 1px 5px rgba(200, 168, 139, 0.4); /* 軽いシャドウに調整 */
}

/* スタッフ紹介全体の2カラムレイアウト */
.staff-intro-box {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 20px;
  align-items: center;
}

/* 左カラム（テキスト部分） */
.staff-text-column {
  flex: 1;
  line-height: 1.8;
  color: #333;
  font-size: 16px;
  padding-right: 20px;
  text-align: justify;
}

/* 右カラム（画像部分） */
.staff-image-column img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
	.staff-sub-title {
  font-size: 19px;
}
	
  .staff-intro-box {
    flex-direction: column; /* 縦並び */
  }

.staff-text-column {
    padding-right: 0px;
  text-align: left;
}

  .staff-image-column img {
    max-width: 100%;
  }
}


/* =========================
   個人情報保護について
   ========================= */

.medical-service {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: #333;
}

/* セクションヘッダーのデザイン */
.mdsv-header p {
  font-family: 'Noto Serif', serif;
  font-size: 20px;
  font-weight: 500;
  color: #b35e6d;
  border-bottom: 1px solid #e7bbbb;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* セクションコンテンツのスタイル */
.mdsv-content {
  margin-bottom: 30px;
}

/* リストのスタイル */
.mdsv-content ul {
  list-style-type: none;
  padding-left: 0;
  font-size: 16px;
}

.mdsv-content li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.mdsv-content li::before {
  content: "●";
  color: #b35e6d;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* フッターのスタイル */
.mdsv-footer p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-top: 20px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .medical-service {
    padding: 20px;
  }

  .mdsv-header p {
    font-size: 18px;
  }

  .mdsv-content ul {
    font-size: 14px;
  }
}


/* =========================
   横並びのリスト
   ========================= */
.reason-list {
  display: flex;          /* 横並びにする */
  flex-wrap: wrap;         /* 画面が狭くなった場合、折り返しを許可 */
  gap: 30px;              /* アイテム間のスペース */
  margin-top: 20px;
  padding: 0;
  list-style: none;       /* デフォルトのリストマーカーを無効に */
}

/* リストアイテムのスタイル */
.reason-list li {
  font-size: 16px;
  padding-left: 20px;
  position: relative;
  font-weight: 500;
}

/* リストアイテムに丸いアイコンを追加 */
.reason-list li::before {
  content: "○";           /* アイコン（丸） */
  color: #c8a88b;         /* アイコンの色 */
  position: absolute;
  left: 0;
  font-size: 16px;        /* アイコンのサイズ */
  top: 0;
}

/* モバイル対応（画面幅768px以下でリストアイテムを縦並びに） */
@media (max-width: 768px) {
  .reason-list {
    flex-direction: column;  /* 縦並びに変更 */
    align-items: flex-start; /* 左揃え */
  }
}


/* =========================
   マーカー
   ========================= */
.highlight-text {
  background: linear-gradient(transparent 34%, #f1d6dd9e 80%);
}


/* =========================
   ｈタグなし見出しデザイン
   ========================= */
/* 各項目のスタイル */
.condition-item {
  padding: 3px 20px;
  border-radius: 10px;  /* 角を丸く */
}

/* 見出し（タイトル）のスタイル */
.condition-title {
  font-size: 18px;
  font-weight: 500;
  color: #c8a88b;  /* 見出しの色（ピンク系） */
  margin-bottom: 10px;  /* 見出しと文章の間隔 */
  text-transform: uppercase;  /* 見出しを大文字に */
}

/* 文章のスタイル */
.condition-description {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin-top: 0;
}

/* 文章に軽いボーダーを付けて区切りを強調する */
.condition-description::before {
  content: '';
  display: block;
  width: 100px;
  height: 1px;
  background-color: #c8a88b;  /* 見出しと同じ色のライン */
  margin: 10px 0;  /* 上下に余白 */
}


/* =========================
   表デザイン
   ========================= */
/*--------------------- ｈ4以下のデザイン ---------------------*/
.treatment-summary {
  background-color: #FFF6F6; /* 薄いピンク背景 */
  padding: 20px 22px;
  margin: 0px 0 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  border-radius: 8px;
}

/* 行ごとのレイアウト */
.summary-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;  /* 3列 */
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed #f1b6c6; /* ピンク系のボーダー */
}

.summary-row:last-of-type {
  border-bottom: none;
}

/* ラベル側 */
.summary-label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #f26b80;  /* ピンク系文字 */
  background: #f8c7d1; /* ピンク背景 */
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
}

/* 値側 */
.summary-value {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
  color: #4a4a4a;
}

/* 装置リスト */
.device-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.device-list li + li {
  margin-top: 6px;
}

/* 装置名タグ部分 */
.device-tag {
  display: inline-block;
  font-weight: 600;
  margin-right: 4px;
  color: #e44172;  /* ピンク系文字 */
}

/* 下のメッセージ */
.summary-note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: #f26b80;  /* ピンク系 */
  text-align: center;
}

/* SPでラベルを上に持ってくる */
@media (max-width: 768px) {
  .summary-row {
    grid-template-columns: 1fr;  /* モバイル版は1列 */
  }

  .summary-label {
    width: fit-content;
  }
}


/* =========================
   治療の流れ
   ========================= */
.fertility-flow {
  margin: 30px auto 10px;
}

/* 各ステップの枠 */
.fertility-flow .flow-step {
  display: flex;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 14px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f1e1d5;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  position: relative;
}

/* ステップ間の縦ライン（番号の左側にうっすら） */
.fertility-flow .flow-step::before {
  content: "";
  position: absolute;
  left: 27px;
  top: -14px;
  bottom: -14px;
  border-left: 2px dashed #e9d8c5;
  z-index: -1;
}

/* 一番上はラインを消す */
.fertility-flow .flow-step:first-child::before {
  display: none;
}

/* 番号のデザイン */
.fertility-flow .flow-number {
  flex: 0 0 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, #e9d8c5);
  border: 1px solid #c8a88b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif', serif;
  font-size: 18px;
  font-weight: 600;
  color: #b35e6d;
}

/* 右側テキスト部分 */
.fertility-flow .flow-body {
  flex: 1;
}

/* タイトル（h3） */
.fertility-flow .flow-title {
  font-size: 18px;
  font-weight: 600;
  margin: 4px 0 6px;
  color: #b35e6d;
}

/* 説明文 */
.fertility-flow .flow-text {
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
  color: #444;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .fertility-flow .flow-step {
    flex-direction: row;
    align-items: flex-start;
    padding: 14px 14px;
  }

  .fertility-flow .flow-number {
    flex: 0 0 46px;
    height: 46px;
    font-size: 16px;
  }

  .fertility-flow .flow-title {
    font-size: 16px;
  }

  .fertility-flow .flow-text {
    font-size: 13px;
  }
}


/* =========================
   2カラムカード型
   ========================= */
.infertility-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 40px 0;
}

/* 各カード */
.infertility-card {
  flex: 1 1 48%;
  background-color: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 25px rgba(179, 94, 109, 0.08);
  padding: 28px 32px;
  box-sizing: border-box;
}

/* タイトル（画像ナシ版） */
.infertility-card-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 20px;
  color: #4a4a4a;
}

/* 本文エリア */
.infertility-card-body {
  font-size: 14px;
  line-height: 1.8;
  color: #444;
}

/* 1行分（ピンクの棒＋テキスト） */
.infertility-card-row {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.infertility-card-line {
  display: inline-block;
  width: 22px;
  height: 2px;
  background-color: #c97c7c;
  margin-right: 12px;
}

.infertility-card-main {
  margin: 0;
}

/* バッジ（保険適応内／外） */
.infertility-badge {
  display: inline-block;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-left: 10px;
  color: #fff;
  font-weight: 600;
}

.badge-in {
  background-color: #e9b5b5;  /* ピンク寄り */
}

.badge-out {
  background-color: #8fc6bc;  /* みどり寄り */
}

/* 注釈リスト */
.infertility-note-list {
  margin: 8px 0 0 36px; /* ピンク棒の位置にそろえる */
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: #666;
}

.infertility-note-list li + li {
  margin-top: 4px;
}

/* SP時は縦並び */
@media (max-width: 768px) {
  .infertility-card {
    flex: 1 1 100%;
    padding: 24px 20px;
  }

  .infertility-note-list {
    margin-left: 0;
  }
}


/* =========================
   担当医の表
   ========================= */
.schedule-wrapper {
  margin: 0 auto 40px;
}

/* テーブル本体 */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 2px solid #555;
  font-size: 14px;
}

/* 見出し行 */
.schedule-table th,
.schedule-table td {
  border: 1px solid #555;
  text-align: center;
  padding: 8px 4px;
}

.th-time {
  background: #f5f5f5;
  font-weight: 600;
}

.th-slot {
  background: #fafafa;
  font-size: 13px;
}

.th-day {
  background: #ffffff;
}

/* 曜日列 */
.day {
  width: 70px;
  background: #fff;
  font-weight: 600;
}

/* 医師名セル */
.doctor {
  background: #ffffff;
}

/* 女性医師（グリーン） */
.female {
  background: #c7e7b4;
}

/* 水曜夜診②（オレンジ） */
.orange {
  background: #f9c69b;
}

/* 第三火曜夜診（ブルー） */
.blue {
  background: #b7cfff;
}

/* 空白セル用（枠だけ欲しい時） */
.doctor.empty {
  background: #ffffff;
}

/* 休診セル */
.off {
  background: #f3f3f3;
  font-weight: 600;
}

/* 凡例エリア */
.schedule-legend {
  margin-top: 24px;
  font-size: 14px;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.legend-box {
  display: inline-block;
  width: 32px;
  height: 18px;
  margin-right: 8px;
  border-radius: 2px;
  border: 1px solid #ccc;
}

.legend-box.female {
  background: #c7e7b4;
}

.legend-box.orange {
  background: #f9c69b;
}

.legend-box.blue {
  background: #b7cfff;
}

/* スマホ調整 */
@media (max-width: 600px) {
  .schedule-table {
    font-size: 12px;
  }
  .schedule-table th,
  .schedule-table td {
    padding: 6px 2px;
  }
}


/* =========================
   予約ボタン
   ========================= */
.btn-wrapper {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 40px 0;
}

/* ボタン本体 */
.pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 420px;
  height: 90px;
  background: #9dc9c3;
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 600;
  border-radius: 18px;
  position: relative;
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
  transition: 0.2s ease;
  padding: 0 20px;
}

/* 内側の白い線 */
.pill-btn::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid #ffffff;
  border-radius: 14px;
  pointer-events: none;
}

/* アイコン */
.pill-btn .pill-icon img {
  height: 32px;
  width: auto;
  display: block;
}

/* ホバー */
.pill-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}
