:root {
    --ftw-paper: #fbf1d2;
    --ftw-paper-deep: #f0d79a;
    --ftw-cream: #fffaf0;
    --ftw-ink: #1d2430;
    --ftw-muted: #657084;
    --ftw-navy: #182944;
    --ftw-teal: #0b6964;
    --ftw-red: #c34b36;
    --ftw-yellow: #f3c848;
    --ftw-green: #d5e7d1;
    --ftw-line: rgba(29, 36, 48, 0.14);
    --ftw-shadow: 0 24px 70px rgba(24, 41, 68, 0.16);
    --ftw-paw-print: rgba(24, 41, 68, 0.34);
    --ftw-radius: 22px;
    --ftw-container: min(1120px, calc(100% - 40px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ftw-ink);
    background: var(--ftw-cream);
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    letter-spacing: 0.01em;
}

body[data-ftw-theme="day"] {
    --ftw-paper: #fbf1d2;
    --ftw-paper-deep: #f0d79a;
    --ftw-cream: #fffaf0;
    --ftw-ink: #1d2430;
    --ftw-muted: #657084;
    --ftw-navy: #182944;
    --ftw-teal: #0b6964;
    --ftw-red: #c34b36;
    --ftw-yellow: #f3c848;
    --ftw-line: rgba(29, 36, 48, 0.14);
    --ftw-shadow: 0 24px 70px rgba(24, 41, 68, 0.16);
    --ftw-paw-print: rgba(24, 41, 68, 0.32);
}

body[data-ftw-theme="night"] {
    --ftw-paper: #e7edf7;
    --ftw-paper-deep: #c9d8ed;
    --ftw-cream: #f6f8ff;
    --ftw-ink: #172234;
    --ftw-muted: #5e6e87;
    --ftw-navy: #1b3155;
    --ftw-teal: #0b746f;
    --ftw-red: #b84b54;
    --ftw-yellow: #f4ce64;
    --ftw-line: rgba(27, 49, 85, 0.16);
    --ftw-shadow: 0 24px 70px rgba(27, 49, 85, 0.18);
    --ftw-paw-print: rgba(27, 49, 85, 0.3);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    background:
        linear-gradient(90deg, rgba(24, 41, 68, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(24, 41, 68, 0.028) 1px, transparent 1px),
        var(--ftw-cream);
    background-size: 34px 34px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: var(--ftw-container);
    margin-inline: auto;
}

.container--narrow {
    max-width: 820px;
}

.screen-reader-text,
.skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 10px 14px;
    color: #fff;
    background: var(--ftw-navy);
    border-radius: 999px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 250, 240, 0.84);
    border-bottom: 1px solid rgba(29, 36, 48, 0.08);
    backdrop-filter: blur(18px);
    transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
    background: rgba(255, 250, 240, 0.96);
    box-shadow: 0 12px 30px rgba(24, 41, 68, 0.08);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 76px;
    gap: 18px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 1 280px;
    min-width: 0;
    font-weight: 800;
}

.site-brand__mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.08em;
    background: var(--ftw-navy);
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    box-shadow: 0 6px 0 var(--ftw-yellow);
}

.site-brand__text {
    display: grid;
    line-height: 1.18;
}

.site-brand__series {
    color: var(--ftw-muted);
    font-size: 12px;
    letter-spacing: 0.14em;
}

.site-brand__title {
    font-size: 18px;
}

.site-brand__title-logo,
.custom-logo {
    width: min(240px, 100%);
    height: auto;
}

.site-header__actions {
    order: 3;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 6px;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    gap: 7px;
    padding: 8px 13px;
    color: var(--ftw-navy);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--ftw-line);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(24, 41, 68, 0.08);
    cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    background: #fff;
    color: var(--ftw-red);
}

.theme-toggle__icon {
    font-size: 16px;
    line-height: 1;
}

.site-nav__list,
.site-footer__links {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: var(--ftw-ink);
    font-size: 14px;
    font-weight: 700;
}

