/*
Theme Name: みどり内科・消化器内科クリニック
Theme URI:
Description: 内科・消化器内科専門クリニックのWordPressテーマ
Version: 2.0.0
Author: クリニックWEB制作ラボ
Text Domain: midori-clinic-v2
*/

/* ============================================================
   DESIGN SYSTEM — みどり内科・消化器内科クリニック V2
   Green + Gold luxury medical clinic
   ============================================================ */

:root {
  --green-deep: #14532d;
  --green-primary: #1B7A3D;
  --green-medium: #22963F;
  --green-light: #4CAF50;
  --green-pale: #E8F5E9;
  --green-bg: #f4faf5;
  --gold: #B8962E;
  --gold-light: #D4B85A;
  --gold-pale: rgba(184,150,46,0.08);
  --cream: #FAFCFA;
  --beige: #f0efe8;
  --text: #1a2e1a;
  --text-sub: #3a4d3a;
  --text-light: #5a6a5a;
  --border: #d4ddd4;
  --white: #ffffff;
  --shadow-sm: 0 2px 12px rgba(20,83,45,0.06);
  --shadow-md: 0 8px 32px rgba(20,83,45,0.08);
  --shadow-lg: 0 16px 48px rgba(20,83,45,0.12);
  --font-serif: 'Shippori Mincho', 'Noto Serif JP', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-en: 'Cinzel', serif;
  --font-en-body: 'Cormorant Garamond', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }
body {
  font-family: var(--font-serif);
  color: var(--text);
  background: var(--cream);
  line-height: 2;
  letter-spacing: 0.04em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  height: 100px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(20,83,45,0.06);
  transition: box-shadow 0.4s;
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 40px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 46px; height: 46px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.logo-mark img { width: 46px; height: 46px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.3; }
.logo-name {
  font-family: var(--font-serif); font-size: 0.9rem; font-weight: 600;
  color: var(--green-deep); letter-spacing: 0.04em; line-height: 1.4;
}
.logo-sub {
  font-family: var(--font-sans); font-size: 0.5rem; color: var(--text-light);
  letter-spacing: 0.06em; line-height: 1.3;
}
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 12px; position: relative;
}
.nav-jp {
  font-family: var(--font-sans); font-size: 0.775rem; font-weight: 500;
  color: var(--text); letter-spacing: 0.04em;
}
.nav-en {
  font-family: var(--font-en); font-size: 0.5rem; color: var(--gold);
  letter-spacing: 0.14em; text-transform: uppercase; margin-top: 1px;
}
.nav a::after {
  content: ''; position: absolute; bottom: 6px; left: 50%; width: 0; height: 2px;
  background: var(--gold); transition: all 0.35s cubic-bezier(0.4,0,0.2,1); transform: translateX(-50%);
}
.nav a:hover::after, .nav a.current::after { width: 55%; }
.header-right { display: flex; align-items: center; gap: 16px; }
.header-tel {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border: 2px solid var(--green-primary); border-radius: 40px;
  font-family: var(--font-sans); font-size: 1.1rem; font-weight: 700;
  font-style: normal;
  color: var(--green-primary); letter-spacing: 0.04em;
  transition: all 0.3s; white-space: nowrap;
  line-height: 1;
}
.header-tel:hover { background: var(--green-primary); color: #fff; }
.header-tel:hover svg { fill: #fff; }
.header-tel:hover .header-tel-sub { color: rgba(255,255,255,0.8); }
.header-tel svg { width: 20px; height: 20px; fill: var(--green-primary); transition: fill 0.3s; flex-shrink: 0; }
.header-tel-wrap { display: flex; flex-direction: column; align-items: flex-start; }
.header-tel-sub {
  display: block; font-family: var(--font-sans); font-size: 0.55rem; font-weight: 400;
  color: var(--text-light); margin-top: 3px; letter-spacing: 0.02em; transition: color 0.3s;
}
.header-web {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 6px;
  background: var(--green-primary); color: #fff;
  font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.06em; transition: background 0.3s;
  white-space: nowrap;
}
.header-web:hover { background: var(--green-medium); color: #fff; }
.nav-web-btn { display: none; }

/* ============================================================
   HERO — Full-screen slider with overlay
   ============================================================ */
.hero {
  position: relative; width: 100%; height: 100vh; min-height: 700px; max-height: 920px;
  margin-top: 100px; overflow: hidden;
}
.hero-swiper { width: 100%; height: 100%; }
.hero-swiper .swiper-slide { position: relative; overflow: hidden; }
.hero-swiper .swiper-slide img {
  width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 10s ease-out forwards;
}
@keyframes kenburns {
  0% { transform: scale(1); }
  100% { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2;
  background:
    linear-gradient(to right, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.55) 40%, rgba(255,255,255,0.1) 65%, transparent 100%),
    linear-gradient(to top, rgba(255,255,255,0.3) 0%, transparent 20%);
}
.hero-content {
  position: absolute; top: 50%; left: 0; transform: translateY(-55%);
  z-index: 3; width: 100%; padding: 0 80px;
}
.hero-inner { max-width: 1240px; margin: 0 auto; }
.hero-badge {
  display: inline-block; background: var(--green-primary); color: #fff;
  font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 500;
  padding: 8px 24px; border-radius: 4px; margin-bottom: 24px;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 12px rgba(27,122,61,0.3);
}
.hero-heading {
  font-family: var(--font-serif); font-size: 2.8rem; font-weight: 600;
  color: var(--green-deep); line-height: 1.6; letter-spacing: 0.1em;
  text-shadow:
    0 0 2px #fff, 0 0 4px #fff, 0 0 8px #fff,
    0 0 12px #fff, 0 0 20px rgba(255,255,255,0.8),
    0 0 30px rgba(255,255,255,0.5);
}
.hero-heading span { display: block; }
.hero-desc {
  font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 400;
  color: var(--text); line-height: 2; margin-top: 24px;
  max-width: 520px; letter-spacing: 0.06em;
  text-shadow:
    0 0 2px #fff, 0 0 6px #fff, 0 0 12px rgba(255,255,255,0.7);
}
/* Hero timetable overlay */
.hero-timetable {
  position: absolute; bottom: 40px; right: 60px; z-index: 3;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(12px);
  border-radius: 12px; padding: 20px 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.10);
  border: 1px solid rgba(184,150,46,0.12);
  max-width: 340px; overflow: hidden;
}
.hero-timetable .timetable { font-size: 0.75rem; width: 100%; table-layout: fixed; }
.hero-timetable .timetable thead th,
.hero-timetable .timetable tbody td,
.hero-timetable .timetable tbody th { padding: 6px 3px; }
.hero-tt-title {
  font-family: var(--font-serif); font-size: 0.8rem; color: var(--green-primary);
  text-align: center; margin-bottom: 4px; letter-spacing: 0.08em; font-weight: 600;
}
.hero-tt-en {
  font-family: var(--font-en); font-size: 0.5625rem; color: var(--gold);
  text-align: center; letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-tt-line {
  width: 24px; height: 1px; background: var(--gold); margin: 0 auto 16px; opacity: 0.5;
}
/* Hero pagination */
.hero-swiper .swiper-pagination { bottom: 50px !important; left: 80px !important; width: auto !important; text-align: left !important; z-index: 4; }
/* Hero 3 Points – parallelogram style */
.hero-points {
  position: absolute; bottom: 36px; left: 60px; z-index: 3;
  display: flex; gap: 14px;
}
.hero-point-card {
  background: rgba(255,255,255,0.93); backdrop-filter: blur(6px);
  padding: 22px 32px 20px 28px; text-align: left; min-width: 190px;
  transform: skewX(-8deg);
  box-shadow: 4px 4px 16px rgba(0,0,0,0.10);
  transition: background 0.3s, box-shadow 0.3s;
  position: relative;
}
.hero-point-card:hover { background: rgba(255,255,255,1); box-shadow: 4px 4px 20px rgba(0,0,0,0.15); }
.hero-point-card-inner {
  transform: skewX(8deg);
}
.hero-point-num {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 10px;
}
.hero-point-n {
  font-family: var(--font-en-body); font-size: 2.4rem; font-weight: 300;
  color: var(--green-primary); line-height: 1; letter-spacing: -0.02em;
  flex-shrink: 0;
}
.hero-point-line {
  flex: 1; height: 1px; background: var(--green-primary); opacity: 0.35;
  position: relative; top: -4px;
}
.hero-point-label {
  font-family: var(--font-en); font-size: 0.55rem; color: var(--green-primary);
  letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7;
  margin-bottom: 2px; display: block;
}
.hero-point-text {
  font-family: var(--font-serif); font-size: 0.82rem; font-weight: 600;
  color: var(--green-deep); line-height: 1.65; letter-spacing: 0.04em;
}

.hero-swiper .swiper-pagination-bullet {
  width: 40px; height: 3px; border-radius: 2px; background: rgba(27,122,61,0.2);
  opacity: 1; transition: all 0.5s; margin: 0 5px !important;
}
.hero-swiper .swiper-pagination-bullet-active {
  background: var(--green-primary); width: 56px; box-shadow: 0 0 12px rgba(27,122,61,0.25);
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.sec { padding: 110px 0; position: relative; }
.sec-white { background: var(--white); }
.sec-cream { background: var(--cream); }
.sec-green-pale {
  position: relative;
  background: url('img/blog_bg_sp.jpg') repeat;
  background-size: 400px auto;
  overflow: hidden;
}
.sec-green-pale::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: rgba(234,245,237,0.45);
}
.sec-green-pale::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 800px 600px at 10% 20%, rgba(27,122,61,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 600px 500px at 85% 70%, rgba(27,122,61,0.06) 0%, transparent 70%);
}
.sec-green-pale > .container { position: relative; z-index: 1; }
.sec-green-pale > .container-wide { position: relative; z-index: 1; }
.sec-green-dark::before { background: rgba(234,245,237,0.2); }

/* Texture background utility */
.sec-texture {
  position: relative;
  background: url('img/blog_bg_sp.jpg') repeat;
  background-size: 400px auto;
}
.sec-texture::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: rgba(255,255,255,0.55);
}
.sec-texture > .container { position: relative; z-index: 1; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.container-wide { max-width: 1240px; margin: 0 auto; padding: 0 40px; }

/* Breadcrumb */
.breadcrumb {
  max-width: 1240px; margin: 0 auto; padding: 14px 40px;
  font-family: var(--font-sans); font-size: 0.6875rem; color: var(--text-light);
  letter-spacing: 0.02em;
}
.breadcrumb a { color: var(--text-light); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--green-primary); }
.breadcrumb span.sep { margin: 0 8px; opacity: 0.5; }

/* Section Heading — with large background text */
.sec-head { text-align: center; margin-bottom: 64px; position: relative; }
.sec-head-bg {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -55%);
  font-family: var(--font-en); font-size: clamp(2.5rem, 6vw, 6rem); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  color: var(--green-primary); opacity: 0.06; pointer-events: none; z-index: 0;
  line-height: 1; max-width: 100%; overflow: hidden;
}
.sec-head-en {
  font-family: var(--font-en); font-size: 1rem; color: var(--gold);
  letter-spacing: 0.22em; text-transform: uppercase; display: block; margin-bottom: 12px;
  position: relative; z-index: 1;
}
.sec-head-jp {
  font-family: var(--font-serif); font-size: 2.25rem; font-weight: 600;
  color: var(--green-deep); letter-spacing: 0.12em; display: inline-block;
  position: relative; z-index: 1;
}

