/* Himemiya Millefie official site — shared styles.
   Gorgeous but readable: ornaments live in headers/dividers/frames, content sits on calm cream cards. */
:root {
  --pink: #f9c9d9;
  --pink-soft: #fdeef3;
  --ribbon: #f48fb1;
  --rose: #d9577f;          /* darker than #E86A92 so white text on it passes contrast */
  --lavender: #d9cceb;
  --lavender-deep: #b9a6d6;
  --plum: #6e5a7e;
  --ink: #4a3d57;
  --ink-soft: #6b5d78;
  --cream: #fff8f5;
  --gold: #c9a46a;
  --gold-soft: #e8d3ad;
  --night: #24203f;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(110, 90, 126, .14);
  --font-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --font-en: "Cormorant Garamond", "Times New Roman", serif;
  --font-script: "Great Vibes", "Snell Roundhand", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, #fbdbe6 0%, var(--pink) 100%);
  box-shadow: 0 2px 12px rgba(110, 90, 126, .12);
}
.site-header::after {               /* lace trim hanging under the bar */
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px;
  background: url(../assets/img/lace.webp) center top / auto 22px repeat-x;
  pointer-events: none;
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--plum); }
.logo-script { font-family: var(--font-script); font-size: 34px; line-height: 1; white-space: nowrap; }
.logo img { width: 34px; margin-top: -14px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-family: var(--font-en); font-weight: 700; font-size: 17px; letter-spacing: .08em;
  color: var(--plum); text-decoration: none; transition: background .2s, color .2s;
}
.nav a:hover { background: rgba(255, 255, 255, .6); }
.nav a[aria-current="page"] { color: var(--rose); box-shadow: inset 0 -2px 0 var(--ribbon); border-radius: 0; }
.btn-yt {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px;
  background: var(--plum); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap;
}
.btn-yt svg { width: 20px; height: 20px; }
.btn-yt:hover { background: var(--ink); }
.menu-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 180px; padding: 14px 28px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(180deg, #e7739a, var(--rose)); color: #fff; box-shadow: 0 6px 18px rgba(217, 87, 127, .4); }
.btn-ghost { background: rgba(255, 255, 255, .92); color: var(--plum); box-shadow: 0 6px 18px rgba(36, 32, 63, .25); }

/* ---------- hero (TOP) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: clamp(560px, 78vh, 760px);
  background: var(--night) url(../assets/img/hero_bg.webp) center / cover no-repeat;
}
.hero::before {                     /* darken the sky behind the title for legibility */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(24, 20, 50, .62) 0%, rgba(24, 20, 50, .3) 45%, rgba(24, 20, 50, 0) 70%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; min-height: inherit; }
.hero-copy { padding: 80px 0 110px; z-index: 2; }
.hero-badge {
  display: inline-block; padding: 6px 16px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px;
  font-size: 14px; letter-spacing: .1em; background: rgba(255, 255, 255, .1); backdrop-filter: blur(4px);
}
.hero-title { margin: 18px 0 0; font-size: clamp(44px, 5.6vw, 84px); white-space: nowrap; line-height: 1.1; font-weight: 700; letter-spacing: .06em;
  text-shadow: 0 2px 0 rgba(217, 87, 127, .45), 0 6px 24px rgba(0, 0, 0, .45); }
