:root {
    --bg-deep: #1f1511;
    --bg-mid: #3b2923;
    --paper: #fbf7f1;
    --ink: #101010;
    --accent: #b64536;
    --gold: #d3b06d;
    --shadow: rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
}

body {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 12px 36px;
    font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
    color: #fff7ef;
    background:
        radial-gradient(circle at top, rgba(211, 176, 109, 0.24), transparent 26%),
        linear-gradient(135deg, var(--bg-mid), var(--bg-deep));
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.018) 0 2px,
            transparent 2px 48px
        ),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 42%);
    pointer-events: none;
}

.scene {
    width: min(100%, 1040px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.hero {
    text-align: center;
    max-width: 720px;
}

.hero-kicker {
    color: rgba(255, 246, 236, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.34em;
    font-size: 0.72rem;
    margin-bottom: 10px;
}

.hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    line-height: 1.04;
    color: #f7ecd7;
    text-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
    margin-bottom: 8px;
}

.hero-subtitle,
.mobile-tip {
    color: rgba(255, 246, 236, 0.82);
    font-size: 0.98rem;
    line-height: 1.6;
    text-align: center;
}

.hero-description {
    max-width: 760px;
    margin-top: 12px;
    color: rgba(255, 246, 236, 0.78);
    font-size: 1rem;
    line-height: 1.75;
}

.quick-links {
    width: min(100%, 920px);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-links a {
    padding: 10px 16px;
    border-radius: 999px;
    color: #fff3de;
    text-decoration: none;
    font-size: 0.9rem;
    background: rgba(255, 247, 236, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.2s ease, background 0.2s ease;
}

.quick-links a:hover {
    transform: translateY(-1px);
    background: rgba(255, 247, 236, 0.15);
}

.book-stage {
    width: min(100%, 920px);
    display: flex;
    justify-content: center;
    padding: 14px 0 8px;
    position: relative;
}

.book-stage::before {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 8px;
    height: 28px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.34);
    filter: blur(18px);
    z-index: -1;
}

#book {
    width: 100%;
    max-width: 920px;
}

.book-page {
    width: 100%;
    height: 100%;
    padding: 14px;
    background: linear-gradient(180deg, #f8f2e8, #eee1d2);
    color: var(--ink);
}

.book-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.1), transparent 14%, transparent 86%, rgba(0, 0, 0, 0.04));
    pointer-events: none;
}

.stf__item {
    overflow: hidden;
}

.page-cover,
.page-back-cover {
    background: linear-gradient(180deg, #222222, #111111);
}

.page-cover::before,
.page-back-cover::before {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.32), transparent 16%, transparent 84%, rgba(0, 0, 0, 0.08));
}

.cover-shell,
.back-cover-shell {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
}

.cover-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 28px 24px;
    border: 2px solid rgba(182, 69, 54, 0.7);
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.9), rgba(228, 220, 210, 0.97) 58%, rgba(208, 197, 186, 0.99));
}

.cover-shell::before,
.cover-shell::after,
.note-shell::before,
.note-shell::after,
.back-cover-shell::before,
.back-cover-shell::after {
    content: "";
    position: absolute;
    width: 136px;
    height: 136px;
    border-radius: 50%;
    background:
        repeating-radial-gradient(circle, transparent 0 9px, rgba(16, 16, 16, 0.9) 9px 13px);
    opacity: 0.1;
}

.cover-shell::before,
.note-shell::before,
.back-cover-shell::before {
    top: -58px;
    right: -58px;
}

.cover-shell::after,
.note-shell::after,
.back-cover-shell::after {
    left: -58px;
    bottom: -60px;
}

.cover-kicker,
.note-kicker,
.back-cover-kicker {
    text-transform: uppercase;
    letter-spacing: 0.34em;
    font-size: 0.76rem;
}

.cover-kicker {
    color: rgba(16, 16, 16, 0.62);
}

.cover-logo {
    width: 100%;
    display: grid;
    place-items: center;
}

.cover-logo-ring {
    width: 232px;
    height: 232px;
    border-radius: 50%;
    border: 15px solid var(--ink);
    transform: rotate(-8deg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.08));
}

.cover-title {
    transform: rotate(8deg);
    text-align: center;
}

.cover-kanji {
    display: block;
    color: var(--ink);
    font-size: clamp(3.2rem, 7vw, 4.3rem);
    line-height: 0.95;
    letter-spacing: 0.08em;
}

.cover-roman {
    display: block;
    margin-top: 12px;
    color: var(--ink);
    font-size: 1rem;
    letter-spacing: 0.34em;
}

.cover-tagline {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.cover-address {
    color: rgba(16, 16, 16, 0.72);
    font-size: 0.84rem;
    line-height: 1.7;
    text-align: center;
}

.page-note {
    background: linear-gradient(180deg, #faf4eb, #efe3d5);
}

.note-shell {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    border: 1px solid rgba(182, 69, 54, 0.18);
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.96), rgba(242, 231, 219, 0.98));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    padding: 34px 28px;
}

.note-kicker {
    color: var(--accent);
    font-weight: 700;
}