/* Hamburger menu */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative; z-index: 1010;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block; width: 100%; height: 2px; background: var(--green-deep);
  position: absolute; left: 0; transition: all 0.3s;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }
.menu-toggle.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Mobile nav overlay */
.nav-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.15); z-index: 1004;
}
.nav-overlay.open { display: block; }

/* SP header tel */
.header-tel-sp { display: none; }
/* Ornamental diamond + lines */
.sec-head-ornament {
  display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px;
}
.sec-head-ornament::before, .sec-head-ornament::after {
  content: ''; width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.sec-head-ornament::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.sec-head-ornament span {
  width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg);
  flex-shrink: 0;
}
.sec-desc {
  text-align: center; font-family: var(--font-sans); font-size: 0.9375rem;
  color: var(--text-sub); line-height: 2; max-width: 640px; margin: -40px auto 64px;
  font-weight: 300;
}

/* Wave separator */
.wave-top {
  position: absolute; top: -1px; left: 0; width: 100%; height: 50px; z-index: 1;
  pointer-events: none;
}
.wave-top svg { width: 100%; height: 100%; display: block; }

/* ============================================================
   PAGE HERO — Blurred background image
   ============================================================ */
.page-hero {
  position: relative;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 100px;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: url('img/reception.png') center/cover no-repeat;
  filter: blur(4px) brightness(0.85);
  transform: scale(1.05);
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.55);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.page-hero-content .section-heading-en {
  font-family: var(--font-en);
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.page-hero-content h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--green-deep);
  letter-spacing: 0.12em;
}

/* ============================================================
   SECTION HEADING (subpage style)
   ============================================================ */
.section { padding: 80px 0; position: relative; }
.section-white { background: var(--white); }
.section-alt { background: var(--cream); }

.section-heading { text-align: center; margin-bottom: 48px; }
.section-heading .section-heading-en {
  font-family: var(--font-en); font-size: 0.875rem; color: var(--gold);
  letter-spacing: 0.2em; text-transform: uppercase; display: block;
  margin-bottom: 8px;
}
.section-heading .section-heading-jp,
.section-heading h2 {
  font-family: var(--font-serif); font-size: 1.75rem; font-weight: 600;
  color: var(--green-deep); letter-spacing: 0.12em;
}

/* ============================================================
   NEWS
   ============================================================ */
.news-list { max-width: 800px; margin: 0 auto; }
.news-item {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 20px; border-radius: 8px;
  transition: all 0.35s; border-left: 3px solid transparent;
  cursor: pointer;
}
.news-item + .news-item { border-top: 1px solid var(--border); }
.news-item:hover {
  background: rgba(27,122,61,0.03); border-left-color: var(--green-primary);
  padding-left: 28px;
}
.news-date {
  font-family: var(--font-en-body); font-size: 1rem; color: var(--text-light);
  letter-spacing: 0.03em; white-space: nowrap; min-width: 105px;
}
.news-cat {
  display: inline-block; font-family: var(--font-sans); font-size: 0.7rem; font-weight: 600;
  color: #fff; background: linear-gradient(135deg, var(--green-primary), var(--green-medium));
  padding: 4px 16px; border-radius: 3px; letter-spacing: 0.04em;
  white-space: nowrap; min-width: 80px; text-align: center;
}
.news-title {
  font-family: var(--font-sans); font-size: 1rem; color: var(--text);
  font-weight: 400; letter-spacing: 0.02em;
}

/* ============================================================
   FEATURES — tennoji style (number + line + category + catchcopy + cards)
   ============================================================ */
.features-section {
  padding-bottom: 0;
}
.features-section > .container {
  max-width: 1300px;
}
.features-section .sec-head {
  margin-bottom: 20px;
}
/* Main heading */
.features-main-heading {
  text-align: center; margin-bottom: 12px;
}
.features-main-heading h2 {
  font-family: var(--font-serif); font-size: 1.875rem; font-weight: 500;
  color: var(--green-deep); letter-spacing: 0.12em; display: inline;
}
.features-main-heading .num {
  font-family: var(--font-en-body); font-size: 4rem; font-weight: 400;
  color: var(--green-primary); line-height: 1; vertical-align: baseline;
  margin: 0 2px;
}
.features-main-sub {
  text-align: center; font-family: var(--font-en); font-size: 0.8125rem;
  color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 8px;
}
.features-main-line {
  width: 1px; height: 32px; background: var(--green-deep); margin: 10px auto 0;
  opacity: 0.3;
}

/* Feature group — alternating left/right layout */
.f-group {
  padding: 70px 0; position: relative;
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 0 60px;
  align-items: center;
}
.f-group:first-of-type { padding-top: 40px; }
.f-group + .f-group { border-top: none; }

/* Text side */
.f-group-text { padding: 0 20px; }
.f-group-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
}
.f-group-num {
  font-family: var(--font-en-body); font-size: 4rem; font-weight: 400;
  color: var(--green-primary); line-height: 1; letter-spacing: -0.02em;
  opacity: 0.6;
}
.f-group-line {
  width: 36px; height: 1px; background: var(--green-deep); opacity: 0.3;
}
.f-group-en {
  font-family: var(--font-en); font-size: 0.6875rem; color: var(--text-sub);
  letter-spacing: 0.15em; text-transform: uppercase;
}
.f-group-catch {
  font-family: var(--font-serif); font-size: 1.85rem; font-weight: 500;
  color: var(--green-deep); line-height: 1.75; letter-spacing: 0.06em;
  margin-bottom: 24px;
}
.f-group-desc {
  font-family: var(--font-sans); font-size: 1rem; color: var(--text-sub);
  line-height: 2.1; font-weight: 300;
}

