/* ===========================
   くらもちレディースクリニック ランディングページ
   Design System & Styles
   =========================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@400;500;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Outfit:wght@300;400;500;600&family=M+PLUS+Rounded+1c:wght@500&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Color Palette */
  --color-primary: #BB9F9F;
  --color-primary-light: #CFBCBC;
  --color-primary-dark: #9E7676;
  --color-accent: #E8854A;
  --color-accent-light: #F0B896;
  --color-accent-dark: #C05A28;
  --color-yellow: #F2DC6B;
  --color-yellow-light: #FAF1C4;
  --color-tan: #BFA27E;
  --color-tan-light: #E5DACB;
  --color-blue-light: #D3E1E4;

  /* Neutrals */
  --color-white: #ffffff;
  --color-cream: #faf8f5;
  --color-warm-gray: #f5f0eb;
  --color-text: #3a3238;
  --color-text-light: #6b5f68;
  --color-text-muted: #9a8e94;
  --color-border: #e8e0e4;

  /* Typography */
  --font-heading: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
  --font-body: 'Noto Sans JP', 'Outfit', sans-serif;
  --font-accent: 'Outfit', 'Noto Sans JP', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;

  /* Effects */
  --shadow-soft: 0 4px 30px rgba(58, 50, 56, 0.06);
  --shadow-medium: 0 8px 40px rgba(58, 50, 56, 0.1);
  --shadow-card: 0 12px 48px rgba(58, 50, 56, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.8;
  font-weight: 400;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Utility Classes --- */
.section-label {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.4;
}

.section-title-jp {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.6;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 2;
  max-width: 640px;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Floating Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(250, 248, 245);
  transition: var(--transition);
  pointer-events: none;
  z-index: -1;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(58, 50, 56, 0.06);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: auto;
  width: auto;
  max-height: 44px;
  display: block;
}

/* モバイルでスクロールしてロゴが消えた時だけ画面上部に表示するクリニック名 */
.header-clinic-name {
  display: none;
}

/* モバイルメニュー（ドロワー）の一番上に表示するクリニック名 */
.nav-links-clinic-name {
  display: none;
}

.logo-main {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 2px;
}

.logo-sub {
  font-family: var(--font-accent);
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--color-primary);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--color-text-light);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--color-primary-dark);
}

.nav-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white) !important;
  padding: 10px 24px !important;
  border-radius: 50px;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
  box-shadow: 0 4px 15px rgba(158, 118, 118, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(158, 118, 118, 0.45);
  color: var(--color-white) !important;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary-dark);
  transition: var(--transition);
  border-radius: 2px;
}

.mobile-menu-btn::after {
  content: 'menu';
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--color-primary-dark);
  line-height: 1;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* --- Dropdown Nav --- */
.nav-item {
  position: relative;
}

.nav-parent {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--color-text-light);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-parent::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-item:hover .nav-parent {
  color: var(--color-primary-dark);
}

.nav-item:hover .nav-parent::after {
  width: 100%;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(58,50,56,.12);
  padding: 8px 0;
  min-width: 172px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  border: 1px solid var(--color-border);
  z-index: 200;
}

.nav-submenu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--color-white);
  border-left: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
}

.nav-item:hover .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-submenu li {
  list-style: none;
}

.nav-submenu li a {
  display: block;
  padding: 9px 20px;
  font-size: 0.82rem;
  color: var(--color-text-light) !important;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.3px;
}

.nav-submenu li a::after {
  display: none !important;
}

.nav-submenu li a:hover {
  background: var(--color-cream);
  color: var(--color-primary-dark) !important;
}

/* --- Hero Section --- */
/* PCもモバイルと同じ構造：写真＋波線＋タイトル/説明文/丸バッジ。
   丸バッジが画面最下部に来るよう、.heroを画面いっぱいのflex縦積みにし、
   写真(.hero-bg)がタイトルブロックの残り高さを自動で埋める。 */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 78px 0 0;
  background: var(--color-white);
}

