@import url("https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;700&family=Montserrat:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/icon?family=Material+Icons+Outlined");

:root {
  /* refined palette */
  --main-color: #2ea37f;
  --main-dark: #1b8e6b;
  --accent: #f594b7;
  --accent-light: #ffedf4;

  --bg: #f8fcfb;
  --surface: #ffffff;
  --surface-2: #f0f9f6;
  --text: #2c443e;
  --muted: #5c7a72;
  --border: rgba(46, 163, 127, 0.12);

  --radius: 20px;
  --radius-lg: 32px;
  --radius-sm: 12px;

  /* smoother shadows */
  --shadow-sm: 0 2px 8px rgba(13, 65, 52, 0.04), 0 1px 2px rgba(13, 65, 52, 0.04);
  --shadow-md: 0 12px 24px -6px rgba(13, 65, 52, 0.08), 0 4px 8px -4px rgba(13, 65, 52, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(13, 65, 52, 0.14);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);

  /* layout */
  --container: 1280px;
  --container-wide: 1520px;
  --gutter: clamp(20px, 4vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(
      circle at 0% 0%,
      rgba(46, 163, 127, 0.08),
      transparent 40%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(245, 148, 183, 0.08),
      transparent 40%
    ),
    var(--bg);
  font-family: "Zen Kaku Gothic New", "Helvetica Neue", "Segoe UI", sans-serif;
  line-height: 1.8;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.container {
  max-width: var(--container);
  padding: 0 var(--gutter);
  margin: 0 auto;
}

.container--wide {
  max-width: var(--container-wide);
}

/* full-bleed section backgrounds while keeping readable content width */
.section-bleed {
  position: relative;
  padding: 56px 0;
}
.section-bleed::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}
.section-bleed--alt::before {
  background: linear-gradient(
      180deg,
      rgba(46, 163, 127, 0.06),
      rgba(245, 148, 183, 0.04)
    ),
    rgba(255, 255, 255, 0.35);
  border-top-color: rgba(22, 49, 43, 0.06);
  border-bottom-color: rgba(22, 49, 43, 0.06);
}
.section-bleed > .container {
  position: relative;
  z-index: 1;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(46, 163, 127, 0.08);
  border: 1px solid rgba(46, 163, 127, 0.18);
  box-shadow: 0 10px 24px rgba(13, 65, 52, 0.06);
  cursor: pointer;
}
.nav-toggle__icon {
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s, background 0.2s, opacity 0.2s;
}
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s, top 0.2s;
}
.nav-toggle__icon::before {
  top: -6px;
}
.nav-toggle__icon::after {
  top: 6px;
}

.nav-overlay {
  display: none;
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.header__logo {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
}

.logo-img {
  height: 50px;
  width: auto;
}

.header__logo-text {
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .logo-img {
    height: 38px;
  }
  .header__logo-text {
    font-size: 0.98rem;
  }
}

.gnav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.gnav__item {
  display: inline-block;
}

.gnav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  background: transparent;
  border-radius: 99px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  border: 1px solid transparent;
}

.gnav__link:hover {
  background: rgba(46, 163, 127, 0.08);
  color: var(--main-color);
  transform: translateY(-1px);
}

.header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, var(--main-color), var(--main-dark));
  box-shadow: var(--shadow-md), 0 0 0 3px rgba(46, 163, 127, 0.15);
  border: none;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.header__cta:hover {
  transform: translateY(-1px);
}

@media (max-width: 840px) {
  .header__inner {
    gap: 10px;
  }
  .header__cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(13, 43, 35, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s;
    z-index: 40;
  }

  body.is-nav-open {
    overflow: hidden;
  }
  body.is-nav-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .u-only-mobile {
    display: block !important;
  }

  /* mobile drawer */
  .gnav {
    position: fixed;
    top: 68px;
    left: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(22, 49, 43, 0.12);
    box-shadow: var(--shadow-md);
    max-height: calc(100svh - 92px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.22s, transform 0.22s;
    z-index: 60;
  }
  body.is-nav-open .gnav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .gnav__item {
    width: 100%;
  }
  .gnav__link {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 12px;
    font-size: 1rem;
  }

  body.is-nav-open .nav-toggle__icon {
    background: transparent;
  }
  body.is-nav-open .nav-toggle__icon::before {
    top: 0;
    transform: rotate(45deg);
  }
  body.is-nav-open .nav-toggle__icon::after {
    top: 0;
    transform: rotate(-45deg);
  }
}

/* ===== Hero ===== */
.top {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 80px); /* adjusted for header */
  min-height: calc(100svh - 80px);
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 0 0 56px 0;
  background: var(--surface-2);
}

