
.rs-hero { position: relative; overflow: hidden; }
.rs-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--sp-6); }
.rs-hero__catch { margin-top: var(--sp-4); font-family: var(--f-accent); font-weight: 600; font-size: var(--fs-h4); color: var(--c-primary-hover); word-break: keep-all; }
.rs-hero__lead { max-width: 32em; margin-top: var(--sp-3); line-height: 2.1; }
.rs-hero__visual { position: relative; margin-right: calc(var(--edge) * -1); padding-bottom: 8%; }
.rs-hero__main { overflow: hidden; border-radius: 320px 0 0 320px; }
.rs-hero__main img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.rs-hero__sub { position: absolute; left: -6%; bottom: 0; width: 30%; aspect-ratio: 1; overflow: hidden; border-radius: 50%; border: 6px solid var(--c-bg); box-shadow: var(--shadow-1); }
.rs-hero__sub img { width: 100%; height: 100%; object-fit: cover; }
.rs-mhero { max-width: 1040px; margin: var(--sp-5) auto 0; }
.rs-mhero__text { text-align: center; }
.rs-mhero .rs-hero__lead { max-width: 40em; margin-inline: auto; }
.rs-mhero__movie { margin-top: var(--sp-6); overflow: hidden; border-radius: var(--r-lg); background: #000; box-shadow: var(--shadow-1); }
.rs-mhero__movie video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; cursor: zoom-in; }
.rs-movie__ctrl { display: flex; justify-content: flex-end; gap: 8px; margin-top: var(--sp-3); }
.rs-movie__btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--c-line); border-radius: 50%; background: var(--c-bg); color: var(--c-primary-hover); font-size: 1.25rem; cursor: pointer; transition: background-color var(--t-fast), border-color var(--t-fast); }
.rs-movie__btn:hover { background: var(--c-bg-tint); border-color: var(--c-primary); }
.rs-movie__btn:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 2px; }
.rs-modal { width: min(92vw, 1280px); max-height: 92vh; padding: 0; border: 0; border-radius: var(--r-md); background: #000; overflow: visible; }
.rs-modal::backdrop { background: rgba(0,0,0,.8); }
.rs-modal__body video { display: block; width: 100%; height: auto; max-height: 92vh; border-radius: var(--r-md); }
.rs-modal--doc { width: fit-content; background: #fff; }
.rs-modal--doc .rs-modal__body img { display: block; width: auto; max-width: 92vw; height: 82vh; object-fit: contain; border-radius: var(--r-md); }
.rs-modal__close { position: absolute; right: 0; top: -52px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--c-text); font-size: 1.25rem; cursor: pointer; }

.rs-story { position: relative; overflow: hidden; padding: calc(var(--sec-std) * 1.4) 0; background: var(--c-bg); }
.rs-story__head { position: relative; z-index: 1; text-align: center; }
.rs-tl { position: relative; z-index: 1; max-width: 520px; margin: var(--sp-7) auto 0; }
.rs-tl::before { content: ""; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(var(--c-green-300), var(--c-primary)); }
.rs-tl li { position: relative; padding: 0 0 var(--sp-7) var(--sp-7); }
.rs-tl li:last-child { padding-bottom: 0; }
.rs-tl li::before { content: ""; position: absolute; left: 0; top: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--c-bg); border: 2px solid var(--c-primary); box-shadow: 0 0 0 6px var(--c-bg-tint); }
.rs-tl li:last-child::before { background: var(--c-primary); }
.rs-tl__year { font-family: var(--f-latin); font-weight: 800; font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1; letter-spacing: .02em; color: var(--c-primary); }
.rs-tl__year--now { font-family: var(--f-accent); font-weight: 700; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.rs-tl__text { margin-top: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md); background: var(--c-bg); box-shadow: var(--shadow-soft); line-height: 2; }
.rs-float { --p: 0; position: absolute; z-index: 0; overflow: hidden; box-shadow: var(--shadow-1); opacity: var(--p); transition: transform .1s linear; }
.rs-float img { width: 100%; height: 100%; object-fit: cover; }
.rs-float--l { transform: translate(calc((1 - var(--p)) * -140px), calc((1 - var(--p)) * 60px)) rotate(calc((1 - var(--p)) * -6deg)); }
.rs-float--r { transform: translate(calc((1 - var(--p)) * 140px), calc((1 - var(--p)) * 60px)) rotate(calc((1 - var(--p)) * 6deg)); }
.rs-float { border-radius: 50%; aspect-ratio: 1; width: var(--w); }
.rs-float--l { left: calc(50% - 260px - var(--gap) - var(--w)); }
.rs-float--r { right: calc(50% - 260px - var(--gap) - var(--w)); }
.rs-float:nth-of-type(1) { --w: clamp(180px, 18vw, 276px); --gap: 112px;  top: 10%; }
.rs-float:nth-of-type(2) { --w: clamp(108px, 9.6vw, 144px); --gap: 136px; top: 20%; }
.rs-float:nth-of-type(3) { --w: clamp(96px, 8.4vw, 124px); --gap: 180px; top: 40%; }
.rs-float:nth-of-type(4) { --w: clamp(204px, 20vw, 312px); --gap: 80px;  top: 44%; }
.rs-float:nth-of-type(5) { --w: clamp(144px, 14vw, 216px); --gap: 96px;  top: 76%; }
.rs-patent { position: absolute; right: calc(100% + 80px); top: -24px; display: block; width: clamp(200px, 17vw, 260px); padding: 10px; border: 0; border-radius: var(--r-md); background: var(--c-bg); box-shadow: var(--shadow-1); cursor: zoom-in; transition: transform var(--t-mid) var(--ease-out); }
.rs-patent::after { content: ""; position: absolute; left: 100%; top: 96px; border: 14px solid transparent; border-left-color: var(--c-bg); filter: drop-shadow(3px 0 2px color-mix(in srgb, var(--c-green-900) 8%, transparent)); }
.rs-patent:hover { transform: translateY(-4px); }
.rs-patent img { display: block; width: 100%; aspect-ratio: 2480 / 3507; object-fit: contain; border-radius: 4px; }
.rs-patent__zoom { position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: 1.1rem; }

