/* rege 自費診療ポータル 共通スタイル */
:root {
  /* Default theme: Emerald gradient + gold accent */
  --c-bg: #f6faf7;
  --c-bg-soft: #e9f1ec;
  --c-bg-cream: #faf6ec;
  --c-ink: #0f2a23;
  --c-ink-soft: #3a5a50;
  --c-mute: #7a9389;
  --c-line: #d6e4dc;
  --c-primary: #0e6e5a;
  --c-primary-deep: #053b30;
  --c-primary-soft: #d4ebe1;
  --c-accent: #25b18a;
  --c-accent-glow: #6ed4ad;
  --c-gold: #c5a572;
  --c-gold-soft: #e3d4ad;
  --c-gold-deep: #a08550;
  --c-cta: #0e6e5a;
  --c-cta-deep: #053b30;
  --grad-emerald: linear-gradient(135deg, #053b30 0%, #0e6e5a 45%, #25b18a 100%);
  --grad-emerald-soft: linear-gradient(135deg, #d4ebe1 0%, #b8e0cf 50%, #8fcfb6 100%);
  --grad-gold: linear-gradient(135deg, #c5a572 0%, #e3d4ad 50%, #c5a572 100%);
  --grad-emerald-line: linear-gradient(90deg, transparent, #25b18a, transparent);
  --font-jp: "Noto Sans JP", system-ui, sans-serif;
  --font-en: "Jost", "Helvetica Neue", sans-serif;
  --font-num: "Jost", "Helvetica Neue", sans-serif;
  --header-h: 88px;
}

/* Theme: deep emerald (richer) */
[data-theme="deep"] {
  --c-bg: #eaf3ee;
  --c-bg-soft: #d4e6dc;
  --c-primary: #0a4d3f;
  --c-primary-deep: #02261e;
  --c-primary-soft: #c5e0d2;
  --c-accent: #1ea783;
  --c-cta: #0a4d3f;
  --c-cta-deep: #02261e;
  --grad-emerald: linear-gradient(135deg, #02261e 0%, #0a4d3f 50%, #1ea783 100%);
}

/* Theme: fresh emerald (lighter, mint) */
[data-theme="fresh"] {
  --c-bg: #f7fcf9;
  --c-bg-soft: #e3f2ea;
  --c-primary: #1aa37f;
  --c-primary-deep: #0e6e5a;
  --c-primary-soft: #c8edd9;
  --c-accent: #4ed3a8;
  --c-cta: #1aa37f;
  --c-cta-deep: #0e6e5a;
  --grad-emerald: linear-gradient(135deg, #0e6e5a 0%, #25b18a 50%, #6ed4ad 100%);
}

/* Theme: jewel (deepest, jewel-tone) */
[data-theme="jewel"] {
  --c-bg: #f3f7f5;
  --c-bg-soft: #d8e6df;
  --c-primary: #066354;
  --c-primary-deep: #022a23;
  --c-primary-soft: #b8d6c9;
  --c-accent: #d4af37;
  --c-cta: #066354;
  --c-cta-deep: #022a23;
  --grad-emerald: linear-gradient(135deg, #022a23 0%, #066354 60%, #d4af37 100%);
}

/* Font variants */
[data-font="serif-headings"] h1,
[data-font="serif-headings"] h2,
[data-font="serif-headings"] h3,
[data-font="serif-headings"] .display {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  letter-spacing: 0.02em;
}
[data-font="all-serif"] {
  font-family: "Noto Serif JP", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  scrollbar-gutter: stable;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
html, body {
  font-family: var(--font-jp);
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
  line-height: 1.7;
  font-size: 18px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============ HEADER ============ */
.rege-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(244, 249, 246, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-line);
  transition: background 0.3s, height 0.3s, border-color 0.3s;
  transform: translateY(-100%);
  animation: headerDrop 0.9s 0.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes headerDrop { to { transform: translateY(0); } }
.rege-header.scrolled {
  height: 72px;
  background: rgba(244, 249, 246, 0.96);
  box-shadow: 0 4px 20px -10px rgba(5, 59, 48, 0.18);
}
.rege-header__inner {
  max-width: 1440px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 32px;
  padding: 0 32px;
}
.rege-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-en);
  color: var(--c-primary-deep);
  flex-shrink: 0;
  height: 100%;
  margin-right: auto;
}
.rege-logo img {
  display: block;
  height: 38px; width: auto;
  transition: height 0.3s;
}
.rege-header.scrolled .rege-logo img { height: 32px; }
.rege-logo__mark {
  font-size: 30px; font-weight: 600; letter-spacing: 0.02em;
}
.rege-logo__sub {
  font-family: var(--font-jp); font-size: 14px; letter-spacing: 0.18em;
  color: var(--c-ink-soft); font-weight: 500;
}
.rege-nav {
  display: flex; gap: 28px;
  font-size: 14px; font-weight: 500;
  align-items: center;
}
.rege-nav a {
  position: relative; padding: 6px 0;
  color: var(--c-ink); transition: color 0.2s;
}
.rege-nav a:hover { color: var(--c-primary); }
.rege-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--c-gold);
  transition: width 0.3s;
}
.rege-nav a:hover::after { width: 100%; }

/* Dropdown group */
.rege-nav__group {
  position: relative;
  display: inline-block;
}
.rege-nav__trigger {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; color: var(--c-ink);
  background: transparent; border: none;
  padding: 6px 0; cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.rege-nav__trigger::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--c-gold);
  transition: width 0.3s;
}
.rege-nav__group:hover .rege-nav__trigger,
.rege-nav__group:focus-within .rege-nav__trigger { color: var(--c-primary); }
.rege-nav__group:hover .rege-nav__trigger::after,
.rege-nav__group:focus-within .rege-nav__trigger::after { width: 100%; }
.rege-nav__caret {
  font-size: 14px; color: var(--c-gold);
  transition: transform 0.25s;
  display: inline-block;
}
.rege-nav__group:hover .rege-nav__caret,
.rege-nav__group:focus-within .rege-nav__caret { transform: rotate(180deg); }

.rege-nav__menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--c-line);
  box-shadow: 0 18px 48px rgba(5, 30, 24, 0.12);
  padding: 8px 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 100;
}
.rege-nav__menu::before {
  content: "";
  position: absolute;
  top: -16px; left: 0; right: 0; height: 16px;
}
.rege-nav__group:hover .rege-nav__menu,
.rege-nav__group:focus-within .rege-nav__menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.rege-nav__menu a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px;
  color: var(--c-primary-deep);
  white-space: nowrap;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
}
.rege-nav__menu a::after { display: none; }
.rege-nav__menu a:hover {
  background: var(--c-bg-soft);
  color: var(--c-primary);
}
.rege-nav__menu-num {
  font-family: var(--font-en); font-style: italic;
  font-size: 14px; color: var(--c-gold);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.rege-nav__menu-lbl {
  flex: 1; display: flex; flex-direction: column; gap: 2px;
}
.rege-nav__menu-lbl small {
  font-family: var(--font-en);
  font-size: 14px; letter-spacing: 0.28em;
  color: var(--c-mute); text-transform: uppercase;
}
.rege-nav__menu-arrow {
  font-family: var(--font-en);
  color: var(--c-gold); font-size: 14px;
  transition: transform 0.25s;
}
.rege-nav__menu a:hover .rege-nav__menu-arrow { transform: translateX(3px); }

.rege-header__actions {
  display: flex; gap: 12px; align-items: center;
}
.rege-header__actions .btn-cta { font-size: 14px; }
.btn-tel {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-num); font-size: 22px; font-weight: 600;
  color: var(--c-primary-deep); letter-spacing: 0.04em;
  line-height: 1;
}
.btn-tel small {
  display: block; font-family: var(--font-jp); font-size: 14px;
  font-weight: 500; letter-spacing: 0.16em; color: var(--c-ink-soft);
  margin-bottom: 3px;
}
.btn-tel-block { line-height: 1.1; }
.btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad-emerald); color: #fff;
  padding: 12px 22px; font-size: 14px; font-weight: 600;
  letter-spacing: 0.08em;
  border: 1px solid var(--c-gold);
  border-radius: 999px;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s, filter 0.25s;
  position: relative; overflow: hidden;
  isolation: isolate;
  box-shadow: 0 6px 18px -8px rgba(14, 110, 90, 0.5);
}
.btn-cta::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, #25b18a 0%, #6ed4ad 60%, #25b18a 100%);
  opacity: 0; transition: opacity 0.3s;
  z-index: -1;
}
.btn-cta > * { position: relative; z-index: 1; }
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(14, 110, 90, 0.55);
}
.btn-cta:hover::before { opacity: 1; }
.btn-cta--lg { padding: 18px 36px; font-size: 14px; }
.btn-cta--ghost {
  background: transparent; color: var(--c-primary);
  border: 1px solid currentColor; box-shadow: none;
}
.btn-cta--ghost::before { background: var(--grad-emerald); }
.btn-cta--ghost:hover { color: #fff; border-color: transparent; }

/* ============ Section base ============ */
.section {
  padding: 80px 32px;
  max-width: 1440px; margin: 0 auto;
}
.section--narrow { max-width: 1200px; }
.section--full { max-width: none; padding-left: 0; padding-right: 0; }

.section-head {
  text-align: center; margin-bottom: 72px;
  position: relative;
}
.section-head--center { margin-bottom: 40px; }
.section-head__en {
  display: block; font-family: var(--font-en);
  font-size: 14px;  font-weight: 500;
  letter-spacing: 0.36em;
  background: linear-gradient(135deg, var(--c-gold-deep), var(--c-gold), var(--c-gold-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1; margin-bottom: 9px;
  text-transform: uppercase;
}
.section-head__shine { display: none !important; }
.section-head__shine::before, .section-head__shine::after { display: none !important; }
.section-head__jp {
  font-size: 36px; font-weight: 600;
  letter-spacing: 0.12em; color: var(--c-primary-deep);
  display: inline-block; padding-top: 4px; line-height: 1.5;
}
.section-head__lead {
  margin-top: 22px; font-size: 18px; color: var(--c-ink-soft);
  letter-spacing: 0.06em; line-height: 2;
}

/* ============ Reveal Animations ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-up { opacity: 0; transform: translateY(32px); transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-24px); transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(24px); transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.97); transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.06s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.1s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.14s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.18s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.22s; }

/* line draw */
@keyframes lineDraw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.is-visible .draw-line { animation: lineDraw 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; transform-origin: left; }

/* perpetual subtle float */
@keyframes floatSlow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.divider-line {
  width: 1px; height: 56px; margin: 0 auto;
  background: linear-gradient(to bottom, transparent, var(--c-accent), transparent);
}

/* ============ Image Placeholder ============ */
.img-placeholder {
  position: relative;
  background: var(--grad-emerald-soft);
  overflow: hidden;
  color: var(--c-primary-deep);
  width: 100%; height: 100%;
}
.img-placeholder::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(14, 110, 90, 0.12) 0%, rgba(37, 177, 138, 0.06) 50%, rgba(110, 212, 173, 0.18) 100%);
}
.img-placeholder::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(45deg, transparent 49%, rgba(5, 59, 48, 0.08) 49%, rgba(5, 59, 48, 0.08) 51%, transparent 51%);
  background-size: 14px 14px; opacity: 0.5;
}
.img-placeholder__inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 24px;
  z-index: 2;
}
.img-placeholder__corner {
  position: absolute;
  font-family: var(--font-en);  font-size: 14px;
  letter-spacing: 0.3em; color: var(--c-primary-deep); opacity: 0.6;
}
.img-placeholder__corner--tl { left: 16px; top: 16px; }
.img-placeholder__corner--br { right: 16px; bottom: 16px; }
.img-placeholder__icon { color: var(--c-primary); opacity: 0.55; }
.img-placeholder__label {
  font-family: var(--font-en);  font-size: 14px;
  letter-spacing: 0.3em; color: var(--c-primary-deep);
}
.img-placeholder__sub {
  font-size: 14px; letter-spacing: 0.16em; color: var(--c-ink-soft);
}
.img-placeholder--ba { display: grid; place-items: center; height: 100%; }
.img-placeholder--ba-after { background: var(--grad-emerald); color: #fff; }
.img-placeholder--ba-after::after { opacity: 0.2; }
.img-placeholder--ba-after .img-placeholder__label { color: #fff; }
.img-placeholder--portrait { aspect-ratio: auto; }

/* footer */
.rege-footer {
  background: var(--grad-emerald);
  color: rgba(255,255,255,0.92);
  padding: 80px 140px 32px 32px;
  font-size: 18px;
  position: relative; overflow: hidden;
}
.rege-footer::before {
  content: ""; position: absolute; right: -200px; top: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, var(--c-accent-glow) 0%, transparent 70%);
  opacity: 0.18; pointer-events: none;
}
.rege-footer__inner {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 64px;
}
.rege-footer h4 {
  font-size: 14px; letter-spacing: 0.16em; margin-bottom: 18px;
  color: #fff; font-weight: 600;
}
.rege-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rege-footer a { opacity: 0.7; transition: opacity 0.2s; }
.rege-footer a:hover { opacity: 1; }
.rege-footer__bottom {
  max-width: 1440px; margin: 56px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 14px; letter-spacing: 0.1em; opacity: 0.6;
  display: flex; justify-content: space-between;
}


/* === Footer logo === */
.rege-footer__logo img {
  display: block;
  height: 44px; width: auto;
  max-width: 100%;
}

/* === Drawer brand logo === */
.mnav__brand { display: block; }
.mnav__brand img {
  display: block;
  height: 36px; width: auto;
}


/* ============ Floating CTA (right side) ============ */
.floating-cta {
  position: fixed;
  right: 16px;
  bottom: 80px;
  top: auto;
  transform: none;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
}
.lime-tmp{}
.floating-cta__item {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  width: 80px;
  min-height: 88px;
  padding: 12px 6px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-align: center;
  line-height: 1.4;
  cursor: pointer;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s, filter 0.35s;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.floating-cta__item::before {
  content: ; position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.18);
  opacity: 0; transition: opacity 0.3s;
  z-index: -1;
}
.floating-cta__item:hover {
  transform: translateX(-4px) scale(1.04);
  filter: brightness(1.04);
}
.floating-cta__item:hover::before { opacity: 1; }
.floating-cta__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  flex-shrink: 0;
}
.floating-cta__icon svg, .floating-cta__icon img { width: 100%; height: 100%; display: block; object-fit: contain; }
.floating-cta__label { display: block; white-space: nowrap; }

