/* ============================================================
   さくらクリニック - メインスタイルシート
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
  --pink:         #E8A0A8;
  --pink-dark:    #D4818D;
  --pink-light:   #F5D5D9;
  --pink-pale:    #FDF0F1;
  --green:        #4CAF7D;
  --green-dark:   #3D9B6B;
  --green-light:  #D6F0E3;
  --wood:         #C4956A;
  --wood-light:   #E8D5BF;
  --cream:        #F9F5F0;
  --white:        #FFFFFF;
  --text:         #2A2A2A;
  --text-mid:     #555555;
  --text-light:   #888888;
  --border:       #E8E0DA;
  --shadow:       rgba(0,0,0,0.08);
  --shadow-md:    rgba(0,0,0,0.14);
  --radius:       8px;
  --radius-lg:    16px;
  --header-top:   44px;
  --header-main:  72px;
  --header-total: 116px;
  --transition:   0.3s ease;
  --max-width:    1160px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Noto Sans JP', 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   Typography
   ============================================================ */
.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.section-title span {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--pink-dark);
  text-transform: uppercase;
  margin-bottom: 0.4em;
}

.section-lead {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-top: 1rem;
}

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--green));
  border-radius: 2px;
  margin: 16px auto 0;
}

.section-pad {
  padding: 80px 0;
}

.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.bg-pink-pale { background: var(--pink-pale); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--pink-dark);
  color: var(--white);
}
.btn-primary:hover { background: #C26E7A; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,129,141,0.4); }

.btn-green {
  background: var(--green);
  color: var(--white);
}
.btn-green:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(76,175,125,0.35); }

.btn-outline {
  border: 2px solid var(--pink-dark);
  color: var(--pink-dark);
}
.btn-outline:hover { background: var(--pink-dark); color: var(--white); }

.btn-arrow::after {
  content: '→';
  font-size: 1.1em;
}

/* ============================================================
   Header - Top Bar
   ============================================================ */
#header-top {
  background: var(--text);
  color: rgba(255,255,255,0.75);
  font-size: 0.75rem;
  height: var(--header-top);
  display: flex;
  align-items: center;
}

#header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-top-info {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header-top-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-phone-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-phone-top a {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  font-family: 'Noto Serif JP', serif;
}

.header-phone-top a:hover { color: var(--pink-light); }

/* ============================================================
   Header - Main
   ============================================================ */
#header-main {
  background: var(--white);
  height: var(--header-main);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px var(--shadow);
  transition: box-shadow var(--transition);
}

#header-main.scrolled {
  box-shadow: 0 4px 20px var(--shadow-md);
}

#header-main .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.site-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}

.logo-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: 0.02em;
}

/* .sakura-mark replaced by inline SVG */

.logo-dept {
  font-size: 0.68rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
  font-weight: 400;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.logo-icon svg { width: 22px; height: 22px; fill: white; }

.logo-wrap {
  display: flex;
  align-items: center;
}

/* Main Navigation */
.main-nav ul {
  display: flex;
  gap: 0;
}

.main-nav ul li a {
  display: block;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.04em;
  transition: color var(--transition);
  position: relative;
}

.main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--pink-dark);
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width var(--transition);
}

.main-nav ul li a:hover { color: var(--pink-dark); }
.main-nav ul li a:hover::after,
.main-nav ul li a.active::after { width: calc(100% - 32px); }
.main-nav ul li a.active { color: var(--pink-dark); font-weight: 700; }

.nav-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: 20px;
}

.nav-phone-label {
  font-size: 0.68rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
}

.nav-phone-num {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pink-dark);
  letter-spacing: 0.03em;
  line-height: 1;
}

.nav-phone-num::before {
  content: '☎ ';
  font-size: 0.9em;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  padding: 8px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-main);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  box-shadow: 0 8px 24px var(--shadow);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mobile-nav.open { max-height: 500px; }

