/* ============================================================
   Components — Header / Footer / Button / Card / Nav
   ============================================================ */

/* ── Photo Parallax Banner ── */
.photo-banner {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.photo-banner__bg {
  position: absolute;
  inset: -30% 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  z-index: 0;
}
.photo-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(26,46,68,0.4), rgba(26,46,68,0.2));
  z-index: 1;
}
.photo-banner__text {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 1.5rem;
}
.photo-banner__en {
  font-size: 14px;
  letter-spacing: 0.12em;
  opacity: 0.8;
  margin-bottom: 10px;
}
.photo-banner__ja {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 600;
  line-height: 1.6;
}
.photo-banner__desc {
  font-size: 14px;
  margin-top: 12px;
  opacity: 0.85;
  line-height: 1.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 820px) {
  .photo-banner { min-height: 320px; }
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 249, 251, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border-light);
  transition: box-shadow var(--duration) var(--ease);
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  max-width: var(--container-max);
  margin-inline: auto;
}

/* === 2段ヘッダー === */
.site-header__top .site-header__inner { height: 60px; }
.site-header__hours { display: none; }      /* モバイルでは非表示 */
.site-header__nav-row { display: none; }     /* モバイルではナビ段を出さない */

.site-header__logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-header__logo-name {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--c-primary);
  line-height: 1.25;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-header__logo-sub {
  font-size: 10px;
  color: var(--c-text-muted);
  letter-spacing: 0.05em;
}

/* ロゴ名の改行：PC・スマホとも「えさか駅前にしごり／おなかとおしりのクリニック」で折り返す */
.logo-br { display: inline; }

/* 2段ヘッダー（PC：上段に診療時間、下段にナビ） */
@media (min-width: 1024px) {
  :root { --header-h: 107px; }
  .site-header__hours {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1px; flex: 1 1 auto; text-align: center; padding-inline: var(--sp-6);
    font-size: 11px; line-height: 1.45; color: var(--c-text-muted); white-space: nowrap;
  }
  .site-header__hours-title {
    font-weight: 700; color: var(--c-primary); letter-spacing: .1em; font-size: 10px; margin-bottom: 1px;
  }
  .site-header__nav-row { display: block; border-top: 1px solid var(--c-border-light); }
  .site-header__nav-row .site-nav {
    height: 46px; max-width: var(--container-max); margin-inline: auto;
    padding-inline: var(--gutter); justify-content: center; gap: var(--sp-6);
  }
}

/* Desktop Nav */
.site-nav {
  display: none;
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
  }

  .site-nav__item {
    font-size: var(--text-sm);
    color: var(--c-text-mid);
    font-weight: var(--weight-medium);
    letter-spacing: 0.03em;
    white-space: nowrap;
    transition: color var(--duration-fast) var(--ease);
  }

  .site-nav__item:hover {
    color: var(--c-primary);
  }

  .site-nav__divider {
    display: block;
    width: 1px;
    height: 18px;
    background: var(--c-border-light);
    flex-shrink: 0;
  }

  .site-nav__item--symptom {
    color: var(--c-primary);
    border: 1px solid var(--c-primary);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 12px;
  }

  .site-nav__item--symptom:hover {
    background: var(--c-primary);
    color: var(--c-white);
  }
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.header-cta__lang { letter-spacing: .03em; }

@media (max-width: 1023px) {
  .header-cta { gap: var(--sp-2); }
  .header-cta .btn { padding: var(--sp-2) var(--sp-3); font-size: var(--text-xs); }
  .header-cta__tel-label { display: none; }
  /* WEB問診はモバイルではヘッダーバーに出さず、モバイルメニュー内に集約（混雑回避） */
  /* .btn が後方で display を再定義するため、親付き(0,2,0)で確実に上書き */
  .header-cta .header-cta__monshin { display: none; }
  /* スマホでは「にしごり／おなかとおしりのクリニック」の2行に固定折り返し（2行目は折り返さない） */
  .site-header__logo-name { white-space: nowrap; font-size: 12px; line-height: 1.2; }
  .site-header__logo-sub { font-size: 9px; }
  .logo-br { display: inline; }
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: var(--sp-2);
}