.hero-bg {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.hero-bg img {
  /* 高さを.hero-bgの可変サイズに追従させず常にヒーロー全面分で固定することで、
     イントロアニメーション中にobject-fit:coverの拡大率が変化して画像が縮んで見える現象を防ぐ。
     下端をhero-bgの下端に揃えたまま、上側の余分な部分はhero-bgのoverflow:hiddenで隠れる。 */
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: calc(100svh - 78px);
  object-fit: cover;
  object-position: center bottom;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-bg img.active {
  opacity: 1;
}

.hero-bg img.hero-bg-img-baby-hand {
  /* この2枚目の画像はイントロアニメーション完了後にフェードインするため、
     1枚目のような「高さを固定して下端合わせ＋上をoverflow:hiddenで隠す」
     アニメーションちらつき防止策は不要。実際の.hero-bgの表示領域に高さを
     一致させることで、上部が意図せず隠れて顔が見切れる問題を防ぐ。
     （.hero-bg imgより詳細度を上げて確実に上書きする） */
  top: 0;
  bottom: auto;
  height: 100%;
  object-position: center top;
}

@media (min-width: 769px) {
  .hero-bg img.hero-bg-img-baby-hand {
    object-position: center bottom;
  }
}

.hero-wave {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 64px;
}

.hero-wave path {
  fill: var(--color-white);
}

.hero-wave-line {
  display: block;
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 200%;
  height: 64px;
  pointer-events: none;
  animation: hero-wave-line-flow 16s linear infinite;
  will-change: transform;
}

.hero-wave-line path {
  fill: none;
  stroke: var(--color-border);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

@keyframes hero-wave-line-flow {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0%); }
}

.hero-overlay,
.hero-decor {
  display: none;
}

.hero-decor-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(240, 184, 150, 0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero-decor-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(191, 162, 126, 0.1) 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
  animation: float 10s ease-in-out infinite reverse;
}

.hero-decor-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(242, 220, 107, 0.12) 0%, transparent 70%);
  top: 40%;
  right: 20%;
  animation: float 12s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -30px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: 6px 0 32px;
}

.hero-text {
  max-width: none;
  text-align: center;
  transform: translateY(-18px);
}

.hero-badge,
.hero-subtitle {
  display: none;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 500;
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 2;
}

.hero-desc-mobile {
  display: block;
  text-align: left;
  margin-bottom: 0;
  padding: 0 44px;
  font-size: 0.85rem;
  line-height: 1.7;
}

.hero-highlights {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.hero-highlight {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 50%;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text);
}

.hero-highlight-pink {
  background: var(--color-border);
}

.hero-highlight-yellow {
  background: var(--color-warm-gray);
}

.hero-highlight-blue {
  background: var(--color-border);
}

@media (min-width: 769px) {
  .hero-wave {
    height: 90px;
  }

  .hero-wave-line {
    height: 90px;
  }

  .hero-content {
    padding: 12px 0 0;
  }

  .hero-text {
    transform: translateY(-16px);
  }

  .hero-title {
    font-size: calc(2.2rem - 2pt);
    margin-bottom: 10px;
  }

  .hero-desc-mobile {
    max-width: 640px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .hero-highlights {
    gap: 16px;
    margin-top: 12px;
  }

  .hero-highlight {
    width: 112px;
    height: 112px;
    font-size: 0.8rem;
  }
}

/* --- Hero Intro Animation ---
   初回表示時：まず背景画像だけをヒーロー全面（下揃え）で見せ、
   その後、波線とタイトルブロックがフェードインしながら画像が上にスライドする。
   JS未実行時（.hero-introが付かない）は最初から通常レイアウトのまま表示される。
   終了間際0.5秒（82.353%〜100%）だけ、それ以前の1.5倍ゆっくりになるよう
   キーフレームを2段階の速度に分けている（全体4.25s、82.353%=3.5s地点）。 */
.hero-content {
  max-height: 380px;
}

.hero-intro .hero-content {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.hero-intro .hero-wave,
.hero-intro .hero-wave-line {
  opacity: 0;
}

.hero-reveal .hero-content {
  animation: hero-content-reveal 4.25s linear forwards;
}

.hero-reveal .hero-wave {
  animation: hero-wave-reveal 4.25s linear forwards;
}

.hero-reveal .hero-wave-line {
  animation: hero-wave-line-flow 16s linear infinite, hero-wave-reveal 4.25s linear forwards;
}

@keyframes hero-content-reveal {
  0%      { max-height: 0;       opacity: 0;     padding-top: 0;      padding-bottom: 0;  overflow: visible; }
  82.353% { max-height: 332.5px; opacity: 0.875; padding-top: 5.25px; padding-bottom: 28px; overflow: visible; }
  100%    { max-height: 380px;   opacity: 1;     padding-top: 6px;    padding-bottom: 32px; overflow: visible; }
}

@keyframes hero-wave-reveal {
  0%      { opacity: 0; }
  82.353% { opacity: 0.875; }
  100%    { opacity: 1; }
}

@media (min-width: 769px) {
  @keyframes hero-content-reveal {
    0%      { max-height: 0;       opacity: 0;     padding-top: 0;      padding-bottom: 0; overflow: visible; }
    82.353% { max-height: 332.5px; opacity: 0.875; padding-top: 10.5px; padding-bottom: 0; overflow: visible; }
    100%    { max-height: 380px;   opacity: 1;     padding-top: 12px;   padding-bottom: 0; overflow: visible; }
  }
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  box-shadow: 0 6px 25px rgba(158, 118, 118, 0.35);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(158, 118, 118, 0.5);
  color: var(--color-white);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--color-white);
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.hero-image {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero-image-wrapper img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 1;
  pointer-events: none;
}

/* Floating info cards on hero */
.hero-float-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-medium);
  z-index: 4;
}

