@charset "UTF-8";

/* ============================================================
   Google Fonts + Font Awesome
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css');

/* ============================================================
   Reset & Base
============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic Pro', Meiryo, sans-serif;
  font-size: 15px;
  color: #555;
  background: #fff;
  line-height: 2;
  overflow-x: hidden;
}

html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; vertical-align: middle; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; transition: 0.3s; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ============================================================
   カラー変数 — ピンク×ホワイト
============================================================ */

/* ============================================================
   カラーパターン C：ピンク×ホワイト／清潔感・モダン
   ヘッダー白地、ピンクをアクセント、背景は白ベース
============================================================ */
:root {
  --green-dark:   #c0426a;
  --green-main:   #c0426a;
  --green-light:  #fce8ef;
  --orange:       #c0426a;
  --text:         #555;
  --text-dark:    #333;
  --bg-gray:      #ffffff;
  --border:       #f0c0ce;
}


/* ============================================================
   Header
============================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  background: rgba(192, 66, 106, 0.45);
  backdrop-filter: blur(4px);
  color: #fff;
  transition: background 0.3s;
}
#header.scrolled {
  background: rgba(122, 31, 61, 0.95);
}

/* ロゴ */
#header h1 { margin: 0; }
#header h1 img { width: 160px; display: block; }

/* PC ナビ */
#header nav ul {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
#header nav ul li { position: relative; }
#header nav ul li a {
  color: #fff;
  font-size: 0.88rem;
  padding: 0.3rem 0;
  display: block;
  white-space: nowrap;
}
#header nav ul li a:hover { opacity: 0.7; }

/* サブメニュー */
#header nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--green-dark);
  min-width: 180px;
  padding: 0.5rem 0;
  flex-direction: column;
  gap: 0;
  z-index: 200;
}
#header nav ul li:hover ul { display: flex; }
#header nav ul li ul li a {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
#header nav ul li ul li a:hover { background: rgba(255,255,255,0.1); }

/* TELボタン */
.header-tel {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  padding: 0.4rem 1.2rem;
  border-radius: 30px;
  font-weight: bold;
  font-size: 0.9rem;
  white-space: nowrap;
}
.header-tel:hover { background: #c96a2a; color: #fff; }

/* ハンバーガーボタン */
#menubar_hdr {
  display: none;
  position: fixed;
  right: 0; top: 0;
  z-index: 200;
  width: 70px; height: 70px;
  background: #333;
  border-radius: 0 0 0 20px;
  cursor: pointer;
  transition: background 0.3s;
}
#menubar_hdr.open { background: var(--orange); }
#menubar_hdr span {
  display: block;
  position: absolute;
  left: 17px;
  width: 36px; height: 2px;
  background: #fff;
  transition: 0.3s;
}
#menubar_hdr span:nth-child(1) { top: 22px; }
#menubar_hdr span:nth-child(2) { top: 32px; }
#menubar_hdr span:nth-child(3) { top: 42px; }
#menubar_hdr.open span:nth-child(1) { transform: translateY(10px) rotate(-45deg); }
#menubar_hdr.open span:nth-child(2) { opacity: 0; }
#menubar_hdr.open span:nth-child(3) { transform: translateY(-10px) rotate(45deg); }

/* スマホメニュー */
#sp-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--green-main);
  z-index: 150;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
#sp-menu.open {
  display: flex;
  opacity: 1;
  visibility: visible;
}
#sp-menu a {
  color: #fff;
  font-size: 1.15rem;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 0.8rem 0;
  width: 75vw;
  text-align: center;
  border-radius: 4px;
}
#sp-menu .sp-tel {
  background: var(--orange);
  border-color: var(--orange);
  margin-top: 0.5rem;
  font-weight: bold;
}

/* ============================================================
   Slideshow（トップページ用）
============================================================ */
#mainimg {
  position: relative;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.slide.active { opacity: 1; }