.rs-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); margin-top: var(--sp-7); }
.rs-steps { margin-top: calc(var(--sp-7) + 48px); }
.rs-step { position: relative; display: flex; flex-direction: column; align-items: center; padding: calc(48px + var(--sp-4)) var(--sp-5) var(--sp-5); border-radius: var(--r-lg); background: var(--c-bg); border: 1px solid var(--c-line); box-shadow: var(--shadow-soft); text-align: center; }
.rs-step + .rs-step::before { content: ""; position: absolute; left: calc(var(--sp-6) * -1 + 6px); top: 50%; width: calc(var(--sp-6) - 12px); height: 2px; background: repeating-linear-gradient(90deg, var(--c-green-300) 0 6px, transparent 6px 11px); }
.js .rs-step[data-reveal]:nth-child(2) { transition-delay: .15s; }
.js .rs-step[data-reveal]:nth-child(3) { transition-delay: .3s; }
.rs-step__fig { position: absolute; left: 50%; top: 0; translate: -50% -50%; box-shadow: 0 0 0 8px var(--c-bg), var(--shadow-1); display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--c-primary); color: var(--c-text-inverse); font-size: 2.75rem; }
.rs-step__fig b { position: absolute; right: -6px; top: -6px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c-accent); color: var(--c-text); font-family: var(--f-latin); font-size: var(--fs-small); }
.rs-step__title { margin-top: var(--sp-4); font-family: var(--f-accent); font-weight: 600; font-size: 1.375rem; }
.rs-step p { margin-top: var(--sp-2); color: var(--c-text-muted); line-height: 1.9; }
.rs-step p .text-link { display: inline; padding: 0; font-size: inherit; color: var(--c-primary-hover); text-decoration: underline; text-underline-offset: 3px; }
.rs-step p .text-link::after { content: none; }
.rs-step .f-cta { margin-top: auto; padding-top: var(--sp-4); }
.rs-step__title { margin-top: 0; }
.rs-quality { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--sp-5); align-items: center; margin-top: var(--sp-6); padding: var(--sp-5) var(--sp-6); border-radius: var(--r-lg); background: var(--c-bg-tint); }
.rs-quality__icon { display: grid; place-items: center; width: 72px; aspect-ratio: 1; border-radius: 50%; background: var(--c-bg); color: var(--c-primary-hover); font-size: 2rem; }
.rs-quality__title { font-weight: 700; font-size: 1.125rem; }
.rs-quality p { margin-top: 2px; font-size: var(--fs-small); color: var(--c-text-muted); }