.hero-float-card-1 {
  bottom: -20px;
  left: -40px;
  animation: floatCard 6s ease-in-out infinite;
}

.hero-float-card-2 {
  top: 40px;
  right: -30px;
  animation: floatCard 8s ease-in-out infinite reverse;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.float-card-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.float-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2px;
}

.float-card-text {
  font-size: 0.65rem;
  color: var(--color-text-muted);
}

/* --- News Section --- */
.news {
  position: relative;
  overflow: hidden;
  padding: var(--section-padding);
  background: var(--color-warm-gray);
}

.news-flower {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  max-width: none;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

.instagram-feed {
  padding: var(--section-padding);
  padding-top: 0;
  background: var(--color-white);
}

.insta-title-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 22px 0;
  margin-bottom: 40px;
  background: var(--color-primary-dark);
}

.insta-title-icon {
  display: block;
  width: 26px;
  height: 26px;
}

.insta-title-text {
  font-family: var(--font-accent);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-white);
}

.news-card {
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 28px;
}

.title-bar {
  position: relative;
  z-index: 1;
  background: var(--color-text-light);
  border-radius: 0;
  padding: 2px 5px;
  margin-bottom: 24px;
}

.title-bar-inner {
  display: block;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0;
  padding: 7px 20px;
  color: var(--color-white);
  font-family: var(--font-accent);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 3px;
}

.ds-schedule-subtitle {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-light);
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.ds-schedule-subtitle:empty {
  display: none;
}

@media (min-width: 769px) {
  .ds-schedule-subtitle-mobile { display: none; }
}
@media (max-width: 768px) {
  .ds-schedule-subtitle-pc { display: none; }
}

.news-list {
  position: relative;
  z-index: 1;
}

.news-loading,
.news-empty {
  text-align: center;
  padding: 40px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.news-more-btn:disabled {
  opacity: .5;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.news-item {
  border-bottom: 1px solid var(--color-border);
}

.news-item:first-child {
  border-top: 1px solid var(--color-border);
}

.news-item-header {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 20px 8px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: background 0.2s;
}

.news-item-header:hover {
  background: rgba(242, 220, 107, 0.1);
}

.news-item-date {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  letter-spacing: 1px;
  min-width: 90px;
}

.news-item-title {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.6;
  text-align: left;
}

.news-item-arrow {
  font-size: 1.3rem;
  color: var(--color-primary);
  transition: transform 0.35s ease;
  flex-shrink: 0;
  line-height: 1;
  font-weight: 300;
}

.news-item.open .news-item-arrow {
  transform: rotate(45deg);
}

.news-item-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.news-item.open .news-item-body {
  max-height: 800px;
}

.news-item-content {
  padding: 4px 8px 24px 110px;
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 2;
}

.news-item-content a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

@media (max-width: 600px) {
  .news-item-content {
    padding: 4px 8px 20px 8px;
  }
  .news-item-date {
    min-width: auto;
  }
}

@media (min-width: 769px) {
  .news-card {
    padding: 28px 32px 40px;
    border-radius: 32px;
  }

  .news-flower {
    width: 900px;
  }

  .title-bar {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px;
  }

  .title-bar-inner {
    font-size: 1rem;
    padding: 9px 24px;
    letter-spacing: 4px;
  }
}

/* --- Quick Links (Clinical Departments) Section --- */
.dept-links {
  position: relative;
  overflow: hidden;
  padding: 48px 0 56px;
  background: var(--color-cream);
}

.dept-links-leaf {
  position: absolute;
  left: -60px;
  bottom: 0;
  width: 260px;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

.dept-links-banner {
  position: relative;
  margin-bottom: 28px;
}

.dept-links-line {
  display: block;
  width: 100%;
  height: auto;
}

.dept-links-heading {
  position: absolute;
  left: 21%;
  top: 45%;
  transform: translateY(-50%);
  text-align: center;
}

.dept-links-en {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.62rem;
  letter-spacing: 0.5px;
  text-transform: none;
  color: var(--color-primary);
  margin-bottom: 2px;
  white-space: nowrap;
}

.dept-links-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.05rem;
  white-space: nowrap;
}

.dept-links-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.dept-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px 8px 22px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.dept-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
  border-color: var(--color-primary-light);
}

.dept-card-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  margin-bottom: 10px;
}

