/* トップページ固有CSS（index.htmlの<style>から自動抽出。functions.phpでis_front_page()時にenqueue） */
:root {
  --sky: #33B3F4;
  --pink: #CD7E91;
  --navy: #1F3A5F;
  --navy-soft: rgba(31,58,95,0.7);
  --pale: #E8F5FC;
  --white: #FFFFFF;
  --benefit-red: #B83232;
  --line: rgba(31,58,95,0.08);
  --line-strong: rgba(31,58,95,0.15);
  --muted: rgba(31,58,95,0.6);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: 'Noto Sans JP', '游ゴシック', sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.85;
  font-weight: 400;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}
/* font-size拡大時にビューポートを越えないための安全策 */
body > * { max-width: 100vw; }
img, svg, video, iframe { max-width: 100%; }

/* ========== 文字サイズ変更（小・中・大）==========
   rem方式：全font-sizeをrem指定にしてあるため、htmlのルートサイズを
   切り替えるだけでサイト全体の文字が一律（比例）でスケールする。
   中(基準)=本文約14.7px。小=中-2pt(約12px)、大=中+2pt(約17.4px)。 */
html { font-size: 14.7px; }
html.fs-s { font-size: 12px; }
html.fs-m { font-size: 14.7px; }
html.fs-l { font-size: 17.4px; }
/* メインナビ：英字の折り返しを抑止（高さ統一） */
nav#globalNav .nav-ja, nav#globalNav .nav-en,
.header-cta a span { white-space: nowrap; }
nav#globalNav .nav-en, .header-cta a .cta-en { letter-spacing: 0.1em; }
.num, .en { font-family: 'Inter', sans-serif; font-weight: 400; }
.serif-en { font-family: 'Cormorant Garamond', serif; font-weight: 400; letter-spacing: 0.18em; }
h1, h2, h3, h4 {
  font-family: 'Noto Serif JP', '游明朝', serif;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.05em;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ========== HEADER ========== */
/* ========== HEADER (2段構成) ========== */
header {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  border-bottom: 1px solid rgba(31,58,95,0.06);
}

/* --- 上段：ユーティリティバー --- */
.header-utility {
  border-bottom: 1px solid var(--line);
  padding: 14px 5%;
  background: rgba(255,255,255,0.5);
}
.header-utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  gap: 24px;
}
.site-brand { display: flex; align-items: center; gap: 18px; }
.site-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.375rem; color: var(--navy);
  letter-spacing: 0.12em; font-weight: 500;
  line-height: 1.2;
  display: flex; flex-direction: column;
}
.site-name small {
  display: block; font-size: 0.625rem;
  letter-spacing: 0.3em;
  color: var(--sky); margin-top: 4px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
}
.site-logo { display: block; text-decoration: none; transition: opacity 0.3s; }
.site-logo:hover { opacity: 0.7; }
.site-logo img { height: 54px; width: auto; display: block; }
.footer-brand .name img { height: 70px; width: auto; display: block; filter: brightness(0) invert(1); }

/* 上段右側：ユーティリティ群 */
.header-utility-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
/* クイックリンク（外来診療担当表・交通アクセス） */
.header-quicklinks {
  display: flex;
  gap: 24px;
  align-items: center;
}
.header-quicklinks a {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--navy);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}
.header-quicklinks a:hover {
  color: var(--sky);
  border-bottom-color: var(--sky);
}
.header-quicklinks a svg {
  width: 16px; height: 16px;
  color: var(--pink);
}

/* TEL表示 */
.header-tel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-left: 24px;
  border-left: 1px solid var(--line-strong);
}
.header-tel-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  color: var(--sky);
  margin-bottom: 2px;
}
.header-tel-number {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--pink);
  letter-spacing: 0.04em;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap; /* 電話番号の途中折返しを防止 */
}
.header-tel-number svg {
  width: 18px; height: 18px;
  color: var(--pink);
}
.header-tel a { color: inherit; }

/* 文字サイズ変更 */
.header-fontsize {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-left: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
}
.header-fontsize-label {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  color: var(--navy-soft);
}
.fontsize-btn {
  width: 28px; height: 28px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--navy);
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.fontsize-btn.s { font-size: 0.6875rem; }
.fontsize-btn.m { font-size: 0.8125rem; }
.fontsize-btn.l { font-size: 0.9375rem; }
.fontsize-btn:hover {
  border-color: var(--sky);
  color: var(--sky);
}
.fontsize-btn.active,
html.fs-s .fontsize-btn.s,
html.fs-m .fontsize-btn.m,
html.fs-l .fontsize-btn.l {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* 言語切替 */
.header-lang {
  display: flex;
  align-items: center;
  gap: 0;
  padding-right: 16px;
  border-right: 1px solid var(--line-strong);
}
.lang-btn {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--navy-soft);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 10px;
  transition: color 0.3s;
  font-weight: 400;
}
.lang-btn:hover { color: var(--sky); }
.lang-btn.active {
  color: var(--pink);
  font-weight: 500;
}
.lang-divider {
  width: 1px; height: 14px;
  background: var(--line-strong);
}

