/* =====================================================
   Sanagawa Dental Theme - main.css
   ===================================================== */

/* =====================================================
   CSS VARIABLES
   ===================================================== */
:root {
  --primary: #6EC1E4;
  --primary-dark: #4BA8D1;
  --primary-light: #e8f4fa;
  --accent: #FBCC04;
  --accent-dark: #98781B;
  --accent-light: #FCE27B;
  --green: #61CE70;
  --green-dark: #1DA243;
  --text: #54595F;
  --text-muted: #7A7A7A;
  --text-light: #999999;
  --border: #e8e2d0;
  --white: #ffffff;
  --bg: #FFF7DF;
  --bg-alt: #FFF9DE;
  --bg-white: #ffffff;
  --bg-warm: #FFBC7D;
  --serif: 'Noto Serif JP', serif;
  --sans: 'Noto Sans JP', sans-serif;
  --cursive: 'Corinthia', cursive;
  --round: 'Kiwi Maru', serif;
  --display: 'Anton', sans-serif;
  --transition: 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 40px rgba(0,0,0,0.10);
  --radius: 8px;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 600; line-height: 1.4; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* =====================================================
   LAYOUT
   ===================================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* =====================================================
   UTILITY
   ===================================================== */
.label-en {
  display: block;
  font-family: var(--cursive);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 2.4px;
  line-height: 0.8;
  margin-bottom: 0.15em;
}
.btn-contact {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: var(--text);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(251,204,4,0.3);
}
.btn-contact:hover { background: var(--accent-light); color: var(--text); transform: translateY(-1px); }
.btn-outline {
  display: inline-block;
  padding: 12px 32px;
  border: 2px solid var(--accent-dark);
  color: var(--accent-dark);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--accent); color: var(--text); border-color: var(--accent); }
.btn-back { margin-top: 3rem; }

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1rem;
}
.site-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.site-logo:hover { opacity: 0.85; }
.site-logo-icon { width: 45px; height: 45px; object-fit: contain; }
.site-logo-text {
  font-family: var(--round);
  font-size: 1.4rem;
  font-weight: 500;
  color: #f4bf5a;
  letter-spacing: 0.03em;
  text-shadow: 0 0 1px rgba(0,0,0,0.15);
}

