/* UI components named after Name That UI: Site Header + Navigation region, Hamburger Menu (Nav Drawer),
   Text Shimmer, Hover Highlight / Hover Lift / Cursor Spotlight, Card, Particle Burst, Back-to-Top */

/* Site Header: ホーム and これまでの経験 as transparent-background buttons */
.site-header__inner { gap: 12px; }
.site-header__primary { display: flex; align-items: center; gap: 6px; min-width: 0; }
.site-header .nav-button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid rgba(6, 27, 49, .16); border-radius: 999px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: 0; white-space: nowrap; transition-property: background-color, border-color, color; transition-duration: 150ms; transition-timing-function: ease-out; }
.site-header .nav-button[aria-current="page"] { border-color: var(--brand); color: var(--brand); }
@media (hover: hover) { .site-header .nav-button:hover { border-color: rgba(83, 58, 253, .4); background: rgba(83, 58, 253, .06); color: var(--brand); } }
.site-header__icon { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 359px) { .site-header .nav-button { padding: 0 10px; font-size: 13px; } .site-header__icon { display: none; } }
.site-header__nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-header__nav a[aria-current="location"], .site-header__nav a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); }
@media (min-width: 768px) and (max-width: 959px) { .site-header__nav { gap: 18px; } .site-header__nav a { font-size: 13px; } }

