/* ================================
   Reset / ベース設定
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: verdana,"ヒラギノ丸ゴ ProN W4","Hiragino Maru Gothic ProN","メイリオ","Meiryo","ＭＳ Ｐゴシック","MS PGothic",Sans-Serif;
  font-size: 14px;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.8;
}

:root {
  --accent: #9cc631;
  --accent-strong: #adc967;
  --text: #444;
  --muted: #666;
  --bg: #ffffff;
  --card: #ffffff;
  --border: #e5e5e5;
}

/* リンク色統一 */
a {
  color: var(--accent);
  text-decoration: none;
  transition: 0.3s;
}
a:hover {
  opacity: 0.8;
}

/* 内側余白統一 */
.inner {
  padding: 20px 20px;
  max-width: 1000px;   /* ✅ ページ中央に収める */
  margin: 0 auto;       /* ✅ 中央寄せ */
}

/* ================================
   ヘッダー（PC）
================================ */
#header {
  position: fixed; top: 0;
  top: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;/* 折り返しOKにする */
  gap: 10px;
  padding: 10px 20px;
}

/* ロゴ */
.header-logo img {
  height: auto;
  width: 200px;
  vertical-align: middle;
}
.header-logo h2 {
  font-size: 13px;
  color: #555;
  margin-top: 4px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ナビゲーション */
.header-nav {
  transition: all 0.3s ease;
}
.header-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}
.header-nav a {
  color: #555;
  font-weight: 600;
  font-size: 15px;
}
.header-nav a:hover {
  color: var(--accent);
}

/* ボタン（PC） */
.header-buttons {
  display: flex;
  gap: 10px;
}
.header-buttons .btn {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  transition: 0.3s;
}
.phone-btn {
  background-color: var(--accent);
  color: #fff;
}
.phone-btn:hover {
  background-color: #fff;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.web-btn {
  background-color: var(--accent);
  color: #fff;
}
.web-btn:hover {
  background-color: #fff;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.line-btn {
  background-color: var(--accent);
  color: #fff;
}
.line-btn:hover {
  background-color: #fff;
  border: 1px solid var(--accent);
  color: var(--accent);
}

/* ハンバーガー（PCでは非表示） */
/* ハンバーガーを右端に配置 */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #555;
  position: absolute;
  right: 20px; /* ← 右端から20pxの位置に */
  top: 50%;
  transform: translateY(-50%);
  z-index: 1100;
}
/* 下固定ボタン（スマホ専用） */
.mobile-buttons {
  display: none;
}

/* 右端固定ボタン（PC） */
.desktop-floating-buttons {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 900;
}
.float-btn {
  display: inline-block;
  padding: 0;
  background: transparent;
  border-radius: 12px;
  line-height: 0;
}
.float-btn:hover {
  transform: translateY(-2px);
}
.btn-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* 中〜小画面で右端ボタンを隠して下固定に切替 */
@media screen and (max-width: 1100px) {
  .desktop-floating-buttons {
    display: none;
  }
  .mobile-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    gap: 1px;
    width: 100%;
    display: flex;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    z-index: 100 !important;
  }
  .mobile-buttons a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 0;
    text-decoration: none;
    background: #fff;
  }
  .mobile-buttons .btn-icon {
    width: 70px;
    height: 70px;
  }
  .mobile-buttons a:hover {
    background-color: #f7f9f8;
  }
}

/* 固定ヘッダー対策（見出しが隠れないようにする） */
:target::before {
  content: "";
  display: block;
  height: 100px;
  margin-top: -100px;
}

@media screen and (max-width: 760px) {
  :target::before {
    height: 70px;
    margin-top: -70px;
  }
}

/* ================================
   スマホ対応
================================ */
@media screen and (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  /* ナビゲーション非表示 */
  .header-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    text-align: center;
  }

  .header-nav ul {
    flex-direction: column;
    gap: 10px;
    padding: 20px 0;
  }

  /* 開いた状態 */
  .header-nav.active {
    display: block;
  }

