:root {
    --ink: #252420;
    --muted: #706d65;
    --paper: #f6f3ec;
    --line: #c9c3b8;
    --line-light: #ddd8ce;
    --accent: #9b4051;
    --accent-soft: #ead8db;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    font-size: 15px;
    line-height: 1.85;
    letter-spacing: .025em;
}

body::before {
    content: "";
    display: block;
    height: 5px;
    background: var(--accent);
}

a {
    color: inherit;
    text-underline-offset: .22em;
    text-decoration-thickness: 1px;
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.container {
    width: min(920px, calc(100% - 48px));
    margin: 0 auto;
}

header {
    padding: 72px 0 34px;
    border-bottom: 1px solid var(--ink);
}

header h1,
.title,
.latest-card h2,
.work-card h2 {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
}

header h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: .08em;
}

header p {
    max-width: 580px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.section-title {
    margin: 56px 0 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
}

.latest-card {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, .75fr);
    gap: 20px 48px;
    padding: 30px 0 34px;
    border-bottom: 1px solid var(--ink);
}

.latest-card h2 {
    grid-column: 1;
    margin: 0;
    font-size: clamp(22px, 3.5vw, 30px);
    font-weight: 500;
    line-height: 1.5;
}

.latest-card .info {
    grid-column: 2;
    grid-row: 1 / span 2;
    padding-left: 24px;
    border-left: 1px solid var(--line);
}

.latest-card .info p {
    margin: 0 0 7px;
    font-size: 13px;
}

.tag {
    display: inline-block;
    margin-left: 8px;
    color: var(--accent);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    vertical-align: .2em;
}

.tag::before {
    content: "— ";
}

.btn,
.official-link {
    width: fit-content;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
}

.btn {
    grid-column: 1;
}

.category-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
    margin: 8px 0 72px;
}

.category-link {
    position: relative;
    padding: 19px 28px 19px 0;
    border-bottom: 1px solid var(--line-light);
    font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
    font-size: 18px;
    text-decoration: none;
}

.category-link::after {
    content: "→";
    position: absolute;
    right: 0;
    color: var(--accent);
}

.category-link:hover,
.back-top:hover,
.btn:hover,
.official-link:hover {
    color: var(--accent);
}

.notice {
    color: var(--muted);
    font-size: 12px;
}

footer {
    margin: 72px 0 32px;
    padding: 24px 0 0;
    border-top: 1px solid var(--ink);
    color: var(--muted);
    font-size: 11px;
}

footer p {
    margin: 3px 0;
}

.back-top {
    display: inline-block;
    margin: 34px 0 0;
    color: var(--muted);
    font-size: 12px;
    text-decoration: none;
}

.title {
    margin: 52px 0 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ink);
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: .08em;
}

.work-card {
    padding: 28px 0 30px;
    border-bottom: 1px solid var(--line-light);
}

.work-card h2 {
    margin: 0 0 14px;
    font-size: clamp(18px, 2.6vw, 23px);
    font-weight: 500;
    line-height: 1.6;
}

.info {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 30px;
    margin: 0 0 10px;
    color: var(--muted);
}

.info p {
    margin: 0;
    font-size: 12px;
}

.info strong {
    color: var(--ink);
    font-weight: 600;
}

.youtube-title {
    margin: 24px 0 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.youtube {
    width: 100%;
    max-width: 720px;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 32px, 920px);
    }

    header {
        padding-top: 48px;
    }

    .latest-card {
        display: block;
    }

    .latest-card .info {
        margin: 22px 0 14px;
        padding: 14px 0 0;
        border-top: 1px solid var(--line-light);
        border-left: 0;
    }

    .category-links {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .title {
        margin-top: 38px;
    }

    .work-card {
        padding: 24px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }
}
