:root {
  color-scheme: light;
  --white: #fff;
  --brand: #1f4d3a;
  --link: #286455;
  --heading: #214c42;
  --text: #20342a;
  --muted: #485e55;
  --pale: #eaf2ed;
  --surface: #f3f7f4;
  --line: #c6d6ce;
  --border: #6c887b;
  --width: 75rem;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}
*,*::before,*::after { box-sizing: border-box; }
body { margin: 0; background: var(--white); color: var(--text); font-size: 1.0625rem; line-height: 1.7; }
h1,h2,h3,p,ul,ol,dl,dd { margin: 0; }
h1,h2,h3,p,li,a { overflow-wrap: anywhere; }
h1,h2,h3 { color: var(--heading); line-height: 1.4; }
h1 { font-size: clamp(2.15rem,5vw,4.25rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.6rem,3.4vw,2.35rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.18rem,1.75vw,1.4rem); }
a { color: var(--link); text-underline-offset: .24em; text-decoration-thickness: .075em; }
a:hover { text-decoration-thickness: .15em; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 1rem; }
:where(a,button,[tabindex]):focus-visible { outline: 2px solid #000; outline-offset: 2px; box-shadow: 0 0 0 2px #ffd43d; }

.wrap { width: min(var(--width), 100% - 4rem); margin-inline: auto; }
.skip { position: fixed; z-index: 2; inset: .5rem auto auto .5rem; transform: translateY(-200%); padding: .625rem 1rem; background: var(--white); }
.skip:focus { transform: none; }
.header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; min-height: 4.75rem; }
.brand { display: inline-flex; gap: .625rem; align-items: center; min-height: 2.75rem; color: var(--brand); font-size: 1.9rem; font-weight: 700; text-decoration: none; letter-spacing: -.055em; line-height: 1; }
.brand img { width: 2rem; height: 2rem; border-radius: 50%; }
.nav { display: flex; align-items: center; gap: 1rem 1.5rem; }
.nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--text); font-size: 1rem; font-weight: 700; text-decoration: none; }
.nav a:hover,.nav a[aria-current] { text-decoration: underline; }
.nav a[aria-current] { color: var(--brand); }
.nav a.nav-contact { padding-inline: .85rem; border-radius: .375rem; background: var(--link); color: var(--white); }
.menu { display: none; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .3rem .8rem; background: var(--white); border: 1px solid var(--border); border-radius: .375rem; font-weight: 700; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .35rem .45rem; align-items: center; min-height: 2.75rem; color: var(--muted); font-size: .9375rem; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 2.75rem; }

.hero { background: var(--surface); border-block: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: minmax(0,3fr) minmax(14rem,2fr); gap: 1.75rem 3rem; align-items: center; padding-block: clamp(1.75rem,4.5vw,3.5rem); }
.kicker { color: var(--brand); font-weight: 700; margin-bottom: .5rem; }
.hero-copy { color: var(--muted); margin-top: .85rem; max-width: 37em; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.button { min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; padding: .55rem .95rem; border: 1px solid var(--link); border-radius: .375rem; background: var(--link); color: var(--white); text-decoration: none; font-weight: 700; text-align: center; }
.button:hover { background: var(--brand); text-decoration: underline; }
.button.outline { background: var(--white); color: var(--link); }
.button.outline:hover { background: var(--pale); }
.link { min-height: 2.75rem; display: inline-flex; align-items: center; font-weight: 700; }
.hero-illustration { display: block; width: min(100%,24rem); height: auto; margin-inline: auto; }
.section-nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; padding-block: .25rem; border-bottom: 1px solid var(--line); }
.section-nav + .section { padding-block-start: clamp(1.5rem,3.5vw,2.75rem); }

