/* Mieru 公式サイト
   夜の街（MV の世界）に合わせた深いプラムの地に、イメージカラーのピンク（#f06292）と淡いピンク。
   SONATA の紅音かえで（rose pink）と並んで見えないよう、主はピンクブラウン＋淡いピンク（bible 3章）。 */

:root {
  --bg: #170f16;
  --bg-2: #22161f;
  --surface: #2a1b26;
  --ink: #fbeef3;
  --muted: #c9adbb;
  --line: #3d2a37;
  --pink: #f06292;
  --pink-pale: #f8bbd0;
  --brown: #b07a72;
  --radius: 18px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.9;
  font-feature-settings: "palt" 1; overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-pale); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.45; letter-spacing: .03em; margin: 0 0 .6em; }
h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p, ul { margin: 0 0 1em; }
.muted { color: var(--muted); }
.note { font-size: .88rem; color: var(--muted); }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 6px 12px; z-index: 10; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(23, 15, 22, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; }
.logo { font-weight: 800; font-size: 1.35rem; letter-spacing: .04em; color: var(--ink); text-decoration: none; margin: 0; }
.logo span { font-size: .9em; margin-left: 2px; }
.logo-sm { font-size: 1.15rem; }
.nav { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--pink-pale); }
@media (max-width: 760px) {
  .header-inner { flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding-top: 8px; }
  .nav { gap: 18px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 8px; white-space: nowrap; font-size: .88rem; }
  .nav::-webkit-scrollbar { display: none; }
  .nav li:first-child { display: none; }
}

/* hero */
.hero { position: relative; min-height: min(86vh, 720px); display: flex; align-items: flex-end; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 35%; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,15,22,0) 35%, rgba(23,15,22,.75) 72%, var(--bg) 100%),
              linear-gradient(90deg, rgba(23,15,22,.55) 0%, rgba(23,15,22,0) 55%); }
.hero-text { position: relative; z-index: 1; padding-bottom: 48px; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 5rem); letter-spacing: .06em; margin: 0; line-height: 1.1; }
.hero .reading { color: var(--pink-pale); font-weight: 700; letter-spacing: .2em; margin: .3em 0 1em; font-size: .95rem; }
.hero .catch { font-size: clamp(1.25rem, 3.6vw, 1.8rem); font-weight: 800; margin: 0 0 .4em; }
.hero .catch em { font-style: normal; color: var(--pink); }

/* buttons */
.btn { display: inline-block; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--pink); color: var(--pink-pale);
  text-decoration: none; font-weight: 700; font-size: .95rem; }
.btn:hover { background: rgba(240, 98, 146, .12); }
.btn-solid { background: var(--pink); color: #fff; }
.btn-solid:hover { background: var(--pink); filter: brightness(1.08); }
.btn-off { border-color: var(--line); color: var(--muted); cursor: default; }
.btn-off:hover { background: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }

/* sections */
section { padding: 56px 0 8px; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .18em; color: var(--pink); text-transform: uppercase; margin-bottom: .3em; }
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(2rem, 6vw, 3rem); }
.lead { font-size: 1.05rem; color: var(--muted); }

.split { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; gap: 44px; } .split.rev > :first-child { order: 2; } }
.photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.photo img { width: 100%; }

.quote { font-size: 1.15rem; font-weight: 700; border-left: 3px solid var(--pink); padding: 4px 0 4px 16px; margin: 1em 0 1.2em; }
.quote.ura { border-left-color: var(--brown); color: var(--muted); font-size: 1.02rem; }

/* release card */
.release { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 1fr; }
@media (min-width: 760px) { .release { grid-template-columns: 1.2fr 1fr; } }
.release img { width: 100%; height: 100%; object-fit: cover; }
.release-body { padding: 22px 24px 26px; }
.release h3 { font-size: 1.4rem; margin-bottom: .2em; }
.tag { display: inline-block; font-size: .76rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: rgba(240, 98, 146, .16); color: var(--pink-pale); margin-bottom: 8px; }

table.spec { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .96rem; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec th { width: 8em; color: var(--muted); font-weight: 600; padding-right: 12px; }

.cards3 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards3 { grid-template-columns: repeat(3, 1fr); } }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.mini h3 { margin: 0 0 .3em; color: var(--pink-pale); font-size: 1rem; }
.mini p { margin: 0; color: var(--muted); font-size: .95rem; }

.ai-note { background: var(--bg-2); border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px 20px; font-size: .92rem; color: var(--muted); }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 32px 0 20px; font-size: .9rem; background: var(--bg-2); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer-inner > div { max-width: 460px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--pink-pale); }
.copy { color: var(--muted); font-size: .8rem; margin: 20px 0 0; }
.copy a { color: var(--muted); }

/* section head */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.more { color: var(--pink-pale); text-decoration: none; font-weight: 700; font-size: .92rem; white-space: nowrap; margin-bottom: 1.2em; }