.top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(15, 43, 36, 0.1) 0%,
      rgba(15, 43, 36, 0.2) 60%,
      rgba(15, 43, 36, 0.4) 100%
    );
  z-index: 2;
  mix-blend-mode: normal;
}

.top__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 45% 95%;
  background-repeat: no-repeat;
  /* subtle zoom */
  filter: saturate(1.1) brightness(1.1);
  z-index: 1;
  animation: hero-bg-move 30s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes hero-bg-move {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.15); }
}

.top__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  display: grid;
  align-items: center;
  padding: 40px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.top__ttl {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: 0.05em;
  color: #fff;
  font-weight: 800;
  font-family: "Montserrat", "Zen Kaku Gothic New", sans-serif;
  text-align: left;
  line-height: 1.1;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.catchcopy {
  margin: 24px 0 0 0;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  text-align: left;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  max-width: 60ch;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 32px;
}

.hero-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.15)
  );
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  padding: 24px 32px;
  box-shadow: 
    0 24px 48px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
  color: #fff;
  /* backdrop-filter削除: 低スペックAndroidでチラつき発生のため */
  transform: perspective(1000px) rotateY(-2deg);
  transition: transform 0.4s ease;
}

.hero-card:hover {
  transform: perspective(1000px) rotateY(0deg) translateY(-5px);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.2)
  );
}

.hero-card__ttl {
  margin: 0 0 10px 0;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}

.hero-meta {
  display: grid;
  gap: 10px;
  margin: 0;
}

.hero-meta__row {
  display: grid;
  gap: 4px;
}
.hero-meta__label {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
  font-size: 0.92rem;
}
.hero-meta__value {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-card__cta {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.hero-tel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 999px;
  font-weight: 900;
  color: #0f2b24;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.18s;
}
.hero-tel:hover {
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .top__ttl,
  .catchcopy {
    text-align: center;
  }
  .catchcopy {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-card {
    max-width: 560px;
    margin: 0 auto;
    opacity: 0 !important;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
  }
  .hero-card.is-scrolled {
    opacity: 1 !important;
    visibility: visible;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--main-color), var(--main-dark));
  box-shadow: 0 4px 12px rgba(46, 163, 127, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 163, 127, 0.4);
}

.btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ===== Sections ===== */
main > section {
  padding: 44px 0;
}

main > section.section-bleed {
  padding: 56px 0;
}

.ttl-section,
.about__ttl {
  margin: 0 0 14px 0;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.ttl-section__ja {
  color: var(--text);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--main-color), var(--main-dark));
}

.panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 1100px) {
  .panel {
    padding: 48px;
  }
}

.panel p {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.9;
}
.panel p + p {
  margin-top: 16px;
}

.panel ul {
  margin: 16px 0 0 0;
  padding-left: 1.2em;
  color: var(--text);
}
.panel li {
  margin: 0.5em 0;
  color: var(--muted);
}
.panel li strong {
  color: var(--main-dark);
  font-weight: 700;
  background: linear-gradient(0deg, rgba(46, 163, 127, 0.15) 0%, transparent 80%);
}

/* ===== About ===== */
.about__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  align-items: start;
}

.about__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.about__body p {
  margin: 0;
}

@media (max-width: 780px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
  .about__photo {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ===== Access layout (desktop split) ===== */
.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 18px;
  margin-top: 14px;
  align-items: start;
}
.access-grid__main {
  min-width: 0;
}
.access-grid__side {
  min-width: 0;
  display: grid;
  gap: 14px;
}
@media (max-width: 1100px) {
  .access-grid {
    grid-template-columns: 1fr;
  }
}

/* PC: map and right column 5:5, and make map fill the section height */
@media (min-width: 1101px) {
  .access-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
  }
  .access-grid__main {
    display: flex;
  }
  .gmap-iframe {
    height: 100%;
  }
  .gmap-iframe iframe {
    height: 100%;
    min-height: 0;
  }
}

