/* ================================================================
   Haripo Shinkyu Renewal 2
   A quiet editorial redesign based on the current site draft.
   Copy is kept in HTML; this file reshapes layout, hierarchy, and UI.
================================================================ */

:root {
  --ink: #272322;
  --ink-soft: #5a504d;
  --muted: #817672;
  --paper: #fbfaf7;
  --paper-soft: #f3eee8;
  --paper-warm: #efe5dc;
  --line: #ddd3cb;
  --line-soft: #eee6df;
  --brand: #793246;
  --brand-deep: #512434;
  --brand-pale: #f4e5ea;
  --sage: #687866;
  --sage-pale: #e9eee7;
  --white: #ffffff;
  --line-app: #06c755;

  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Shippori Mincho", "Noto Serif JP", serif;

  --header-height: 72px;
  --container: 1160px;
  --measure: 720px;
  --radius: 8px;
  --shadow: 0 18px 54px rgba(39, 35, 34, 0.08);
  --shadow-soft: 0 10px 28px rgba(39, 35, 34, 0.06);

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --sp-9: 56px;
  --sp-10: 72px;

  --fs-label: 0.78rem;
  --fs-small: 0.92rem;
  --fs-body: 1rem;
  --fs-h3: clamp(1.08rem, 1.8vw, 1.25rem);
  --fs-h2: clamp(1.35rem, 2.8vw, 1.85rem);
  --fs-h1: clamp(1.85rem, 4vw, 2.65rem);
  --fs-hero: clamp(2.05rem, 7vw, 4.4rem);

  --lh-tight: 1.3;
  --lh-snug: 1.55;
  --lh-base: 1.82;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  min-height: 100vh;
  padding-top: var(--header-height);
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(121, 50, 70, 0.055) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(121, 50, 70, 0.055) 0 1px, transparent 1px 100%),
    var(--paper);
  background-size: 72px 72px;
  font-family: var(--font-main);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.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;
}

.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 36px);
}

h1,
h2,
h3,
h4,
h5,
h6,
.feature-grid-title,
.course-card-title,
.first-visit-step-title,
.first-visit-notes-title,
.profile-name,
.reservation-step-title,
.plan-detail-title,
.equipment-title,
.footer-logo {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: var(--lh-snug);
  letter-spacing: 0;
}

p {
  line-height: var(--lh-base);
}

/* Header -------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-height);
  z-index: 100;
  background: rgba(251, 250, 247, 0.9);
  border-bottom: 1px solid rgba(221, 211, 203, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  width: min(100%, 1220px);
  height: 100%;
  margin: 0 auto;
  padding-inline: clamp(18px, 4vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--brand-deep);
  z-index: 110;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.86rem;
}

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}

.nav-list a:hover {
  color: var(--brand-deep);
}

.nav-list a.is-current {
  color: var(--brand-deep);
}

.nav-list a.is-current::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 1px;
  background: currentColor;
}

.nav-list .nav-reserve {
  margin-left: 4px;
  color: var(--white);
  background: var(--brand);
  border-radius: 9999px;
}

.nav-list .nav-reserve::after {
  content: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  z-index: 110;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-deep);
  gap: 8px;
  font: inherit;
  cursor: pointer;
}

.menu-toggle-icon {
  width: 28px;
  display: grid;
  gap: 5px;
  place-items: center;
}

.menu-toggle-bar {
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
  transform-origin: center;
}

.menu-toggle-label {
  font-size: var(--fs-label);
  font-weight: inherit;
  letter-spacing: 0;
}

.menu-toggle.is-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(32deg);
}

.menu-toggle.is-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-32deg);
}

/* Buttons ------------------------------------------------------- */
.btn,
.contact-btn,
.sticky-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 9999px;
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.35;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.12s;
}

.btn:hover,
.contact-btn:hover {
  transform: translateY(-1px);
}

.btn-primary,
.contact-btn {
  color: var(--white);
  background: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover,
.contact-btn:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}

.btn-secondary,
.btn-outline {
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.76);
  border-color: var(--line);
}

.btn-secondary:hover,
.btn-outline:hover {
  background: var(--brand-pale);
  border-color: var(--brand);
}

