/* ============================================================
   ゆりがおか眼科 — Apple級デザインシステム v1.0
   白基調 × ネイビー(#1A3D72)アクセント / 全ページ共通
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-navy-pale: #eef4f5;
  --ink: #231f1f;
  --ink-soft: #6e6e73;
  --ink-faint: #a1a1a6;
  --line: #e3e3e6;
  --line-strong: #d0d0d6;
  --black: #22383e;
  --navy: #4e7682;
  --navy-deep: #395a64;
  --navy-soft: #7fa6af;
  --cyan: #6ea4b2;
  --cyan-pale: #e9f3f5;
  --coral: #e48178;
  --amber: #c99a3f;
  --sage: #7fae8e;
  --ivory: #faf5ec;
  --coral-pale: #fbeae7;
  --amber-pale: #f7efdd;
  --sage-pale: #ebf3ee;
  --maxw: 1120px;
  --maxw-narrow: 780px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue",
    "Hiragino Sans", "Noto Sans JP", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  font-feature-settings: "palt" 1;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}

/* ---- type utilities ---- */
.kicker {
  font-size: clamp(0.76rem, 1.3vw, 0.92rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--navy-soft);
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.display {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.h2 {
  font-size: clamp(1.8rem, 4.6vw, 3.2rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.h3 {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.lead {
  font-size: clamp(1.02rem, 2vw, 1.35rem);
  line-height: 1.85;
  color: var(--ink-soft);
  font-weight: 400;
}
.accent {
  color: var(--navy);
}

/* ============================================================
   Header（半透明ブラー固定ヘッダー）
   ============================================================ */
.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.hdr::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--coral),
    #e6b54a,
    var(--sage),
    var(--cyan),
    var(--navy)
  );
}
.hdr-in {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand b {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy-deep);
}
.brand span {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.hdr-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.hdr-nav a {
  font-size: 0.84rem;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.hdr-nav a:hover,
.hdr-nav a[aria-current="page"] {
  color: var(--navy);
}
.hdr-cta {
  background: var(--navy);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1.15rem;
  border-radius: 980px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.hdr-cta:hover {
  background: var(--navy-deep);
  transform: scale(1.03);
}

/* mobile nav */
.nav-toggle {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 20px;
  height: 1.6px;
  background: var(--ink);
  transition:
    transform 0.25s var(--ease),
    opacity 0.2s;
}
.nav-toggle span {
  top: 19px;
}
.nav-toggle span::before {
  top: -6px;
  left: 0;
}
.nav-toggle span::after {
  top: 6px;
  left: 0;
}
@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }
  .hdr-nav {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.25s var(--ease),
      opacity 0.2s;
  }
  .hdr-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .hdr-nav a {
    padding: 12px 24px;
    width: 100%;
    text-align: center;
    font-size: 1rem;
  }
  .hdr-cta {
    margin: 8px 24px 0;
    text-align: center;
  }
  body.nav-open .nav-toggle span {
    background: transparent;
  }
  body.nav-open .nav-toggle span::before {
    transform: translateY(6px) rotate(45deg);
  }
  body.nav-open .nav-toggle span::after {
    transform: translateY(-6px) rotate(-45deg);
  }
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: clamp(80px, 12vw, 140px) 22px;
}
.section-soft {
  background: linear-gradient(180deg, #f6f8fa, #eef4f5);
}
.section-navy {
  background: var(--navy-deep);
  color: #fff;
}
.section-navy .lead {
  color: rgba(255, 255, 255, 0.72);
}
.section-in {
  max-width: var(--maxw);
  margin: 0 auto;
}
.section-in-narrow {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
}
.center {
  text-align: center;
}

/* ---- Hero ---- */
.hero {
  padding: clamp(120px, 18vw, 200px) 22px clamp(80px, 12vw, 140px);
  text-align: center;
}
.hero .lead {
  max-width: 640px;
  margin: 1.6rem auto 0;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.4rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 1.7rem;
  border-radius: 980px;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover {
  background: var(--navy-deep);
  transform: scale(1.03);
}
.btn-ghost {
  color: var(--navy);
  border: 1px solid var(--line-strong);
  background: #fff;
}
.btn-ghost:hover {
  border-color: var(--navy);
}
.link-arrow {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}
.link-arrow::after {
  content: " ›";
}
.link-arrow:hover {
  text-decoration: underline;
}

/* ---- Cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: clamp(2.4rem, 5vw, 4rem);
}
.card {
  background: #fff;
  border-radius: 24px;
  padding: clamp(1.8rem, 3.4vw, 2.6rem);
  border: 1px solid var(--line);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
a.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(11, 34, 64, 0.1);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-navy-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.cards .card:nth-child(4n + 1) .card-icon {
  background: var(--cyan-pale);
  color: var(--navy);
}
.cards .card:nth-child(4n + 2) .card-icon {
  background: var(--coral-pale);
  color: #c96f66;
}
.cards .card:nth-child(4n + 3) .card-icon {
  background: var(--amber-pale);
  color: #a87d2a;
}
.cards .card:nth-child(4n) .card-icon {
  background: var(--sage-pale);
  color: #5d8a6e;
}
.card h3 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.75;
}
.card .link-arrow {
  margin-top: auto;
  font-size: 0.88rem;
}

/* ---- Feature rows（左右交互の大セクション） ---- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.feature:first-of-type {
  margin-top: 0;
}
@media (max-width: 780px) {
  .feature {
    grid-template-columns: 1fr;
  }
}
.feature-visual {
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--bg-navy-pale), var(--cyan-pale));
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-body h3 {
  margin-bottom: 0.9rem;
}
.feature-body p {
  color: var(--ink-soft);
  line-height: 1.9;
}
.feature-body .link-arrow {
  display: inline-block;
  margin-top: 1.2rem;
}

/* ---- Stats ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.stat b {
  display: block;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.1;
}
.section-navy .stat b {
  color: #fff;
}
.stat span {
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.section-navy .stat span {
  color: rgba(255, 255, 255, 0.65);
}

/* ---- 診療時間テーブル ---- */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 0.95rem;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.hours-table th,
.hours-table td {
  padding: 0.95rem 0.6rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.hours-table thead th {
  background: var(--bg-navy-pale);
  font-weight: 600;
  color: var(--navy-deep);
  font-size: 0.88rem;
}
.hours-table tbody th {
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-soft);
  white-space: nowrap;
}
.hours-table tr:last-child th,
.hours-table tr:last-child td {
  border-bottom: none;
}
.hours-ok {
  color: var(--navy);
  font-weight: 700;
}
.hours-no {
  color: var(--ink-faint);
}
.hours-note {
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin-top: 1rem;
  line-height: 1.8;
}

/* ---- info list（住所・電話など定義リスト） ---- */
.info-list {
  margin-top: 2rem;
}
.info-list > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
}
@media (max-width: 560px) {
  .info-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
.info-list dt {
  color: var(--ink-soft);
  font-weight: 600;
}
.info-list dd {
  color: var(--ink);
}

/* ---- FAQ ---- */
.faq-list {
  margin-top: 2.5rem;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 1.4rem 0.2rem;
  font-weight: 600;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--navy-soft);
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item .faq-a {
  padding: 0 0.2rem 1.5rem;
  color: var(--ink-soft);
  line-height: 1.9;
  font-size: 0.95rem;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 22px 0;
  font-size: 0.8rem;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumb a {
  color: var(--ink-soft);
}
.breadcrumb a:hover {
  color: var(--navy);
}
.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 6px;
  color: var(--ink-faint);
}

/* ---- Page hero（下層ページ用） ---- */
.page-hero {
  padding: clamp(56px, 8vw, 90px) 22px clamp(40px, 6vw, 70px);
  text-align: center;
}
.page-hero .lead {
  max-width: 680px;
  margin: 1.4rem auto 0;
}

/* ---- Prose（本文記事） ---- */
.prose {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
}
.prose h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  letter-spacing: -0.01em;
  margin: clamp(3rem, 6vw, 4.5rem) 0 1.2rem;
  line-height: 1.35;
}
.prose h3 {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  margin: 2.2rem 0 0.8rem;
}
.prose p {
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
  line-height: 2;
  font-size: 1rem;
}
.prose ul {
  margin: 0 0 1.4rem;
}
.prose ul li {
  position: relative;
  padding-left: 1.4em;
  color: var(--ink-soft);
  margin-bottom: 0.55rem;
  line-height: 1.9;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy-soft);
}
.prose strong {
  color: var(--ink);
}
.prose .callout {
  background: var(--bg-navy-pale);
  border-radius: 18px;
  padding: 1.5rem 1.7rem;
  margin: 1.8rem 0;
  font-size: 0.94rem;
  color: var(--ink);
  line-height: 1.9;
}
.prose .callout b {
  color: var(--navy-deep);
}

/* ---- CTA band ---- */
.cta-band {
  text-align: center;
}
.cta-band .h2 {
  margin-bottom: 1rem;
}
.cta-band .lead {
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* ---- Footer ---- */
.footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.75);
  padding: clamp(56px, 8vw, 80px) 22px 40px;
  font-size: 0.85rem;
}
.footer-in {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 780px) {
  .footer-in {
    grid-template-columns: 1fr;
  }
}
.footer h4,
.footer .footer-h {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}
.footer-brand b {
  color: #fff;
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.6rem;
}
.footer-brand p {
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.6);
}
.footer ul li {
  margin-bottom: 0.55rem;
}
.footer a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s;
}
.footer a:hover {
  color: #fff;
}
.footer-bottom {
  max-width: var(--maxw);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
}