.section { padding-block: clamp(2.4rem,5vw,4.15rem); }
.tint { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: .45rem; margin-bottom: 1.25rem; }
.section-head p,.card p,.step p,.consult p { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.card { display: flex; flex-direction: column; gap: .55rem; align-items: start; min-width: 0; padding: 1.1rem; border: 1px solid var(--border); border-radius: .65rem; background: var(--white); }
.mode { display: inline-block; padding: .1rem .45rem; border-radius: .25rem; background: var(--pale); color: var(--brand); font-size: 1rem; font-weight: 700; }
.service-heading { display: flex; align-items: center; gap: .75rem; min-width: 0; margin-bottom: .25rem; }
.service-heading > :last-child { min-width: 0; }
.service-illustration { display: block; flex: none; width: clamp(3.5rem,7vw,5.1rem); height: auto; border-radius: .4rem; }
.service-heading .mode { margin-bottom: .2rem; }
.card ul { padding-left: 1.15rem; }
.card .link { margin-top: auto; }

.fees { width: 100%; margin-top: auto; padding-top: .35rem; }
.fees div { display: flex; gap: .25rem 1rem; flex-wrap: wrap; justify-content: space-between; padding-block: .36rem; border-top: 1px solid var(--line); }
.fees dt { color: var(--muted); }
.fees dd { color: var(--heading); font-weight: 700; }
.note { margin-top: 1rem; color: var(--muted); font-size: 1rem; }
.case .link { margin-top: auto; }
.case-grid-pair { grid-template-columns: repeat(2,minmax(0,1fr)); }
.case-image { display: block; width: 100%; height: auto; max-height: 13.5rem; aspect-ratio: 2.1; object-fit: contain; background: var(--surface); border-radius: .35rem; }

.steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; padding: 0; list-style: none; counter-reset: step; }
.step { padding: .85rem .95rem; border: 1px solid var(--border); border-radius: .55rem; background: var(--white); counter-increment: step; }
.step h3::before { content: counter(step) ". "; color: var(--brand); }
.step p { margin-top: .35rem; }
.consult { display: grid; grid-template-columns: minmax(0,1fr) clamp(8.5rem,19vw,13rem); align-items: center; gap: 1rem 2rem; padding: clamp(1rem,3.1vw,2rem); border: 1px solid var(--border); border-radius: .75rem; background: var(--pale); }
.consult p { margin-top: .45rem; }
.consult-illustration { display: block; width: 100%; height: auto; }
.consult .contact-address { margin-top: .7rem; font-size: 1rem; }
.contact-address span { margin-inline-end: .35rem; }
.footer { border-top: 1px solid var(--line); padding-block: 1rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .2rem 1.25rem; }

.policy { width: min(54rem,100% - 2rem); margin-inline: auto; }
.policy h1 { font-size: clamp(1.85rem,5vw,3rem); }
.policy h2 { font-size: clamp(1.25rem,3vw,1.6rem); }
.policy .note { margin: 1rem 0 1.5rem; padding: .75rem 1rem; border-inline-start: 3px solid var(--brand); background: var(--surface); }
.policy-details > div { display: grid; grid-template-columns: minmax(8rem,1fr) minmax(0,2.6fr); gap: .2rem 1rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.policy-details dt { font-weight: 700; color: var(--heading); }
.policy-details dd { min-width: 0; overflow-wrap: anywhere; }
.policy-check { margin-top: 1.75rem; }
.policy-check ul { padding-inline-start: 1.3rem; margin-top: .5rem; }

@media (max-width: 53rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 4rem; flex-wrap: wrap; gap: 0 .75rem; padding-block: .3rem; }
  .menu { display: inline-flex; }
  .nav { flex-basis: 100%; display: grid; gap: .2rem; padding: .35rem 0 .65rem; }
  .nav a { width: fit-content; padding-inline: .5rem; }
  .hero-inner { gap: 1.4rem; }
  .steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 43rem) {
  .hero-inner,.grid,.steps,.consult { grid-template-columns: minmax(0,1fr); }
  .policy-details > div { grid-template-columns: minmax(0,1fr); }
  .consult-illustration { max-width: 8rem; justify-self: end; }
  .hero-inner { gap: 1.1rem; }
  .hero-illustration { max-width: 18rem; }
  .actions .button { width: 100%; }
  .card { gap: .45rem; }
}
@media (forced-colors: active) {
  :where(a,button,[tabindex]):focus-visible { outline: 3px solid Highlight; }
  .button,.menu,.card,.step { border-color: ButtonText; }
}