.card {
  background: transparent;
  border: none;
  border-radius: var(--radius);
  box-shadow: none;
  padding: 24px;
  min-width: 0;
}

.card:hover {
  box-shadow: none;
  transform: none;
  border-color: transparent;
}

.card__ttl {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--main-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Scroll Animation Utilities */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0, 0, 1), transform 0.8s cubic-bezier(0.2, 0, 0, 1);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* utilities */
.u-only-mobile {
  display: none !important;
}

.section-sm {
  margin-top: 22px;
}
.section {
  margin-top: 22px;
}
.mb-5 {
  margin-bottom: 22px;
}
.my-5 {
  margin: 22px 0;
}
.mb-4 {
  margin-bottom: 16px;
}

/* ===== Cards ===== */
.diagnosis-cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 16px;
}

@keyframes fadeInDelay {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.diagnosis-card {
  grid-column: span 6;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  min-width: 0;
}

@media (max-width: 900px) {
  .diagnosis-card {
    grid-column: span 12;
  }
}

.diagnosis-card-label {
  background: linear-gradient(
    135deg,
    rgba(46, 163, 127, 1),
    rgba(27, 142, 107, 1)
  );
  color: #fff;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
}

.diagnosis-card-body {
  padding: 16px;
  color: var(--text);
}

.price-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  color: #fff;
  background: linear-gradient(135deg, #2ea37f, #1b8e6b);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 12px 16px;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  box-shadow: 0 14px 30px rgba(46, 163, 127, 0.22);
}
.price-link-btn:hover {
  transform: translateY(-1px);
}

/* ===== Price page ===== */
.price-section {
  padding-top: 34px;
}
.ttl-section--page {
  margin-bottom: 18px;
}

.ttl-04 {
  margin: 28px 0 12px 0;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.col {
  grid-column: span 6;
}
@media (max-width: 900px) {
  .col {
    grid-column: span 12;
  }
}

@media (min-width: 1200px) {
  .row {
    gap: 18px;
  }
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.price {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 14px;
  align-items: baseline;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(13, 65, 52, 0.06);
}

.price__name {
  font-weight: 800;
  color: var(--text);
}
.price__name--lg {
  font-size: 1.05rem;
}

.price__num {
  font-family: "Montserrat", "Zen Kaku Gothic New", "Segoe UI", sans-serif;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--main-color);
  white-space: nowrap;
}

.price__tax {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.92rem;
}

.price__sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--text);
  background: rgba(46, 163, 127, 0.1);
  border: 1px solid rgba(46, 163, 127, 0.2);
  margin-right: 10px;
  white-space: nowrap;
}

.price__sub--time {
  background: rgba(245, 148, 183, 0.12);
  border-color: rgba(245, 148, 183, 0.22);
}

.text-primary {
  color: #d34f7a;
  font-weight: 800;
}

/* ===== Map / Contact ===== */
.gmap-iframe {
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  width: 100%;
  margin: 16px 0 0 0;
  border: 1px solid var(--border);
  background: var(--surface);
}
.gmap-iframe iframe {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: none;
}
.contact h3 {
  font-size: 1.02rem;
  margin: 16px 0 6px 0;
}
.tel {
  font-weight: 900;
  color: var(--main-color);
  font-size: 1.08rem;
}

.access__address {
  color: var(--muted);
  font-style: normal;
}

/* ===== Schedule ===== */
.schedule {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.schedule__ttl {
  margin: 0 0 10px 0;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.schedule__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  max-width: 100%;
}

.schedule__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  /* NOTE: keep table design, but allow it to shrink on small screens */
  min-width: 0;
}

.schedule__caption {
  caption-side: top;
  text-align: left;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
}

.schedule__caption-text {
  vertical-align: middle;
}

.schedule__th,
.schedule__td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
}

.schedule__th {
  text-align: center;
  font-weight: 900;
  color: var(--text);
  background: rgba(46, 163, 127, 0.06);
}