.rs-comic { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); overflow: hidden; border-radius: var(--r-lg); background: color-mix(in srgb, var(--c-yellow) 26%, #fff); }
.rs-comic__img { align-self: center; padding: var(--sp-4); }
.rs-comic__img img { width: 100%; aspect-ratio: 572 / 326; object-fit: contain; border-radius: var(--r-md); }
.rs-comic__body { display: flex; flex-direction: column; justify-content: center; padding: var(--sp-6); }
.rs-comic__title { font-family: var(--f-accent); font-weight: 600; font-size: var(--fs-h4); }
.rs-comic__body p { margin-top: var(--sp-2); color: var(--c-text-muted); }
.rs-magazine__img { display: flex; justify-content: center; gap: var(--sp-3); }
.rs-magazine__img img { width: calc(50% - var(--sp-3) / 2); max-width: 240px; aspect-ratio: 2382 / 3368; object-fit: contain; border-radius: 4px; box-shadow: var(--shadow-1); }

.rs-close { position: relative; display: flex; align-items: center; min-height: clamp(380px, 56vh, 560px); overflow: hidden; border-radius: 56px 56px 0 0; color: var(--c-text-inverse); }
.rs-close__img { position: absolute; inset: 0; }
.rs-close__img img { width: 100%; height: 100%; object-fit: cover; }
.rs-close::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 50, 36, .72) 0%, rgba(14, 50, 36, .3) 55%, rgba(14, 50, 36, 0) 85%); }
.rs-close .container { position: relative; z-index: 1; }
.rs-close .f-label { color: var(--c-green-300); }
.rs-close__title { margin-top: var(--sp-3); font-family: var(--f-accent); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.6; }
.rs-close p:last-child { max-width: 28em; margin-top: var(--sp-4); line-height: 2; }

.ev-list { display: grid; gap: var(--sp-5); }
.ev-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); overflow: hidden; border-radius: var(--r-lg); background: var(--c-bg); border: 1px solid var(--c-line); box-shadow: var(--shadow-1); }
.ev-card__banner { align-self: center; aspect-ratio: 16 / 9; margin: var(--sp-5) 0 var(--sp-5) var(--sp-5); border-radius: var(--r-md); overflow: hidden; }
.ev-card__banner img { width: 100%; height: 100%; object-fit: cover; }
.ev-card__body { display: flex; flex-direction: column; padding: var(--sp-5) var(--sp-6); }
.ev-card__date { display: flex; align-items: baseline; gap: var(--sp-2); font-family: var(--f-latin); font-weight: 800; color: var(--c-primary); }
.ev-card__date b { font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: 1; }
.ev-card__date span { font-size: var(--fs-small); letter-spacing: .1em; }
.ev-card__title { margin-top: var(--sp-3); font-family: var(--f-accent); font-weight: 600; font-size: var(--fs-h4); }
.ev-card__info { display: grid; gap: 6px; margin-top: var(--sp-3); font-size: var(--fs-small); }
.ev-card__info div { display: grid; grid-template-columns: 4em minmax(0, 1fr); gap: var(--sp-2); }
.ev-card__info dt { font-weight: 700; color: var(--c-text-muted); }
.ev-card__acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sp-2); margin-top: auto; padding-top: var(--sp-4); }

.sc-hero { position: relative; overflow: hidden; }
.sc-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--sp-6); }
.sc-hero__lead { margin-top: var(--sp-4); line-height: 2.1; }
.sc-hero__note { margin-top: var(--sp-2); font-size: var(--fs-small); line-height: 1.8; color: var(--c-text-muted); }
.sc-hero__badge { display: inline-flex; align-items: baseline; gap: 4px; margin-top: var(--sp-4); padding: 8px 20px; border-radius: var(--r-pill); background: var(--c-accent); font-weight: 700; }
.sc-hero__badge b { font-size: inherit; line-height: inherit; }
.sc-hero__visual { position: relative; margin-right: calc(var(--edge) * -1); }
.sc-hero__photo { overflow: hidden; border-radius: 320px 0 0 320px; background: linear-gradient(160deg, var(--c-green-300), var(--c-primary-soft)); }
.sc-hero__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 50%; }