/* FitCare common page layouts */
#main > .hero:first-child { border-top: 0; }
.hero:first-child .hero-inner { padding-block: clamp(2.5rem,6vw,5.5rem); }
.page-photo { position: relative; width: 100%; margin: 0; overflow: hidden; border-radius: .65rem; background: var(--pale); }
.page-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.audience-card { gap: 0; padding: 0; overflow: hidden; }
.audience-card .page-photo { border-radius: 0; }
.audience-copy { flex: 1; display: flex; flex-direction: column; gap: .55rem; padding: clamp(1rem,2.4vw,1.5rem); }
.audience-copy .link { width: fit-content; gap: .4rem; }
.grid-four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.info-split { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(1rem,5vw,4rem); align-items: center; }
.info-split h2 + p { margin-top: .6rem; }
.phase-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin-top: 1rem; }
.phase-list li { padding: .38rem .7rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--white); color: var(--heading); font-weight: 700; }
.availability { margin-top: auto; font-size: .9375rem; }
.dark-section { padding-block: clamp(2rem,5vw,3.5rem); background: var(--brand); color: var(--white); }
.dark-section h2 { color: inherit; }
.dark-section h2 + p { margin-top: .5rem; }
.dark-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.25rem; }
.dark-inner .actions { margin-top: 0; }
.dark-inner .button { border-color: var(--white); }
.dark-inner .button:focus-visible { outline-color: var(--white); }
.faq-list { max-width: 52rem; border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; min-height: 2.75rem; padding: .7rem .25rem; font-weight: 700; color: var(--heading); }
.faq summary:focus-visible { outline: 2px solid var(--heading); outline-offset: 2px; }
.faq p { padding: 0 .25rem .8rem 1.25rem; }
.profile-intro { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.25rem; }
.contact-note { display: grid; gap: .4rem; padding-bottom: 2.5rem; }
.contact-grid > section { padding: clamp(1rem,2.5vw,1.75rem); }
.contact-grid .actions { margin-top: auto; padding-top: .6rem; }
.contact-grid h2 { font-size: clamp(1.4rem,3vw,1.8rem); }

@media (max-width: 65rem) {
  .nav { column-gap: .9rem; }
}
@media (max-width: 53rem) {
  .grid-four { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 43rem) {
  .info-split { grid-template-columns: 1fr; }
  .hero .page-photo { max-width: 38rem; }
  .audience-card .page-photo img { aspect-ratio: 2 / 1; }
}
@media (max-width: 27rem) {
  .grid-four { grid-template-columns: 1fr; }
}

.brand-message { font-size: clamp(2rem,4vw,3.55rem); }
.brand-message span { display: block; }
@media (max-width: 43rem) {
  .brand-message { font-size: clamp(1.4rem,7.05vw,2.5rem); }
}

.concerns-grid .card { background: var(--surface); border-color: var(--line); }
.profile-card { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: .85rem; }
.portrait { display: block; width: clamp(4.75rem,11vw,7.25rem); height: auto; aspect-ratio: 1; object-fit: cover; object-position: center 33%; border-radius: .75rem; }
.profile-intro { padding: clamp(.9rem,2.5vw,1.5rem); border: 1px solid var(--line); border-radius: .85rem; background: var(--surface); }
.profile-intro .portrait { width: clamp(5.5rem,18vw,9rem); }
.contact-hero .hero-illustration { max-width: min(100%,19rem); }
.contact-help { align-self: stretch; }
.contact-help ul { padding: 0 .25rem .65rem 1.35rem; }
.profile-specialty { white-space: nowrap; }

.activity-gallery { background: var(--pale); border-bottom: 0; }
.activity-gallery-heading,.activity-photo-viewport { max-width: 46rem; margin-inline: auto; }
.activity-gallery-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; margin-bottom: 1rem; }
.activity-gallery-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.activity-gallery-count { min-width: 3.25rem; margin-inline-start: .2rem; color: var(--muted); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.activity-photo-list { display: flex; overflow-x: auto; list-style: none; padding: 0; gap: .75rem; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; }
.activity-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.activity-slide a { display: grid; gap: .15rem; border-radius: .7rem; background: var(--white); }
.activity-slide a:focus-visible { outline-offset: -3px; }
.activity-slide img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #deebe3; border-radius: .7rem .7rem 0 0; }
.activity-slide-label { display: flex; align-items: center; min-height: 2.75rem; padding: .4rem .85rem; font-weight: 700; }

.activity-photo-viewport-ready { overflow: hidden; border-radius: .7rem; }
.activity-photo-viewport-ready .activity-photo-list {
  gap: 0;
  overflow: visible;
  touch-action: pan-y;
  transform: translateX(calc(-100% * var(--photo-index, 0)));
  transition: transform .34s ease;
}
.activity-photo-viewport-ready .activity-photo-list-reset { transition: none; }
.support-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 44%; background: var(--pale); }
@media (prefers-reduced-motion: reduce) {
  .activity-photo-viewport-ready .activity-photo-list { transition: none; }
}