/* スマホ表示時のみハンバーガー表示 */
  .menu-toggle {
    display: block;
  }
  .header-inner {
    position: relative; /* ハンバーガーの絶対位置の基準にする */
  }

  /* ヘッダー右のボタンは非表示 */
  .header-buttons {
    display: none;
  }

  /* 下固定ボタン（スマホ専用） */
  .mobile-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    gap: 1px;
    width: 100%;
    display: flex;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    z-index: 100 !important;
  }

  .mobile-buttons a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 0;
    text-decoration: none;
    background: #fff;
  }
  .mobile-buttons .btn-icon {
    width: 70px;
    height: 70px;
  }

  .mobile-buttons a:hover {
    background-color: #f7f9f8;
  }

  /* PC用右端ボタンはスマホでは非表示 */
  .desktop-floating-buttons {
    display: none;
  }
}
/* ====================================
   固定ヘッダー対策：アンカー位置ずれ防止
==================================== */
/* 見出しやセクション全体に適用する */
[id]::before {
  content: "";
  display: block;
  height: 100px;   /* ← ヘッダーの高さに合わせて調整 */
  margin-top: -100px;
  visibility: hidden;
}

/**************************
/* メイン画像（トップページ）
**************************/
#mainBanner {
  position: relative;
  width: 100%;
  overflow: hidden; /* はみ出し防止 */
}

#mainBanner img {
  width: 100%;
  height: 60vh; /* 高さを抑えて次セクションを早く表示 */
  object-fit: cover; /* 画像全体をバランスよく表示 */
  object-position: bottom; /* 上の方を見せたい場合は top、真ん中なら center */
}
  /* ニュースをやや上に詰める */
.news {
  padding: 40px 0;
  }

@media only screen and (max-width: 768px) {
  /* 余白に合わせて中央に配置 */
  #mainBanner {
    display: flex;
    justify-content: center;
  }

  #mainBanner img {
    width: 100%;           /* 画面幅に合わせて縮小 */
    height: auto;          /* 比率維持で縮小 */
    max-height: 320px;     /* 画面を圧迫しない上限 */
    object-fit: contain;   /* 切り抜かず全体表示 */
    object-position: center;
  }

}

/* ヒーロー（テキストのみ） */
.page-hero {
  background: linear-gradient(135deg, #f0f3f1, #f7f9f8);
  padding: 70px 0 30px;
}
.page-hero .hero-text {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}
.page-hero h1 {
  font-size: 26px;
  margin: 6px 0 12px;
  color: var(--text);
}
.page-hero .hero-lead {
  font-size: 15px;
  color: var(--muted);
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: bold;
}

/* 初めて受診される方向け */
.first-visit {
  background: var(--bg);
  padding: 20px 0; /* 余白半分に圧縮 */
}
@media (max-width: 768px) {
  .first-visit {
    padding: 20px 0;
  }
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.info-card {
  background: transparent; /* 背景グレー上に直接文字を載せる */
  border: 0.5px solid #b3b3b3; /* 濃いめグレーの細い枠 */
  border-radius: 12px;
  padding: 20px;
  box-shadow: none;
}
.info-card h2 {
  font-size: 16px;
  display: block;
  padding: 10px 16px;
  margin: -20px -20px 12px;
  background: #666;
  color: #fff !important;
  border-radius: 12px 12px 0 0;
  border-bottom: none;
}
.info-label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}
.info-card h3 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 10px;
}
.info-card p {
  margin-bottom: 12px;
  color: var(--text);
}
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 12px;
  font-size: 13px;
  background: transparent;
}
.info-table th,
.info-table td {
  border: 1px solid var(--border);
  padding: 6px 8px;
  text-align: center;
  color: var(--text);
}
.info-table th {
  background: #f1f3f1;
  font-weight: 700;
  color: var(--text);
}
.info-table td[colspan="2"] {
  text-align: center;
}
.info-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.info-list {
  padding-left: 18px;
  color: var(--text);
}
.info-list li {
  margin-bottom: 8px;
}

/* アクセスページ */
.access-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.access-hero img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 768px) {
  .access-hero {
    margin-bottom: 16px;
  }
  .access-hero img {
    height: 220px;
    object-position: center;
  }
}
.access {
  background-color: var(--bg);
}
.access .inner {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.access-card {
  display: flex;
  gap: 30px;
  background: transparent;
  border-radius: 12px;
  border: 0.5px solid #b3b3b3;
  padding: 20px;
  align-items: stretch;
}
.access-map {
  flex: 1;
}
.access-map iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 8px;
}
.access-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.access-info h3 {
  font-size: 16px;
  margin: 1px 0;
  color: #333;
  border-bottom: 2px solid var(--accent);
}
.access-info h5 {
  color: #6bb44e;
  margin-top: 0;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  font-size: 13px;
  font-weight: bold;
}
.access-info p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}
@media screen and (max-width: 900px) {
  .access-card {
    flex-direction: column-reverse;
    padding: 15px;
  }
  .access-map iframe {
    height: 300px;
  }
}