.schedule__th--time {
  text-align: left;
  width: 220px;
  background: rgba(46, 163, 127, 0.04);
}

.schedule__td {
  text-align: center;
  background: rgba(255, 255, 255, 0.86);
}

.schedule__table tbody tr:last-child .schedule__th,
.schedule__table tbody tr:last-child .schedule__td {
  border-bottom: none;
}

.schedule__subnote {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 700;
  margin-top: 2px;
}

.schedule__note {
  margin: 10px 0 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.schedule__dash {
  color: rgba(22, 49, 43, 0.35);
  font-weight: 900;
}

/* paw icon (HTML img) */
.paw-img {
  --paw-size: 18px;
  display: inline-block;
  width: var(--paw-size);
  height: var(--paw-size);
  vertical-align: -3px;
}

.schedule__note-text {
  color: #888 !important;
  font-size: 0.75rem !important;
  line-height: 1.5;
  margin-top: 8px;
}

@media (max-width: 520px) {
  .schedule__th--time {
    width: 160px;
  }
  .paw-img {
    --paw-size: 16px;
  }
}

/* schedule: keep design, just scale down on smartphones (no horizontal scroll) */
@media (max-width: 640px) {
  html {
    font-size: 14px;
  }
  .schedule__table-wrap {
    overflow-x: hidden;
    width: 100%;
    padding: 0;
  }
  .card {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
  }
  .panel {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }
  .panel::before {
    display: none;
  }
  .schedule__table,
  .schedule__th,
  .schedule__th--time {
    background: transparent !important;
  }
  .schedule__caption {
    padding: 10px 12px;
    font-size: 0.88rem;
  }
  .schedule__table {
    table-layout: fixed;
    width: 100%;
    /* No min-width, must fit screen */
  }
  .schedule__th,
  .schedule__td {
    padding: 10px 4px; /* reduced padding */
    font-size: 0.85rem; /* slightly smaller if needed */
  }
  .schedule__th--time {
    width: 105px; /* Slightly wider */
    white-space: nowrap;
    padding: 10px 4px; /* Increased padding */
  }
  .schedule__subnote {
    font-size: 0.8rem;
  }
  .paw-img {
    --paw-size: 14px;
  }
}

/* ===== SFTS ===== */
.sfts__grid {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}
.sfts__body p {
  margin: 0;
}
.sfts__figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  max-width: 560px;
}
.sfts__figure img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 900px) {
  .sfts__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    align-items: start;
    gap: 18px;
  }
  /* keep HTML order as "image then text" for mobile, but show text-left / image-right on PC */
  .sfts__body {
    grid-column: 1;
    grid-row: 1;
  }
  .sfts__figure {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    max-width: none;
    width: 100%;
  }
}

/* ===== Price meta ===== */
.price-meta {
  display: grid;
  gap: 4px;
  margin: -14px 0 18px 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(46, 163, 127, 0.06);
  color: var(--text);
}
.price-meta__item {
  margin: 0;
}
.price-meta__item strong {
  color: var(--text);
}

/* ===== Footer ===== */
.footer {
  padding: 22px 0 30px 0;
  color: var(--muted);
  background: transparent;
  border-top: 1px solid var(--border);
}
.copyright {
  font-size: 0.92rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* Header CTA */
.header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, var(--main-color), var(--main-dark));
  box-shadow: var(--shadow-md), 0 0 0 3px rgba(46, 163, 127, 0.15);
  border: none;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  text-decoration: none;
  margin-left: 16px;
}

.header__cta:hover {
  transform: translateY(-1px);
  opacity: 0.95;
  color: #fff;
}

@media (max-width: 840px) {
  /* Removed .header__cta { display: none; } to show on mobile */
  .header__cta {
    display: inline-flex;
    font-size: 0.8rem;
    padding: 6px 12px;
    margin-left: auto; /* Push to right, near toggle */
    margin-right: 12px;
  }
}

/* Tel override */
.tel {
  font-size: 1.5rem !important; /* Larger phone number */
}