/* 16:9 photographs on the home page */
.photo-hero {
  background: #172a22;
}
.photo-hero-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  color: var(--white);
}
.hero-scenes,.hero-scene,.hero-scenes::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-scenes { z-index: -1; }
.hero-scene { display: block; object-fit: cover; opacity: 0; transition: opacity .28s ease; }
.hero-scene.is-current { opacity: 1; }
.hero-photo-toggle { position: absolute; z-index: 1; top: .75rem; right: .75rem; min-height: 2.75rem; padding: .35rem .7rem; border: 1px solid #fff; border-radius: .375rem; background: #172a22; color: #fff; font-size: .875rem; font-weight: 700; }
.hero-photo-toggle:focus-visible { outline-color: #fff; }
.hero-scene-portrait { object-position: center 39%; }
.hero-scene-lesson { object-position: center 20%; }
.hero-scene-exercise { object-position: center 47%; }
.hero-scene-health-class { object-position: center 64%; }
.hero-scene-chair-exercise { object-position: center 58%; }
.hero-scene-community { object-position: center 70%; }
.hero-scenes::after {
  content: '';
  background: linear-gradient(90deg, rgba(12,24,19,.04) 0%, rgba(12,24,19,.10) 28%, rgba(12,24,19,.66) 44%, rgba(12,24,19,.76) 62%, rgba(12,24,19,.90) 100%);
}
.photo-hero-content { display: grid; justify-items: end; padding-block: clamp(1.25rem,4vw,3.5rem); }
.photo-hero-content > div { width: min(100%,34rem); }
.photo-hero-content .brand-message { font-size: clamp(1.8rem,3.25vw,3.05rem); }
.photo-hero-content .brand-message,.photo-hero-content .kicker,.photo-hero-content .hero-copy { color: inherit; }
.photo-hero-content .hero-copy { max-width: 34em; }
.photo-hero-content .button { border-color: #b2d2c3; }
.photo-hero-content .button:focus-visible { outline-color: var(--white); }
.audience-image-research img { object-position: center 30%; }
@media (min-width: 44rem) and (max-width: 60rem) {
  .photo-hero-content > div { width: 52%; }
  .photo-hero-content .hero-copy { font-size: 1rem; }
}
@media (max-width: 43.999rem) {
  .photo-hero-stage { display: block; width: 100%; aspect-ratio: auto; }
  .hero-scenes { position: relative; aspect-ratio: 16 / 9; height: auto; z-index: 0; }
  .hero-scenes::after { background: linear-gradient(0deg, rgba(12,24,19,.28), transparent 35%); }
  .photo-hero-content { display: block; padding-block: 1.25rem 1.5rem; }
  .photo-hero-content .brand-message { font-size: clamp(1.35rem,6.4vw,2.15rem); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scene { transition: none; }
}