.mobile-nav ul { padding: 16px 0; }
.mobile-nav ul li a {
  display: block;
  padding: 14px 24px;
  font-size: 0.95rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.mobile-nav ul li a:hover { background: var(--cream); color: var(--pink-dark); }

.mobile-nav-phone {
  padding: 20px 24px;
  background: var(--pink-pale);
  text-align: center;
}

.mobile-nav-phone a {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pink-dark);
  display: block;
  margin-bottom: 4px;
}

/* ============================================================
   Hero Slider
   ============================================================ */
#hero {
  position: relative;
  overflow: hidden;
  height: calc(100svh - var(--header-main));
  min-height: 520px;
  max-height: 760px;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.slide.active .slide-img { transform: scale(1); }

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(30, 20, 25, 0.55) 0%,
    rgba(30, 20, 25, 0.2) 60%,
    transparent 100%
  );
}

.slide-content {
  position: absolute;
  bottom: 80px;
  left: 0;
  padding: 0 10%;
  color: var(--white);
  max-width: 640px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.3s;
}

.slide.active .slide-content {
  opacity: 1;
  transform: translateY(0);
}

.slide-eyebrow {
  display: inline-block;
  background: var(--pink);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.slide-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  margin-bottom: 12px;
}

.slide-sub {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 24px;
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: all var(--transition);
  z-index: 10;
}

.slider-arrow:hover { background: rgba(255,255,255,0.45); }
.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }

.slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: 2px solid rgba(255,255,255,0.7);
  transition: all var(--transition);
  cursor: pointer;
}

.slider-dot.active {
  background: var(--white);
  width: 24px;
  border-radius: 4px;
}

/* ============================================================
   Patient Navigation (Quick Links)
   ============================================================ */
#patient-nav {
  background: var(--white);
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 20px var(--shadow);
}

.patient-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.patient-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 16px;
  border-right: 1px solid var(--border);
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
}

.patient-nav-item:last-child { border-right: none; }

.patient-nav-item:hover {
  background: var(--cream);
  color: var(--pink-dark);
}

.patient-nav-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.patient-nav-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

.patient-nav-item:hover .patient-nav-icon { transform: scale(1.1); }

.patient-nav-item:nth-child(1) .patient-nav-icon { background: var(--pink-pale); }
.patient-nav-item:nth-child(2) .patient-nav-icon { background: var(--green-light); }
.patient-nav-item:nth-child(3) .patient-nav-icon { background: #EEF4FF; }
.patient-nav-item:nth-child(4) .patient-nav-icon { background: #FFF8EC; }

.patient-nav-label {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.patient-nav-sub {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: -6px;
  letter-spacing: 0.03em;
}

/* ============================================================
   Hours Banner
   ============================================================ */
#hours-banner {
  background: linear-gradient(135deg, #2A2A2A 0%, #3A3A3A 100%);
  color: var(--white);
  padding: 0;
}

.hours-banner-inner {
  display: flex;
  align-items: stretch;
}

.hours-label-block {
  background: var(--pink-dark);
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 160px;
}

.hours-label-block .icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.hours-label-block .icon svg { width: 28px; height: 28px; display: block; }

.hours-label-block .label {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hours-table-wrap {
  flex: 1;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hours-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hours-day {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
}

.hours-time {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.hours-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  align-self: center;
}

.hours-closed-block {
  background: #333;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  border-left: 1px solid rgba(255,255,255,0.1);
}

.hours-closed-block .label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  font-weight: 700;
}

.hours-closed-block .value {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}

/* ============================================================
   News Section
   ============================================================ */
#news {
  padding: 72px 0;
}

.news-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}

.news-sidebar-title {
  position: sticky;
  top: calc(var(--header-main) + 24px);
}

.news-list {
  border-top: 2px solid var(--border);
}

.news-item {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 12px 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.news-item:hover { background: var(--cream); margin: 0 -16px; padding: 18px 16px; }

.news-date {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.news-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.tag-info { background: var(--pink-pale); color: var(--pink-dark); }
.tag-important { background: #FFF3CD; color: #856404; }
.tag-covid { background: var(--green-light); color: var(--green-dark); }
.tag-news { background: #EEF4FF; color: #3A6EA5; }

.news-title {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text);
  transition: color var(--transition);
}

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

.news-more {
  text-align: right;
  margin-top: 20px;
}

/* ============================================================
   Departments Section
   ============================================================ */
#departments {
  padding: 80px 0;
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.dept-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  box-shadow: 0 2px 12px var(--shadow);
}

.dept-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--shadow-md);
  border-color: var(--pink-light);
}

.dept-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

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

.dept-card:hover .dept-card-img img { transform: scale(1.06); }

.dept-card-num {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--pink-dark);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 2px;
}

.dept-card-body {
  padding: 24px;
}

.dept-card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dept-card-icon svg {
  width: 40px;
  height: 40px;
  display: block;
}

.dept-card-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.dept-card-desc {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 16px;
}

.dept-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.dept-tag {
  font-size: 0.7rem;
  padding: 4px 10px;
  background: var(--cream);
  border-radius: 20px;
  color: var(--text-mid);
  border: 1px solid var(--border);
}

.dept-card-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--pink-dark);
  font-weight: 500;
  transition: gap var(--transition);
}

