:root {
    --primary: #7C5CE7;
    --primary-deep: #6042C7;
    --primary-soft: #E8E1FF;
    --pink: #E8B7D8;
    --pink-soft: #F8EAF3;
    --ink: #242235;
    --text: #302E3A;
    --muted: #777386;
    --accent: #F29B72;
    --bg: #FAF9FD;
    --surface: #FFFFFF;
    --surface-alt: #F1EEF8;
    --line: #E4DFEF;
    --line-strong: #D5CDE7;
    --shadow-sm: 0 10px 26px rgba(36,34,53,.07);
    --shadow-md: 0 20px 46px rgba(36,34,53,.10);
    --shadow-lg: 0 28px 72px rgba(64,43,116,.14);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --content: 1180px;
    --content-wide: 1320px;
    --header-h: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.72;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
::selection { background: var(--primary-soft); color: var(--ink); }

.skip-link {
    position: fixed;
    left: 14px;
    top: 12px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    transform: translateY(-150%);
    transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    min-height: var(--header-h);
    background: rgba(250,249,253,.93);
    border-bottom: 1px solid rgba(213,205,231,.72);
    backdrop-filter: blur(14px);
}
.header-inner {
    width: min(var(--content-wide), calc(100% - 48px));
    min-height: var(--header-h);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.brand-mark { display: inline-flex; align-items: center; gap: 12px; min-width: 180px; }
.brand-mark img { width: 46px; height: 46px; object-fit: contain; border-radius: 14px; }
.brand-mark span { display: flex; flex-direction: column; line-height: 1.2; }
.brand-mark strong { font-size: 18px; letter-spacing: .04em; color: var(--ink); }
.brand-mark small { margin-top: 5px; color: var(--muted); font-size: 11px; letter-spacing: .12em; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
    position: relative;
    padding: 10px 15px;
    border-radius: 999px;
    color: #565166;
    font-size: 14px;
    font-weight: 650;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.site-nav a:hover { background: var(--surface-alt); color: var(--primary-deep); transform: translateY(-1px); }
.site-nav a[aria-current="page"] { background: var(--primary); color: #fff; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--surface-alt); padding: 11px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

main { overflow: hidden; }
.section,
.hero,
.page-hero {
    width: min(var(--content), calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
}
.section { padding: 82px 0; }
.section-wide { width: min(var(--content-wide), calc(100% - 48px)); }
.tone-soft {
    position: relative;
    width: min(var(--content-wide), calc(100% - 32px));
    padding-left: clamp(18px, 4vw, 64px);
    padding-right: clamp(18px, 4vw, 64px);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(241,238,248,.92), rgba(248,234,243,.62));
    overflow: hidden;
}
.tone-soft::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -120px;
    top: -110px;
    border-radius: 50%;
    background: rgba(124,92,231,.08);
    pointer-events: none;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--primary-deep);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading h2 { margin: 0; color: var(--ink); font-size: clamp(28px, 3vw, 42px); line-height: 1.22; letter-spacing: -.025em; }
.section-heading p { margin: 14px 0 0; color: var(--muted); font-size: 16px; }
.split-heading { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.split-heading > div { max-width: 760px; }
.text-link { color: var(--primary-deep); font-weight: 750; white-space: nowrap; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero { padding: 72px 0 86px; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr); gap: clamp(38px, 6vw, 88px); align-items: center; }
.hero-copy h1 { max-width: 720px; margin: 0; color: var(--ink); font-size: clamp(42px, 5.6vw, 72px); line-height: 1.06; letter-spacing: -.045em; }
.hero-copy > p { max-width: 680px; margin: 24px 0 0; color: #5E596B; font-size: 18px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border-radius: 14px; font-weight: 760; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #fff; background: var(--primary); box-shadow: 0 10px 26px rgba(124,92,231,.24); }
.button.primary:hover { background: var(--primary-deep); box-shadow: 0 14px 32px rgba(124,92,231,.3); }
.button.ghost { color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.button.ghost:hover { border-color: var(--primary-soft); box-shadow: var(--shadow-sm); }
.button.secondary { color: var(--primary-deep); background: var(--primary-soft); }
.hero-chips { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips span { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.68); color: #6D667B; font-size: 12px; }
.hero-visual { position: relative; min-height: 500px; }
.hero-visual::before { content: ""; position: absolute; inset: 7% -7% -7% 9%; border-radius: 38px; background: linear-gradient(145deg, var(--primary-soft), var(--pink-soft)); transform: rotate(3deg); }
.hero-visual img { position: relative; z-index: 2; width: 100%; height: 500px; object-fit: cover; border-radius: 38px 18px 38px 18px; box-shadow: var(--shadow-lg); }
.hero-note { position: absolute; z-index: 4; left: -28px; bottom: 34px; min-width: 250px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.7); border-radius: 16px; background: rgba(255,255,255,.9); box-shadow: var(--shadow-md); backdrop-filter: blur(10px); }
.hero-note strong, .hero-note span { display: block; }
.hero-note strong { color: var(--ink); font-size: 14px; }
.hero-note span { margin-top: 3px; color: var(--muted); font-size: 12px; }

.featured-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; align-items: stretch; }
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compact-grid .media-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 200px 1fr; }
.compact-grid .media-card:last-child .media-cover { min-height: 190px; }
.four-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.media-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 10px 28px rgba(36,34,53,.045); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.media-card:hover { transform: translateY(-4px); border-color: #D8CFF4; box-shadow: var(--shadow-md); }
.media-cover { position: relative; display: block; min-height: 230px; overflow: hidden; background: var(--surface-alt); }
.media-cover img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .45s ease; }
.media-card:hover .media-cover img { transform: scale(1.035); }
.media-type { position: absolute; left: 14px; top: 14px; z-index: 2; padding: 6px 9px; border-radius: 999px; background: rgba(36,34,53,.76); color: #fff; font-size: 11px; font-weight: 700; backdrop-filter: blur(8px); }
.media-body { padding: 20px; }
.media-body h3 { margin: 0; color: var(--ink); font-size: 18px; line-height: 1.35; }
.media-body h3 a:hover { color: var(--primary-deep); }
.media-body p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag-row span { padding: 4px 8px; border-radius: 8px; background: var(--surface-alt); color: #746D82; font-size: 11px; }
.featured-card { display: flex; flex-direction: column; }
.featured-card .media-cover { min-height: 430px; flex: 1; }
.featured-card .media-body { padding: 24px 26px; }
.featured-card .media-body h3 { font-size: 24px; }
.featured-card .media-body p { font-size: 15px; }

.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.portal-card { position: relative; min-height: 330px; overflow: hidden; border-radius: 28px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: end; isolation: isolate; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease; }
.portal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.portal-card > div { z-index: 2; padding: 34px 0 34px 34px; align-self: center; }
.portal-card > div > span { color: var(--primary-deep); font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.portal-card h3 { margin: 8px 0 10px; color: var(--ink); font-size: 30px; line-height: 1.18; }
.portal-card p { margin: 0; color: #625D70; font-size: 14px; line-height: 1.75; }
.portal-card img { align-self: stretch; width: 100%; height: 330px; object-fit: cover; mask-image: linear-gradient(to left, #000 65%, transparent 100%); }
.portal-video { background: linear-gradient(135deg, #F2EDFF, #FBF9FF); }
.portal-manga { background: linear-gradient(135deg, #F9EAF3, #FFF9FC); }

.home-info { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(340px,.9fr); gap: 32px; align-items: stretch; }
.info-panel { padding: 44px; border-radius: 28px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.info-panel::after { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; bottom: -90px; border-radius: 50%; background: rgba(232,183,216,.16); }
.info-panel .eyebrow { color: #D6CBFF; }
.info-panel h2 { margin: 0; max-width: 560px; font-size: 34px; line-height: 1.24; }
.info-panel p { max-width: 600px; margin: 16px 0 26px; color: #CFCAD9; }
.mini-topics { display: grid; gap: 12px; }
.mini-topics a { display: flex; flex-direction: column; justify-content: center; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: border-color .2s ease, transform .2s ease; }
.mini-topics a:hover { border-color: #CFC2F4; transform: translateX(4px); }
.mini-topics strong { color: var(--ink); font-size: 17px; }
.mini-topics span { margin-top: 3px; color: var(--muted); font-size: 13px; }

.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.faq-list details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 0 20px; }
.faq-list summary { cursor: pointer; list-style: none; color: var(--ink); font-weight: 720; padding: 20px 34px 20px 0; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 15px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-alt); color: var(--primary-deep); font-size: 18px; transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { margin: -2px 0 20px; color: var(--muted); font-size: 14px; }

.page-hero { padding: 52px 0 36px; }
.breadcrumb { margin-bottom: 24px; }
.breadcrumb ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: #B5AEBD; }
.breadcrumb a:hover { color: var(--primary-deep); }
.page-hero-grid { min-height: 390px; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(360px,.95fr); gap: 54px; align-items: center; padding: 46px; border-radius: 32px; background: linear-gradient(135deg, var(--surface-alt), #FCF9FE); border: 1px solid var(--line); }
.page-hero-grid.reverse { grid-template-columns: minmax(360px,.95fr) minmax(0,1.05fr); }
.page-hero-grid h1 { margin: 0; color: var(--ink); font-size: clamp(38px, 5vw, 60px); line-height: 1.08; letter-spacing: -.04em; }
.page-hero-grid p { max-width: 680px; margin: 20px 0 0; color: #625D70; font-size: 17px; }
.page-hero-grid img { width: 100%; height: 300px; border-radius: 24px; object-fit: cover; box-shadow: var(--shadow-sm); }
.watch-hero .page-hero-grid { background: linear-gradient(135deg, #EEE9FF, #FBF9FE 62%, #FCEBF5); }
.video-hero .page-hero-grid { background: linear-gradient(135deg, #F7ECF5, #F4F0FB); }
.manga-hero .page-hero-grid { background: linear-gradient(135deg, #F7EAF3, #FBF8FC 58%, #ECE7FB); }
.site-hero .page-hero-grid { background: linear-gradient(135deg, #F0ECF9, #FBFAFD); }
.creation-hero .page-hero-grid { background: linear-gradient(135deg, #EFEAFF, #F9EEF5); }
.recommend-hero .page-hero-grid { background: linear-gradient(135deg, #FFF0E9, #F5F0FB 56%, #FAF9FD); }
.threed-hero .page-hero-grid { background: linear-gradient(135deg, #EDE9F8, #F3F0F9); }

.watch-index { width: min(var(--content-wide), calc(100% - 48px)); display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 46px; align-items: start; }
.watch-group { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.watch-group:first-of-type { border-top: 0; padding-top: 0; }
.watch-group header { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); gap: 30px; align-items: start; margin-bottom: 18px; }
.watch-group h3 { margin: 0; color: var(--ink); font-size: 25px; line-height: 1.3; }
.watch-group header p { margin: 0; color: var(--muted); font-size: 14px; }
.episode-list { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); }
.episode-row { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 18px 20px; border-top: 1px solid var(--line); }
.episode-row:first-child { border-top: 0; }
.episode-row > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.episode-row strong { color: var(--ink); font-size: 15px; }
.episode-row span { color: var(--muted); font-size: 13px; }
.episode-row time { color: var(--primary-deep); font-size: 12px; font-weight: 750; white-space: nowrap; }
.watch-aside { min-width: 0; }
.sticky-card { position: sticky; top: calc(var(--header-h) + 24px); padding: 24px; border-radius: 20px; background: var(--ink); color: #fff; }
.sticky-card .eyebrow { color: #D6CBFF; }
.sticky-card h2 { margin: 0 0 14px; font-size: 21px; }
.sticky-card a { display: block; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.12); color: #E8E4EF; font-size: 13px; }
.sticky-card a:hover { color: #fff; transform: translateX(2px); }

.text-grid { display: grid; gap: 20px; }
.two-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.three-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.text-entry { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.text-entry-kicker { margin-bottom: 10px; color: var(--accent); font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.text-entry h3 { margin: 0; color: var(--ink); font-size: 20px; line-height: 1.35; }
.text-entry p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.text-entry ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.text-entry li { position: relative; padding-left: 17px; color: #5E5968; font-size: 13px; }
.text-entry li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

.feature-split { display: grid; grid-template-columns: minmax(340px,.9fr) minmax(0,1.1fr); gap: 54px; align-items: center; }
.feature-image img { width: 100%; min-height: 430px; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow-md); }
.feature-copy h2 { margin: 0; color: var(--ink); font-size: clamp(30px,3.4vw,46px); line-height: 1.2; }
.feature-copy p { margin: 16px 0 0; color: #615B6B; }
.feature-copy .text-link { display: inline-block; margin-top: 22px; }

.manga-shelf { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.manga-book { min-width: 0; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease; }
.manga-book:hover { transform: translateY(-5px) rotate(-.25deg); box-shadow: var(--shadow-md); }
.manga-book img { width: 100%; height: 330px; object-fit: cover; }
.manga-book span { display: block; padding: 20px; }
.manga-book strong { display: block; color: var(--ink); font-size: 20px; }
.manga-book small { display: block; margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.manga-reading { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(360px,.95fr); gap: 58px; align-items: center; }
.reading-copy h2 { margin: 0; color: var(--ink); font-size: 40px; line-height: 1.2; }
.reading-copy p { color: #5F596A; }
.reading-art { margin: 0; }
.reading-art img { width: 100%; height: 510px; object-fit: cover; border-radius: 26px; }
.reading-art figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; }
.story-columns { columns: 3; column-gap: 36px; }
.story-columns p { break-inside: avoid; margin: 0 0 20px; color: #5D5768; }
.panel-demo { display: grid; grid-template-columns: 1.2fr .8fr .8fr; grid-auto-rows: 180px; gap: 12px; max-width: 900px; }
.panel { position: relative; display: grid; place-items: end start; padding: 16px; overflow: hidden; border: 2px solid var(--ink); background: linear-gradient(135deg, #F7F5FA, #DCD7E3); }
.panel::before { content: ""; position: absolute; width: 130px; height: 130px; border-radius: 50%; right: -24px; top: 24px; background: rgba(36,34,53,.12); }
.panel span { position: relative; z-index: 2; padding: 5px 8px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 720; }
.panel.tall { grid-row: span 2; }
.panel.wide { grid-column: span 2; }

.route-map { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.route { min-height: 170px; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.route:hover { transform: translateY(-3px); border-color: #CCBFF2; box-shadow: var(--shadow-sm); }
.route.primary-route { grid-row: span 2; min-height: 356px; background: linear-gradient(145deg, var(--primary), #9077E8); color: #fff; border-color: transparent; }
.route strong { font-size: 20px; color: var(--ink); }
.route span { margin-top: 6px; color: var(--muted); font-size: 13px; }
.route.primary-route strong { color: #fff; font-size: 30px; }
.route.primary-route span { color: #EEE9FF; }

.recommend-stack { display: grid; gap: 54px; }
.recommend-row { display: grid; grid-template-columns: minmax(340px,.9fr) minmax(0,1.1fr); gap: 52px; align-items: center; }
.recommend-row.reverse { grid-template-columns: minmax(0,1.1fr) minmax(340px,.9fr); }
.recommend-row.reverse img { order: 2; }
.recommend-row img { width: 100%; height: 380px; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow-sm); }
.recommend-row h2 { margin: 0; color: var(--ink); font-size: 34px; line-height: 1.22; }
.recommend-row p { color: var(--muted); }

.three-d-grid { display: grid; gap: 28px; }
.three-d-grid article { display: grid; grid-template-columns: minmax(360px,.9fr) minmax(0,1.1fr); gap: 42px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); }
.three-d-grid article:nth-child(even) { grid-template-columns: minmax(0,1.1fr) minmax(360px,.9fr); }
.three-d-grid article:nth-child(even) img { order: 2; }
.three-d-grid img { width: 100%; height: 310px; object-fit: cover; border-radius: 20px; }
.three-d-grid h2 { margin: 0; color: var(--ink); font-size: 31px; line-height: 1.25; }
.three-d-grid p { margin: 13px 0 0; color: var(--muted); }

.not-found { min-height: calc(100vh - 360px); width: min(780px, calc(100% - 48px)); margin: 0 auto; padding: 120px 0; text-align: center; }
.not-found .code { display: block; color: var(--primary); font-size: 96px; line-height: .95; font-weight: 900; letter-spacing: -.06em; }
.not-found h1 { margin: 22px 0 0; color: var(--ink); font-size: 38px; }
.not-found p { max-width: 560px; margin: 14px auto 0; color: var(--muted); }
.not-found .hero-actions { justify-content: center; }

.site-footer { margin-top: 80px; padding: 60px 0 24px; background: var(--ink); color: #EDEAF2; }
.footer-grid { width: min(var(--content-wide), calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 42px; }
.footer-brand { color: #fff; font-size: 24px; font-weight: 800; }
.footer-grid p { max-width: 420px; color: #BEB8C8; font-size: 13px; }
.footer-grid h2 { margin: 0 0 12px; color: #fff; font-size: 14px; }
.footer-grid > div:not(:first-child) a { display: block; padding: 6px 0; color: #BEB8C8; font-size: 13px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { width: min(var(--content-wide), calc(100% - 48px)); margin: 42px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 20px; color: #8F899A; font-size: 12px; }

@media (max-width: 1080px) {
    :root { --content: 940px; --content-wide: 1000px; }
    .hero { grid-template-columns: 1fr 420px; gap: 38px; }
    .hero-copy h1 { font-size: 52px; }
    .hero-visual, .hero-visual img { min-height: 430px; height: 430px; }
    .four-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .portal-card { grid-template-columns: 1fr; }
    .portal-card > div { padding: 30px 30px 0; }
    .portal-card img { height: 180px; mask-image: linear-gradient(to top, #000 60%, transparent 100%); }
    .page-hero-grid { gap: 34px; padding: 36px; }
    .watch-index { grid-template-columns: minmax(0,1fr) 260px; gap: 28px; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: 2 / 4; display: flex; gap: 18px; align-items: center; }
    .footer-grid > div:last-child h2 { margin: 0 10px 0 0; }
    .footer-grid > div:last-child a { padding: 0; }
}

@media (max-width: 860px) {
    :root { --header-h: 68px; }
    .header-inner { width: min(100% - 32px, var(--content-wide)); min-height: var(--header-h); }
    .brand-mark img { width: 42px; height: 42px; }
    .brand-mark small { display: none; }
    .menu-toggle { display: block; }
    .site-nav { position: absolute; left: 16px; right: 16px; top: calc(100% + 8px); display: none; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.98); box-shadow: var(--shadow-md); }
    .site-nav[data-open="true"] { display: grid; }
    .site-nav a { border-radius: 12px; padding: 12px 14px; }
    .hero { grid-template-columns: 1fr; padding-top: 48px; }
    .hero-copy h1 { max-width: 760px; font-size: clamp(42px, 8vw, 62px); }
    .hero-visual { width: min(640px, 100%); }
    .featured-layout { grid-template-columns: 1fr; }
    .featured-card .media-cover { min-height: 390px; }
    .portal-grid { grid-template-columns: 1fr; }
    .portal-card { grid-template-columns: 1.1fr .9fr; }
    .portal-card > div { padding: 30px 0 30px 30px; }
    .portal-card img { height: 290px; mask-image: linear-gradient(to left, #000 65%, transparent 100%); }
    .home-info { grid-template-columns: 1fr; }
    .mini-topics { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .faq-list { grid-template-columns: 1fr; }
    .page-hero-grid, .page-hero-grid.reverse { grid-template-columns: 1fr; min-height: 0; }
    .page-hero-grid.reverse img { order: 2; }
    .watch-index { grid-template-columns: 1fr; }
    .watch-aside { order: -1; }
    .sticky-card { position: static; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; background: var(--surface-alt); color: var(--ink); }
    .sticky-card .eyebrow, .sticky-card h2 { grid-column: 1 / -1; }
    .sticky-card .eyebrow { color: var(--primary-deep); }
    .sticky-card a { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); padding: 10px; text-align: center; }
    .feature-split { grid-template-columns: 1fr; }
    .manga-reading { grid-template-columns: 1fr; }
    .reading-art { max-width: 620px; }
    .story-columns { columns: 2; }
    .route-map { grid-template-columns: 1fr 1fr; }
    .route.primary-route { grid-row: span 1; min-height: 220px; grid-column: 1 / -1; }
    .recommend-row, .recommend-row.reverse { grid-template-columns: 1fr; gap: 26px; }
    .recommend-row.reverse img { order: 0; }
    .three-d-grid article, .three-d-grid article:nth-child(even) { grid-template-columns: 1fr; }
    .three-d-grid article:nth-child(even) img { order: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: auto; display: block; }
    .footer-grid > div:last-child h2 { margin: 0 0 12px; }
    .footer-grid > div:last-child a { padding: 6px 0; }
}

@media (max-width: 640px) {
    .section, .hero, .page-hero { width: min(100% - 28px, var(--content)); }
    .section { padding: 58px 0; }
    .section-wide, .watch-index { width: min(100% - 28px, var(--content-wide)); }
    .tone-soft { width: calc(100% - 16px); padding-left: 18px; padding-right: 18px; border-radius: 24px; }
    .hero { padding-top: 38px; padding-bottom: 58px; gap: 30px; }
    .hero-copy h1 { font-size: 42px; }
    .hero-copy > p { font-size: 16px; }
    .hero-actions { display: grid; grid-template-columns: 1fr; }
    .button { width: 100%; }
    .hero-visual, .hero-visual img { min-height: 360px; height: 360px; }
    .hero-visual::before { inset: 6% -4% -5% 6%; border-radius: 28px; }
    .hero-visual img { border-radius: 28px 14px 28px 14px; }
    .hero-note { left: 12px; right: 12px; bottom: 14px; min-width: 0; }
    .split-heading { align-items: flex-start; flex-direction: column; }
    .media-grid, .compact-grid, .four-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .compact-grid .media-card:last-child { grid-column: 1 / -1; display: block; }
    .media-cover, .compact-grid .media-card:last-child .media-cover { min-height: 200px; }
    .featured-card .media-cover { min-height: 330px; }
    .media-body { padding: 16px; }
    .media-body h3 { font-size: 16px; }
    .media-body p { font-size: 13px; }
    .featured-card .media-body h3 { font-size: 21px; }
    .portal-card { grid-template-columns: 1fr; min-height: 0; }
    .portal-card > div { padding: 24px 24px 12px; }
    .portal-card img { height: 210px; mask-image: linear-gradient(to top, #000 72%, transparent 100%); }
    .info-panel { padding: 30px 24px; }
    .info-panel h2 { font-size: 28px; }
    .mini-topics { grid-template-columns: 1fr; }
    .page-hero { padding-top: 34px; }
    .page-hero-grid { padding: 26px 22px; border-radius: 24px; }
    .page-hero-grid h1 { font-size: 40px; }
    .page-hero-grid p { font-size: 15px; }
    .page-hero-grid img { height: 250px; border-radius: 18px; }
    .sticky-card { grid-template-columns: 1fr; }
    .sticky-card .eyebrow, .sticky-card h2 { grid-column: auto; }
    .watch-group header { grid-template-columns: 1fr; gap: 10px; }
    .episode-row { grid-template-columns: 1fr; gap: 6px; }
    .two-grid, .three-grid { grid-template-columns: 1fr; }
    .feature-image img { min-height: 320px; }
    .manga-shelf { grid-template-columns: 1fr; }
    .manga-book { display: grid; grid-template-columns: 130px 1fr; }
    .manga-book img { height: 100%; min-height: 190px; }
    .reading-copy h2 { font-size: 32px; }
    .reading-art img { height: 400px; }
    .story-columns { columns: 1; }
    .panel-demo { grid-template-columns: 1fr 1fr; grid-auto-rows: 145px; }
    .panel.tall { grid-row: span 2; }
    .panel.wide { grid-column: span 2; }
    .route-map { grid-template-columns: 1fr; }
    .route.primary-route { grid-column: auto; min-height: 200px; }
    .route { min-height: 140px; }
    .recommend-row img { height: 300px; }
    .recommend-row h2 { font-size: 28px; }
    .three-d-grid article { padding: 18px; }
    .three-d-grid img { height: 250px; }
    .three-d-grid h2 { font-size: 26px; }
    .not-found { width: calc(100% - 28px); padding: 80px 0; }
    .not-found .code { font-size: 76px; }
    .footer-grid { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { width: calc(100% - 32px); flex-direction: column; gap: 4px; }
}

@media (max-width: 420px) {
    .header-inner { width: calc(100% - 24px); }
    .brand-mark { min-width: 0; }
    .brand-mark strong { font-size: 16px; }
    .hero-copy h1 { font-size: 36px; }
    .media-grid, .compact-grid, .four-grid { grid-template-columns: 1fr; }
    .featured-card .media-cover, .media-cover, .compact-grid .media-card:last-child .media-cover { min-height: 250px; }
    .manga-book { grid-template-columns: 105px 1fr; }
    .manga-book strong { font-size: 17px; }
    .panel-demo { display: block; }
    .panel { min-height: 150px; margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media print {
    .site-header, .site-footer, .hero-actions, .menu-toggle, .watch-aside { display: none !important; }
    body { background: #fff; color: #000; font-size: 11pt; }
    main { overflow: visible; }
    .section, .hero, .page-hero, .section-wide, .watch-index, .tone-soft { width: 100%; padding: 20px 0; margin: 0; background: #fff; }
    .media-card, .text-entry, .page-hero-grid, .route, .three-d-grid article { box-shadow: none; border: 1px solid #bbb; break-inside: avoid; }
    a { color: #000; text-decoration: none; }
}

:focus-visible { outline: 3px solid rgba(124,92,231,.42); outline-offset: 3px; border-radius: 6px; }

/* Progressive enhancement: images are supplied separately, so missing files never collapse layout. */
.image-missing { background: linear-gradient(135deg, var(--surface-alt), var(--pink-soft)); color: transparent; }
.reveal-ready { opacity: 0; transform: translateY(14px); }
.reveal-ready.reveal-visible { opacity: 1; transform: translateY(0); transition: opacity .45s ease, transform .45s ease; }
@media (prefers-reduced-motion: reduce) { .reveal-ready { opacity: 1; transform: none; } }

.guide-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.guide-card {
    position: relative;
    min-height: 230px;
    padding: 26px 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
}
.guide-card::after {
    content: "";
    position: absolute;
    width: 86px;
    height: 86px;
    right: -24px;
    bottom: -24px;
    border-radius: 50%;
    background: var(--primary-soft);
    opacity: .7;
}
.guide-card:nth-child(2)::after { background: var(--pink-soft); }
.guide-card:nth-child(3)::after { background: #FDE8DE; }
.guide-card:nth-child(4)::after { background: #E8EDF9; }
.guide-card h3 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--ink);
    font-size: 19px;
    line-height: 1.35;
}
.guide-card p {
    position: relative;
    z-index: 1;
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.video-notes { padding-top: 72px; }
.spotlight-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line-strong);
}
.spotlight-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 34px;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
}
.spotlight-item > span {
    align-self: start;
    display: inline-flex;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 999px;
    background: var(--surface-alt);
    color: var(--primary-deep);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}
.spotlight-item h3 {
    margin: 0;
    color: var(--ink);
    font-size: 23px;
    line-height: 1.35;
}
.spotlight-item p {
    margin: 10px 0 0;
    color: #5F596A;
}
.spotlight-item .spotlight-detail {
    color: var(--muted);
    font-size: 14px;
}

.manga-note-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.manga-note {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 4px 18px;
    align-items: start;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
}
.manga-note > span {
    grid-row: 1 / span 2;
    color: var(--pink);
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.06em;
}
.manga-note h3 {
    margin: 0;
    color: var(--ink);
    font-size: 19px;
    line-height: 1.4;
}
.manga-note p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.85;
}

@media (max-width: 980px) {
    .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .spotlight-item { grid-template-columns: 120px minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 700px) {
    .manga-note-grid { grid-template-columns: 1fr; }
    .spotlight-item { grid-template-columns: 1fr; gap: 12px; }
    .spotlight-item > span { justify-self: start; }
}
@media (max-width: 520px) {
    .guide-grid { grid-template-columns: 1fr; }
    .guide-card { min-height: 0; }
    .manga-note { grid-template-columns: 44px minmax(0, 1fr); padding: 22px 18px; }
    .manga-note > span { font-size: 24px; }
}