.dept-card-icon-postnatal {
  width: calc(24px * 1.2);
  height: calc(24px * 1.2);
}

.dept-card-en {
  font-family: var(--font-accent);
  font-size: 0.68rem;
  letter-spacing: 0.5px;
  color: var(--color-text-light);
  margin-bottom: 5px;
}

.dept-card-ja {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--color-text-light);
}

.dept-card-ja-sub {
  display: inline-block;
  margin-top: 3px;
  font-size: 0.744rem;
  font-weight: 400;
}

@media (min-width: 769px) {
  .dept-links {
    padding: 72px 0 80px;
  }
  .dept-links-banner {
    margin-bottom: 40px;
  }
  .dept-links-heading {
    left: 18%;
  }
  .dept-links-en {
    font-size: 0.78rem;
    letter-spacing: 1px;
    margin-bottom: 2px;
  }
  .dept-links-title {
    font-size: 1.6rem;
  }
  .dept-links-leaf {
    width: 360px;
    left: -80px;
    bottom: 0;
  }
  .dept-links-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  .dept-card {
    padding: 36px 22px 28px;
  }
  .dept-card-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
  }
  .dept-card-icon-postnatal {
    width: calc(34px * 1.2);
    height: calc(34px * 1.2);
  }
  .dept-card-en {
    font-size: 0.8rem;
  }
  .dept-card-ja {
    font-size: 1.3rem;
  }
  .dept-card-ja-sub {
    font-size: 0.882rem;
  }
}

/* --- Keyword Section --- */
.keyword-section {
  position: relative;
  overflow: hidden;
  padding: 48px 0 64px;
  background: var(--color-white);
}

.keyword-title {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.keyword-bar {
  width: 100%;
  height: 7px;
  background: var(--color-primary-light);
  border-radius: 0;
  margin-bottom: 30px;
}

.keyword-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 20px;
  row-gap: 4px;
}

.keyword-link {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.keyword-link:hover {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary);
}

.keyword-bird {
  position: absolute;
  right: -8px;
  bottom: 0;
  width: 130px;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 769px) {
  .keyword-section {
    padding: 76px 0 100px;
  }
  .keyword-title {
    font-size: 1.7rem;
    margin-bottom: 16px;
  }
  .keyword-bar {
    height: 9px;
    margin-bottom: 44px;
  }
  .keyword-grid {
    max-width: 780px;
    margin: 0 auto;
    column-gap: 64px;
    row-gap: 6px;
  }
  .keyword-link {
    font-size: 1rem;
    padding: 18px 0;
  }
  .keyword-bird {
    width: 220px;
    right: 10px;
  }
}

/* --- Photo Gallery Section --- */
.photo-gallery {
  width: 100%;
  overflow: hidden;
  background: var(--color-white);
}

.photo-gallery-track {
  display: flex;
  gap: 0;
  width: max-content;
  will-change: transform;
  touch-action: pan-y;
}

.photo-gallery-track.dragging {
  cursor: grabbing;
}

.photo-gallery-item {
  flex: 0 0 auto;
  width: clamp(160px, 26vw, 320px);
  aspect-ratio: 4 / 3;
  display: block;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.photo-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* --- Gallery Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 18, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
}

/* --- Feature Highlights Section --- */
/* --- Reasons to Choose Us (Points) Section --- */
.points {
  position: relative;
  overflow: hidden;
  padding: 56px 0 48px;
  background: var(--color-cream);
}

.points-leaf {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.points-leaf-1 {
  width: 280px;
  right: -70px;
  bottom: 4%;
}

.points-leaf-2 {
  width: 180px;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
}

.points-heading {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}

.points-line {
  display: block;
  width: 100%;
  height: auto;
}

.points-heading-text {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
}

.points-heading-text .section-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 2px;
  text-transform: none;
  margin-bottom: 2px;
}

.points-heading-text .section-title-jp {
  font-size: 1.05rem;
  margin-bottom: 0;
}

.points-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 30px 20px;
  margin-top: 40px;
}

.point-card {
  position: relative;
  display: block;
  width: 90%;
  margin: 0 auto;
  aspect-ratio: 258 / 204;
  background: url('images/index/features-icon.png') no-repeat center / 100% 100%;
  padding: 33px 9% 9%;
  overflow: hidden;
  text-align: center;
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.point-card:hover {
  transform: translateY(-4px);
}

.point-num {
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  transform: translateX(-5px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
  font-family: 'YuMincho', '游明朝', 'Noto Serif JP', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-text-light);
  z-index: 2;
}

.point-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-text-light);
}

