:root {
    --color-ink: #172033;
    --color-muted: #5f6c7b;
    --color-line: #d8dee8;
    --color-surface: #ffffff;
    --color-soft: #f4f7fb;
    --color-brand: #0f6f78;
    --color-brand-dark: #0b4f56;
    --color-accent: #b83b2f;
    --font-sans: "Zen Kaku Gothic New", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Lato", "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
    --content-width: 1120px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--color-ink);
    font-family: var(--font-sans);
    line-height: 1.7;
    background: var(--color-surface);
}

a {
    color: inherit;
}

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

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 8px 12px;
    color: #ffffff;
    background: var(--color-brand-dark);
    transform: translateY(-140%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--color-line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
}

.site-header__inner,
.content-section__inner,
.page-header__inner,
.front-hero__inner,
.site-footer__inner {
    width: min(100% - 32px, var(--content-width));
    margin-inline: auto;
}

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

.site-branding__link {
    display: grid;
    gap: 2px;
    text-decoration: none;
}

.site-branding__name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 900;
}

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

.nav-toggle {
    display: none;
}

.site-navigation__list,
.site-footer__list {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.site-navigation a,
.site-footer a {
    color: var(--color-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.site-navigation a:hover,
.site-footer a:hover {
    color: var(--color-brand);
}

.front-hero {
    display: grid;
    min-height: 380px;
    align-items: center;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(11, 79, 86, 0.92), rgba(15, 111, 120, 0.66)),
        url("../images/hero-placeholder.svg") center / cover no-repeat;
}

.front-hero__inner {
    padding-block: 72px;
}

.front-hero__eyebrow,
.section-heading__eyebrow,
.page-header__eyebrow {
    margin: 0 0 10px;
    color: var(--color-accent);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.front-hero__eyebrow {
    color: #f4c6bf;
}

.front-hero__title {
    max-width: 820px;
    margin: 0;
    font-weight: 900;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.15;
}

.front-hero__lead {
    max-width: 680px;
    margin: 20px 0 0;
    font-size: 18px;
}

.page-header {
    background: var(--color-soft);
}

.page-header__inner {
    padding-block: 56px;
}

.page-header__title,
.section-heading__title {
    margin: 0;
    font-weight: 900;
    font-size: 32px;
    line-height: 1.35;
}

.page-header__description {
    max-width: 760px;
    margin-top: 16px;
    color: var(--color-muted);
}

.content-section {
    padding-block: 56px;
}

.content-section--muted {
    background: var(--color-soft);
}

.section-heading {
    margin-bottom: 24px;
}

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

.post-card {
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: var(--color-surface);
}

.post-card__link {
    display: grid;
    min-height: 100%;
    color: inherit;
    text-decoration: none;
}

.post-card__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-soft);
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card__body {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 18px;
}

.post-card__date,
.post-meta {
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
}

.post-card__title {
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
}

.post-card__excerpt {
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
}

.featured-image {
    width: min(100% - 32px, var(--content-width));
    margin: 32px auto 0;
    overflow: hidden;
    border-radius: 8px;
}

.featured-image img {
    width: 100%;
}

.prose {
    max-width: 840px;
}

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

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

.prose h2,
.prose h3 {
    line-height: 1.4;
}

.button-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    background: var(--color-brand);
}

.site-footer {
    padding-block: 40px;
    color: #ffffff;
    background: var(--color-brand-dark);
}

.site-footer__inner {
    display: grid;
    gap: 24px;
}

.site-footer__name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.site-footer__text,
.site-footer__copyright {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.site-footer a {
    color: #ffffff;
}

.empty-message {
    margin: 0;
    color: var(--color-muted);
}


.design-preview {
    padding: 0;
    margin: 0;
    background: #ffffff;
}

.design-preview__image {
    width: min(100%, 560px);
    height: auto;
    margin: 0 auto;
}

@media (max-width: 780px) {
    .site-header__inner {
        min-height: 68px;
    }

    .nav-toggle {
        display: inline-grid;
        gap: 6px;
        align-items: center;
        justify-items: center;
        min-width: 44px;
        min-height: 44px;
        padding: 6px;
        border: 1px solid var(--color-line);
        border-radius: 6px;
        color: var(--color-ink);
        background: #ffffff;
    }

    .nav-toggle__line,
    .nav-toggle__line::before,
    .nav-toggle__line::after {
        display: block;
        width: 20px;
        height: 2px;
        background: currentColor;
        content: "";
    }

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

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

    .nav-toggle__label {
        font-size: 10px;
    }

    .site-navigation {
        position: absolute;
        top: 100%;
        right: 16px;
        left: 16px;
        display: none;
        padding: 16px;
        border: 1px solid var(--color-line);
        border-radius: 8px;
        background: #ffffff;
    }

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

    .site-navigation__list,
    .site-footer__list {
        display: grid;
        gap: 12px;
    }

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

    .content-section,
    .page-header__inner {
        padding-block: 40px;
    }
}