/* 診療機器ページ */
.devices {
  background: var(--bg);
}
.devices .inner {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.device-list {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.device-card {
  background: transparent;
  border-radius: 12px;
  border: 0.5px solid #b3b3b3;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.device-card img {
  width: 210px;
  height: 150px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 10px;
}
.device-card h3 {
  font-size: 1.1rem;
  margin: 8px 0;
  color: #333;
}
.device-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}
@media screen and (max-width: 768px) {
  .device-list {
    grid-template-columns: 1fr;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
}

/* レーザーページ */
.laser {
  background: var(--bg);
}
.laser .inner {
  padding: 60px 20px;
  max-width: 800px;
  margin: 0 auto;
}
.laser-list {
  display: grid;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}
.laser-card {
  background: transparent;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  border: 0.5px solid #b3b3b3;
}
.laser-card img {
  width: 500px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 10px;
}
.laser-card h3 {
  font-size: 1.1rem;
  margin: 8px 0;
  color: #333;
}
.laser-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}
@media screen and (max-width: 768px) {
  .laser-list {
    grid-template-columns: 1fr;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
  .laser-card img {
    width: 300px;
  }
}

/* 鼓膜閉鎖術ページ */
.komaku {
  background: var(--bg);
}
.komaku .inner {
  padding: 60px 20px;
  max-width: 800px;
  margin: 0 auto;
}
.komaku-list {
  display: grid;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}
.komaku-card {
  background: transparent;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  border: 0.5px solid #b3b3b3;
}
.komaku-card img {
  width: 500px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 10px;
}
.komaku-card h3 {
  font-size: 18px;
  margin: 8px 0;
  color: #333;
}
.komaku-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}
table.komaku {
  width: 90%;
  font-size: 14px;
  margin: 0 auto;
  text-align: center;
  justify-items: center;
  border-radius: 0;
  overflow: hidden;
}
table.komaku th,
table.komaku td {
  border: 0.1px solid #dfdfdf;
  padding: 10px;
  vertical-align: middle;
  background: #fff;
}
table.komaku th {
  background-color: #f7f7f7;
  font-weight: bold;
  white-space: nowrap;
}
table.komaku td:first-child {
  background-color: #ffffff;
  font-weight: bold;
  white-space: normal;
}
@media screen and (max-width: 768px) {
  .komaku-list {
    grid-template-columns: 1fr;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
  .komaku-card img {
    width: 300px;
    height: auto;
    object-fit: contain;
  }
}

/* 外来手術ページ */
.surgery {
  background: var(--bg);
}
.surgery .inner {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.surgery p {
  color: #555;
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: left;
  font-size: 0.9rem;
  letter-spacing: 1px;
}
.surgery-card {
  background: #ffffff;
  border-radius: 8px;
  border: none;
  padding: 20px;
  margin: 0 0 30px;
  gap: 50px;
}
.surgery-card.nose-card,
.surgery-card.ear-card {
  background: #ffffff;
}
.surgery-card h3 {
  color: #333;
  margin-top: 0;
  font-size: 1.2rem;
}
.surgery-card img {
  width: 70px;
  height: auto;
  border-radius: 5px;
  margin-bottom: 0;
  margin-left: 20px;
}
.surgery-card h4 {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
  border-bottom: 2px solid var(--accent);
  margin-left: 20px;
}
.surgery-card h6 {
  font-size: 15px;
  font-weight: bold;
  text-align: left;
  color: #777;
  letter-spacing: 0.5px;
  margin-bottom: 40px;
  margin-left: 20px;
}
.surgery-list {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.surgery-card2 {
  background: transparent;
  border-radius: 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  justify-content: space-between;
  width: 100%;
  overflow: hidden;
  border: 0.5px solid #b3b3b3;
}
.surgery-title-image {
  width: 100%;
  max-width: none;
  height: 60px;
  display: block;
  margin: 0;
  object-fit: cover;
}
.surgery-card2 h3 {
  font-size: 16px;
  border-bottom: 2px solid var(--accent);
  margin: 8px 0;
  color: #333;
}
.surgery-card2 p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  flex-grow: 1;
  padding: 12px 15px 6px;
}
.surgery-card2 .readmore-g {
  padding: 0 15px 15px;
}
@media (max-width: 1100px) {
  .surgery-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .surgery-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .surgery-card2 h3 {
    font-size: 15px;
  }
  .surgery-card2 p {
    font-size: 13px;
  }
}

/* 医師紹介ページ */
.profile-section {
  background: var(--bg);
}
.profile-section .inner {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.doctor-card,
.schedule-card {
  gap: 40px;
  background: transparent;
  border-radius: 12px;
  padding: 50px 30px;
  margin-bottom: 40px;
  align-items: flex-start;
  justify-content: flex-start;
  border: 0.5px solid #b3b3b3;
}
.schedule-card {
  padding: 40px 20px;
  margin-bottom: 10px;
}
.doctor-body {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.doctor-left {
  flex: 0 0 250px;
  max-width: 250px;
  text-align: center;
  margin-left: 20px;
}
.doctor-left img {
  width: 130px;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  max-width: 100%;
}
.doctor-header {
  display: block;
  max-width: 1000px;
  text-align: left;
  margin-left: 20px;
  padding-bottom: 2rem;
}
.doctor-title {
  font-size: 18px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 5px;
}
.doctor-nameJ {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
  border-bottom: 2px solid var(--accent);
}
.doctor-name {
  font-size: 15px;
  font-weight: bold;
  color: #777;
  letter-spacing: 0.5px;
}
.doctor-right {
  flex: 1;
  min-width: 0;
  margin-left: 10px;
  font-size: 15px;
}
.doctor-history {
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  margin-bottom: 15px;
}
.doctor-history ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.doctor-history li {
  display: flex;
  gap: 20px;
  margin-bottom: 8px;
}
.doctor-history .year {
  flex: 0 0 60px;
  color: var(--accent);
  font-weight: bold;
  margin-bottom: 2px;
  text-align: right;
}
.doctor-history .detail {
  flex: 1;
  color: #555;
}
@media screen and (max-width: 768px) {
  .doctor-card,
  .schedule-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px 20px;
  }
  .doctor-body {
    display: block;
    padding-top: 1rem;
  }
  .doctor-left {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-left: 0;
  }
  .doctor-left img {
    width: 130px;
    height: 200px;
    object-fit: cover;
  }
  .doctor-right {
    width: 100%;
    text-align: left;
    margin: 0 auto;
    max-width: 320px;
    font-size: 14px;
  }
  .doctor-history {
    border-left: none;
    border-top: 2px solid var(--accent);
    padding-left: 0;
    padding-top: 15px;
    text-align: left;
  }
  .doctor-history li {
    display: flex;
    text-align: left;
    gap: 6px;
  }
  .doctor-history .year {
    color: var(--accent);
    text-align: left;
    min-width: 45px;
  }
}

@media (max-width: 1100px) {
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 690px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
  .info-card {
    padding: 16px;
  }
  .info-table {
    font-size: 12px;
  }
}
.info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
  width: 100%;
}
.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 2px 0px;
  border-radius: 12px;
  background: #ffffff;
  color: #555;
  font-weight: 600;
  border: 0.5px solid #d6d7d8;
  flex: 1 1 200px; /* 同じ幅を優先しつつ必要に応じ折り返し */
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.pill-link:hover {
  background: #e6e7e8;
  border-color: #c8c9ca;
  color: #555;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* ================================
   セクション共通
================================ */
section {
  padding: 80px 0;
}

/* お知らせ背景にメイン画像を薄く敷く */
.news {
  position: relative;
  overflow: hidden;
  color: #f7f7f7;
}
.news::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.7)),
    url("../images/kanban.jpg") center/cover no-repeat;
  opacity: 1;
  z-index: 0;
}
.news .inner {
  position: relative;
  z-index: 1;
}
.news .section {
  background: transparent; /* 写真の上に直接文字を載せる */
  border-radius: 12px;
  padding: 16px 14px 20px;
  box-shadow: none;
  border: none;
  max-width: 760px;
  margin: 0 auto;
}

.news h2,
.news h6,
.news p {
  color: #fff;
}

/* ====================================
   見出しスタイル共通設定
   （英語h6＋日本語h2）
==================================== */

/* 🔸英語サブ見出し（小）*/
.section h6 {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);            /* サイトのテーマカラー */
  text-transform: uppercase; /* NEWS → NEWSのように大文字 */
  letter-spacing: 2px;       /* 少しゆったり */
  margin-bottom: 6px;
  text-align: center;
}
/* 🔹日本語メイン見出し（大）*/
.section h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.4;
  position: relative;
}
/* 🔸見出し下にラインを入れる（オプション）*/
.section h2::after {
  content: none;
}
.section h5 {
  color: var(--accent);
  font-weight: bold;
  font-size: 15px;
  letter-spacing: 1px;
}
.section h3 {
  color: #555;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 1px;
}
.section h4 {
  color: #555;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 1px;
  border-bottom:2px solid var(--accent);
}
/* 説明文 */
.section p {
  color: #555;
  font-size: 14px;
  text-align: left;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ホームお知らせ見出しの色を上書き */
.news .section h6,
.news .section h2,
.news .section p {
  color: #fff;
}

/* 🔹スマホ用（フォントサイズ調整）*/
@media screen and (max-width: 768px) {
  .section h6 {
    font-size: 12px;
    letter-spacing: 1px;
  }
  .section h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }
/* 説明文 */
.section p {
  font-size: 14px;
}
}