/* Fix Access Panel to blend with background */
#access .panel {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
#access .panel::before {
  display: none !important;
}
#access .panel:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* About Career List */
.about__career {
  margin-top: 24px;
  background: rgba(46, 163, 127, 0.04);
  padding: 20px;
  border-radius: 12px;
}
.about__career-ttl {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 12px 0;
  color: #174238; /* main-dark */
  border-bottom: 1px solid rgba(22, 49, 43, 0.1);
  padding-bottom: 8px;
}
.about__career-list {
  padding-left: 0;
  list-style: none;
  margin: 0;
}
.about__career-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  line-height: 1.5;
  font-size: 0.95rem;
}
.about__career-list li:last-child {
  margin-bottom: 0;
}
.about__career-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ea37f; /* main-color */
}

/* Added for restructuring */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.nav-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(46, 163, 127, 0.1);
  text-align: center;
}

.nav-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--main-color);
}

.nav-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--main-color);
}

.nav-card__ttl {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--main-dark);
  margin: 0 0 8px 0;
}

.nav-card__desc {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

/* Medical Services Grid */
.medical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.medical-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
  transition: all 0.3s ease;
  height: 100%;
}



.medical-card__icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.medical-card__text {
  font-weight: 700;
  color: var(--main-dark);
  font-size: 1rem;
  text-align: center;
  line-height: 1.4;
}

/* Philosophy Summary */
.philosophy-brief {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.philosophy-brief__img {
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
  .philosophy-brief {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* --- Refactor New Styles --- */

.nav-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 10;
  margin-top: -80px;
  padding-bottom: 20px;
}

@media (max-width: 900px) {
  .nav-cards-grid {
    grid-template-columns: 1fr;
    margin-top: -40px;
  }
}

.nav-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  height: 100%;
  text-decoration: none;
  color: var(--text);
}

.nav-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border-color: var(--main-color);
}

.nav-card__icon {
  width: 64px;
  height: 64px;
  background: var(--surface-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--main-color);
  margin-bottom: 8px;
}

.nav-card__icon span {
  font-size: 32px;
}

.nav-card__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}

.nav-card__sub {
  display: block;
  font-size: 0.9rem;
  color: var(--main-dark);
  font-weight: 700;
  margin-top: 4px;
}

.nav-card__desc {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* Medical Services Grid */
.medical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

@media (max-width: 768px) {
  .medical-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.medical-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s;
}

.medical-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.medical-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.medical-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.about__photo--landscape {
  aspect-ratio: 4 / 3 !important;
  max-width: 100%;
}

/* --- New Animations --- */

/* Base Logic: all animations use .is-visible to trigger */

.fade-in {
  opacity: 0;
  transition: opacity 1s ease-out;
}
.fade-in.is-visible {
  opacity: 1;
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.slide-in-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.slide-in-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.zoom-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.zoom-in.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered Delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Image Rotation Fix */
.about__photo {
  overflow: hidden;
  position: relative;
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-rotate-90 {
  transform: rotate(90deg) scale(1.35);
  transform-origin: center;
}

	/* ===== Parking Guide ===== */
.parking-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px; /* Increased from 16px */
    margin-top: 24px;
}
@media (min-width: 768px) {
    .parking-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 48px; /* Increase gap for desktop */
    }
}
.parking-item {
    text-align: center;
}
.parking-item img {
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
    margin-bottom: 8px;
    transition: transform 0.2s;
}
.parking-item:hover img {
    transform: scale(1.02);
}
.parking-caption {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--main-dark);
}

/* ===== Stationmaster Cats ===== */
.cat-section-wrapper {
    margin-top: 16px;
}
.cat-container {
    margin-top: 0;
    padding: 0;
    text-align: center;
}
.cat-display {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 0;
    align-items: flex-end;
}