/* Image side — single image with trapezoid clip */
.f-group-images {
  overflow: hidden;
}
.f-group-images img {
  width: 100%; height: 360px; object-fit: cover; display: block;
}
/* Odd groups (1,3,5): image on RIGHT */
.f-group:nth-child(odd) .f-group-images img {
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
}
/* Even groups (2,4,6): image on LEFT */
.f-group:nth-child(even) .f-group-images img {
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

/* Even groups: reverse order (image left, text right) */
.f-group:nth-child(even) { direction: rtl; }
.f-group:nth-child(even) > * { direction: ltr; }

/* Large background category text */
.f-group-bg {
  position: absolute; top: 50%; right: -20px; transform: translateY(-50%);
  font-family: var(--font-en); font-size: clamp(3rem, 5vw, 5rem); font-weight: 700;
  color: var(--green-primary); opacity: 0.04; letter-spacing: 0.06em;
  text-transform: uppercase; white-space: nowrap; pointer-events: none;
  line-height: 1;
}
.f-group:nth-child(even) .f-group-bg { right: auto; left: -20px; }

/* ============================================================
   FLOW TEXT — Marquee
   ============================================================ */
.flow-text {
  overflow: hidden; white-space: nowrap; padding: 48px 0;
  background: var(--white); position: relative;
}
.flow-text-inner {
  display: inline-flex; animation: marquee 40s linear infinite;
}
.flow-text-inner span {
  font-family: var(--font-en); font-size: 6.5rem; font-weight: 400;
  color: var(--green-primary); opacity: 0.07; letter-spacing: 0.06em;
  padding-right: 80px; user-select: none;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   GREETING — Doctor section
   ============================================================ */
.greeting { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.greeting-img {
  position: relative; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.greeting-img::after {
  content: ''; position: absolute; bottom: -10px; right: -10px;
  width: 100%; height: 100%; border: 2px solid var(--gold); border-radius: 16px;
  opacity: 0.15; z-index: -1; pointer-events: none;
}
.greeting-img img { width: 100%; height: 440px; object-fit: cover; }
.greeting-text h3 {
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500;
  color: var(--green-deep); line-height: 1.85; margin-bottom: 28px; letter-spacing: 0.06em;
}
.greeting-text p {
  font-family: var(--font-sans); font-size: 0.9rem; color: var(--text-sub);
  line-height: 2.1; margin-bottom: 16px; font-weight: 300;
}
.greeting-sign { text-align: right; margin-top: 28px; }
.greeting-sign .role {
  font-family: var(--font-sans); font-size: 0.75rem; color: var(--text-light);
}
.greeting-sign .name {
  font-family: var(--font-serif); font-size: 1.5rem; color: var(--green-deep);
  font-weight: 600; display: inline-block; position: relative;
}
.greeting-sign .name::after {
  content: ''; display: block; width: 100%; height: 1px; background: var(--gold);
  margin-top: 4px; opacity: 0.3;
}
.greeting-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
  padding: 13px 32px; border: 2px solid var(--green-primary); border-radius: 6px;
  font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 500;
  color: var(--green-primary); letter-spacing: 0.06em;
  transition: all 0.35s; position: relative; overflow: hidden; z-index: 1;
}
.greeting-btn::before {
  content: ''; position: absolute; inset: 0; background: var(--green-primary);
  z-index: -1; transform: scaleX(0); transform-origin: right; transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.greeting-btn:hover { color: #fff; }
.greeting-btn:hover::before { transform: scaleX(1); transform-origin: left; }

/* ============================================================
   DEPARTMENTS — Arch-top cards (tennoji style)
   ============================================================ */
.dept-section { position: relative; isolation: isolate; }
.dept-section .sec-head { position: relative; z-index: 2; }
/* Large background "menu" text */
.dept-bg-en {
  position: absolute; top: 40px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-en); font-size: clamp(3rem, 7vw, 7rem); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  background: linear-gradient(180deg, rgba(27,122,61,0.06) 0%, rgba(27,122,61,0.01) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; pointer-events: none; z-index: 0; line-height: 1;
  max-width: 100%; overflow: hidden;
}
.dept-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  position: relative; z-index: 2;
}
.dept-card {
  display: block; text-decoration: none; color: inherit;
  filter: drop-shadow(0 4px 20px rgba(20,83,45,0.1));
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1); cursor: pointer;
}
.dept-card:hover { transform: translateY(-6px); filter: drop-shadow(0 10px 32px rgba(20,83,45,0.16)); }
.dept-img {
  border-radius: 140px 140px 0 0; overflow: hidden; height: 280px;
  position: relative;
}
.board-panel .dept-img {
  border-radius: 8px 8px 0 0;
}
.dept-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.dept-card:hover .dept-img img { transform: scale(1.06); }
.dept-body {
  background: var(--white); padding: 32px 24px 36px; text-align: center;
  border-radius: 0 0 4px 4px;
}
.dept-body h4 {
  font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600;
  color: var(--green-deep); letter-spacing: 0.06em; margin-bottom: 4px;
}
.dept-body .dept-en {
  font-family: var(--font-en); font-size: 0.7rem; color: var(--gold);
  letter-spacing: 0.14em; text-transform: uppercase; display: block; margin-bottom: 12px;
}
.dept-body .dept-desc {
  font-family: var(--font-sans); font-size: 0.8rem; color: var(--text-sub);
  line-height: 1.8; font-weight: 300; text-align: left; margin-bottom: 18px;
}
.dept-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 16px 0; border: 1px solid var(--border); border-radius: 6px;
  font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 500;
  color: var(--text-sub); letter-spacing: 0.06em;
  transition: all 0.3s;
}
.dept-card:hover .dept-btn {
  border-color: var(--green-primary); color: var(--green-primary);
}
/* Grid variations */
.dept-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin: 0 auto; }
.dept-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ============================================================
   HANGING BOARD
   ============================================================ */
.board-wrap {
  position: relative; max-width: 1000px; margin: 0 auto; padding-top: 50px;
}
.board-wrap::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 16px; height: 16px;
  background: radial-gradient(circle at 40% 35%, #5a9a6a, var(--green-primary));
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2), inset 0 1px 2px rgba(255,255,255,0.3);
  z-index: 3;
}
.board-wrap::after {
  content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 160px; height: 44px;
  background:
    linear-gradient(to bottom right, transparent 48.5%, #5a6a5a 49%, #5a6a5a 50.5%, transparent 51%),
    linear-gradient(to bottom left, transparent 48.5%, #5a6a5a 49%, #5a6a5a 50.5%, transparent 51%);
  background-size: 50% 100%, 50% 100%;
  background-position: left, right;
  background-repeat: no-repeat;
  opacity: 0.25; z-index: 2;
}
.board-panel {
  position: relative; z-index: 1;
  background: #faf6f0; border-radius: 6px;
  box-shadow: 0 4px 24px rgba(20,83,45,0.08), 0 1px 3px rgba(0,0,0,0.04);
  padding: 48px 40px 40px;
  border-top: 3px solid var(--green-primary);
  border-bottom: 3px solid var(--green-primary);
}
.board-title {
  text-align: center; margin-bottom: 36px;
}
.board-title h3 {
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600;
  color: var(--green-deep); letter-spacing: 0.08em;
  padding-bottom: 16px; border-bottom: 2px solid var(--green-primary);
  display: inline-block;
}

/* ============================================================
   TIMETABLE + VISIT INFO
   ============================================================ */
.schedule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.timetable {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-family: var(--font-sans); font-size: 0.8125rem;
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.timetable thead th {
  background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-medium) 100%);
  color: #fff; font-weight: 500; padding: 14px 10px; text-align: center; font-size: 0.8rem;
}
.timetable thead th:first-child { background: var(--green-deep); width: 90px; }
.timetable thead th.sat { background: var(--green-light); }
.timetable tbody td, .timetable tbody th {
  padding: 16px 10px; text-align: center; border-bottom: 1px solid var(--border);
  background: var(--white);
}
.timetable tbody th { text-align: left; padding-left: 14px; font-weight: 500; color: var(--green-deep); }
.timetable tbody th small { display: block; font-size: 0.625rem; color: var(--text-light); font-weight: 400; }
.timetable .open { color: var(--green-primary); font-weight: 700; font-size: 1.125rem; }
.timetable .closed { color: #ccc; font-size: 1rem; }
.tt-notes { margin-top: 14px; font-family: var(--font-sans); font-size: 0.6875rem; color: var(--text-light); line-height: 1.9; }
.tt-notes p + p { margin-top: 2px; }

/* Timetable notes (sidebar variant) */
.timetable-notes {
  margin-top: 12px; font-family: var(--font-sans); font-size: 0.6875rem;
  color: var(--text-light); line-height: 1.8;
}
.timetable-notes p + p { margin-top: 2px; }

.visit-info h3 {
  font-family: var(--font-serif); font-size: 1.25rem; color: var(--green-deep);
  margin-bottom: 28px; letter-spacing: 0.06em;
}
.visit-info dt {
  font-family: var(--font-serif); font-size: 0.9375rem; font-weight: 600;
  color: var(--green-deep); margin-bottom: 4px; padding-left: 18px; position: relative;
}
.visit-info dt::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 7px; height: 7px; background: var(--gold); border-radius: 50%;
}
.visit-info dd {
  font-family: var(--font-sans); font-size: 0.8125rem; color: var(--text-sub);
  margin-bottom: 22px; padding-left: 18px; line-height: 1.8; font-weight: 300;
}

/* ============================================================
   BLOG CARDS (Top page)
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.b-card {
  background: var(--white); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
  position: relative; cursor: pointer;
}
.b-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green-primary), var(--gold-light));
  transform: scaleX(0); transition: transform 0.4s;
}
.b-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.b-card:hover::after { transform: scaleX(1); }
.b-card-img { height: 210px; overflow: hidden; position: relative; }
.b-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.b-card:hover .b-card-img img { transform: scale(1.06); }
.b-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20,83,45,0.06) 100%);
}
.b-card-body { padding: 24px 24px 28px; }
.b-card-meta {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
  font-family: var(--font-sans); font-size: 0.6875rem; color: var(--text-light);
}
.b-card-meta .cat {
  background: var(--green-pale); color: var(--green-primary); padding: 2px 10px;
  border-radius: 3px; font-size: 0.625rem; font-weight: 600;
}
.b-card-title {
  font-family: var(--font-serif); font-size: 1rem; font-weight: 600;
  color: var(--text); line-height: 1.65; margin-bottom: 10px; letter-spacing: 0.02em;
}
.b-card-excerpt {
  font-family: var(--font-sans); font-size: 0.75rem; color: var(--text-light);
  line-height: 1.8; font-weight: 300;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.sec-more {
  text-align: center; margin-top: 48px;
}
.sec-more a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 36px; border: 2px solid var(--green-primary); border-radius: 6px;
  font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 500;
  color: var(--green-primary); letter-spacing: 0.06em;
  transition: all 0.35s; position: relative; overflow: hidden; z-index: 1;
}
.sec-more a::before {
  content: ''; position: absolute; inset: 0; background: var(--green-primary);
  z-index: -1; transform: scaleX(0); transform-origin: right; transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.sec-more a:hover { color: #fff; }
.sec-more a:hover::before { transform: scaleX(1); transform-origin: left; }

/* ============================================================
   ACCESS
   ============================================================ */
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.access-map {
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3; background: var(--green-pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-family: var(--font-sans); font-size: 0.875rem;
}
.access-info h3 {
  font-family: var(--font-serif); font-size: 1.25rem; color: var(--green-deep);
  margin-bottom: 20px;
}
.access-table { width: 100%; font-family: var(--font-sans); font-size: 0.8125rem; }
.access-table tr { border-bottom: 1px solid var(--border); }
.access-table th {
  font-weight: 500; color: var(--green-deep); padding: 14px 16px 14px 20px;
  white-space: nowrap; width: 90px; vertical-align: top; text-align: left;
  position: relative;
}
.access-table th::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; background: var(--gold); border-radius: 50%;
}
.access-table td { padding: 14px 0; color: var(--text-sub); line-height: 1.7; font-weight: 300; }
.access-table a { color: var(--green-primary); }
.access-table a:hover { text-decoration: underline; }

.access-sub h4 {
  font-family: var(--font-serif); font-size: 0.9375rem; font-weight: 600;
  color: var(--green-deep); margin-bottom: 8px; margin-top: 20px;
}
.access-sub ul {
  font-family: var(--font-sans); font-size: 0.875rem; line-height: 1.8;
  color: var(--text-sub); padding-left: 1.2em; font-weight: 300;
}
.access-sub ul li { list-style: disc; margin-bottom: 4px; }
.access-sub p {
  font-family: var(--font-sans); font-size: 0.875rem; line-height: 1.8;
  color: var(--text-sub); font-weight: 300;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  padding: 80px 0; text-align: center; position: relative; overflow: hidden;
  background: var(--green-pale);
}
.cta h2 {
  font-family: var(--font-serif); font-size: 1.75rem; color: var(--green-deep);
  letter-spacing: 0.1em; position: relative; margin-bottom: 20px;
}
.cta > .container > p {
  font-family: var(--font-sans); font-size: 0.9375rem; color: var(--text-sub);
  margin-bottom: 36px; font-weight: 300;
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 20px 56px; border-radius: 60px; font-family: var(--font-en-body);
  font-size: 1.5rem; font-weight: 600; color: #fff; letter-spacing: 0.03em;
  background: var(--green-primary);
  border: 2px solid var(--green-primary);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.cta-btn:hover {
  background: transparent; color: var(--green-primary);
}
.cta-btn:hover svg { fill: var(--green-primary); }
.cta-btn svg { width: 22px; height: 22px; fill: #fff; transition: fill 0.3s; }

/* FP CTA (front-page variant) */
.fp-cta {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--green-pale);
}
.fp-cta h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--green-deep);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.fp-cta p {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-sub);
  margin-bottom: 36px;
  font-weight: 300;
}
.cta-tel-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 56px;
  border-radius: 60px;
  font-family: var(--font-en-body);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.03em;
  background: var(--green-primary);
  border: 2px solid var(--green-primary);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.cta-tel-btn:hover {
  background: transparent;
  color: var(--green-primary);
}
.cta-tel-btn:hover svg { fill: var(--green-primary); }
.cta-tel-btn svg { width: 22px; height: 22px; fill: #fff; transition: fill 0.3s; }

.cta-web-btn {
  display: inline-block; margin-top: 16px;
  padding: 14px 40px; border-radius: 6px;
  background: var(--white); color: var(--green-primary);
  font-family: var(--font-sans); font-size: 1rem; font-weight: 600;
  letter-spacing: 0.06em; transition: all 0.3s;
  border: 2px solid var(--white);
}
.cta-web-btn:hover { background: transparent; color: var(--white); }
.cta-img-section { padding: 40px 0 60px; background: var(--cream); }
.cta-img-link { display: block; transition: transform 0.3s, box-shadow 0.3s; }
.cta-img-link:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.cta-hours {
  margin-top: 14px; font-family: var(--font-sans); font-size: 0.75rem;
  color: var(--text-light);
}

/* ============================================================
   PHOTO SLIDER — infinite scroll gallery
   ============================================================ */
.photo-slider {
  overflow: hidden; padding: 0; width: 100%;
  background: var(--white);
}
.photo-slider-track {
  display: flex; gap: 6px;
  animation: photoScroll 60s linear infinite;
  width: max-content;
}
.photo-slider-track img {
  height: 220px; width: auto; object-fit: cover; flex-shrink: 0;
  border-radius: 0;
}
@keyframes photoScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.demo-note {
  font-family: var(--font-sans); font-size: 0.75rem; color: var(--text-light);
  margin-top: 6px;
}

/* ============================================================
   SHINRYOU PAGE — Content Styles
   ============================================================ */
.clinic-intro {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-sub);
  line-height: 2.2;
  max-width: 800px;
  margin: 0 auto 64px;
  text-align: center;
  font-weight: 300;
  letter-spacing: 0.04em;
}
.clinic-intro p {
  font-family: var(--font-sans); font-size: 0.9375rem; color: var(--text-sub);
  line-height: 2.2; font-weight: 300;
}