/* ================================
   readmoreボタン　 （緑背景版）
================================ */
.readmore {
  text-align: center;
  margin-top: 20px;
}
.readmore a {
  display: inline-block;
  background-color: #fff;  
  border: 0.5px solid #444;
  color: #444;
  padding: 5px 20px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: bold;
  transition: 0.2s;
}
.readmore a:hover {
  background-color: #555;
  color: #fff;
}
.news .readmore a {
  background-color: transparent;
  border-color: #fff;
  color: #fff;
}
.news .readmore a:hover {
  background-color: #fff;
  color: #333;
}
/* ================================
   readmoreボタン (グレー＋白背景版) 
================================ */
.readmore-g {
  text-align: center;
  margin-top: 20px;
  width: 100%;
}
.readmore-g a {
  padding-bottom: 0px;
  display: inline-block;
  background-color: #fff;  
  border: 0.5px solid #444;
  color: #444;
  padding: 2px 20px;
  border-radius: 2px;
  font-size: 14px;
  transition: 0.3s;
}
.readmore-g a:hover {
  background-color: #555;
  color: #fff;
}

/* ================================
   📘 NEWS セクション 全体
================================ */

/* 背景統一 */
.news-jump,
.news-article {
  background-color: #ffffff;
}

/* news-jump（一覧ページのヘッダー下余白） */
.news-jump {
  padding-top: 150px;
}

