* { box-sizing: border-box; }

:root {
    --bg: #f3f6fa;
    --surface: #ffffff;
    --ink: #16181d;
    --ink-panel: #111827;
    --muted: #667085;
    --line: #e4e7ec;
    --line-strong: #cfd6e2;
    --link: #155eef;
    --accent: #155eef;
    --signal: #00a6a6;
    --shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 2px 10px rgba(16, 24, 40, .05);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    font-weight: 400;
    line-height: 1.7;
}

a { color: inherit; }

.wrap,
.header-inner {
    width: min(1360px, calc(100vw - 32px));
    margin: 0 auto;
}

.page-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(11, 16, 32, .94);
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(16, 24, 40, .16);
}

.page-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    min-height: 86px;
    padding: 10px 0 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: #fff;
    text-decoration: none;
}

.logo-mark {
    position: relative;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--accent), #08b8c8);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 6px 16px rgba(21, 94, 239, .16);
    overflow: hidden;
}

.logo-mark::after {
    content: "";
    position: absolute;
    right: -14px;
    bottom: -14px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 8px solid rgba(255, 255, 255, .24);
}

.site-name {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
    color: #fff;
    font-size: 32px;
    line-height: 1.05;
    letter-spacing: 0;
    font-weight: 900;
}

.site-name span { color: var(--accent); }

.site-tagline {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .68);
    font-size: 15px;
    line-height: 1.35;
}

.page-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-width: 0;
}

.page-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    color: rgba(255, 255, 255, .80);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.page-nav a:hover,
.page-nav a.is-current {
    background: rgba(255, 255, 255, .10);
    color: #fff;
    box-shadow: inset 0 -3px 0 var(--signal);
}

main { padding: 42px 0 72px; }

.page {
    max-width: 860px;
}

.page-panel {
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 34px 36px 38px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--link);
    font-size: 13px;
    font-weight: 800;
}

h1 {
    margin: 0 0 20px;
    color: #0b1020;
    font-size: 30px;
    line-height: 1.25;
    letter-spacing: 0;
    font-weight: 900;
}

h2 {
    margin: 32px 0 8px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--ink-panel);
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: 0;
    font-weight: 800;
}

h2:first-of-type {
    margin-top: 28px;
}

p,
li {
    font-size: 15px;
}

p {
    margin: 0 0 14px;
}

ul {
    margin: 0 0 14px;
    padding-left: 1.25em;
}

li + li { margin-top: 6px; }

.note {
    border: 1px solid #d5dce6;
    border-radius: 5px;
    padding: 13px 14px;
    background: #f6f8fb;
    color: #475467;
}

.archive-head {
    margin-bottom: 18px;
}

.archive-head h1 {
    margin-bottom: 10px;
}

.archive-head p {
    max-width: 760px;
    color: var(--muted);
}

.archive-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 30px;
}

.archive-links a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 0 11px;
    background: var(--surface);
    color: #172554;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.archive-links a:hover {
    border-color: rgba(0, 166, 166, .28);
    color: #006a6a;
    background: #e4fbfb;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.news-card {
    display: flex;
    flex-direction: column;
    min-height: 240px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 17px 17px 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.news-card-title {
    display: block;
    color: var(--link);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.42;
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.news-card-title:hover { text-decoration: underline; }

.news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 8px;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.news-meta span:first-child {
    color: #475467;
    font-weight: 750;
}

.news-summary,
.news-note {
    margin: 13px 0 0;
    border: 1px solid #dbe3ef;
    border-radius: 5px;
    padding: 12px 13px;
    background: #f8fafc;
    color: #242b35;
    font-size: 13px;
    line-height: 1.72;
}

.news-summary {
    list-style: none;
}

.news-summary li {
    position: relative;
    padding-left: 15px;
}

.news-summary li + li { margin-top: 6px; }

.news-summary li::before {
    content: "";
    position: absolute;
    top: .72em;
    left: 1px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #98a2b3;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line-strong);
}

.news-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 5px;
    padding: 0 9px;
    background: #f1f4f8;
    color: #344054;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.news-tags a:first-child {
    background: #e4fbfb;
    color: #006a6a;
    border: 1px solid rgba(0, 166, 166, .18);
}

.empty-list {
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 22px;
    background: var(--surface);
    color: var(--muted);
    box-shadow: var(--shadow);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #111827;
    color: rgba(255, 255, 255, .78);
    padding: 82px 24px 44px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(160px, .6fr));
    gap: 56px;
    width: 100%;
    margin: 0;
}

.footer-brand {
    margin: 0 0 8px;
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 900;
}

.footer-copy {
    max-width: 420px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .68);
    font-size: 14px;
    font-weight: 700;
    line-height: 2.05;
}

.footer-head {
    margin: 0 0 22px;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 900;
}

.footer-links {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, .70);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    width: 100%;
    margin: 58px 0 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, .10);
    color: rgba(255, 255, 255, .52);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 860px) {
    .wrap,
    .header-inner {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
    }

    .page-topbar {
        display: block;
        min-height: 0;
        padding: 12px 0 11px;
    }

    .brand {
        gap: 9px;
    }

    .logo-mark {
        width: 32px;
        height: 32px;
        border-radius: 7px;
        font-size: 14px;
    }

    .site-name {
        display: block;
        font-size: 19px;
        line-height: 1.05;
        white-space: nowrap;
    }

    .site-name span { margin-left: 3px; }
    .site-tagline { display: none; }

    .page-nav {
        justify-content: flex-start;
        gap: 4px;
        overflow-x: auto;
        margin-top: 10px;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .page-nav::-webkit-scrollbar { display: none; }

    .page-nav a {
        flex: 0 0 auto;
        font-size: 13px;
        padding: 0 10px;
    }

    main { padding: 24px 0 56px; }

    .page-panel {
        padding: 24px 20px 28px;
    }

    h1 { font-size: 24px; }
    h2 { font-size: 17px; }

    .listing-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .news-card {
        min-height: auto;
        padding: 15px;
    }

    .site-footer {
        padding-right: 24px;
        padding-left: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        width: 100%;
    }

    .footer-bottom { width: 100%; }
}