.sc-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-7); align-items: center; }
.sc-gears { position: relative; width: min(100%, 480px); aspect-ratio: 1; margin: 0 auto; }
.sc-gears::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 2px dashed var(--c-green-300); animation: sc-spin 60s linear infinite; }
@keyframes sc-spin { to { transform: rotate(360deg); } }
.sc-gears__item { position: absolute; display: grid; place-items: center; width: 24%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: var(--c-bg); border: 1px solid var(--c-line); box-shadow: var(--shadow-soft); font-weight: 700; font-size: clamp(.8125rem, 1.2vw, 1rem); }
.sc-gears__item:nth-child(1) { left: 50%; top: 9%; }
.sc-gears__item:nth-child(2) { left: 89%; top: 37.4%; }
.sc-gears__item:nth-child(3) { left: 74.1%; top: 83.1%; }
.sc-gears__item:nth-child(4) { left: 25.9%; top: 83.1%; }
.sc-gears__item:nth-child(5) { left: 11%; top: 37.4%; }
.sc-gears__core { --d: clamp(110px, 13vw, 150px); position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; }
.sc-gears__core span { display: grid; place-items: center; width: var(--d); aspect-ratio: 1; border-radius: 50%; color: var(--c-text-inverse); font-family: var(--f-accent); font-weight: 700; font-size: clamp(.9375rem, 1.4vw, 1.125rem); line-height: 1.5; text-align: center; }
.sc-gears__core span:first-child { position: relative; z-index: 1; padding-right: calc(var(--d) * .16); background: rgba(56, 168, 120, .9); }
.sc-gears__core span:last-child { margin-left: calc(var(--d) * -.3); padding-left: calc(var(--d) * .16); background: rgba(184, 145, 58, .88); }
.sc-about__text { line-height: 2.1; }
.sc-about__text p + p { margin-top: var(--sp-3); }
.sc-about__key { font-family: var(--f-accent); font-weight: 600; font-size: var(--fs-h4); line-height: 1.7; color: var(--c-primary-hover); }
.sc-teacher { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--sp-4); align-items: center; margin-top: var(--sp-5); padding: var(--sp-4); border-radius: var(--r-lg); background: var(--c-bg-tint); }
.sc-teacher__photo { aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.sc-teacher__photo { background: var(--c-bg); }
.sc-teacher__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.sc-teacher__name { font-weight: 700; }
.sc-teacher p:last-child { margin-top: 4px; font-size: var(--fs-small); color: var(--c-text-muted); line-height: 1.9; }

.sc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); margin-top: calc(var(--sp-7) + 20px); }
.sc-stats li { position: relative; padding: calc(var(--sp-6) + 12px) var(--sp-4) var(--sp-5); border-radius: var(--r-lg); background: var(--c-bg); box-shadow: var(--shadow-2); text-align: center; border-top: 4px solid var(--c-primary); }
.js .sc-stats li[data-reveal]:nth-child(2) { transition-delay: .15s; }
.js .sc-stats li[data-reveal]:nth-child(3) { transition-delay: .3s; }
.sc-stats__icon { position: absolute; left: 50%; top: 0; translate: -50% -50%; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--c-primary); color: var(--c-text-inverse); font-size: 1.875rem; box-shadow: 0 0 0 8px var(--c-bg-tint); }
.sc-stats b { display: block; font-family: var(--f-latin); font-weight: 800; font-size: clamp(3rem, 6vw, 5rem); line-height: 1; color: var(--c-primary); }
.sc-stats b small { margin-left: 4px; font-family: var(--f-base); font-size: .3em; font-weight: 700; color: var(--c-text); }
.sc-stats b.sc-stats__text { display: block; font-family: var(--f-accent); font-weight: 700; font-size: clamp(1.375rem, 2.4vw, 2rem); line-height: 1.35; color: var(--c-primary); }
.sc-stats__label { display: block; font-weight: 700; margin-top: var(--sp-3); font-size: var(--fs-small); color: var(--c-text-muted); }