/* inner 共通 */
.news .inner,
.news-jump .inner,
.news-article .inner {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  /*text-align: center;*/
}

/* ================================
   📰 NEWS 一覧ボックス
================================ */
.news {
  padding: 120px 0 40px; /* 固定ヘッダー分の余白を確保 */
}
@media (max-width: 768px) {
  .news {
    padding: 100px 0 30px;
  }
}

#news-list {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  background: #fff;
  border: 0.5px solid #777;
  border-radius: 10px;
  padding: 15px 15px 15px;
  overflow: hidden;
}

/* ホームトップのお知らせを暗い背景＋白文字にする */
.news #news-list {
  background: transparent;
  border: none;
  color: #fff;
}
.news #news-list .news-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.news #news-list .news-item:last-child {
  border-bottom: none;
}

/* ====== NEWS ITEM（1件ずつ）====== */
.news-item {
  display: block;              /* ← PCでもスマホでも縦積みの基本形 */
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 0.5px solid #777;
}

.news-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

/* ====== 上段：日付＋タイトル 横並び（PC） ====== */
.news-head {
  display: flex;
  align-items: left;
  gap: 8px;
  flex-wrap: nowrap;
  margin-bottom: 2px;
  flex-direction: row;   /* 一行で表示 */
  align-items: center;
}

/* 日付 */
.news-item .date {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  display: inline-block;
  margin-left: 4px;
  margin-right: 10px;
  white-space: nowrap;
}

/* タイトル */
.news-item .title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  flex: 1;
  text-align: left;
  line-height: 1.5;
}

.news-item .title:hover {
  color: var(--accent);
}

/* ====== 本文（抜粋） ====== */
.news-item .excerpt {
  margin-top: 4px;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  text-align: left;
}

/* ホームのお知らせ用カラー調整 */
.news .news-item .date {
  color: #dfeac2;
}
.news .news-item .title {
  color: #fff;
}
.news .news-item .title:hover {
  color: #e6f0cb;
}
.news .news-item .excerpt {
  color: #f1f1f1;
}

/* 過去年セレクト */
.past-news-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
}
.past-news-filter label {
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}
.past-news-filter select {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  color: var(--text);
}
.past-news-filter select:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}
.past-news-filter select.has-value {
  color: var(--accent);
  border-color: var(--accent);
}
.past-news-filter select option:checked {
  background: var(--accent);
  color: #fff;
}
.past-news-hint {
  color: #777;
  font-size: 13px;
  margin: 6px 0 12px;
}


/* ================================
   📰 NEWS 詳細ページ
================================ */
.news-article {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  text-align: left !important;
  border: none;
  padding: 40px 25px 60px;
  box-sizing: border-box;
}