.hero-en { display: block; margin-top: 4px; font-family: var(--font-script); font-size: clamp(32px, 4vw, 52px); font-weight: 400; color: #fde3ec; letter-spacing: 0; }
.hero-lead { margin: 22px 0 32px; font-size: clamp(17px, 1.6vw, 21px); letter-spacing: .08em; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-chara { position: static; }
.hero-canvas { position: absolute; right: 0; bottom: 0; width: min(620px, 52%); height: 100%; }
.hero-chara img {
  position: absolute; right: 0; bottom: -90px; height: calc(100% + 40px); width: auto; max-width: none;
  filter: drop-shadow(0 10px 30px rgba(20, 10, 40, .45));
  animation: float 6s ease-in-out infinite;
}
.sparkle { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 4px rgba(255, 255, 255, .7); animation: twinkle 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }

/* lace edge used at the bottom of hero / page title */
.lace-edge { position: absolute; left: 0; right: 0; bottom: -1px; height: 34px; z-index: 3;
  background: url(../assets/img/lace.webp) center bottom / auto 34px repeat-x; }
.bow-center { position: absolute; left: 50%; bottom: -26px; width: 92px; transform: translateX(-50%); z-index: 4; }

/* ---------- page title (subpages) ---------- */
.page-title {
  position: relative; text-align: center; padding: 70px 0 84px;
  background: url(../assets/img/title_bg.webp) center / cover no-repeat;
}
.page-title h1 { margin: 0; font-family: var(--font-en); font-weight: 600; font-size: clamp(44px, 6vw, 72px); letter-spacing: .14em; color: var(--plum); line-height: 1.1; }
.page-title p { margin: 8px 0 0; color: var(--ink); font-weight: 700; letter-spacing: .2em; }

/* ---------- sections ---------- */
.section { position: relative; padding: 96px 0; }
.section-pink { background: linear-gradient(180deg, var(--pink-soft), #fbe0ea); }
.section-lav { background: linear-gradient(180deg, #f3eefa, #ebe3f6); }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head .en { display: block; font-family: var(--font-en); font-weight: 600; font-size: clamp(34px, 4vw, 46px); letter-spacing: .14em; color: var(--plum); line-height: 1.15; }
.sec-head .ja { display: inline-flex; align-items: center; gap: 12px; margin-top: 6px; font-size: 15px; font-weight: 700; letter-spacing: .2em; color: var(--rose); }
.sec-head .ja::before, .sec-head .ja::after { content: ""; width: 36px; height: 1px; background: var(--gold); }
.garland { width: min(560px, 80%); margin: -18px auto 0; opacity: .95; }
.divider { display: block; width: min(760px, 90%); margin: 0 auto; }

.card {
  position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--gold-soft); padding: 32px;
}
.card-frame::before {              /* thin inner gold frame for the "salon" feel */
  content: ""; position: absolute; inset: 8px; border: 1px solid var(--gold-soft); border-radius: calc(var(--radius) - 6px); pointer-events: none;
}
.card-bow { position: absolute; top: -26px; left: 50%; width: 70px; transform: translateX(-50%); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.center { text-align: center; }
.mt-lg { margin-top: 48px; }

/* news */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { display: grid; grid-template-columns: 110px 110px 1fr; gap: 12px; align-items: baseline; padding: 16px 4px; border-bottom: 1px dashed #e9d6df; }
.news-list li:last-child { border-bottom: 0; }
.news-date { font-family: var(--font-en); font-weight: 700; font-size: 17px; color: var(--plum); }
.tag { display: inline-block; padding: 1px 12px; border-radius: 999px; background: var(--pink-soft); color: var(--rose); font-size: 13px; font-weight: 700; text-align: center; border: 1px solid var(--pink); }

/* about / profile teaser */
.about { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.portrait { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: 50% 12%;
  border: 6px solid #fff; outline: 2px solid var(--gold-soft); box-shadow: var(--shadow); background: var(--pink-soft); }
.about-compact { grid-template-columns: 150px 1fr; gap: 24px; }
.about h3 { margin: 0 0 12px; font-size: 24px; color: var(--plum); }

/* stream summary cards */
.feature { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; }
.feature img { width: 120px; }
.feature h3 { margin: 0 0 6px; font-size: 21px; color: var(--plum); }
.feature p { margin: 0; }
.time-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 20px; border-radius: 999px; background: var(--plum); color: #fff; font-weight: 700; letter-spacing: .08em; }

.games { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; list-style: none; padding: 0; margin: 28px 0 0; }
.games li { text-align: center; font-weight: 700; font-size: 14px; color: var(--plum); }
.games img { width: 100%; max-width: 110px; margin: 0 auto 6px; transition: transform .25s; }
.games li:hover img { transform: translateY(-4px) rotate(-3deg); }

/* outfit cards (arched frames) */
.arch {
  position: relative; display: block; text-decoration: none; color: var(--ink);
  background: linear-gradient(180deg, #fff 0%, var(--pink-soft) 100%);
  border: 2px solid var(--gold-soft); border-radius: 999px 999px 16px 16px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.arch:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(110, 90, 126, .22); }
.arch img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.arch figcaption { padding: 10px 8px 14px; text-align: center; font-weight: 700; font-size: 14px; background: #fff; border-top: 1px solid var(--gold-soft); line-height: 1.5; }
.arch .cat { display: block; font-size: 11px; color: var(--rose); letter-spacing: .1em; }
.wardrobe-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }

/* clips */
.clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.clip { display: block; text-decoration: none; color: var(--ink); }
.clip-thumb { position: relative; border-radius: 16px; overflow: hidden; border: 3px solid #fff; box-shadow: var(--shadow); aspect-ratio: 9 / 13; background: var(--lavender); }
.clip-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.clip-thumb .dur { position: absolute; right: 10px; bottom: 10px; padding: 0 10px; border-radius: 999px; background: rgba(36, 32, 63, .78); color: #fff; font-size: 13px; }
.clip-title { margin: 12px 0 0; font-weight: 700; line-height: 1.6; white-space: pre-line; }
.clip-date { font-size: 13px; color: var(--ink-soft); }

/* hashtags */
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hashtag { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; border-radius: 999px; background: #fff; border: 1.5px solid var(--lavender-deep); color: var(--plum); font-weight: 700; text-decoration: none; transition: background .2s; }
.hashtag:hover { background: #f3eefa; }

/* CTA band */
.cta {
  position: relative; text-align: center; color: #fff; padding: 72px 20px; overflow: hidden;
  background: var(--night) url(../assets/img/hero_bg.webp) center 30% / cover;
}
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(36, 32, 63, .62); }
.cta > * { position: relative; }
.cta h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); letter-spacing: .1em; }
.cta p { margin: 0 0 26px; }

/* ---------- profile page ---------- */
.profile-main { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.profile-visual { width: 100%; max-width: 420px; margin: 0 auto; padding-top: 36px; overflow: hidden;
  border-radius: 999px 999px 24px 24px; border: 2px solid var(--gold-soft); box-shadow: var(--shadow);
  background: radial-gradient(circle at 50% 28%, #fff 0%, var(--pink-soft) 45%, var(--pink) 100%); }
.profile-visual { position: relative; }
.profile-visual img.chara { width: 100%; filter: drop-shadow(0 8px 18px rgba(110, 90, 126, .25)); }
.profile-canvas { position: absolute; top: -100px; left: -12%; width: 124%; height: calc(100% + 100px); cursor: pointer; } /* sprite has empty space above the head */

/* live avatar: fade the canvas in once loaded; the static image stays when WebGL/JS is unavailable */
.avatar-canvas { opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.avatar-canvas.ready { opacity: 1; pointer-events: auto; }
.avatar-live .hero-fallback, .avatar-live img.chara { visibility: hidden; }
.avatar-controls { max-width: 460px; margin: 22px auto 0; text-align: center; }
.ctl-label { margin: 14px 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--rose); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chips button {
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; padding: 6px 14px; border-radius: 999px;
  border: 1.5px solid var(--pink); background: #fff; color: var(--plum); transition: all .2s;
}
.chips button:hover { border-color: var(--ribbon); background: var(--pink-soft); }
.chips button[aria-pressed="true"] { background: var(--rose); border-color: var(--rose); color: #fff; }
.ctl-hint { margin: 12px 0 0; font-size: 13px; color: var(--ink-soft); }
.profile-table { width: 100%; border-collapse: collapse; }
.profile-table th, .profile-table td { padding: 14px 8px; border-bottom: 1px dashed #e9d6df; vertical-align: top; text-align: left; }
.profile-table th { width: 7.5em; color: var(--rose); font-weight: 700; white-space: nowrap; }
.profile-table tr:last-child th, .profile-table tr:last-child td { border-bottom: 0; }
.trait { text-align: center; }
.trait img { width: 120px; margin: 0 auto 10px; }
.trait h3 { margin: 0 0 6px; font-size: 20px; color: var(--plum); }
.trait p { margin: 0; text-align: left; }
.faces { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.faces li { text-align: center; font-weight: 700; font-size: 14px; color: var(--plum); }
.faces img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; border: 4px solid #fff; outline: 2px solid var(--gold-soft); box-shadow: var(--shadow); margin-bottom: 8px; }
.palette { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; list-style: none; padding: 0; margin: 0; }
.palette li { text-align: center; font-size: 13px; }
.palette .chip { display: block; width: 84px; height: 84px; border-radius: 50%; border: 4px solid #fff; box-shadow: var(--shadow); margin: 0 auto 8px; }
.palette b { display: block; font-family: var(--font-en); font-size: 15px; color: var(--plum); }

/* ---------- stream page ---------- */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; }
.week li { padding: 16px 6px; border-radius: 14px; background: var(--pink-soft); text-align: center; border: 1px solid var(--pink); }
.week .day { display: block; font-family: var(--font-en); font-weight: 700; font-size: 18px; letter-spacing: .1em; color: var(--plum); }
.week img { width: 52px; margin: 6px auto; }
.week .t { font-weight: 700; color: var(--rose); }
.week .d { display: block; font-size: 12px; color: var(--ink-soft); }
.week b { display: block; margin: 2px 0 4px; font-size: 13px; line-height: 1.5; color: var(--ink); }
.week li.off { opacity: .55; }
.kind { display: inline-block; white-space: nowrap; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.kind.game { background: var(--plum); color: #fff; }
.kind.talk { background: var(--pink); color: var(--rose); }
.week-rule { list-style: none; margin: 22px 0 0; padding: 16px 20px; border-radius: 14px; background: var(--cream); display: grid; gap: 8px; font-size: 14px; }
.week-rule .kind { margin-right: 8px; }
.today-line { font-size: 17px; color: var(--plum); }
.today-line b { color: var(--rose); }
.week li.today { background: #fff; border: 2px solid var(--ribbon); box-shadow: 0 6px 16px rgba(244, 143, 177, .3); }
.big-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.big-feature h3 { margin: 0 0 12px; font-size: 26px; color: var(--plum); }
.checks { list-style: none; padding: 0; margin: 16px 0 0; }
.checks li { position: relative; padding-left: 28px; margin: 6px 0; }
.checks li::before { content: "♡"; position: absolute; left: 0; color: var(--ribbon); font-weight: 700; }
.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; list-style: none; padding: 0; margin: 0; }
.game-grid li { background: #fff; border-radius: 16px; padding: 18px 14px; text-align: center; border: 1px solid var(--gold-soft); box-shadow: var(--shadow); }
.game-grid img { width: 96px; margin: 0 auto 8px; }
.game-grid h4 { margin: 0; font-size: 17px; color: var(--plum); }
.game-grid p { margin: 4px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.note { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 30px; padding: 18px 24px; border-radius: 16px; background: #fff; border: 1.5px dashed var(--ribbon); font-weight: 700; color: var(--plum); }
.note code { font-family: var(--font-en); font-size: 18px; color: var(--rose); background: var(--pink-soft); padding: 0 8px; border-radius: 6px; }

/* ---------- wardrobe page ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filters button {
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  padding: 8px 20px; border-radius: 999px; border: 1.5px solid var(--pink); background: #fff; color: var(--plum); transition: all .2s;
}
.filters button:hover { border-color: var(--ribbon); }
.filters button[aria-pressed="true"] { background: var(--rose); border-color: var(--rose); color: #fff; }
.filters .count { font-size: 12px; opacity: .8; margin-left: 4px; }
.outfit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 24px; }
.result-count { text-align: center; color: var(--ink-soft); margin: -20px 0 30px; }
.spotlight { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: center; }
.spotlight .arch { max-width: 260px; }
.spotlight h3 { margin: 0 0 8px; font-size: 28px; color: var(--plum); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: rgba(36, 32, 63, .78); padding: 20px; }
.lightbox.open { display: grid; }
.lightbox figure { margin: 0; background: linear-gradient(180deg, #fff, var(--pink-soft)); border-radius: 24px; padding: 20px 20px 16px; max-width: 420px; width: 100%; text-align: center; border: 2px solid var(--gold-soft); }
.lightbox img { width: 100%; border-radius: 16px; }
.lightbox figcaption { margin-top: 10px; font-size: 20px; font-weight: 700; color: var(--plum); }
.lightbox button { margin-top: 10px; font: inherit; border: 0; background: var(--plum); color: #fff; padding: 8px 26px; border-radius: 999px; cursor: pointer; }

/* ---------- guideline page ---------- */
.hash-card { text-align: center; }
.hash-card img { width: 120px; margin: 0 auto 12px; }
.hash-card h3 { margin: 0; font-size: 22px; color: var(--plum); }
.hash-card .for { display: block; color: var(--rose); font-weight: 700; margin: 4px 0 10px; }
.hash-card p { margin: 0; text-align: left; }
.copy-btn { margin-top: 16px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; padding: 6px 18px; border-radius: 999px; border: 1.5px solid var(--lavender-deep); background: #fff; color: var(--plum); }
.copy-btn.done { background: var(--plum); color: #fff; }
.rules h3 { margin: 0 0 16px; font-size: 22px; color: var(--plum); text-align: center; }
.rule-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.rule-cols h4 { margin: 0 0 8px; font-size: 16px; }
.ok h4 { color: #3f8f6b; }
.ng h4 { color: #c0476b; }
.rule-cols ul { list-style: none; padding: 0; margin: 0; }
.rule-cols li { position: relative; padding-left: 28px; margin: 8px 0; }
.ok li::before { content: "✓"; position: absolute; left: 4px; color: #3f8f6b; font-weight: 700; }
.ng li::before { content: "✕"; position: absolute; left: 4px; color: #c0476b; font-weight: 700; }
.invite { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; max-width: 760px; margin: 0 auto; }
.bubble { position: relative; background: #fff; border-radius: 24px; padding: 26px 30px; border: 1.5px solid var(--gold-soft); box-shadow: var(--shadow); font-size: 18px; }
.bubble::before { content: ""; position: absolute; left: -12px; top: 50%; width: 22px; height: 22px; background: #fff; border-left: 1.5px solid var(--gold-soft); border-bottom: 1.5px solid var(--gold-soft); transform: translateY(-50%) rotate(45deg); }

/* ---------- column ---------- */
.page-title-sm { padding: 40px 0 56px; }
.page-title-en { margin: 0; font-family: var(--font-en); font-weight: 600; font-size: clamp(32px, 4vw, 44px); letter-spacing: .14em; color: var(--plum); line-height: 1.1; }
.col-intro { margin: -20px 0 40px; }
.col-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.col-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gold-soft);
  box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .25s, box-shadow .25s; }
.col-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(110, 90, 126, .22); }
.col-card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.col-card-body { padding: 18px 22px 22px; }
.col-card time { font-family: var(--font-en); font-weight: 700; color: var(--rose); }
.col-card h3 { margin: 4px 0 8px; font-size: 19px; line-height: 1.55; color: var(--plum); }
.col-card p { margin: 0 0 10px; font-size: 14px; line-height: 1.75; color: var(--ink-soft); }
.col-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.col-wrap { max-width: 860px; }
.col-main { padding: 48px 56px; }
.col-meta { margin: 0; font-size: 14px; color: var(--ink-soft); }
.col-head h1 { margin: 8px 0 14px; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.5; color: var(--plum); }
.col-cover { width: 100%; border-radius: 14px; margin: 26px 0; border: 1px solid var(--gold-soft); }
.col-toc { background: var(--pink-soft); border: 1px solid var(--pink); border-radius: 14px; padding: 18px 26px; margin-bottom: 36px; }
.col-toc-title { margin: 0 0 6px; font-weight: 700; color: var(--rose); letter-spacing: .2em; }
.col-toc ol { margin: 0; padding-left: 1.4em; }
.col-toc a { color: var(--plum); text-decoration: none; }
.col-toc a:hover { text-decoration: underline; }
.col-body { font-size: 17px; line-height: 2; }
.col-body p { margin: 0 0 1.3em; }
.col-body h2 { position: relative; margin: 2.4em 0 1em; padding: 12px 18px 12px 52px; font-size: 22px; line-height: 1.55; color: var(--plum);
  background: linear-gradient(90deg, var(--pink-soft), rgba(253, 238, 243, 0)); border-left: 4px solid var(--ribbon); border-radius: 0 12px 12px 0; scroll-margin-top: 90px; }
.col-body h2::before { content: ""; position: absolute; left: 12px; top: 50%; width: 30px; height: 30px; transform: translateY(-50%);
  background: url(../assets/img/bow.webp) center / contain no-repeat; }
.col-body h3 { margin: 1.8em 0 .6em; font-size: 19px; color: var(--rose); }
.col-body ul { margin: 0 0 1.3em; padding-left: 1.4em; }
.col-body li { margin: .3em 0; }
.col-body strong { background: linear-gradient(transparent 62%, #fbd3e0 62%); }
.col-quote { margin: 1.6em 0; padding: 22px 28px; background: #fff; border: 1.5px solid var(--lavender-deep); border-radius: 18px; position: relative; }
.col-quote::before { content: "“"; position: absolute; left: 14px; top: -14px; font-family: var(--font-en); font-size: 64px; line-height: 1; color: var(--lavender-deep); }
.col-quote p { margin: 0; font-weight: 700; color: var(--plum); }
.col-quote cite { display: block; margin-top: 6px; font-size: 13px; font-style: normal; color: var(--ink-soft); text-align: right; }
.col-memo { margin: 1.8em 0; padding: 20px 26px; background: var(--cream); border: 1.5px dashed var(--ribbon); border-radius: 16px; font-size: 16px; }
.col-memo-title { margin: 0 0 8px !important; font-weight: 700; color: var(--rose); }
.col-memo-title::before { content: "♡ "; }
.col-memo p:last-child { margin-bottom: 0; }
.col-foot { margin-top: 48px; padding-top: 28px; border-top: 1px dashed #e9d6df; text-align: center; }
.col-signature { font-weight: 700; color: var(--plum); }
.col-signature span { font-family: var(--font-script); font-size: 34px; font-weight: 400; color: var(--rose); }
.col-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 18px; }
.col-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; }
.col-pager a { max-width: 48%; font-weight: 700; color: var(--plum); text-decoration: none; }
.col-pager a:hover { color: var(--rose); }

/* ---------- footer ---------- */
.site-footer { position: relative; margin-top: 0; padding: 70px 0 34px; text-align: center; color: #fff;
  background: linear-gradient(180deg, #c9b6e2 0%, #9d86c0 100%); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 30px;
  background: url(../assets/img/lace.webp) center top / auto 30px repeat-x; transform: scaleY(-1); }
.site-footer .bow-center { top: -30px; bottom: auto; }
.footer-logo { font-family: var(--font-script); font-size: 40px; line-height: 1.2; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; list-style: none; padding: 0; margin: 16px 0; }
.footer-nav a { color: #fff; text-decoration: none; font-family: var(--font-en); font-weight: 700; letter-spacing: .1em; }
.footer-nav a:hover { text-decoration: underline; }
.footer-yt { display: inline-flex; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--plum); align-items: center; justify-content: center; }
.footer-yt svg { width: 24px; height: 24px; }
.copyright { margin: 20px 0 0; font-size: 13px; opacity: .9; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-chara img, .sparkle { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .header-inner { gap: 12px; }
  .faces { grid-template-columns: repeat(4, 1fr); }
  .games { grid-template-columns: repeat(4, 1fr); }
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .wardrobe-row { grid-template-columns: repeat(3, 1fr); }
  .wardrobe-row > :nth-child(n+4) { display: none; }
}
/* header: hamburger menu below 1100px (6 nav items + YouTube button no longer fit) */
@media (max-width: 1100px) {
  .menu-toggle {
    display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px;
    background: rgba(255, 255, 255, .7); color: var(--plum); cursor: pointer;
  }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; content: ""; }
  .menu-toggle span::before { position: absolute; top: -6px; }
  .menu-toggle span::after { position: absolute; top: 6px; }
  .nav { position: absolute; left: 0; right: 0; top: 72px; margin: 0; background: var(--pink); display: none; padding: 8px 20px 24px; box-shadow: 0 10px 20px rgba(110, 90, 126, .2); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { font-size: 18px; padding: 12px; }
  .header-inner .btn-yt { display: none; }
  .logo-script { font-size: 28px; }
}
@media (max-width: 820px) {

  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero::before { background: linear-gradient(180deg, rgba(24, 20, 50, .55), rgba(24, 20, 50, .15) 60%, rgba(24, 20, 50, .35)); }
  .hero-copy { padding: 48px 0 0; }
  .hero-actions { justify-content: center; }
  .hero-chara { position: relative; height: 440px; }
  .hero-chara img { left: 50%; right: auto; bottom: -70px; height: 540px; transform: translateX(-50%); animation: none; }
  .hero-canvas { width: 100%; height: 100%; }
  .hero-title { white-space: normal; }

  .section { padding: 72px 0; }
  .grid-2, .grid-3, .about, .profile-main, .big-feature, .spotlight, .rule-cols, .invite { grid-template-columns: 1fr; }
  .about { text-align: center; }
  .about .portrait { max-width: 180px; margin: 0 auto; }
  .about-compact { grid-template-columns: 1fr; }
  .profile-visual { max-width: 300px; }
  .profile-table th { width: 5em; }
  .clips { grid-template-columns: repeat(2, 1fr); }
  .clips > :nth-child(3) { display: none; }
  .news-list li { grid-template-columns: 1fr; gap: 2px; }
  .news-list .tag { justify-self: start; }
  /* one row per day on phones: day | icon | program or theme | time */
  .week { grid-template-columns: 1fr; gap: 8px; }
  .week li { display: grid; grid-template-columns: 64px 40px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; text-align: left; }
  .week .day { font-size: 15px; }
  .week .d { grid-row: 2; grid-column: 1; font-size: 11px; }
  .week li img { grid-row: 1 / span 2; grid-column: 2; width: 40px; margin: 0; }
  .week li .kind { grid-row: 1; grid-column: 3; justify-self: start; }
  .week li b { grid-row: 2; grid-column: 3; margin: 0; }
  .week li .t { grid-row: 1 / span 2; grid-column: 4; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .spotlight { text-align: center; }
  .spotlight .arch { margin: 0 auto; }
  .invite { text-align: center; }
  .invite img { max-width: 200px; margin: 0 auto; }
  .bubble::before { display: none; }
  .card { padding: 26px 20px; }
  .note { flex-direction: column; text-align: center; }
  .col-main { padding: 30px 20px; }
  .col-body { font-size: 16px; }
  .col-body h2 { font-size: 19px; padding-left: 46px; }
}
@media (max-width: 480px) {
  .wardrobe-row { grid-template-columns: repeat(2, 1fr); }
  .wardrobe-row > :nth-child(n+3) { display: none; }
  .outfit-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .faces { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .games { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .games li { font-size: 12px; }
  .btn { min-width: 0; width: 100%; }
}

/* ---------- X link, column nav / related / tags (2026-11-22) ---------- */
.btn-x { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; margin-left: -14px; border-radius: 50%;
  background: var(--plum); color: #fff; }
.btn-x svg { width: 17px; height: 17px; }
.btn-x:hover { background: var(--ink); }
.footer-sns { display: flex; justify-content: center; gap: 14px; }
.footer-x svg { width: 20px; height: 20px; }
a.tag { text-decoration: none; transition: background .2s; }
a.tag:hover { background: #fff; }
a.tag[aria-current="page"] { background: var(--rose); border-color: var(--rose); color: #fff; }
.tag-count { margin-left: 6px; font-size: 11px; font-weight: 500; opacity: .75; }
.col-tagcloud { max-width: 860px; margin: -12px auto 40px; text-align: center; }
.col-grid + .col-tagcloud { margin: 56px auto 0; }
.col-tagcloud .col-tags { justify-content: center; }
.col-tagcloud-title { margin: 0 0 10px; font-weight: 700; color: var(--plum); letter-spacing: .2em; }
.col-tag-h1 { margin: 6px 0 0; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.4; color: var(--plum); }
.tag-hash { margin-right: 4px; color: var(--rose); }
.col-pager a { display: flex; flex-direction: column; gap: 2px; width: 48%; max-width: 48%; padding: 14px 18px; background: #fff;
  border: 1px solid var(--gold-soft); border-radius: 14px; box-shadow: var(--shadow); line-height: 1.55; }
.col-pager-next { margin-left: auto; text-align: right; }
.col-pager-label { font-size: 13px; letter-spacing: .1em; color: var(--rose); }
.col-pager time { font-family: var(--font-en); font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.col-related { margin-top: 48px; }
.col-related h2 { margin: 0 0 18px; font-size: 21px; text-align: center; letter-spacing: .08em; color: var(--plum); }
.col-related ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.col-related a { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #fff; border: 1px solid var(--gold-soft);
  border-radius: 14px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .25s; }
.col-related a:hover { transform: translateY(-3px); }
.col-related img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.col-related-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px 14px; }
.col-related time { font-family: var(--font-en); font-size: 14px; font-weight: 700; color: var(--rose); }
.col-related-title { font-size: 15px; font-weight: 700; line-height: 1.55; color: var(--plum); }
/* the X circle needs ~24px more than the header has between 1101px and ~1150px: show it from 1200px */
@media (max-width: 1199px) {
  .header-inner .btn-x { display: none; }
}
/* hero: icon-only X so YouTube / X / PROFILE stay on one row; phones stack full-width buttons with the label */
.hero-actions .btn-sns-icon { min-width: 0; width: 54px; padding: 0; }
.hero-actions .btn-sns-icon span { display: none; }
@media (max-width: 480px) {
  .hero-actions .btn-sns-icon { width: 100%; padding: 14px 28px; }
  .hero-actions .btn-sns-icon span { display: inline; }
}
@media (max-width: 820px) {
  .col-pager { flex-direction: column; }
  .col-pager > span { display: none; }
  .col-pager a { width: auto; max-width: none; }
  .col-related ul { grid-template-columns: 1fr; }
  .col-related a { flex-direction: row; align-items: center; }
  .col-related img { width: 42%; flex: none; }
}
.btn-sns svg { width: 18px; height: 18px; flex: none; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* ---------- blog (ミルフィの読みもの) ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.blog-grid-index { grid-template-columns: repeat(2, 1fr); }
.blog-card { display: flex; gap: 16px; align-items: flex-start; height: 100%; padding: 18px 20px; background: #fff; border: 1px solid var(--gold-soft);
  border-radius: 18px; color: var(--ink); text-decoration: none; box-shadow: 0 6px 18px rgba(110, 90, 126, .08); transition: transform .2s; }
.blog-card:hover { transform: translateY(-3px); }
.blog-card img { width: 64px; height: 64px; flex: none; object-fit: contain; }
.blog-card h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.5; color: var(--plum); }
.blog-card p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-links { margin-top: 40px; }
.blog-links h2 { margin: 0 0 18px; font-size: 21px; text-align: center; letter-spacing: .08em; color: var(--plum); }
.blog-nights li { display: flex; flex-direction: column; gap: 8px; }
.blog-nights .blog-night-link { flex: 1; }
.blog-nights a.blog-night-vod { height: auto; flex-direction: row; overflow: visible; box-shadow: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--rose); color: var(--rose); font-weight: 700; font-size: 14px; text-decoration: none; }
.blog-nights a.blog-night-vod:hover { background: #fdeef3; transform: none; }
.blog-night-vod svg, .blog-cta .btn svg { width: 18px; height: 18px; }
.blog-cta .btn { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 1000px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) {
  .blog-grid, .blog-grid-index { grid-template-columns: 1fr; }
  .blog-nights .blog-night-link { flex-direction: row; }
}
/* 7 nav items (BLOG added 2026-11-22): tighter pills so the header still fits from 1101px up */
@media (min-width: 1101px) {
  .nav ul { gap: 0; }
  .nav a { padding: 8px 9px; font-size: 16px; letter-spacing: .05em; }
  .header-inner { gap: 16px; }
}
@media (min-width: 1101px) and (max-width: 1240px) {
  .logo-script { font-size: 28px; }
  .nav a { padding: 8px 7px; font-size: 15px; }
}