/* Hamburger Menu (Nav Drawer): phones only */
.hamburger-button { display: inline-grid; flex: none; place-content: center; gap: 5px; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.hamburger-button span { display: block; width: 20px; height: 2px; border-radius: 1px; background: var(--ink); }
.hamburger-button:hover { background: var(--surface-tint); }
@media (min-width: 768px) { .hamburger-button { display: none; } }
.nav-drawer { position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); height: 100dvh; max-height: none; margin: 0; padding: 16px 20px 32px; overflow-y: auto; border: 0; background: var(--surface); color: var(--ink); box-shadow: -24px 0 48px -16px rgba(6, 27, 49, .25); transform: translateX(100%); transition: transform 240ms var(--ease), overlay 240ms allow-discrete, display 240ms allow-discrete; }
.nav-drawer:popover-open { transform: none; }
@starting-style { .nav-drawer:popover-open { transform: translateX(100%); } }
.nav-drawer::backdrop { background: rgba(6, 27, 49, .35); }
.nav-drawer__head { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.nav-drawer__title { font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.nav-drawer__close { width: 44px; height: 44px; margin-right: -10px; border: 0; border-radius: 8px; background: none; font-size: 26px; line-height: 1; color: var(--ink); cursor: pointer; }
.nav-drawer__close:hover { background: var(--surface-tint); }
.nav-drawer__links { display: grid; margin-top: 8px; border-top: 1px solid var(--line); }
.nav-drawer__links a { display: flex; align-items: center; gap: 10px; min-height: 48px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 600; }
.nav-drawer__links a[aria-current="page"] { color: var(--brand); }
.nav-drawer__group { margin-top: 20px; padding-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.nav-drawer__sub { display: grid; border-top: 1px solid var(--line); }
.nav-drawer__sub a { font-size: 15px; }
.nav-drawer__sub i { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); transform: rotate(45deg) scale(.85); }

/* Hero: one-line bold headline, Text Shimmer tagline, affiliation then name (right-aligned) */
.hero__copy { container-type: inline-size; }
.hero__title--one-line { margin-top: 0; font-size: min(52px, 8.6cqi); font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.hero__title--one-line span + span, .sp-hero__title span + span, .motto-hero__quote span + span { margin-left: .28em; }
.hero__tagline { margin-top: 14px; font-size: clamp(18px, 2.2vw, 22px); font-weight: 600; letter-spacing: .04em; }
/* Hero lockup: as wide as the title; the catchcopy at twice the earlier size, the affiliation flush right */
.hero__lockup { display: inline-flex; flex-direction: column; align-items: flex-start; max-width: 100%; }
.hero__lockup .hero__tagline { margin-top: 18px; font-size: min(44px, 7.4cqi); line-height: 1.35; letter-spacing: .02em; white-space: nowrap; }
.hero__lockup .affiliation { align-self: flex-end; }
/* PC: the affiliation starts under 「て」 of 試して; the name stays flush right */
.hero__lockup { --title-size: min(52px, 8.6cqi); }
@media (min-width: 768px) {
  body:not(.sp) .hero__lockup .affiliation { align-self: flex-start; margin-left: calc(var(--title-size) * var(--te-offset, 5)); }
  body:not(.sp) .hero__lockup .affiliation__org { font-size: min(19px, 3.4cqi); }
}
.text-shimmer { background-image: linear-gradient(100deg, var(--ink-muted) 35%, var(--brand) 50%, var(--ink-muted) 65%); background-size: 250% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; animation: text-shimmer 3.2s ease-in-out infinite; }
@keyframes text-shimmer { to { background-position: 0 0; } }
.affiliation { display: inline-grid; margin-top: 28px; color: var(--ink-body); }
.affiliation br { display: none; }
.affiliation__org { font-size: min(20px, 5.2cqi); font-weight: 400; letter-spacing: .02em; line-height: 1.6; white-space: nowrap; }
.affiliation__name { justify-self: end; margin-top: 4px; font-size: min(28px, 7cqi); font-weight: 600; line-height: 1.4; letter-spacing: .14em; color: var(--ink); }

/* Glossy black surface shared by the 5-trait stage and the experience cards */
.elements-stage, .exp-card { background: linear-gradient(155deg, #26262c 0%, #0c0c0f 46%, #050506 70%, #17171b 100%); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(0, 0, 0, .2), 0 18px 40px -16px rgba(0, 0, 0, .5); }
.elements-stage :focus-visible, .exp-card:focus-visible { outline-color: #fff; }

/* 5 traits: pentagon + list, with a linked Hover Highlight */
.elements-stage { --stage-accent: #533afd; position: relative; isolation: isolate; display: grid; gap: 24px; margin-top: 48px; padding: 24px 16px; border-radius: 20px; overflow: hidden; }
.elements-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 50% 30%, color-mix(in srgb, var(--stage-accent) 40%, transparent), transparent 70%); opacity: 0; transition: opacity 300ms ease-out; pointer-events: none; }
.elements-stage::after { content: ""; position: absolute; inset: 0 0 auto; z-index: -1; height: 45%; background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0)); pointer-events: none; }
.elements-stage.has-active::before { opacity: 1; }
@media (min-width: 960px) {
  .elements-stage { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 48px; padding: 48px; }
  .elements-stage::before { background: radial-gradient(55% 75% at 26% 50%, color-mix(in srgb, var(--stage-accent) 40%, transparent), transparent 70%); }
}
.pentagon { width: 100%; max-width: 440px; margin: 0 auto; }
.pentagon__svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.pentagon__region { outline: none; cursor: pointer; }
.pentagon__region path { fill: color-mix(in srgb, var(--accent) 26%, #101014); stroke: #09090b; stroke-width: 4; stroke-linejoin: round; transition: fill 200ms ease-out; }
.pentagon__region.is-active path, .pentagon__region:focus-visible path { fill: color-mix(in srgb, var(--accent) 78%, #000); }
.pentagon__region:focus-visible path { stroke: #fff; stroke-width: 3; }
@media (hover: hover) { .pentagon__region:hover path { fill: color-mix(in srgb, var(--accent) 78%, #000); } }
.pentagon__label { fill: #fff; font-size: 20px; font-weight: 700; text-anchor: middle; pointer-events: none; }
.pentagon__num { fill: rgba(255, 255, 255, .62); font-family: "Inter", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.trait-list { display: grid; gap: 8px; }
.trait-row { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px 10px 18px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; background: rgba(255, 255, 255, .03); color: #fff; transition-property: background-color, border-color; transition-duration: 200ms; transition-timing-function: ease-out; }
.trait-row::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 2px 2px 0; background: var(--accent); }
.trait-row.is-active, .trait-row:focus-visible { border-color: color-mix(in srgb, var(--accent) 65%, transparent); background: color-mix(in srgb, var(--accent) 24%, transparent); }
@media (hover: hover) { .trait-row:hover { border-color: color-mix(in srgb, var(--accent) 65%, transparent); background: color-mix(in srgb, var(--accent) 24%, transparent); } }
.trait-row__num { font-family: "Inter", sans-serif; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; }
.trait-row__name { display: block; font-size: 18px; font-weight: 700; line-height: 1.4; }
.trait-row__lead { display: block; margin-top: 2px; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .72); word-break: auto-phrase; }
.trait-row__arrow { color: rgba(255, 255, 255, .6); transition: transform 150ms ease-out; }
.trait-row.is-active .trait-row__arrow { transform: translateX(3px); color: #fff; }
.elements-more { margin-top: 20px; }

/* Experience Card: media, header, body, metadata row, footer (pinned with margin-top: auto) */
.exp-grid { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 640px) { .exp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .exp-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.exp-card { --accent: var(--brand); --spot: var(--accent); position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; }
.exp-card.is-visible { transition: transform 250ms var(--ease), box-shadow 250ms ease-out, border-color 250ms ease-out, opacity 700ms var(--ease) var(--delay, 0ms), filter 700ms var(--ease) var(--delay, 0ms); }
.exp-card::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--spot) 30%, transparent), transparent 60%); opacity: 0; transition: opacity 250ms ease-out; pointer-events: none; }
@media (hover: hover) {
  .exp-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 28px 56px -18px color-mix(in srgb, var(--accent) 55%, transparent); }
  .exp-card:hover::after { opacity: 1; }
  .exp-card:hover .exp-card__media { background-color: color-mix(in srgb, var(--accent) 42%, #0b0b0e); }
  .exp-card:hover .exp-card__media img { transform: scale(1.03); }
  .exp-card:hover .exp-card__more span { transform: translateX(3px); }
}
.exp-card:focus-visible .exp-card__media { background-color: color-mix(in srgb, var(--accent) 42%, #0b0b0e); }
.exp-card__media { position: relative; container-type: inline-size; aspect-ratio: 16 / 9; overflow: hidden; background-color: color-mix(in srgb, var(--accent) 22%, #0b0b0e); transition: background-color 250ms ease-out; }
.exp-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.exp-card__figure { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 16px; text-align: center; }
.exp-card__figure small { font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.exp-card__steps { display: flex; align-items: baseline; gap: 6px; font-size: min(28px, 7.2cqi); font-weight: 300; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.exp-card__steps i { font-size: .6em; font-style: normal; color: rgba(255, 255, 255, .55); }
.exp-card__steps b { font-weight: 600; }
.exp-card__pdca { display: flex; gap: 6px; font-family: "Inter", sans-serif; font-size: min(54px, 15cqi); font-weight: 700; line-height: 1; letter-spacing: .02em; }
.exp-card__pdca span { display: grid; place-items: center; width: 1.25em; height: 1.25em; border: 1px solid rgba(255, 255, 255, .28); border-radius: 12px; background: rgba(255, 255, 255, .06); }
.exp-card__pdca span:nth-child(odd) { color: color-mix(in srgb, var(--accent) 40%, #fff); }
.exp-card__big { font-size: 56px; font-weight: 300; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.exp-card__big small { margin-left: 4px; font-size: 20px; color: #fff; }
.exp-card__loop { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 300px; counter-reset: loop; }
.exp-card__loop li { display: inline-flex; align-items: center; padding: 3px 12px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; font-size: 13px; font-weight: 600; }
.exp-card__loop li::before { counter-increment: loop; content: counter(loop); margin-right: 6px; font-family: "Inter", sans-serif; font-size: 11px; color: rgba(255, 255, 255, .6); }
.exp-card__badge { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 4px 12px; border-radius: 999px; background: #ffd166; color: #1a1406; font-size: 13px; font-weight: 700; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.exp-card__content { position: relative; z-index: 2; display: flex; flex: 1; flex-direction: column; padding: 20px 22px 18px; }
.exp-card__kicker { font-size: 13px; font-weight: 600; color: color-mix(in srgb, var(--accent) 45%, #fff); }
.exp-card__title { margin-top: 6px; font-size: 19px; font-weight: 700; line-height: 1.5; text-wrap: balance; word-break: auto-phrase; }
.exp-card__body { margin-top: 8px; font-size: 14px; line-height: 1.8; color: rgba(255, 255, 255, .74); text-wrap: pretty; word-break: auto-phrase; }
.exp-card__footer { margin-top: auto; padding-top: 16px; }
.exp-card__meta { padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; font-weight: 600; line-height: 1.6; color: rgba(255, 255, 255, .62); font-variant-numeric: tabular-nums; }
.exp-card__title .phrase { display: inline-block; }
.exp-card__more { margin-top: 10px; font-size: 14px; font-weight: 600; }
.exp-card__more span { display: inline-block; transition: transform 150ms ease-out; }
/* Last tile: a plain link to the timeline, not an experience */
.exp-card--cta { justify-content: center; min-height: 180px; padding: 24px 22px; border: 1px solid var(--line); background: var(--surface-tint); color: var(--ink); box-shadow: none; }
.exp-card--cta .exp-card__body { color: var(--ink-body); }
.exp-card--cta .exp-card__more { margin-top: 14px; color: var(--brand); }
@media (hover: hover) { .exp-card--cta:hover { border-color: var(--brand); box-shadow: var(--shadow-card); } }
.exp-card--cta:focus-visible { outline-color: var(--brand); }

/* Particle Burst: short spark burst near the chosen trait or card (pointer and keyboard focus only) */
.burst-layer { position: fixed; inset: 0; z-index: 40; overflow: hidden; pointer-events: none; }
.burst-spark { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; will-change: transform, opacity; }
.burst-spark--1 { border-radius: 1px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.burst-spark--2 { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 0; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }

/* Back-to-Top: appears after scrolling down */
.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 15; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; font-size: 20px; box-shadow: 0 10px 24px -8px rgba(6, 27, 49, .45); cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition-property: opacity, transform, background-color; transition-duration: 200ms; transition-timing-function: ease-out; }
.back-to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  .text-shimmer { animation: none; background-position: 50% 0; }
  .nav-drawer, .exp-card, .exp-card.is-visible, .back-to-top, .pentagon__region path, .trait-row { transition: none; }
  .exp-card:hover { transform: none; }
}

/* Profile: heading on the left, portrait at the top right */
.profile-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.profile-head .eyebrow { margin-bottom: 0; }
.profile-photo { flex: none; width: 112px; }
.profile-photo img { display: block; width: 100%; height: auto; aspect-ratio: 437 / 530; object-fit: cover; border-radius: 14px; outline: 1px solid rgba(0, 0, 0, .1); outline-offset: -1px; box-shadow: var(--shadow-card); transform: rotate(2deg); }
@media (min-width: 768px) { .profile-photo { width: 168px; margin-top: -24px; } }

/* Running track behind the hero: an edited aerial photo (CC0) under a white veil, and a small runner lapping the lane */
.hero--track { isolation: isolate; }
.track-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .78) 38%, rgba(255, 255, 255, .55) 62%, rgba(255, 255, 255, .45) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0) 82%, #fff 100%),
    url("img/track-hero.jpg") center / cover no-repeat; }
.track-bg__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.track-bg__lane { fill: none; stroke: none; }
.track-runner path { fill: var(--ink); stroke: #fff; stroke-width: 1.6; paint-order: stroke; stroke-linejoin: round; }
.track-runner__body { animation: runner-bob 360ms ease-in-out infinite alternate; }
@keyframes runner-bob { to { transform: translateY(-1.5px); } }
.profile-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.profile-card__photo { flex: none; width: 84px; height: auto; aspect-ratio: 437 / 530; object-fit: cover; border-radius: 10px; outline: 1px solid rgba(0, 0, 0, .1); outline-offset: -1px; }
@media (prefers-reduced-motion: reduce) { .track-runner__body { animation: none; } }

/* PR film: Video Player between the hero and the five traits (muted autoplay while on screen, Play/Pause and Mute buttons) */
.film { padding-top: 24px; }
/* Keep each phrase of the heading on one line so a narrow screen breaks only between them */
.film .film__phrase, .headline .film__phrase { display: inline-block; margin-top: 0; max-width: none; font-size: inherit; line-height: inherit; color: inherit; }
.film__head { display: grid; gap: 16px; }
@media (min-width: 960px) { .film__head { grid-template-columns: 1fr auto; align-items: end; gap: 48px; } }
.film__meta { font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.film-player { margin-top: 40px; }
.film-player__frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 12px; background: #060709; box-shadow: 0 2px 4px rgba(6, 27, 49, .06), 0 30px 60px -12px rgba(50, 50, 93, .3); }
.film-player__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-player__controls { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.film-player__button { display: inline-flex; align-items: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 14px; font-weight: 600; backdrop-filter: blur(8px); cursor: pointer; transition-property: background-color, transform; transition-duration: 150ms; transition-timing-function: ease-out; }
.film-player__button:hover { background: #fff; }
.film-player__button:active { transform: scale(.96); }
.film-player__button svg { width: 16px; height: 16px; fill: currentColor; }
.film-player__icon-pause, .film-player.is-playing .film-player__icon-play { display: none; }
.film-player.is-playing .film-player__icon-pause { display: block; }
.film-player:not(.is-muted) .film-player__icon-muted, .film-player.is-muted .film-player__icon-sound { display: none; }
.film-player__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #ff6b47, #4f8dff 52%, #2fc8a0); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.film-player__caption { margin-top: 14px; font-size: 13px; line-height: 1.7; color: var(--ink-muted); text-wrap: pretty; }
@media (max-width: 767px) {
  .film-player { margin-top: 24px; }
  .film-player__controls { right: 10px; bottom: 10px; gap: 6px; }
  .film-player__button { padding: 0 12px; font-size: 13px; }
}
/* Phone width: keep only the icons so the buttons do not cover the film */
@media (max-width: 479px) { .film-player__button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .film-player__button { padding: 0; justify-content: center; } }
.sp .film-player__button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sp .film-player__button { padding: 0; justify-content: center; }
.no-js .film-player__controls, .no-js .film-player__progress { display: none; }