@media (min-width: 900px) {
    .cat-section-wrapper {
        display: flex;
        align-items: center;
        gap: 32px;
        justify-content: space-between;
    }
    .cat-section-wrapper p {
        flex: 1;
        margin: 0;
        text-align: left;
    }
    .cat-container {
        flex-shrink: 0;
    }
    .cat-display {
        gap: 24px;
    }
}
.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 130px; /* Smaller size */
}
.cat-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15)); /* Adjusted shadow for transparency */
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cat-item:hover .cat-img {
    transform: scale(1.1) rotate(2deg);
}
.cat-nametag {
    margin-top: -14px;
    background: #fff;
    color: var(--main-dark);
    padding: 6px 14px 6px 30px; /* Reduced padding */
    border-radius: 99px;
    font-size: 0.75rem; /* Reduced font size */
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(13, 65, 52, 0.1);
    z-index: 2;
    position: relative;
    white-space: nowrap;
    letter-spacing: 0.05em;
    border: 1px solid rgba(46, 163, 127, 0.15);
    transition: transform 0.2s;
}
.cat-nametag::before {
    content: "pets";
    font-family: "Material Icons Outlined";
    position: absolute;
    left: 8px; /* Adjusted position */
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px; /* Reduced icon size */
    color: var(--accent);
}
.cat-item:hover .cat-nametag {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(13, 65, 52, 0.15);
}

/* Parking Arrows */
.parking-item {
    position: relative;
}
/* Desktop: arrows between 1-2, 2-3, 3-4 */
@media (min-width: 768px) {
    .parking-item:not(:last-child)::after {
        content: "arrow_forward";
        font-family: "Material Icons Outlined";
        position: absolute;
        right: -36px;
        top: 40%; /* Moved slightly up */
        transform: translateY(-50%);
        color: var(--main-color);
        font-size: 24px;
        font-weight: bold;
    }
}
/* Mobile: arrows between 1-2, 3-4 */
@media (max-width: 767px) {
    .parking-grid {
        position: relative;
    }
    /* Diagonal Arrow in Center */
    .parking-grid::after {
       content: "south_west";
       font-family: "Material Icons Outlined";
       position: absolute;
       top: 45%; /* Moved up slightly */
       left: 50%;
       transform: translate(-50%, -50%);
       color: var(--main-color);
       font-size: 24px; /* Same size as others */
       font-weight: bold;
       z-index: 1;
       text-shadow: 0 2px 4px rgba(255,255,255,0.8);
    }

    /* 1->2 and 3->4 arrows */
    .parking-item:nth-child(2n+1)::after {
       content: "arrow_forward";
       font-family: "Material Icons Outlined";
       position: absolute;
       right: -30px; /* Moved more right */
       top: 45%; /* Moved more down */
       transform: translateY(-50%);
       color: var(--main-color);
       font-size: 24px; /* Same size as others */
       font-weight: bold;
       z-index: 1;
    }
}

/* ===== Utility: Emphasis ===== */
.u-text-alert {
  color: #e53935; /* Red prominent color */
  font-weight: 800;
  background: linear-gradient(180deg, transparent 65%, rgba(229, 57, 53, 0.15) 65%);
}

.notice-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff8f8;
  border: 2px solid #ffcdd2;
  border-radius: 12px;
  padding: 16px;
  margin-top: 24px;
  color: #c62828;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.08);
  /* Make it pulse slightly to catch attention */
  animation: pulse-border 2s infinite;
}

.notice-box .material-icons-outlined {
  font-size: 1.5rem;
  color: #d32f2f;
}

@keyframes pulse-border {
  0% { border-color: #ffcdd2; box-shadow: 0 0 0 0 rgba(239, 83, 80, 0.4); }
  70% { border-color: #ef5350; box-shadow: 0 0 0 4px rgba(239, 83, 80, 0); }
  100% { border-color: #ffcdd2; box-shadow: 0 0 0 0 rgba(239, 83, 80, 0); }
}

/* Remove green border from Medical Services panel */
#service .panel::before {
  display: none;
}

/* Ensure medical cards have no border */
.medical-card {
  border: none !important;
}

/* ===== お知らせバナー ===== */
.news-banner-section {
  padding: 24px 0;
  margin-bottom: 24px;
}

.news-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(46, 163, 127, 0.08), rgba(46, 163, 127, 0.04));
  border: 2px solid var(--main-color);
  border-radius: 16px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(46, 163, 127, 0.1);
}

.news-banner:hover {
  background: linear-gradient(135deg, rgba(46, 163, 127, 0.12), rgba(46, 163, 127, 0.06));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(46, 163, 127, 0.15);
}