/* ---- 比較表（横スクロール対応） ---- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 2rem;
}
.table-scroll .hours-table {
  min-width: 720px;
  margin-top: 0;
}
.table-scroll .hours-table td {
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.7;
}
.table-scroll .hours-table td:first-child {
  text-align: center;
}

/* ---- 治療の流れ（STEP） ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 2.5rem;
  counter-reset: step;
}
.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.6rem 1.5rem;
}
.step-card b {
  display: block;
  color: var(--navy-soft);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.step-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.step-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.8;
}

/* ---- タグチップ ---- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.8rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg-navy-pale);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
}
.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--cyan);
}
.chips .chip:nth-of-type(4n + 2)::before {
  background: var(--coral);
}
.chips .chip:nth-of-type(4n + 3)::before {
  background: var(--amber);
}
.chips .chip:nth-of-type(4n)::before {
  background: var(--sage);
}

/* ---- Reveal on scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   Figures & Photos（画像レイアウト）
   ============================================================ */
.figure {
  margin: 2rem 0;
}
.figure img,
.photo-grid img,
.vision-compare img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
}
.figure figcaption,
.vision-compare figcaption {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.7rem;
  line-height: 1.7;
  text-align: center;
}
.vision-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 2rem 0;
}
@media (max-width: 640px) {
  .vision-compare {
    grid-template-columns: 1fr;
  }
}
.vision-compare figure {
  margin: 0;
}
.vision-compare .vc-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
.vc-label-normal {
  background: var(--bg-navy-pale);
  color: var(--navy);
}
.vc-label-sick {
  background: #fbe1d8;
  color: #b04a30;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 2rem;
}
.hero-figure {
  max-width: var(--maxw);
  margin: clamp(24px, 4vw, 48px) auto 0;
  padding: 0 22px;
}
.hero-figure img {
  width: 100%;
  height: clamp(260px, 42vw, 520px);
  object-fit: cover;
  border-radius: 28px;
}
.portrait {
  width: min(320px, 70vw);
  margin: 0 auto;
}
.portrait img {
  border-radius: 24px;
}
.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
}
.card-thumb {
  margin: -0.4rem 0 0.6rem;
}
.card-thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 14px;
}