/* Primary: emerald gradient */
.floating-cta__item--primary {
  background: var(--grad-emerald);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 12px 28px -10px rgba(14, 110, 90, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* LINE: official LINE green */
.floating-cta__item--line {
  background: linear-gradient(135deg, #06C755 0%, #04a346 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 12px 28px -10px rgba(6, 199, 85, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Gold: category */
.floating-cta__item--gold {
  background: linear-gradient(135deg, var(--c-gold-deep) 0%, var(--c-gold) 50%, var(--c-gold-soft) 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow:
    0 12px 28px -10px rgba(160, 133, 80, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

@media (max-width: 943px) {
  .floating-cta {
    right: 8px;
    gap: 8px;
  }
  .floating-cta__item {
    width: 84px;
    min-height: 86px;
    padding: 12px 6px;
    font-size: 14px;
    border-radius: 10px;
  }
  .floating-cta__icon { width: 22px; height: 22px; }
}
@media (max-width: 480px) {
  .floating-cta {
    right: 6px;
    gap: 6px;
  }
  .floating-cta__item {
    width: 72px;
    min-height: 76px;
    padding: 10px 4px;
    font-size: 14px;
  }
  .floating-cta__icon { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .floating-cta__item { transition: none; }
}


@media (max-width: 943px) {
  .rege-footer { padding-bottom: 80px !important; }
  .floating-cta {
    right: 0; left: 0; bottom: 0;
    top: auto; transform: none;
    flex-direction: row; gap: 0;
    width: 100%;
    z-index: 95;
  }
  .floating-cta__item {
    flex: 1; min-height: 60px;
    width: auto; max-width: none;
    flex-direction: row;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 14px;
  }
  .floating-cta__item:hover { transform: none; }
  .floating-cta__item:hover::before { opacity: 0; }
  .floating-cta__item--gold { display: none; }
  .floating-cta__icon { width: 24px; height: 24px; }
  .floating-cta__label { white-space: nowrap; }
  .floating-cta__label br { display: none; }
}
@media (max-width: 480px) {
  .floating-cta__item { font-size: 14px; padding: 10px 12px; gap: 6px; }
  .floating-cta__icon { width: 20px; height: 20px; }
}

/* PC のみで改行する br */
.pc-only { display: inline; }
@media (max-width: 943px) {
  .pc-only { display: none !important; }
}