.ev-list .ev-card__date { color: #9c862a; }
.se-school { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-5); align-items: center; padding: var(--sp-6); border-radius: var(--r-lg); background: var(--c-bg-inverse); color: var(--c-text-inverse); }
.se-school .f-label { color: var(--c-green-300); }
.se-school p:not(.f-label) { margin-top: var(--sp-2); opacity: .9; }
.se-school .f-title + p { margin-top: var(--sp-2); }
.se-school--salon { grid-template-columns: minmax(0, 260px) minmax(0, 1fr) auto; }
.se-school__img img { display: block; width: 100%; height: auto; border-radius: var(--r-md); }
.ev-empty { display: grid; justify-items: center; gap: var(--sp-2); margin-top: var(--sp-5); padding: var(--sp-6) var(--sp-5); border-radius: var(--r-lg); background: var(--c-surface-soft); text-align: center; }
.ev-empty[hidden] { display: none; }
.ev-empty__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--c-bg); color: var(--c-primary); font-size: 1.75rem; }
.ev-empty__title { margin-top: var(--sp-2); font-family: var(--f-accent); font-weight: 600; font-size: var(--fs-h4); }
.ev-empty__text { font-size: var(--fs-small); color: var(--c-text-muted); }

@media (max-width: 960px) {
  .rs-hero__grid, .sc-hero__grid, .sc-about, .rs-comic { grid-template-columns: 1fr; gap: var(--sp-6); }
  .rs-hero__visual { margin-left: var(--sp-6); }
  .rs-hero__main { border-radius: 160px 0 0 160px; }
  .rs-steps { grid-template-columns: 1fr; gap: calc(48px + var(--sp-5)); }
  .rs-step + .rs-step::before { left: 50%; top: calc((48px + var(--sp-5)) * -1); width: 2px; height: var(--sp-5); background: repeating-linear-gradient(180deg, var(--c-green-300) 0 6px, transparent 6px 12px); }
  .rs-comic { gap: 0; }
  .rs-comic__body { padding: 0 var(--sp-4) var(--sp-5); }
  .rs-tl { margin-right: 96px; }
  .rs-float--l { display: none; }
  .rs-float:nth-of-type(2) { --w: 88px; right: -20px; }
  .rs-float:nth-of-type(4) { --w: 132px; right: -28px; }
  .rs-float:nth-of-type(5) { --w: 96px; right: -16px; }
  .rs-patent { position: relative; right: auto; top: auto; width: min(240px, 80%); margin-top: var(--sp-3); }
  .rs-patent::after { display: none; }
  .rs-mhero__movie { margin-inline: calc(var(--gutter) * -1); border-radius: 0; box-shadow: none; }
  .rs-mhero__text { text-align: left; }
  .rs-mhero .sec-head--center { text-align: left; }
  .rs-movie__btn { width: 40px; height: 40px; font-size: 1.1rem; }
  .rs-modal__close { top: -50px; }
}
@media (max-width: 767px) {
  .rs-dev .sec-head__en { font-size: 5.6vw; }
  .rs-tl { margin-right: 72px; }
  .rs-tl li { padding-left: var(--sp-6); }
  .rs-quality, .se-school { grid-template-columns: 1fr; }
  .rs-quality .btn, .se-school .btn { justify-self: end; }
  .ev-card { grid-template-columns: 1fr; }
  .ev-card__banner { margin: 0; border-radius: 0; }
  .ev-card__body { padding: var(--sp-4); }
  .sc-teacher { grid-template-columns: 1fr; }
  .sc-teacher__photo { width: 96px; }
  .ev-card__acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-card__acts .btn { width: 100%; padding-inline: var(--sp-2); }
  .sc-stats { grid-template-columns: 1fr; gap: calc(var(--sp-6) + 12px); }
  .sc-hero__visual { margin: var(--sp-4) calc(var(--gutter) * -1) 0 var(--sp-5); }
  .sc-hero__photo { border-radius: 160px 0 0 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .rs-float { --p: 1 !important; }
  .sc-gears::before { animation: none; }
}

.rs-modal--doc { width: min(92vw, 720px); }
.rs-modal--doc .rs-modal__body img { width: 100%; max-width: 100%; height: auto; max-height: 82vh; }
@media (max-width: 767px) {
  .ev-card__acts { grid-template-columns: 1fr; }
  .se-school { padding: var(--sp-4); }
  .se-school .btn { white-space: nowrap; padding-inline: 1.5em; }
}