/* 検索フォーム */
.header-search {
  display: flex;
  align-items: center;
  position: relative;
}
.header-search input {
  width: 160px;
  padding: 8px 36px 8px 14px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  font-size: 0.75rem;
  font-family: 'Noto Serif JP', serif;
  color: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}
.header-search input:focus {
  outline: none;
  border-color: var(--sky);
  width: 200px;
}
.header-search button {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--navy-soft);
  display: flex;
  align-items: center;
  transition: color 0.3s;
}
.header-search button:hover { color: var(--sky); }
.header-search button svg { width: 16px; height: 16px; }

/* --- 下段：メインナビ --- */
.header-main {
  padding: 0 5%;
}
.header-main-inner {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  max-width: 1400px;
  margin: 0 auto;
}
nav#globalNav {
  flex: 7;
}
nav#globalNav ul {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  list-style: none;
  height: 100%;
}
nav#globalNav li {
  flex: 1;
  display: flex;
  position: relative;
}
nav#globalNav li:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 25%;
  height: 50%;
  width: 1px;
  background: var(--line);
}
nav#globalNav a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 18px 8px;
  color: var(--navy);
  font-weight: 500;
  position: relative;
  transition: all 0.3s;
  gap: 4px;
}
nav#globalNav a::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--sky);
  transition: width 0.3s ease;
}
nav#globalNav a:hover {
  background: var(--pale);
}
nav#globalNav a:hover::before { width: 60%; }
nav#globalNav .nav-ja {
  font-size: 0.875rem;
  font-family: 'Noto Serif JP', serif;
  letter-spacing: 0.08em;
  font-weight: 500;
  line-height: 1.4;
}
nav#globalNav .nav-en {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--sky);
  font-weight: 400;
  text-transform: lowercase;
}

.header-cta {
  display: flex;
  align-items: stretch;
  flex: 2;
  position: relative;
}
.header-cta::before {
  content: ''; position: absolute; left: 0; top: 25%;
  height: 50%; width: 1px; background: var(--line);
}
.header-cta a {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 18px 8px;
  gap: 4px;
  font-family: 'Noto Serif JP', serif;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  position: relative;
  transition: all 0.3s;
}
.header-cta a::before {
  content: ''; position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--sky);
  transition: width 0.3s ease;
}
.header-cta a:first-child::after {
  content: ''; position: absolute; right: 0; top: 25%;
  height: 50%; width: 1px; background: var(--line);
}
.header-cta a:hover { background: var(--pale); }
.header-cta a:hover::before { width: 60%; }
.header-cta a .cta-en {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--sky);
}

.menu-btn {
  display: none;
  width: 36px; height: 36px;
  background: transparent; border: none;
  cursor: pointer; position: relative;
  z-index: 200;
}
.menu-btn span {
  display: block; width: 24px; height: 1.5px;
  background: var(--navy); margin: 6px auto;
  transition: all 0.3s;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 180px 5% 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: -2;
  overflow: hidden;
  background-color: var(--navy);
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: hero-slideshow 24s infinite;
  will-change: opacity;
}
.hero-slide:nth-child(1) {
  background-image: url('../images/hospital/hazaki-hospital.jpg');
  background-position: center top;
  animation-delay: 0s;
}
.hero-slide:nth-child(2) {
  background-image: url('../images/hospital/in-hospital.jpg');
  animation-delay: 6s;
}
.hero-slide:nth-child(3) {
  background-image: url('../images/hospital/hazaki-flag.webp');
  animation-delay: 12s;
}
.hero-slide:nth-child(4) {
  background-image: url('../images/hospital/kanonji.webp');
  animation-delay: 18s;
}
@keyframes hero-slideshow {
  0%, 22%   { opacity: 1; }
  25%, 97%  { opacity: 0; }
  100%      { opacity: 1; }
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,38,71,0.22) 0%, rgba(15,38,71,0.38) 100%),
    radial-gradient(circle at 80% 20%, rgba(205,126,145,0.1), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(51,179,244,0.1), transparent 50%);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; opacity: 1; }
  .hero-slide:nth-child(n+2) { opacity: 0; }
}
.hero-deco {
  position: absolute; right: -10%; top: 10%;
  width: 60%; height: 80%;
  opacity: 0.4;
  z-index: -1;
}
.hero-content {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}
.hero-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.875rem; letter-spacing: 0.4em;
  color: var(--white);
  margin-bottom: 24px;
  font-weight: 400;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}