.dept-card:hover .dept-card-link { gap: 10px; }

/* ============================================================
   Doctor Section
   ============================================================ */
#doctor {
  padding: 80px 0;
}

.doctor-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.doctor-photo-wrap {
  position: relative;
}

.doctor-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px var(--shadow-md);
}

.doctor-photo-deco {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 80%;
  height: 80%;
  border: 3px solid var(--pink-light);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.doctor-info-label {
  font-size: 0.72rem;
  color: var(--pink-dark);
  letter-spacing: 0.15em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.doctor-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.doctor-name-en {
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.doctor-greeting {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-mid);
  border-left: 3px solid var(--pink-light);
  padding-left: 20px;
  margin-bottom: 28px;
}

.doctor-career {
  margin-top: 24px;
}

.doctor-career-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.doctor-career-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doctor-career-item {
  display: flex;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--text-mid);
}

.career-year {
  color: var(--pink-dark);
  font-weight: 600;
  white-space: nowrap;
  min-width: 60px;
}

/* ============================================================
   Staff / Gallery Section
   ============================================================ */
#staff {
  padding: 80px 0;
}

.staff-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
}

.staff-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px var(--shadow-md);
}

.staff-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.staff-message {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.9;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.03em;
}

.staff-message em {
  font-style: normal;
  color: var(--pink-dark);
}

/* ============================================================
   Access Section (Homepage)
   ============================================================ */
#access-home {
  padding: 80px 0;
}

.access-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
}

.access-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px var(--shadow);
  height: 380px;
}

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

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

.access-info-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.access-info-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.08em;
  padding-top: 2px;
}

.access-info-value {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
}

.access-info-value strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.access-bus {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-mid);
}

/* ============================================================
   Footer
   ============================================================ */
#footer {
  background: #1E1E1E;
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-name { color: var(--white); font-size: 1.1rem; }
.footer-brand .logo-dept { color: rgba(255,255,255,0.45); }
.footer-brand .logo-icon { background: var(--pink-dark); }

.footer-address {
  font-size: 0.82rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
  margin-top: 16px;
}

.footer-phone-num {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 16px;
  display: block;
  letter-spacing: 0.04em;
}

.footer-nav-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-list a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-nav-list a::before {
  content: '›';
  color: var(--pink);
}

.footer-nav-list a:hover { color: var(--white); }

.footer-hours-table {
  font-size: 0.82rem;
  width: 100%;
  border-collapse: collapse;
}

.footer-hours-table tr { border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-hours-table td { padding: 7px 0; vertical-align: top; }
.footer-hours-table td:first-child {
  color: rgba(255,255,255,0.45);
  width: 80px;
  font-size: 0.75rem;
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}

.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   Inner Pages - Page Header
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, #2A2A2A 0%, #3A3A3A 100%);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232,160,168,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-header-inner { position: relative; z-index: 1; }

.page-header-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
  font-weight: 700;
  margin-bottom: 8px;
}

.page-header-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