/* Desktop Nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}
.primary-nav > a,
.primary-nav > .nav-dropdown > .nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  height: 80px;
  padding: 0 1rem;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--transition);
  text-decoration: none;
}
.primary-nav > a:hover,
.primary-nav > .nav-dropdown > .nav-dropdown-toggle:hover { color: var(--accent-dark); }
.primary-nav > a.current-menu-item,
.primary-nav > .nav-dropdown > .nav-dropdown-toggle.current-menu-item { color: var(--accent-dark); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.75rem 0;
  min-width: 200px;
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-link {
  display: block;
  padding: 0.6rem 1.25rem;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--transition);
}
.nav-dropdown-link:hover { background: rgba(0,0,0,0.03); color: var(--accent-dark); }

/* Header CTA */
.header-cta { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.header-phone { text-align: center; }
.header-phone-label { display: block; font-family: var(--serif); font-size: 13px; font-weight: 600; color: #0c4e47; letter-spacing: 0.05em; line-height: 1; margin-bottom: 0; }
.header-phone-number { font-family: var(--serif); font-size: 24px; font-weight: 700; color: #0c4e47; letter-spacing: 0.06em; line-height: 1.2; }
.header-phone-number:hover { color: #0c4e47; }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  z-index: 1001;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text);
  transition: all var(--transition);
}
.menu-toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =====================================================
   MOBILE MENU
   ===================================================== */
.mobile-menu {
  position: fixed;
  top: 0; right: -100%; width: 85%; max-width: 400px; height: 100vh;
  background: var(--text);
  color: var(--white);
  z-index: 1000;
  transition: right var(--transition);
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.mobile-menu.is-open { right: 0; }
.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mobile-logo-text {
  font-family: var(--round);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
}
.mobile-menu-close {
  background: none; border: none; color: rgba(255,255,255,0.6); cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:hover { color: var(--white); }
.mobile-nav { flex: 1; padding: 1rem 0; }
.mobile-nav-item a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  transition: all var(--transition);
}
.mobile-nav-item a:hover { background: rgba(255,255,255,0.05); color: var(--white); }

/* Mobile accordion */
.mobile-nav-accordion-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: none; border: none;
  color: rgba(255,255,255,0.85);
  font-size: 15px; font-family: var(--sans);
  cursor: pointer;
  transition: all var(--transition);
}
.mobile-nav-accordion-toggle:hover { background: rgba(255,255,255,0.05); color: var(--white); }
.mobile-nav-accordion-toggle svg { transition: transform var(--transition); }
.mobile-nav-accordion-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-nav-accordion-content {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(0,0,0,0.2);
}
.mobile-nav-accordion-content a {
  display: block;
  padding: 0.5rem 2rem;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  transition: all var(--transition);
}
.mobile-nav-accordion-content a:hover { color: var(--white); background: rgba(255,255,255,0.05); }

/* Mobile menu footer */
.mobile-menu-footer {
  display: flex; gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  text-align: center;
  transition: all var(--transition);
}
.mobile-menu-btn-call { background: rgba(255,255,255,0.1); color: var(--white); }
.mobile-menu-btn-call:hover { background: rgba(255,255,255,0.2); color: var(--white); }
.mobile-menu-btn-web { background: var(--primary); color: var(--white); }
.mobile-menu-btn-web:hover { background: var(--primary-dark); color: var(--white); }

/* =====================================================
   FLOATING CTA (MOBILE)
   ===================================================== */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  justify-content: center; gap: 10px;
}
.floating-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  flex: 1; max-width: 200px;
  padding: 10px;
  border-radius: 50px;
  font-size: 13px; font-weight: 600;
  text-align: center;
  transition: all var(--transition);
}
.floating-btn-call { background: var(--accent); color: var(--text); }
.floating-btn-call:hover { background: var(--accent-dark); color: var(--text); }
.floating-btn-web { background: var(--primary); color: var(--white); }
.floating-btn-web:hover { background: var(--primary-dark); color: var(--white); }

/* =====================================================
   BACK TO TOP
   ===================================================== */
.back-to-top {
  position: fixed;
  bottom: 80px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
  z-index: 998;
  box-shadow: var(--shadow-sm);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* =====================================================
   PAGE HEADER
   ===================================================== */
.page-header {
  padding: 120px 0 40px;
  background: var(--bg-alt);
  text-align: center;
}
.page-header .label-en { margin-bottom: 0.25em; }
.page-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text);
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  height: 70vh;
  min-height: 450px;
  max-height: 700px;
  margin-top: 80px;
  overflow: hidden;
}
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.is-active {
  opacity: 1;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.3);
  padding: 2rem;
}
.hero-content {
  text-align: center;
}
.hero-heart-logo {
  width: clamp(100px, 18vw, 180px);
  margin: 0 auto 1rem;
  filter: drop-shadow(0px 0px 13px #000000);
}
.hero-clinic-name {
  color: var(--white);
  font-family: var(--round);
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  margin: 0 0 0.75rem;
  text-shadow: 0px 0px 13px #000000;
}
.hero-subtitle {
  color: var(--white);
  font-family: var(--round);
  font-size: clamp(0.95rem, 2.5vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 0;
  text-shadow: 0px 0px 13px #000000;
}

/* =====================================================
   SECTIONS (共通)
   ===================================================== */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--accent-dark);
  letter-spacing: 0.05em;
}
.section-header p { color: var(--text-muted); margin-bottom: 0.25em; }

.catchcopy-section { padding: 3rem 0; text-align: center; background: var(--bg-alt); }
.catchcopy-heading { font-size: clamp(1.25rem, 3vw, 1.75rem); color: var(--text); }

.calendar-section { padding: 4rem 0; background: var(--bg); }

/* =====================================================
   DENTAL CALENDAR — 本番デザイン再現
   ===================================================== */