.hero h1 {
  font-size: clamp(1.6875rem, 4.65vw, 4.1875rem);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0;
  letter-spacing: 0.08em;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
}
html.fs-s .hero h1 { font-size: clamp(1.4375rem, 3.9vw, 3.5rem); }
html.fs-m .hero h1 { font-size: clamp(1.6875rem, 4.65vw, 4.1875rem); }
html.fs-l .hero h1 { font-size: clamp(1.9375rem, 5.4vw, 4.875rem); }
.hero h1 .accent {
  display: inline-block;
}
.hero p.lead {
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto 48px;
  color: var(--white);
}
.hero-info {
  position: absolute;
  bottom: 32px; right: 280px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.6);
  padding: 24px 32px;
  border-radius: 4px;
  font-size: 0.8125rem;
  z-index: 2;
}
.hero-info-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.6875rem; letter-spacing: 0.3em;
  color: var(--sky);
  margin-bottom: 6px;
}
.hero-info strong { font-weight: 500; }

.scroll-indicator {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.6875rem; letter-spacing: 0.4em;
  color: var(--navy);
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
}
.scroll-line {
  width: 1px; height: 40px;
  background: var(--navy);
  position: relative; overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--sky);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* ========== COMMON SECTION STYLES ========== */
section { padding: 120px 5%; position: relative; }
/* 固定ヘッダー分のアンカーオフセット */
section[id] { scroll-margin-top: 150px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-head {
  text-align: center;
  margin-bottom: 64px;
}
.section-head.left { text-align: left; }
.section-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.875rem; letter-spacing: 0.4em;
  color: var(--sky);
  margin-bottom: 16px;
  display: block;
}
.section-title,
html.fs-s .section-title,
html.fs-m .section-title,
html.fs-l .section-title {
  font-size: clamp(2rem, 4.8vw, 1.5rem);
  font-weight: 500;
  line-height: 1.3;
}
.section-sub {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 20px;
  max-width: 600px;
  margin-left: auto; margin-right: auto;
}
.section-head.left .section-sub { margin-left: 0; margin-right: 0; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* ========== NEWS ========== */
.news {
  background: var(--white);
  padding: 100px 5%;
}
.news-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  align-items: start;
}
.news-head { position: sticky; top: 100px; }
.news-head .section-en { text-align: left; }
.news-head .section-title { text-align: left; font-size: 2rem; }
.news-head a {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 32px;
  font-size: 0.75rem; letter-spacing: 0.2em;
  color: var(--navy);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--navy);
  transition: all 0.3s;
}
.news-head a:hover {
  color: var(--sky);
  border-bottom-color: var(--sky);
  gap: 18px;
}
.news-list { list-style: none; }
/* カテゴリは1件のお知らせに複数付けられるため、タグの本数で幅が変わる。
   グリッドだと列幅が全行で共通になり、タグ1個の行に余白が空いてしまうので
   フレックスにして行ごとに詰める（タグの数だけ見出しの開始位置が右にずれる）*/
.news-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: padding 0.3s;
}
.news-item:hover { padding-left: 12px; }
.news-item:first-child { padding-top: 0; }
.news-date {
  flex: 0 0 110px;   /* 日付は幅を固定し、行がずれても左端をそろえる */
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--pink);
}
.news-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.news-cat {
  display: inline-block;
  font-size: 0.625rem;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.3em;
  padding: 4px 12px;
  border: 1px solid var(--sky);
  color: var(--sky);
  text-align: center;
  border-radius: 2px;
  width: fit-content;
}
.news-cat--important {
  background: var(--benefit-red);
  border-color: var(--benefit-red);
  color: var(--white);
}
.news-title {
  flex: 1;
  min-width: 0;   /* 長い見出しがはみ出さずに折り返せるようにする */
  font-size: 0.875rem;
  line-height: 1.7;
  font-weight: 500;
}