.breadcrumb a { color: rgba(255,255,255,0.55); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { color: rgba(255,255,255,0.25); }

/* ============================================================
   Inner Page Content
   ============================================================ */
.content-section { padding: 64px 0; }

.content-section + .content-section { padding-top: 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.content-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px var(--shadow);
}

.content-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* Sub Section Title */
.sub-section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  position: relative;
}

.sub-section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--pink-dark);
}

.content-text {
  font-size: 0.93rem;
  line-height: 1.9;
  color: var(--text-mid);
}

.content-text p + p { margin-top: 1em; }

/* ============================================================
   About Page
   ============================================================ */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.philosophy-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.philosophy-card:hover {
  border-color: var(--pink-light);
  box-shadow: 0 8px 32px var(--shadow);
  transform: translateY(-4px);
}

.philosophy-icon { width: 52px; height: 52px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.philosophy-icon svg { width: 44px; height: 44px; display: block; }
.philosophy-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.philosophy-text { font-size: 0.83rem; color: var(--text-mid); line-height: 1.75; }

/* Staff Grid */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.staff-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  padding: 24px 16px;
  transition: all var(--transition);
}

.staff-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px var(--shadow); }
.staff-card-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  border: 2px solid var(--border);
}

.staff-card-avatar svg { width: 36px; height: 36px; display: block; }
.staff-card-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.staff-card-role { font-size: 0.75rem; color: var(--text-light); }

/* ============================================================
   Department Page
   ============================================================ */
.dept-detail {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.dept-detail:last-child { border-bottom: none; }

.dept-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.dept-detail-num {
  width: 56px;
  height: 56px;
  background: var(--pink-dark);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif JP', serif;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.dept-detail-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.dept-detail-title small {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.1em;
  margin-top: 2px;
  font-family: 'Noto Sans JP', sans-serif;
}

/* Symptom Tags */
.symptom-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.symptom-tag {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--text-mid);
  transition: all var(--transition);
}

.symptom-tag:hover { background: var(--pink-pale); border-color: var(--pink-light); color: var(--pink-dark); }

/* ============================================================
   Endoscopy Page
   ============================================================ */
.endo-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 32px;
  counter-reset: flow-step;
}

.flow-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 24px;
  position: relative;
}

.flow-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: -8px;
  width: 2px;
  background: var(--border);
}

.flow-num {
  width: 48px;
  height: 48px;
  background: var(--pink-dark);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  counter-increment: flow-step;
  font-family: 'Noto Serif JP', serif;
  z-index: 1;
}

.flow-content {
  padding: 10px 0 32px;
}

.flow-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--text);
}

.flow-text {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.75;
}

/* Endoscopy Q&A */
.faq-list { margin-top: 32px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}

.faq-q {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--cream);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--transition);
}

.faq-q:hover { background: var(--pink-pale); }

.faq-q-mark {
  width: 28px;
  height: 28px;
  background: var(--pink-dark);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.faq-q-arrow {
  margin-left: auto;
  color: var(--text-light);
  transition: transform var(--transition);
}

.faq-item.open .faq-q-arrow { transform: rotate(180deg); }

.faq-a {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding: 16px 24px;
}

.faq-a-mark {
  display: inline-block;
  color: var(--green);
  font-weight: 700;
  margin-right: 12px;
}

/* ============================================================
   Access Page
   ============================================================ */
.access-page-map {
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px var(--shadow);
  margin-bottom: 48px;
}

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

.access-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.access-detail-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
}

.access-detail-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px var(--shadow); }
.access-card-icon { width: 48px; height: 48px; margin-bottom: 14px; display: flex; align-items: center; justify-content: center; }
.access-card-icon svg { width: 36px; height: 36px; display: block; }
.access-card-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; color: var(--text); }
.access-card-text { font-size: 0.85rem; color: var(--text-mid); line-height: 1.75; }

/* ============================================================
   Contact Form
   ============================================================ */
.form-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.form-note {
  background: var(--pink-pale);
  border: 1px solid var(--pink-light);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 36px;
  line-height: 1.8;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.required-badge {
  background: var(--pink-dark);
  color: white;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.06em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--pink-dark);
  box-shadow: 0 0 0 3px rgba(212,129,141,0.15);
}

