/* =============================================
   やまだ内科クリニック - Main Stylesheet
   ============================================= */

/* ── CSS Variables ── */
:root {
  --clr-primary:     #3aaa6e;   /* メイングリーン */
  --clr-primary-dk:  #1e7a49;   /* ダークグリーン */
  --clr-primary-lt:  #d4f0e2;   /* ライトグリーン */
  --clr-accent:      #e8534a;   /* アクセントレッド */
  --clr-green:       #3aaa6e;   /* グリーン */
  --clr-sakura:      #a8e6c4;   /* ミントグリーン（旧さくらピンク） */
  --clr-text:        #1e3328;   /* メインテキスト */
  --clr-text-lt:     #5a7a67;   /* サブテキスト */
  --clr-bg:          #f4fbf7;   /* 背景 */
  --clr-bg-alt:      #e8f5ee;   /* 交互背景 */
  --clr-white:       #ffffff;
  --clr-border:      #c2e0d0;

  --font-sans:   'Noto Sans JP', sans-serif;
  --font-serif:  'Noto Serif JP', serif;
  --font-clinic: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.16);

  --radius:    8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;

  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
address { font-style: normal; }

/* ── Utility ── */
.section-wrapper {
  padding: 80px 20px;
}
.section-alt {
  background: var(--clr-bg-alt);
}
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--clr-primary-dk);
  letter-spacing: .05em;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-sakura));
  border-radius: 2px;
}
.section-subtitle {
  color: var(--clr-text-lt);
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--clr-primary);
  color: var(--clr-white);
  border-color: var(--clr-primary);
}
.btn-primary:hover {
  background: var(--clr-primary-dk);
  border-color: var(--clr-primary-dk);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--clr-white);
  border-color: var(--clr-white);
}
.btn-outline:hover {
  background: var(--clr-white);
  color: var(--clr-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}


/* =============================================
   HEADER
   ============================================= */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(58,170,110,.12);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.clinic-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.header-clinic-name {
  font-family: var(--font-clinic);
  font-weight: 700;
  font-size: 1.15rem;
  color: #1a5ca8;
  letter-spacing: .06em;
  white-space: nowrap;
  line-height: 1.2;
}
@media (max-width: 400px) {
  .header-clinic-name { display: none; }
}
.footer-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  background: #fff;
  border-radius: 6px;
  padding: 4px 6px;
  flex-shrink: 0;
}
.footer-clinic-name {
  font-family: var(--font-clinic);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: .06em;
  line-height: 1.3;
}