/* ========== INFORMATION (Quick Links) ========== */
.info-section {
  background: #fff;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.info-section .section-inner {
  max-width: none;
  margin: 0;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
  border: 1px solid var(--line);
}
.info-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  text-decoration: none;
  color: inherit;
  background-color: #fff;
  background-size: 82% auto;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  position: relative;
  min-height: 270px;
  border-right: 1px solid var(--line);
  transition: background-color 0.35s ease;
}
.info-card:last-child {
  border-right: none;
}
.info-card-visual {
  flex: 1;
  min-height: 150px;
  position: relative;
}
.info-card:nth-child(1) {
  background-image: url('../images/header/diagnosis.png');
}
.info-card:nth-child(2) {
  background-image: url('../images/header/hospitalization.png');
}
.info-card:nth-child(3) {
  background-image: url('../images/header/departments.svg');
}
.info-card:nth-child(4) {
  background-image: url('../images/header/aboutus.svg');
}
.info-card:nth-child(5) {
  background-image: url('../images/header/medicalstaff.png');
}
.info-card:nth-child(6) {
  background-image: url('../images/header/checkup.svg');
}
.info-card-num {
  font-family: 'Inter', sans-serif;
  /* 6列だとカード幅が240px程度しかない。番号を大きく取ると見出しの
     テキスト欄が105pxまで狭まり「医療関係者の方へ」が2行になるため、
     番号・字間・余白を詰めて中サイズで1行に収まる幅を確保している */
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--navy-soft);
  letter-spacing: 0.04em;
  /* 箱の下端はグリッドで揃うが、行間1だと文字のベースラインが
     ENラベルより1.7px上に来る。0.9まで詰めると視覚的にも揃う */
  line-height: 0.9;
  flex-shrink: 0;
  transition: color 0.35s ease;
}
/* 番号・見出し・ENラベルを2列2行に置く。
   flexで [番号][見出し+ENラベル] と組むと、番号が見出しとENラベルの
   中間の高さに来てしまうため、グリッドにして見出しを番号の真横に揃える。
     1行目: [番号] [見出し]
     2行目:        [ENラベル] */
.info-card-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  /* 見出し＋ENラベルの合計高さを番号の高さ（2.25rem × 0.9）に一致させ、
     番号の上端＝見出しの上端、番号の下端＝ENラベルの下端にする。
     行間を変えるとこの一致が崩れるので、3つはセットで調整すること。
       1.125rem × 1.25 ＋ 0.5625rem × 1.1 ＝ 2.025rem */
  row-gap: 0;
  align-items: center;
}
.info-card-text {
  /* ラッパーを畳んで子をそのままグリッドに並べる */
  display: contents;
}
/* 番号は2行分にまたがらせ、下端をENラベルの下端に合わせる */
.info-card-num { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
.info-card h3 { grid-column: 2; grid-row: 1; }
.info-card .en-label { grid-column: 2; grid-row: 2; }
/* 文字サイズ「大」では見出しが2行になるカードがある。
   行数がカードごとに違うと番号の位置がずれるため、2行分を確保する。
   このとき番号の下端とENラベルの下端は一致しなくなるが、
   カード間の揃いを優先する（小・中では1行に収まり両方成立する） */
html.fs-l .info-card h3 { min-height: 2.5em; }
.info-card-arrow {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pale);
  border-radius: 50%;
  color: var(--navy);
  font-size: 0.8125rem;
  z-index: 2;
  transition: background-color 0.35s ease, color 0.35s ease, transform 0.35s ease;
}
.info-card-body {
  padding: 18px 18px 28px;
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 35%, #fff 100%);
}
.info-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  /* 番号との上下の揃えに関わる。上のコメント参照 */
  line-height: 1.25;
  color: var(--navy);
  transition: color 0.35s ease;
}
.info-card .en-label {
  font-family: 'Cormorant Garamond', serif;
  /* 番号の下端をENラベルの下端に揃えるには、全カードで行数が同じである
     必要がある。MEDICAL PROFESSIONAL（最長20文字）が1行に収まるよう
     サイズと字間を詰めている。緩めると05だけ2行になり下端がずれる */
  font-size: 0.5625rem;
  /* 番号との上下の揃えに関わる。.info-card-heading のコメント参照 */
  line-height: 1.1;
  letter-spacing: 0.08em;
  color: var(--navy-soft);
  text-transform: uppercase;
  transition: color 0.35s ease;
}
.info-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--pink);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}
.info-card-visual,
.info-card-body,
.info-card-arrow {
  z-index: 2;
}
.info-card:hover::after {
  opacity: 0.92;
}
.info-card:hover .info-card-body {
  background: linear-gradient(180deg, rgba(205,126,145,0) 0%, rgba(205,126,145,0.6) 35%, var(--pink) 100%);
}
.info-card:hover .info-card-num,
.info-card:hover h3 {
  color: #fff;
}
.info-card:hover .en-label {
  color: rgba(255, 255, 255, 0.85);
}
.info-card:hover .info-card-arrow {
  background: #fff;
  color: var(--pink);
  transform: translateX(4px);
}