.btn-primary::after,
.btn-secondary::after,
.btn-outline::after,
.contact-btn::after,
.sticky-cta a::after {
  content: "→";
  font-size: 1rem;
}

/* Top hero ------------------------------------------------------ */
.hero {
  position: relative;
  min-height: clamp(520px, 76vh, 760px);
  display: grid;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 28px clamp(20px, 4vw, 52px) 28px auto;
  width: min(47vw, 620px);
  border: 1px solid rgba(221, 211, 203, 0.9);
  background: var(--paper-soft);
  z-index: -2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  position: absolute;
  inset: 28px clamp(20px, 4vw, 52px) 28px auto;
  width: min(47vw, 620px);
  height: calc(100% - 56px);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  filter: saturate(0.9) contrast(0.98);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.96) 0%, rgba(251, 250, 247, 0.93) 42%, rgba(251, 250, 247, 0.35) 78%, rgba(251, 250, 247, 0.08) 100%);
}

.hero .container {
  display: grid;
  align-items: center;
  min-height: inherit;
}

.hero-inner {
  max-width: 650px;
  padding-block: clamp(54px, 8vw, 92px);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--sage);
  font-size: var(--fs-label);
  letter-spacing: 0;
}

.hero-tag::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.hero-title {
  max-width: 720px;
  margin-bottom: 28px;
  color: var(--ink);
  font-size: var(--fs-hero);
  line-height: 1.22;
  letter-spacing: 0;
}

.hero-title .accent {
  color: var(--brand);
}

.hero-desc {
  max-width: 560px;
  margin-bottom: var(--sp-7);
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Page hero ----------------------------------------------------- */
.page-hero {
  padding: clamp(64px, 9vw, 110px) 0 clamp(42px, 6vw, 70px);
  background:
    linear-gradient(120deg, rgba(244, 229, 234, 0.9), rgba(233, 238, 231, 0.72)),
    var(--paper-soft);
  border-bottom: 1px solid var(--line-soft);
}

.page-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.88fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
}

.page-hero-title {
  color: var(--brand-deep);
  font-size: var(--fs-h1);
}

.page-hero-desc {
  max-width: var(--measure);
  color: var(--ink-soft);
}

/* Sections ------------------------------------------------------ */
.section {
  padding: clamp(64px, 9vw, 108px) 0;
}

.section + .section {
  border-top: 1px solid rgba(221, 211, 203, 0.62);
}

.section:nth-of-type(odd):not(.hero):not(.page-hero) {
  background: rgba(243, 238, 232, 0.55);
}

.section-title {
  position: relative;
  margin-bottom: 12px;
  padding-top: 0;
  text-align: left;
  color: var(--ink);
  font-size: var(--fs-h1);
}

.section-title::before {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  margin-bottom: 20px;
  background: var(--brand);
}

.section-sub {
  max-width: 720px;
  margin: 0 0 clamp(34px, 5vw, 54px);
  color: var(--ink-soft);
}

.section-cta-link {
  margin-top: var(--sp-8);
}

/* Feature grid -------------------------------------------------- */
.feature-grid {
  counter-reset: feature;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow-soft);
}

.feature-grid-item {
  counter-increment: feature;
  min-width: 0;
  min-height: 100%;
  padding: 28px 22px 26px;
  background: rgba(255, 255, 255, 0.86);
}

.feature-grid-item > * {
  min-width: 0;
}

.feature-grid-item::before {
  content: "0" counter(feature);
  display: block;
  margin-bottom: 14px;
  color: var(--sage);
  font-family: var(--font-serif);
  font-size: 0.88rem;
  letter-spacing: 0;
}

.feature-grid-icon {
  width: 92px;
  height: 92px;
  margin-bottom: 16px;
}

.feature-grid-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-grid-title {
  margin-bottom: 8px;
  color: var(--brand-deep);
  font-size: var(--fs-h3);
}

.feature-grid-desc {
  color: var(--ink-soft);
  font-size: var(--fs-small);
  overflow-wrap: anywhere;
}

/* Course cards -------------------------------------------------- */
.course-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.course-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.course-card-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-soft);
}

.course-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
}