/* ---- ブランドロゴ（オリジナル完全コピー） ---- */
.brand-logo {
  height: 48px;
  width: auto;
  display: block;
}
@media (max-width: 480px) {
  .brand-logo {
    height: 40px;
  }
}

/* ---- 見え方比較スライダー（ドラッグで切替） ---- */
.vision-slider {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin: 2rem 0;
  touch-action: none;
  user-select: none;
  box-shadow: 0 8px 32px rgba(34, 56, 62, 0.12);
}
.vision-slider > img {
  display: block;
  width: 100%;
  height: auto;
}
.vision-slider .vs-top {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 50%);
}
.vision-slider .vs-top img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vision-slider .vs-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
  pointer-events: none;
}
.vision-slider .vs-handle::after {
  content: "◀ ▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.vision-slider input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}
.vision-slider .vs-tag {
  position: absolute;
  top: 12px;
  z-index: 2;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  pointer-events: none;
}
.vision-slider .vs-tag-l {
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
}
.vision-slider .vs-tag-r {
  right: 12px;
  background: rgba(228, 129, 120, 0.94);
  color: #fff;
}

/* ---- 見え方エフェクト（同一写真に病態別フィルタ＝境目完全一致） ---- */
.vision-slider .vs-top::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.vs-blur .vs-top img {
  filter: blur(7px);
}
.vs-cataract .vs-top img {
  filter: blur(2.5px) brightness(1.28) contrast(0.72) saturate(0.72);
}
.vs-cataract .vs-top::after {
  background:
    radial-gradient(
      circle at 32% 28%,
      rgba(255, 255, 255, 0.7),
      transparent 42%
    ),
    radial-gradient(
      circle at 68% 22%,
      rgba(255, 255, 255, 0.55),
      transparent 38%
    ),
    rgba(255, 255, 255, 0.32);
}
.vs-glaucoma .vs-top img {
  filter: brightness(0.92) saturate(0.85);
}
/* 緑内障: まわりからぼんやり暗く狭くなる（求心性視野狭窄）を1枚の滑らかな
   ビネットで表現。黒ベタの楕円を散らす旧表現は「シミ」に見えるため廃止 */
.vs-glaucoma .vs-top::after {
  background: radial-gradient(
    ellipse 60% 52% at 52% 46%,
    transparent 0%,
    transparent 30%,
    rgba(10, 11, 13, 0.28) 52%,
    rgba(7, 8, 10, 0.72) 72%,
    rgba(4, 4, 5, 0.94) 90%,
    rgba(3, 3, 3, 0.97) 100%
  );
}
.vs-floaters .vs-top::after {
  background:
    radial-gradient(
      circle 14px at 31% 30%,
      rgba(25, 25, 25, 0.5),
      transparent 70%
    ),
    radial-gradient(
      circle 8px at 55% 22%,
      rgba(25, 25, 25, 0.45),
      transparent 70%
    ),
    radial-gradient(
      ellipse 34px 7px at 63% 48%,
      rgba(25, 25, 25, 0.4),
      transparent 70%
    ),
    radial-gradient(
      circle 10px at 42% 62%,
      rgba(25, 25, 25, 0.42),
      transparent 70%
    ),
    radial-gradient(
      ellipse 26px 6px at 25% 74%,
      rgba(25, 25, 25, 0.36),
      transparent 70%
    ),
    radial-gradient(
      circle 6px at 74% 68%,
      rgba(25, 25, 25, 0.4),
      transparent 70%
    );
}
.vs-amd .vs-top img {
  filter: blur(0.8px);
}
.vs-amd .vs-top::after {
  background: radial-gradient(
    ellipse 44% 42% at 50% 46%,
    rgba(35, 28, 22, 0.92),
    rgba(35, 28, 22, 0.6) 38%,
    rgba(35, 28, 22, 0.25) 55%,
    transparent 72%
  );
}

/* ---- 地図・360度ビュー埋め込み ---- */
.map-embed {
  border-radius: 20px;
  overflow: hidden;
  margin-top: 2rem;
  box-shadow: 0 8px 32px rgba(34, 56, 62, 0.1);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 48vw, 480px);
  border: 0;
}