/* ========== DEPARTMENTS ========== */
.departments {
  background: var(--white);
  padding: 90px 5% 120px;
  border-top: 1px solid var(--line);
}
.dept-featured {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 280px;
  border-radius: 4px;
  overflow: hidden;
  padding: 44px 52px;
  color: var(--navy);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  isolation: isolate;
  margin-top: 32px;
  margin-bottom: 24px;
  text-decoration: none;
}
.dept-featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(31,58,95,0.2);
  border-color: rgba(51,179,244,0.35);
}
.dept-featured .dept-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  transition: transform 0.6s ease;
}
.dept-featured:hover .dept-bg { transform: scale(1.04); }
/* 白基調カード用の文字色・装飾（hover時の説明パネルは従来どおり紺背景＋白文字） */
.dept-featured .dept-name { color: var(--navy); }
.dept-featured .dept-name-en { color: var(--muted); }
.dept-featured::after {
  content: '→';
  position: absolute;
  top: 28px; right: 36px;
  font-size: 1.375rem;
  color: var(--navy);
  opacity: 0.45;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.dept-featured:hover::after {
  /* hover時は紺の説明パネルが出るため矢印を白に */
  color: var(--white);
  opacity: 1;
  transform: translateX(6px);
}
.dept-featured-content {
  position: relative;
  z-index: 1;
  max-width: 60%;
}
.dept-featured-badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--pink);
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  border-radius: 2px;
  margin-bottom: 18px;
  font-weight: 500;
}
.dept-featured .dept-num {
  font-size: 1.625rem;
  margin-bottom: 6px;
  display: block;
}
.dept-featured .dept-name {
  font-size: 2.125rem;
  margin-bottom: 6px;
  display: block;
}
.dept-featured .dept-name-en {
  font-size: 0.8125rem;
  letter-spacing: 0.4em;
  display: block;
}
.dept-featured-desc {
  font-size: 0.875rem;
  line-height: 1.85;
  color: var(--navy-soft);
  margin-top: 18px;
}
.dept-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 0;
}
.dept-card {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 14px;
  color: var(--navy);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  isolation: isolate;
}
.dept-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(31,58,95,0.18);
  border-color: rgba(51,179,244,0.35);
}
/* 背景ビジュアル（科ごとに異なる） */
.dept-card .dept-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  /* アイコンをやや上寄せ・小さめにして文字と重ねない */
  background-size: 60%;
  background-position-y: 33%;
  transition: transform 0.6s ease;
}
.dept-card:hover .dept-bg { transform: scale(1.06); }
.dept-card::after {
  content: '→';
  position: absolute;
  top: 14px; right: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: var(--navy);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.3s;
}
.dept-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}
.dept-num {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--pink);
  margin-bottom: 2px;
}
.dept-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 3px;
  letter-spacing: 0.04em;
  line-height: 1.35;
}
.dept-name-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.7);
}
/* 白背景カード用の文字色・装飾（.dept-featuredは従来の白文字のまま） */
.dept-card .dept-name { color: var(--navy); }
.dept-card .dept-name-en { color: var(--muted); }
.dept-card .dept-deco.cross { display: none; }
.dept-card-desc {
  position: absolute;
  inset: 0;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  background: rgba(31, 58, 95, 0.94);
  color: var(--white);
  font-size: 0.6875rem;
  line-height: 1.75;
  letter-spacing: 0.02em;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2;
  overflow: auto;
}
.dept-card:hover .dept-card-desc,
.dept-featured:hover .dept-card-desc {
  opacity: 1;
  visibility: visible;
}
.dept-card:hover .dept-num,
.dept-card:hover .dept-name,
.dept-card:hover .dept-name-en,
.dept-card:hover .dept-deco,
.dept-featured:hover .dept-featured-content,
.dept-featured:hover .dept-deco {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.dept-featured .dept-card-desc {
  padding: 40px 56px;
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

/* 各診療科の背景ビジュアル — スタイリッシュなSVGアイコン */
.dept-bg-internal {
  background: url('../images/department/internal.svg') center/70% no-repeat var(--white);
}
.dept-bg-cardiology {
  background: url('../images/department/cardiology.svg') center/70% no-repeat var(--white);
}
.dept-bg-digestive {
  background: url('../images/department/digestive.svg') center/70% no-repeat var(--white);
}
.dept-bg-diabetes {
  background: url('../images/department/diabetes.svg') center/70% no-repeat var(--white);
}
.dept-bg-rheumatism {
  background: url('../images/department/rheumatism.svg') center/70% no-repeat var(--white);
}
.dept-bg-neuro {
  background: url('../images/department/neuro.svg') center/70% no-repeat var(--white);
}
.dept-bg-ortho {
  background: url('../images/department/ortho.svg') right 6% center / auto 70% no-repeat var(--white);
}
.dept-bg-rehab {
  background: url('../images/department/rehab.svg') center/70% no-repeat var(--white);
}
.dept-bg-skin {
  background: url('../images/department/skin.svg') center/70% no-repeat var(--white);
}
.dept-bg-anesthesia {
  background: url('../images/department/anesthesia.svg') center/70% no-repeat var(--white);
}
.dept-bg-pain {
  background: url('../images/department/pain.svg') center/70% no-repeat var(--white);
}
.dept-bg-emergency {
  background: url('../images/department/emergency.svg') center/70% no-repeat var(--white);
}
/* 装飾シェイプ（背景のアクセント） */
.dept-deco {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.dept-deco.circle {
  /* 白基調カードでは線が浮くため非表示 */
  display: none;
  border-radius: 50%;
  top: -20%; right: -20%;
  width: 70%; aspect-ratio: 1;
}
.dept-deco.cross {
  top: 30%; left: 20%;
  width: 40px; height: 40px;
  opacity: 0.2;
}
.dept-deco.cross::before,
.dept-deco.cross::after {
  content: '';
  position: absolute;
  background: var(--white);
}
.dept-deco.cross::before {
  top: 0; left: 50%;
  width: 2px; height: 100%;
  transform: translateX(-50%);
}
.dept-deco.cross::after {
  top: 50%; left: 0;
  width: 100%; height: 2px;
  transform: translateY(-50%);
}

/* ========== HOURS TABLE ========== */
.hours-section {
  background: var(--pale);
  padding: 90px 5% 120px;
}
.hours-calendar-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  align-items: stretch;
}
.hours-inner {
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.hours-table-wrap {
  flex: 1;
  background: var(--white);
  padding: 48px;
  border-radius: 2px;
  border: 1px solid var(--line);
}
#calendar {
  display: flex;
  flex-direction: column;
}
#calendar .calendar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}
#calendar .calendar-wrap iframe {
  flex: 1;
  height: 100%;
  min-height: 560px;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.hours-table th,
.hours-table td {
  padding: 18px 8px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.hours-table thead th {
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  color: var(--navy);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
}
.hours-table thead th.sun,
.hours-table tbody td.sun { color: var(--benefit-red); }
.hours-table thead th.sat,
.hours-table tbody td.sat { color: var(--sky); }
.hours-table tbody th {
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--navy);
  width: 160px;
  padding-left: 16px;
}
.hours-table .time {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  color: var(--navy-soft);
  display: block;
  margin-top: 2px;
}
.hours-note {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--pale);
  border-left: 3px solid var(--sky);
  font-size: 0.8125rem;
}
.hours-note strong { color: var(--benefit-red); font-weight: 500; }

/* ========== CALENDAR ========== */
.calendar-wrap {
  background: var(--white); padding: 24px;
  border-radius: 2px;
  box-shadow: 0 12px 30px rgba(31,58,95,0.06);
}
.calendar-wrap iframe {
  width: 100%; border: 0;
  display: block;
}
.calendar-note {
  margin-top: 16px; font-size: 0.75rem;
  color: var(--muted); text-align: center;
}

/* ========== RECRUIT BANNER ========== */
.recruit {
  padding: 0;
  position: relative;
}
.recruit-inner {
  background-image:
    linear-gradient(135deg, rgba(15, 38, 71, 0.55) 0%, rgba(42, 77, 122, 0.38) 50%, rgba(15, 38, 71, 0.55) 100%),
    url('../images/staff/recruit.JPG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 140px 8%;
  position: relative;
  overflow: hidden;
}
.recruit-inner::before {
  content: 'RECRUIT';
  position: absolute;
  top: -20px; right: -20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(6.25rem, 16vw, 15rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.08);
  white-space: nowrap;
  line-height: 1;
  pointer-events: none;
}
.recruit-grid {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}
.recruit-content .section-en {
  color: var(--white);
  opacity: 0.9;
  letter-spacing: 0.4em;
}
.recruit-content h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.6;
  margin-bottom: 28px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}
.recruit-content p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 48px;
  line-height: 2;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
.recruit-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 48px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  font-weight: 500;
  border-radius: 2px;
  transition: all 0.3s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.recruit-btn:hover {
  background: var(--sky);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* ========== COLUMN ========== */
.column-section {
  padding: 90px 5% 120px;
  background: var(--white);
}
/* 件数が3枚未満でも中央に寄るよう、grid ではなく flex で組む。
   3枚のときの幅は repeat(3,1fr) と同じ計算（gap 32px×2 を引いて3等分）*/
.column-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
}
.column-grid > * {
  flex: 0 1 calc((100% - 64px) / 3);
  max-width: calc((100% - 64px) / 3);
  min-width: 0;
}
.column-card {
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  transition: all 0.3s;
  background: var(--white);
}
.column-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(31,58,95,0.06);
}
.column-img {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--pale), #c8e3f5);
  position: relative;
  overflow: hidden;
}
.column-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.6s ease;
}
.column-card:hover .column-img img {
  transform: scale(1.04);
}
.column-body { padding: 28px; }
.column-meta {
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 14px;
}
.column-cat {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  padding: 4px 12px;
  border: 1px solid var(--sky);
  color: var(--sky);
  border-radius: 2px;
}
.column-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--pink);
  letter-spacing: 0.05em;
}
.column-card h3 {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 12px;
}
.column-card p {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.7;
}
.column-more {
  text-align: center;
  margin-top: 56px;
}
.column-more a {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 16px 40px;
  border: 1px solid var(--navy);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  transition: all 0.3s;
}
.column-more a:hover {
  background: var(--navy);
  color: var(--white);
}