.site-nav {
    order: 2;
    margin-left: auto;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
    color: var(--ftw-red);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    background: #fff;
    border: 1px solid var(--ftw-line);
    border-radius: 999px;
}

.nav-toggle__line,
.nav-toggle__line::before,
.nav-toggle__line::after {
    display: block;
    width: 18px;
    height: 2px;
    margin-inline: auto;
    content: "";
    background: var(--ftw-ink);
    border-radius: 999px;
    transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle__line::before {
    transform: translateY(-6px);
}

.nav-toggle__line::after {
    transform: translateY(4px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line {
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line::before {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line::after {
    transform: translateY(-2px) rotate(-90deg);
}

.notice-strip {
    color: #fff;
    background: var(--ftw-navy);
}

.notice-strip__inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-block: 10px;
    font-size: 14px;
}

.notice-strip__label,
.label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.06em;
    background: var(--ftw-red);
    border-radius: 999px;
}

.label--muted {
    background: var(--ftw-muted);
}

.notice-strip__link {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.notice-strip__link:hover span {
    text-decoration: underline;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 78px 0 86px;
    background:
        radial-gradient(circle at 78% 18%, rgba(243, 200, 72, 0.32), transparent 32%),
        radial-gradient(circle at 10% 18%, rgba(11, 105, 100, 0.12), transparent 28%),
        linear-gradient(135deg, #fff7dc 0%, #fffaf0 54%, #f5ead4 100%);
}

body[data-ftw-theme="night"] .site-header {
    background: rgba(246, 248, 255, 0.86);
}

body[data-ftw-theme="night"] .site-header.is-scrolled {
    background: rgba(246, 248, 255, 0.96);
}

body[data-ftw-theme="night"] .hero {
    background:
        radial-gradient(circle at 78% 18%, rgba(244, 206, 100, 0.34), transparent 30%),
        radial-gradient(circle at 14% 16%, rgba(93, 168, 181, 0.18), transparent 28%),
        linear-gradient(135deg, #ecf4ff 0%, #f6f8ff 52%, #dde9fb 100%);
}

.hero__texture {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.34;
    background-image:
        linear-gradient(30deg, transparent 47%, rgba(195, 75, 54, 0.18) 48%, transparent 50%),
        linear-gradient(150deg, transparent 46%, rgba(11, 105, 100, 0.16) 48%, transparent 52%);
    background-size: 160px 160px, 230px 230px;
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
    align-items: center;
    gap: 58px;
}

.hero__logo {
    width: min(420px, 100%);
    margin: 0 0 20px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--ftw-red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero h1,
.section h2,
.page-hero h1 {
    margin: 0;
    color: var(--ftw-navy);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "YuMincho", serif;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(40px, 6vw, 72px);
}

.hero__lead {
    max-width: 640px;
    margin: 24px 0 0;
    color: #374052;
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.9;
}

.hero-scene {
    position: relative;
    width: min(100%, 470px);
    margin-inline: auto;
    min-height: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.9), transparent 58%),
        #fffaf0;
    border: 1px solid rgba(24, 41, 68, 0.12);
    border-radius: 28px;
    box-shadow: var(--ftw-shadow);
    aspect-ratio: 3 / 4;
}

.hero-scene::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 52%),
        linear-gradient(0deg, rgba(24, 41, 68, 0.14), transparent 42%);
}

.hero-scene__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-scene__image--night {
    display: none;
}

body[data-ftw-theme="night"] .hero-scene__image--day {
    display: none;
}

body[data-ftw-theme="night"] .hero-scene__image--night {
    display: block;
}

.hero-scene__badge {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    padding: 7px 11px;
    color: var(--ftw-navy);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(24, 41, 68, 0.14);
    border-radius: 999px;
}

.hero__actions,
.book-card__actions,
.section__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    border: 2px solid transparent;
    border-radius: 999px;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button--primary {
    color: #fff;
    background: var(--ftw-red);
    box-shadow: 0 10px 20px rgba(195, 75, 54, 0.22);
}

.button--primary:hover,
.button--primary:focus-visible {
    background: #a93e2d;
}

.button--ghost {
    color: var(--ftw-navy);
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(24, 41, 68, 0.16);
}

.button--ghost:hover,
.button--ghost:focus-visible {
    background: #fff;
    box-shadow: 0 10px 20px rgba(24, 41, 68, 0.08);
}

.case-board {
    position: relative;
    min-height: 520px;
    padding: 38px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(24, 41, 68, 0.1);
    border-radius: 34px;
    box-shadow: var(--ftw-shadow);
}

.case-board::before {
    position: absolute;
    inset: 22px;
    content: "";
    pointer-events: none;
    border: 2px dashed rgba(24, 41, 68, 0.16);
    border-radius: 26px;
}

.case-board__pin {
    position: absolute;
    z-index: 4;
    width: 18px;
    height: 18px;
    background: var(--ftw-red);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(29, 36, 48, 0.18);
}

.case-board__pin--one {
    top: 38px;
    left: 58px;
}

.case-board__pin--two {
    right: 66px;
    bottom: 90px;
}

.case-board__thread {
    position: absolute;
    top: 74px;
    left: 72px;
    width: 72%;
    height: 2px;
    background: rgba(195, 75, 54, 0.72);
    transform: rotate(31deg);
    transform-origin: left center;
}

.hero-books {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 430px;
}

.hero-book {
    width: min(48%, 220px);
    filter: drop-shadow(0 18px 28px rgba(24, 41, 68, 0.2));
    transition: transform 200ms ease;
}

.hero-book:hover,
.hero-book:focus-visible {
    transform: translateY(-8px) rotate(0deg) !important;
}

.hero-book--bowling {
    transform: translate(18px, -6px) rotate(-7deg);
}

.hero-book--lab {
    margin-left: -34px;
    transform: translate(-2px, 22px) rotate(7deg);
}

.evidence-card {
    position: absolute;
    z-index: 5;
    padding: 9px 12px;
    color: var(--ftw-navy);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    background: var(--ftw-yellow);
    border: 1px solid rgba(24, 41, 68, 0.14);
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(24, 41, 68, 0.12);
}

.evidence-card--paw {
    right: 30px;
    top: 112px;
    transform: rotate(7deg);
}

.evidence-card--memo {
    left: 24px;
    bottom: 118px;
    background: #fff;
    transform: rotate(-5deg);
}

.evidence-card--stamp {
    right: 54px;
    bottom: 38px;
    color: var(--ftw-red);
    background: transparent;
    border: 3px solid var(--ftw-red);
    border-radius: 6px;
    transform: rotate(-8deg);
}

.pop-contest-promo {
    padding: 34px 0;
    background: linear-gradient(180deg, rgba(255, 250, 240, 0.2) 0%, var(--ftw-paper) 100%);
    border-top: 1px solid rgba(24, 41, 68, 0.08);
}

.pop-contest-promo__card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(210px, 0.38fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    min-height: 172px;
    padding: 18px 24px 18px 18px;
    overflow: hidden;
    color: var(--ftw-navy);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 48%, rgba(255, 250, 240, 0.78) 100%);
    border: 1px solid rgba(24, 41, 68, 0.12);
    border-radius: 26px;
    box-shadow: 0 18px 42px rgba(24, 41, 68, 0.12);
}

.pop-contest-promo__card:hover,
.pop-contest-promo__card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 22px 50px rgba(24, 41, 68, 0.16);
}

.pop-contest-promo__media {
    min-height: 132px;
    background:
        linear-gradient(90deg, rgba(24, 41, 68, 0.02), rgba(24, 41, 68, 0.08)),
        url("../images/banners/pop-contest-visual.png") center center / cover;
    border-radius: 20px;
}

.pop-contest-promo__content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 4px;
}