.hamburger__line {
  display: block;
  width: 24px;        /* 明示（iOSでstretch依存だと0幅＝線が見えなくなる） */
  height: 2px;        /* 1.5px→2px（iOSの極細描画対策） */
  background: var(--c-primary);
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
  transform-origin: center;
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .hamburger { display: none; }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: var(--c-surface);
  z-index: 99;
  padding: var(--sp-8) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  /* iOS対策：translateX(100%)で画面外右へ逃がすと position:fixed が
     body の overflow-x:hidden で切れず横スクロール（右ズレ）を作る。
     横移動をやめ、画面内に置いたままフェードで開閉する */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--duration) var(--ease), visibility var(--duration) var(--ease), transform var(--duration) var(--ease);
  overflow-y: auto;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu__item {
  display: block;
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--c-text);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--c-border-light);
}

.mobile-menu__item--symptom {
  color: var(--c-primary);
  font-weight: var(--weight-bold);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: 0.05em;
  transition: background var(--duration-fast) var(--ease),
              color var(--duration-fast) var(--ease),
              box-shadow var(--duration-fast) var(--ease);
  min-height: 44px; /* タッチターゲット */
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--c-primary);
  color: var(--c-white);
}
.btn--primary:hover {
  background: var(--c-primary-mid);
  box-shadow: var(--shadow);
}

.btn--outline {
  background: transparent;
  color: var(--c-primary);
  border: 1.5px solid var(--c-primary);
}
.btn--outline:hover {
  background: var(--c-primary);
  color: var(--c-white);
}

.btn--accent {
  background: var(--c-accent);
  color: var(--c-white);
}
.btn--accent:hover {
  background: #2c5aa0;
  box-shadow: var(--shadow);
}

.btn--lg {
  padding: var(--sp-4) var(--sp-10);
  font-size: var(--text-base);
  border-radius: var(--radius-md);
}

/* ── Cards ── */
.card {
  background: var(--c-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease);
}

.card:hover .card__image img {
  transform: scale(1.03);
}

.card__body {
  padding: var(--sp-6);
}

.card__eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-2);
}

.card__title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--c-primary);
  line-height: var(--leading-tight);
  margin-bottom: var(--sp-3);
}

.card__text {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  line-height: var(--leading-loose);
}

/* ── Symptom Card（症状選択）── */
.symptom-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-4);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: border-color var(--duration-fast) var(--ease),
              box-shadow var(--duration-fast) var(--ease);
  cursor: pointer;
}

.symptom-card:hover {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px var(--c-accent-light);
}

.symptom-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-accent-light);
  border-radius: 50%;
  font-size: 20px;
  color: var(--c-accent);
}
.symptom-card__icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: invert(30%) sepia(60%) saturate(400%) hue-rotate(180deg) brightness(90%);
}

.symptom-card__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--c-primary);
}

/* ── Feature List（専門性訴求）── */
.feature-item {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
}

.feature-item__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-primary);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
}

.feature-item__body {}

.feature-item__title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--c-primary);
  margin-bottom: var(--sp-2);
}

.feature-item__text {
  font-size: var(--text-sm);
  color: var(--c-text-mid);
  line-height: var(--leading-loose);
}

/* ── Doctor Section ── */
.doctor-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  align-items: center;
}

@media (min-width: 768px) {
  .doctor-block {
    grid-template-columns: 280px 1fr;
  }
}

.doctor-block__photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 3/4;
}

.doctor-block__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.doctor-block__name {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--c-primary);
  margin-bottom: var(--sp-1);
}

.doctor-block__title {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  margin-bottom: var(--sp-6);
}

.doctor-block__creds {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}

.doctor-block__cred {
  display: block;
  margin-bottom: var(--sp-4);
  font-size: var(--text-sm);
}

