:root {
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: #382f3d;
  background: #fffaf7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #382f3d;
  --muted: #827987;
  --pink: #f27b9b;
  --pink-dark: #d9567a;
  --lavender: #eee8ff;
  --mint: #e2f5ee;
  --yellow: #fff1ca;
  --line: #eee8e5;
  --paper: #fff;
  --shadow: 0 16px 48px rgba(80, 57, 69, .09);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(ellipse at 85% 4%, #fff0f2 0, transparent 26rem), #fffaf7; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 20; padding: 12px; background: white; }
.skip-link:focus { left: 8px; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,250,247,.92); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(238,232,229,.8); }
.header-inner, .footer-inner, .container { width: min(1120px, calc(100% - 40px)); margin: auto; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 800; font-size: 1.32rem; letter-spacing: -.05em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 14px; color: white; background: var(--pink); box-shadow: 0 5px 12px #f27b9b44; }
.nav { display: flex; align-items: center; gap: 7px; }
.nav a { text-decoration: none; color: #625a65; font-size: .88rem; padding: 10px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--pink-dark); background: #fff0f3; }
.menu-toggle { display: none; border: 0; border-radius: 12px; padding: 10px 12px; background: white; color: var(--ink); }
main { min-height: 65vh; }
.container { padding: 48px 0 76px; }
.hero { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: 48px; margin: 12px 0 48px; }
.eyebrow { color: var(--pink-dark); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.35; letter-spacing: -.055em; margin: 10px 0 14px; }
h2 { font-size: 1.55rem; letter-spacing: -.035em; }
h3 { font-size: 1.12rem; }
.lead { color: var(--muted); line-height: 1.95; }
.hero-art { border-radius: 32px; padding: 26px; background: linear-gradient(135deg, #f8eaff, #ffe9ec 52%, #fff0ca); position: relative; min-height: 270px; display: grid; place-items: center; overflow: hidden; }
.hero-art::before, .hero-art::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: #fff9; }
.hero-art::before { left: -24px; bottom: -34px; }
.hero-art::after { right: -25px; top: -25px; width: 160px; height: 160px; }
.hero-sticker { position: relative; z-index: 1; background: white; padding: 20px 24px; border-radius: 24px; transform: rotate(-3deg); box-shadow: var(--shadow); text-align: center; }
.hero-sticker strong { display: block; font-size: 1.35rem; }
.hero-sticker span { color: var(--muted); font-size: .88rem; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 12px 18px; text-decoration: none; font-weight: 700; color: white; background: var(--pink); box-shadow: 0 6px 15px #f27b9b35; transition: transform .18s, background .18s; }
.button:hover { background: var(--pink-dark); transform: translateY(-2px); }
.button.secondary { color: var(--ink); background: white; box-shadow: inset 0 0 0 1px var(--line); }
.button.small { min-height: 38px; padding: 8px 13px; font-size: .86rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin: 44px 0 18px; }
.section-heading h2 { margin: 0; }
.daily-card { position: relative; display: grid; grid-template-columns: minmax(240px, .82fr) 1.18fr; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); }
.daily-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(90deg, #f5adbf 0 28px, #f9d5a5 28px 56px, #d8caff 56px 84px); }
.portrait-wrap { padding: 30px; background: linear-gradient(145deg, #f5edff, #fff1f2); display: grid; place-items: center; min-height: 380px; }
.portrait { width: min(100%, 310px); aspect-ratio: 1; object-fit: cover; border-radius: 28px; background: #fff; box-shadow: 0 12px 26px #55405b1c; }
.portrait-placeholder { display: grid; place-items: center; font-size: 5rem; color: #d4bfd2; }
.daily-content { padding: clamp(24px, 5vw, 48px); align-self: center; }
.date-pill { display: inline-flex; padding: 8px 13px; color: #a74d6a; background: #fff0f3; border-radius: 999px; font-size: .88rem; font-weight: 700; }
.daily-content h2 { font-size: clamp(1.7rem, 4vw, 2.45rem); margin: 15px 0 10px; }
.tag-list, .link-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.tag { display: inline-flex; border-radius: 999px; padding: 6px 11px; background: var(--lavender); font-size: .82rem; }
.link-list a { text-decoration: none; color: #66518d; border-bottom: 1px solid #d5c8ef; font-weight: 600; }
.daily-actions, .pager { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.muted { color: var(--muted); }
.notice, .empty, .error, .success { padding: 22px; border-radius: 18px; background: white; border: 1px solid var(--line); line-height: 1.8; }
.notice { background: #fff7e2; border-color: #fae7b5; }
.empty { text-align: center; padding: 42px 24px; }
.error { color: #9c3150; background: #fff2f4; }
.success { color: #286750; background: #eef9f3; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.card { background: white; border: 1px solid var(--line); border-radius: 21px; overflow: hidden; box-shadow: 0 7px 22px #5039450a; }
.vtuber-card { text-decoration: none; transition: transform .18s, box-shadow .18s; }
.vtuber-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.vtuber-card img, .vtuber-card .avatar-placeholder { width: 100%; aspect-ratio: 1.35; object-fit: cover; background: linear-gradient(135deg,#f6edff,#fff0f3); }
.avatar-placeholder { display: grid; place-items: center; font-size: 3.5rem; color: #d7c6d6; }
.card-body { padding: 18px; }
.card-body h3 { margin: 8px 0; }
.card-body p { color: var(--muted); font-size: .9rem; line-height: 1.75; margin-bottom: 0; }
.filters, .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.filters { margin: 20px 0 24px; }
label { display: grid; gap: 7px; font-weight: 600; font-size: .91rem; }
input, select, textarea { width: 100%; border: 1px solid #e8dfe3; border-radius: 12px; background: white; padding: 12px 13px; color: var(--ink); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 3px #f27b9b24; }
textarea { min-height: 140px; resize: vertical; }
.form-stack { display: grid; gap: 17px; max-width: 720px; }
.field-hint { color: var(--muted); font-size: .8rem; font-weight: 400; }
.calendar-head { display: flex; justify-content: space-between; align-items: center; margin: 24px 0 14px; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.calendar > * { min-height: 62px; display: grid; place-items: center; border-radius: 13px; }
.calendar .weekday { min-height: 34px; font-size: .8rem; color: var(--muted); }
.calendar .day { background: white; border: 1px solid var(--line); text-decoration: none; }
.calendar .day.featured { background: #fff0f3; border-color: #f4c6d1; color: #a74d6a; font-weight: 800; }
.calendar .day.today { outline: 2px solid var(--pink); }
.calendar .day:disabled { background: transparent; border: 0; }
.profile-top { display: grid; grid-template-columns: minmax(220px,.8fr) 1.2fr; gap: 34px; align-items: center; }
.profile-top .portrait { width: 100%; }
.prose { max-width: 780px; line-height: 1.95; }
.prose h2 { margin-top: 34px; }
.prose li { margin: 7px 0; }
.footer { background: #fff; border-top: 1px solid var(--line); }
.footer-inner { padding: 30px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; color: var(--muted); font-size: .88rem; }
.footer-links { display: flex; gap: 15px; flex-wrap: wrap; }
.footer a { color: #625a65; text-decoration: none; }
.footer a:hover { color: var(--pink-dark); }
.loading { padding: 15vh 20px; text-align: center; color: var(--muted); }
.admin-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: 20px 0; }
.stat { padding: 18px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.stat strong { display: block; font-size: 1.5rem; margin-top: 6px; }
.table-wrap { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 16px; }
table { border-collapse: collapse; width: 100%; min-width: 650px; }
th, td { padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .84rem; color: var(--muted); background: #fffcfb; }
.badge { display: inline-block; padding: 4px 9px; border-radius: 999px; background: var(--mint); font-size: .78rem; }
.smallprint { color: var(--muted); font-size: .84rem; line-height: 1.8; }
.account-menu { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.account-menu a:not(.button) { font-size: .84rem; }
.role-badge { border-radius: 999px; padding: 7px 11px; background: var(--lavender); color: #66518d; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.auth-card { max-width: 680px; margin: 0 auto; padding: clamp(22px,5vw,42px); background: white; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: clamp(1.9rem,4vw,2.7rem); }
.auth-card fieldset { border: 0; padding: 0; margin: 0; }
.auth-card legend { margin-bottom: 10px; font-weight: 700; }
.role-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.role-card { display: flex; align-items: flex-start; gap: 12px; padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: #fffcfb; cursor: pointer; }
.role-card:has(input:checked) { border-color: var(--pink); background: #fff3f6; box-shadow: 0 0 0 2px #f27b9b20; }
.role-card input, .agreement input { width: auto; margin: 4px 0 0; accent-color: var(--pink-dark); }
.role-card strong, .role-card small { display: block; }
.role-card small { margin-top: 6px; color: var(--muted); font-weight: 400; line-height: 1.6; }
.agreement { display: flex; align-items: flex-start; gap: 9px; }
.role-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.account-section { margin: 28px 0; padding: clamp(20px,4vw,30px); background: white; border: 1px solid var(--line); border-radius: 22px; }
.account-form { margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--line); }
.danger-zone { border-color: #efc7cf; }
.danger-button { background: #a63d55; }
.danger-button:hover { background: #862d43; }
.creator-summary { display: grid; grid-template-columns: 180px 1fr; gap: 22px; padding: 20px; align-items: center; }
.creator-summary .avatar { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.creator-summary .avatar-placeholder { border-radius: 16px; }
.avatar { width: min(100%,240px); aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
.application-image-preview { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.application-image-preview:empty { display: none; }
.application-image-preview img { width: 120px; aspect-ratio: 1; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); }
.application-image-preview .smallprint { flex: 1; min-width: 220px; }

@media (max-width: 760px) {
  .header-inner, .footer-inner, .container { width: min(100% - 28px, 620px); }
  .header-inner { min-height: 66px; flex-wrap: wrap; gap: 8px; padding: 10px 0; }
  .menu-toggle { display: block; }
  .menu-toggle { margin-left: auto; }
  .account-menu { order: 3; width: 100%; justify-content: flex-end; }
  .nav { display: none; position: absolute; top: 65px; left: 14px; right: 14px; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 9px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .container { padding: 34px 0 56px; }
  .hero { grid-template-columns: 1fr; gap: 22px; }
  .hero-art { min-height: 190px; }
  .daily-card, .profile-top { grid-template-columns: 1fr; }
  .portrait-wrap { min-height: initial; padding: 22px; }
  .portrait { max-width: 270px; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .card-body { padding: 13px; }
  .filters, .form-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .calendar > * { min-height: 48px; }
  .role-options, .creator-summary { grid-template-columns: 1fr; }
  .creator-summary .avatar, .creator-summary .avatar-placeholder { max-width: 210px; }
}
@media (max-width: 430px) { .grid { grid-template-columns: 1fr; } .vtuber-card img, .vtuber-card .avatar-placeholder { aspect-ratio: 1.55; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