.course-card-body {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.course-card-title {
  margin-bottom: 10px;
  color: var(--brand-deep);
  font-size: var(--fs-h3);
}

.course-card-desc {
  flex: 1;
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: var(--fs-small);
}

.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.course-card-price {
  flex: 1 1 auto;
  color: var(--brand-deep);
  font-family: var(--font-serif);
  font-size: 1.08rem;
  white-space: nowrap;
}

.course-card-footer .btn {
  flex: 0 0 auto;
}

.price-from {
  margin-right: 4px;
  color: var(--muted);
  font-family: var(--font-main);
  font-size: 0.78rem;
}

/* Flow and notes ----------------------------------------------- */
.first-visit-wrap {
  max-width: 980px;
}

.first-visit-steps,
.reservation-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: var(--sp-7);
}

.first-visit-step,
.reservation-step {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.first-visit-step-num,
.reservation-step-num {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--sage);
  font-family: var(--font-serif);
  font-size: 0.88rem;
  letter-spacing: 0;
}

.first-visit-step-title,
.reservation-step-title {
  margin-bottom: 8px;
  color: var(--brand-deep);
  font-size: var(--fs-h3);
}

.first-visit-step-desc,
.reservation-step-desc {
  color: var(--ink-soft);
  font-size: var(--fs-small);
}

.first-visit-notes {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.reservation-notes {
  margin: var(--sp-6) 0 var(--sp-7);
}

.first-visit-notes-title {
  margin-bottom: 16px;
  color: var(--brand-deep);
  font-size: var(--fs-h3);
}

.first-visit-notes dl,
.access-info-list dl {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 10px 22px;
}

.first-visit-notes dt,
.access-info-list dt {
  color: var(--brand);
  font-size: var(--fs-small);
  font-weight: 500;
}

.first-visit-notes dd,
.access-info-list dd {
  color: var(--ink-soft);
  font-size: var(--fs-small);
}

/* Fertility feature -------------------------------------------- */
.fertility-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.fertility-feature-body {
  padding: clamp(28px, 5vw, 48px);
}

.fertility-feature-title {
  margin-bottom: 16px;
  color: var(--brand-deep);
  font-size: var(--fs-h2);
}

.fertility-feature-desc {
  margin-bottom: 24px;
  color: var(--ink-soft);
}

.fertility-feature-visual {
  min-height: 100%;
}

.fertility-feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Profile / gallery / access ----------------------------------- */
.about-lead-section {
  padding-bottom: var(--sp-8);
}

.about-lead {
  max-width: 1160px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  font-size: var(--fs-body);
}

.about-lead-main {
  max-width: 920px;
  color: var(--brand-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.28rem, 2.8vw, 1.72rem);
  line-height: var(--lh-snug);
}

.about-lead p + p {
  max-width: 820px;
  margin-top: var(--sp-5);
  color: var(--ink-soft);
}

.profile-block {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.profile-photo-circle {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.profile-photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  margin-bottom: var(--sp-4);
  color: var(--brand-deep);
  font-size: var(--fs-h2);
}

.profile-message + .profile-message {
  margin-top: 1em;
}

.profile-career {
  margin: var(--sp-5) 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.profile-career-title {
  margin-bottom: 8px;
  color: var(--brand-deep);
  font-weight: 700;
}

.profile-career ul {
  display: grid;
  gap: 6px;
  padding-left: 1.15em;
  color: var(--ink-soft);
  font-size: var(--fs-small);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery-grid img,
.map-area,
.equipment-photo,
.infertility-hero-img {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  box-shadow: var(--shadow-soft);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  cursor: zoom-in;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(39, 35, 34, 0.82);
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox img {
  display: block;
  max-width: min(100%, 1120px);
  max-height: min(86vh, 820px);
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.gallery-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.about-section-cta {
  max-width: none;
}

.about-gallery-section {
  padding-top: clamp(64px, 9vw, 108px);
}

.about-bottom-cta-section {
  padding-top: 0;
}

.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 1fr);
  gap: clamp(28px, 5vw, 56px);
}

.access-info-list dl {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.access-notes {
  margin-top: var(--sp-5);
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--paper-soft);
  color: var(--ink-soft);
  font-size: var(--fs-small);
}

.access-notes ul,
.footer-nav {
  list-style: none;
}

.access-notes li {
  position: relative;
  padding-left: 1em;
}

.access-notes li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--brand);
}

.map-area {
  aspect-ratio: 4 / 3;
}

.map-area iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-link {
  margin-top: 8px;
  font-size: var(--fs-small);
}

.map-link a {
  color: #0645ad;
  text-decoration: underline;
}

/* Contact / calendar ------------------------------------------- */
.contact-lead,
.contact-hint {
  color: var(--ink-soft);
}

.contact-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 var(--sp-5);
}

.contact-btn {
  min-height: 58px;
  justify-content: flex-start;
  gap: 12px;
  padding: 11px 16px;
  text-align: left;
}

.contact-btn::after {
  content: none;
}

.contact-btn-line {
  background: var(--line-app);
  border-color: var(--line-app);
}

.contact-btn-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.contact-btn-icon i {
  font-size: 1.1rem;
}

.contact-btn-icon-line i {
  font-size: 1.45rem;
}

.contact-btn-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.contact-btn-label {
  font-size: var(--fs-label);
  letter-spacing: 0;
  opacity: 0.82;
}

.contact-btn-value {
  font-size: 1rem;
}

.calendar-wrap {
  width: 100%;
}

.calendar-title {
  margin-bottom: 12px;
  color: var(--brand-deep);
  font-size: var(--fs-h2);
}

#fullcalendar {
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

#fullcalendar .fc-button-primary {
  background: var(--brand);
  border-color: var(--brand);
  border-radius: 9999px;
  font-family: var(--font-main);
}

