@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("fonts/zen-kaku-gothic-new-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --plum: #22182a;
  --plum-deep: #140e18;
  --paper: #f3f0f4;
  --tint: #e9e4ec;
  --card: #ffffff;
  --muted: #4a4452;
  --line: #d9d2dd;
  --gold: #b89b63;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--plum);
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-weight: 500;
  font-synthesis: none;
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, strong, b, th, button {
  font-weight: 500;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.5;
  text-wrap: pretty;
}

p {
  margin: 0;
}

::selection {
  background: var(--plum);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 3px;
}

.hero :focus-visible,
.cta :focus-visible,
.bar :focus-visible {
  outline-color: var(--gold);
}

.wrap {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* hero */
.hero {
  background: linear-gradient(165deg, #2e2438 0%, var(--plum) 50%, var(--plum-deep) 100%);
  color: var(--paper);
  padding: calc(4.5rem + env(safe-area-inset-top)) 0 4rem;
}

.rule {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-size: 1.625rem;
  line-height: 1.55;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1rem;
  color: rgba(243, 240, 244, 0.86);
}

.hero .hero-note {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(184, 155, 99, 0.35);
  font-size: 0.9375rem;
  color: rgba(243, 240, 244, 0.72);
}

/* sections */
.section {
  padding: 4rem 0;
}

.section-tint {
  background: var(--tint);
}

.section h2 {
  font-size: 1.375rem;
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(184, 155, 99, 0.55);
}

.section p {
  font-size: 1rem;
  color: var(--muted);
}

/* video frame */
.screen {
  margin: 2rem auto 0;
  width: min(100%, 22rem, calc((100svh - 9rem) * 0.4625));
  min-width: min(100%, 15.5rem);
  padding: 0.5rem;
  background: var(--plum);
  border-radius: 1.75rem;
  box-shadow: 0 14px 30px rgba(34, 24, 42, 0.16);
}

@supports not (height: 100svh) {
  .screen {
    width: min(100%, 22rem, calc((100vh - 9rem) * 0.4625));
  }
}

.screen video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 780 / 1688;
  object-fit: contain;
  background: var(--plum-deep);
  border-radius: 1.3rem;
}

.screen video[width="540"] {
  aspect-ratio: 540 / 1168;
}

/* 再生ボタンを押しやすく（対応ブラウザのみ） */
.screen video::-webkit-media-controls-overlay-play-button {
  transform: scale(1.35);
}

/* panel */
.panel {
  margin-top: 2.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem 1.375rem;
}

.panel h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.75rem;
}

.points {
  list-style: none;
  margin: 0;
  padding: 0;
}

.points li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.125rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.points li:first-child {
  border-top: 0;
}

.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.65rem;
  width: 0.375rem;
  height: 1px;
  background: var(--gold);
}

/* why */
.why {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.why-item {
  background: var(--card);
  border-radius: 1rem;
  padding: 1.5rem 1.375rem;
  border: 1px solid var(--line);
}

.num {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.375rem;
}

.why-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.625rem;
}

/* roles */
.role {
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

.role:first-of-type {
  margin-top: 1.5rem;
  border-top: 0;
  padding-top: 1rem;
}

.role-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.role-head .num {
  margin: 0;
}

.role-head h3 {
  font-size: 1.25rem;
}

.role h4 {
  font-size: 0.875rem;
  color: var(--plum);
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}

.duration {
  margin-top: 0.75rem !important;
}

.duration strong {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--plum);
  padding: 0.125rem 0.75rem;
  border: 1px solid rgba(184, 155, 99, 0.6);
  border-radius: 999px;
}

/* notes */
.notes {
  padding: 2.5rem 0;
}

.notes p {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--muted);
}

.notes p + p {
  margin-top: 0.5rem;
}

/* cta */
.cta {
  background: linear-gradient(165deg, #2e2438 0%, var(--plum) 50%, var(--plum-deep) 100%);
  color: var(--paper);
  padding: 4.5rem 0 calc(5rem + env(safe-area-inset-bottom));
}

.eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.cta h2 {
  font-size: 1.375rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.cta p {
  color: rgba(243, 240, 244, 0.84);
}

.cta p + p {
  margin-top: 0.5rem;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--plum);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.2s ease;
}

.btn:active {
  opacity: 0.85;
}

.cta .btn {
  margin-top: 2.25rem;
}

.btn-note {
  margin-top: 0.75rem !important;
  text-align: center;
}

.btn-note small {
  font-size: 0.8125rem;
  color: rgba(243, 240, 244, 0.66);
}

/* fixed bar */
.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.625rem 1rem calc(0.625rem + env(safe-area-inset-bottom));
  background: rgba(34, 24, 42, 0.96);
  border-top: 1px solid rgba(184, 155, 99, 0.35);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
}

.bar.is-visible {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.3s ease, visibility 0s;
}

.btn-bar {
  max-width: 26rem;
  margin: 0 auto;
  min-height: 3rem;
  font-size: 0.9375rem;
}

/* reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .bar,
  .bar.is-visible,
  .btn {
    transition: none;
  }
}

/* PC: 中央の細いカラム */
@media (min-width: 768px) {
  .hero {
    padding: 6rem 0 5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 5.5rem 0;
  }

  .section h2,
  .cta h2 {
    font-size: 1.625rem;
  }

  .screen {
    width: min(100%, 22rem, calc((100vh - 6rem) * 0.4625));
  }
}