.pop-contest-promo__eyebrow {
    color: var(--ftw-red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.pop-contest-promo__title {
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "YuMincho", serif;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 900;
    line-height: 1.15;
}

.pop-contest-promo__text {
    color: #384253;
    font-weight: 700;
}

.pop-contest-promo__action {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 16px;
    color: #fff;
    font-weight: 900;
    white-space: nowrap;
    background: var(--ftw-red);
    border-radius: 999px;
}

.section {
    padding: 86px 0;
}

.section--paper {
    background: var(--ftw-paper);
    border-block: 1px solid rgba(24, 41, 68, 0.08);
}

.section--cases {
    background: linear-gradient(180deg, #fffaf0 0%, #f6efe4 100%);
}

.section--characters {
    background: #fff;
}

.section--method {
    background: var(--ftw-navy);
}

.section--books {
    background: var(--ftw-cream);
}

.section--creator {
    background: var(--ftw-paper);
}

.section--fan-letters {
    background:
        radial-gradient(circle at 16% 18%, rgba(243, 200, 72, 0.2), transparent 25%),
        linear-gradient(180deg, #fffdf8 0%, #eef7f4 100%);
}

.section--news,
.section--archive,
.section--detail {
    background: #fffaf0;
}

.section__grid {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 54px;
}

.section__header h2 {
    font-size: clamp(30px, 4vw, 48px);
}

.section__header p,
.section__body p {
    color: #384253;
}

.section__header--center {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.section__header--center p:last-child {
    margin: 18px auto 0;
}

.book-awards {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    gap: 8px;
    padding: 9px 16px;
    color: var(--ftw-navy);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.5;
    background: rgba(243, 200, 72, 0.3);
    border: 1px solid rgba(24, 41, 68, 0.12);
    border-radius: 999px;
}

.book-awards a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.book-awards--summer {
    background: rgba(213, 231, 209, 0.8);
}

.case-grid,
.character-grid,
.method-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.case-grid--series {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-card,
.character-card,
.method-card,
.book-card,
.creator-card,
.news-item,
.content-body {
    border: 1px solid rgba(24, 41, 68, 0.12);
    box-shadow: 0 18px 48px rgba(24, 41, 68, 0.09);
}

.case-card {
    position: relative;
    min-height: 100%;
    padding: 28px;
    background: #fff;
    border-radius: var(--ftw-radius);
}

.case-card::after {
    position: absolute;
    right: 22px;
    bottom: 18px;
    color: rgba(24, 41, 68, 0.08);
    content: "CASE";
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
}

.case-card--serial {
    background:
        linear-gradient(180deg, rgba(243, 200, 72, 0.18), transparent 58%),
        #fff;
}

.case-card--coming-soon {
    background:
        linear-gradient(180deg, rgba(11, 105, 100, 0.12), transparent 58%),
        #fff;
}

.case-card--serial::after {
    content: "NEWS";
}

.case-card--coming-soon::after {
    content: "NEXT";
}

.case-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.case-card__number,
.case-card__place,
.book-card__volume {
    color: var(--ftw-red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.case-card__place {
    color: var(--ftw-teal);
}

.case-card h3,
.book-card h3,
.character-card h3,
.creator-card h3,
.news-item h2,
.news-item h3 {
    margin: 0;
    color: var(--ftw-navy);
    line-height: 1.35;
}

.case-card h3 {
    font-size: clamp(22px, 2.2vw, 25px);
}

.case-card p,
.character-card p,
.method-step p,
.book-card p,
.creator-card p,
.news-item p {
    color: #425066;
}

.case-card__facts,
.book-meta {
    display: grid;
    gap: 10px;
    margin: 24px 0;
}

.case-card__facts div,
.book-meta div {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(24, 41, 68, 0.16);
}

.case-card__facts dt,
.book-meta dt {
    color: var(--ftw-muted);
    font-size: 13px;
    font-weight: 800;
}

.case-card__facts dd,
.book-meta dd {
    margin: 0;
    font-weight: 700;
}

.text-link {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ftw-teal);
    font-weight: 900;
}

.text-link::after {
    content: "→";
}

.character-card {
    padding: 30px;
    background: #fffaf0;
    border-radius: var(--ftw-radius);
}

.character-card__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    background: var(--ftw-navy);
    border-radius: 18px;
    transform: rotate(-4deg);
}

.character-card__icon--paw {
    background: var(--ftw-teal);
}

.character-card__icon--image {
    width: 74px;
    height: 74px;
    overflow: hidden;
    background: #fff;
    border: 3px solid #fff;
    border-radius: 999px;
    box-shadow: 0 14px 28px rgba(24, 41, 68, 0.16);
    transform: none;
}

.character-card__icon--image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.method-card {
    display: grid;
    grid-template-columns: 0.9fr 1.2fr;
    gap: 34px;
    padding: 38px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent),
        var(--ftw-navy);
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    box-shadow: none;
}

.method-card h2,
.method-card h3 {
    color: #fff;
}

.method-card .eyebrow {
    color: var(--ftw-yellow);
}

.method-step {
    padding: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
}

.method-step span {
    display: block;
    color: var(--ftw-yellow);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.method-step p {
    color: rgba(255, 255, 255, 0.78);
}

.book-list {
    display: grid;
    gap: 28px;
}

.book-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 34px;
    align-items: center;
    padding: 28px;
    background: #fff;
    border-radius: 30px;
}

.book-card__image {
    display: grid;
    place-items: center;
    min-height: 310px;
    background:
        radial-gradient(circle at 50% 40%, rgba(243, 200, 72, 0.28), transparent 44%),
        #f6efe4;
    border: 1px dashed rgba(24, 41, 68, 0.18);
    border-radius: 24px;
}

.book-card__image img {
    max-height: 292px;
    filter: drop-shadow(0 18px 22px rgba(24, 41, 68, 0.14));
}

.book-card__volume {
    margin: 0 0 10px;
}

.book-card h3 {
    font-size: clamp(26px, 3vw, 38px);
}

.book-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.book-meta div {
    grid-template-columns: 56px 1fr;
}

.creator-card {
    display: grid;
    grid-template-columns: 0.6fr 1fr;
    gap: 34px;
    padding: 36px;
    background: #fff;
    border-radius: 30px;
}

.creator-card__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.creator-card__grid > div + div {
    padding-top: 26px;
    border-top: 1px dashed rgba(24, 41, 68, 0.16);
}

.creator-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.creator-card__links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 14px;
    color: var(--ftw-teal);
    font-size: 14px;
    font-weight: 900;
    background: rgba(11, 105, 100, 0.08);
    border: 1px solid rgba(11, 105, 100, 0.18);
    border-radius: 999px;
}

.creator-card__links a:hover,
.creator-card__links a:focus-visible {
    color: #fff;
    background: var(--ftw-teal);
}

.fan-letter-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.fan-letter-card {
    position: relative;
    min-height: 100%;
    padding: 28px;
    color: #425066;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 240, 0.96)),
        #fff;
    border: 1px solid rgba(24, 41, 68, 0.12);
    border-radius: var(--ftw-radius);
    box-shadow: 0 18px 48px rgba(24, 41, 68, 0.09);
}

.fan-letter-card::before {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 46px;
    height: 38px;
    background:
        linear-gradient(135deg, transparent 48%, rgba(24, 41, 68, 0.12) 49%, rgba(24, 41, 68, 0.12) 52%, transparent 53%),
        rgba(243, 200, 72, 0.18);
    border: 1px solid rgba(24, 41, 68, 0.12);
    border-radius: 6px;
    content: "";
}

.fan-letter-card__mark {
    margin-bottom: 16px;
    color: var(--ftw-red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.fan-letter-card h3 {
    margin: 0 56px 14px 0;
    color: var(--ftw-navy);
    font-size: clamp(21px, 2.2vw, 25px);
    line-height: 1.35;
}

.fan-letter-card__body {
    font-size: 16px;
    line-height: 1.9;
}

.fan-letter-card__body h5 {
    margin: 1.4em 0 0.75em;
    color: var(--ftw-teal);
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.45;
}

.fan-letter-card__body h5::before {
    content: "CHECK";
    display: inline-block;
    margin-right: 0.75em;
    padding: 0.12em 0.55em;
    color: #fff;
    font-size: 0.68em;
    font-weight: 900;
    letter-spacing: 0.08em;
    vertical-align: 0.15em;
    background: var(--ftw-teal);
    border-radius: 999px;
}

.fan-letter-card__body > *:last-child {
    margin-bottom: 0;
}

.news-list {
    display: grid;
    gap: 16px;
}

.news-list--front {
    max-width: 850px;
    margin: 0 auto;
}

.news-item {
    background: #fff;
    border-radius: 20px;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.news-item:hover,
.news-item:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 24px 60px rgba(24, 41, 68, 0.12);
}

.news-item a {
    display: grid;
    gap: 8px;
    padding: 22px 24px;
}

.news-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--ftw-muted);
    font-size: 13px;
    font-weight: 800;
}

.empty-message {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px;
    color: var(--ftw-muted);
    text-align: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px dashed rgba(24, 41, 68, 0.16);
    border-radius: 20px;
}

.page-hero {
    padding: 78px 0 58px;
    background:
        radial-gradient(circle at 80% 10%, rgba(243, 200, 72, 0.26), transparent 26%),
        linear-gradient(135deg, #fff7dc 0%, #fffaf0 100%);
    border-bottom: 1px solid rgba(24, 41, 68, 0.08);
}

.page-hero__inner {
    max-width: 860px;
}

.page-hero h1 {
    font-size: clamp(38px, 5vw, 60px);
}

.page-hero p:not(.eyebrow) {
    max-width: 720px;
    color: #425066;
    font-size: 18px;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.category-filter__item {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    color: var(--ftw-navy);
    font-weight: 800;
    background: #fff;
    border: 1px solid var(--ftw-line);
    border-radius: 999px;
}

.category-filter__item.is-active,
.category-filter__item:hover,
.category-filter__item:focus-visible {
    color: #fff;
    background: var(--ftw-navy);
}

.news-list--archive {
    gap: 18px;
}

.news-item--archive a {
    padding: 28px;
}

.news-item--archive h2 {
    font-size: clamp(22px, 3vw, 30px);
}

.pagination {
    margin-top: 34px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 12px;
    color: var(--ftw-navy);
    font-weight: 800;
    background: #fff;
    border: 1px solid var(--ftw-line);
    border-radius: 999px;
}

.page-numbers.current {
    color: #fff;
    background: var(--ftw-red);
    border-color: var(--ftw-red);
}

.news-detail__meta {
    margin-bottom: 14px;
}

.news-detail__thumbnail {
    margin: 0 0 28px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--ftw-shadow);
}

.content-body {
    padding: 38px;
    background: #fff;
    border-radius: 26px;
}

.content-body > *:first-child {
    margin-top: 0;
}

.content-body > *:last-child {
    margin-bottom: 0;
}

.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
    margin: 1.9em 0 0.75em;
    color: var(--ftw-navy);
    line-height: 1.35;
}

.content-body h1 {
    margin: 0 0 1em;
    color: var(--ftw-navy);
    font-size: clamp(30px, 5vw, 42px);
    line-height: 1.25;
}

.content-body h2 {
    position: relative;
    padding: 0.48em 0.72em 0.48em 1em;
    font-size: clamp(25px, 3.5vw, 34px);
    background: linear-gradient(90deg, rgba(243, 200, 72, 0.34), rgba(213, 231, 209, 0.2));
    border-left: 8px solid var(--ftw-red);
    border-radius: 14px;
}

.content-body h3 {
    display: inline-block;
    padding-bottom: 0.2em;
    font-size: clamp(22px, 3vw, 28px);
    border-bottom: 4px solid var(--ftw-yellow);
}

.content-body h4 {
    padding-left: 0.85em;
    font-size: clamp(19px, 2.3vw, 23px);
    border-left: 4px solid var(--ftw-teal);
}

.content-body h5 {
    font-size: clamp(17px, 2vw, 20px);
    color: var(--ftw-teal);
}

.content-body h5::before {
    content: "CHECK";
    display: inline-block;
    margin-right: 0.75em;
    padding: 0.12em 0.55em;
    color: #fff;
    font-size: 0.68em;
    font-weight: 900;
    letter-spacing: 0.08em;
    vertical-align: 0.15em;
    background: var(--ftw-teal);
    border-radius: 999px;
}

.content-body h6 {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: var(--ftw-muted);
    text-transform: uppercase;
}

.content-body a {
    color: var(--ftw-red);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.content-body ul,
.content-body ol {
    padding-left: 1.4em;
}

.pop-form {
    display: grid;
    gap: 18px;
    margin-top: 28px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--ftw-line);
    border-radius: 22px;
}

.pop-form__field {
    display: grid;
    gap: 8px;
    margin: 0;
}

.pop-form__group {
    display: grid;
    gap: 16px;
    min-width: 0;
    padding: 18px;
    margin: 0;
    border: 1px solid var(--ftw-line);
    border-radius: 16px;
}

.pop-form__group legend {
    padding: 0 8px;
    color: var(--ftw-navy);
    font-weight: 900;
}

.pop-form__field--hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.pop-form label {
    color: var(--ftw-navy);
    font-weight: 900;
}

.pop-form label span {
    display: inline-block;
    margin-left: 0.45em;
    padding: 0.08em 0.5em;
    color: #fff;
    font-size: 0.72em;
    background: var(--ftw-red);
    border-radius: 999px;
}

.pop-form input,
.pop-form select,
.pop-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--ftw-ink);
    background: #fffaf0;
    border: 1px solid var(--ftw-line);
    border-radius: 12px;
}

.pop-form input[type="file"] {
    padding: 12px;
    background: #fff;
}

.pop-form small {
    color: var(--ftw-muted);
    line-height: 1.6;
}

.pop-form__check {
    margin: 0;
    padding: 14px 16px;
    background: rgba(213, 231, 209, 0.5);
    border-radius: 14px;
}

.pop-form__check label {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px;
    font-weight: 800;
    line-height: 1.7;
}

.pop-form__check input {
    width: 18px;
    min-height: 18px;
    margin-top: 0.45em;
    padding: 0;
}

.pop-form__actions {
    margin: 4px 0 0;
}

.pop-form__notice {
    margin: 0 0 18px;
    padding: 14px 16px;
    font-weight: 800;
    border-radius: 14px;
}

.pop-form__notice--success {
    color: var(--ftw-teal);
    background: rgba(213, 231, 209, 0.7);
}

.pop-form__notice--error {
    color: var(--ftw-red);
    background: rgba(195, 75, 54, 0.1);
}

.single-nav {
    margin-top: 28px;
}

.site-footer {
    color: #fff;
    background: var(--ftw-navy);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    padding: 46px 0 24px;
}

.site-footer__label {
    margin: 0 0 8px;
    color: var(--ftw-yellow);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.site-footer__title {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
}

.site-footer__copy {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer__links a {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 800;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
    color: var(--ftw-yellow);
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 28px;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 560ms ease, transform 560ms ease;
    transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.paw-trail {
    position: fixed;
    inset: 0;
    z-index: 90;
    overflow: hidden;
    pointer-events: none;
    contain: layout paint;
}

.paw-trail__print {
    position: absolute;
    width: 24px;
    height: 30px;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--paw-rotation, 0deg)) scale(0.82);
    animation: paw-print-life 14s ease-out forwards;
}

.paw-trail__print::before,
.paw-trail__print::after {
    position: absolute;
    content: "";
    background: var(--ftw-paw-print);
}

.paw-trail__print::before {
    left: 7px;
    bottom: 2px;
    width: 11px;
    height: 15px;
    border-radius: 56% 56% 48% 48%;
    transform: rotate(7deg);
}

.paw-trail__print::after {
    top: 2px;
    left: 9px;
    width: 6px;
    height: 7px;
    border-radius: 50%;
    box-shadow:
        -8px 6px 0 var(--ftw-paw-print),
        8px 6px 0 var(--ftw-paw-print),
        -3px -1px 0 var(--ftw-paw-print),
        3px -1px 0 var(--ftw-paw-print);
}

@keyframes paw-print-life {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--paw-rotation, 0deg)) scale(0.58);
    }

    9% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(var(--paw-rotation, 0deg)) scale(1);
    }

    62% {
        opacity: 0.42;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--paw-rotation, 0deg)) scale(0.96);
    }
}