.point-desc {
  font-size: 0.76rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.point-desc-note {
  display: inline-block;
  margin-top: 4px;
  color: var(--color-text-light);
  font-size: 0.72rem;
}

.point-arrow {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: var(--color-text-light);
  font-size: 0.7rem;
}

.points-jump {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: fit-content;
  margin: 28px 0 0 auto;
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 2px;
}

.points-jump-arrow {
  font-size: 1rem;
  line-height: 1;
}

@media (min-width: 769px) {
  .points {
    padding: 80px 0 64px;
  }

  .points-leaf-1 {
    width: 380px;
    right: -70px;
    bottom: 4%;
  }

  .points-leaf-2 {
    width: 260px;
    left: -40px;
    right: auto;
    top: auto;
    bottom: 4%;
    transform: scaleX(-1);
  }

  .points-heading {
    margin-bottom: 20px;
  }

  .points-heading-text .section-label {
    font-size: 0.78rem;
    letter-spacing: 3px;
  }

  .points-heading-text .section-title-jp {
    font-size: 1.6rem;
  }

  .points-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 32px;
    margin-top: 56px;
  }

  .point-card {
    padding-top: 42px;
  }

  .point-num {
    top: 6px;
    font-size: 2.2rem;
  }

  .point-title {
    font-size: 0.98rem;
  }

  .point-desc {
    font-size: 0.8rem;
  }

  .points-jump {
    font-size: 0.75rem;
    margin-top: 36px;
  }
}

/* --- About / Concept Section --- */
.about {
  padding: var(--section-padding);
  background: rgba(242, 220, 107, 0.15);
  position: relative;
  overflow: hidden;
}

.about-decor {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(158, 118, 118, 0.06) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-accent-light) 100%);
  z-index: -1;
}

.about-content .section-desc {
  margin-bottom: 32px;
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.about-list-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.about-list-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-accent-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Services Section --- */
.services {
  padding: var(--section-padding);
  background: var(--color-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  cursor: pointer;
}

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

.service-card-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card-image img {
  transform: scale(1.08);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(58, 50, 56, 0.7) 100%);
}

.service-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  border: 1px solid var(--glass-border);
}

.service-card-content {
  padding: 28px;
  background: var(--color-white);
}

.service-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--color-text);
}

.service-card-desc {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.service-card-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.service-card-link:hover {
  gap: 12px;
  color: var(--color-primary);
}

/* --- Benefits / Amenities Section --- */
.benefits {
  padding: var(--section-padding);
  background: linear-gradient(180deg, var(--color-cream) 0%, rgba(242, 220, 107, 0.18) 50%, var(--color-cream) 100%);
  position: relative;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 60px;
}

.benefit-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 0;
  text-align: center;
  transition: var(--transition);
  overflow: hidden;
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  background: var(--color-white);
}

.benefit-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.benefit-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.benefit-card:hover .benefit-img img {
  transform: scale(1.07);
}

.benefit-content {
  padding: 18px 18px 24px;
}

.benefit-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-text);
}

.benefit-desc {
  font-size: 0.8rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* --- Testimonials Section --- */
.testimonials {
  padding: var(--section-padding);
  background: rgba(242, 220, 107, 0.15);
}

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  transition: var(--transition);
  border: 1px solid transparent;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-border);
}

