:root {
  color-scheme: dark;
  --ink: #eef4f0;
  --muted: #aab9b2;
  --deep: #070c0b;
  --panel: rgba(9, 16, 15, 0.78);
  --line: rgba(226, 236, 230, 0.28);
  --accent: #c7a46a;
  --ice: #94c6c8;
  --max: 1320px;
  font-family: Inter, "Noto Sans JP", "Yu Gothic", sans-serif;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
html { background: var(--deep); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--deep); overflow-x: hidden; }
body.modal-open { overflow: hidden; }
button { color: inherit; font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; top: -4rem; left: 1rem; z-index: 100; padding: .7rem 1rem; background: var(--ink); color: var(--deep); }
.skip-link:focus { top: 1rem; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; padding: 0 clamp(1.2rem, 4vw, 4.5rem); border-bottom: 1px solid rgba(238, 244, 240, .14); background: rgba(7, 12, 11, .52); backdrop-filter: blur(16px); }
.brand-space { display: inline-flex; align-items: center; gap: .48rem; width: 210px; height: 48px; padding: .2rem .55rem .2rem .25rem; border: 1px solid rgba(199, 164, 106, .62); background: #070908; overflow: hidden; text-decoration: none; }
.brand-mark { display: block; flex: none; width: 40px; height: 40px; object-fit: contain; }
.brand-wordmark { display: block; width: 148px; height: auto; }
.top-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 3.5rem); }
.nav-link { position: relative; border: 0; padding: .5rem 0; background: transparent; color: rgba(238, 244, 240, .66); cursor: pointer; font-size: .72rem; font-weight: 700; letter-spacing: .24em; }
.nav-link::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .3s ease; }
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.header-tools { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; }
.language-chip { color: var(--muted); font-size: .65rem; letter-spacing: .2em; }
.menu-toggle { display: none; border: 0; background: transparent; padding: .5rem; cursor: pointer; }
.menu-toggle span { display: block; width: 1.4rem; height: 1px; margin: .32rem 0; background: var(--ink); }

.screen { position: relative; min-height: 100svh; isolation: isolate; overflow: hidden; scroll-snap-align: start; }
.hero-screen { display: grid; place-items: center; }
.hero-video, .screen-backdrop { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; }
.hero-video { filter: saturate(.8) contrast(1.06); }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: rgba(3, 8, 8, .36); }
.hero-shade::after { content: ""; position: absolute; inset: 0; background: rgba(6, 15, 14, .28); }
.hero-content { display: grid; justify-items: center; gap: 1.1rem; width: min(90vw, 760px); padding-top: 5rem; text-align: center; }
.eyebrow, .hero-status, .section-index, .class-counter, .class-kicker, .class-note, .info-kicker, .news-board-top, .news-meta, .product-facts dt { font-size: .65rem; font-weight: 700; letter-spacing: .28em; }
.eyebrow { margin: 0; color: rgba(238, 244, 240, .78); }
.logo-reserved { display: grid; place-items: center; width: min(88vw, 660px); height: clamp(7rem, 12vw, 10rem); }
.hero-logo-lockup { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; margin: 0; padding: .9rem 1.25rem .9rem 1rem; border: 1px solid rgba(199, 164, 106, .72); background: rgba(7, 9, 8, .9); box-shadow: 0 10px 30px rgba(0, 0, 0, .38); animation: logo-reveal .7s ease both; }
.hero-logo-mark { display: block; width: clamp(76px, 11vw, 116px); height: auto; }
.hero-logo-wordmark { display: block; width: clamp(220px, 34vw, 330px); height: auto; }
@keyframes logo-reveal { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.hero-status { margin: 0; color: rgba(238, 244, 240, .56); }
.play-button { display: grid; place-items: center; width: 5.6rem; height: 5.6rem; margin-top: .7rem; border: 1px solid rgba(238, 244, 240, .68); border-radius: 50%; background: rgba(7, 12, 11, .18); cursor: pointer; transition: transform .3s ease, background .3s ease; }
.play-button:hover { transform: scale(1.08); background: rgba(7, 12, 11, .5); }
.play-glyph { margin-left: .2rem; font-size: 1.1rem; }
.hero-downloads { position: absolute; bottom: clamp(2.2rem, 6vh, 4.5rem); left: 50%; display: flex; gap: .7rem; transform: translateX(-50%); }
.store-button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-width: 10rem; height: 2.9rem; padding: 0 1.1rem; border: 1px solid rgba(238, 244, 240, .52); background: rgba(7, 12, 11, .56); font-size: .72rem; font-weight: 700; letter-spacing: .06em; }
.store-button.is-disabled { color: rgba(238, 244, 240, .58); cursor: default; }
.store-icon { font-size: 1.2rem; line-height: 1; }
.android-icon { display: grid; place-items: center; width: 1rem; height: 1rem; border: 1px solid currentColor; border-radius: 45%; font-size: .35rem; }
.scroll-cue { position: absolute; right: 2rem; bottom: 2.3rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 0; background: transparent; cursor: pointer; }
.scroll-cue span { display: block; width: .7rem; height: .7rem; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: rotate(45deg); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(-3px) rotate(45deg); opacity: .35; } 50% { transform: translateY(3px) rotate(45deg); opacity: 1; } }