/* ============================================================
   トップページ刷新 v9 — 集合写真ヒーロー＋モーション
   （白山LC Ivory Calm の演出手法を移植・ティール調に最適化）
   ============================================================ */

/* ---- フォトヒーロー ---- */
.hero-photo {
  position: relative;
  min-height: min(92svh, 840px);
  display: flex;
  align-items: flex-end;
  padding: 0;
  text-align: left;
  overflow: hidden;
  background: var(--black);
}
.hero-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transform: scale(1.08);
  animation: heroZoom 10s var(--ease) forwards;
  will-change: transform;
}
@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}
.hero-photo::after {
  /* 文字の可読性を守るスクリム（下から濃いティール） */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(20, 40, 46, 0.82) 0%,
    rgba(20, 40, 46, 0.46) 38%,
    rgba(20, 40, 46, 0.16) 68%,
    rgba(20, 40, 46, 0.24) 100%
  );
  pointer-events: none;
}
.hero-photo-in {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(140px, 20vw, 220px) 22px clamp(64px, 9vw, 104px);
}
.hero-photo .kicker {
  color: rgba(255, 255, 255, 0.72);
}
.hero-photo .display {
  color: #fff;
  text-shadow: 0 2px 24px rgba(10, 25, 30, 0.35);
}
.hero-photo .lead {
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
  margin: 1.6rem 0 0;
}
.hero-photo .hero-ctas {
  justify-content: flex-start;
}
.btn-light {
  background: #fff;
  color: var(--navy-deep);
}
.btn-light:hover {
  background: var(--cyan-pale);
  transform: scale(1.03);
}
.btn-ghost-inv {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(30, 52, 58, 0.35);
}
.btn-ghost-inv:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