.doctor-block__cred-label {
  display: block;
  font-weight: var(--weight-bold);
  color: var(--c-accent);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-1);
}

/* 資格・専門領域などは1項目=1行（ラベルの下にインデントして縦並び） */
.cred-item {
  display: block;
  padding-left: 1.25em;
  line-height: 1.7;
}

/* CTAセクション内のボタン：暗い背景で見えるよう白ボタン＋濃紺文字（反転対策） */
.section--cta .btn--cta,
.btn--cta {
  background: #ffffff;
  color: var(--c-primary);
  border: 1.5px solid #ffffff;
}
.section--cta .btn--cta:hover,
.btn--cta:hover {
  background: var(--c-accent-light, #e8f0f8);
  color: var(--c-primary);
}

/* ブログ記事本文（旧静的記事をV2デザインで表示。本文HTMLはそのまま） */
.blog-article {
  font-size: var(--text-base);
  color: var(--c-text-mid);
  line-height: 1.95;
}
.blog-article p { margin-bottom: 1.1em; }
.blog-article a { color: var(--c-primary); text-decoration: underline; }
.blog-article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: var(--sp-3) 0;
}
.blog-article h2,
.blog-article h3,
.blog-article h4 {
  font-family: var(--font-serif);
  color: var(--c-primary);
  line-height: var(--leading-tight);
  margin: 1.6em 0 .6em;
}
.blog-article ul,
.blog-article ol { margin: 0 0 1.1em 1.5em; }
.blog-article li { margin-bottom: .4em; }
.blog-article iframe { max-width: 100%; }

/* ブログ一覧・カテゴリ一覧（カード） */
.blog-list { display: grid; gap: var(--sp-5); }
@media (min-width: 768px) { .blog-list { grid-template-columns: repeat(2, 1fr); } }
.blog-card {
  display: block;
  background: var(--c-surface);
  border: 1px solid var(--c-border-light);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card__meta { font-size: var(--text-xs); color: var(--c-text-muted); margin-bottom: var(--sp-2); }
.blog-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--c-primary);
  line-height: var(--leading-tight);
  margin-bottom: var(--sp-3);
}
.blog-card__excerpt { font-size: var(--text-sm); color: var(--c-text-mid); line-height: var(--leading-loose); margin-bottom: var(--sp-3); }
.blog-card__more { font-size: var(--text-sm); color: var(--c-accent); font-weight: 700; }
.blog-pager { display: flex; gap: .5rem; justify-content: center; margin-top: var(--sp-10); flex-wrap: wrap; }
.blog-pager .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 .6rem;
  border: 1px solid var(--c-border-light); border-radius: var(--radius-sm);
  color: var(--c-primary); text-decoration: none; font-size: var(--text-sm);
}
.blog-pager .page-numbers.current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.blog-pager a.page-numbers:hover { background: var(--c-accent-light, #e8f0f8); }

.doctor-block__message {
  font-size: var(--text-sm);
  color: var(--c-text-mid);
  line-height: var(--leading-loose);
  padding-left: var(--sp-4);
  border-left: 3px solid var(--c-accent);
  font-style: italic;
}

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.faq-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  text-align: left;
  cursor: pointer;
  background: none;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--c-primary);
  line-height: var(--leading-normal);
}

.faq-item__q-mark {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

.faq-item__chevron {
  margin-left: auto;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform var(--duration) var(--ease);
  color: var(--c-text-muted);
}

.faq-item__question[aria-expanded="true"] .faq-item__chevron {
  transform: rotate(180deg);
}

.faq-item__answer {
  display: none;
  padding: 0 var(--sp-6) var(--sp-5) calc(var(--sp-6) + 28px + var(--sp-4));
  font-size: var(--text-sm);
  color: var(--c-text-mid);
  line-height: var(--leading-loose);
}

.faq-item__answer.is-open {
  display: block;
}

/* ── Footer ── */
.site-footer {
  background: var(--c-primary);
  color: rgba(255,255,255,0.75);
  padding-block: var(--sp-16);
}

.site-footer__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  padding-bottom: var(--sp-10);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: var(--sp-8);
}

