@charset "UTF-8";

/* ===== ベース ===== */
:root {
  --bg: #0b0a1a;          /* 宇宙の夜空 */
  --bg2: #131228;         /* セクション背景 */
  --panel: #1c1a38;       /* カード背景 */
  --text: #f4f2ff;        /* 本文 */
  --muted: #b8b4d8;       /* 補足テキスト */
  --pink: #ff4fa3;
  --yellow: #ffd23f;
  --green: #57d16a;
  --blue: #3fa9ff;
  --purple: #b06bff;
  --line: rgba(255, 255, 255, 0.12);
  --radius: 22px;
  --maxw: 1000px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--yellow); }

/* 星空の背景（body全体に薄く敷く） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.5px 1.5px at 70% 60%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 85% 20%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.5px 1.5px at 55% 15%, rgba(255,255,255,.5), transparent),
    var(--bg);
  background-size: cover;
}

/* ===== 共通レイアウト ===== */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

section {
  padding-top: clamp(48px, 9vw, 88px);
  /* 下端は次セクションの曲線トッパー(約46px)が重なるため、その分を加算して上下の見た目余白を揃える */
  padding-bottom: calc(clamp(48px, 9vw, 88px) + 46px);
  position: relative;
}

/* ===== 曲線のセクション区切り ===== */
.topper {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 46px;
  transform: translateY(-98%);
  display: block;
  pointer-events: none;
  z-index: 1;
}
.topper path { fill: var(--topper, var(--bg)); }
.intro   { --topper: var(--bg2); }
.book    { --topper: var(--bg2); }
#movie   { --topper: var(--bg); }
.music   { --topper: var(--bg); }
#profile { --topper: var(--bg2); }
.site-footer { position: relative; --topper: #05040e; }

/* ===== スクロールで下からフェードイン ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
/* グループ内の2つ目以降を少し遅らせて連続感を出す */
.movies .movie:nth-child(2).reveal { transition-delay: .12s; }
.releases .release:nth-child(2).reveal { transition-delay: .12s; }
.profiles .profile:nth-child(2).reveal { transition-delay: .12s; }
.book-info.reveal { transition-delay: .1s; }
.intro .reveal:nth-of-type(2) { transition-delay: .08s; }
.intro .reveal:nth-of-type(3) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.section-head { text-align: center; margin-bottom: clamp(60px, 5vw, 44px); }

.section-head h2 {
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 800;
  margin: 0;
  letter-spacing: .06em;
}

.section-head .en {
  display: block;
  font-size: .82rem;
  letter-spacing: .3em;
  color: var(--yellow);
  margin-bottom: .4em;
  font-weight: 700;
}

/* カラフルな区切りドット */
.dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.dots span { width: 12px; height: 12px; border-radius: 50%; }
.dots span:nth-child(1){ background: var(--pink); }
.dots span:nth-child(2){ background: var(--yellow); }
.dots span:nth-child(3){ background: var(--green); }
.dots span:nth-child(4){ background: var(--blue); }
.dots span:nth-child(5){ background: var(--purple); }

/* ===== ヒーロー ===== */
.hero { position: relative; padding: 0; line-height: 0; background: #000; }
.hero picture { display: block; }
.hero img { width: 100%; }

/* PCはファーストビュー（画面高）に収める。宇宙背景の黒に馴染ませて上下を微トリミング */
@media (min-width: 768px) {
  .hero { height: 100vh; height: 100svh; }
  .hero picture { height: 100%; }
  .hero img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
}
.hero .scroll-cue {
  position: absolute;
  right: 22px;
  bottom: 16px;
  color: #fff;
  font-size: .72rem;
  letter-spacing: .25em;
  line-height: 1.4;
  text-align: center;
  opacity: .85;
  animation: floaty 1.8s ease-in-out infinite;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.hero .scroll-cue::after {
  content: "";
  display: block;
  width: 1px; height: 22px;
  margin: 6px auto 0;
  background: linear-gradient(#fff, transparent);
}
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(6px);} }

/* ===== イントロ ===== */
.intro { text-align: center; background: var(--bg2); }
.intro .lead {
  font-size: clamp(1.05rem, 3.4vw, 1.3rem);
  font-weight: 700;
  margin: 0 auto .8em;
  max-width: 40em;
}
.intro p { color: var(--muted); margin: 0 auto; max-width: 34em; font-size: .98rem; }

/* レスポンシブ改行制御: スマホは<br>無効 */
@media (max-width: 759px) { br.pc-br { display: none; } }

/* ===== MOVIE ===== */
/* 上下配置。朗読(メイン)は幅を確保し、ティザー(縦)は中央へ自然に配置 */
#movie .wrap { text-align: center; }
.movies { display: flex; flex-direction: column; gap: clamp(28px, 5vw, 48px); align-items: center; margin-bottom: clamp(28px, 5vw, 48px); }
.movie { width: 100%; }
.movie.landscape { max-width: 900px; margin-inline: auto; }
.movie figure { margin: 0; }
.movie video {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  background: #000;
  box-shadow: 0 12px 34px rgba(0,0,0,.5);
  border: 2px solid var(--line);
}
.movie.landscape { max-width: 900px; margin-inline: auto; }

/* YouTube埋め込み(レスポンシブ比率固定) */
.video-embed {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 34px rgba(0,0,0,.5);
  border: 2px solid var(--line);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.video-embed--landscape { aspect-ratio: 16 / 9; }
.video-embed--short { aspect-ratio: 9 / 16; }

.movie figcaption {
  margin-top: .9em;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

/* ティザー: YouTubeショート7本を横一列スクロール表示 */
.movie.shorts { max-width: 100%; }
.shorts-label {
  margin: .9em 0 0;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}
.shorts-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shorts-scroll::-webkit-scrollbar { height: 8px; }
.shorts-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.short { flex: 0 0 auto; width: 190px; scroll-snap-align: start; }
@media (min-width: 600px) { .short { width: 210px; } }
/* PC: スペシャルムービー(縦506px = 横900px×16:9)と縦サイズを揃える */
@media (min-width: 760px) { .short { width: 285px; } }

/* ===== 絵本商品情報 ===== */
.book { background: var(--bg2); }
.book-inner { display: grid; gap: clamp(28px, 5vw, 48px); align-items: center; }
@media (min-width: 760px) { .book-inner { grid-template-columns: 300px 1fr; } }
.book-cover img {
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
}
.book-info h3 {
  font-size: clamp(1.3rem, 4.5vw, 1.8rem);
  font-weight: 800;
  margin: 0 0 .2em;
  line-height: 1.5;
}
.book-info .sub { color: var(--yellow); font-weight: 700; margin: 0 0 1.2em; }
.book-info dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .5em 1.2em;
  margin: 0 0 1.6em;
  font-size: .98rem;
}
.book-info dt { color: var(--muted); font-weight: 700; white-space: nowrap; }
.book-info dd { margin: 0; color: var(--muted); }
.btn {
  display: inline-block;
  padding: .8em 2em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow), #ff9f1c);
  color: #2a1400;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: .04em;
  box-shadow: 0 8px 22px rgba(255,159,28,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,159,28,.5); }

/* ===== 音楽のご案内 ===== */
.music .wrap { text-align: center; }
.music-lead { margin-bottom: clamp(28px, 5vw, 48px); }
.music-lead .artist { font-size: clamp(1.2rem, 4vw, 1.5rem); font-weight: 800; margin: 0 0 .5em; line-height: 1.6; }
.music-lead .credit { color: var(--muted); font-size: .92rem; margin: 0; }
.releases { display: grid; row-gap: clamp(56px, 12vw, 64px); column-gap: clamp(36px, 5vw, 56px); }
.release { display: flex; flex-direction: column; align-items: center; gap: .8em; }
.release-cover { width: 100%; max-width: 320px; margin-bottom: 1em; }
.release-info { width: 100%; max-width: 320px; }
.release-cover img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
}
.release-info h3 { font-size: clamp(1.2rem, 4vw, 1.5rem); font-weight: 800; margin: 0 0 .2em; line-height: 1.5; color: var(--pink); }
.release-info .date { color: var(--muted); font-size: .98rem; margin: 0 0 1.2em; }
/* 視聴するボタン(release-info直下のみ対象。子孫セレクタだとCDの.btn-shopまで巻き込むため子コンビネータで限定) */
.release-info > .btn { display: block; width: 100%; max-width: 320px; margin: 0 auto; text-align: center; }
/* PC: 絵本のご案内と同じ画像サイズ・上揃えの2カラムレイアウト */
@media (min-width: 760px) {
  .release {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: clamp(28px, 5vw, 48px);
    align-items: start;
    text-align: left;
  }
  .release-cover { grid-column: 1; grid-row: 1; margin-bottom: 0; max-width: none; }
  .release-info { grid-column: 2; grid-row: 1; max-width: none; }
  /* CDの店舗ボタン1個分(shop-listの2列グリッドの1列)と同じ幅に揃える。ボタン自体は左寄せ配置・テキストはセンタリング */
  .release-info > .btn { max-width: none; width: calc((100% - 10px) / 2); margin: 0; text-align: center; }
}
.btn-disabled {
  background: #3a3760;
  color: var(--muted);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

/* CD商品情報(品番・形態): 1行表示、項目間は"/"区切り */
/* 直前の.dateは品番・形態と隣接するため下マージンを詰める(配信の.dateは対象外) */
.release-info .date:has(+ .release-meta) { margin-bottom: 0; }
.release-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: .4em;
  margin: 0 0 1.6em;
  font-size: .98rem;
  white-space: nowrap;
}
@media (min-width: 760px) {
  .release-meta { justify-content: flex-start; }
}
.release-meta dt { color: var(--muted); font-weight: 700; }
.release-meta dd { margin: 0; color: var(--muted); }
.release-meta dt:nth-of-type(2)::before { content: "/ "; color: var(--muted); font-weight: 400; }

.btn-shop {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2em;
  padding: .6em 1.2em;
  font-size: .95rem;
  text-align: center;
  white-space: nowrap;
}

/* 購入先・特典: 店舗ごとのタイル。特典は常時表示、購入ボタンはタイル下端に揃える */
.purchase { margin-top: clamp(56px, 12vw, 80px); }
.purchase > h4 { margin: 0 0 1.4em; font-size: clamp(1.2rem, 4vw, 1.5rem); font-weight: 800; line-height: 1.5; color: var(--pink); }
.tiles {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 360px;
}
@media (min-width: 760px) {
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: none; }
}
.tile {
  display: flex;
  flex-direction: column;
  gap: .9em;
  padding: 0 0 18px;
  overflow: hidden;
  background: var(--panel);
  border: 2px solid var(--yellow);
  border-radius: var(--radius);
  text-align: center;
}
/* 店舗名は色帯にして、購入先ごとの囲みを明確にする。帯以外の要素は左右に余白を取る */
.tile > :not(h4) { margin-inline: 18px; }
.tile h4 {
  margin: 0;
  padding: .7em 1em;
  background: linear-gradient(90deg, var(--yellow), #ff9f1c);
  color: #2a1400;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.5;
}
.tile-thumb { margin: 0; height: 190px; display: flex; align-items: center; justify-content: center; }
.tile-thumb picture { display: contents; }
.tile-thumb .thumb-open {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  cursor: zoom-in;
}
/* 特典画像モーダル: モーダル幅内の最大幅で表示 */
/* モーダル表示中は背面のスクロールを固定 */
body:has(dialog[open]) { overflow: hidden; }
.image-dialog {
  width: min(92vw, 640px);
  max-height: 92vh;
  margin: auto;
  padding: 20px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow-y: auto;
}
.image-dialog::backdrop { background: rgba(5, 4, 16, .78); }
.image-title { margin: 0 0 .8em; font-size: 1.1rem; font-weight: 800; line-height: 1.5; text-align: center; color: var(--pink); }
.image-body { padding: 14px; border-radius: 10px; background: #fff; }
.image-body picture { display: block; }
.image-body img { display: block; width: 100%; height: auto; }
.image-close {
  position: absolute;
  top: 4px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.tile-thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.tile-bonus { margin: 0; font-size: .95rem; font-weight: 700; line-height: 1.6; }
.tile-bonus .nowrap { white-space: nowrap; }
.tile-bonus-none { color: var(--muted); font-weight: 400; }
.tile-bonus-solo { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; font-size: 1.15rem; }
.tile-bonus-solo.tile-bonus-none { font-size: 1rem; }
.tile-bonus-solo .tile-label { margin-bottom: .5em; }
.tile-label {
  display: block;
  width: fit-content;
  margin: 0 auto .3em;
  padding: .05em .8em;
  border-radius: 999px;
  background: var(--pink);
  color: #2a1400;
  font-size: .78rem;
  font-weight: 800;
}
.tile .btn-shop { margin-top: auto; gap: .5em; }
.btn-shop .icon { flex: 0 0 auto; width: 1.2em; height: 1.2em; }
.tiles-note { margin: 1.2em 0 0; color: var(--muted); font-size: .85rem; }

/* 応援店舗リスト(折りたたみ) */
.support-shops { max-width: 720px; margin: 1.6em auto 0; text-align: center; }
.support-shops summary { cursor: pointer; font-weight: 800; padding: .4em 0; }
.support-list { list-style: none; margin: .6em 0 0; padding: 0; line-height: 1.9; font-size: .9rem; color: var(--muted); }
@media (min-width: 760px) {
  .support-list { columns: 2; column-gap: 24px; text-align: left; }
}

/* ティザー新着バッジ */
.short-new { position: relative; }
.short-new::before {
  content: "NEW";
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: .1em .7em;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .06em;
  pointer-events: none;
}

/* ===== プロフィール ===== */
#profile { background: var(--bg2); }
.profiles { display: grid; gap: clamp(60px, 5vw, 36px); }
/* PCは対角配置: 木梨=左上 / ソックス=右下 で空間を広く使う。スマホは上下スタック */
@media (min-width: 760px) {
  /* 木梨・ソックスは同じ縦位置。見出し下に余白を確保するため全体を少し下げる */
  .profiles { grid-template-columns: 1fr 1fr; align-items: start; margin-top: clamp(28px, 5vw, 72px); }
  .profile { max-width: 400px; width: 100%; }
  .profile.kinashi { justify-self: start; }
  .profile.socks { justify-self: end; }
}
.profile {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
/* アクセントカラー: 木梨=ピンク / SOCKS=イエロー */
.profile.kinashi { --accent: var(--pink); }
.profile.socks   { --accent: var(--yellow); }
/* 人物写真は円クリップ＋2px枠 */
.profile .ph {
  width: clamp(200px, 62%, 280px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid var(--accent);
  background: #0006;
}
.profile .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.profile.kinashi .ph img { object-position: center 0%; }
.profile.socks   .ph img { object-position: center 40%; }
.profile h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.profile h3 .ruby { font-size: .7rem; color: var(--muted); font-weight: 700; letter-spacing: .1em; }
/* 名前下の罫線: 2px角丸・アクセントカラー */
.profile h3::after {
  content: "";
  width: 56px;
  height: 4px;
  border-radius: 999px;
  margin-top: 8px;
  background: var(--accent);
}
.profile p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.95; }

/* ===== フッター ===== */
.site-footer {
  background: #05040e;
  text-align: center;
  padding-block: 40px;
}
.site-footer .footer-logos { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.site-footer .logo { display: inline-flex; align-items: center; }
.site-footer .logo-ms img { height: 30px; width: auto; }
.site-footer .logo-dtm img { height: 34px; width: auto; }
.site-footer small { display: block; margin-top: 20px; color: #6b6790; font-size: .78rem; letter-spacing: .08em; }

/* ===== アクセシビリティ ===== */
a:focus-visible, .btn:focus-visible, video:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .scroll-cue { animation: none; }
}
