/* ページ外枠と9セクションの配置を担当するレイアウトCSS。
   横並び・等幅カードに必要な箇所だけgrid/flexを使用する。 */
.page-shell {
  /* サイト全体の整列軸を保つ唯一の外枠。削除すると1440pxで各章の左端が揃わない。 */
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 32px;
}

.page-shell.reading-shell {
  padding-inline: clamp(72px, 11vw, 156px);
}

.page-shell .reading-shell {
  padding-inline: clamp(40px, 8vw, 124px);
}

.site-header {
  position: fixed;
  z-index: 40;
  inset: 0 0 auto;
  border-bottom: 1px solid rgba(223, 228, 241, .78);
  background: rgba(255, 255, 255, .94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 16px;
}

.hero,
.fullbleed-section {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.hero {
  padding-block: clamp(150px, 17vw, 240px) clamp(72px, 8vw, 112px);
  color: var(--color-surface);
}

.hero-media,
.fullbleed-media {
  position: absolute;
  z-index: -3;
  inset: 0;
}

.hero-media img,
.fullbleed-media img {
  /* フルブリード画像を表示領域へ収める内在サイズ制御。 */
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-inner {
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  margin-top: 22px;
}

.hero-copy h1 span {
  display: block;
}

.hero-lead {
  margin-top: 28px;
  line-height: 2;
}

.hero-copy .button {
  margin-top: 34px;
}

.hero-signature {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 70px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .52);
}

.section.story-section {
  padding-block: clamp(128px, 16vw, 220px);
  background: var(--color-surface);
}

.story-inner {
  position: relative;
}

.story-chapter {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(54px, 8vw, 86px);
  color: var(--color-purple);
}

.story-chapter::after {
  flex: 1;
  border-top: 1px solid var(--color-line);
  content: "";
}

.story-chapter p {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.5;
}

.story-window {
  position: relative;
  margin-block: clamp(56px, 8vw, 92px);
  padding: clamp(6px, 1vw, 12px);
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
}

.story-window picture,
.story-window img {
  display: block;
}

.story-window img {
  /* 額装画像を窓いっぱいに表示する内在サイズ制御。 */
  width: 100%;
  height: auto;
}

.story-copy p {
  line-height: 2.05;
}

.story-copy p + p {
  margin-top: 28px;
}

.section {
  position: relative;
  padding-block: var(--section-space);
  border-top: 1px solid var(--color-line);
}

.section-white {
  background: var(--color-surface);
}

.section-muted {
  background: var(--color-base);
}

.section-band {
  isolation: isolate;
  border-top: 0;
}

.section-band::before {
  position: absolute;
  z-index: -1;
  inset-block: 0;
  right: 50%;
  left: 50%;
  margin-inline: -50vw;
  border-top: 1px solid var(--color-line);
  background: inherit;
  content: "";
}

.section-heading {
  margin-bottom: 52px;
}

.section-heading h2,
.fan-panel h2,
.penlight-copy h2 {
  margin-top: 12px;
}

.about-grid {
  display: grid;
  grid-template-columns: .9fr .62fr 1.05fr;
  gap: 32px;
  align-items: start;
}

.about-story p {
  font-size: 18px;
  line-height: 2.05;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 72px;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.section-note {
  margin-top: 30px;
}

.songs-section {
  overflow: clip;
}

.songs-inner {
  padding-top: 82px;
}

.songs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.section-action {
  margin-top: 46px;
  text-align: center;
}

.penlight-section {
  isolation: isolate;
  overflow: clip;
  background: radial-gradient(ellipse at 4% 100%, rgba(127, 216, 240, .2), transparent 38%), radial-gradient(ellipse at 96% 92%, rgba(177, 140, 255, .22), transparent 40%), linear-gradient(148deg, #11172e 0%, #252b49 48%, #0d1329 100%);
  color: var(--color-surface);
}

.penlight-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .95fr .58fr .87fr;
  gap: 30px;
  align-items: center;
}

.penlight-copy > p:last-child {
  margin-top: 28px;
  color: rgba(255, 255, 255, .74);
  line-height: 2.05;
}

.penlight-character {
  z-index: 3;
  align-self: end;
  margin-right: -28px;
}

.penlight-console {
  position: relative;
  z-index: 2;
  isolation: isolate;
  overflow: hidden;
  padding: 38px;
  border: 0;
  background: var(--color-night);
  color: var(--color-surface);
  text-align: center;
}

.penlight-total {
  margin-top: 20px;
}

.penlight-button {
  margin-top: 28px;
}

.penlight-status {
  margin-top: 16px;
}

.snow-bunny {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: -88px;
  color: var(--color-purple);
  text-align: center;
}

.fan-panel {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(30px, 5vw, 58px);
  align-items: end;
  padding: clamp(38px, 6vw, 72px);
}

.fan-guideline {
  margin-top: 30px;
  font-size: 18px;
  line-height: 2.05;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.demo-note {
  margin-top: 22px;
  text-align: center;
}

.outro-section {
  padding-block: clamp(130px, 18vw, 250px);
  color: var(--color-surface);
}

/* 白の章から夜のステージへ境目なく溶かす(2026-08-04 AOさん指示: border撤去+グラデ強化)。 */
.outro-section::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  padding-bottom: clamp(220px, 32vw, 420px);
  background: linear-gradient(to bottom, var(--color-surface) 0%, rgba(255, 255, 255, .82) 30%, rgba(255, 255, 255, .5) 58%, rgba(255, 255, 255, .22) 80%, rgba(255, 255, 255, 0) 100%);
  content: "";
  pointer-events: none;
}

.outro-inner {
  position: relative;
  z-index: 4;
  padding-right: clamp(300px, 35vw, 470px);
  text-align: left;
}

.outro-inner h2 {
  margin-top: 18px;
}

.outro-inner > p:not(.eyebrow) {
  margin-top: 24px;
}

.outro-inner .button {
  margin-top: 34px;
}

.outro-character {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 5vw, 82px);
  bottom: 0;
  pointer-events: none;
}

.site-footer {
  border-top: 1px solid var(--color-line);
  background: var(--color-base);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 30px;
}