@media (min-width: 768px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .site-footer__top {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.site-footer__clinic-name {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--c-white);
  margin-bottom: var(--sp-3);
}

.site-footer__address {
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
}

.site-footer__nav-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--c-white);
  margin-bottom: var(--sp-4);
  letter-spacing: 0.05em;
}

.site-footer__nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.site-footer__nav-link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  transition: color var(--duration-fast) var(--ease);
}

.site-footer__nav-link:hover {
  color: var(--c-white);
}

.site-footer__nav-link--all {
  margin-top: var(--sp-1);
  color: rgba(255,255,255,0.9);
  font-weight: var(--weight-medium);
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.site-footer__copyright {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
}

.site-footer__legal {
  display: flex;
  gap: var(--sp-6);
}

.site-footer__legal-link {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--sp-16);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left,  rgba(26,46,68,0.72) 0%, rgba(26,46,68,0.25) 55%, rgba(26,46,68,0.05) 100%),
    linear-gradient(to top,   rgba(26,46,68,0.45) 0%, transparent 40%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 1024px) {
  .hero__content {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .hero__buttons {
    justify-content: flex-start;
  }
}

.hero__eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  padding: var(--sp-1) var(--sp-3);
  margin-bottom: var(--sp-5);
}

.hero__title {
  font-family: var(--font-sans);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--c-white);
  line-height: var(--leading-tight);
  margin-bottom: var(--sp-5);
  letter-spacing: -0.01em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

@media (min-width: 768px) {
  .hero__title {
    font-size: var(--text-4xl);
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: var(--text-5xl);
  }
}

.hero__lead {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.85);
  line-height: var(--leading-loose);
  max-width: 480px;
  margin-bottom: var(--sp-8);
}

@media (min-width: 768px) {
  .hero__lead {
    font-size: var(--text-md);
  }
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: var(--c-text-muted);
  padding-block: var(--sp-4);
}

.breadcrumb__sep {
  color: var(--c-border);
}

.breadcrumb__item--current {
  color: var(--c-text-mid);
}

/* ── Notice Bar (お知らせ)── */
/* ── News Band (TOP直下のコンパクト帯) ── */
.news-band {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border-light);
}

.news-band__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--sp-3) var(--gutter);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-6);
}

.news-band__label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: .12em;
  color: var(--c-primary);
  white-space: nowrap;
  padding-right: var(--sp-6);
  padding-block: var(--sp-2);
  border-right: 1px solid var(--c-border-light);
  flex-shrink: 0;
}

.news-band__list {
  flex: 1;
  min-width: 0;
}

.news-band .notice-item {
  padding-block: var(--sp-2);
  gap: var(--sp-3);
}

.news-band .notice-item:nth-child(n+4) {
  display: none;
}

.news-band__more {
  display: flex;
  align-items: flex-start;
  padding-top: var(--sp-2);
  font-size: 12px;
  font-weight: var(--weight-bold);
  color: var(--c-primary);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.news-band__more:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .news-band__inner {
    flex-direction: column;
    gap: var(--sp-2);
  }
  .news-band__label {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--c-border-light);
    padding-bottom: var(--sp-2);
    width: 100%;
  }
  .news-band__more {
    justify-content: flex-end;
    width: 100%;
    padding-top: 0;
    padding-bottom: var(--sp-1);
  }
}

/* ── Notice Items (newsページ等の通常スタイル) ── */
.notice-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
  padding-block: var(--sp-5);
  border-bottom: 1px solid var(--c-border-light);
}

@media (min-width: 768px) {
  .notice-item {
    grid-template-columns: 120px auto 1fr;
    gap: var(--sp-4);
    align-items: baseline;
  }
}

.notice-item__date {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  letter-spacing: 0.05em;
}