.shinryou-section {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
}
.shinryou-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.shinryou-section.reverse {
  direction: rtl;
}
.shinryou-section.reverse > * {
  direction: ltr;
}

.shinryou-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.shinryou-content h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green-deep);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.shinryou-content > p {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 2.2;
  margin-bottom: 28px;
  font-weight: 300;
}

.shinryou-diseases {
  background: var(--green-bg);
  border-radius: 12px;
  padding: 28px 32px;
  border: 1px solid rgba(27,122,61,0.08);
}

.shinryou-diseases h4 {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  color: var(--green-primary);
  margin-bottom: 16px;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.shinryou-diseases ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.shinryou-diseases li {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--text-sub);
  padding-left: 18px;
  position: relative;
  line-height: 2;
  font-weight: 300;
}

.shinryou-diseases li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* ============================================================
   DAY FLOW — Hanging board
   ============================================================ */
.day-flow-wrap {
  position: relative; max-width: 1000px; margin: 0 auto; padding-top: 50px;
}
.day-flow-wrap::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 16px; height: 16px;
  background: radial-gradient(circle at 40% 35%, #5a9a6a, var(--green-primary));
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2), inset 0 1px 2px rgba(255,255,255,0.3);
  z-index: 3;
}
.day-flow-wrap::after {
  content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 160px; height: 44px;
  background:
    linear-gradient(to bottom right, transparent 48.5%, #5a6a5a 49%, #5a6a5a 50.5%, transparent 51%),
    linear-gradient(to bottom left, transparent 48.5%, #5a6a5a 49%, #5a6a5a 50.5%, transparent 51%);
  background-size: 50% 100%, 50% 100%;
  background-position: left, right;
  background-repeat: no-repeat;
  opacity: 0.25; z-index: 2;
}
.day-flow-board {
  position: relative; z-index: 1;
  background: #faf6f0; border-radius: 6px;
  box-shadow: 0 4px 24px rgba(20,83,45,0.08), 0 1px 3px rgba(0,0,0,0.04);
  padding: 48px 40px 40px;
  border-top: 3px solid var(--green-primary);
  border-bottom: 3px solid var(--green-primary);
}
.day-flow-board-title { text-align: center; margin-bottom: 36px; }
.day-flow-board-title h3 {
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600;
  color: var(--green-deep); letter-spacing: 0.08em;
  padding-bottom: 16px; border-bottom: 2px solid var(--green-primary);
  display: inline-block;
}
.day-flow-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 36px;
}
.day-flow-card { text-align: center; position: relative; }
.day-flow-card-inner {
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border); background: var(--white);
  transition: box-shadow 0.3s, transform 0.3s;
}
.day-flow-card:hover .day-flow-card-inner {
  box-shadow: 0 4px 16px rgba(20,83,45,0.10); transform: translateY(-3px);
}
.day-flow-card::after {
  content: '>'; position: absolute;
  top: 50%; right: -24px; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 700;
  color: var(--green-primary); z-index: 5; line-height: 1;
}
.day-flow-card:nth-child(3n)::after,
.day-flow-card:last-child::after { display: none; }
.day-flow-img { width: 100%; height: 170px; overflow: hidden; }
.day-flow-img img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s;
}
.day-flow-card:hover .day-flow-img img { transform: scale(1.05); }
.day-flow-body { padding: 16px 14px 20px; }
.day-flow-title {
  font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600;
  color: var(--green-deep); letter-spacing: 0.04em; margin-bottom: 6px;
}
.day-flow-time {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-en-body); font-size: 1.25rem; font-weight: 400;
  color: var(--green-primary); letter-spacing: 0.02em; margin-bottom: 10px;
}
.day-flow-time::before {
  content: ''; display: inline-block; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B7A3D' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
}
.day-flow-desc {
  font-family: var(--font-sans); font-size: 0.78rem; color: var(--text-sub);
  line-height: 1.8; font-weight: 300; text-align: left;
}