/* ========== ACCESS / FOOTER CTA ========== */
.access-section {
  padding: 90px 5% 120px;
  background: var(--pale);
  position: relative;
  overflow: hidden;
}
.access-inner-wrap {
  max-width: 1200px;
  margin: 0 auto;
}
.access-inner-wrap .section-en { text-align: left; }
.access-inner-wrap h2 {
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  line-height: 1.5;
  margin-bottom: 40px;
}
.access-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.access-detail {
  background: var(--white);
  padding: 36px;
  border-radius: 2px;
  margin-bottom: 32px;
}
.access-detail-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.access-detail-row:last-child { border-bottom: none; padding-bottom: 0; }
.access-detail-row:first-child { padding-top: 0; }
.access-detail-row dt {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  color: var(--sky);
}
.access-detail-row dd {
  font-size: 0.875rem;
  line-height: 1.8;
}
.access-detail-row dd strong {
  font-weight: 500;
  font-size: 0.9375rem;
}
.access-detail-row dd .num {
  font-family: 'Inter', sans-serif;
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--pink);
  letter-spacing: 0.04em;
}
.access-cta {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.access-cta a {
  flex: 1;
  min-width: 180px;
  padding: 18px 24px;
  text-align: center;
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  border-radius: 2px;
  transition: all 0.3s;
}
.access-cta a.primary {
  background: var(--navy);
  color: var(--white);
}
.access-cta a.primary:hover { background: var(--sky); }
.access-cta a.outline {
  border: 1px solid var(--navy);
  color: var(--navy);
}
.access-cta a.outline:hover {
  background: var(--navy);
  color: var(--white);
}
.access-map {
  aspect-ratio: 4/3;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}
.access-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ========== FOOTER ========== */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 80px 5% 30px;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand .name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.375rem;
  color: var(--white);
  letter-spacing: 0.12em;
  font-weight: 500;
  margin-bottom: 6px;
  text-decoration: none;
  display: block;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.footer-brand .name:hover {
  opacity: 0.7;
}
.footer-brand small {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  color: var(--pink);
}
.footer-brand p {
  margin-top: 24px;
  font-size: 0.8125rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.65);
}
.footer-sns {
  display: flex; gap: 16px; margin-top: 20px;
}
.footer-sns a {
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
  display: flex; align-items: center;
}
.footer-sns a:hover { color: var(--white); }
.footer-col h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8125rem;
  letter-spacing: 0.3em;
  color: var(--pink);
  margin-bottom: 24px;
  font-weight: 400;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.75);
  transition: color 0.3s;
}
.footer-col ul a:hover { color: var(--sky); }
.footer-col p {
  font-size: 0.8125rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.75);
}
.footer-col p .num {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--pink);
  letter-spacing: 0.04em;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-policy {
  display: flex; gap: 24px; flex-wrap: wrap;
}
.footer-policy a {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s;
}
.footer-policy a:hover { color: var(--sky); }
.footer-copy {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4);
}