.notice-item__category {
  display: inline-block;
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.05em;
  padding: 2px var(--sp-2);
  border-radius: var(--radius-sm);
  background: var(--c-accent-light);
  color: var(--c-accent);
  white-space: nowrap;
}

.notice-item__title {
  font-size: var(--text-sm);
  color: var(--c-text);
  line-height: var(--leading-normal);
}

/* ── Access Info ── */
.access-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}

@media (min-width: 768px) {
  .access-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.hours-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.hours-table th,
.hours-table td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--c-border-light);
  text-align: center;
}

.hours-table th {
  font-weight: var(--weight-medium);
  color: var(--c-text-muted);
  background: var(--c-surface-alt);
}

.hours-table td.closed {
  color: var(--c-text-muted);
}

@media (max-width: 600px) {
  .hours-table {
    width: 100%;
    table-layout: fixed;
    font-size: 10px;
  }
  .hours-table th,
  .hours-table td {
    padding: 4px 1px;
    font-size: 10px;
  }
  .hours-table th:first-child,
  .hours-table td:first-child {
    width: 22%;
    white-space: normal;
    line-height: 1.3;
    font-size: 9px;
  }
}

/* ── Photo Gallery ── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
}

@media (min-width: 768px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.photo-grid__item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
}

.photo-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease);
}

.photo-grid__item:hover img {
  transform: scale(1.05);
}

/* ── Certification Badge ── */
.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--c-primary);
  letter-spacing: 0.03em;
}

.cert-badge::before {
  content: '✓';
  color: var(--c-accent);
  font-weight: var(--weight-bold);
}

/* ── Info Badge（情報バッジ・クリック不可）── */
.info-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

.info-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3);
  background: var(--c-accent-light);
  border: 1px solid rgba(74, 127, 165, .3);
  border-radius: var(--radius);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--c-primary);
  letter-spacing: 0.03em;
  white-space: nowrap;
  cursor: default;
  pointer-events: none;
  user-select: none;
}

/* ダーク背景ヘッダー内での使用 */
.info-badge--dark {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .3);
  color: rgba(255, 255, 255, .9);
}

/* 関連リンクカード（disease / menu ページ間の内部導線） */
.rel-card {
  display: block;
  background: var(--c-surface);
  border: 1px solid var(--c-border-light);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.rel-card:hover {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-light, #ddeef8);
}
.rel-card__type {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--c-accent);
  margin-bottom: var(--sp-2);
}
.rel-card__title {
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: var(--sp-2);
}
.rel-card__desc {
  font-size: var(--text-xs);
  color: var(--c-text-muted);
  line-height: var(--leading-loose);
}


/* =====================================================================
   Page Hero & Section CTA: テーマ class
   =====================================================================
   - .page-hero: 全ページ共通の hero ベース（padding 等）
   - .section--cta: CTA セクション共通装飾（gradient は body[data-theme] で適用）
   - body[data-theme="X"]: 各ページの色テーマ
   F-2 で theme-a/b/c.css を上書きする土台。
   ===================================================================== */

.page-hero {
  padding-top: calc(var(--header-h) + var(--sp-16));
  padding-bottom: var(--sp-16);
  padding-inline: var(--gutter);
}

/* 各ページ主要タイトル：PCは従来36px(--text-3xl)、スマホはviewport連動で縮小し
   短〜中(〜14字程度)の見出しを1行に。長い見出しは折り返し許容。
   ※従来は各h1にインラインfont-size:var(--text-3xl)固定で全幅36px→スマホで折返し多発 */
.page-hero h1 {
  font-size: clamp(1.3rem, 6.1vw, var(--text-3xl));
}

/* CTA セクションは page-hero と同色の gradient を当てる */
body[data-theme] .section--cta {
  /* gradient は data-theme 別に定義（下記） */
}