#fullcalendar .fc-button {
  border-radius: 9999px;
}

#fullcalendar .fc-button-group {
  gap: 6px;
}

#fullcalendar .fc-toolbar.fc-header-toolbar {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 14px;
}

#fullcalendar .fc-toolbar-chunk {
  display: flex;
  justify-content: center;
}

#fullcalendar .fc-toolbar-title {
  font-family: var(--font-serif);
  color: var(--brand-deep);
  text-align: center;
}

#fullcalendar .fc-col-header-cell {
  padding: 0;
}

#fullcalendar .fc-col-header-cell-cushion {
  display: block;
  padding: 0;
  color: var(--brand-deep);
}

#fullcalendar .fc-custom-day-head {
  display: grid;
  grid-template-rows: auto auto;
  overflow: hidden;
  background: var(--white);
}

#fullcalendar .fc-custom-dow,
#fullcalendar .fc-custom-date {
  display: block;
  padding: 5px 4px;
  text-align: center;
  line-height: 1.2;
}

#fullcalendar .fc-custom-dow {
  color: var(--ink-soft);
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 500;
}

#fullcalendar .fc-custom-date {
  color: var(--brand-deep);
  font-size: 1rem;
}

#fullcalendar .fc-bg-event {
  opacity: 1 !important;
}

#fullcalendar .fc-bg-event .fc-event-title {
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.35;
}

