.hero--home{position: relative; min-height: calc(100svh - 3.8rem); display: grid; align-items: stretch; overflow: hidden; border-bottom: 1px solid var(--rule-strong); background: var(--contour-svg) no-repeat 8% 13% / min(80vw, 48rem) auto, repeating-linear-gradient(0deg, transparent 0 18px, var(--grid-rule) 18px 19px), repeating-linear-gradient(90deg, transparent 0 18px, var(--grid-rule) 18px 19px), var(--paper);}
.hero__inner{position: relative; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(8rem, 0.44fr); grid-template-rows: auto 1fr auto; gap: clamp(1rem, 2.8vw, 3rem); min-height: calc(100svh - 7rem); padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(3.8rem, 2.5rem + 5vw, 6rem);}
.hero__lead{color: var(--sumi); font-size: clamp(1rem, 0.96rem + 0.35vw, 1.18rem);}
.hero__title [data-hero-line]{display: block; white-space: nowrap;}
html[lang="en"] .hero__title [data-hero-line]{white-space: normal;}
.hero__stat{position: relative; min-width: 0; padding: clamp(0.9rem, 0.65rem + 1vw, 1.4rem); border: 1px solid var(--rule); background: var(--label); box-shadow: 0 14px 32px -30px color-mix(in oklch, var(--sumi) 45%, transparent);}
.hero__stat::before{content: ""; position: absolute; top: 0.52rem; right: 0.52rem; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: color-mix(in oklch, var(--sumi) 18%, transparent);}
.hero__stat-unit{margin-left: 0.18em; color: var(--sumi-soft); font-family: var(--font-sans); font-size: max(0.28em, var(--text-xs)); font-weight: 400;}
.scroll-cue{position: absolute; left: clamp(1rem, 1vw, 2rem); bottom: clamp(4.8rem, 5vw, 6rem); display: inline-grid; justify-items: center; gap: 0.45rem; color: var(--shu); font-size: var(--text-xs); letter-spacing: 0.12em; text-decoration: none; writing-mode: vertical-rl;}
.sci-marquee__track{display: flex; width: max-content; gap: 2rem; padding-block: 0.55rem; animation: sci-loop 40s linear infinite;}
.sci-marquee:hover .sci-marquee__track, .sci-marquee:focus-within .sci-marquee__track, .sci-marquee.is-paused .sci-marquee__track{animation-play-state: paused;}
.sci-marquee__set{display: inline-flex; align-items: center; gap: 1.05rem; padding-inline: 1rem; white-space: nowrap; font-family: var(--font-serif); font-style: italic; color: var(--sumi-soft);}
.sci-marquee__dot{color: var(--shu); font-style: normal; font-size: 0.72em;}
.paper-band{position: relative; border-top: 1px solid var(--rule);}
.band--birthday{padding-block: clamp(3rem, 2rem + 4vw, 6rem);}
.band--aqua{background-color: color-mix(in oklch, var(--color-aqua-tint) 36%, var(--paper));}
.band--memorial{background-color: oklch(95% 0.003 80);}
.home-search-cta{padding-block: clamp(2.4rem, 1.7rem + 3vw, 4.6rem); border-top: 1px solid var(--rule);}
.home-search-cta__inner{display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2); align-items: center;}
.home-search-cta__title{color: var(--sumi); font-size: clamp(1.55rem, 1.1rem + 2vw, 3rem);}
.home-search-cta__note{max-width: 48em; margin-top: 0.45rem; color: var(--sumi-soft); font-size: var(--text-sm);}
.home-search-cta__button svg{width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;}
.birthday-spotlight .specimen-grid{grid-template-columns: minmax(0, 40rem);}
.birthday-spotlight .specimen-card{min-height: 18rem; padding: clamp(1.2rem, 1rem + 1.6vw, 2.4rem);}
.monyou[data-th="a"]{color: var(--color-aqua);}
.monyou[data-th="m"]{color: oklch(58% 0.015 250);}
.monyou path{fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; vector-effect: non-scaling-stroke;}
.monyou__contours path{opacity: 0.72;}
.monyou[data-th="a"] .monyou__contours path{opacity: 0.64;}
.monyou[data-th="m"] .monyou__contours path{opacity: 0.48;}
.monyou--card{width: calc(100% + 2rem); height: 118px; margin: -1rem -1rem 0.7rem; border-bottom: 1px solid var(--rule); background: var(--label);}
.animal-hero--monyou > .monyou--animal{position: absolute; inset: 0 0 0 auto; z-index: 0; width: var(--monyou-lane); height: 100%; opacity: 0.56;}
.animal-hero--monyou > .monyou--animal[data-th="m"]{opacity: 0.25;}
.hub-card-grid, .species-card-grid{display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--space-2);}
.hub-card::before, .species-index-card::before, .archive-entry-card::before{content: ""; position: absolute; top: 0.7rem; right: 0.7rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: color-mix(in oklch, var(--sumi) 18%, transparent);}
.hub-card em{min-width: 0; overflow-wrap: anywhere; color: var(--shu); font-family: var(--font-serif); font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.55rem); font-style: normal; line-height: 1;}
.hub-card span:not(.specimen-label), .species-index-card__kana, .species-index-card__summary, .archive-entry-card p:not(.specimen-label){color: var(--sumi-soft); font-size: var(--text-sm);}
.species-index-card__foot{display: flex; flex-wrap: wrap; gap: 0.45rem 0.7rem; align-items: center; margin-top: 0.4rem; color: var(--sumi-soft); font-size: var(--text-sm);}
.species-index-card__photo{margin: 0.35rem calc(var(--space-2) * -1) 0; border-block: 1px solid var(--rule); background: var(--paper-warm);}
.species-index-card__photo .photo-figure__media{aspect-ratio: 3 / 2;}
.species-index-card__photo figcaption{min-height: 3.2em;}
.species-card-grid--featured{grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));}
.event-list{display: grid; gap: 0;}
.event-item{display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1rem; padding: 0.75rem 0.25rem;}
.event-item__date{font-size: var(--text-sm); font-variant-numeric: tabular-nums;}
@media (prefers-reduced-motion: reduce){
.sci-marquee__track{animation: none !important; transform: none;}
}
@media (max-width: 900px){
.hero__inner{grid-template-columns: minmax(0, 1fr) minmax(6.2rem, 0.34fr);}
}
@media (max-width: 760px){
.hero--home{min-height: auto;}
.hero__inner{min-height: 34rem; grid-template-columns: minmax(0, 1fr) minmax(5.6rem, 0.32fr); gap: 1rem;}
.hero__title{max-height: 29rem; font-size: clamp(2.75rem, 1.25rem + 12vw, 5.6rem);}
.hero__copy{align-self: start;}
.home-search-cta__inner{grid-template-columns: 1fr;}
.home-search-cta__button{width: 100%;}
}
@media (max-width: 480px){
.monyou--card{height: 90px;}
.hero__inner{grid-template-columns: minmax(0, 1fr) minmax(4.8rem, 0.3fr); min-height: 32rem; padding-block: 2rem 4.7rem;}
.hero__stamp{width: 4.2rem;}
.hero__copy{padding: 0.85rem; font-size: 0.94rem;}
.hero__title{max-height: 27rem; font-size: clamp(2.35rem, 1rem + 12vw, 4.4rem);}
.scroll-cue{display: none;}
}
@media (max-width: 760px){
.animal-hero--monyou > .monyou--animal{inset: 0 0 auto; width: 100%; height: var(--monyou-lane-height);}
}
.active-facilities{margin: var(--space-2) 0 0; padding: 0; list-style: none; counter-reset: active-facility;}
.active-facilities__row{display: flex; align-items: baseline; gap: 0.5rem; padding: 0.55rem 0; border-top: 1px solid var(--rule); counter-increment: active-facility;}
.active-facilities__row:first-child{border-top: 0;}
.active-facilities__row::before{content: counter(active-facility); min-inline-size: 1.4em; color: var(--sumi-soft); font: 700 var(--text-sm)/1 var(--font-serif);}
.active-facilities__link{display: inline-flex; align-items: center; min-height: 24px; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere;}
.active-facilities__count{color: var(--sumi-soft); font-size: var(--text-sm); white-space: nowrap;}
.sci-marquee[data-sci-marquee], .page-top .sci-marquee[data-sci-marquee]{position: relative;}
.sci-marquee__toggle{position: absolute; top: 50%; right: 0; z-index: 1; display: inline-grid; place-items: center; width: var(--tap-target); height: var(--tap-target); padding: 0; border: 0; border-left: 1px solid var(--rule); color: var(--sumi-soft); background: var(--paper); box-shadow: -1.25rem 0 1rem -0.4rem var(--paper); cursor: pointer; transform: translateY(-50%);}
.sci-marquee__toggle[hidden]{display: none;}
.sci-marquee__toggle:hover, .sci-marquee__toggle[aria-pressed="true"]{color: var(--shu);}
.sci-marquee__toggle:active{transform: translateY(-50%) scale(0.94);}
.sci-marquee__icon{width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;}
.sci-marquee__icon--play{display: none; fill: currentColor; stroke: none;}
.sci-marquee__toggle[aria-pressed="true"] .sci-marquee__icon--pause{display: none;}
.sci-marquee__toggle[aria-pressed="true"] .sci-marquee__icon--play{display: block;}
@media (max-width: 980px){
.page-top .sci-marquee__toggle{right: 24px;}
}
@media (prefers-reduced-motion: reduce){
.sci-marquee__toggle{display: none;}
}
@media (max-width: 599px){
.species-card-grid--featured{grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-1);}
.species-card-grid--featured .species-index-card{padding: 0.6rem;}
.species-card-grid--featured .species-index-card h3{font-size: 1rem;}
.species-card-grid--featured .species-index-card__photo{margin-inline: -0.6rem;}
.species-card-grid--featured .species-index-card__photo figcaption{min-height: 0; padding-inline: 0.5rem; font-size: var(--text-xs);}
}
@supports (overflow-clip-margin: 1px){
.sci-marquee{contain-intrinsic-size: auto 48px;}
}
.page-top{--tenbyou-abyss-1: oklch(30% 0.045 240); --tenbyou-abyss-2: oklch(17% 0.03 255); --tenbyou-silver: oklch(92% 0.01 250);}
#depth-canopy, #top-birthday, #depth-waterline, #top-hubs, #top-archive{scroll-margin-top: 5.25rem;}
.depth-rail{position: fixed; top: 50%; right: clamp(0.75rem, 1.8vw, 1.5rem); z-index: 45; display: none; flex-direction: column; align-items: flex-end; color: var(--sumi-soft); font-size: var(--text-xs, 0.75rem); transform: translateY(-50%); transition: color 200ms ease;}
.tenbyou-ready .depth-rail{display: flex;}
.depth-rail__line{position: absolute; top: 0.65rem; right: 3px; bottom: 0.65rem; width: 1px; background: color-mix(in oklch, var(--sumi) 24%, transparent); transition: background-color 200ms ease;}
.depth-rail__trail{position: absolute; top: 0; right: 3px; z-index: 1; width: 1px; height: 0; background: var(--shu); opacity: 0.4; transform: scaleY(0); transform-origin: top;}
.depth-rail__stop.is-passed .depth-rail__tick{background: var(--shu); opacity: 0.45;}
.depth-rail__stop.is-passed .depth-rail__value{opacity: 0.72;}
.depth-rail__dot{position: absolute; top: 0.65rem; right: 0; z-index: 2; width: 7px; height: 7px; border-radius: 50%; background: var(--shu); transform: translateY(-50%); will-change: top;}
.depth-rail__stop{position: relative; z-index: 1; display: grid; grid-template-columns: minmax(5.5em, auto) 4.2em 0.7rem; gap: 0.5rem; align-items: center; min-height: 2rem; padding: 0.3rem 0; color: inherit; text-decoration: none; white-space: nowrap;}
.depth-rail__value{color: inherit; font-family: var(--font-serif); text-align: right; font-variant-numeric: tabular-nums;}
.depth-rail__tick{width: 0.7rem; height: 1px; background: color-mix(in oklch, var(--sumi) 26%, transparent); transition: background-color 200ms ease;}
.depth-rail__stop[aria-current="location"]{color: var(--sumi); font-weight: 700;}
.depth-rail__stop[aria-current="location"] .depth-rail__value{color: var(--shu);}
.depth-rail--inverse{color: oklch(88% 0.01 250);}
.depth-rail--inverse .depth-rail__line, .depth-rail--inverse .depth-rail__tick{background: oklch(88% 0.01 250);}
.depth-rail--inverse .depth-rail__stop[aria-current="location"]{color: oklch(88% 0.01 250);}
.depth-rail--inverse .depth-rail__stop[aria-current="location"] .depth-rail__value{color: var(--shu);}
.depth-rail--inverse .depth-rail__trail, .depth-rail--inverse .depth-rail__stop.is-passed .depth-rail__tick{background: var(--tenbyou-silver);}
.depth-rail__stop:focus-visible{outline: 2px solid var(--shu); outline-offset: 4px;}
.page-top .hero--home{min-height: min(calc(100svh - 3.8rem), 58.75rem);}
.page-top .tenbyou-life{position: absolute; top: 0; left: 0; z-index: 15; width: 100%; height: 100lvh; pointer-events: none;}
.tenbyou-dive .page-top .tenbyou-life{position: fixed;}
.page-top .tenbyou-life-fallback{position: absolute; inset: 22% auto auto 3.5%; z-index: 0; width: min(50%, 40rem); height: 36%; overflow: visible; color: var(--sumi); opacity: 0.22; pointer-events: none;}
.page-top .tenbyou-life-fallback path{fill: currentColor;}
.page-top .tenbyou-life-fallback circle{fill: var(--shu); opacity: 0.9;}
.page-top .hero__inner{z-index: auto; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto; min-height: min(calc(100svh - 3.8rem), 58.75rem); padding-block: clamp(2.2rem, 5vw, 4.2rem) clamp(2.8rem, 5vw, 4rem);}
.page-top .hero__stamp{grid-column: 1; grid-row: 1;}
.page-top .hero__copy{grid-column: 1; grid-row: 1; align-self: start; max-width: 34rem; margin-left: clamp(6rem, 10vw, 8rem); padding: 0.15rem 0; border: 0; background: transparent; transform: none;}
.page-top .hero__lead{max-width: 30rem; color: var(--sumi-soft); font-size: 0.96rem;}
.page-top .hero__title{position: relative; z-index: 16; grid-column: 2; grid-row: 1 / span 3; line-height: 1.16; letter-spacing: 0.08em;}
.page-top .hero__stats{grid-column: 1; grid-row: 2; grid-template-columns: 1fr; gap: 0.45rem; align-self: end; max-width: 15rem; margin-bottom: 0.5rem;}
.page-top .hero__stat{padding: 0.5rem 0.9rem 0.55rem 1.45rem;}
.page-top .hero__stat::before{top: 0.6rem; right: auto; left: 0.55rem; width: 5px; height: 5px; background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 0.95rem 0 -1px var(--paper), 0 0.95rem 0 0 var(--rule);}
.page-top .hero__stat dd{font-size: clamp(1.9rem, 1.3rem + 1.4vw, 2.6rem);}
.page-top .tenbyou-caption{grid-column: 1; grid-row: 3; max-width: 17rem; margin: 0; color: var(--sumi-soft); font-size: var(--text-xs, 0.75rem);}
.page-top .tenbyou-caption strong{color: var(--shu);}
.page-top .scroll-cue{left: 50%; bottom: 0.8rem; color: var(--sumi-soft); transform: translateX(-50%);}
html[lang="en"] .page-top .hero__title{max-width: 8.5em; font-size: clamp(3rem, 2rem + 4.8vw, 6.8rem); line-height: 0.98; letter-spacing: -0.025em;}
.tenbyou-waterline{position: relative; z-index: 2; overflow: hidden; border-top: 1px solid var(--depth-surface-line); background: var(--depth-under);}
.page-top .sci-marquee{position: static; inset: auto; border-top: 0; background: transparent;}
.page-top .sci-marquee__track{padding-block: 0.6rem;}
.tenbyou-zone--surface{background-color: var(--paper);}
.tenbyou-zone--water{border-top-color: color-mix(in oklch, var(--depth-surface-line) 40%, var(--rule)); background: repeating-linear-gradient(0deg, transparent 0 18px, var(--depth-under-grid) 18px 19px), repeating-linear-gradient(90deg, transparent 0 18px, var(--depth-under-grid) 18px 19px), var(--depth-under);}
.page-top .tenbyou-zone--abyss{position: relative; isolation: isolate; overflow: hidden; color: var(--tenbyou-silver); background: linear-gradient(180deg, color-mix(in oklch, var(--tenbyou-abyss-1) 88%, var(--paper)) 0%, var(--tenbyou-abyss-1) 15%, var(--tenbyou-abyss-2) 70%);}
.page-top .tenbyou-zone--abyss::after{opacity: 0.08; filter: invert(1);}
.page-top .tenbyou-zone--abyss::before{color: color-mix(in oklch, var(--tenbyou-silver) 72%, transparent);}
.page-top .tenbyou-snow{position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none;}
.page-top .tenbyou-zone--abyss > .wrap{position: relative; z-index: 2;}
.page-top .tenbyou-memory__mission{grid-column: 1 / -1; max-width: 25em; margin: 0 0 clamp(2.6rem, 5vw, 5rem); color: oklch(94% 0.008 250); font-family: var(--font-serif); font-size: clamp(1.8rem, 1.2rem + 3.2vw, 4.6rem); line-height: 1.45;}
.page-top .tenbyou-zone--abyss .section__title, .page-top .tenbyou-zone--abyss .archive-entry-card h3 a{color: oklch(94% 0.008 250);}
.page-top .tenbyou-zone--abyss .section__note, .page-top .tenbyou-zone--abyss .section__more, .page-top .tenbyou-zone--abyss .archive-entry-card, .page-top .tenbyou-zone--abyss .specimen-label{color: oklch(89% 0.01 250);}
.page-top .tenbyou-zone--abyss .archive-entry-card{border-color: color-mix(in oklch, var(--tenbyou-silver) 28%, transparent); background: color-mix(in oklch, var(--tenbyou-silver) 5%, transparent);}
.page-top .tenbyou-zone--abyss a:focus-visible{outline-color: oklch(94% 0.008 250);}
@media (max-width: 980px){
.depth-rail{top: calc(50% - (var(--bottom-nav-h, 0px) / 2)); right: 0; width: 24px; align-items: stretch; border-left: 1px solid color-mix(in oklch, var(--sumi) 14%, transparent); background: color-mix(in oklch, var(--paper-strong) 80%, transparent); font-size: 0.7rem;}
.depth-rail__line{top: 22px; right: 11.5px; bottom: 22px;}
.depth-rail__dot{right: 8.5px;}
.depth-rail__trail{right: 11.5px;}
.tenbyou-dive--deep .page-top .tenbyou-life{z-index: 46;}
.depth-rail__stop{grid-template-columns: 1fr; justify-items: center; width: 24px; min-height: 44px; padding: 0;}
.depth-rail__tick{width: 9px;}
.depth-rail__label, .depth-rail__value{position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;}
.depth-rail__stop[aria-current="location"] .depth-rail__label{top: 50%; right: calc(100% + 6px); width: auto; height: auto; padding: 0.2rem 0.5rem; overflow: visible; clip-path: none; border: 1px solid var(--rule-strong); color: var(--sumi); background: var(--paper-strong); font-family: var(--font-serif); font-weight: 700; transform: translateY(-50%);}
.depth-rail{transition: color 200ms ease, opacity 240ms ease, visibility 240ms;}
.depth-rail--resting{visibility: hidden; opacity: 0; pointer-events: none;}
.depth-rail--inverse{border-left-color: oklch(88% 0.01 250 / 0.3); background: oklch(17% 0.03 255 / 0.72);}
.depth-rail--inverse .depth-rail__stop[aria-current="location"] .depth-rail__label{border-color: oklch(88% 0.01 250 / 0.45); color: oklch(94% 0.008 250); background: oklch(20% 0.03 255);}
}
@media (max-width: 760px){
.page-top .hero__inner{grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(min(58vw, 18rem), 1fr) auto auto;}
.page-top .hero__copy{margin-left: 5.3rem;}
.page-top .hero__title{grid-row: 1 / span 2; align-self: center;}
.page-top .hero__stats{grid-column: 1 / -1; grid-row: 3; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; max-width: none; margin-bottom: 0;}
.page-top .hero__stat{padding: 0.5rem 0.45rem 0.5rem 1.15rem;}
.page-top .hero__stat::before{left: 0.4rem;}
.page-top .hero__stat dt{font-size: var(--text-xs, 0.75rem); letter-spacing: 0.04em; line-height: 1.45;}
.page-top .hero__stat dd{font-size: clamp(1.4rem, 0.9rem + 2.4vw, 2rem);}
.page-top .tenbyou-caption{grid-column: 1 / -1; grid-row: 4; max-width: none;}
html[lang="en"] .page-top .hero__inner{grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; min-height: 42rem;}
html[lang="en"] .page-top .hero__title{grid-column: 1; grid-row: 2; justify-self: start; max-width: 8em; margin-top: 2rem;}
html[lang="en"] .page-top .hero__stats{grid-row: 3;}
html[lang="en"] .page-top .tenbyou-caption{grid-row: 4;}
}
@media (max-width: 480px){
.page-top .hero__inner{min-height: 42rem; padding-bottom: 3rem;}
.page-top .hero__copy{margin-left: 4.8rem; font-size: 0.9rem;}
.page-top .tenbyou-caption{padding-right: 1.5rem;}
}
@media (max-width: 360px){
.page-top .hero__copy{grid-column: 1 / -1; width: auto; max-width: none; margin-left: 4.1rem;}
.page-top .hero__lead{min-width: 12em;}
.page-top .hero__inner{min-height: 46rem;}
.page-top .hero__title{grid-row: 2; align-self: end;}
}
@media (prefers-reduced-motion: reduce){
.depth-rail__dot{will-change: auto;}
.depth-rail, .depth-rail__line, .depth-rail__tick{transition: none;}
}