/* 診療領域の入替わりテキスト */
.hero-swapline {
  margin-top: 1.5rem;
  font-size: clamp(0.95rem, 1.9vw, 1.08rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}
.swap {
  display: inline-grid;
  vertical-align: bottom;
}
.swap > span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(0.5em);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease);
  color: #ffd9d4;
  white-space: nowrap;
}
.swap > span.on {
  opacity: 1;
  transform: none;
}

/* 読み込み時の段差フェードイン（ヒーロー内のみ） */
.hero-photo .rise {
  opacity: 0;
  transform: translateY(24px);
  animation: riseIn 0.9s var(--ease) forwards;
}
.hero-photo .rise.r1 {
  animation-delay: 0.15s;
}
.hero-photo .rise.r2 {
  animation-delay: 0.3s;
}
.hero-photo .rise.r3 {
  animation-delay: 0.45s;
}
.hero-photo .rise.r4 {
  animation-delay: 0.6s;
}
.hero-photo .rise.r5 {
  animation-delay: 0.75s;
}
@keyframes riseIn {
  to {
    opacity: 1;
    transform: none;
  }
}

/* スクロールキュー */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
}
.scroll-cue::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
  animation: cueDrop 2s var(--ease) infinite;
}
@keyframes cueDrop {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(14px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

/* リビールの時間差（既存 .reveal に付加） */
.reveal.d1 {
  transition-delay: 0.08s;
}
.reveal.d2 {
  transition-delay: 0.16s;
}
.reveal.d3 {
  transition-delay: 0.24s;
}
.reveal.d4 {
  transition-delay: 0.32s;
}

/* CTA帯のゆらぐグラデーション */
.cta-band {
  background: linear-gradient(
    115deg,
    var(--cyan-pale),
    #fdf3f1,
    var(--bg-navy-pale),
    var(--cyan-pale)
  );
  background-size: 300% 300%;
  animation: bandShift 18s ease infinite;
}
@keyframes bandShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* 創業の思い — 院長写真 */
.story-photo {
  max-width: 560px;
  margin: 2.2rem auto 0;
}
.story-photo img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(10, 25, 30, 0.35);
}

/* モーション低減設定の尊重 */
@media (prefers-reduced-motion: reduce) {
  .hero-photo-bg img {
    animation: none;
    transform: none;
  }
  .hero-photo .rise {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .swap > span {
    transition: none;
  }
  .scroll-cue::before {
    animation: none;
  }
  .cta-band {
    animation: none;
  }
}

@media (max-width: 720px) {
  .hero-photo {
    min-height: 88svh;
  }
  .hero-photo-bg img {
    object-position: 42% 30%;
  }
  .hero-photo-in {
    padding-top: clamp(120px, 30vw, 160px);
  }
  .swap {
    min-width: 8.5em;
  }
}

/* ============================================================
   v10 — ヒーロー・スライドショー（集合写真は全員が写る contain 方式）
   ============================================================ */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: translate;
}
.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.85s var(--ease);
  will-change: opacity;
}
.hero-slide.on {
  opacity: 1;
}
.hero-slide .hs-main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
  will-change: transform;
  backface-visibility: hidden;
}
/* 集合写真スライド: 全員必ず表示（contain）＋同写真のぼかし背景 */
.slide-contain .hs-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(26px) brightness(0.82) saturate(1.05);
  transform: scale(1.15);
}
.slide-contain .hs-main {
  object-fit: contain;
  object-position: 50% 34%;
  /* ごく僅かなドリフトのみ（人が切れないため拡大はしない） */
  animation: heroDrift 9s var(--ease) forwards;
}
@keyframes heroDrift {
  from {
    transform: translateY(1.2%) scale(1.005);
  }
  to {
    transform: translateY(0) scale(1);
  }
}
/* Ken Burns（各スライドで方向を変える） */
.hero-slide.kb-out .hs-main {
  transform: scale(1.2);
  animation: kbOut 4.5s linear forwards;
}
@keyframes kbOut {
  from {
    transform: scale(1.2);
  }
  to {
    transform: scale(1.02);
  }
}
.hero-slide.kb-pan .hs-main {
  transform: scale(1.12) translateX(-1.5%);
  animation: kbPan 9s linear forwards;
}
@keyframes kbPan {
  from {
    transform: scale(1.12) translateX(-1.5%);
  }
  to {
    transform: scale(1.06) translateX(1.5%);
  }
}
/* キャプションとドット */
.hero-caption {
  position: absolute;
  right: 20px;
  bottom: 48px;
  z-index: 3;
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(20, 40, 46, 0.55);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}
.hero-dots {
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 3;
  display: flex;
  gap: 7px;
}
.hero-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  transition:
    background 0.4s,
    transform 0.4s;
}
.hero-dots i.on {
  background: #fff;
  transform: scale(1.25);
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide .hs-main,
  .slide-contain .hs-main {
    animation: none !important;
    transform: none !important;
  }
  .hero-slide {
    transition: none;
  }
}
@media (max-width: 720px) {
  .hero-caption {
    bottom: 44px;
    right: 14px;
  }
  .hero-dots {
    right: 16px;
    bottom: 18px;
  }
}