.testimonial-quote {
  font-size: 2.5rem;
  color: var(--color-primary-light);
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 2;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-accent-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.testimonial-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.testimonial-detail {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* --- Schedule Section --- */
.schedule {
  padding: var(--section-padding);
  background: var(--color-white);
}

.schedule-circle {
  display: inline-block;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.schedule-dash {
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* --- Doctor Schedule Section --- */
.doctor-schedule {
  padding: var(--section-padding);
  background: var(--color-white);
}

.doctor-schedule-tables {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 56px;
  text-align: left;
}

.ds-block-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--color-primary);
  letter-spacing: 0.5px;
}

.ds-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ds-table-wrap::-webkit-scrollbar {
  display: none;
}

/* カスタムスクロールバー（横スクロール可否を視覚的に示す） */
.ds-scrollbar {
  display: none;
  height: 6px;
  margin-top: 8px;
  border-radius: 3px;
  background: var(--color-warm-gray);
  overflow: hidden;
}

.ds-scrollbar.is-visible {
  display: block;
}

.ds-scrollbar-thumb {
  height: 100%;
  min-width: 32px;
  border-radius: 3px;
  background: var(--color-primary);
  transform: translateX(0);
}

.ds-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  min-width: 700px;
}

.ds-table thead {
  background: var(--color-white);
}

.ds-table th {
  padding: 12px 8px;
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  white-space: normal;
  min-width: var(--ds-cell-min-width, 0px);
  max-width: var(--ds-cell-max-width, 220px);
  overflow-wrap: break-word;
  border-bottom: 2px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

.ds-table th:first-child {
  width: 110px;
  background: var(--color-white);
  border-left: none;
}

.ds-table th:nth-child(2),
.ds-table td:nth-child(2) {
  border-left-width: 2px;
}

.ds-table td {
  padding: 12px 8px;
  font-size: 0.8rem;
  text-align: center;
  white-space: normal;
  min-width: var(--ds-cell-min-width, 0px);
  max-width: var(--ds-cell-max-width, 220px);
  overflow-wrap: break-word;
  border-bottom: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  color: var(--color-text-light);
  vertical-align: middle;
  line-height: 1.6;
}

.ds-table td:first-child { border-left: none; }
.ds-table tbody tr:last-child td { border-bottom: none; }

.ds-table td:first-child {
  font-weight: 700;
  color: var(--color-text);
  background: var(--color-white);
  white-space: normal;
  font-size: 0.82rem;
  line-height: 1.4;
}

.ds-table td.ds-subrow-label:first-child {
  font-weight: 400;
}

.ds-surgery {
  color: var(--color-text-muted);
  font-style: italic;
  font-size: 0.76rem;
}

.ds-hours-note {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.ds-dash { color: var(--color-text-muted); font-size: 1.1rem; }

/* 統合表（担当医師・予約可能日・混雑状況） */
.ds-table-combined td {
  vertical-align: top;
}

.ds-table-combined td:first-child {
  vertical-align: middle;
}

.ds-table-combined td:not(:first-child) {
  padding: 10px 6px;
}

.ds-doctor-name {
  font-size: 0.78rem;
}

/* 管理画面「表示設定」によるPC／モバイルごとの表示・非表示切り替え */
@media (min-width: 769px) {
  .doctor-hide-pc .ds-row-doctor { display: none; }
  .appt-hide-pc .ds-row-appt { display: none; }
  .cong-hide-pc .ds-row-doctor td:not(:first-child) { background: transparent !important; }
  .cong-hide-pc .ds-legend { display: none; }
}
@media (max-width: 768px) {
  .doctor-hide-mobile .ds-row-doctor { display: none; }
  .appt-hide-mobile .ds-row-appt { display: none; }
  .cong-hide-mobile .ds-row-doctor td:not(:first-child) { background: transparent !important; }
  .cong-hide-mobile .ds-legend { display: none; }
}

.ds-table td.ds-remarks-cell {
  white-space: normal;
  font-size: 0.76rem;
  line-height: 1.5;
}

/* 混雑状況の色見本（凡例） */
.ds-legend-swatch {
  display: inline-block;
  width: 32px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid var(--color-border);
}

.ds-legend-swatch-vacant     { background: var(--cong-vacant, #eaf3fb); }
.ds-legend-swatch-normal     { background: var(--cong-normal, #fdf1de); }
.ds-legend-swatch-congestion { background: var(--cong-congestion, #fbe4e4); }

/* 凡例 */
.ds-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  justify-content: flex-start;
  align-items: center;
}

.ds-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--color-text-light);
}

/* 注意書き */
.ds-notes {
  margin-top: 32px;
  padding: 0;
  text-align: left;
}

.ds-notes ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ds-notes li {
  font-size: 0.8rem;
  color: var(--color-text-light);
  padding-left: 14px;
  position: relative;
  line-height: 1.7;
}

.ds-notes li::before {
  content: '※';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-size: 0.76rem;
}

/* --- Monthly Schedule --- */
.monthly-schedule {
  padding: var(--section-padding);
  background: var(--color-white);
}

.monthly-cal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.monthly-cal {
  background: var(--color-white);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.mcal-title {
  background: var(--color-white);
  color: var(--color-text-light);
  text-align: center;
  padding: 13px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--color-border);
}

div.mcal-title {
  border-bottom: none;
}

button.mcal-title {
  width: 100%;
  border: none;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.mcal-title-arrow {
  display: none;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.mcal-body {
  overflow: hidden;
}

.mcal-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.mcal-table col {
  width: 14.285714%;
}

.mcal-table thead th {
  padding: 8px 2px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white);
}

.mcal-th-sat { color: var(--cal-sat, #3b9eda) !important; }
.mcal-th-sun { color: var(--cal-sun, #e05050) !important; }

.mcal-table td {
  padding: 5px 3px;
  text-align: center;
  border: 1px solid var(--color-border);
  vertical-align: top;
  line-height: 1.3;
}

.mcal-table td.mcal-empty {
  background: var(--color-white);
}

.mcal-num {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
}

.mcal-num-sat { color: var(--cal-sat, #3b9eda); }
.mcal-num-sun { color: var(--cal-sun, #e05050); }

.mcal-st {
  display: block;
  font-size: 0.62rem;
  line-height: 1.4;
  margin-top: 1px;
}

.mcal-st-open    { color: var(--color-text-muted); }
.mcal-st-gozen   { color: var(--color-text-light); }
.mcal-st-sat     { color: var(--cal-sat, #3b9eda); font-weight: 700; }
.mcal-st-sun     { color: var(--cal-sun, #e05050); font-weight: 700; }
.mcal-st-holiday { color: var(--cal-sun, #e05050); font-weight: 700; }
.mcal-st-closed  { color: var(--cal-closed, #b0a8ad); }

@media (max-width: 680px) {
  .monthly-cal-grid {
    grid-template-columns: 1fr;
  }

  .monthly-cal-collapsible .mcal-title {
    cursor: pointer;
  }

  .monthly-cal-collapsible .mcal-title-arrow {
    display: inline-block;
  }

  .monthly-cal-collapsible .mcal-body {
    max-height: 0;
    transition: max-height 0.35s ease;
  }

  .monthly-cal-collapsible.open .mcal-body {
    max-height: 600px;
  }

  .monthly-cal-collapsible.open .mcal-title-arrow {
    transform: rotate(-135deg);
  }
}

/* --- Access Section --- */
.access {
  position: relative;
  overflow: hidden;
  padding: var(--section-padding);
  background: var(--color-white);
}

.access-leaf {
  position: absolute;
  left: -60px;
  bottom: 0;
  width: 260px;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

.access-heading {
  position: relative;
  margin-bottom: 28px;
}

.access-line {
  display: block;
  width: 100%;
  height: auto;
}

.access-heading-text {
  position: absolute;
  top: 45%;
  left: 40%;
  transform: translateY(-50%);
  text-align: center;
}

.access-heading-text .section-label {
  font-size: 0.62rem;
  text-transform: none;
  margin-bottom: 2px;
}

.access-heading-text .section-title-jp {
  font-size: 1.05rem;
  margin-bottom: 0;
}

.access-jump {
  position: absolute;
  top: 0;
  right: 2%;
  margin: 0;
}

.access-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  height: 320px;
  margin-bottom: 32px;
}

.access-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.access-info {
  display: flex;
  flex-direction: column;
}

.access-clinic-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: -4px;
}

.access-block {
  padding: 18px 0;
}

.access-block:first-of-type {
  padding-top: 0;
}

.access-block-divided {
  border-top: 1px solid var(--color-border);
}

.access-block p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.85;
}

.access-block p a {
  color: var(--color-primary-dark);
  font-weight: 600;
}

.access-block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 10px;
}

.access-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.access-detail-link {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--color-primary-dark);
  text-decoration: underline;
  white-space: nowrap;
}

.access-detail-link:hover {
  opacity: 0.7;
}

@media (min-width: 769px) {
  .access-leaf {
    width: 360px;
    left: -80px;
  }

  .access-heading-text {
    left: 26%;
  }

  .access-heading-text .section-label {
    font-size: 0.78rem;
    letter-spacing: 3px;
  }

  .access-heading-text .section-title-jp {
    font-size: 1.6rem;
  }

  .access-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
    gap: 48px;
  }

  .access-map {
    height: 440px;
    margin-bottom: 0;
  }

  .access-clinic-name {
    font-size: 1.2rem;
  }

  .access-block p {
    font-size: 0.9rem;
  }

  .access-block-title {
    font-size: 1rem;
  }
}

/* --- CTA Section --- */
.cta {
  padding: 80px 0;
  background: rgba(242, 220, 107, 0.15);
  position: relative;
  overflow: hidden;
}

.cta-decor {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cta-decor-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(158, 118, 118, 0.06) 0%, transparent 70%);
  top: -150px;
  right: -100px;
}

.cta-decor-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(191, 162, 126, 0.06) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-content .section-label {
  color: var(--color-primary);
}

.cta-content .section-title {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 12px;
}

.cta-content .section-desc {
  color: var(--color-text-light);
  margin: 0 auto 40px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  transition: var(--transition);
}

.cta-phone:hover {
  background: rgba(158, 118, 118, 0.06);
  border-color: var(--color-primary);
  transform: translateY(-3px);
  color: var(--color-primary-dark);
}

.cta-phone-number {
  font-size: 1.3rem;
  font-weight: 700;
  font-family: var(--font-accent);
}

/* --- Footer --- */
/* フッターの装飾が上に飛び出す分、直前のセクションと重ならないよう余白を確保 */
body > section:has(+ .footer),
body > main:has(+ .footer),
body > div:has(+ .footer) {
  padding-bottom: 200px;
}

.footer {
  position: relative;
  background: var(--color-primary-dark);
  padding: 12px 0 18px;
}

.footer-palm {
  position: absolute;
  bottom: 100%;
  right: 16px;
  width: 360px;
  height: auto;
  pointer-events: none;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--color-white);
}

.footer-policy-link {
  color: var(--color-white);
  text-decoration: none;
  transition: var(--transition);
}
.footer-policy-link:hover {
  text-decoration: underline;
}

@media (min-width: 769px) {
  .insta-title-bar {
    padding: 30px 0;
    gap: 14px;
  }

  .insta-title-icon {
    width: 32px;
    height: 32px;
  }

  .insta-title-text {
    font-size: 1.15rem;
    letter-spacing: 3px;
  }

  .footer {
    padding: 20px 0 28px;
  }

  .footer-bottom {
    gap: 12px;
    font-size: 0.85rem;
  }
}

/* ── モバイルCTAバー ── */
.mobile-cta-bar {
  display: none;
}
@media (max-width: 768px) {
  body { padding-bottom: 44px; }
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 44px;
    z-index: 999;
    box-shadow: 0 -2px 12px rgba(58,50,56,.18);
  }
  .mobile-cta-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: .88rem;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    letter-spacing: 1px;
  }
  .mobile-cta-tel { background: var(--color-primary); font-size: .8rem; letter-spacing: .5px; }
  .mobile-cta-rsv { background: var(--color-primary-dark); }
}

/* ── フッター告知 ── */
.footer-notice {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 14px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-cream);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 999;
    overflow-y: auto;
    padding: 80px 24px 40px;
  }

  .nav-links.active {
    display: flex;
    pointer-events: auto;
    /* 下部の電話/予約バー(z-index:999)より確実に前面に出るよう明示 */
    z-index: 1000;
  }

  .nav-links-clinic-name {
    display: block;
    width: 100%;
    text-align: center;
    font-family: var(--font-accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-accent);
    text-decoration: none;
    padding-bottom: 20px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* スクロール時：ハンバーガーメニューのみ右上に吸着表示 */
  .header.scrolled::before {
    opacity: 0;
  }

  .header.scrolled {
    box-shadow: none;
    /* 背景が透明になった状態のヘッダーが、下にあるジャンプナビのクリックを奪わないようにする */
    pointer-events: none;
  }

  .header.scrolled .logo {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .header.scrolled .mobile-menu-btn {
    position: fixed;
    top: 14px;
    right: 20px;
    background: var(--color-white);
    border-radius: 16px;
    padding: 8px 12px;
    box-shadow: 0 4px 16px rgba(58, 50, 56, 0.15);
    pointer-events: auto;
  }

  .header.scrolled .header-clinic-name {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 38px;
    line-height: 38px;
    padding-right: 88px;
    text-align: center;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-accent);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--color-accent);
    text-decoration: none;
    pointer-events: auto;
    z-index: 998;
  }

  /* Mobile dropdown */
  .nav-item {
    width: 100%;
    text-align: center;
  }

  .nav-parent {
    font-size: 1.1rem;
    justify-content: center;
    width: 100%;
    padding: 4px 0;
    outline: none;
  }

  .nav-parent::after {
    display: none;
  }

  .nav-submenu {
    position: static !important;
    transform: none !important;
    left: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none;
    border: none;
    border-radius: 8px;
    background: var(--color-warm-gray);
    padding: 4px 0;
    margin: 8px 0 0 0;
    min-width: 0;
    width: 100%;
    display: none;
  }

  .nav-submenu::before {
    display: none;
  }

  .nav-item.open .nav-submenu {
    display: block;
  }

  .nav-submenu li {
    list-style: none;
    width: 100%;
  }

  .nav-submenu li a {
    font-size: 0.95rem !important;
    text-align: center !important;
    padding: 10px 20px;
    white-space: normal;
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-float-card {
    display: none;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-title-jp {
    font-size: 1.3rem;
  }

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

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .testimonials-slider {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.4rem;
  }

  .points-grid {
    gap: 22px 10px;
  }

  .point-card {
    padding: 33px 12px 34px;
  }

  .point-title {
    font-size: 0.82rem;
  }

  .point-desc {
    font-size: 0.7rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* --- Smooth Scroll Target Offset --- */
section[id] {
  scroll-margin-top: 80px;
}

/* --- Selection Color --- */
::selection {
  background: var(--color-primary-light);
  color: var(--color-text);
}