.screen-backdrop { z-index: -3; }
.news-backdrop { background: url("../public/assets/news-bg.webp") center / cover no-repeat; filter: saturate(.7); }
.class-backdrop { background: #0a1211; }
.info-backdrop { background: url("../public/assets/info-bg.webp") center / cover no-repeat; filter: saturate(.68); }
.news-screen::after, .info-screen::after { content: ""; position: absolute; inset: 0; z-index: -2; background: rgba(5, 11, 10, .6); }
.class-screen::after { content: ""; position: absolute; inset: 0; z-index: -2; background: rgba(7, 14, 13, .64); }
.section-inner { position: relative; z-index: 1; width: min(100% - 3rem, var(--max)); min-height: 100svh; margin: 0 auto; padding: 7rem 0 2rem; }
.section-heading { display: flex; align-items: center; gap: 1.2rem; }
.section-index { color: var(--accent); }
.section-heading h2 { margin: 0; font-size: 2.6rem; font-weight: 500; letter-spacing: .18em; }
.heading-rule { width: min(20vw, 13rem); height: 1px; background: var(--line); }
.section-heading-light { color: var(--ink); }
.news-inner { display: flex; flex-direction: column; }
.news-board { display: grid; align-content: center; width: min(100%, 880px); min-height: 48vh; margin: auto; padding: clamp(1.3rem, 4vw, 3rem); border: 1px solid rgba(238, 244, 240, .34); background: rgba(7, 12, 11, .56); box-shadow: 0 2rem 5rem rgba(0, 0, 0, .2); }
.news-board-top { display: flex; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.news-list { display: grid; align-content: center; min-height: 22rem; }
.news-item { display: grid; grid-template-columns: 7.2rem 7rem minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1.45rem 0; border-bottom: 1px solid var(--line); }
.news-item:first-child { border-top: 1px solid var(--line); }
.news-date, .news-category, .news-loading { font-size: .67rem; font-weight: 700; letter-spacing: .16em; }
.news-date { color: var(--muted); }
.news-category { color: var(--accent); }
.news-copy { min-width: 0; }
.news-title { margin: 0; color: var(--ink); font-size: 1rem; font-weight: 500; letter-spacing: .08em; line-height: 1.6; }
.news-title-button { display: block; width: 100%; border: 0; padding: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.news-title-button:hover .news-title { color: var(--accent); }
.news-summary { margin: .55rem 0 0; color: var(--muted); font-size: .8rem; letter-spacing: .04em; line-height: 1.8; }
.news-loading { margin: 0; color: rgba(238, 244, 240, .48); text-align: center; }
.news-meta { display: flex; align-items: center; gap: 1rem; margin-top: auto; color: var(--muted); }
.meta-line { width: 3rem; height: 1px; background: var(--accent); }

.class-inner { display: flex; flex-direction: column; }
.class-stage { display: grid; flex: 1; grid-template-columns: minmax(12rem, .75fr) minmax(0, 1.8fr); align-items: center; gap: clamp(1rem, 5vw, 6rem); min-height: 0; margin: auto 0; }
.class-copy { padding-left: clamp(0rem, 2vw, 2rem); }
.class-counter, .class-kicker, .class-note { color: var(--accent); }
.class-counter { display: block; margin-bottom: 3rem; }
.class-kicker { margin: 0 0 1.1rem; }
.class-copy h3 { margin: 0; font-size: 5rem; font-weight: 500; letter-spacing: .08em; line-height: .95; }
.class-note { margin: 2rem 0 0; color: var(--muted); }
.class-visual-wrap { position: relative; }
.class-visual { position: relative; height: min(56svh, 30rem); overflow: hidden; border: 1px solid rgba(238, 244, 240, .42); background: #101b19; }
.class-visual::before { content: ""; position: absolute; inset: 1rem; z-index: 1; border: 1px solid rgba(238, 244, 240, .2); pointer-events: none; }
.class-visual img { width: 100%; height: 100%; object-fit: cover; display: block; animation: reveal .5s ease both; }
@keyframes reveal { from { opacity: .4; transform: scale(1.04); } to { opacity: 1; transform: scale(1); } }
.class-controls { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; margin-top: 1.2rem; }
.circle-button { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.circle-button:hover { border-color: var(--accent); color: var(--accent); }
.class-dots { display: flex; align-items: center; gap: .55rem; }
.class-dot { width: .45rem; height: .45rem; padding: 0; border: 1px solid var(--muted); border-radius: 50%; background: transparent; cursor: pointer; }
.class-dot.is-active { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 .25rem rgba(199, 164, 106, .12); }

.info-inner { display: flex; flex-direction: column; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 8vw, 9rem); min-height: 62vh; margin: auto 0; }
.info-intro { min-height: 20rem; padding: clamp(1.5rem, 4vw, 3.5rem); border-left: 1px solid rgba(238, 244, 240, .5); background: rgba(7, 12, 11, .4); }
.info-kicker { color: var(--accent); }
.info-brand-lockup { display: inline-flex; align-items: center; gap: .7rem; margin: 3rem 0 2rem; padding: .45rem .7rem .45rem .45rem; border: 1px solid rgba(199, 164, 106, .64); background: rgba(7, 9, 8, .78); }
.info-brand-mark { display: block; width: 62px; height: auto; }
.info-brand-wordmark { display: block; width: 190px; height: auto; }
.info-copy { margin: 0; color: var(--ink); font-size: 1.65rem; letter-spacing: .12em; line-height: 1.55; }
.info-description { max-width: 34rem; margin: 1.2rem 0 0; color: var(--muted); font-size: .88rem; line-height: 2; }
.product-facts { margin: 0; }
.product-facts div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.product-facts dt { color: var(--accent); }
.product-facts dd { min-height: 1.1rem; margin: 0; color: var(--ink); font-size: .9rem; letter-spacing: .08em; }
.site-footer { display: flex; align-items: center; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .62rem; letter-spacing: .18em; }
.footer-spacer { flex: 1; }
.footer-pending { width: 8rem; height: 1px; background: rgba(238, 244, 240, .14); }

.side-dots { position: fixed; top: 50%; right: .7rem; z-index: 10; display: grid; gap: 1rem; transform: translateY(-50%); }
.side-dot { width: .5rem; height: .5rem; padding: 0; border: 1px solid rgba(238, 244, 240, .62); border-radius: 50%; background: transparent; cursor: pointer; }
.side-dot.is-active { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 .3rem rgba(199, 164, 106, .12); }

.media-modal[hidden] { display: none; }
.media-modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 1.5rem; }
.media-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .86); }
.media-modal-panel { position: relative; width: min(100%, 1000px); border: 1px solid rgba(238, 244, 240, .42); background: #050908; }
.media-modal-panel video { display: block; width: 100%; max-height: 80vh; }
.media-close { position: absolute; top: .6rem; right: .7rem; z-index: 1; width: 2.4rem; height: 2.4rem; border: 1px solid rgba(238, 244, 240, .6); border-radius: 50%; background: rgba(5, 9, 8, .7); cursor: pointer; font-size: 1.3rem; line-height: 1; }

.news-modal[hidden] { display: none; }
.news-modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 1.5rem; }
.news-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .86); }
.news-modal-panel { position: relative; width: min(100%, 760px); max-height: min(82svh, 760px); overflow: auto; padding: clamp(1.5rem, 5vw, 3.5rem); border: 1px solid rgba(238, 244, 240, .42); background: #0a1110; }
.news-modal-meta { display: flex; flex-wrap: wrap; gap: 1rem; padding-right: 3rem; color: var(--accent); font-size: .66rem; font-weight: 700; letter-spacing: .13em; }
.news-modal-panel h2 { margin: 1.2rem 0 0; font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 500; letter-spacing: .06em; line-height: 1.55; }
.news-modal-cover { display: block; width: 100%; max-height: 320px; margin-top: 1.5rem; border: 1px solid var(--line); object-fit: cover; }
.news-modal-cover[hidden] { display: none; }
.news-modal-body { margin: 1.5rem 0 0; color: var(--muted); font-size: .88rem; letter-spacing: .03em; line-height: 2; white-space: pre-line; overflow-wrap: anywhere; }

@media (max-width: 899px) {
  html { scroll-snap-type: y proximity; }
  .site-header { grid-template-columns: 1fr auto; height: 62px; padding: 0 1.1rem; }
  .brand-space { width: 158px; height: 38px; gap: .28rem; padding: .16rem .35rem .16rem .2rem; }
  .brand-mark { width: 31px; height: 31px; }
  .brand-wordmark { width: 112px; }
  .top-nav { position: absolute; top: 62px; right: 1rem; display: grid; gap: .4rem; width: 9rem; padding: .9rem; border: 1px solid var(--line); background: rgba(7, 12, 11, .94); transform: translateY(-1rem); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
  .site-header.menu-open .top-nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-link { text-align: left; }
  .menu-toggle { display: block; }
  .screen { min-height: auto; }
  .hero-screen, .news-screen, .class-screen, .info-screen { min-height: 100svh; }
  .section-inner { width: min(100% - 2.2rem, var(--max)); min-height: 100svh; padding: 7rem 0 2rem; }
  .hero-content { width: min(94vw, 520px); padding-top: 2rem; }
  .logo-reserved { width: 94vw; height: clamp(7rem, 24vw, 9rem); }
  .hero-logo-lockup { gap: .55rem; padding: .65rem .75rem .65rem .6rem; }
  .hero-logo-mark { width: clamp(58px, 18vw, 86px); }
  .hero-logo-wordmark { width: clamp(170px, 54vw, 255px); }
  .hero-downloads { right: 1.1rem; bottom: 2rem; left: 1.1rem; justify-content: center; transform: none; }
  .store-button { min-width: 0; width: 9.4rem; padding: 0 .7rem; font-size: .64rem; }
  .scroll-cue { display: none; }
  .side-dots { display: none; }
  .news-board { min-height: 52vh; }
  .news-item { grid-template-columns: 1fr auto; gap: .6rem 1rem; padding: 1.15rem 0; }
  .news-copy { grid-column: 1 / -1; }
  .news-title { font-size: .92rem; }
  .news-summary { font-size: .76rem; }
  .news-modal { padding: .8rem; }
  .news-modal-panel { max-height: 88svh; padding: 1.4rem 1.1rem; }
  .class-stage, .info-grid { grid-template-columns: 1fr; min-height: 0; gap: 2rem; margin: auto 0 0; padding-top: 3rem; }
  .class-copy { padding-left: 0; }
  .class-visual { height: auto; aspect-ratio: 16 / 9; }
  .class-counter { margin-bottom: 1.5rem; }
  .section-heading h2 { font-size: 2rem; }
  .class-copy h3 { font-size: 3.2rem; }
  .class-note { margin-top: 1.2rem; }
  .class-controls { justify-content: center; }
  .info-grid { align-content: center; padding-top: 2rem; }
  .info-intro { min-height: 15rem; }
  .info-description { max-width: 100%; }
  .info-brand-lockup { margin: 2rem 0 1.3rem; gap: .45rem; padding: .3rem .5rem .3rem .3rem; }
  .info-brand-mark { width: 48px; }
  .info-brand-wordmark { width: 160px; }
  .product-facts div { grid-template-columns: 6.5rem 1fr; }
  .site-footer { margin-top: 2rem; }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .class-copy h3 { font-size: 4rem; }
}

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