/* ========== FLOATING CTA ========== */
.float-cta {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 50;
  display: flex; flex-direction: column;
  gap: 8px;
}
.float-cta a {
  background: var(--navy);
  color: var(--white);
  padding: 14px 24px;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  border-radius: 2px;
  display: flex; align-items: center; gap: 10px;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(31,58,95,0.2);
}
.float-cta a:hover {
  background: var(--sky);
  transform: translateY(-2px);
}
.float-cta a.tel {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--navy);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.05em;
}

/* ========== RESPONSIVE ========== */
/* ナビ項目が多いため、1200px以下で先にナビを縮小
   （文字サイズ「大」設定でも1列に収まる幅を確保） */
@media (max-width: 1200px) {
  .header-quicklinks { gap: 16px; }
  .header-quicklinks a { font-size: 0.6875rem; }
  .header-tel-number { font-size: 1.125rem; }
  nav#globalNav .nav-ja { font-size: 0.75rem; }
  nav#globalNav .nav-en { font-size: 0.5625rem; }
  .header-cta a { padding: 14px 10px; font-size: 0.75rem; }
}
/* タブレット以下：ナビ全項目は横に収まらないため開閉メニューへ切替 */
/* 6列を保てるのは1380px以上（カード幅230px）。それ未満はカード幅が200pxを切り、
   見出しが3〜4行に折り返したり MEDICAL PROFESSIONAL が3行になって
   カードごとに番号の位置がずれるため、3列に切り替える。
   （文字を小さくして詰める案は、テキスト欄が約79pxしかなく
     20文字を2行に収められないため成立しない） */
