:root {
  --black: #050608;
  --black-soft: #0b0d10;
  --white: #f0f1f2;
  --paper: #dedfdf;
  --ink: #0a0b0d;
  --blue: #365dff;
  --line-light: rgba(255,255,255,.18);
  --line-dark: rgba(7,8,10,.22);
  --pad: clamp(1.25rem, 4vw, 4.75rem);
  --sans: "Helvetica Neue", "Hiragino Sans", "Yu Gothic", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--black); color: var(--white); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { color: inherit; font: inherit; }
::selection { background: var(--blue); color: #fff; }

.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 100; padding: .75rem 1rem; background: #fff; color: #000; }
.skip-link:focus { top: 1rem; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; justify-content: space-between; align-items: center; height: 5rem; padding: 0 var(--pad); color: #fff; transition: background .3s, border-color .3s; }
.site-header.is-scrolled { background: rgba(5,6,8,.86); border-bottom: 1px solid var(--line-light); backdrop-filter: blur(12px); }
.brand { font-size: .7rem; font-weight: 600; letter-spacing: .16em; }
.site-nav { display: flex; gap: clamp(1.5rem, 3vw, 3.5rem); font-size: .6rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.site-nav a { opacity: .72; transition: opacity .2s; }
.site-nav a:hover { opacity: 1; }
.site-nav a[aria-current="page"] { opacity: 1; color: #8ba0ff; }
.menu-toggle { display: none; border: 0; background: none; font-size: .6rem; letter-spacing: .14em; }
body.light-page .site-header { color: var(--ink); }
body.light-page .site-header.is-scrolled { background: rgba(222,223,223,.9); border-bottom-color: var(--line-dark); }
.page-main { min-height: calc(100svh - 5rem); }

.hero { position: relative; min-height: 100svh; overflow: hidden; background: var(--black); }
.hero-image { position: absolute; inset: 7% 7% 0 43%; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 43%; filter: saturate(.82) contrast(1.04); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--black) 0%, rgba(5,6,8,.96) 18%, rgba(5,6,8,.3) 58%, rgba(5,6,8,.06)), linear-gradient(0deg, rgba(5,6,8,.74), transparent 35%); }
.hero-content { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: clamp(6rem, 12vh, 9rem); padding-bottom: 1.2rem; }
.hero-role { margin: 0 0 1.5rem .8rem; font-size: 1.1rem; letter-spacing: .22em; color: rgba(255,255,255,.62); }
.hero-role span { color: var(--blue); }
.hero h1 { max-width: 58%; margin: 0; font-size: clamp(3.4rem, 7.2vw, 7.2rem); font-weight: 300; line-height: .86; letter-spacing: -.065em; }
.hero-name-ja { margin: 1rem 0 0 clamp(21rem, 33vw, 29.5rem); color: rgba(255,255,255,.56); font-size: 1.5rem; letter-spacing: .18em; }
.hero-line { margin: 2rem 0 0; font-size: .72rem; letter-spacing: .14em; color: rgba(255,255,255,.62); }
.hero-scroll { position: absolute; z-index: 2; left: var(--pad); bottom: 2.2rem; display: flex; align-items: center; gap: 1rem; font-size: .55rem; letter-spacing: .15em; text-transform: uppercase; }
.hero-scroll i { width: 4rem; height: 1px; background: var(--blue); }
.hero-socials { position: absolute; z-index: 2; left: clamp(26rem, 35vw, 32rem); bottom: 2.7rem; display: flex; gap: 1.6rem; }
.hero-socials a { display: grid; width: 2.4rem; height: 2.4rem; place-items: center; color: rgba(255,255,255,.58); transition: color .2s, transform .2s; }
.hero-socials svg { width: 1.9rem; height: 1.9rem; }
.hero-socials a:hover { color: #8ba0ff; transform: translateY(-2px); }
.hero-count { position: absolute; z-index: 2; right: var(--pad); bottom: 2rem; margin: 0; font-size: .52rem; letter-spacing: .16em; color: rgba(255,255,255,.5); }

.section-dark, .section-light { position: relative; padding: clamp(7rem, 12vw, 12rem) var(--pad); }
.section-dark { background: var(--black-soft); color: var(--white); }
.section-light { background: var(--paper); color: var(--ink); }
.section-label { display: flex; gap: 1rem; align-items: baseline; font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; }
.section-label span { color: var(--blue); }
.section-label p { margin: 0; }
.dark-label p { color: #44484e; }

.profile { display: grid; grid-template-columns: 2fr 8fr 2fr; gap: clamp(2rem, 4vw, 5rem); min-height: 100vh; }
.profile.profile-simple { grid-template-columns: minmax(17rem, .82fr) minmax(20rem, 1fr); gap: clamp(3rem, 8vw, 9rem); align-items: center; padding-top: clamp(8rem, 12vw, 11rem); padding-bottom: clamp(6rem, 10vw, 10rem); }
.profile-simple .profile-portrait { width: min(100%, 30rem); justify-self: end; }
.profile-simple .profile-copy { align-self: center; max-width: 37rem; }
.profile h1.profile-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2rem; margin: 0 0 clamp(2.5rem, 4vw, 3.5rem); font-size: clamp(1.9rem, 2.6vw, 3rem); font-weight: 300; line-height: 1.15; letter-spacing: -.03em; }
.profile-name-en { font-size: .58em; letter-spacing: .015em; }
.profile-simple .profile-copy p { margin: 0 0 1.75rem; color: rgba(255,255,255,.72); font-size: clamp(.9rem, 1.08vw, 1.02rem); line-height: 2.15; }
.profile-main { padding-top: clamp(3rem, 7vw, 7rem); }
.profile-en { margin: 0 0 2.5rem; color: var(--blue); font-size: .62rem; letter-spacing: .22em; }
.profile h1, .profile h2 { margin: 0; font-size: clamp(3.2rem, 7vw, 7.6rem); font-weight: 300; line-height: 1.1; letter-spacing: -.065em; }
.profile-lower { display: grid; grid-template-columns: minmax(13rem, .78fr) minmax(18rem, 1fr); gap: clamp(2.5rem, 5vw, 5.5rem); align-items: end; margin-top: clamp(4rem, 8vw, 7rem); }
.profile-portrait { margin: 0; aspect-ratio: 2 / 3; overflow: hidden; background: #050608; }
.profile-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; filter: saturate(.82) contrast(1.03); }
.profile-copy { width: 100%; margin: 0; }
.profile-copy p { margin: 0 0 1.5rem; font-size: .84rem; line-height: 2.1; color: rgba(255,255,255,.58); }
.profile-copy .lead { font-size: clamp(.95rem, 1.3vw, 1.12rem); color: rgba(255,255,255,.86); }
.profile-copy .placeholder { font-size: .56rem; letter-spacing: .1em; color: rgba(255,255,255,.32); }
.profile-meta { align-self: end; padding-bottom: .3rem; }
.profile-meta div { padding: 1rem 0; border-top: 1px solid var(--line-light); }
.profile-meta span { font-size: .5rem; color: rgba(255,255,255,.38); text-transform: uppercase; letter-spacing: .12em; }
.profile-meta p { margin: .45rem 0 0; font-size: .64rem; line-height: 1.5; }

.section-head { display: grid; grid-template-columns: 2fr 10fr; gap: clamp(2rem, 4vw, 5rem); align-items: start; margin-bottom: clamp(5rem, 9vw, 9rem); }
.section-head h1, .section-head h2 { margin: -.15em 0 1rem; font-size: clamp(4rem, 9vw, 9rem); font-weight: 300; letter-spacing: -.075em; line-height: .9; }
.section-head > div:last-child > p { margin: 0; font-size: .62rem; letter-spacing: .1em; color: #565b62; }
.section-head.live-head-simple > div { grid-column: 2; }
.section-head.live-head-simple > div > p { font-size: .82rem; }
.schedule { border-top: 1px solid var(--line-dark); }
.schedule-row { display: grid; grid-template-columns: 1.4fr 3fr 4fr auto; gap: clamp(1rem, 3vw, 3rem); align-items: center; padding: 2rem 0; border-bottom: 1px solid var(--line-dark); }
.schedule-row time { color: var(--blue); font-size: .67rem; letter-spacing: .14em; }
.schedule-row h2, .schedule-row h3 { margin: 0; font-size: clamp(1.15rem, 2vw, 1.8rem); font-weight: 400; letter-spacing: -.025em; }
.schedule-row div p { margin: .5rem 0 0; font-size: .55rem; color: #666b72; letter-spacing: .08em; text-transform: uppercase; }
.schedule-note { margin: 0; font-size: .66rem; color: #555a61; }
.schedule-row > span { font-size: .8rem; transition: transform .2s; }
.schedule-row:hover > span { transform: translate(3px, -3px); color: var(--blue); }
.schedule-foot { margin: 1.25rem 0 0 auto; width: max-content; font-size: .54rem; color: #6c7075; letter-spacing: .08em; }
.schedule-month { margin: 3.4rem 0 .35rem; color: #747980; font-size: clamp(1.6rem, 2.6vw, 2.35rem); font-weight: 500; letter-spacing: .08em; }
.schedule-month:first-child { margin-top: 0; }
.schedule-row.event-row { grid-template-columns: 1.35fr 5.2fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; padding: 2.4rem 0; }
.event-row time { display: flex; flex-direction: column; gap: .55rem; }
.event-row time .event-date { color: var(--blue); font-size: 1.18rem; letter-spacing: .1em; }
.event-row time small { color: #747980; font-size: .8rem; letter-spacing: .16em; }
.event-main h2 { max-width: 48rem; line-height: 1.4; }
.event-main a { color: inherit; text-decoration: none; transition: color .2s ease; }
.event-main a:hover { color: var(--blue); }
.event-main a:hover .event-title-place { color: var(--blue); }
.event-title-place { display: inline-block; margin-left: .1em; color: #3e434a; font-size: 1.1rem; font-weight: 500; letter-spacing: .02em; }
.event-main p { margin: .65rem 0 0; line-height: 1.7; }
.event-main .event-venue { color: #3e434a; font-size: 1.1rem; font-weight: 500; }
.event-main .event-members { color: #62676e; font-size: 1rem; text-transform: none; }
.event-start { justify-self: start; margin: .15rem 0 0; color: var(--ink); font-size: 1.24rem; letter-spacing: .08em; white-space: nowrap; }

.blog { background: #07080a; }
.blog-head > div:last-child > p { color: rgba(255,255,255,.38); }
.posts { margin-left: calc((100% + clamp(2rem, 4vw, 5rem)) / 6); border-top: 1px solid var(--line-light); }
.post { display: grid; grid-template-columns: 1fr 7fr auto; gap: 2rem; align-items: start; padding: 2.75rem 0; border-bottom: 1px solid var(--line-light); }
.post-index { margin: .15rem 0 0; color: var(--blue); font-size: .55rem; letter-spacing: .12em; }
.post time { font-size: .5rem; letter-spacing: .14em; color: rgba(255,255,255,.38); }
.post h2, .post h3 { margin: 1.2rem 0 .8rem; font-size: clamp(1.35rem, 2.5vw, 2.6rem); font-weight: 300; letter-spacing: -.03em; }
.post div > p { margin: 0; font-size: .68rem; color: rgba(255,255,255,.42); }
.post > span { align-self: center; font-size: .55rem; color: rgba(255,255,255,.45); }
.post:hover h2, .post:hover h3, .post:hover > span { color: #8ba0ff; }

.lesson { min-height: 100svh; background: #07080a; }
.lesson-head > div:last-child > p { color: rgba(255,255,255,.38); font-size: .86rem; }
.lesson-content { margin-left: calc((100% + clamp(2rem, 4vw, 5rem)) / 6); }
.lesson-copy { max-width: 56rem; }
.lesson-copy > p { margin: 0 0 1.35rem; color: rgba(255,255,255,.72); font-size: clamp(.9rem, 1.15vw, 1.08rem); line-height: 2.05; }
.lesson-copy .lesson-external-link { margin-top: clamp(1.5rem, 3vw, 2.5rem); font-size: 1rem; }
.lesson-intro { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(3rem, 8vw, 8rem); align-items: end; padding-bottom: clamp(4rem, 8vw, 7rem); }
.lesson-intro h2 { margin: 0; font-size: clamp(2.6rem, 5.5vw, 5.8rem); font-weight: 300; line-height: 1.12; letter-spacing: -.055em; }
.lesson-intro > p { margin: 0; max-width: 28rem; color: rgba(255,255,255,.58); font-size: .78rem; line-height: 2; }
.lesson-list { border-top: 1px solid var(--line-light); }
.lesson-list article { display: grid; grid-template-columns: 4rem 1fr 1.4fr; gap: clamp(1rem, 3vw, 3rem); align-items: start; padding: 2.25rem 0; border-bottom: 1px solid var(--line-light); }
.lesson-list article > span { color: var(--blue); font-size: .54rem; letter-spacing: .12em; }
.lesson-list h3 { margin: -.2rem 0 0; font-size: clamp(1.2rem, 2vw, 1.8rem); font-weight: 300; letter-spacing: -.02em; }
.lesson-list p { margin: 0; color: rgba(255,255,255,.48); font-size: .7rem; line-height: 1.9; }
.lesson-info { display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(4rem, 7vw, 7rem) 0 0; }
.lesson-info div { padding: 1.2rem 1.5rem 1.2rem 0; border-top: 1px solid var(--line-light); }
.lesson-info dt { color: rgba(255,255,255,.35); font-size: .5rem; letter-spacing: .14em; text-transform: uppercase; }
.lesson-info dd { margin: .8rem 0 0; font-size: .68rem; line-height: 1.7; }
.lesson-cta { display: flex; justify-content: space-between; width: min(40rem, 100%); margin: clamp(4rem, 7vw, 7rem) 0 0 auto; padding: 1.2rem 0; border-bottom: 1px solid rgba(255,255,255,.55); font-size: .72rem; letter-spacing: .06em; }
.lesson-cta:hover { color: #8ba0ff; border-color: #8ba0ff; }

.contact { display: grid; grid-template-columns: 2fr 10fr; gap: clamp(2rem, 4vw, 5rem); min-height: 80vh; align-content: center; }
.contact-simple .contact-main { grid-column: 2; }
.contact-main h1, .contact-main h2 { margin: 0; font-size: clamp(4rem, 10vw, 10rem); font-weight: 300; letter-spacing: -.08em; line-height: .9; }
.contact-main > p { margin: 3rem 0 4rem; font-size: .92rem; color: #545960; }
.contact-main a { display: flex; justify-content: space-between; width: min(39rem, 100%); padding: 1.2rem 0; border-bottom: 1px solid #111; font-size: clamp(1.05rem, 1.7vw, 1.35rem); letter-spacing: .04em; }
.contact-main a:hover { color: var(--blue); border-color: var(--blue); }

.site-footer { display: grid; grid-template-columns: 2fr 4fr 4fr auto; gap: 2rem; padding: 2rem var(--pad); background: var(--black); border-top: 1px solid var(--line-light); color: rgba(255,255,255,.4); font-size: .5rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer p { margin: 0; }
.site-footer div { display: flex; gap: 1.5rem; }

.reveal { opacity: 1; transform: none; }

@media (max-width: 850px) {
  .site-header { height: 4.5rem; }
  .menu-toggle { display: flex; align-items: center; gap: .7rem; z-index: 2; cursor: pointer; }
  .menu-toggle i, .menu-toggle i::before { display: block; width: 1.4rem; height: 1px; background: currentColor; transition: transform .25s; }
  .menu-toggle i { position: relative; }
  .menu-toggle i::before { content: ""; position: absolute; transform: translateY(5px); }
  .menu-toggle[aria-expanded="true"] i { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i::before { transform: rotate(-90deg); }
  .site-nav { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; padding: var(--pad); background: #07080a; opacity: 0; visibility: hidden; transform: translateY(-1rem); transition: .3s; }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  body.light-page .site-nav.is-open { color: #fff; }
  .site-nav a { font-size: clamp(2.5rem, 11vw, 5rem); font-weight: 300; letter-spacing: -.04em; text-transform: none; }
  .hero-image { inset: 7% 3% 0 26%; }
  .hero-shade { background: linear-gradient(90deg, rgba(5,6,8,.9), rgba(5,6,8,.14) 78%), linear-gradient(0deg, rgba(5,6,8,.82), transparent 55%); }
  .hero h1 { max-width: 100%; font-size: clamp(3.2rem, 12.5vw, 6rem); }
  .hero-socials { left: auto; right: var(--pad); }
  .hero-count { display: none; }
  .profile { grid-template-columns: 1fr; }
  .profile.profile-simple { grid-template-columns: minmax(14rem, .8fr) minmax(17rem, 1fr); gap: clamp(2rem, 6vw, 4rem); }
  .profile-main { padding-top: 3rem; }
  .profile-lower { grid-template-columns: minmax(12rem, .8fr) minmax(17rem, 1fr); }
  .profile-meta { width: min(34rem, 100%); margin-left: auto; }
  .section-head, .contact { grid-template-columns: 1fr; }
  .contact-simple .contact-main { grid-column: 1; }
  .section-head.live-head-simple > div { grid-column: 1; }
  .section-head .section-label, .contact .section-label { margin-bottom: 3rem; }
  .posts { margin-left: 0; }
  .lesson-content { margin-left: 0; }
  .lesson-intro { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 560px) {
  .hero-image { inset: 9% 2% 0 20%; }
  .hero-image img { object-position: 47% 44%; }
  .hero-content { bottom: 7rem; }
  .hero h1 { font-size: 12.5vw; letter-spacing: -.055em; white-space: nowrap; }
  .hero-name-ja { margin-left: 65vw; font-size: 1.2rem; }
  .hero-socials { gap: 1.1rem; }
  .profile h1, .profile h2 { font-size: 12vw; }
  .profile.profile-simple { grid-template-columns: 1fr; align-items: start; }
  .profile-simple .profile-portrait { justify-self: start; }
  .profile-name { font-size: 7vw !important; }
  .profile-lower { grid-template-columns: 1fr; gap: 3rem; }
  .profile-portrait { width: min(78vw, 22rem); }
  .profile-copy { width: 100%; }
  .section-head h1, .section-head h2 { font-size: 18vw; }
  .schedule-row { grid-template-columns: 4rem 1fr auto; gap: .8rem; }
  .schedule-row.event-row { grid-template-columns: 1fr auto; gap: 1rem; }
  .event-row time { grid-column: 1 / -1; }
  .event-main { grid-column: 1; }
  .event-start { grid-column: 2; grid-row: 2; }
  .schedule-note { display: none; }
  .post { grid-template-columns: 2.5rem 1fr; }
  .post > span { display: none; }
  .lesson-list article { grid-template-columns: 2rem 1fr; }
  .lesson-list article p { grid-column: 2; }
  .lesson-info { grid-template-columns: 1fr; }
  .contact-main h1, .contact-main h2 { font-size: 18vw; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer > p:nth-child(2), .site-footer div { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