.note-shell h2,
.back-cover-shell h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    line-height: 1.14;
}

.note-text,
.back-cover-shell p {
    color: rgba(16, 16, 16, 0.76);
    font-size: 0.96rem;
    line-height: 1.74;
}

.note-meta {
    color: rgba(16, 16, 16, 0.62);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-menu {
    background: linear-gradient(180deg, #fbf7f1, #eee2d4);
}

.menu-shell {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff, #f4ede5);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.menu-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.08), transparent 16%, transparent 84%, rgba(0, 0, 0, 0.03));
    pointer-events: none;
    z-index: 1;
}

.menu-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #ffffff;
}

.page-badge {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(16, 16, 16, 0.84);
    color: #fff9f1;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    z-index: 2;
}

.back-cover-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 28px 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.06), transparent 46%),
        linear-gradient(160deg, rgba(12, 12, 12, 0.96), rgba(35, 19, 17, 0.96));
}

.back-cover-kicker {
    color: rgba(255, 239, 219, 0.72);
}

.back-cover-shell h2 {
    color: #fbefe0;
}

.back-cover-shell p {
    color: rgba(255, 239, 219, 0.82);
}

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.control-btn {
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    min-width: 118px;
    font-size: 0.94rem;
    font-weight: 700;
    color: #261a13;
    background: linear-gradient(180deg, #f2da9e, #d0a85f);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.control-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.control-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.status-pill {
    min-width: 164px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 247, 236, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.status-pill strong {
    color: #fff6ec;
    font-size: 0.9rem;
}

.status-pill span {
    color: rgba(255, 246, 236, 0.72);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.seo-section {
    width: min(100%, 920px);
}

.seo-intro,
.seo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.seo-card {
    padding: 24px 22px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 249, 239, 0.1), rgba(255, 247, 236, 0.06)),
        rgba(37, 24, 20, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
}

.seo-card h2,
.seo-card h3 {
    color: #f7ecd7;
}

.seo-card h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.38rem, 2vw, 1.72rem);
    line-height: 1.28;
    margin-bottom: 14px;
}

.seo-card h3 {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.seo-card p {
    color: rgba(255, 246, 236, 0.82);
    font-size: 0.97rem;
    line-height: 1.75;
}

.seo-card p + p {
    margin-top: 12px;
}

.keyword-list {
    list-style: disc;
    padding-left: 18px;
    margin-top: 14px;
}

.keyword-list li {
    color: rgba(255, 246, 236, 0.84);
    line-height: 1.72;
}

.keyword-list li + li {
    margin-top: 8px;
}

.faq-card .faq-item + .faq-item {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 820px) {
    body {
        align-items: flex-start;
        padding: 22px 10px 28px;
    }

    .scene {
        gap: 14px;
    }

    .hero-kicker {
        font-size: 0.64rem;
        letter-spacing: 0.28em;
    }

    .hero-subtitle,
    .mobile-tip {
        font-size: 0.9rem;
    }

    .hero-description {
        font-size: 0.92rem;
        line-height: 1.68;
    }

    .quick-links {
        justify-content: flex-start;
        gap: 8px;
    }

    .quick-links a {
        font-size: 0.84rem;
        padding: 9px 13px;
    }

    .book-stage {
        width: min(100%, 420px);
    }

    .book-stage::before {
        left: 16%;
        right: 16%;
        bottom: 4px;
        height: 22px;
        filter: blur(13px);
    }

    .book-page {
        padding: 10px;
    }

    .cover-shell,
    .note-shell,
    .back-cover-shell,
    .menu-shell {
        border-radius: 14px;
    }

    .cover-shell,
    .back-cover-shell {
        padding: 22px 16px;
    }

    .note-shell {
        padding: 24px 18px;
        gap: 14px;
    }

    .cover-logo-ring {
        width: 182px;
        height: 182px;
        border-width: 10px;
    }

    .cover-kanji {
        font-size: 2.95rem;
    }

    .cover-roman {
        font-size: 0.96rem;
        letter-spacing: 0.24em;
    }

    .cover-tagline {
        font-size: 0.88rem;
    }

    .cover-address,
    .note-meta {
        font-size: 0.76rem;
    }

    .note-shell h2,
    .back-cover-shell h2 {
        font-size: 1.58rem;
    }

    .note-text,
    .back-cover-shell p {
        font-size: 0.88rem;
        line-height: 1.68;
    }

    .page-badge {
        right: 12px;
        bottom: 12px;
        padding: 5px 8px;
        font-size: 0.64rem;
    }

    .controls {
        width: min(100%, 360px);
        flex-wrap: wrap;
    }

    .status-pill {
        width: 100%;
        order: 3;
    }

    .control-btn {
        flex: 1;
        min-width: 0;
        padding: 11px 14px;
        font-size: 0.9rem;
    }

    .seo-intro,
    .seo-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .seo-card {
        padding: 18px 16px;
        border-radius: 18px;
    }

    .seo-card h2 {
        font-size: 1.28rem;
        margin-bottom: 12px;
    }

    .seo-card p,
    .keyword-list li {
        font-size: 0.92rem;
        line-height: 1.68;
    }
}