/* ============================================================
   KENSA PAGE — Highlights
   ============================================================ */
.kensa-highlights {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.kensa-highlight-card {
  background: var(--white); border-radius: 12px; padding: 36px 28px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(20,83,45,0.04);
  transition: all 0.35s;
}
.kensa-highlight-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-4px);
}
.kensa-highlight-num {
  font-family: var(--font-en); font-size: 0.75rem; color: var(--gold);
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 14px;
  font-weight: 600;
}
.kensa-highlight-card h3 {
  font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600;
  color: var(--green-deep); margin-bottom: 12px; letter-spacing: 0.06em;
}
.kensa-highlight-card p {
  font-family: var(--font-sans); font-size: 0.875rem; color: var(--text-sub);
  line-height: 1.9; font-weight: 300;
}

/* ============================================================
   KENSA PAGE — Tabs
   ============================================================ */
.kensa-tabs {
  display: flex; gap: 4px; margin-bottom: 0; flex-wrap: wrap;
  border-bottom: 2px solid var(--border);
}
.kensa-tab {
  padding: 14px 24px; font-family: var(--font-sans); font-size: 0.875rem;
  font-weight: 500; color: var(--text-sub); background: transparent;
  border: none; cursor: pointer; position: relative; letter-spacing: 0.04em;
  transition: all 0.3s; border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.kensa-tab:hover { color: var(--green-primary); }
.kensa-tab.active {
  color: var(--green-primary); border-bottom-color: var(--green-primary);
  font-weight: 600;
}

/* ============================================================
   KENSA PAGE — Panels
   ============================================================ */
.kensa-panel { display: none; }
.kensa-panel.active { display: block; }

.kensa-detail {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px;
  background: var(--white); border-radius: 12px; padding: 36px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(20,83,45,0.04);
  margin-top: 28px;
}
.kensa-detail-img img {
  width: 100%; height: 280px; object-fit: cover; border-radius: 8px;
}
.kensa-detail-info h3 {
  font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600;
  color: var(--green-deep); margin-bottom: 14px; letter-spacing: 0.06em;
}
.kensa-detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.kensa-tag {
  display: inline-block; padding: 4px 14px; border-radius: 3px;
  font-family: var(--font-sans); font-size: 0.7rem; font-weight: 600;
  color: #fff; letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--green-primary), var(--green-medium));
}
.kensa-detail-info p {
  font-family: var(--font-sans); font-size: 0.875rem; color: var(--text-sub);
  line-height: 2; font-weight: 300; margin-bottom: 20px;
}
.kensa-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  border-top: 1px solid var(--border); padding-top: 20px;
}
.kensa-meta-item dt {
  font-family: var(--font-sans); font-size: 0.7rem; color: var(--text-light);
  font-weight: 500; margin-bottom: 4px; letter-spacing: 0.04em;
}
.kensa-meta-item dd {
  font-family: var(--font-serif); font-size: 0.9375rem; color: var(--green-deep);
  font-weight: 600; letter-spacing: 0.02em;
}

/* ============================================================
   KENSA PAGE — Flow
   ============================================================ */
.kensa-flow { max-width: 800px; margin: 0 auto; }
.kensa-flow-step {
  display: flex; gap: 28px; padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.kensa-flow-step:last-child { border-bottom: none; }
.kensa-flow-num {
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en-body); font-size: 1.4rem; font-weight: 600;
  color: #fff; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-primary), var(--green-medium));
  box-shadow: 0 4px 12px rgba(27,122,61,0.2);
}
.kensa-flow-content h4 {
  font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600;
  color: var(--green-deep); margin-bottom: 8px; letter-spacing: 0.06em;
}
.kensa-flow-content p {
  font-family: var(--font-sans); font-size: 0.875rem; color: var(--text-sub);
  line-height: 2; font-weight: 300;
}

/* ============================================================
   KENSA PAGE — Notices
   ============================================================ */
