@charset "UTF-8";

:root {
    --bg: #f4f6f8;
    --paper: #ffffff;
    --text: #263442;
    --sub: #647383;
    --line: #d8e0e7;
    --accent: #263b50;
    --accent-soft: #e8eef2;
    --accent-light: #647d91;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        "Hiragino Mincho ProN",
        "Yu Mincho",
        "YuMincho",
        "Noto Serif JP",
        serif;
    background:
        linear-gradient(
            rgba(255,255,255,0.42),
            rgba(255,255,255,0.42)
        ),
        var(--bg);
    color: var(--text);
    line-height: 1.95;
    letter-spacing: 0.03em;
}

a {
    color: inherit;
}

.site-header {
    padding: 80px 20px 64px;
    background:
        linear-gradient(
            135deg,
            rgba(100,125,145,0.16),
            rgba(255,255,255,0.72)
        ),
        var(--paper);
    border-bottom: 1px solid var(--line);
}

.site-inner,
.site-main {
    max-width: 860px;
    margin: 0 auto;
}

.site-label {
    margin: 0 0 20px;
    font-size: 0.95rem;
    color: var(--accent);
    letter-spacing: 0.22em;
}

.site-label a {
    text-decoration: none;
}

h1 {
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 500;
    line-height: 1.3;
}

.lead {
    margin: 32px 0 0;
    font-size: 1.12rem;
    color: var(--sub);
}

.site-main {
    padding: 48px 20px 80px;
}

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 18px 40px rgba(38,59,80,0.07);
    margin-bottom: 28px;
}

.card h2 {
    margin: 0 0 18px;
    font-size: 1.45rem;
    font-weight: 500;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}

.category-description {
    color: var(--sub);
    margin-bottom: 24px;
}

.work {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.work:last-child {
    border-bottom: none;
}

.work h3 {
    margin: 0 0 12px;
    font-size: 1.5rem;
    font-weight: 500;
}

.work h3 a {
    text-decoration: none;
}

.work h3 a:hover {
    color: var(--accent-light);
}

.work p {
    color: var(--sub);
    white-space: normal;
}

.read-link {
    display: inline-block;
    margin-top: 10px;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.read-link:hover {
    background: var(--accent-light);
}

.category-link {
    margin-top: 20px;
    text-align: right;
}

.category-link a,
.back-link {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

.category-link a:hover,
.back-link:hover {
    opacity: 0.7;
}

.site-footer {
    padding: 28px 20px;
    text-align: center;
    color: var(--sub);
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-family: sans-serif;
    font-size: 1.5rem;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(38,59,80,0.22);
    transition: background 0.2s ease, transform 0.2s ease;
}

.back-to-top:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
}

.access-counter {
    position: fixed;
    left: 12px;
    bottom: 12px;
    z-index: 1000;
    padding: 8px 13px;
    border-radius: 7px;
    background: var(--accent);
    color: #fff;
    font-family: sans-serif;
    font-size: 0.85rem;
    line-height: 1.4;
    box-shadow: 0 3px 12px rgba(38,59,80,0.18);
}

@media (max-width: 640px) {
    .site-header {
        padding: 56px 18px 44px;
    }

    .card {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .lead {
        font-size: 1rem;
    }

    .work h3 {
        font-size: 1.3rem;
    }

    .back-to-top {
        right: 14px;
        bottom: 14px;
        width: 44px;
        height: 44px;
    }

    .access-counter {
        left: 8px;
        bottom: 8px;
        font-size: 0.78rem;
    }
}