@media (max-width: 1379px) {
  .info-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  section[id] { scroll-margin-top: 90px; }
  .info-grid { grid-template-columns: repeat(3, 1fr); }
  .dept-grid { grid-template-columns: repeat(4, 1fr); }
  .dept-featured { padding: 36px 36px; min-height: 240px; }
  .dept-featured-content { max-width: 80%; }
  .dept-featured .dept-name { font-size: 1.75rem; }
  .news-inner { grid-template-columns: 1fr; gap: 40px; }
  .news-head { position: static; }
  .access-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .column-grid > * { flex-basis: calc((100% - 32px) / 2); max-width: calc((100% - 32px) / 2); }
  /* ヘッダー：上段はロゴ＋TEL＋メニューボタンのみ表示 */
  .header-utility { padding: 12px 5%; }
  .header-quicklinks, .header-fontsize, .header-search, .header-lang { display: none; }
  .header-tel { padding-left: 0; border-left: none; }
  .menu-btn { display: block; margin-left: 12px; }
  .site-name { font-size: 1.125rem; }
  /* 下段メインナビ全体を開閉メニュー化 */
  .header-main {
    position: fixed; top: 0; right: 0;
    width: 85%; max-width: 360px; height: 100vh;
    background: var(--white);
    padding: 80px 24px 40px;
    z-index: 150;
    box-shadow: -10px 0 30px rgba(31,58,95,0.1);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }
  .header-main.open { transform: translateX(0); }
  .header-main-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  nav#globalNav ul {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    gap: 0;
  }
  nav#globalNav li {
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  nav#globalNav li::after { display: none; }
  nav#globalNav a {
    padding: 16px 8px;
    align-items: flex-start;
    text-align: left;
  }
  nav#globalNav a:hover::before { width: 0; }
  /* CTAをメニュー内に縦並び表示 */
  .header-main .header-cta {
    flex-direction: column;
    gap: 12px;
    padding: 8px 0 0;
  }
  .header-main .header-cta a {
    width: 100%;
    border-left: none;
    border: 1px solid var(--navy);
    padding: 14px 20px;
    text-align: center;
    border-radius: 2px;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
  }
  .header-main .header-cta a .cta-en { opacity: 0.7; }
}
@media (max-width: 720px) {
  .hero { padding: 140px 6% 80px; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .dept-grid { grid-template-columns: repeat(3, 1fr); }
  .dept-featured { padding: 28px 24px; min-height: 200px; }
  .dept-featured .dept-name { font-size: 1.5rem; }
  .dept-featured-desc { font-size: 0.8125rem; }
  .column-grid > * { flex-basis: 100%; max-width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .hours-table-wrap { padding: 24px; overflow-x: auto; }
  .hours-table { font-size: 0.75rem; }
  .hours-table th, .hours-table td { padding: 12px 4px; }
  section { padding: 80px 5%; }
  .news, .departments, .hours-section, .column-section, .access-section { padding: 80px 5%; }
  .hours-calendar-inner { grid-template-columns: 1fr; gap: 48px; }
  .float-cta a { padding: 12px 18px; font-size: 0.625rem; }
  .hero-info { bottom: 20px; right: 20px; left: 20px; padding: 16px 20px; font-size: 0.6875rem; }
}
/* スマホ小画面：カード内の文字詰まり・折返し崩れを解消 */
@media (max-width: 480px) {
  .site-logo img { height: 44px; }
  .header-tel-number { font-size: 1rem; }
  .header-tel-label { display: none; }
  /* ヒーロー見出し：1文字だけの孤立行を防ぐ */
  .hero h1,
  html.fs-s .hero h1,
  html.fs-m .hero h1,
  html.fs-l .hero h1 { font-size: clamp(1.35rem, 5.8vw, 2.25rem); }
  /* お知らせ：日付・タグを1行目、タイトルを2行目に */
  .news-item {
    flex-wrap: wrap;
    gap: 8px 16px;
  }
  .news-date { flex: 0 0 auto; }
  .news-title { flex-basis: 100%; }
  /* infoカード：番号を小さくしタイトルの縦割れを防ぐ */
  .info-card { min-height: 210px; }
  .info-card-body { padding: 14px 14px 18px; }
  .info-card-num { font-size: 1.25rem; }
  .info-card-heading { gap: 8px; }
  .info-card h3 { font-size: 1rem; letter-spacing: 0; }
  .info-card .en-label {
    font-size: 0.5625rem;
    letter-spacing: 0.15em;
    word-break: normal;
    overflow-wrap: normal;
  }
  /* 診療項目：3列→2列にして科名の折返しを緩和 */
  .dept-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dept-name-en { letter-spacing: 0.12em; word-break: normal; }
}