/* ============================================================
   v11 — ヒーロー kb-in ＋ チーム集合写真バンド（ノートリミング）
   ============================================================ */
.hero-slide.kb-in .hs-main {
  transform: scale(1);
  animation: kbIn 10s linear forwards;
}
@keyframes kbIn {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

.team-band {
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  background: linear-gradient(180deg, #fff, var(--ivory));
}
.team-photo {
  max-width: var(--maxw);
  margin: clamp(1.8rem, 4vw, 3rem) auto 0;
  padding: 0 22px;
}
.team-photo img {
  width: 100%;
  height: auto; /* トリミングせず全員を表示 */
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(34, 56, 62, 0.18);
}
.team-photo figcaption {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* タブ非表示中はフェードを無効化（復帰時の不整合防止） */
body.page-hidden .hero-slide {
  transition: none;
}

/* v14 — 実写2枚をヒーローに追加（建物外観・駅サイン）。看板が切れないよう位置調整 */
.hero-slide.slide-building .hs-main {
  object-position: 60% 58%;
  transform: scale(1.3) translateY(-8%);
  animation: bldSky 4.5s ease-in-out forwards;
}
@keyframes bldSky {
  from {
    transform: scale(1.3) translateY(-8%);
  }
  to {
    transform: scale(1.3) translateY(8%);
  }
}
/* v19 — 集合写真の横パン。写真は高さ100%・実寸幅ではみ出させ、
   JS(WAAPI)が実測距離を左端→右端へ translateX する（GPU合成でなめらか） */
.hero-slide.slide-group .hs-main {
  width: auto;
  max-width: none;
  height: 100%;
  left: 0;
  top: 0;
  animation: none;
  transform: translateX(0);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.slide-group .hs-main {
    width: 100%;
    transform: none !important;
  }
}

/* v20 — ヒーロー内「院内ツアー」スライド（複数カットを巡回クロスフェード） */
.slide-tour .tour-img {
  opacity: 0;
  transition: opacity 0.55s var(--ease);
}
.slide-tour .tour-img.on {
  opacity: 1;
  animation: tourZoom 3s linear forwards;
}
@keyframes tourZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.04);
  }
}
@media (prefers-reduced-motion: reduce) {
  .slide-tour .tour-img {
    transition: none;
    animation: none !important;
    transform: none !important;
  }
}