@media (max-width: 980px) {
    .hero__inner,
    .section__grid,
    .method-card,
    .creator-card {
        grid-template-columns: 1fr;
    }

    .hero__inner {
        gap: 38px;
    }

    .case-grid,
    .fan-letter-list,
    .method-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .character-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .book-card {
        grid-template-columns: 220px 1fr;
    }

    .site-brand {
        flex-basis: 220px;
    }

    .site-brand__title-logo {
        max-width: 220px;
    }

    .hero-scene {
        width: min(100%, 420px);
        aspect-ratio: 3 / 4;
    }

    .pop-contest-promo__card {
        grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
    }

    .pop-contest-promo__action {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 760px) {
    :root {
        --ftw-container: min(100% - 28px, 1120px);
    }

    body {
        font-size: 15px;
    }

    .site-header__inner {
        min-height: 68px;
        gap: 10px;
    }

    .site-brand {
        flex: 1 1 auto;
    }

    .site-brand__title-logo {
        max-width: 172px;
    }

    .site-brand__mark {
        width: 42px;
        height: 42px;
        font-size: 11px;
    }

    .site-brand__series {
        font-size: 10px;
    }

    .site-brand__title {
        font-size: 15px;
    }

    .nav-toggle {
        display: inline-grid;
        place-items: center;
        flex: 0 0 auto;
    }

    .site-header__actions {
        gap: 8px;
        margin-left: 0;
    }

    .theme-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 0;
    }

    .theme-toggle__text {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .site-nav {
        position: fixed;
        top: 68px;
        right: 14px;
        left: 14px;
        display: none;
        padding: 16px;
        background: #fff;
        border: 1px solid var(--ftw-line);
        border-radius: 20px;
        box-shadow: var(--ftw-shadow);
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav__list {
        display: grid;
        gap: 4px;
    }

    .site-nav a {
        min-height: 44px;
        padding: 6px 10px;
        border-radius: 12px;
    }

    .site-nav a:hover,
    .site-nav a:focus-visible {
        background: var(--ftw-paper);
    }

    .notice-strip__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .hero {
        padding: 54px 0 62px;
    }

    .hero h1 {
        font-size: clamp(34px, 11vw, 48px);
    }

    .hero__lead {
        font-size: 16px;
    }

    .hero__logo {
        width: min(300px, 100%);
        margin-bottom: 16px;
    }

    .hero__actions,
    .book-card__actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .hero-scene {
        border-radius: 22px;
        width: min(100%, 360px);
        aspect-ratio: 3 / 4;
    }

    .hero-scene__badge {
        right: 12px;
        bottom: 12px;
    }

    .pop-contest-promo {
        padding: 24px 0;
    }

    .pop-contest-promo__card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
        border-radius: 22px;
    }

    .pop-contest-promo__media {
        min-height: 170px;
        background-position: center 35%;
    }

    .pop-contest-promo__action {
        grid-column: auto;
        width: 100%;
    }

    .section {
        padding: 62px 0;
    }

    .section__header--center {
        text-align: left;
    }

    .character-grid,
    .creator-card__grid,
    .book-meta {
        grid-template-columns: 1fr;
    }

    .case-grid,
    .fan-letter-list,
    .method-steps {
        grid-template-columns: 1fr;
    }

    .case-card,
    .fan-letter-card,
    .character-card,
    .method-card,
    .creator-card,
    .book-card,
    .content-body {
        padding: 24px;
        border-radius: 22px;
    }

    .book-card {
        grid-template-columns: 1fr;
    }

    .book-card__image {
        min-height: 260px;
    }

    .book-card__image img {
        max-height: 242px;
    }

    .page-hero {
        padding: 54px 0 42px;
    }

    .site-footer__inner,
    .site-footer__bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .site-footer__links {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .paw-trail__print {
        animation: paw-print-life 14s ease-out forwards !important;
    }
}