.news-article-header {
  display: flex;
  flex-direction: column;   /* ← 縦並びにして左寄せ */
  align-items: flex-start;  /* ← 左揃え */
  gap: 12px;
  margin-bottom: 12px;
}
.news-article .date {
  color: var(--accent);
  font-weight: bold;
  white-space: nowrap;
  font-size: 14px;
}
.news-body {
  font-size: 16px;
  line-height: 1.8;
}
.news-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 16px 0;
}
.news-body-image {
  margin-top: 12px;
}
.year-block {
  margin-bottom: 28px;
}
.year-title {
  font-size: 16px;
  font-weight: 700;
  margin: 8px 0 12px;
  color: #444;
}
.news-body a {
  color: var(--accent);
  text-decoration: underline;
}
.news-body strong {
  font-weight: 700;
  font-size: 17px;
  color: #ba1010;
}

/* 過去年アコーディオン */
.year-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 15px;
  margin: 5px 0;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background-color: #ffffff; /* 通常は白背景 */
  color: var(--accent);            /* 文字は緑 */
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease; /* スムーズに色が変わる */
}
/* ホバー時に背景緑・文字白 */
.year-btn:hover {
  background: var(--accent);
  color: #fff;
}
/* 下に表示されるリスト */
.year-news {
  margin-left: 0;
  margin-bottom: 15px;
}
@media (max-width: 768px) {

.news-item .date {
  font-size: 12px;
}
/* タイトル */
.news-item .title {
  font-size: 13px;
}
.news-item .excerpt {
  font-size: 13px;
}

  /* スマホのニュース詳細は他ページと揃えた余白と文字サイズにする */
  .news-article {
    padding: 24px 16px 40px;
  }
  .news-article-header h3 {
    font-size: 18px;
    line-height: 1.5;
  }
  .news-article .date {
    font-size: 12px;
  }
  .news-body {
    font-size: 14px;
    line-height: 1.7;
  }
}
/*************
/* フッター
*************/
#footer {
  width: 100%;
  background: #ffffff;
  padding: 40px 0;
}

.footer-left h2{
  font-size: 22px;
  margin-bottom: 5px;
  font-weight: 900;
  letter-spacing: 1px;
}
.footer-left h3{
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 5px;
}
.footer-right h5{
  color: #555;
  margin-bottom: 8px;
  text-align: left;
  font-weight: 100;  /*100以上*/
  font-size: 18px;
  letter-spacing: 1px;
}

.footer-right h6{
  color: var(--accent);
  margin-bottom: 10px;
  text-align: left;
  font-weight: bold;  /*100以上*/
  font-size: 13px;
  letter-spacing: 1px;
}

.footer-inner {
  display: flex;
  justify-content: space-between; /* ← 左右に配置！ */
  align-items: flex-start;        /* 上端揃え */
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 左カラム（医院情報） */
#footer .footer-left {
  text-align: left;
}

/* 右カラム（診察時間表） */
#footer .footer-right {
  text-align: right;
}

/* テーブルを右寄せに */
.footer-right table {
  margin-left: auto;  /* ← これが右寄せの決め手！ */
  border-collapse: collapse;
}

.footer-right th,
.footer-right td {
  padding: 4px 8px;
  text-align: center;
}

/*フッターのスマホ対応*/
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #footer .footer-left,
  #footer .footer-right {
    text-align: center;
  }

  .footer-right table {
    margin: 0 auto;
  }
}

/* 診察時間表 */
table.week1 {
  width: 100%;
  font-size: 10pt;
  margin: 0 auto;
  text-align: center;
  justify-items: center; /* ← ★ 要素を中央に揃える */
  border-radius: 0px;
  overflow: hidden;
}

table.week1 th,
table.week1 td {
  border: 1px solid #dfdfdf;
  border-left: none;
  border-right: none;
  padding: 10px;
  vertical-align: middle;
  background: #fff;
}

table.week1 th {
  background-color: #f7f7f7;
  font-weight: bold;
  white-space: nowrap;
}

table.week1 td:first-child {
  background-color: #ffffff;
  font-weight: bold;
  white-space: normal;
}

/* copyright　*/
#copyright{
clear:both;
padding:20px 0 10px 0;
text-align:center;
font-style:normal;
font-size:10px;
color:#555;
}

/* 固定ヘッダー対策：アンカー位置調整 */
:target {
  scroll-margin-top: 500px; /* ← ヘッダーの高さに合わせて調整 */
}
/* -----------------------------
   SERVICE セクションのスタイル
----------------------------- */
/* 🔹 TOPICS セクション全体 */
.service {
  padding: 100px 0;
  background-color: #ffffff;
}
.service .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px;
}