.kensa-notices {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.kensa-notice {
  background: var(--white); border-radius: 12px; padding: 32px 28px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(20,83,45,0.04);
  border-left: 4px solid var(--gold);
}
.kensa-notice h4 {
  font-family: var(--font-serif); font-size: 1rem; font-weight: 600;
  color: var(--green-deep); margin-bottom: 10px; letter-spacing: 0.04em;
}
.kensa-notice p {
  font-family: var(--font-sans); font-size: 0.875rem; color: var(--text-sub);
  line-height: 2; font-weight: 300;
}

/* ============================================================
   DOCTOR PAGE — Content Styles
   ============================================================ */
.doctor-profile {
  display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start;
}
.doctor-photo {
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.doctor-photo img {
  width: 100%; height: auto; display: block;
}
.doctor-info { }
.doctor-name-area {
  margin-bottom: 24px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.doctor-name-area h3 {
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600;
  color: var(--green-deep); letter-spacing: 0.08em; margin-bottom: 4px;
}
.name-en {
  font-family: var(--font-en-body); font-size: 0.9rem; color: var(--gold);
  letter-spacing: 0.06em;
}
.doctor-message {
  margin-bottom: 32px;
}
.doctor-message p {
  font-family: var(--font-sans); font-size: 0.9375rem; color: var(--text-sub);
  line-height: 2.1; font-weight: 300; letter-spacing: 0.02em;
}
.doctor-details { }
.doctor-detail-section {
  margin-bottom: 24px;
}
.doctor-detail-section:last-child { margin-bottom: 0; }
.doctor-detail-section h4 {
  font-family: var(--font-serif); font-size: 1rem; font-weight: 600;
  color: var(--green-deep); letter-spacing: 0.06em; margin-bottom: 12px;
  padding-bottom: 8px; position: relative;
}
.doctor-detail-section h4::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 24px; height: 2px; background: var(--gold);
}
.doctor-detail-section ul {
  list-style: none; padding: 0;
}
.doctor-detail-section li {
  font-family: var(--font-sans); font-size: 0.8125rem; color: var(--text-sub);
  line-height: 2; font-weight: 300; padding-left: 16px; position: relative;
}
.doctor-detail-section li::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; background: var(--green-primary); border-radius: 50%;
}

/* ============================================================
   DOCTOR POLICY CARDS
   ============================================================ */
.doctor-policies {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.doctor-policy-card {
  background: var(--white); border-radius: 16px; padding: 40px 28px;
  box-shadow: var(--shadow-sm); text-align: center;
  transition: all 0.35s; border: 1px solid rgba(212,221,212,0.5);
  position: relative; overflow: hidden;
}
.doctor-policy-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green-primary), var(--gold));
  opacity: 0; transition: opacity 0.35s;
}
.doctor-policy-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-4px);
}
.doctor-policy-card:hover::before { opacity: 1; }
.doctor-policy-num {
  font-family: var(--font-en-body); font-size: 2.8rem; font-weight: 300;
  color: var(--green-primary); line-height: 1; margin-bottom: 16px;
  letter-spacing: -0.02em; opacity: 0.7;
}
.doctor-policy-card h4 {
  font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600;
  color: var(--green-deep); letter-spacing: 0.06em; margin-bottom: 12px;
}
.doctor-policy-card p {
  font-family: var(--font-sans); font-size: 0.8125rem; color: var(--text-sub);
  line-height: 2; font-weight: 300;
}

/* ============================================================
   CLINIC PAGE — Exterior Grid
   ============================================================ */
.clinic-exterior-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 0;
}
.clinic-exterior-grid img {
  width: 100%; height: 320px; object-fit: cover; border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s, box-shadow 0.4s;
}
.clinic-exterior-grid img:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
}

/* ============================================================
   CLINIC PAGE — Interior Grid
   ============================================================ */
.clinic-interior-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.clinic-interior-item {
  position: relative; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s, box-shadow 0.4s;
}
.clinic-interior-item:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
}
.clinic-interior-item img {
  width: 100%; height: 240px; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.clinic-interior-item:hover img { transform: scale(1.06); }
.clinic-interior-item .label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(20,83,45,0.7));
  padding: 40px 16px 14px;
  font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 500;
  color: #fff; text-align: center; letter-spacing: 0.06em;
}

/* ============================================================
   CLINIC PAGE — Equipment Grid
   ============================================================ */
.clinic-equip-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.clinic-equip-card {
  background: var(--white); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.clinic-equip-card::after {
  content: ''; display: block; height: 3px;
  background: linear-gradient(90deg, var(--green-primary), var(--gold-light));
  transform: scaleX(0); transition: transform 0.4s;
}
.clinic-equip-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
}
.clinic-equip-card:hover::after { transform: scaleX(1); }
.placeholder-img {
  background: var(--green-pale);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-size: 0.8rem; color: var(--text-light);
}
.clinic-equip-card-body {
  padding: 20px 18px 24px;
}
.clinic-equip-card-body h4 {
  font-family: var(--font-serif); font-size: 1rem; font-weight: 600;
  color: var(--green-deep); letter-spacing: 0.04em; margin-bottom: 8px;
}
.clinic-equip-card-body p {
  font-family: var(--font-sans); font-size: 0.8125rem; color: var(--text-sub);
  line-height: 1.8; font-weight: 300;
}

/* ============================================================
   BLOG PAGE LAYOUT
   ============================================================ */
.blog-page-grid {
  display: grid; grid-template-columns: 1fr 300px; gap: 48px;
  align-items: start;
}

/* Blog card list */
.blog-list-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
.blog-card {
  background: var(--white); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
  position: relative; cursor: pointer;
}
.blog-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green-primary), var(--gold-light));
  transform: scaleX(0); transition: transform 0.4s;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.blog-card:hover::after { transform: scaleX(1); }
.blog-card-img { height: 200px; overflow: hidden; position: relative; }
.blog-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20,83,45,0.06) 100%);
}
.blog-card-body { padding: 22px 22px 26px; }
.blog-card-meta {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
  font-family: var(--font-sans); font-size: 0.6875rem; color: var(--text-light);
}
.blog-card-meta .cat {
  background: var(--green-pale); color: var(--green-primary); padding: 2px 10px;
  border-radius: 3px; font-size: 0.625rem; font-weight: 600;
}
.blog-card-title {
  font-family: var(--font-serif); font-size: 0.95rem; font-weight: 600;
  color: var(--text); line-height: 1.65; margin-bottom: 10px; letter-spacing: 0.02em;
}
.blog-card-title a { color: inherit; transition: color 0.3s; }
.blog-card-title a:hover { color: var(--green-primary); }
.blog-card-excerpt {
  font-family: var(--font-sans); font-size: 0.75rem; color: var(--text-light);
  line-height: 1.8; font-weight: 300;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Pagination */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 48px;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 6px;
  font-family: var(--font-en-body); font-size: 1rem; font-weight: 600;
  color: var(--text-sub); transition: all 0.3s;
  border: 1px solid var(--border);
}
.pagination a:hover {
  border-color: var(--green-primary); color: var(--green-primary);
  background: rgba(27,122,61,0.04);
}
.pagination .current {
  background: var(--green-primary); color: #fff; border-color: var(--green-primary);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-widget {
  background: var(--white); border-radius: 16px; padding: 28px 24px;
  box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.sidebar-widget h3 {
  font-family: var(--font-serif); font-size: 1rem; font-weight: 600;
  color: var(--green-deep); margin-bottom: 18px; padding-bottom: 12px;
  position: relative; letter-spacing: 0.06em;
}
.sidebar-widget h3::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 22px; height: 2px;
  background: var(--gold);
}
.sidebar-widget ul li {
  border-bottom: 1px solid var(--border);
}
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul li a {
  display: block; padding: 12px 0;
  font-family: var(--font-sans); font-size: 0.8125rem; color: var(--text-sub);
  font-weight: 400; transition: all 0.3s; line-height: 1.6;
}
.sidebar-widget ul li a:hover {
  color: var(--green-primary); padding-left: 6px;
}