.slide1 { background-image: url('../images/oyumino_yoko01.jpg'); }
.slide2 { background-image: url('../images/oyumino_yoko02.jpg'); }
.slide3 { background-image: url('../images/oyumino_yoko03.jpg'); }
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
  pointer-events: none;
}

/* ============================================================
   お知らせバー
============================================================ */
.new-top {
  position: absolute;
  top: 80vh;
  left: 10vw;
  width: 80vw;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.new-top h2 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: normal;
  background: var(--green-main);
  color: #fff;
  border-radius: 3px;
  padding: 0.2rem 1rem;
  white-space: nowrap;
}
.new-top .text {
  flex: 1;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  font-size: 0.95rem;
}
.new-top .new-list a {
  font-size: 0.85rem;
  color: var(--green-main);
  text-decoration: underline;
  white-space: nowrap;
}

/* ============================================================
   共通セクション
============================================================ */
#contents { padding-top: 0; }

section {
  padding: 5rem 2rem;
}

/* セクション見出し */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 {
  font-size: 2rem;
  font-weight: normal;
  color: var(--text-dark);
  margin: 0 0 0.3rem;
}
.section-title .small {
  display: block;
  font-size: 0.82rem;
  color: var(--green-main);
  letter-spacing: 0.12em;
  opacity: 0.8;
}

/* ============================================================
   病院紹介セクション（hospitalinfo）
============================================================ */
#hospitalinfo {
  background: #fff;
}
.hospitalinfo-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.hospitalinfo-inner .text { flex: 1; min-width: 280px; }
.hospitalinfo-inner .text h4 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin: 0 0 1rem;
}
.hospitalinfo-inner .text h4 span {
  display: block;
  font-size: 0.7em;
  font-weight: normal;
  color: var(--green-main);
  letter-spacing: 0.1em;
}
.hospitalinfo-inner .text p { margin: 0 0 0.8rem; }
.hospitalinfo-inner .image-r { flex: 1; min-width: 260px; }
.hospitalinfo-inner .image-r img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 50px 10px;
  box-shadow: 10px 10px rgba(0,0,0,0.08);
}
.more-link {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.5rem 1.8rem;
  background: var(--green-main);
  color: #fff;
  border-radius: 30px;
  font-size: 0.88rem;
  transition: 0.3s;
}
.more-link:hover { background: var(--green-dark); color: #fff; }

/* ============================================================
   こだわりセクション（kodawari）
============================================================ */
#kodawari {
  background: var(--bg-gray);
}
.kodawari-list {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}
.kodawari-item {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.kodawari-item.reverse { flex-direction: row-reverse; }
.kodawari-item .text { flex: 1; min-width: 280px; }
.kodawari-item .text h4 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin: 0 0 0.8rem;
  padding-left: 1rem;
  border-left: 4px solid var(--green-main);
}
.kodawari-item .text h4 span {
  display: block;
  font-size: 0.7em;
  font-weight: normal;
  color: var(--green-main);
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}
.kodawari-item .image { flex: 1; min-width: 260px; }
.kodawari-item .image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 50px 10px;
  box-shadow: 10px 10px rgba(0,0,0,0.08);
}

/* LINEブロック */
.line-block {
  background: #fff;
  border: 2px solid #06C755;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.line-block img.qr { width: 100px; height: 100px; object-fit: contain; }
.line-block .line-text { flex: 1; }
.line-block .line-text p { margin: 0 0 0.5rem; font-size: 0.9rem; }
.line-link {
  display: inline-block;
  background: #06C755;
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-weight: bold;
  font-size: 0.9rem;
}
.line-link:hover { background: #05a848; color: #fff; }

/* ============================================================
   診療内容セクション（medicalinfo）
============================================================ */
#medicalinfo {
  background: var(--green-dark);
  color: #fff;
}
#medicalinfo .section-title h2 { color: #fff; }
#medicalinfo .section-title .small { color: rgba(255,255,255,0.7); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.service-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  color: var(--text);
  transition: transform 0.2s;
}
.service-card:hover { transform: translateY(-4px); }
.service-card figure { margin: 0; }
.service-card figure img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.service-card .card-body { padding: 1.2rem 1.5rem 1.5rem; }
.service-card h4 {
  font-size: 1.05rem;
  color: var(--green-main);
  margin: 0 0 0.5rem;
}
.service-card h4 span {
  display: block;
  font-size: 0.72em;
  color: #999;
  font-weight: normal;
}
.service-card p { font-size: 0.88rem; line-height: 1.7; margin: 0 0 1rem; }