/* ---- data-theme: primary（骨盤底ブルー） ---- */
body[data-theme="primary"] .page-hero,
body[data-theme="primary"] .section--cta {
  background: linear-gradient(135deg, #1a3d6e 0%, #15325a 100%);
}

/* ---- data-theme: anorectal（紫・肛門系） ---- */
body[data-theme="anorectal"] .page-hero,
body[data-theme="anorectal"] .section--cta {
  background: linear-gradient(135deg, #1a3d6e 0%, #15325a 100%);
}

/* ---- data-theme: colon（深ブルー・大腸） ---- */
body[data-theme="colon"] .page-hero,
body[data-theme="colon"] .section--cta {
  background: linear-gradient(135deg, #1a3d6e 0%, #15325a 100%);
}

/* ---- data-theme: upper-gi（ティール・上部消化管） ---- */
body[data-theme="upper-gi"] .page-hero,
body[data-theme="upper-gi"] .section--cta {
  background: linear-gradient(135deg, #1a3d6e 0%, #15325a 100%);
}

/* ---- data-theme: digestive（ティールグリーン・便秘） ---- */
body[data-theme="digestive"] .page-hero,
body[data-theme="digestive"] .section--cta {
  background: linear-gradient(135deg, #1a3d6e 0%, #15325a 100%);
}

/* ---- data-theme: bowel（グリーン・IBS） ---- */
body[data-theme="bowel"] .page-hero,
body[data-theme="bowel"] .section--cta {
  background: linear-gradient(135deg, #1a3d6e 0%, #15325a 100%);
}

/* ---- data-theme: cancer（スレート・大腸がん/医療広告） ---- */
body[data-theme="cancer"] .page-hero,
body[data-theme="cancer"] .section--cta {
  background: linear-gradient(135deg, #1a3d6e 0%, #15325a 100%);
}

/* ---- data-theme: slate（薄スレート・法人系） ---- */
body[data-theme="slate"] .page-hero,
body[data-theme="slate"] .section--cta {
  background: linear-gradient(135deg, #1a3d6e 0%, #15325a 100%);
}

/* ---- data-theme: recruit（明るいブルー・採用） ---- */
body[data-theme="recruit"] .page-hero,
body[data-theme="recruit"] .section--cta {
  background: linear-gradient(135deg, #1a3d6e 0%, #15325a 100%);
}

/* ---- data-theme: news（ネイビー・お知らせ） ---- */
body[data-theme="news"] .page-hero,
body[data-theme="news"] .section--cta {
  background: linear-gradient(135deg, #1a3d6e 0%, #15325a 100%);
}

/* ---- data-theme: first（ライトブルー・初診） ---- */
body[data-theme="first"] .page-hero,
body[data-theme="first"] .section--cta {
  background: linear-gradient(135deg, #1a3d6e 0%, #15325a 100%);
}

/* ---- data-theme: checkup（中間ティール・健診） ---- */
body[data-theme="checkup"] .page-hero,
body[data-theme="checkup"] .section--cta {
  background: linear-gradient(135deg, #1a3d6e 0%, #15325a 100%);
}

/* ---- data-theme: female（ミュート・女性向け） ---- */
body[data-theme="female"] .page-hero,
body[data-theme="female"] .section--cta {
  background: linear-gradient(135deg, #1a3d6e 0%, #15325a 100%);
}

/* ---- data-theme: pelvic-floor（プライマリ深め・骨盤底外来/院長） ---- */
body[data-theme="pelvic-floor"] .page-hero,
body[data-theme="pelvic-floor"] .section--cta {
  background: linear-gradient(135deg, #1a3d6e 0%, #15325a 100%);
}

/* ---- data-theme: access（プライマリ＋暗め・アクセス） ---- */
body[data-theme="access"] .page-hero,
body[data-theme="access"] .section--cta {
  background: linear-gradient(135deg, #1a3d6e 0%, #15325a 100%);
}

/* ---- data-theme: clinic（深ブルー・院内） ---- */
body[data-theme="clinic"] .page-hero {
  background: linear-gradient(135deg, #1a3d6e 0%, #15325a 100%);
}
body[data-theme="clinic"] .section--cta {
  background: linear-gradient(135deg, #1a3d6e 0%, #15325a 100%);
}