/* news */
.news-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.news-item { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; padding: 10px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.news-item:hover { border-color: var(--pink); }
.news-item img, .news-noimg { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.news-noimg { display: grid; place-items: center; background: var(--bg-2); }
.news-text { display: block; min-width: 0; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); margin: 0 0 2px; }
.news-meta .tag { margin: 0; }
.news-title { display: block; font-weight: 700; line-height: 1.6; }
@media (max-width: 480px) { .news-item { grid-template-columns: 88px 1fr; gap: 12px; } .news-item img, .news-noimg { width: 88px; } }
.article { padding-top: 48px; }
.article h1 { font-size: clamp(1.5rem, 4.4vw, 2.1rem); margin-top: .4em; }
.article-photo { margin: 8px 0 24px; }
.back { margin-top: 40px; }

/* releases */
.releases { display: grid; gap: 28px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.noimg { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--bg-2); font-size: 2.4rem; }

/* gallery */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery li { position: relative; }
.gallery a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery .cap { position: absolute; left: 10px; bottom: 8px; font-size: .72rem; color: var(--ink); background: rgba(23,15,22,.7); padding: 0 8px; border-radius: 999px; }
.gallery-peek { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) { .gallery-peek { grid-template-columns: 1fr 1fr; } .gallery-peek li:nth-child(3) { display: none; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 6, 9, .9); }
.lightbox img { max-width: 96vw; max-height: 88vh; width: auto; border-radius: 12px; }
.lb-close { position: fixed; top: 12px; right: 16px; background: none; border: 0; color: var(--ink); font-size: 2rem; cursor: pointer; }

/* Q&A */
.qa { display: grid; gap: 10px; }
.qa details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; }
.qa summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; position: relative; padding-right: 28px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "Q"; color: var(--pink); font-weight: 800; margin-right: 10px; }
.qa summary::after { content: "+"; position: absolute; right: 0; color: var(--pink-pale); font-size: 1.2rem; }
.qa details[open] summary::after { content: "−"; }
.qa details > div { padding: 0 0 6px; color: var(--muted); }
.qa details > div strong { color: var(--ink); }

/* text pages */
.prose h2 { font-size: 1.25rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .3em; }

.footer-sns { list-style: none; padding: 0; margin: 0; display: flex; gap: 14px; }
.footer-sns:empty { display: none; }
.footer-sns a { color: var(--pink-pale); font-weight: 700; text-decoration: none; }

/* chips（種類の絞り込み） */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; }
.chip { font: inherit; font-size: .85rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; cursor: pointer;
  background: none; border: 1px solid var(--line); color: var(--muted); }
.chip.is-active, .chip:hover { border-color: var(--pink); color: var(--pink-pale); background: rgba(240, 98, 146, .12); }
.btn-sm { padding: 5px 14px; font-size: .85rem; }

/* schedule */
.sch-heading { font-size: 1.2rem; margin: 36px 0 14px; }
.sch-list { display: grid; gap: 12px; }
.sch { display: grid; grid-template-columns: 88px 1fr; gap: 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; scroll-margin-top: 90px; }
.sch:target { border-color: var(--pink); }
.sch-past .sch { opacity: .7; }
.sch-date { margin: 0; text-align: center; line-height: 1.2; border-right: 1px solid var(--line); padding-right: 14px; }
.sch-y { display: block; font-size: .72rem; color: var(--muted); }
.sch-md { display: block; white-space: nowrap; font-size: 1.4rem; font-weight: 800; color: var(--pink-pale); }
.sch-wd { display: block; font-size: .78rem; color: var(--muted); }
.sch-meta { display: flex; align-items: center; gap: 10px; margin: 0; }
.sch-meta .tag { margin: 0; }
.sch-count { font-size: .82rem; font-weight: 800; color: var(--pink); }
.sch-count.is-today { background: var(--pink); color: #fff; padding: 0 8px; border-radius: 999px; }
.sch-title { font-size: 1.08rem; margin: 6px 0 2px; }
.sch-when { margin: 0; font-size: .88rem; color: var(--muted); }
.sch-summary { margin: 6px 0 0; font-size: .92rem; color: var(--muted); }
.sch-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 0; font-size: .88rem; font-weight: 700; }
.sch-birthday .sch-md { color: var(--pink); }
@media (max-width: 480px) { .sch { grid-template-columns: 70px 1fr; gap: 12px; padding: 14px; } .sch-md { font-size: 1.1rem; } .sch-date { padding-right: 10px; } }

.cal { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cal-month { padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 16px; }
.cal-title { font-weight: 800; margin: 0 0 8px; color: var(--pink-pale); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: .82rem; }
.cal-wd { color: var(--muted); font-size: .72rem; }
.cal-day { position: relative; min-height: 34px; padding-top: 2px; border-radius: 8px; color: var(--muted); }
.cal-day.has-ev { background: rgba(240, 98, 146, .14); color: var(--ink); font-weight: 700; }
.cal-day.is-today .cal-n { display: inline-block; min-width: 22px; border-radius: 999px; background: var(--pink); color: #fff; }
.cal-ev { display: block; position: absolute; inset: 0; text-decoration: none; font-size: .7rem; padding-top: 16px; }
.cal-ev:empty::after { content: ""; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); margin: 4px auto 0; }
.subscribe { margin-top: 40px; background: var(--bg-2); border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px 20px; color: var(--muted); font-size: .92rem; }
.subscribe p { margin: 0; }

/* video */
.vgrid { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 22px 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.v-link { position: relative; display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.v-link img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.v-short .v-link img { aspect-ratio: 16 / 9; object-fit: contain; }
.v-play { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(240, 98, 146, .9); color: #fff; font-size: 1.1rem; }
.v .news-meta { margin-top: 10px; }
.v-title { font-size: 1rem; margin: 2px 0; }
.v-song { font-size: .85rem; }

/* lyrics */
.lyrics { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.lyrics summary { cursor: pointer; font-weight: 700; color: var(--pink-pale); }
.lyrics div { margin-top: 12px; color: var(--muted); font-size: .94rem; }