/* v16 — 院内ウォークスルー（自動再生・動画風クロスフェード） */
.walkthrough {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: var(--black);
  box-shadow: 0 24px 64px rgba(34, 56, 62, 0.18);
}
.wt-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.5s var(--ease);
  will-change: opacity;
}
.wt-slide.on {
  opacity: 1;
}
.wt-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
  backface-visibility: hidden;
}
.wt-slide.on img {
  animation: wtPan 6s linear forwards;
}
@keyframes wtPan {
  from {
    transform: scale(1.05) translateX(1.5%);
  }
  to {
    transform: scale(1.12) translateX(-1.5%);
  }
}
.wt-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(20, 40, 46, 0.55);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.wt-play {
  width: 0;
  height: 0;
  border-left: 9px solid #fff;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  animation: wtBlink 2.4s ease-in-out infinite;
}
@keyframes wtBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wt-slide img {
    animation: none;
    transform: none;
  }
  .wt-slide {
    transition: none;
  }
  .wt-play {
    animation: none;
  }
}

.card-media {
  margin: 0 0 0.2rem;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

a.card:hover .card-media img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  a.card:hover .card-media img {
    transform: none;
  }
}

/* v22 — モバイルで幅広の表はページをはみ出さず表内で横スクロール */
@media (max-width: 600px) {
  .hours-table,
  .prose table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* v24 — 切替時ガタつき根治: 非表示スライドは描画・アニメを完全停止し、
   表示中(.on)と退場中(.leaving)の2枚だけを合成対象にする */
.hero-slide:not(.on):not(.leaving) {
  visibility: hidden;
}
.hero-slide:not(.on):not(.leaving) .hs-main {
  animation-play-state: paused;
}

/* ============================================================
   v25 — ①院内カット切替のガタつき根治（ヒーロー内ツアー＋ウォークスルー）
        ②集合写真パン高速化 ③文字をくっきり大きく
   ============================================================ */
/* ①-A ヒーロー内ツアー: 退場中(.leaving)も同じアニメ宣言を維持して
   位置の跳びをゼロに。非表示カットは描画から完全に外す */
.slide-tour .tour-img.leaving {
  animation: tourZoom 3s linear forwards;
}
.slide-tour .tour-img:not(.on):not(.leaving) {
  visibility: hidden;
}
/* ①-B 院内ウォークスルー: 同じ対策（退場中もアニメ継続＋非表示は描画停止） */
.wt-slide.leaving img {
  animation: wtPan 6s linear forwards;
}
.wt-slide:not(.on):not(.leaving) {
  visibility: hidden;
}
/* ③ 文字: 基準16→17px・くっきり描画・本文半段太く・文字色を濃く */
html {
  font-size: 106.25%;
  -webkit-font-smoothing: auto;
}
body {
  font-weight: 500;
}
:root {
  --ink: #1b1918;
  --ink-soft: #515157;
  --ink-faint: #83838a;
}
.lead {
  font-weight: 500;
}
/* v26 — 文字17px化に伴うモバイル横はみ出し修正:
   グリッドの子は最小コンテンツ幅で親を押し広げない */
.feature > * {
  min-width: 0;
}
.info-list dd {
  overflow-wrap: anywhere;
}
