/* ===== 調整用の変数（色・幅など）。見た目を変えたいときはここだけ触ればOK ===== */
:root {
  --nav-bg: #2e1e3e;
  --nav-h: 48px;
  --accent: #e8468c;        /* タイトルのピンク */
  --link: #c2178a;          /* 文中リンク */
  --text: #2b2b2b;
  --box-bg: #ebebeb;
  --pill-bg: #262626;
  --col-w: 560px;           /* 文章カラムの幅 */
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--serif); color: var(--text); background: #fff; font-size: 14px; line-height: 1.9; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
.sans { font-family: var(--sans); }

/* 画像未設置のとき：枠だけ出す */
img.is-missing { background: repeating-linear-gradient(45deg, #f1f1f1, #f1f1f1 8px, #e8e8e8 8px, #e8e8e8 16px); min-height: 120px; color: transparent; }

/* ===== ナビ ===== */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); background: var(--nav-bg); color: #fff; z-index: 100; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.nav-links { display: flex; gap: 22px; font-size: 13px; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { opacity: .7; }
.nav-title { position: absolute; right: 18px; font-size: 16px; letter-spacing: .05em; text-decoration: none; }
.nav-toggle { display: none; position: absolute; right: 10px; width: 40px; height: 40px; background: none; border: 0; color: #fff; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; margin: auto; }
.l-sp { display: none; }

/* ===== ヒーロー ===== */
.hero { position: relative; min-height: 700px; padding: calc(var(--nav-h) + 60px) 20px 64px; background: linear-gradient(120deg, #2a1a38, #b0156f 60%, #3a1f4d); color: #fff; overflow: hidden; display: flex; justify-content: center; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; }
.hero-bg.is-missing { background: none; min-height: 0; }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 540px; text-align: center; }
.hero-title { font-size: 56px; line-height: 1.3; font-weight: 500; color: var(--accent); letter-spacing: .05em; }
.hero-sub { margin-top: 4px; font-size: 16px; line-height: 1.6; letter-spacing: .1em; }
.hero-author { margin-top: 24px; font-size: 16px; letter-spacing: .1em; }
.hero-ornament { margin: 8px auto 0; max-width: 360px; }
.hero-ornament-line { display: none; height: 1px; width: 70%; margin: 28px auto 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent); }
.hero-body { margin-top: 124px; text-align: left; font-size: 18px; line-height: 1.6; letter-spacing: .1em; }

.fx-blur-in .hero-inner { animation: blurIn 1.4s ease both; }
@keyframes blurIn { from { opacity: 0; filter: blur(10px); } to { opacity: 1; filter: blur(0); } }
@media (prefers-reduced-motion: reduce) { .fx-blur-in .hero-inner { animation: none; } html { scroll-behavior: auto; } }

/* ===== 共通セクション ===== */
.section { padding: 28px 20px; display: flex; flex-direction: column; align-items: center; }
.col { width: 100%; max-width: var(--col-w); }
.prose { font-size: 14px; line-height: 1.9; }
.prose.center { text-align: center; }
.text-link { color: var(--link); text-decoration: underline; }
.section-title { font-size: 26px; font-weight: 600; letter-spacing: .18em; text-align: center; }
.section-note { text-align: center; font-size: 13px; line-height: 1.8; margin-top: 8px; }

.box { width: 100%; max-width: 720px; margin: 28px 0; padding: 24px 32px; background: var(--box-bg); border-radius: 28px; }
.box-title { text-align: center; font-size: 17px; font-weight: 700; margin-bottom: 8px; }

.buttons { display: flex; flex-direction: column; gap: 14px; width: 100%; align-items: center; margin-top: 22px; }
.pill { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 500px; height: 50px; border-radius: 25px; background: var(--pill-bg); color: #fff; text-decoration: none; font-family: var(--sans); font-weight: 700; font-size: 14px; transition: opacity .2s; }
.pill:hover { opacity: .8; }
.pill svg { width: 20px; height: 20px; fill: currentColor; }

/* ===== 最新情報 ===== */
.news { padding-top: 60px; }
.box-news { max-width: 560px; padding: 20px 24px; }
.box-news .box-title { font-family: var(--serif); font-size: 22px; }
.news-scroll { max-height: 250px; overflow-y: auto; padding-right: 8px; }
.news-item { margin-bottom: 14px; }
.news-text { padding-left: 0; }

/* ===== 自作曲 ===== */
.music { padding-top: 90px; gap: 56px; }
.music-item { display: flex; gap: 32px; align-items: center; width: 100%; max-width: 820px; }
.music-media { flex: 0 0 min(46%, 380px); }
.music-img { width: 100%; height: auto; }
.music-text { flex: 1; }
.music-title { font-size: 24px; line-height: 1.5; font-weight: 700; margin-bottom: 8px; }
.music-text .prose { font-size: 13px; }

.embed { position: relative; width: 100%; max-width: 480px; aspect-ratio: 16 / 9; margin: 22px auto 0; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.music-media .embed { margin-top: 0; }

/* ===== 用語解説 ===== */
.glossary { padding-top: 120px; padding-bottom: 80px; }
.glossary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 60px; width: 100%; max-width: 860px; margin-top: 48px; }
.glossary-item { display: flex; gap: 14px; align-items: flex-start; }
.gi-icon svg { width: 30px; height: 30px; fill: var(--text); }
.glossary-item h3 { font-size: 18px; font-weight: 700; line-height: 1.5; }
.glossary-item p { font-size: 12.5px; line-height: 1.7; margin-top: 6px; }

/* ===== キャラクター ===== */
.characters { padding: 0 0 60px; background: #fff; }
.characters-head { width: 100%; background: var(--box-bg); padding: 70px 20px 40px; display: flex; flex-direction: column; align-items: center; }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 200px)); gap: 16px; justify-content: center; margin-top: 28px; }
.chips li:first-child { grid-column: 1 / -1; justify-self: center; width: 200px; }
.chips a { display: block; text-decoration: none; text-align: center; }
.chip-img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
.chip-label { display: block; margin-top: 6px; font-weight: 700; font-size: 14px; }

.character { display: flex; flex-direction: column; align-items: center; padding: 160px 20px 0; }
.char-name { font-size: 26px; font-weight: 700; }
.char-sub { margin-top: 10px; font-size: 14px; }
.char-img { width: 100%; max-width: 360px; height: auto; margin: 22px auto 26px; }
.char-link { margin-top: 26px; text-align: center; }

/* ===== コンタクト・フッター ===== */
.contact { padding: 200px 20px 160px; }
.footer { text-align: center; font-size: 12px; padding: 0 20px 24px; }

/* ===== タブレット（〜1024px） ===== */
@media (max-width: 1024px) {
  .nav { justify-content: flex-start; padding-left: 18px; }
  /* メニュー：右側に出る小さなパネル（文字は右寄せ） */
  .nav-links { position: absolute; top: var(--nav-h); right: 0; left: auto; width: max-content; min-width: 41vw; flex-direction: column; align-items: flex-end; text-align: right; gap: 0; background: var(--nav-bg); display: none; padding: 6px 0 4px; }
  .nav.open .nav-links { display: flex; }
  .nav-links a { display: block; padding: 9px 12px 9px 48px; font-size: 18px; letter-spacing: .08em; font-weight: 500; line-height: 1.4; }
  .l-pc { display: none; }
  .l-sp { display: inline; }
  .nav-title { position: static; }
  .nav-toggle { display: flex; }
  :root { --nav-h: 44px; }
  .nav { padding-left: 34px; }
  .nav-toggle { right: 12px; }
  .nav-toggle svg { width: 24px; height: 24px; }
  .glossary-grid { gap: 32px 36px; }
}

/* ===== スマホ（〜640px） ===== */
@media (max-width: 640px) {
  body { font-size: 13.5px; }
  .nav { padding-left: 26px; }
  .hero { min-height: auto; padding-left: 14vw; padding-right: 14vw; padding-bottom: 64px; }
  .box { padding: 20px 18px; border-radius: 22px; }
  .music { gap: 44px; padding-top: 64px; }
  .music-item { flex-direction: column; gap: 18px; }
  .music-media { flex: none; width: 100%; max-width: 380px; }
  .music-title { font-size: 20px; text-align: center; }
  .glossary { padding-top: 80px; }
  .glossary-grid { grid-template-columns: 1fr; gap: 28px; }
  .character { padding-top: 110px; }
  .contact { padding: 140px 20px 110px; }
}

/* ===== 小さいスマホ（〜420px） ===== */
@media (max-width: 420px) {
  .hero { padding-left: 10vw; padding-right: 10vw; }
  .hero-title { font-size: 46px; }
  .hero-sub, .hero-author { font-size: 14px; }
  .hero-body { margin-top: 96px; font-size: 16px; }
}
