:root {
    --brand-a: #23404a;
    --brand-b: #315867;
    --accent-c: #8d6d42;
    --text-main: #1f2629;
    --text-soft: #465257;
    --bg-main: #f5f7f8;
    --bg-alt: #eaf0f2;
    --line-a: #c9d4d8;
    --focus-a: #7d3f8f;
    --radius-a: 8px;
    --radius-b: 16px;
    --max-wrap: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-main);
    background: var(--bg-main);
    font-family: "DM Sans", system-ui, -apple-system, sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--brand-a);
    color: #fff;
    padding: 0.6rem 0.8rem;
    z-index: 999;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.wrap {
    width: min(93%, var(--max-wrap));
    margin: 0 auto;
}

.site-header {
    border-bottom: 1px solid var(--line-a);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    align-items: center;
    padding: 0.8rem 0;
}

.brand {
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 1.45rem;
    letter-spacing: 0.02em;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 0.6rem;
}

.nav-grid a {
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-a);
    padding: 0.2rem 0.45rem;
    font-size: 0.9rem;
}

.nav-grid a:hover,
.nav-grid a:focus-visible {
    border-color: var(--brand-b);
    outline: none;
}

.hero {
    padding: 3rem 0 2rem;
}

.hero-centered {
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
}

h1,
h2,
h3 {
    margin: 0 0 0.85rem;
    font-family: "DM Serif Display", Georgia, serif;
    line-height: 1.25;
}

h1 {
    font-size: clamp(2.05rem, 3.3vw, 2.95rem);
}

h2 {
    font-size: clamp(1.5rem, 2.3vw, 2.1rem);
}

p {
    margin: 0 0 1rem;
    color: var(--text-soft);
}

.section {
    padding: 2.4rem 0;
}

.band {
    background: var(--bg-alt);
    border-top: 1px solid var(--line-a);
    border-bottom: 1px solid var(--line-a);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1rem;
}

.btn-solid,
.btn-ghost,
button {
    display: inline-block;
    text-decoration: none;
    padding: 0.56rem 0.95rem;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid var(--brand-a);
    cursor: pointer;
    font: inherit;
}

.btn-solid,
button {
    background: var(--brand-a);
    color: #fff;
}

.btn-solid:hover,
button:hover {
    background: var(--brand-b);
}

.btn-ghost {
    background: transparent;
    color: var(--brand-a);
}

.btn-ghost:hover {
    background: rgba(35, 64, 74, 0.09);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.card {
    background: #fff;
    border: 1px solid var(--line-a);
    border-radius: var(--radius-b);
    padding: 1rem;
}

.timeline {
    display: grid;
    gap: 0.9rem;
}

.tick {
    background: #fff;
    border: 1px solid var(--line-a);
    border-left: 5px solid var(--accent-c);
    border-radius: 0 var(--radius-b) var(--radius-b) 0;
    padding: 1rem;
}

.article {
    background: #fff;
    border: 1px solid var(--line-a);
    border-radius: var(--radius-b);
    padding: 1rem;
    margin-bottom: 1rem;
}

.qna-list {
    display: grid;
    gap: 0.8rem;
}

.qa {
    background: #fff;
    border: 1px solid var(--line-a);
    border-radius: var(--radius-b);
    padding: 0.95rem;
}

.qa h3 {
    margin-bottom: 0.45rem;
}

.quote {
    background: #fff;
    border: 1px solid var(--line-a);
    border-radius: var(--radius-b);
    padding: 1.1rem;
}

.notice {
    background: #fff;
    border: 1px solid var(--line-a);
    border-radius: var(--radius-b);
    padding: 1rem;
}

.form-shell {
    background: #fff;
    border: 1px solid var(--line-a);
    border-radius: var(--radius-b);
    padding: 1rem;
}

.form-fields {
    display: grid;
    gap: 0.75rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.24rem;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line-a);
    border-radius: var(--radius-a);
    padding: 0.6rem 0.68rem;
    font: inherit;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

.form-consent {
    display: flex;
    gap: 0.45rem;
    align-items: flex-start;
    font-size: 0.9rem;
}

.form-consent input {
    width: auto;
    margin-top: 0.28rem;
}

.hp-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

input:focus-visible,
textarea:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--focus-a);
    outline-offset: 2px;
}

.footer {
    border-top: 1px solid var(--line-a);
    background: #fff;
    padding: 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    background: #fff;
    border: 1px solid var(--line-a);
    border-radius: 10px;
    padding: 0.9rem;
    box-shadow: 0 7px 24px rgba(31, 38, 41, 0.1);
    z-index: 120;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.hidden {
    display: none !important;
}

@media (min-width: 760px) {
    .header-layout {
        grid-template-columns: 1fr 2fr;
    }

    .nav-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .grid-2,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