/* ============================================================
   FADE-IN ANIMATION
   ============================================================ */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1; transform: translateY(0);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--green-deep);
  color: rgba(255,255,255,0.8); position: relative;
}
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--green-primary), var(--gold), var(--gold-light), var(--gold), var(--green-primary));
}
.footer::after {
  content: ''; position: absolute; top: 4px; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.012'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 40px; padding: 80px 0 60px; position: relative; z-index: 1;
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.footer-logo .logo-mark { width: 48px; height: 48px; }
.footer-logo .logo-mark svg { width: 48px; height: 48px; }
.footer-logo .logo-mark svg text { fill: #fff !important; }
.footer-logo .logo-mark svg circle { stroke: rgba(255,255,255,0.5) !important; }
.footer-logo .logo-sub { color: rgba(255,255,255,0.6); }
.footer-logo .logo-name { color: #fff; }
.footer-logo-name {
  font-family: var(--font-serif); font-size: 1rem; color: #fff; font-weight: 600;
}
.footer-brand p {
  font-family: var(--font-sans); font-size: 0.75rem; line-height: 1.9; margin-bottom: 14px;
  font-weight: 300;
}
.footer-tel {
  font-family: var(--font-en-body); font-size: 1.2rem; color: #fff; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.footer-tel svg { width: 15px; height: 15px; fill: #fff; }
.footer-col h4 {
  font-family: var(--font-serif); font-size: 0.8125rem; color: #fff;
  margin-bottom: 20px; padding-bottom: 12px; position: relative;
  letter-spacing: 0.06em;
}
.footer-col h4::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 22px; height: 2px;
  background: var(--gold);
}
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-family: var(--font-sans); font-size: 0.75rem; color: rgba(255,255,255,0.75);
  transition: all 0.3s; font-weight: 300;
}
.footer-col a:hover { color: var(--gold-light); padding-left: 6px; }
.footer-hours {
  font-family: var(--font-sans); font-size: 0.75rem; line-height: 1.9; font-weight: 300;
}
.footer-hours p + p { margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06); padding: 22px 0; text-align: center;
  position: relative; z-index: 1;
}
.footer-bottom p {
  font-family: var(--font-sans); font-size: 0.6875rem; color: rgba(255,255,255,0.35);
}

/* ============================================================
   SIDE CTA
   ============================================================ */
.side-cta {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 90;
  display: flex; flex-direction: column; gap: 2px;
}
.side-cta a {
  writing-mode: vertical-rl; text-orientation: upright;
  padding: 22px 13px; font-family: var(--font-sans); font-size: 0.6875rem; font-weight: 600;
  color: #fff; letter-spacing: 0.16em; transition: all 0.3s; min-width: 50px;
  display: flex; align-items: center; justify-content: center;
}
.side-cta a:hover { min-width: 56px; opacity: 0.9; }
.side-cta-tel { background: linear-gradient(180deg, var(--green-primary), var(--green-deep)); border-radius: 8px 0 0 0; }
.side-cta-web { background: linear-gradient(180deg, var(--gold), #9a7a20); border-radius: 0 0 0 8px; }

/* SP fixed bottom bar */
.sp-bottom-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
}
.sp-bottom-bar-inner {
  display: grid; grid-template-columns: 1fr 1fr;
}
.sp-bottom-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 0; font-family: var(--font-sans); font-size: 0.85rem; font-weight: 600;
  color: #fff; text-align: center; letter-spacing: 0.04em;
}
.sp-bottom-bar a svg { width: 18px; height: 18px; fill: #fff; flex-shrink: 0; }
.sp-bottom-tel { background: var(--green-primary); }
.sp-bottom-web { background: var(--gold); }

/* ============================================================
   RESPONSIVE — 1280px (timetable shrink)
   ============================================================ */
@media (max-width: 1280px) {
  .hero-timetable {
    right: 30px; padding: 20px 22px; max-width: 360px;
  }
  .hero-timetable .timetable { font-size: 0.7rem; }
  .hero-timetable .timetable thead th,
  .hero-timetable .timetable tbody td,
  .hero-timetable .timetable tbody th { padding: 6px 4px; }
  .hero-tt-title { font-size: 0.8rem; }
}

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .header { height: 64px; }
  .header-inner { padding: 0 16px; }
  .logo-mark { width: 42px; height: 42px; }
  .logo-mark img { width: 42px; height: 42px; }
  .logo-name { font-size: 0.85rem; }
  .logo-sub { font-size: 0.4rem; }
  .menu-toggle { display: block; }
  .nav {
    display: none; position: fixed; top: 0; right: 0; width: 80%; max-width: 320px;
    height: 100vh; background: var(--white); flex-direction: column;
    padding: 80px 28px 40px; box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    z-index: 1005; gap: 0; overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a {
    flex-direction: row; justify-content: space-between; align-items: center;
    padding: 16px 0; border-bottom: 1px solid var(--border);
    -webkit-tap-highlight-color: rgba(0,0,0,0.05);
    touch-action: manipulation; cursor: pointer; z-index: 1010; position: relative;
  }
  .nav a .nav-en { display: none; }
  .header-right .header-tel { display: none; }
  .side-cta { display: none !important; }
  .sp-bottom-bar { display: block !important; }
  .header-tel-sp { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
  .nav { gap: 0; }
  .nav a { padding: 8px 10px; }
  .nav-jp { font-size: 0.75rem; }
  .header-tel { font-size: 1.1rem; }

  /* Hero */
  .hero { margin-top: 64px; }
  .hero-timetable { display: none; }
  .hero-heading { font-size: 2.4rem; }
  .hero-points { left: 30px; bottom: 24px; gap: 10px; }
  .hero-point-card { min-width: 150px; padding: 16px 22px 14px 20px; }
  .hero-point-n { font-size: 1.8rem; }
  .hero-point-text { font-size: 0.72rem; }

  /* Departments */
  .dept-grid { grid-template-columns: repeat(3, 1fr); }
  .dept-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .dept-bg-en { font-size: 8rem; }

  /* Page hero */
  .page-hero { margin-top: 64px; height: 200px; }

  /* Kensa */
  .kensa-highlights { grid-template-columns: repeat(3, 1fr); }
  .kensa-detail { grid-template-columns: 1fr 1.2fr; gap: 28px; }

  /* Doctor */
  .doctor-profile { grid-template-columns: 280px 1fr; gap: 36px; }

  /* Clinic */
  .clinic-equip-grid { grid-template-columns: repeat(2, 1fr); }

  /* Blog */
  .blog-page-grid { grid-template-columns: 1fr 260px; gap: 32px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  .header { height: 64px; }
  .header-inner { padding: 0 16px; }
  .logo-mark { width: 42px; height: 42px; }
  .logo-mark img { width: 42px; height: 42px; }
  .logo-name { font-size: 0.95rem; }
  .logo-sub { font-size: 0.4375rem; }
  .menu-toggle { display: block; }
  .nav {
    display: none; position: fixed; top: 0; right: 0; width: 80%; max-width: 320px;
    height: 100vh; background: var(--white); flex-direction: column;
    padding: 80px 28px 40px; box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    z-index: 1005; gap: 0; overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a {
    flex-direction: row; justify-content: space-between; align-items: center;
    padding: 16px 0; border-bottom: 1px solid var(--border);
    -webkit-tap-highlight-color: rgba(0,0,0,0.05);
    touch-action: manipulation;
    cursor: pointer;
    z-index: 1010;
    position: relative;
  }
  .nav a .nav-en { display: none; }
  .header-right .header-tel { display: none; }
  .side-cta { display: none !important; }
  .sp-bottom-bar { display: block !important; }
  .header-right .header-web { display: none; }
  .nav-web-btn {
    display: block !important;
    margin-top: 16px; background: var(--green-primary); color: #fff !important;
    border-radius: 6px; text-align: center; padding: 14px 0 !important;
    border-bottom: none !important;
  }
  .nav-web-btn .nav-jp { color: #fff; }
  .header-tel-sp { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
  .breadcrumb { padding: 10px 20px; font-size: 0.625rem; }
  .container, .container-wide { padding: 0 20px; }
  .sec { padding: 64px 0; }
  .sec-head { margin-bottom: 40px; }
  .sec-head-jp { font-size: 1.4rem; }
  .sec-head-en { font-size: 0.75rem; }
  .sec-head-bg { font-size: clamp(2.5rem, 12vw, 5rem); }
  .sec-desc { margin: -20px auto 40px; font-size: 0.8125rem; }

  /* Page hero */
  .page-hero { height: 200px; margin-top: 64px; }
  .page-hero-content h1 { font-size: 1.5rem; }

  /* Hero SP: image fills width, text overlays on image, points below */
  .hero {
    height: auto; min-height: auto; max-height: none; margin-top: 64px;
    display: block; position: relative; overflow: visible;
  }
  .hero-swiper { width: 100%; height: 115vw; min-height: 380px; max-height: 640px; }
  .hero-swiper .swiper-slide img {
    width: 100%; height: 100%; object-fit: cover; object-position: center;
    animation: none;
  }
  .hero-overlay {
    display: block;
    background: linear-gradient(
      to right,
      rgba(255,255,255,0.88) 0%,
      rgba(255,255,255,0.6) 50%,
      rgba(255,255,255,0.1) 100%
    );
  }
  .hero-content {
    position: absolute; top: 48%; left: 0; transform: translateY(-50%);
    background: transparent; padding: 0 20px; text-align: left;
    width: 70%; z-index: 3;
  }
  .hero-inner { max-width: 100%; }
  .hero-badge { font-size: 0.8rem; padding: 6px 16px; margin-bottom: 12px; }
  .hero-heading {
    font-size: 1.85rem; color: var(--green-deep);
    letter-spacing: 0.06em; line-height: 1.75; margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(255,255,255,0.95), 0 0 40px rgba(255,255,255,0.8), 0 0 8px rgba(255,255,255,1);
  }
  .hero-heading span { display: block; }
  .hero-desc {
    font-size: 0.85rem; color: var(--text-sub);
    max-width: 100%; margin: 0; line-height: 1.9;
    text-shadow: 0 0 16px rgba(255,255,255,0.95), 0 0 30px rgba(255,255,255,0.7);
  }
  .hero-badge {
    text-shadow: none;
    box-shadow: 0 0 16px rgba(255,255,255,0.8);
  }
  .hero-timetable { display: none; }
  .hero-swiper .swiper-pagination { left: 50% !important; bottom: 12px !important; transform: translateX(-50%); }
  .hero-points {
    display: flex !important; position: relative; left: auto; bottom: auto;
    z-index: 2; padding: 14px 12px 20px; gap: 10px; justify-content: center;
    background: transparent; margin-top: -50px;
  }
  .hero-point-card {
    min-width: 0; flex: 1;
    padding: 14px 12px 12px;
    transform: skewX(-6deg);
  }
  .hero-point-card-inner { transform: skewX(6deg); }
  .hero-point-n { font-size: 1.4rem; }
  .hero-point-label { font-size: 0.42rem; }
  .hero-point-text { font-size: 0.62rem; }
  .hero-point-line { opacity: 0.25; }

  /* News */
  .news-item { flex-wrap: wrap; gap: 8px 12px; padding: 16px 12px; }
  .news-date { min-width: auto; font-size: 0.75rem; }
  .news-title { width: 100%; font-size: 0.8125rem; }

  /* Features */
  .features-main-heading h2 { font-size: 1.4rem; }
  .features-main-heading .num { font-size: 2.8rem; }
  .f-group {
    grid-template-columns: 1fr; gap: 24px; padding: 48px 0;
  }
  .f-group:first-of-type { padding-top: 28px; }
  .f-group:nth-child(even) { direction: ltr; }
  .f-group-num { font-size: 2.4rem; }
  .f-group-catch { font-size: 1.15rem; }
  .f-group-images img { height: 220px; clip-path: none !important; border-radius: 10px; }
  .f-group-bg { display: none; }
  .features-section .sec-head { margin-bottom: 12px; }

  /* Flow text */
  .flow-text { padding: 28px 0; }
  .flow-text-inner span { font-size: 3.5rem; padding-right: 40px; }

  /* Greeting */
  .greeting { grid-template-columns: 1fr; gap: 32px; }
  .greeting-img img { height: 280px; }
  .greeting-img::after { display: none; }
  .greeting-text h3 { font-size: 1.2rem; }

  /* Departments & Exams */
  .dept-bg-en { font-size: clamp(2.5rem, 10vw, 4.5rem); top: 20px; overflow: hidden; max-width: 100%; }
  .dept-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .dept-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: none; }
  .dept-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .dept-img { height: 160px; border-radius: 80px 80px 0 0; }
  .dept-body { padding: 20px 14px 24px; }
  .dept-body h4 { font-size: 0.95rem; }
  .dept-btn { padding: 10px 0; font-size: 0.6875rem; }

  /* Schedule */
  .schedule-grid { grid-template-columns: 1fr; gap: 40px; }
  .timetable { font-size: 0.6875rem; }
  .timetable thead th, .timetable tbody td, .timetable tbody th { padding: 10px 6px; }

  /* Blog (top page) */
  .blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .b-card-img { height: 180px; }

  /* Blog page */
  .blog-page-grid { grid-template-columns: 1fr; gap: 40px; }
  .blog-list-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* Access */
  .access-grid { grid-template-columns: 1fr; gap: 32px; }

  /* CTA */
  .cta { padding: 56px 0; }
  .cta h2 { font-size: 1.25rem; }
  .cta-btn { padding: 16px 36px; font-size: 1.2rem; }
  .fp-cta { padding: 56px 0; }
  .fp-cta h2 { font-size: 1.25rem; }
  .cta-tel-btn { padding: 16px 36px; font-size: 1.2rem; }
  .cta-img-section { padding: 20px 0 40px !important; }

  /* Shinryou sections */
  .shinryou-section {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 56px;
    padding-bottom: 56px;
  }
  .shinryou-section.reverse { direction: ltr; }
  .shinryou-img img { height: 220px; }
  .shinryou-diseases ul { grid-template-columns: 1fr; }
  .clinic-intro { font-size: 0.8125rem; margin-bottom: 48px; }
  .section { padding: 56px 0; }
  .section-heading { margin-bottom: 36px; }
  .section-heading h2,
  .section-heading .section-heading-jp { font-size: 1.4rem; }

  /* Day flow: 2 columns */
  .day-flow-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .day-flow-board { padding: 32px 20px 28px; }
  .day-flow-wrap::after { width: 120px; height: 36px; }
  .day-flow-wrap { padding-top: 44px; }
  .day-flow-card:nth-child(3n)::after { display: block; }
  .day-flow-card:nth-child(2n)::after,
  .day-flow-card:last-child::after { display: none; }

  /* Kensa */
  .kensa-highlights { grid-template-columns: 1fr; gap: 16px; }
  .kensa-highlight-card { padding: 28px 24px; }
  .kensa-tabs { gap: 0; }
  .kensa-tab { padding: 12px 14px; font-size: 0.75rem; }
  .kensa-detail { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .kensa-detail-img img { height: 200px; }
  .kensa-meta { grid-template-columns: 1fr; gap: 12px; }
  .kensa-flow-step { gap: 18px; padding: 22px 0; }
  .kensa-flow-num { width: 40px; height: 40px; font-size: 1.1rem; }
  .kensa-notices { grid-template-columns: 1fr; gap: 16px; }

  /* Doctor profile */
  .doctor-profile { grid-template-columns: 1fr; gap: 32px; }
  .doctor-photo { max-width: 300px; margin: 0 auto; }
  .doctor-name-area h3 { font-size: 1.25rem; }
  .doctor-policies { grid-template-columns: 1fr; gap: 20px; }
  .doctor-policy-card { padding: 32px 24px; }

  /* Clinic grids */
  .clinic-exterior-grid { grid-template-columns: 1fr; }
  .clinic-exterior-grid img { height: 240px; }
  .clinic-interior-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .clinic-interior-item img { height: 180px; }
  .clinic-equip-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* SP fixed bar */
  body { padding-bottom: 0; }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
  .hero-heading { font-size: 1.3rem; }
  .dept-grid, .dept-grid-2, .dept-grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .dept-img { height: 180px; border-radius: 100px 100px 0 0; }
  .b-card-img { height: 160px; }

  /* Page hero */
  .page-hero { height: 180px; }
  .page-hero-content h1 { font-size: 1.3rem; }

  /* Shinryou */
  .shinryou-img img { height: 180px; }

  /* Day flow: 1 column + down arrows */
  .day-flow-grid { grid-template-columns: 1fr; gap: 32px; }
  .day-flow-board { padding: 28px 16px 24px; }
  .day-flow-img { height: 200px; }
  .day-flow-card::after {
    content: '\2228';
    top: auto; right: auto;
    bottom: -22px; left: 50%;
    transform: translateX(-50%);
  }
  .day-flow-card:nth-child(3n)::after { display: block; }
  .day-flow-card:nth-child(2n)::after { display: block; }
  .day-flow-card:last-child::after { display: none; }

  /* Kensa */
  .kensa-detail-info h3 { font-size: 1.05rem; }
  .kensa-flow-content h4 { font-size: 0.95rem; }

  /* Doctor */
  .doctor-photo { max-width: 260px; }

  /* Clinic */
  .clinic-interior-grid { grid-template-columns: 1fr; }
  .clinic-interior-item img { height: 200px; }

  /* Blog */
  .blog-list-grid { grid-template-columns: 1fr; gap: 20px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