/* Nav */
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--clr-text);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover {
  color: var(--clr-primary);
  background: var(--clr-primary-lt);
}
.nav-tel {
  background: var(--clr-primary);
  color: var(--clr-white) !important;
  font-weight: 700;
  font-size: .85rem;
  border-radius: 50px;
  padding: 6px 16px;
}
.nav-tel:hover {
  background: var(--clr-primary-dk) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav-overlay {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(255,255,255,.98);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-nav {
  padding: 32px 24px;
}
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav-link {
  display: block;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  border-bottom: 1px solid var(--clr-border);
  color: var(--clr-text);
  transition: background var(--transition);
}
.mobile-nav-link:hover, .mobile-nav-link:focus {
  background: var(--clr-primary-lt);
  color: var(--clr-primary);
}
.mobile-tel {
  background: var(--clr-primary);
  color: white !important;
  border-radius: 50px !important;
  text-align: center;
  margin-top: 12px;
  font-weight: 700;
}


/* =============================================
   HERO
   ============================================= */
#hero-section {
  min-height: 100vh;
  padding-top: var(--header-h);
  background:
    linear-gradient(135deg, rgba(13,79,42,.82) 0%, rgba(26,122,69,.78) 40%, rgba(58,170,110,.72) 70%, rgba(82,194,133,.68) 100%),
    url('images/background.png') center center / cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(168,230,196,.20) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,200,.08) 0%, transparent 50%),
    radial-gradient(circle at 60% 60%, rgba(255,255,255,.04) 0%, transparent 40%);
}
/* Decorative circles */
#hero-section::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  top: -100px; right: -100px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.08);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: 40px 24px;
  max-width: 800px;
}
.hero-tagline {
  font-size: clamp(.85rem, 2vw, 1rem);
  letter-spacing: .25em;
  opacity: .85;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.hero-description {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  line-height: 2;
  opacity: .9;
  margin-bottom: 36px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-buttons .btn {
  min-width: 200px;
  justify-content: center;
}


/* =============================================
   NOTICE BAR
   ============================================= */
.notice-bar {
  background: var(--clr-primary);
  color: white;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 44px;
}
.notice-label {
  background: var(--clr-primary-dk);
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.notice-marquee {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.notice-marquee span {
  display: inline-block;
  padding: 0 16px;
  font-size: .85rem;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
}
@keyframes marquee {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}


/* =============================================
   NEWS
   ============================================= */
.news-list {
  border-top: 1px solid var(--clr-border);
}
.news-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--clr-border);
  transition: background var(--transition);
  flex-wrap: wrap;
}
.news-item:hover { background: var(--clr-primary-lt); }
.news-date {
  font-size: .82rem;
  color: var(--clr-text-lt);
  font-weight: 500;
  white-space: nowrap;
  min-width: 76px;
}
.news-tag {
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 50px;
  white-space: nowrap;
}
.tag-important { background: #ffebee; color: #c62828; }
.tag-info      { background: #e3f2fd; color: #1565c0; }
.tag-health    { background: #e8f5e9; color: #2e7d32; }
.tag-holiday   { background: #f3e5f5; color: #6a1b9a; }
.news-text {
  font-size: .92rem;
  color: var(--clr-text);
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.news-link {
  color: var(--clr-primary-dk);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
  line-height: 1.5;
}
.news-link:hover {
  color: var(--clr-primary);
  text-decoration: underline;
}
.news-title {
  font-weight: 600;
  color: var(--clr-text);
  line-height: 1.5;
}
.news-excerpt {
  font-size: .82rem;
  color: var(--clr-text-lt);
  line-height: 1.7;
}


/* =============================================
   SERVICES
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.service-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-primary);
}
.service-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--clr-primary-lt), #b8e8d0);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  color: var(--clr-primary);
}
.service-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--clr-primary-dk);
}
.service-desc {
  font-size: .85rem;
  color: var(--clr-text-lt);
  line-height: 1.7;
}
.services-note {
  background: #fff9e6;
  border: 1px solid #ffe082;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .88rem;
  color: #795548;
  display: flex;
  align-items: center;
  gap: 8px;
}


/* =============================================
   SCHEDULE
   ============================================= */
.schedule-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.schedule-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.schedule-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--clr-white);
}
.schedule-table th,
.schedule-table td {
  padding: 16px 12px;
  text-align: center;
  border: 1px solid var(--clr-border);
  font-size: .9rem;
}
.schedule-table thead th {
  background: var(--clr-primary);
  color: white;
  font-weight: 600;
}
.schedule-table thead th:first-child {
  background: var(--clr-primary-dk);
  border-radius: var(--radius) 0 0 0;
}
.schedule-table thead th.saturday { background: #1a7a9a; }
.schedule-table thead th.sunday   { background: #c62828; }
.schedule-table th { width: 1%; white-space: nowrap; }

.time-slot {
  font-weight: 600;
  background: var(--clr-bg-alt);
  font-size: .85rem;
  text-align: left;
  padding-left: 16px;
}
.time-slot small { color: var(--clr-text-lt); font-weight: 400; }

.open  { color: var(--clr-green);  font-size: 1rem; }
.closed { color: #ccc; font-size: 1rem; }
.saturday { background: #eef6fb; }
.sunday   { background: #fff5f5; }

.schedule-notes {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: .88rem;
}
.note-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.note-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--clr-text-lt);
}
.note-list li i { color: #f59e0b; margin-top: 3px; flex-shrink: 0; }
.note-icon { font-size: .7rem; }
.open-icon  { color: var(--clr-green); }
.closed-icon { color: #ccc; }

/* Contact Box */
.contact-box {
  background: var(--clr-white);
  border: 2px solid var(--clr-primary-lt);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 200px;
}
.contact-item > i {
  font-size: 1.8rem;
  color: var(--clr-primary);
  width: 44px;
  text-align: center;
}
.contact-label {
  font-size: .8rem;
  color: var(--clr-text-lt);
  margin-bottom: 4px;
}
.contact-tel {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--clr-primary-dk);
  letter-spacing: .05em;
}
.contact-address {
  font-size: .92rem;
  color: var(--clr-text);
  line-height: 1.6;
}
.contact-divider {
  width: 1px; height: 60px;
  background: var(--clr-border);
  flex-shrink: 0;
}


/* =============================================
   DOCTOR
   ============================================= */
.doctor-card {
  display: flex;
  gap: 48px;
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  align-items: flex-start;
  flex-wrap: wrap;
}
.doctor-photo-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.doctor-photo-placeholder {
  width: 180px; height: 180px;
  background: linear-gradient(135deg, var(--clr-primary-lt), #b8e8d0);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
  color: var(--clr-primary);
  border: 4px solid var(--clr-white);
  box-shadow: var(--shadow-md);
}
.doctor-photo-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--clr-white);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}
.doctor-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.doctor-info { flex: 1; min-width: 280px; }
.doctor-position {
  font-size: .8rem;
  color: var(--clr-primary);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.doctor-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 6px;
}
.doctor-name-en {
  font-family: var(--font-sans);
  font-size: .85rem;
  color: var(--clr-text-lt);
  font-weight: 400;
  margin-left: 8px;
}
.doctor-title {
  font-size: .88rem;
  color: var(--clr-text-lt);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--clr-border);
}
.doctor-profile { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.profile-row { display: flex; gap: 20px; font-size: .88rem; flex-wrap: wrap; }
.profile-row dt {
  font-weight: 700;
  color: var(--clr-primary-dk);
  min-width: 100px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.profile-row dd li {
  color: var(--clr-text-lt);
  padding: 2px 0;
  list-style: disc;
  margin-left: 18px;
}
.doctor-message {
  background: var(--clr-primary-lt);
  border-left: 4px solid var(--clr-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px;
  font-size: .9rem;
  color: var(--clr-text);
  line-height: 1.9;
}


/* =============================================
   FEATURES
   ============================================= */
.features-section {
  background: linear-gradient(135deg, #e0f5ea 0%, #f0faf4 100%);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.feature-item {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-sakura));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  color: white;
}
.feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--clr-primary-dk);
}
.feature-desc {
  font-size: .85rem;
  color: var(--clr-text-lt);
  line-height: 1.8;
}


/* =============================================
   MEDICAL DX
   ============================================= */
.dx-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--clr-border);
  border-left: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--clr-white);
  box-shadow: var(--shadow-sm);
}
.dx-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--clr-border);
  border-right: 1px solid var(--clr-border);
  font-size: .92rem;
  line-height: 1.75;
  color: var(--clr-text);
  transition: background var(--transition);
}
.dx-item:hover {
  background: var(--clr-primary-lt);
}
.dx-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--clr-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: .7rem;
  margin-top: 2px;
}
.dx-item p { flex: 1; margin: 0; }

@media (max-width: 640px) {
  .dx-list { grid-template-columns: 1fr; }
}

/* DX サマリーボックス（トップページ用） */
.dx-summary-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.dx-summary-label {
  width: 100%;
  font-size: .8rem;
  font-weight: 700;
  color: var(--clr-primary);
  letter-spacing: .05em;
  margin-bottom: -8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dx-summary-text {
  font-size: .95rem;
  line-height: 1.9;
  color: var(--clr-text);
  flex: 1;
  min-width: 0;
}
.dx-detail-btn {
  white-space: nowrap;
  flex-shrink: 0;
  gap: 8px;
}
@media (max-width: 640px) {
  .dx-summary-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .dx-detail-btn { align-self: flex-start; }
}


/* =============================================
   ACCESS
   ============================================= */
.access-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.access-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}
.access-row {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--clr-border);
  font-size: .9rem;
  align-items: flex-start;
}
.access-row dt {
  font-weight: 700;
  color: var(--clr-primary-dk);
  min-width: 110px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.access-row dd {
  color: var(--clr-text);
  line-height: 1.7;
}
.access-row dd a { color: var(--clr-primary); font-weight: 600; }
.access-row dd a:hover { text-decoration: underline; }
.access-row dd small { color: var(--clr-text-lt); font-size: .8rem; }
.map-btn {
  display: inline-flex;
  margin-top: 4px;
}

.map-placeholder {
  background: linear-gradient(135deg, #d4f0e2, #e8f5ee);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--clr-border);
}
.map-placeholder-inner {
  text-align: center;
  color: var(--clr-primary);
}
.map-placeholder-inner i { font-size: 3.5rem; margin-bottom: 12px; opacity: .7; }
.map-placeholder-inner p { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.map-placeholder-inner small { font-size: .8rem; color: var(--clr-text-lt); }


/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: var(--clr-primary-dk);
  color: rgba(255,255,255,.85);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-address { font-size: .88rem; line-height: 1.8; }
.footer-address a { color: var(--clr-sakura); }
.footer-address a:hover { text-decoration: underline; }
.footer-nav ul { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a {
  font-size: .88rem;
  opacity: .8;
  transition: opacity var(--transition);
  display: flex; align-items: center;
}
.footer-nav a::before {
  content: '›';
  margin-right: 8px;
  color: var(--clr-sakura);
}
.footer-nav a:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  text-align: center;
}
.footer-copy { font-size: .8rem; opacity: .6; }


/* =============================================
   FLOATING RESERVATION BUTTON
   ============================================= */
.float-reserve-btn {
  position: fixed;
  top: calc(var(--header-h) + 20px);
  right: 0;
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 68px;
  padding: 14px 0 12px;
  background: linear-gradient(160deg, #f5a623, #e08a00);
  color: #fff;
  border-radius: 12px 0 0 12px;
  box-shadow: -3px 4px 18px rgba(224,138,0,.40);
  text-decoration: none;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition);
  /* 入場アニメーション */
  animation: float-reserve-in .5s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes float-reserve-in {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.float-reserve-btn:hover {
  transform: translateX(-5px);
  box-shadow: -6px 6px 24px rgba(224,138,0,.55);
  background: linear-gradient(160deg, #ffb83d, #e89500);
}
/* ── 脈動リング ── */
.float-reserve-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 14px 0 0 14px;
  border: 2px solid rgba(245,166,35,.55);
  animation: pulse-ring 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes pulse-ring {
  0%   { transform: scale(1);    opacity: .8; }
  70%  { transform: scale(1.06); opacity: 0; }
  100% { transform: scale(1.06); opacity: 0; }
}

.float-reserve-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.float-reserve-label {
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  letter-spacing: .04em;
}

/* モバイル: 少しコンパクトに */
@media (max-width: 640px) {
  .float-reserve-btn {
    top: calc(var(--header-h) + 12px);
    width: 56px;
    padding: 10px 0 9px;
    gap: 4px;
  }
  .float-reserve-icon { font-size: 1.25rem; }
  .float-reserve-label { font-size: .62rem; }
}


/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 24px;
  width: 48px; height: 48px;
  background: var(--clr-primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 900;
  display: flex; align-items: center; justify-content: center;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--clr-primary-dk); transform: translateY(-3px); }


/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  #main-nav { display: none; }
  .hamburger { display: flex; }

  .access-container { grid-template-columns: 1fr; }
  .doctor-card { gap: 28px; }
  .contact-box { flex-direction: column; gap: 20px; }
  .contact-divider { width: 100%; height: 1px; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .section-wrapper { padding: 56px 16px; }


  .doctor-card { flex-direction: column; align-items: center; padding: 28px 20px; }
  .doctor-photo-placeholder { width: 140px; height: 140px; font-size: 4rem; }
  .doctor-photo-circle { width: 140px; height: 140px; }
  .doctor-info { text-align: center; }
  .profile-row { flex-direction: column; gap: 6px; }
  .profile-row dt { min-width: unset; }

  .services-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .features-grid { grid-template-columns: 1fr 1fr; }

  .news-item { flex-direction: column; gap: 8px; }
  .news-text { min-width: unset; }

  .footer-top { flex-direction: column; }
  .footer-nav ul { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
}

@media (max-width: 400px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
}

/* ── Clinic Name Font ── */
/* ヒーロータイトル */
.clinic-name {
  font-family: var(--font-clinic) !important;
  font-weight: 700;
  letter-spacing: .08em;
  color: #fff;
}
/* ヘッダー・フッターのロゴ画像の下に文字テキストは使わないが、
   img差し替え前の名称テキストが残る場合に備えて定義 */
.logo-name,
.footer-logo-name {
  font-family: var(--font-clinic);
  font-weight: 700;
  color: #1a5ca8;   /* 画像の青色に合わせた色 */
  letter-spacing: .04em;
}

/* ── Scroll Animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