/* ============================================================
   CTAセクション
============================================================ */
.cta-section {
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
              url('../images/oyumino_yoko01.jpg') center/cover;
  padding: 6rem 2rem;
  text-align: center;
  color: #fff;
}
.cta-section h2 {
  font-size: 1.8rem;
  font-weight: normal;
  margin: 0 0 0.5rem;
}
.cta-section p { opacity: 0.85; margin: 0 0 2rem; }
.tel-btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  padding: 1.2rem 3rem;
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: bold;
  transition: 0.3s;
}
.tel-btn span {
  display: block;
  font-size: 0.7rem;
  font-weight: normal;
  opacity: 0.9;
  margin-top: 0.2rem;
}
.tel-btn:hover { background: #c96a2a; color: #fff; }

/* ============================================================
   フッター
============================================================ */
#footer {
  background: var(--green-dark);
  color: #fff;
  padding: 3rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}
.footer1, .footer2 { flex: 1; min-width: 300px; }
#footer h3 {
  font-size: 1rem;
  border-left: 4px solid rgba(255,255,255,0.5);
  padding-left: 0.8rem;
  margin: 0 0 1rem;
}
#footer img.footer-logo {
  width: 180px;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
  display: block;
}
#footer p { font-size: 0.88rem; line-height: 1.9; margin: 0 0 0.4rem; }
#footer a { color: rgba(255,255,255,0.85); text-decoration: underline; }

/* 診療時間テーブル */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  color: var(--text);
  font-size: 0.82rem;
  margin-bottom: 0.8rem;
}
.hours-table th, .hours-table td {
  padding: 0.5rem 0;
  text-align: center;
  border: 1px solid #ccc;
}
.hours-table thead th {
  background: var(--bg-gray);
  font-weight: bold;
}
.t1-color { color: var(--green-main); font-weight: bold; }
.hours-note { font-size: 0.8rem; opacity: 0.8; }

/* Googleマップ */
.map-wrap {
  width: 100%;
  height: 280px;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* コピーライト */
.footer-copy {
  width: 100%;
  text-align: right;
  font-size: 0.78rem;
  opacity: 0.6;
  margin-top: 1rem;
}

/* ============================================================
   ページトップボタン
============================================================ */
.pagetop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 55px; height: 55px;
  background: var(--green-main);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
}
.pagetop.show { opacity: 1; visibility: visible; }
.pagetop:hover { background: var(--green-dark); }

/* ============================================================
   詳細ページ（under page）共通
============================================================ */
body.under {
  padding-top: 72px;
  background: var(--bg-gray);
}

/* パンくず / ページタイトル帯 */
.page-hero {
  background: var(--green-dark);
  color: #fff;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
}
.page-hero h2 {
  font-size: 1.8rem;
  font-weight: normal;
  margin: 0 0 0.5rem;
}
.page-hero .breadcrumb {
  font-size: 0.82rem;
  opacity: 0.75;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: underline; }

