/* =========================================
 *  KV (Key Visual) – 静的版
 * ======================================= */
.kv-section {
 position: relative;
 width: 100%;
 height: 95vh; /* 画面高の 70% */
 min-height: 460px;
 overflow: hidden;
}

/* Swiper領域を 100% にフィット */
.kv-swiper,
.kv-swiper .swiper-wrapper,
.kv-swiper .swiper-slide {
 width: 100%;
 height: 100%;
}
.kv-image {
 width: 100%;
 height: 100%;
 object-fit: cover;
}

/* キャッチコピー重ね表示 */
.kv-overlay {
 position: absolute;
 top: 50%;
 right: 3%;
 z-index: 2;
 display: flex;
 justify-content: center;
 align-items: flex-start;
 pointer-events: none;
 flex-direction: column;
}
@media screen and (min-width: 768px) {
 /* キャッチコピー重ね表示 */
 .kv-overlay {
  position: absolute;
  top: 45%;
  right: 25%;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  pointer-events: none;
  flex-direction: column;
 }
}
.kv-copy {
 font-family: "Noto Sans JP", "Helvetica Neue", sans-serif;
 color: #fff;
 font-size: clamp(1.5rem, 4vw, 3.6rem);
 font-weight: 700;

 line-height: 1.3;
 text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.kv-copy02 {
 font-family: "Noto Sans JP", "Helvetica Neue", sans-serif;
 color: #fff;
 font-size: clamp(1.1rem, 4vw, 2.5rem);
 font-weight: 700;

 line-height: 1.3;
 text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ナビゲーションスタイル（任意で調整） */
.kv-section .swiper-pagination-bullet {
 background: #fff;
 opacity: 0.6;
}
.kv-section .swiper-pagination-bullet-active {
 opacity: 1;
}
.kv-section .swiper-button-prev,
.kv-section .swiper-button-next {
 color: #fff;
 --swiper-navigation-size: 44px;
 transition: opacity 0.3s ease;
}
.kv-section .swiper-button-prev:hover,
.kv-section .swiper-button-next:hover {
 opacity: 0.7;
}

/* スマホで高さ縮小 */
@media (max-width: 599px) {
 .kv-section {
  height: 55vh;
  min-height: 320px;
 }
}

/* =========================================
 *  Intro Section – 2 Column
 * ======================================= */
.intro-section {
 background: #ffffff; /* 必要に応じて変更 */
 padding: 70px 0;
}

.intro-heading {
 font-family: "Noto Sans JP", "Helvetica Neue", sans-serif;
 font-size: 2em;
 line-height: 1.4;
 margin: 0 0 60px;
 color: #333;
}
.intro-main {
 display: flex;
 flex-direction: column;
 align-items: center;
}
.intro-flex {
 display: flex;
 gap: 60px;
 align-items: flex-start;
 flex-direction: row;
 justify-content: center;
}

/* ---- 左カラム：画像 ---- */
.intro-img {
 width: 50%;
 max-width: 600px;
 margin: 0;
}
.intro-img img {
 width: 100%;
 height: auto;
 border-radius: 8px;
 box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* ---- 右カラム：本文 ---- */
.intro-body {
 width: 100%;
 font-size: 1rem;
 line-height: 1.8;
 color: #333;
}
@media screen and (min-width: 768px) {
 .intro-body {
  width: 45%;
  font-size: 1.1rem;
  line-height: 2;
  color: #333;
 }
}
.intro-body p {
 margin: 0 0 1.6em;
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
 .intro-section {
  padding: 80px 0;
 }
 .intro-flex {
  flex-direction: column;
  gap: 40px;
 }
 .intro-img {
  max-width: 100%;
  width: 100%;
 }
 .intro-heading {
  font-size: 1.2rem;
  margin-bottom: 40px;
 }
}

/* ::::: 当院について ::::: */
.about-section {
 padding: 70px 0;
 background: #fff;
}

.about-header {
 border-bottom: 3px solid #d6a59c;
 margin-bottom: 40px;
}
.about-heading {
 display: flex;
 align-items: center;
 gap: 10px;
 font-family: "Noto Sans JP", "Helvetica Neue", sans-serif;
 font-size: clamp(1.2rem, 2.4vw, 2.4rem);
 font-weight: 700;
 color: #333;
}
.about-icon {
 width: 25px;
 height: 25px;
}
@media screen and (min-width: 768px) {
 .about-icon {
  width: 28px;
  height: 28px;
 }
}
/* --- 2カラム --- */
.about-flex {
 display: flex;
 gap: 48px;
 align-items: flex-start;
}

.about-photo {
 width: 50%;
 margin: 0;
}
.about-photo img {
 width: 100%;
 height: auto;
 display: block;
 border-radius: 6px;
}

.about-text {
 flex: 1;
 font-size: 1rem;
 line-height: 1.8;
 color: #333;
}
@media screen and (min-width: 768px) {
 .about-text {
  flex: 1;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #333;
 }
}
.about-text p {
 margin: 0 0 1.8em;
}

.about-subheading {
 font-size: 1rem;
 font-weight: 700;
 color: #cc3366;
 margin: 2.8em 0 0.8em;
}
.about-list {
 list-style: disc;
 margin: 0 0 0 1.2em;
 padding: 0;
}
.about-list li {
 margin: 0 0 0.8em;
}

/* --- スマホ --- */
@media (max-width: 768px) {
 .about-section {
  padding: 70px 0;
 }
 .about-flex {
  flex-direction: column;
  gap: 32px;
 }
 .about-photo {
  flex: 0 0 auto;
  width: 100%;
 }
 .about-subheading {
  margin: 2em 0 0.8em;
 }
}
/* ==== Add-on block ==== */
.addon-block {
 margin-top: 60px;
 font-size: 0.9rem;
 line-height: 2;
 color: #333;
}
@media (min-width: 768px) {
 .addon-block {
  margin-top: 60px;
  font-size: 1.1rem;
  line-height: 2;
  color: #333;
 }
}
.addon-heading {
 font-size: 1.35rem;
 font-weight: 700;
 color: #cc3366;
 border-bottom: 2px solid #dfdede;
 margin: 2.4em 0 0.8em;
}
.addon-list {
 list-style: disc;
 margin: 0 0 1.6em 2.2em;
 padding: 0;
}
.addon-list li {
 margin-bottom: 0.6em;
 font-size: 1.1em;
}
.addon-text {
 margin: 0 0 1.8em;
 font-size: 1.1em;
}
/* モバイル余白 */
@media (max-width: 768px) {
 .addon-block {
  margin-top: 40px;
 }
}

/* =========================================
 *  Outpatient Section
 * ======================================= */
.outpatient-section {
 padding: 70px 0;
 background: #ffffff; /* 必要に応じて変更 */
}

/* ---- 見出し ---- */
.outpatient-header {
 margin-bottom: 60px;
 border-bottom: 3px solid #d6a59c; /* 線の色はスクショ合わせ */
 padding-bottom: 10px;
}
.outpatient-heading {
 font-family: "Noto Sans JP", "Helvetica Neue", sans-serif;
 font-size: clamp(1.6rem, 2.5vw, 2.4rem);
 font-weight: 700;
 display: flex;
 align-items: center;
 gap: 12px;
 color: #333;
}
.outpatient-icon {
 width: 28px;
 height: 28px;
}

/* ---- グリッド ---- */
.outpatient-grid {
 list-style: none;
 margin: 0;
 padding: 0 20px;
 display: grid;
 gap: 40px 50px;
 /* ▼ 初期は auto-fit でスマホ・タブレット用に柔軟化 */
 grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
@media (min-width: 768px) {
 .outpatient-grid {
  list-style: none;
  margin: 0;
  padding: 0 40px;
  display: grid;
  gap: 40px 50px;
  /* ▼ 初期は auto-fit でスマホ・タブレット用に柔軟化 */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
 }
}
/* ───── PC幅は 4 列固定 ───── */
@media (min-width: 992px) {
 /* ブレイクポイントはお好みで */
 .outpatient-grid {
  grid-template-columns: repeat(4, 1fr); /* ← ここがキモ！ */
 }
}

.outpatient-grid li {
 margin: 0;
}
.outpatient-grid a {
 display: flex;
 justify-content: center;
 align-items: center;
 min-height: 160px;
 background: #cc3366;
 color: #fff;
 font-weight: 700;
 font-size: 1.6rem;
 text-align: center;
 line-height: 1.4;
 border-radius: 8px;
 text-decoration: none;
 transition: opacity 0.3s ease, transform 0.2s ease;
}
.outpatient-grid a:hover {
 opacity: 0.85;
 transform: translateY(-4px);
}

/* ---- スマホ調整 ---- */
@media (max-width: 768px) {
 .outpatient-section {
  padding: 70px 0;
 }
 .outpatient-grid {
  gap: 24px 20px;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
 }
 .outpatient-grid a {
  min-height: 100px;
  font-size: 1.1rem;
 }
}
/* ::::: 外来診察表 ::::: */
.schedule-section {
 padding: 70px 0;
 padding-bottom: 40px;
}
.schedule-header {
 border-bottom: 3px solid #d6a59c;
 margin-bottom: 40px;
}
.schedule-heading {
 display: flex;
 align-items: center;
 gap: 10px;
 font-family: "Noto Sans JP", "Helvetica Neue", sans-serif;
 font-size: clamp(1.6rem, 2.4vw, 2.4rem);
 font-weight: 700;
 color: #333;
}
.schedule-icon {
 width: 28px;
 height: 28px;
}

/* ===== 基本レイアウト：診療科ブロック＋テーブル ===== */
.clinic-unit {
 display: flex;
 align-items: stretch;
 gap: 14px; /* 左右に余白 */
 margin-bottom: 40px;
}

/* ピンク診療科ボックス */
.dept-box {
 min-width: 185px; /* 固定幅 */
 background: #cc3366;
 color: #fff;
 font-weight: 700;
 font-size: 1.3rem;
 display: flex;
 justify-content: center;
 align-items: center;
 border-radius: 8px;
 padding: 10px 0;
}
@media (min-width: 768px) {
 .dept-box {
  min-width: 185px; /* 固定幅 */
  background: #cc3366;
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  padding: 18px 0;
 }
}
/* 右側テーブル横スクロールラッパー */
.table-scroll {
 overflow-x: auto;
 -webkit-overflow-scrolling: touch;
 min-width: 620px; /* スマホでスクロールさせる */
 flex: 1;
}

/* ===== テーブル ===== */
.clinic-table {
 width: 100%;
 border-collapse: separate;
 border-spacing: 2px;
 font-size: 0.95rem;
}
.clinic-table th,
.clinic-table td {
 padding: 15px 8px;
 border-radius: 8px;
 text-align: center;
 font-size: 1em;
 background: #f6f6f6;
}
@media (min-width: 768px) {
 .clinic-table th,
 .clinic-table td {
  padding: 15px 8px;
  border-radius: 8px;
  text-align: center;
  font-size: 1.2em;
  background: #f6f6f6;
 }
}
.clinic-table .head {
 background: #fbd4d6; /* ヘッダー用ピンク */
 font-weight: 700;
 border-radius: 8px;
 font-size: 1.2em;
}
.clinic-table .head01 {
 width: 20%;
 background: #fbd4d6;
 font-weight: 700;
 border-radius: 8px;
 font-size: 1.2em;
}
/* 曜日列幅を整える */
.clinic-table td:nth-child(n + 3) {
 width: 58px;
}

/* ===== 備考 ===== */
.schedule-note {
 margin: 26px 0 0;
 font-size: 1.1em;
 line-height: 1.8;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
 .schedule-section {
  padding: 70px 0;
 }
 .clinic-unit {
  flex-direction: column;
  gap: 20px;
 }
 .dept-box {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
 }
 .table-scroll {
  min-width: 0;
 } /* フル幅に */
 .clinic-table {
  font-size: 0.9rem;
 }
}
/* ::::: お知らせ ::::: */
.news-section {
 padding: 70px 0;
 background: #fff;
}

.news-header {
 border-bottom: 3px solid #d6a59c;
 margin-bottom: 40px;
}
.news-heading {
 display: flex;
 align-items: center;
 gap: 10px;
 font-family: "Noto Sans JP", "Helvetica Neue", sans-serif;
 font-size: clamp(1.6rem, 2.4vw, 2.4rem);
 font-weight: 700;
 color: #333;
}
.news-icon {
 width: 28px;
 height: 28px;
}

.news-list {
 list-style: none;
 margin: 0;
 padding: 0;
 display: flex;
 flex-direction: column;
 gap: 32px;
}

/* ---- 1アイテム ---- */
.news-item {
 margin: 0;
}
.news-link {
 display: flex;
 gap: 32px;
 text-decoration: none;
 color: inherit;
}
.news-thumb {
 flex: 0 0 250px;
 height: auto;
 background: #c9c7c7;
 border-radius: 4px;
 overflow: hidden;
}
.news-thumb img {
 width: 100%;
 height: 100%;
 object-fit: cover;
}
.news-meta {
 flex: 1;
}
.news-date {
 display: block;
 font-size: 1em;
 color: #666;
 margin-bottom: 4px;
}
.news-title {
 font-size: 1rem;
 font-weight: 700;
 color: #cc3366;
 margin: 0 0 8px;
}
@media (min-width: 768px) {
 .news-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #cc3366;
  margin: 0 0 8px;
 }
}
.news-excerpt {
 font-size: 0.9rem;
 color: #555;
 margin: 0;
}
@media (min-width: 768px) {
 .news-excerpt {
  font-size: 1rem;
  color: #555;
  margin: 0;
 }
}
/* ---- 一覧ボタン ---- */
.news-more {
 text-align: center;
 margin-top: 48px;
}
.news-btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 background: #cc3366;
 color: #fff;
 font-weight: 700;
 padding: 14px 80px;
 border-radius: 9999px;
 text-decoration: none;
 transition: opacity 0.3s ease;
}
.news-btn::after {
 content: "＞"; /* Font Awesome 右矢印（利用しない場合は削除） */
 font-family: "Font Awesome 5 Free";
 font-weight: 900;
 margin-left: 12px;
}
.news-btn:hover {
 opacity: 0.8;
}

/* ---- スマホ ---- */
@media (max-width: 768px) {
 .news-section {
  padding: 70px 0;
 }
 .news-link {
  flex-direction: column;
  gap: 16px;
 }
 .news-thumb {
  width: 100%;
  height: 180px;
 }
}
/* -------------------------------------------------
   診察表：モバイル横スクロール調整
   ------------------------------------------------- */
@media (max-width: 767px) {
 /* スクロールを効かせる親 */
 .table-scroll {
  overflow-x: auto; /* ← 横スクロール */
  -webkit-overflow-scrolling: touch; /* ← iOS 慣性スクロール */
 }

 /* テーブルを折り返さず一枚で表示させる */
 .clinic-table {
  min-width: 660px; /* ← お好みで幅を調整 */
 }

 /* 文字の折り返しを防止（時間が2行になるのを防ぐ）*/
 .clinic-table th,
 .clinic-table td {
  white-space: nowrap;
 }

 /* 「受付時間」「診療時間」のセル幅を少し広く */
 .head01,
 .clinic-table td:nth-child(1),
 .clinic-table td:nth-child(2) {
  width: 110px;
 }
}

/* =========================================
 *  hospitalization Section
 * ======================================= */
.hospitalization-section {
 padding: 70px 0;
 background: #fff;
}

.hospitalization-header {
 border-bottom: 3px solid #d6a59c;
 margin-bottom: 40px;
}
.hospitalization-heading {
 display: flex;
 align-items: center;
 gap: 10px;
 font-family: "Noto Sans JP", "Helvetica Neue", sans-serif;
 font-size: clamp(1.6rem, 2.4vw, 2.4rem);
 font-weight: 700;
 color: #333;
}
.hospitalization-icon {
 width: 28px;
 height: 28px;
}

/* --- 2カラム --- */
.hospitalization-flex {
 display: flex;
 gap: 48px;
 align-items: flex-start;
}

.hospitalization-photo {
 width: 50%;
 margin: 0;
}
.hospitalization-photo img {
 width: 100%;
 height: auto;
 display: block;
 border-radius: 6px;
}

.hospitalization-text {
 flex: 1;
 font-size: 1rem;
 line-height: 1.8;
 color: #333;
}
@media (min-width: 768px) {
 .hospitalization-text {
  flex: 1;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #333;
 }
}
.hospitalization-text p {
 margin: 0 0 1.8em;
}

.hospitalization-subheading {
 font-size: 1rem;
 font-weight: 700;
 color: #cc3366;
 margin: 2.8em 0 0.8em;
}
.hospitalization-list {
 list-style: disc;
 margin: 0 0 0 1.2em;
 padding: 0;
}
.hospitalization-list li {
 margin: 0 0 0.8em;
}

/* --- スマホ --- */
@media (max-width: 768px) {
 .hospitalization-section {
  padding: 70px 0;
 }
 .hospitalization-flex {
  flex-direction: column;
  gap: 32px;
 }
 .hospitalization-photo {
  flex: 0 0 auto;
  width: 100%;
 }
 .hospitalization-subheading {
  margin: 2em 0 0.8em;
 }
}
/* =========================================
 *  rmcowcd Section
 * ======================================= */
.rmcowcd-section {
 padding: 70px 0;
 background: #fff;
 padding-bottom: 40px;
}

.rmcowcd-header {
 border-bottom: 3px solid #d6a59c;
 margin-bottom: 40px;
}
.rmcowcd-heading {
 display: flex;
 align-items: center;
 gap: 10px;
 font-family: "Noto Sans JP", "Helvetica Neue", sans-serif;
 font-size: clamp(1.6rem, 2.4vw, 2.4rem);
 font-weight: 700;
 color: #333;
}
.rmcowcd-icon {
 width: 28px;
 height: 28px;
}

/* --- 2カラム --- */
.rmcowcd-flex {
 display: flex;
 gap: 48px;
 align-items: flex-start;
}

.rmcowcd-photo {
 width: 50%;
 margin: 0;
}
.rmcowcd-photo img {
 width: 100%;
 height: auto;
 display: block;
 border-radius: 6px;
}

.rmcowcd-text {
 flex: 1;
 font-size: 1rem;
 line-height: 1.8;
 color: #333;
}
@media (min-width: 768px) {
 .rmcowcd-text {
  flex: 1;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #333;
 }
}
.rmcowcd-text p {
 margin: 0 0 1.8em;
}

.rmcowcd-subheading {
 font-size: 1rem;
 font-weight: 700;
 color: #cc3366;
 margin: 2.8em 0 0.8em;
}
.rmcowcd-list {
 list-style: disc;
 margin: 0 0 0 1.2em;
 padding: 0;
}
.rmcowcd-list li {
 margin: 0 0 0.8em;
}

/* --- スマホ --- */
@media (max-width: 768px) {
 .rmcowcd-section {
  padding: 70px 0;
 }
 .rmcowcd-flex {
  flex-direction: column;
  gap: 32px;
 }
 .rmcowcd-photo {
  flex: 0 0 auto;
  width: 100%;
 }
 .rmcowcd-subheading {
  margin: 2em 0 0.8em;
 }
}
/* =========================================
 *  recruit Section
 * ======================================= */
.recruit-section {
 padding: 70px 0;
 background: #fff;
 padding-bottom: 40px;
}

.recruit-header {
 border-bottom: 3px solid #d6a59c;
 margin-bottom: 40px;
}
.recruit-heading {
 display: flex;
 align-items: center;
 gap: 10px;
 font-family: "Noto Sans JP", "Helvetica Neue", sans-serif;
 font-size: clamp(1.6rem, 2.4vw, 2.4rem);
 font-weight: 700;
 color: #333;
}
.recruit-icon {
 width: 28px;
 height: 28px;
}

/* --- 2カラム --- */
.recruit-flex {
 display: flex;
 gap: 48px;
 align-items: flex-start;
}

.recruit-photo {
 width: 50%;
 margin: 0;
}
.recruit-photo img {
 width: 100%;
 height: auto;
 display: block;
 border-radius: 6px;
}

.recruit-text {
 flex: 1;
 font-size: 1rem;
 line-height: 1.8;
 color: #333;
}
@media (min-width: 768px) {
 .recruit-text {
  flex: 1;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #333;
 }
}
.recruit-text p {
 margin: 0 0 1.8em;
}

.recruit-subheading {
 font-size: 1rem;
 font-weight: 700;
 color: #cc3366;
 margin: 2.8em 0 0.8em;
}
.recruit-list {
 list-style: disc;
 margin: 0 0 0 1.2em;
 padding: 0;
}
.recruit-list li {
 margin: 0 0 0.8em;
}

/* --- スマホ --- */
@media (max-width: 768px) {
 .recruit-section {
  padding: 70px 0;
 }
 .recruit-flex {
  flex-direction: column;
  gap: 32px;
 }
 .recruit-photo {
  flex: 0 0 auto;
  width: 100%;
 }
 .recruit-subheading {
  margin: 2em 0 0.8em;
 }
}

/* ::::: 法人概要（装飾なし） ::::: */
.corporate-section {
 padding: 70px 0;
 background: #fff;
}
.corporate-header {
 border-bottom: 3px solid #d6a59c;
 margin-bottom: 40px;
}
.corporate-table table {
 width: 100%;
 border-collapse: collapse;
 font-size: 1rem;
}
.corporate-table th,
.corporate-table td {
 padding: 30px;
 border-bottom: 1px solid #ccc; /* ← 下線のみ */
 text-align: left;
 vertical-align: top;
 background: #fff; /* 白背景に統一 */
 font-weight: normal;
}
.corporate-table th {
 font-weight: bold;
 font-size: 1.1em;
 padding-left: 60px;
 width: 20%;
}
.corporate-table td {
 font-size: 1.1em;
}
@media (max-width: 768px) {
 .corporate-section {
  padding: 70px 0;
 }
 .corporate-table table {
  font-size: 0.95rem;
 }
}
@media (max-width: 768px) {
 .corporate-table table,
 .corporate-table tbody,
 .corporate-table tr {
  display: block;
  width: 100%;
 }

 .corporate-table th,
 .corporate-table td {
  display: block;
  width: 100%;
  text-align: left;
  padding: 6px 0;
  border: none;
 }

 .corporate-table th {
  font-weight: bold;
  color: #333;
  margin-top: 16px;
 }

 .corporate-table td {
  padding-left: 0;
  border-bottom: 1px solid #ccc;
 }
}
#corporate-profile .corporate-flex {
 display: flex;
 gap: 40px;
 justify-content: space-between;
 flex-wrap: wrap;
}
#corporate-profile .corporate-half {
 width: 100%;
}
@media screen and (min-width: 768px) {
 #corporate-profile .corporate-half {
  width: 48%;
 }
}
#corporate-profile .corporate-table {
 width: 100%;
}
#corporate-profile .corporate-table table {
 width: 100%;
 border-collapse: collapse;
}
#corporate-profile .corporate-table th,
#corporate-profile .corporate-table td {
 border-bottom: 1px solid #ccc;
 padding: 15px;
 vertical-align: middle;
 text-align: left;
}
#corporate-profile .corporate-subheading {
 font-size: 1.2rem;
 font-weight: 700;
 color: #cc3366;
 margin-bottom: 1em;
}