.news-banner__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--main-color);
  border-radius: 12px;
  flex-shrink: 0;
}

.news-banner__icon .material-icons-outlined {
  color: white;
  font-size: 24px;
}

.news-banner__content {
  flex: 1;
  min-width: 0;
}

.news-banner__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.news-banner__label {
  display: inline-block;
  padding: 4px 10px;
  background: var(--main-color);
  color: white;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.news-banner__date {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.news-banner__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-banner__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.news-banner__btn:hover {
  background: var(--main-color);
  border-color: var(--main-color);
}

.news-banner__btn:hover .material-icons-outlined {
  color: white;
}

.news-banner__btn .material-icons-outlined {
  color: var(--main-color);
  font-size: 24px;
}

@media (max-width: 600px) {
  .news-banner {
    padding: 14px 16px;
    gap: 12px;
  }
  
  .news-banner__icon {
    width: 40px;
    height: 40px;
  }
  
  .news-banner__icon .material-icons-outlined {
    font-size: 20px;
  }
  
  .news-banner__title {
    font-size: 0.9rem;
  }
}

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

.news-more-link a {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.news-more-link a:hover {
  border-bottom-color: var(--muted);
  color: var(--main-dark);
}

/* ===== お知らせモーダル ===== */
.news-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.news-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.news-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  /* backdrop-filter削除: 低スペックAndroidでチラつき発生のため */
}

.news-modal__content {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 32px;
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.news-modal.is-open .news-modal__content {
  transform: translateY(0);
}

.news-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--surface-2);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
}

.news-modal__close:hover {
  background: var(--main-color);
}

.news-modal__close:hover .material-icons-outlined {
  color: white;
}

.news-modal__close .material-icons-outlined {
  color: var(--muted);
  font-size: 20px;
}

.news-modal__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.news-modal__title {
  margin: 0 0 20px 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}

.news-modal__body {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

@media (max-width: 600px) {
  .news-modal__content {
    padding: 24px 20px;
    margin: 0 10px;
  }
  
  .news-modal__title {
    font-size: 1.1rem;
  }
}

/* ===== Night Emergency Section (Blue Theme) ===== */
#night-emergency .panel::before {
  background: linear-gradient(90deg, #4A90E2, #357ABD);
}

#night-emergency .card__ttl {
  color: #357ABD;
}

#night-emergency .tel {
  color: #4A90E2;
}

#night-emergency .btn--primary {
  background: linear-gradient(135deg, #4A90E2, #357ABD);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

#night-emergency .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.4);
}

/* ===== 低スペックデバイス向けパフォーマンス最適化 ===== */

/* GPUレイヤー化でチラつき防止 */
.header,
.gnav,
.nav-overlay {
  will-change: transform, opacity;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* hero-cardは既存のtransformを維持 */
.hero-card {
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* backdrop-filterのフォールバック（低スペック対応） */
@supports not (backdrop-filter: blur(1px)) {
  .header {
    background: rgba(255, 255, 255, 0.98);
  }
  .hero-card {
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.25),
      rgba(255, 255, 255, 0.15)
    );
  }
  .gnav {
    background: rgba(255, 255, 255, 0.99);
  }
}

/* アニメーション軽減設定 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .fade-up,
  .fade-in,
  .slide-in-left,
  .slide-in-right,
  .zoom-in {
    opacity: 1 !important;
    transform: none !important;
  }
  
  .hero-card {
    transform: none !important;
  }
  
  .top__bg {
    animation: none !important;
    transform: scale(1.05) !important;
  }
}

/* モバイルでの軽量化 */
@media (max-width: 840px) {
  /* ハンバーガーメニューのアニメーション最適化 */
  .gnav {
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  
  .nav-overlay {
    transition: opacity 0.15s ease-out;
  }
  
  /* ヘッダーのblur軽減 */
  .header {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  
  /* hero-cardのblur軽減 */
  .hero-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* 更に低スペック向け：blur完全無効化オプション */
@media (max-width: 840px) and (prefers-reduced-motion: reduce) {
  .header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.97);
  }
  
  .hero-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.3),
      rgba(255, 255, 255, 0.2)
    );
  }
  
  .gnav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.99);
  }
}