/* コンテンツエリア */
.under-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* コンテンツ内の見出し（DBのHTMLに対応） */
.under-content h3 {
  font-size: 1.3rem;
  color: var(--green-dark);
  border-left: 5px solid var(--green-main);
  padding: 0.5rem 1rem;
  margin: 2.5rem 0 1rem;
  background: var(--green-light);
}
.under-content h4 {
  font-size: 1.1rem;
  color: var(--text-dark);
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.4rem;
  margin: 2rem 0 1rem;
}
.under-content p { margin: 0 0 1rem; line-height: 1.9; }
.under-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0.5rem 0;
}
.under-content ul { list-style: disc; padding-left: 1.5rem; margin: 0 0 1rem; }
.under-content ul li { margin-bottom: 0.4rem; }
.under-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}
.under-content table th,
.under-content table td {
  border: 1px solid var(--border);
  padding: 0.7rem 1rem;
  text-align: left;
}
.under-content table th {
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: bold;
  width: 30%;
  white-space: nowrap;
}

/* 戻るボタン */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--green-main);
  font-size: 0.88rem;
  border: 1px solid var(--green-main);
  padding: 0.4rem 1.2rem;
  border-radius: 30px;
  margin-bottom: 2rem;
  transition: 0.2s;
}
.back-btn:hover { background: var(--green-main); color: #fff; }

/* hospinfo 設備画像グリッド */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.facility-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* 経歴テーブル */
.career-table th {
  width: 110px;
  color: var(--green-dark);
  background: var(--green-light);
}

/* ============================================================
   フェードインアニメーション
============================================================ */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   レスポンシブ
============================================================ */
@media (max-width: 900px) {
  #header { padding-right: 80px; }
  #header nav { display: none; }
  .header-tel { font-size: 0.8rem; padding: 0.3rem 0.8rem; }
  #menubar_hdr { display: block; }

  .new-top { left: 3vw; width: 80vw; top: 82vh; flex-wrap: wrap; }

  .hospitalinfo-inner,
  .kodawari-item,
  .kodawari-item.reverse { flex-direction: column; gap: 1.5rem; }

  .service-grid { grid-template-columns: 1fr; }

  section { padding: 3.5rem 1.2rem; }

  .under-content { padding: 2rem 1.2rem 3rem; }
  .page-hero h2 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  #header h1 img { width: 130px; }
  .tel-btn { font-size: 1.2rem; padding: 1rem 2rem; }
  #footer { flex-direction: column; }
}

/* ============================================================
   Plimo DB コンテンツ互換スタイル
   （DBのcontents_textに含まれるクラスに対応）
============================================================ */

/* --- 見出し帯 --- */
.gnv_tmp_h3_bg,
.gnv_tmp_h3_bg h3 {
  margin: 2rem 0 0.8rem;
}
.gnv_tmp_h3_bg h3 {
  font-size: 1.25rem;
  color: var(--green-dark);
  background: var(--green-light);
  border-left: 5px solid var(--green-main);
  padding: 0.55rem 1rem;
  margin: 0;
}

.gnv_tmp_h4_bg,
.gnv_tmp_h4_bg h4 {
  margin: 1.5rem 0 0.6rem;
}
.gnv_tmp_h4_bg h4 {
  font-size: 1.05rem;
  color: var(--text-dark);
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.35rem;
  margin: 0;
}

.gnv_tmp_h5_bg,
.gnv_tmp_h5_bg h5 {
  margin: 1.2rem 0 0.5rem;
}
.gnv_tmp_h5_bg h5 {
  font-size: 0.95rem;
  color: var(--green-main);
  font-weight: bold;
  margin: 0;
}

/* --- partsブロック共通 --- */
.parts { margin-bottom: 1.2rem; }

/* --- テキストエリア --- */
.parts.textarea,
.parts.text { }

/* ボーダー付きボックス */
.parts.textarea.box-bd,
.box-bd {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  background: var(--bg-gray);
}
.box-bd h5 {
  font-size: 0.95rem;
  color: var(--green-dark);
  margin: 0 0 0.5rem;
}

/* --- 画像＋テキスト横並び（img_r: 画像右） --- */
.parts.text_image { }

.b_11_2_in {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.b_11_2_in > span {
  flex-shrink: 0;
}
.b_11_2_in > span img {
  width: 220px;
  height: 165px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.b_11_2_in p { flex: 1; min-width: 200px; margin: 0 0 0.8rem; }
.b_11_2_in ul { flex: 1; min-width: 200px; }

/* img_r（右寄せ）: flex-direction を逆に */
.img_r .b_11_2_in {
  flex-direction: row-reverse;
}

/* --- フリーエリア --- */
.parts.free { }

/* --- テーブル --- */
.parts.table2 table,
.parts.free table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1rem;
  font-size: 0.9rem;
}
.parts.table2 th,
.parts.table2 td,
.parts.free th,
.parts.free td {
  border: 1px solid var(--border);
  padding: 0.6rem 1rem;
  text-align: left;
  vertical-align: middle;
}
.parts.table2 th,
.b_06_item {
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: bold;
  width: 30%;
  white-space: nowrap;
}

/* table-beauty（診療・料金テーブル） */
.table-beauty td,
.table-beauty th {
  border: 1px solid var(--border);
  padding: 0.6rem 1rem;
  vertical-align: middle;
}
.table-beauty .td1 {
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: bold;
  white-space: nowrap;
}
.table-beauty .td2 {
  background: var(--green-dark);
  color: #fff;
  font-weight: bold;
  text-align: center;
}

/* gnv_tmp_table02 / gnv_tmp_hours（診療時間） */
.gnv_tmp_table02 {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.gnv_tmp_table02 th,
.gnv_tmp_table02 td {
  border: 1px solid #ccc;
  padding: 0.5rem 0.3rem;
  text-align: center;
}
.gnv_tmp_table02 thead th {
  background: var(--bg-gray);
}

/* table-step */
.table-step .b_06_item { width: 35%; }

/* --- 丸付きリスト --- */
.circle_list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.circle_list li {
  padding-left: 1.4em;
  position: relative;
  margin-bottom: 0.3rem;
}
.circle_list li::before {
  content: "○";
  position: absolute;
  left: 0;
  color: var(--green-main);
  font-size: 0.85em;
  line-height: 2;
}

/* p.circle（丸付き段落） */
p.circle {
  padding-left: 1.4em;
  position: relative;
  margin-bottom: 0.3rem;
}
p.circle::before {
  content: "○";
  position: absolute;
  left: 0;
  color: var(--green-main);
  font-size: 0.85em;
  line-height: 2;
}

/* --- Googleマップ iframe --- */
p.map iframe,
.parts.free iframe {
  width: 100%;
  height: 300px;
  border: none;
  display: block;
  border-radius: 6px;
}

/* --- 院長署名 --- */
p.author {
  text-align: right;
  font-style: italic;
  color: #888;
  margin-top: 1rem;
}

/* --- 設備グリッド（DBのgrid-container） --- */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}
.grid-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 600px) {
  .b_11_2_in,
  .img_r .b_11_2_in {
    flex-direction: column;
  }
  .b_11_2_in > span img {
    width: 100%;
    height: 200px;
  }
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   病院からのお知らせセクション（ポータル連携）
============================================================ */
.announcements-section {
  background: var(--bg-gray);
  padding: 3rem 2rem;
}

.announcements-section .section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.no-announce {
  text-align: center;
  color: #999;
  padding: 2rem 0;
}

/* お知らせ画像 */
.announce-img {
  margin-top: 0.8rem;
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 6px;
  display: block;
}

/* ============================================================
   Plimo/Bootstrap 由来クラスの上書きリセット
   （DBコンテンツ内のHTMLレイアウトを新サイトに合わせる）
============================================================ */

/* --- b_11_2 系（2カラムfloatレイアウト） --- */
.under-content .b_11_2_in {
  display: flex !important;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.under-content .b_11_2_in > span:first-child {
  flex: 1 1 55%;
}
.under-content .b_11_2_in > span:last-child {
  flex: 0 1 38%;
}
.under-content .b_11_2_in img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}
/* img_r（画像右）の場合は順序を入れ替え */
.under-content .img_r .b_11_2_in {
  flex-direction: row-reverse;
}

/* --- image-l / image-r（list-half系） --- */
.under-content .list-half .list {
  display: flex !important;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.under-content .list-half .image-l,
.under-content .list-half .image-r {
  flex: 0 1 38%;
}
.under-content .list-half .image-r {
  order: 1;
}
.under-content .list-half .text {
  flex: 1 1 55%;
  order: 0;
}
.under-content .list-half .image-l img,
.under-content .list-half .image-r img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

/* --- clearfix 系 --- */
.under-content .clearfix::after {
  content: "";
  display: block;
  clear: both;
}

/* --- parts free b_09（フリーパーツ全幅ブロック）--- */
.under-content .parts.free.b_09 {
  margin-bottom: 1.5rem;
}

/* --- gnv_tmp_h4_bg（見出し帯）--- */
.under-content .gnv_tmp_h4_bg {
  background: var(--green-light);
  border-left: 4px solid var(--green-main);
  padding: 0.6rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 0 4px 4px 0;
}
.under-content .gnv_tmp_h4_bg h4 {
  font-size: 1.1rem;
  color: var(--green-dark);
  margin: 0;
}

/* --- レスポンシブ（スマホ）--- */
@media (max-width: 640px) {
  .under-content .b_11_2_in,
  .under-content .img_r .b_11_2_in,
  .under-content .list-half .list {
    flex-direction: column !important;
  }
  .under-content .b_11_2_in > span,
  .under-content .list-half .image-l,
  .under-content .list-half .image-r,
  .under-content .list-half .text {
    flex: 1 1 100% !important;
    order: unset !important;
  }
}

/* ============================================================
   hospinfo.php 専用スタイル
============================================================ */

.hosp-section {
  margin-bottom: 3rem;
}

/* H3見出し帯（大見出し） */
.hosp-h3 {
  background: var(--green-light);
  border-left: 5px solid var(--green-main);
  padding: 0.7rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 1.5rem;
  border-radius: 0 4px 4px 0;
}

/* H4見出し（小見出し） */
.hosp-h4 {
  border-left: 4px solid var(--green-main);
  padding: 0.4rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 1.8rem 0 1rem;
  background: var(--bg-gray);
  border-radius: 0 4px 4px 0;
}

/* テキスト＋画像 2カラム */
.hosp-img-text {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.hosp-img-text .hosp-text {
  flex: 1 1 58%;
}
.hosp-img-text .hosp-img {
  flex: 0 1 36%;
}
.hosp-img-text .hosp-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}
.hosp-img-text p {
  margin-bottom: 0.8rem;
  line-height: 1.85;
}

/* ボックス（箇条書き枠） */
.hosp-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  background: #fff;
}

/* リスト */
.hosp-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hosp-list li {
  padding: 0.4rem 0 0.4rem 1.4rem;
  position: relative;
  line-height: 1.7;
}
.hosp-list li::before {
  content: "●";
  color: var(--green-main);
  position: absolute;
  left: 0;
  font-size: 0.7rem;
  top: 0.55rem;
}

/* 署名 */
.hosp-author {
  text-align: right;
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 1rem;
  color: var(--text-dark);
}

/* 経歴テーブル */
.hosp-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
.hosp-table th,
.hosp-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.7;
  vertical-align: top;
}
.hosp-table th {
  white-space: nowrap;
  color: var(--green-dark);
  font-weight: 700;
  width: 6em;
}

/* レスポンシブ */
@media (max-width: 640px) {
  .hosp-img-text {
    flex-direction: column;
  }
  .hosp-img-text .hosp-img {
    width: 80%;
    margin: 0 auto;
  }
}