.form-textarea { min-height: 140px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  text-align: center;
  margin-top: 36px;
}

.form-submit .btn {
  padding: 16px 48px;
  font-size: 1rem;
}

.form-privacy {
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 16px;
  line-height: 1.7;
}

/* ============================================================
   News Page
   ============================================================ */
.news-page-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--text-mid);
  background: var(--white);
  transition: all var(--transition);
  cursor: pointer;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--pink-dark);
  border-color: var(--pink-dark);
  color: var(--white);
}

.news-page-list { }

.news-page-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.news-page-item:hover { background: var(--cream); margin: 0 -20px; padding: 28px 20px; }

.news-page-thumb {
  border-radius: var(--radius);
  overflow: hidden;
  height: 108px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 2rem;
}

.news-page-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-page-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.news-page-date {
  font-size: 0.8rem;
  color: var(--text-light);
}

.news-page-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.5;
  transition: color var(--transition);
}

.news-page-item:hover .news-page-title { color: var(--pink-dark); }

.news-page-excerpt {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  color: var(--text-mid);
  transition: all var(--transition);
}

.pagination a:hover, .pagination a.current {
  background: var(--pink-dark);
  border-color: var(--pink-dark);
  color: var(--white);
}

/* ============================================================
   Scroll to Top
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--pink-dark);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(212,129,141,0.4);
  opacity: 0;
  transform: translateY(16px);
  transition: all var(--transition);
  pointer-events: none;
  z-index: 900;
  cursor: pointer;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover { background: #C26E7A; transform: translateY(-2px); }

/* ============================================================
   Responsive - Tablet
   ============================================================ */
@media (max-width: 1024px) {
  .dept-grid { grid-template-columns: 1fr 1fr; }
  .doctor-layout { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .access-layout { grid-template-columns: 1fr; }
  .access-map { height: 320px; }
  .staff-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .news-layout { grid-template-columns: 1fr; }
  .doctor-layout { grid-template-columns: 1fr; }
  .doctor-photo-wrap { max-width: 320px; margin: 0 auto; }
  .philosophy-grid { grid-template-columns: 1fr 1fr; }
  .staff-grid { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .access-detail-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Responsive - Mobile
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --header-top: 0px;
    --header-main: 60px;
    --header-total: 60px;
  }

  #header-top { display: none; }

  #header-main .container { padding: 0 16px; }

  .logo-name { font-size: 1rem; }
  .logo-icon { width: 32px; height: 32px; margin-right: 8px; }

  .main-nav, .nav-phone { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }

  #hero { height: 60svh; min-height: 400px; }

  .slide-content { padding: 0 6%; bottom: 60px; }
  .slide-title { font-size: 1.4rem; }
  .slide-sub { display: none; }

  .patient-nav-grid { grid-template-columns: 1fr 1fr; }
  .patient-nav-item { padding: 20px 12px; }
  .patient-nav-item:nth-child(2) { border-right: none; }
  .patient-nav-item:nth-child(3) { border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
  .patient-nav-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }

  .hours-banner-inner { flex-direction: column; }
  .hours-label-block { flex-direction: row; gap: 12px; padding: 20px 24px; }
  .hours-table-wrap { gap: 20px; padding: 20px 24px; }
  .hours-divider { display: none; }
  .hours-closed-block { padding: 16px 24px; border-left: none; border-top: 1px solid rgba(255,255,255,0.1); }

  .section-pad { padding: 56px 0; }
  .section-header { margin-bottom: 32px; }

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

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .philosophy-grid { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: 1fr 1fr; }
  .access-detail-grid { grid-template-columns: 1fr; }

  .news-page-item { grid-template-columns: 1fr; }
  .news-page-thumb { height: 160px; }

  .form-row { grid-template-columns: 1fr; }

  .scroll-top { bottom: 20px; right: 20px; }

  .container { padding: 0 16px; }
}

@media (max-width: 480px) {
  .patient-nav-label { font-size: 0.82rem; }
  .patient-nav-sub { display: none; }
}