/* Plan ---------------------------------------------------------- */
.plan-detail {
  max-width: 980px;
  margin: 0 0 var(--sp-10);
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.plan-detail-header {
  padding-bottom: clamp(18px, 3vw, 24px);
  margin-bottom: clamp(22px, 3vw, 30px);
  border-bottom: 1px solid var(--line);
}

.plan-detail-title {
  color: var(--brand-deep);
  font-size: var(--fs-h2);
}

.plan-detail-sub {
  max-width: 760px;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: var(--fs-small);
}

.plan-sub-title {
  margin: clamp(28px, 4vw, 36px) 0 14px;
  color: var(--brand-deep);
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: 500;
}

.plan-detail-header + .plan-sub-title {
  margin-top: 0;
}

.plan-price-table {
  width: 100%;
  margin-top: 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.plan-price-table th,
.plan-price-table td {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.plan-price-table tr:last-child th,
.plan-price-table tr:last-child td {
  border-bottom: 0;
}

.plan-price-table th {
  width: 34%;
  background: var(--paper-soft);
  color: var(--brand-deep);
  font-weight: 500;
}

.price-main {
  display: inline-block;
  color: var(--brand-deep);
  font-family: var(--font-serif);
  font-size: 1.24rem;
  line-height: 1.25;
}

.price-note,
.plan-detail-link,
.plan-infertility-detail-desc,
.plan-note,
.plan-notes-list,
.conditions-lead,
.equipment-desc {
  color: var(--ink-soft);
  font-size: var(--fs-small);
}

.plan-note,
.plan-notes-list {
  margin-top: var(--sp-5);
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.plan-note p + p {
  margin-top: 0.75em;
}

.plan-other {
  max-width: 980px;
  margin: 0 0 var(--sp-8);
  padding: clamp(24px, 4vw, 38px);
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.plan-other-title {
  margin-bottom: clamp(18px, 3vw, 26px);
  color: var(--brand-deep);
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 500;
}

.plan-other-item {
  padding-top: clamp(18px, 3vw, 24px);
  border-top: 1px solid var(--line-soft);
}

.plan-other-item + .plan-other-item {
  margin-top: clamp(18px, 3vw, 24px);
}

.plan-other-item h4 {
  margin-bottom: 8px;
  color: var(--brand);
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: 500;
}

.plan-other-item p {
  color: var(--ink-soft);
  font-size: var(--fs-small);
}

.plan-notes-list {
  display: grid;
  gap: 10px;
  max-width: 980px;
  list-style: none;
}

.plan-notes-list li {
  position: relative;
  padding-left: 1.25em;
}

.plan-notes-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0.2em;
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: var(--brand);
}

.plan-infertility-detail-link {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-pale), var(--sage-pale));
}

.plan-infertility-detail-title {
  margin-bottom: 6px;
  color: var(--brand-deep);
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.condition-tag {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink-soft);
  text-align: center;
  font-size: var(--fs-small);
}

.condition-tag-wide {
  grid-column: span 2;
  background: var(--brand-pale);
  color: var(--brand-deep);
  font-weight: 500;
}

.conditions-lead {
  max-width: 840px;
  margin-top: var(--sp-7);
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.equipment-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.equipment-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
}

.equipment-title {
  margin-bottom: 8px;
  color: var(--brand-deep);
  font-size: var(--fs-h3);
}

.equipment-photo-placeholder {
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 0.94rem;
  text-align: center;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

/* Content blocks (full-width, container-aligned) -------------- */
.content-block {
  padding: clamp(24px, 4vw, 42px);
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.content-block-title {
  margin-bottom: 14px;
  color: var(--brand-deep);
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 500;
}

.content-block-text {
  color: var(--ink-soft);
}

.content-block-text + .content-block-text {
  margin-top: 1em;
}

.content-photo-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  box-shadow: var(--shadow-soft);
}

.page-end-cta-full {
  max-width: none;
}

/* Prose pages --------------------------------------------------- */
.infertility-hero-img {
  max-width: 980px;
  aspect-ratio: 16 / 7;
  margin-bottom: var(--sp-8);
}

.infertility-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prose-section {
  max-width: 920px;
}

.prose-heading {
  margin: var(--sp-8) 0 var(--sp-4);
  color: var(--brand-deep);
  font-size: var(--fs-h2);
}

.prose-text {
  color: var(--ink-soft);
}

.prose-text + .prose-text {
  margin-top: 1em;
}

.prose-list {
  display: grid;
  gap: 10px;
  margin: var(--sp-5) 0;
  list-style: none;
}

.prose-list li {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
}

.prose-caution,
.page-end-cta {
  margin-top: var(--sp-7);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.page-end-cta {
  max-width: 980px;
  text-align: center;
}

.page-end-cta-desc {
  margin-bottom: var(--sp-5);
  color: var(--ink-soft);
}

.page-end-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Footer / sticky CTA ------------------------------------------ */
.footer {
  margin-top: 0;
  padding: var(--sp-9) 0 24px;
  color: var(--paper-soft);
  background: #282422;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  padding-bottom: var(--sp-7);
}

.footer-logo {
  margin-bottom: 12px;
  font-size: 1.18rem;
}

.footer-info,
.footer-nav,
.footer-hours {
  color: rgba(243, 238, 232, 0.78);
  font-size: var(--fs-small);
}

.footer-col-title {
  margin-bottom: 12px;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: var(--fs-small);
  letter-spacing: 0;
}

.footer-nav {
  display: grid;
  gap: 8px;
}

.footer-copy {
  padding-top: 20px;
  border-top: 1px solid rgba(243, 238, 232, 0.16);
  color: rgba(243, 238, 232, 0.46);
  text-align: center;
  font-size: 0.78rem;
}

.sticky-cta {
  position: fixed;
  inset: auto 0 0;
  z-index: 90;
  display: none;
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(251, 250, 247, 0.94);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 36px rgba(39, 35, 34, 0.12);
  transform: translateY(110%);
  transition: transform 0.24s;
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta a {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  color: var(--white);
  background: var(--brand);
}

/* Responsive ---------------------------------------------------- */
@media (max-width: 980px) {
  .nav-list {
    font-size: 0.82rem;
  }

  .nav-list a {
    padding-inline: 9px;
  }

  .feature-grid,
  .conditions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-cards,
  .equipment-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 62px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-list {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 105;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: var(--header-height) 0 var(--sp-8);
    background: var(--paper);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .nav-list.is-open {
    transform: translateX(0);
  }

  .nav-list li {
    border-top: 1px solid var(--line-soft);
  }

  .nav-list li:last-child {
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: auto;
    padding: 22px 28px;
    border-radius: 0;
    color: var(--ink);
    font-size: 1.05rem;
  }

  .nav-list a::after {
    content: "›";
    color: var(--brand);
    font-size: 1.4rem;
  }

  .nav-list a.is-current {
    color: var(--brand);
    background: var(--brand-pale);
  }

  .nav-list a.is-current::after {
    content: "";
    position: static;
    width: 0;
    height: 0;
    background: transparent;
  }

  .nav-list .nav-reserve {
    justify-content: space-between;
    margin: 0;
    padding: 22px 28px;
    border-radius: 0;
    color: var(--white);
    background: var(--brand);
    font-size: 1.05rem;
    font-weight: 500;
  }

  .nav-list .nav-reserve:hover {
    color: var(--white);
    background: var(--brand-deep);
  }

  .nav-list .nav-reserve::after {
    content: "→";
    color: var(--white);
    font-size: 1.4rem;
  }

  .hero {
    min-height: auto;
  }

  .hero::before,
  .hero-bg img {
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .hero-bg img {
    opacity: 0.72;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(251, 250, 247, 0.92), rgba(251, 250, 247, 0.76) 62%, rgba(251, 250, 247, 0.58));
  }

  .hero-inner {
    padding: 60px 0 70px;
  }

  .page-hero .container,
  .fertility-feature,
  .profile-block,
  .access-grid {
    grid-template-columns: 1fr;
  }

  .profile-photo-circle {
    width: min(168px, 48vw);
    margin-inline: auto;
  }

  .first-visit-steps,
  .reservation-steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid-item {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 6px 18px;
    align-items: center;
  }

  .feature-grid-item::before {
    grid-column: 2;
    margin-bottom: 0;
  }

  .feature-grid-icon {
    grid-row: 1 / span 3;
    width: 88px;
    height: 88px;
    margin-bottom: 0;
  }

  .feature-grid-title,
  .feature-grid-desc {
    grid-column: 2;
  }

  .course-card {
    grid-template-columns: 34% 1fr;
    grid-template-rows: auto;
  }

  .course-card-photo {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .course-card-footer,
  .plan-infertility-detail-link {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .sticky-cta {
    display: block;
  }

  .footer {
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 560px) {
  :root {
    --fs-body: 0.98rem;
    --fs-small: 0.9rem;
    --fs-h3: 1.05rem;
    --fs-h2: 1.34rem;
    --fs-h1: 1.72rem;
    --fs-hero: 1.92rem;
  }

  body {
    background-size: 56px 56px;
  }

  .header-inner {
    gap: 12px;
    padding-inline: 18px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
  }

  .logo-text {
    font-size: 1.02rem;
  }

  .menu-toggle {
    gap: 7px;
  }

  .container {
    padding-inline: 20px;
  }

  .section {
    padding: 46px 0;
  }

  .section-title {
    margin-bottom: 10px;
    font-size: var(--fs-h1);
  }

  .section-title::before {
    width: 30px;
    margin-bottom: 16px;
  }

  .section-sub {
    margin-bottom: 30px;
  }

  .btn,
  .contact-btn,
  .sticky-cta a {
    min-height: 46px;
    padding: 10px 18px;
    font-size: 0.94rem;
  }

  .hero {
    min-height: 380px;
  }

  .hero-bg img {
    opacity: 0.58;
    object-position: 58% center;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(251, 250, 247, 0.95), rgba(251, 250, 247, 0.86) 54%, rgba(251, 250, 247, 0.72));
  }

  .hero .container {
    align-items: stretch;
  }

  .hero-inner {
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 0 36px;
  }

  .hero-tag {
    margin-bottom: 16px;
    font-size: 0.82rem;
  }

  .hero-tag::before {
    width: 24px;
  }

  .hero-title {
    max-width: 12em;
    margin-bottom: 20px;
    font-size: var(--fs-hero);
    line-height: 1.28;
  }

  .hero-buttons .btn {
    width: min(100%, 300px);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .conditions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid-item {
    grid-template-columns: 70px 1fr;
    gap: 4px 14px;
    padding: 20px 18px;
  }

  .feature-grid-icon {
    width: 70px;
    height: 70px;
  }

  .course-card {
    grid-template-columns: 1fr;
  }

  .course-card-photo {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .course-card-body {
    padding: 18px;
  }

  .course-card-footer {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .course-card .btn {
    width: auto;
    min-height: 42px;
    padding-inline: 14px;
    font-size: 0.9rem;
  }

  .first-visit-step,
  .reservation-step,
  .first-visit-notes,
  .access-info-list dl {
    padding: 20px;
  }

  .first-visit-notes dl,
  .access-info-list dl {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }

  .access-notes {
    padding: 16px 18px;
  }

  .map-area {
    aspect-ratio: 1 / 1;
  }

  #fullcalendar {
    padding: 10px;
  }

  #fullcalendar .fc-toolbar.fc-header-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 12px;
  }

  #fullcalendar .fc-toolbar-chunk {
    display: flex;
    justify-content: center;
  }

  #fullcalendar .fc-toolbar-title {
    font-size: 1.25rem;
    line-height: 1.35;
    text-align: center;
  }

  #fullcalendar .fc-button {
    padding: 0.45rem 0.62rem;
    font-size: 0.84rem;
  }

  .plan-detail {
    margin-bottom: 36px;
    padding: 22px 18px;
  }

  .fertility-feature-visual {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .plan-detail-header {
    padding-bottom: 18px;
    margin-bottom: 20px;
  }

  .plan-sub-title {
    margin: 26px 0 12px;
  }

  .plan-price-table th,
  .plan-price-table td {
    display: block;
    width: 100%;
    padding: 14px 16px;
  }

  .plan-price-table th {
    border-bottom: 0;
    padding-bottom: 6px;
  }

  .plan-price-table td {
    padding-top: 6px;
  }

  .price-note {
    margin-top: 6px;
  }

  .plan-infertility-detail-link {
    padding: 18px;
  }

  .plan-note,
  .plan-notes-list,
  .plan-other,
  .prose-caution,
  .page-end-cta {
    padding: 18px;
  }

  .plan-notes-list {
    gap: 12px;
  }

  .plan-notes-list li {
    padding-left: 1.35em;
  }

  .page-hero {
    padding: 46px 0 40px;
  }

  .page-hero .container {
    gap: 12px;
  }

  .contact-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .contact-btn {
    min-height: 44px;
    padding: 8px 10px;
  }

  .contact-btn-label {
    font-size: 0.72rem;
  }

  .contact-btn-value {
    font-size: 0.86rem;
  }
}

@media (max-width: 560px) {
  .course-layout-horizontal .course-card {
    grid-template-columns: minmax(104px, 34%) minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .course-layout-horizontal .course-card-photo {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .course-layout-horizontal .course-card-photo img {
    height: 100%;
  }

  .course-layout-horizontal .course-card-body {
    min-width: 0;
    padding: 16px;
  }

  .course-layout-horizontal .course-card-title {
    margin-bottom: 8px;
    font-size: 1rem;
  }

  .course-layout-horizontal .course-card-desc {
    margin-bottom: 14px;
    font-size: 0.84rem;
    line-height: 1.65;
  }

  .course-layout-horizontal .course-card-footer {
    gap: 8px;
  }

  .course-layout-horizontal .course-card-price {
    font-size: 0.98rem;
  }

  .course-layout-horizontal .course-card .btn {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 0.84rem;
  }
}