.dental-calendar-wrapper {
  max-width: 100%;
}
.dental-calendar-container {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid #ddd;
}

/* タイトルバー（ダーク） */
.dental-calendar-container .calendar-header {
  background: #333;
  text-align: center;
  padding: 14px 20px;
  margin-bottom: 0;
}
.dental-calendar-container .calendar-header h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  letter-spacing: 0.1em;
}

/* カレンダー本体の余白 */
.dental-calendar-container .calendar-content {
  padding: 24px 20px 20px;
}

/* 3ヶ月横並び */
.dental-calendar-wrapper .multi-calendar-container {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
  width: 100%;
}
.dental-calendar-wrapper .calendar-month {
  flex: 1;
  max-width: 100%;
  min-width: 0;
}

/* FullCalendar v6 基本 */
.dental-calendar-wrapper .fc {
  font-family: var(--sans);
  font-size: 13px;
}

/* 月タイトル */
.dental-calendar-wrapper .fc .fc-toolbar {
  margin-bottom: 8px !important;
  padding: 0;
  background: none;
}
.dental-calendar-wrapper .fc .fc-toolbar-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text) !important;
}

/* 曜日ヘッダー */
.dental-calendar-wrapper .fc .fc-col-header-cell {
  padding: 6px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: #f5f5f5;
  border-color: #ddd;
}
.dental-calendar-wrapper .fc .fc-col-header-cell a {
  color: inherit;
  text-decoration: none;
}
.dental-calendar-wrapper .fc .fc-col-header-cell.fc-day-sun,
.dental-calendar-wrapper .fc .fc-col-header-cell.fc-day-sun a { color: #e74c3c; }
.dental-calendar-wrapper .fc .fc-col-header-cell.fc-day-sat,
.dental-calendar-wrapper .fc .fc-col-header-cell.fc-day-sat a { color: #3498db; }

/* 日付セル */
.dental-calendar-wrapper .fc .fc-daygrid-day {
  border-color: #e8e8e8;
}
.dental-calendar-wrapper .fc .fc-daygrid-day-frame {
  min-height: 56px;
  padding: 1px;
}
.dental-calendar-wrapper .fc .fc-daygrid-day-number {
  font-size: 13px;
  font-weight: 500;
  padding: 3px 5px;
  color: var(--text);
  text-decoration: none;
}
.dental-calendar-wrapper .fc .fc-day-today {
  background: #fffde7 !important;
}
.dental-calendar-wrapper .fc .fc-day-other .fc-daygrid-day-number {
  color: #ccc;
}

/* 日曜・土曜の日付色 */
.dental-calendar-wrapper .fc .fc-day-sun .fc-daygrid-day-number { color: #e74c3c; }
.dental-calendar-wrapper .fc .fc-day-sat .fc-daygrid-day-number { color: #3498db; }

/* イベントブロック（本番と同じフラットスタイル） */
.dental-calendar-wrapper .fc .fc-event {
  border-radius: 2px;
  padding: 1px 3px;
  font-size: 10px;
  font-weight: 700;
  margin: 1px 2px;
  line-height: 1.4;
  border: none !important;
  cursor: default;
}
.dental-calendar-wrapper .fc .fc-event .fc-event-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 休診日系 = オレンジ（本番と同じ） */
.dental-calendar-wrapper .fc .fc-event.clinic-closed,
.dental-calendar-wrapper .fc .fc-event.holiday,
.dental-calendar-wrapper .fc .fc-event.year-end-closed,
.dental-calendar-wrapper .fc .fc-event.new-year-closed {
  background: #ffa726 !important;
  color: #fff !important;
}
/* 午前休 = ピンク/赤系 */
.dental-calendar-wrapper .fc .fc-event.morning-closed {
  background: #ef5350 !important;
  color: #fff !important;
}
/* 早終了 = グリーン（本番と同じ） */
.dental-calendar-wrapper .fc .fc-event.early-close {
  background: #66bb6a !important;
  color: #fff !important;
}
/* 午後休 = ブルー */
.dental-calendar-wrapper .fc .fc-event.afternoon-closed {
  background: #42a5f5 !important;
  color: #fff !important;
}

/* テーブルボーダー */
.dental-calendar-wrapper .fc table { border-collapse: collapse; }
.dental-calendar-wrapper .fc .fc-scrollgrid { border-color: #ddd !important; }
.dental-calendar-wrapper .fc .fc-scrollgrid-section > td { border-color: #ddd; }
.dental-calendar-wrapper .fc th,
.dental-calendar-wrapper .fc td { border-color: #e8e8e8; }

/* 凡例（本番と同じ横並び） */
.dental-calendar-wrapper .legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 16px 20px 0;
}
.dental-calendar-wrapper .legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.dental-calendar-wrapper .legend-color {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
}
.dental-calendar-wrapper .legend-color.holiday { background: #ffa726; }
.dental-calendar-wrapper .legend-color.clinic-closed { background: #ffa726; }
.dental-calendar-wrapper .legend-color.early-close { background: #66bb6a; }
.dental-calendar-wrapper .legend-color.morning-closed { background: #ef5350; }
.dental-calendar-wrapper .legend-color.afternoon-closed { background: #42a5f5; }

/* モバイル月変更ボタン */
.dental-calendar-wrapper .mobile-month-nav {
  display: none;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0;
  padding: 0 4px;
}
.dental-calendar-wrapper .mobile-month-nav button {
  background: #555;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sans);
  transition: background var(--transition);
}
.dental-calendar-wrapper .mobile-month-nav button:hover { background: #333; }
.dental-calendar-wrapper .mobile-month-nav button:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.5;
}
.dental-calendar-wrapper .mobile-month-nav .current-month {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  font-family: var(--serif);
}

/* モバイル: 1ヶ月表示 */
@media (max-width: 768px) {
  .dental-calendar-container .calendar-content { padding: 16px 12px 12px; }
  .dental-calendar-wrapper .multi-calendar-container { flex-direction: column; gap: 0; }
  .dental-calendar-wrapper .calendar-month { max-width: 100%; min-width: 100%; }
  .dental-calendar-wrapper .calendar-month:nth-child(2),
  .dental-calendar-wrapper .calendar-month:nth-child(3) { display: none; }
  .dental-calendar-wrapper .mobile-month-nav { display: flex; }
  .dental-calendar-wrapper .legend { gap: 12px; padding: 12px 12px 0; }
  .dental-calendar-wrapper .legend-item { font-size: 12px; }
  .dental-calendar-wrapper .fc .fc-event { font-size: 9px; }
}
.concern-section { padding: 5rem 0; background: var(--bg-white); }
.three-s-section { padding: 5rem 0; background: var(--bg-alt); }
.medical-section { padding: 5rem 0; background: var(--bg-white); }
.doctor-section { padding: 5rem 0; background: var(--bg-alt); }
.features-section { padding: 5rem 0; background: var(--bg-white); }
.cases-home-section { padding: 5rem 0; background: var(--bg-alt); }
.voices-home-section { padding: 5rem 0; background: var(--bg-white); }
.calendar-section { padding: 5rem 0; background: var(--bg-alt); }
.access-section { padding: 5rem 0; background: var(--bg-white); }
.instagram-section { padding: 5rem 0; background: var(--bg-alt); }
.banner-section { padding: 3rem 0; background: var(--bg-white); }

.section-more { text-align: center; margin-top: 2.5rem; }
.section-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 0.25em; }
.no-posts-home { text-align: center; color: var(--text-muted); padding: 2rem 0; }

/* =====================================================
   CONCERN (お悩み)
   ===================================================== */
.concern-content { display: flex; align-items: center; gap: 3rem; }
.concern-text { flex: 1; }
.concern-image { flex: 0 0 35%; max-width: 350px; }
.concern-heading-top {
  font-family: var(--round);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--accent-dark);
  margin-bottom: 1.5rem;
}
.concern-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
  margin-bottom: 2rem;
}
.concern-list li {
  font-size: 15px;
  color: var(--text);
  padding-left: 1.5em;
  position: relative;
}
.concern-list li::before {
  content: '\\2714';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.concern-heading { font-size: clamp(1.1rem, 2.5vw, 1.5rem); line-height: 1.8; margin-bottom: 1rem; }
.concern-highlight { color: var(--accent); font-weight: 700; }
.concern-desc { color: var(--text-muted); line-height: 2; font-size: 14px; }

/* =====================================================
   3つのS
   ===================================================== */
.three-s-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.three-s-card {
  background: var(--white);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 11px 11px 0px 0px var(--accent-dark);
  transition: all var(--transition);
}
.three-s-card:hover { transform: translate(-3px, -3px); box-shadow: 14px 14px 0px 0px var(--accent-dark); }
.three-s-card-img { overflow: hidden; }
.three-s-card-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.4s; }
.three-s-card:hover .three-s-card-img img { transform: scale(1.05); }
.three-s-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.three-s-card-en {
  font-family: var(--cursive);
  font-size: 1.8rem;
  color: var(--accent-dark);
  line-height: 1;
  display: block;
  margin-bottom: 0.25rem;
}
.three-s-card-title { font-family: var(--round); font-size: 1rem; color: var(--text); margin-bottom: 0.5rem; }
.three-s-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* =====================================================
   MEDICAL GRID (診療案内) — リスト型
   ===================================================== */
.medical-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.medical-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
}
.medical-card:hover {
  background: var(--bg-alt);
  border-left-color: var(--accent-dark);
  transform: translateX(4px);
}
.medical-card-icon { flex-shrink: 0; width: 56px; height: 56px; }
.medical-card-icon img { width: 100%; height: 100%; object-fit: contain; }
.medical-card-body { flex: 1; min-width: 0; }
.medical-card-label {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.medical-card-desc { font-size: 12px; color: var(--text-muted); margin: 0; line-height: 1.5; }
.medical-card-arrow {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--accent-dark);
  transition: transform var(--transition);
}
.medical-card:hover .medical-card-arrow { transform: translateX(3px); }

/* =====================================================
   DOCTOR (歯科医師)
   ===================================================== */
.doctor-profile { display: flex; gap: 3rem; align-items: flex-start; margin-bottom: 3rem; }
.doctor-profile-image { flex: 0 0 35%; max-width: 350px; }
.doctor-profile-image img { width: 100%; box-shadow: 11px 11px 0px 0px var(--accent-dark); }
.doctor-profile-info { flex: 1; }
.doctor-role { display: inline-block; font-family: var(--serif); font-size: 13px; color: var(--accent-dark); border: 1px solid var(--accent-dark); padding: 2px 12px; margin-bottom: 0.5rem; }
.doctor-name { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--text); margin-bottom: 0; }
.doctor-name-en { font-family: var(--cursive); font-size: 1.3rem; color: var(--accent-dark); margin-bottom: 1.5rem; }
.doctor-dl { margin-bottom: 1.5rem; }
.doctor-dl dt { font-family: var(--serif); font-size: 14px; font-weight: 700; color: var(--accent-dark); margin-bottom: 0.25rem; padding-top: 1rem; }
.doctor-dl dt:first-child { padding-top: 0; }
.doctor-dl dd { margin: 0; font-size: 14px; line-height: 1.8; color: var(--text-muted); }
.doctor-message {
  font-size: 14px; line-height: 1.9; color: var(--text);
  padding: 1rem 1.25rem;
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  margin-bottom: 1.5rem;
}
.doctor-others { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.doctor-other-card img { width: 100%; }

/* =====================================================
   FEATURES (7つの特徴) — テキスト化
   ===================================================== */
.features-grid { display: flex; flex-direction: column; gap: 0; }
.feature-card {
  display: flex;
  align-items: stretch;
  min-height: 280px;
}
.feature-card.feature-reverse { flex-direction: row-reverse; }
.feature-card-photo {
  flex: 0 0 45%;
  overflow: hidden;
}
.feature-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.feature-card-body {
  flex: 1;
  padding: 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}
.feature-card.feature-reverse .feature-card-body { background: var(--bg-alt); }
.feature-card-num {
  font-family: var(--cursive);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.feature-card-title {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.feature-card-desc {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-muted);
  margin: 0;
}

/* =====================================================
   ACCESS — 横並び
   ===================================================== */
.access-content { display: flex; gap: 2rem; align-items: flex-start; }
.access-map { flex: 1; border-radius: 0; overflow: hidden; box-shadow: 11px 11px 0px 0px var(--accent-dark); }
.access-map iframe { width: 100%; height: 350px; border: 0; display: block; }
.access-detail { flex: 0 0 35%; }
.access-detail h3 { font-family: var(--serif); font-size: 1.1rem; margin-bottom: 1rem; color: var(--text); }
.access-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.access-table th { width: 80px; padding: 0.75rem 0; font-weight: 600; color: var(--accent-dark); vertical-align: top; border-bottom: 1px solid var(--border); }
.access-table td { padding: 0.75rem 0 0.75rem 0.75rem; color: var(--text); border-bottom: 1px solid var(--border); line-height: 1.6; }

/* =====================================================
   INSTAGRAM
   ===================================================== */
.instagram-icon { margin-bottom: 0.5rem; }
.instagram-icon img { margin: 0 auto; }
.instagram-desc { color: var(--text-muted); text-align: center; }

/* =====================================================
   BANNER LINKS
   ===================================================== */
.banner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.banner-link { display: block; border-radius: 0; overflow: hidden; transition: all var(--transition); box-shadow: 11px 11px 0px 0px var(--accent-dark); }
.banner-link:hover { transform: translate(-3px, -3px); box-shadow: 14px 14px 0px 0px var(--accent-dark); }
.banner-link img { width: 100%; }

/* =====================================================
   ACCESS MAP
   ===================================================== */
.access-map { margin-bottom: 1.5rem; border-radius: var(--radius); overflow: hidden; }
.access-map iframe { width: 100%; height: 400px; border: 0; }
.access-info { text-align: center; }
.access-info p { margin-bottom: 0.25em; }

/* =====================================================
   ARTICLE CONTENT
   ===================================================== */
.article-content {
  max-width: 800px;
  margin: 2rem auto;
  padding-bottom: 3rem;
}
.article-content h2 { font-size: 1.5rem; margin: 2em 0 0.75em; padding-bottom: 0.5em; border-bottom: 2px solid var(--primary-light); }
.article-content h3 { font-size: 1.25rem; margin: 1.5em 0 0.5em; }
.article-content p { line-height: 2; }
.article-content img { border-radius: var(--radius); margin: 1.5em 0; }
.article-content ul, .article-content ol { padding-left: 1.5em; margin-bottom: 1.5em; }
.article-content li { margin-bottom: 0.5em; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.article-content th, .article-content td { border: 1px solid var(--border); padding: 0.75em 1em; text-align: left; }
.article-content th { background: var(--bg-alt); font-weight: 500; }

/* =====================================================
   BLOG CARDS
   ===================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 2rem 0; }
.blog-card {
  background: var(--white);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 11px 11px 0px 0px var(--accent-dark);
  transition: all var(--transition);
}
.blog-card:hover { transform: translate(-3px, -3px); box-shadow: 14px 14px 0px 0px var(--accent-dark); }
.blog-card-link { display: block; color: var(--text); }
.blog-card-thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.blog-card-thumb-placeholder { width: 100%; aspect-ratio: 16/10; background: var(--bg-alt); }
.blog-card-body { padding: 1rem 1.25rem; }
.blog-card-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 12px; color: var(--text-light); margin-bottom: 0.5rem; }
.blog-card-cat { background: var(--primary-light); color: var(--primary-dark); padding: 2px 8px; border-radius: 4px; font-size: 11px; }
.blog-card-title { font-size: 15px; font-weight: 600; margin-bottom: 0.5em; line-height: 1.5; }
.blog-card-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* =====================================================
   CASE CARDS (治療実績)
   ===================================================== */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 2rem 0; }
.case-card {
  background: var(--white);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 11px 11px 0px 0px var(--accent-dark);
  transition: all var(--transition);
}
.case-card:hover { transform: translate(-3px, -3px); box-shadow: 14px 14px 0px 0px var(--accent-dark); }
.case-card-link { display: block; color: var(--text); }
.case-card-thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.case-card-body { padding: 1rem 1.25rem; }
.case-card-cat { display: inline-block; background: var(--primary-light); color: var(--primary-dark); padding: 2px 8px; border-radius: 4px; font-size: 11px; margin-bottom: 0.5rem; }
.case-card-patient { font-size: 12px; color: var(--text-muted); margin-left: 0.5rem; }
.case-card-title { font-size: 15px; font-weight: 600; margin-bottom: 0.5em; }
.case-card-flow { margin-top: 0.75rem; font-size: 13px; }
.case-card-before, .case-card-after { padding: 0.5rem 0; }
.case-card-before span, .case-card-after span { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 3px; margin-right: 0.5rem; }
.case-card-before span { background: #fee2e2; color: #dc2626; }
.case-card-after span { background: #dcfce7; color: #16a34a; }

/* Case Detail */
.case-detail { max-width: 800px; margin: 2rem auto; }
.case-detail-header { margin-bottom: 2rem; }
.case-detail-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.case-detail-cat { background: var(--primary-light); color: var(--primary-dark); padding: 4px 12px; border-radius: 4px; font-size: 13px; }
.case-detail-patient, .case-detail-period { font-size: 13px; color: var(--text-muted); }
.case-detail-title { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
.case-detail-thumbnail { margin-bottom: 2rem; border-radius: var(--radius); overflow: hidden; }
.case-detail-thumbnail img { width: 100%; }
.case-detail-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.case-detail-before, .case-detail-after { padding: 1.5rem; border-radius: var(--radius); }
.case-detail-before { background: #fef2f2; }
.case-detail-after { background: #f0fdf4; }
.case-detail-before h3 { color: #dc2626; font-size: 1rem; }
.case-detail-after h3 { color: #16a34a; font-size: 1rem; }

/* =====================================================
   VOICE CARDS (患者様の声)
   ===================================================== */
.voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 2rem 0; }
.voice-card {
  background: var(--white);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 11px 11px 0px 0px var(--accent-dark);
  transition: all var(--transition);
}
.voice-card:hover { transform: translate(-3px, -3px); box-shadow: 14px 14px 0px 0px var(--accent-dark); }
.voice-card-link { display: block; color: var(--text); }
.voice-card-thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.voice-card-body { padding: 1rem 1.25rem; }
.voice-card-info { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 12px; color: var(--text-muted); margin-bottom: 0.5rem; }
.voice-card-name { font-weight: 500; }
.voice-card-treatment { background: var(--primary-light); color: var(--primary-dark); padding: 1px 6px; border-radius: 3px; }
.voice-card-rating { color: var(--accent); font-size: 14px; margin-bottom: 0.25rem; }
.voice-card-title { font-size: 15px; font-weight: 600; margin-bottom: 0.5em; line-height: 1.5; }
.voice-card-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* Voice Detail */
.voice-detail { max-width: 800px; margin: 2rem auto; }
.voice-detail-header { margin-bottom: 2rem; }
.voice-detail-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.5rem; }
.voice-detail-name, .voice-detail-age, .voice-detail-treatment { font-size: 14px; color: var(--text-muted); }
.voice-detail-treatment { background: var(--primary-light); color: var(--primary-dark); padding: 2px 8px; border-radius: 4px; }
.voice-detail-rating { color: var(--accent); font-size: 18px; margin-bottom: 0.5rem; }
.voice-detail-title { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
.voice-detail-thumbnail { margin-bottom: 2rem; border-radius: var(--radius); overflow: hidden; }
.voice-detail-thumbnail img { width: 100%; }

/* =====================================================
   ARTICLE SINGLE
   ===================================================== */
.article-single { max-width: 800px; margin: 2rem auto; }
.article-header { margin-bottom: 2rem; }
.article-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.article-date { font-size: 13px; color: var(--text-light); }
.article-cat { font-size: 12px; background: var(--primary-light); color: var(--primary-dark); padding: 2px 8px; border-radius: 4px; }
.article-title { font-size: clamp(1.25rem, 3vw, 1.75rem); }
.article-thumbnail { margin-bottom: 2rem; border-radius: var(--radius); overflow: hidden; }
.article-thumbnail img { width: 100%; }
.article-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.article-tags .tag { background: var(--bg-alt); padding: 4px 12px; border-radius: 4px; font-size: 13px; color: var(--text-muted); }
.article-nav { display: flex; justify-content: space-between; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.article-nav a { font-size: 14px; }

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination, .nav-links { display: flex; justify-content: center; gap: 0.5rem; margin: 3rem 0; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.page-numbers:hover { background: var(--primary-light); color: var(--primary-dark); border-color: var(--primary); }
.page-numbers.current { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* =====================================================
   404
   ===================================================== */
.error-404 { text-align: center; padding: 4rem 0; }
.error-404-code { font-size: 5rem; font-weight: 700; color: var(--primary-light); line-height: 1; margin-bottom: 0.5em; }
.error-404-message { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; }

/* =====================================================
   NO POSTS
   ===================================================== */
.no-posts { text-align: center; padding: 3rem 0; color: var(--text-muted); font-size: 1.1rem; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 0;
  margin-top: 0;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; gap: 3rem; padding-bottom: 2rem; }
.footer-brand-logo { margin-bottom: 1rem; }
.footer-logo-text { font-family: var(--serif); font-size: 1rem; color: rgba(255,255,255,0.9); }
.footer-brand-desc { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,0.6); }
.footer-menu h3, .footer-contact h3 { font-size: 1rem; color: var(--white); margin-bottom: 1rem; }
.footer-menu ul { list-style: none; }
.footer-menu li { margin-bottom: 0.5rem; }
.footer-menu a { color: rgba(255,255,255,0.6); font-size: 14px; transition: color var(--transition); }
.footer-menu a:hover { color: var(--white); }
.footer-sns { margin-top: 1.5rem; display: flex; gap: 1rem; }
.footer-sns a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-sns a:hover { color: var(--white); }
.footer-contact-box { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.footer-contact-icon { flex-shrink: 0; color: rgba(255,255,255,0.4); margin-top: 2px; }
.footer-contact-text { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.6; }
.footer-contact-phone { font-size: 18px; font-weight: 600; color: rgba(255,255,255,0.9); transition: color var(--transition); }
.footer-contact-phone:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; text-align: center; }
.footer-copyright { font-size: 13px; color: rgba(255,255,255,0.4); margin: 0; }

/* =====================================================
   ANIMATIONS
   ===================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .blog-grid, .case-grid, .voice-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .doctor-profile { flex-direction: column; gap: 2rem; }
  .doctor-profile-image { max-width: 300px; }
  .feature-card, .feature-card.feature-reverse { flex-direction: column; }
  .feature-card-photo { flex: none; max-height: 250px; }
  .feature-card-body { padding: 2rem; }
  .banner-grid { grid-template-columns: repeat(2, 1fr); }
  .access-content { flex-direction: column; }
  .access-detail { flex: none; width: 100%; }
}

@media (max-width: 768px) {
  .primary-nav { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .floating-cta { display: flex; }
  .back-to-top { bottom: 70px; }
  .header-inner { height: 60px; }
  .hero { height: 50vh; min-height: 300px; margin-top: 60px; }
  .page-header { padding: 80px 0 30px; }

  .medical-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .three-s-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .blog-grid, .case-grid, .voice-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .banner-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .doctor-others { grid-template-columns: 1fr; }
  .case-detail-flow { grid-template-columns: 1fr; }

  .concern-content { flex-direction: column; gap: 1.5rem; }
  .concern-image { max-width: 100%; }
  .concern-list { grid-template-columns: 1fr; }

  .feature-card-body { padding: 1.5rem; }
  .feature-card-num { font-size: 2.5rem; }
}

@media (max-width: 480px) {
  .banner-grid { grid-template-columns: 1fr; }
}