.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); /* 自動で2〜5列 */
  gap: 10px;
  margin-top: 40px;
  justify-items: center;
}

/* 🔹 カード共通スタイル */
.service-list .box {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* テキストを上寄せ */
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding: 20px 10px 30px;
  text-decoration: none;
  color: #333;
  transition: all 0.6s ease;
}

/* 🔹 アニメーションON時（ふわっと登場） */
.service-list .box.show {
  opacity: 1;
  transform: translateY(0);
}

/* 🔹 ホバー時 */
.service-list .box:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* 🔹 画像 */
.service-list .box img {     
  display: block;        /* インライン要素をブロックに */
  margin: 0 auto;        /* 左右中央寄せ */
  width: 50%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 10px;
}
/* 🔹 タイトル */
.service-list .box h3 {
  font-size: 16px;
  color: #555;
  margin: 2px 0 2px;
}
/* 🔸見出し下にラインを入れる（オプション）*/
.service-list .box h3::after {
  content: "";
  display: block;
  width: 100px;
  height: 2px;
  background-color: var(--accent);
  margin: 5px auto 0;
  margin-bottom: 10px;
  border-radius: 2px;
}
/* 🔹 テキスト */
.service-list .box p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

/* ✅ スマホ対応（1列縦並び） */
@media screen and (max-width: 768px) {
.service-list {
  grid-template-columns: (1fr 1fr);
  gap: 3px;
}
.service-list .box {
  width: 90%;
}
  /* 🔹 タイトル */
.service-list .box h3 {
  font-size: 15px;
}
/* 🔹 テキスト */
.service-list .box p {
  font-size: 13px;
}
}
/* ================================
   ガイドセクション 全体
================================ */
.guide {
  background-color: var(--bg);
}
/* 親のレイアウトを安定させる */
.guide .inner {
  padding: 60px 20px;
  max-width: 1000px;   /* ✅ ページ中央に収める */
  margin: 0 auto;       /* ✅ 中央寄せ */
}

.guide-card {
  gap: 24px;
  background: #fff;
  border-radius: 20px;
  border: 0.5px solid #ccc;
  padding: 28px 24px;
  margin-bottom: 16px;
  align-items: flex-start;
  justify-content: flex-start;
}
.guide-card h4 {
  font-size: 17px;
  margin: 14px 0 10px;
  color: #333;
}
.guide-card h5 {
  font-size: 13px;
  font-weight: bold;
  color: #afafaf;
  letter-spacing: 0.5px;
  padding-bottom: 10px;
}
.guide-card p{
  font-size: 14px;
}
.guide-nameJ {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
  border-bottom:2px solid var(--accent);
  padding-bottom: 6px;
  margin-bottom: 10px;
}
.guide-name {
  font-size: 15px;
  font-weight: bold;
  color: var(--accent);
  letter-spacing: 0.5px;
  padding-bottom: 30px;
}
.guide-subname {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  letter-spacing: 0.5px;
  padding-bottom: 5px;
  border-bottom:1px solid var(--accent);
}
/* 画像 */
.guide-card img {
  width: 100%;      /* 横固定 */
  height: auto;     /* 高さ固定 */
  object-fit: contain; /* 枠いっぱいに収める、縦横比維持 */
  border-radius: 8px;
  margin-bottom: 10px;
}

.reservation {
  background: #f8f8f8;
  padding: 60px 20px;
  text-align: center;
}

.reservation h2 {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 30px;
}

.reservation-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.reservation-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  width: 320px;
  padding: 20px;
  text-align: left;
  transition: transform 0.2s ease;
}

.reservation-card h3 {
  color: #333;
  font-size: 16px;
  margin-bottom: 5px;
}
.reservation-card h2 {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.reservation-card p {
  color: var(--accent);
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
}

.reservation-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.reservation-card li {
  font-size: 14px;
  margin-bottom: 6px;
}
.schedule-image {
  max-width: 90%;
  align-items: center;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}
a {
  color: var(--accent);
  text-decoration-color: #cde3c5; /* 緑が柔らかく見える */
  transition: color 0.3s, text-decoration-color 0.3s;
}
a:hover {
  color: #4a8b36;
  text-decoration-color: var(--accent);
}
/* カード一覧（中央に1枚表示） */
.guide2-list {
  display: flex;                /* ✅ 横並び → でも1枚なら中央寄せ */
  justify-content: center;      /* ✅ 中央に寄せる */
  align-items: center;
  flex-wrap: wrap;              /* ✅ 複数枚あっても折り返せる */
  gap: 30px;                    /* ✅ カード間の余白 */
  margin: 0 auto;
  max-width: 1000px;            /* ✅ レイアウト幅制限 */
  padding: 20px;
}

/* 各カード */
.guide2-card {
  gap: 24px;
  background: #fff;
  border-radius: 20px;
  border: 0.5px solid #ccc;
  padding: 28px 24px;
  margin-bottom: 16px;
  align-items: flex-start;
  justify-content: flex-start;
}
.guide2-nameJ {
  font-size: 20px;
  font-weight: bold;
  color: var(--text);
  line-height: 1.4;
  border-bottom:2px solid var(--accent);
  padding-bottom: 6px;
  margin-bottom: 10px;
}
.guide2-name {
  font-size: 15px;
  font-weight: bold;
  color: var(--accent);
  letter-spacing: 0.5px;
  padding-bottom: 30px;
}
.guide2-card h5 {
  font-size: 13px;
  font-weight: bold;
  color: #afafaf;
  letter-spacing: 0.5px;
  padding-bottom: 10px;
}
/* 下：本文部分（略歴＋画像） */
.guide2-body {
  display: flex; /* ← 横並びにする！ */
  justify-content: space-between; /* ← 左右に分ける */
 /* align-items: flex-end;  ← 下揃え */
  gap: 16px; /* ← 適度な空き */
}

/* 左：画像＋名前 */
.guide2-left {
  flex: 0 0 250px;      /* ✅ 固定幅（狭めて調整） */
  max-width: 250px;     /* ✅ 超えないように制限 */
  text-align: center;
  margin-left: 0;
}
.guide2-left img {
  width: 130px;          /* ✅ サイズをしっかり固定 */
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  max-width: 100%;       /* ✅ コンテナをはみ出さない */
}
.guide2-header {
  display: block;
  max-width: 1000px;     /* ✅ 超えないように制限 */
  text-align: left;
  margin-left: 0;
  padding: 0 0 1.5rem 8px;
}

/* 右：経歴・趣味 */
.guide2-right {
  flex: 1; /* ✅ 右側が残り幅を使うように */
  min-width: 0; /* ✅ flexboxのはみ出しバグ防止 */
  margin-left: 5px; /* ✅ テキスト全体をやや右にずらす */
  font-size: 14px;
}
/* 画像 */
.guide2-card img {
  width: 210px;      /* 横固定 */
  height: 150px;     /* 高さ固定 */
  object-fit: contain; /* 枠いっぱいに収める、縦横比維持 */
  border-radius: 8px;
  margin-bottom: 10px;
}

/* タイトル */
.guide2-card h3 {
  font-size: 1.1em;
  margin: 8px 0;
  color: #333;
}

/* 説明文 */
.guide2-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}
/* 汎用テーブル */
table.guide {
  width: 90%;
  font-size: 14px;
  margin: 0 auto;
  text-align: center;
  justify-items: center; /* ← ★ 要素を中央に揃える */
  border-radius: 0px;
  overflow: hidden;
}
table.guide th,
table.guide td {
  border: 0.1px solid #dfdfdf;
  padding: 10px;
  vertical-align: middle;
  background: #fff;
}

table.guide th {
  background-color: #f7f7f7;
  font-weight: bold;
  white-space: nowrap;
}
table.guide td:first-child {
  background-color: #ffffff;
  font-weight: bold;
  white-space: normal;
}
.access-map iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 8px;
}
/* スマホ対応（縦積み） */
@media screen and (max-width: 768px) {

  .guide2-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 10px;
    flex: 1 1 300px;   /* 基本300px、狭ければ自動で縮む */
    max-width: 100%;   /* はみ出さない保証 */
    box-sizing: border-box; /* 枠線やpaddingを含めて幅計算 */
  }
  .guide2-body {
    display: block;          /* ← 縦並び */
    padding-top: 1rem;
  }
  /* ✅ イラスト中央寄せ＋高さ修正 */
  .guide2-left {
    display: flex;
    justify-content: center;  /*横中央*/
    width: 100%;
  }
  .guide2-right {
    width: 100%;
    text-align: left;
    margin: 0 auto;
    max-width: 300px;        /* ← 少し広げて余裕を出す */
  }
  .reservation-list {
    flex-direction: column;
    align-items: center;
  }
  .reservation-card {
    width: 90%;
  }
  table.guide {
  font-size: 13px;
    width: 95%;
  }
  .guide {
  font-size: 13px;
}
}
