:root {
    --green: #00d700;
    --green-dark: #00a900;
    --ink: #252525;
    --muted: #6d6d6d;
    --line: #dedede;
    --surface: #f6f7f6;
    --white: #fff;
    --error: #c62828;
    --success: #187d31;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    line-height: 1.8;
    -webkit-text-size-adjust: 100%;
}
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

.site-header {
    position: relative;
    z-index: 10;
    min-height: 112px;
    background: var(--green);
}
.header-inner {
    width: min(1400px, calc(100% - 56px));
    min-height: 112px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 42px;
}
.site-logo { display: block; flex: 0 0 auto; line-height: 0; }
.site-logo img { display: block; width: 205px; height: auto; }
.global-nav { display: flex; gap: 12px; margin-left: auto; }
.global-nav a {
    min-width: 112px;
    padding: 8px 16px;
    border: 2px solid var(--white);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    letter-spacing: .05em;
    transition: .2s ease;
}
.global-nav a:hover, .global-nav a:focus-visible, .global-nav a[aria-current="page"] {
    color: var(--green-dark);
    background: var(--white);
}
.menu-button { display: none; }

.page-hero {
    min-height: 250px;
    display: grid;
    place-content: center;
    text-align: center;
    background:
        linear-gradient(135deg, transparent 0 44%, rgba(0, 215, 0, .16) 44% 45%, transparent 45% 100%),
        linear-gradient(45deg, #171717, #343434);
    color: var(--white);
}
.page-hero p { margin: 0 0 2px; font-size: 14px; font-weight: 800; letter-spacing: .35em; }
.page-hero h1 { margin: 0; font-size: clamp(26px, 4vw, 42px); letter-spacing: .12em; }

.contact-tabs { width: min(1060px, calc(100% - 40px)); margin: -26px auto 90px; position: relative; }
.tab-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.tab-buttons button {
    min-height: 88px;
    padding: 16px;
    border: 0;
    background: #3d3d3d;
    color: var(--white);
    font-weight: 700;
    line-height: 1.5;
    transition: background .2s ease;
}
.tab-buttons button[aria-selected="true"] { background: var(--green); color: #103410; }
.contact-panel {
    padding: clamp(34px, 6vw, 72px) clamp(22px, 8vw, 90px);
    border: 1px solid #e3e3e3;
    border-top: 5px solid var(--green);
    background: var(--white);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .08);
}
.narrow-panel, .result-card { width: min(900px, calc(100% - 40px)); margin: 70px auto 100px; }
.form-intro { margin-bottom: 44px; text-align: center; }
.form-intro p { margin: 4px 0; }
.lead { margin: 0 0 35px; color: var(--muted); }
.center { text-align: center; }
.note { color: var(--muted); font-size: 13px; }

.contact-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.form-field { display: grid; min-width: 0; gap: 9px; }
.form-field > label { font-weight: 700; }
.required-mark {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 2px;
    background: var(--error);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.7;
    vertical-align: 2px;
}
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    border: 1px solid #bdbdbd;
    border-radius: 0;
    background: var(--white);
    color: var(--ink);
    padding: 13px 16px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
select {
    padding-right: 44px;
    background-image: linear-gradient(45deg, transparent 50%, #555 50%), linear-gradient(135deg, #555 50%, transparent 50%);
    background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    appearance: none;
}
textarea { resize: vertical; min-height: 180px; }
input:focus, select:focus, textarea:focus { border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(0, 215, 0, .14); }
.field-error { margin: 0; color: var(--error); font-size: 13px; font-weight: 700; }
.form-submit { margin-top: 12px; text-align: center; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.button {
    display: inline-flex;
    min-width: 220px;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: 0;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: .04em;
    transition: .2s ease;
}
.button.primary { border-color: var(--green); background: var(--green); color: #123612; }
.button.primary:hover, .button.primary:focus-visible { border-color: var(--green-dark); background: var(--green-dark); color: var(--white); }
.button.secondary { border-color: #444; background: var(--white); color: #333; }
.button.secondary:hover, .button.secondary:focus-visible { background: #333; color: var(--white); }
.button.danger { border-color: var(--error); background: var(--white); color: var(--error); }
.button.danger:hover, .button.danger:focus-visible { background: var(--error); color: var(--white); }
.button.small { min-width: 0; min-height: 42px; padding: 7px 18px; font-size: 13px; }
.button-row { display: flex; justify-content: center; gap: 18px; margin-top: 40px; }
.button-row form { margin: 0; }

.alert { margin: 0 0 28px; padding: 14px 18px; border-left: 5px solid; }
.alert p, .alert ul { margin: 5px 0 0; }
.alert.error { border-color: var(--error); background: #fff0f0; color: #7a1818; }
.alert.success { border-color: var(--success); background: #effaf1; color: #135f26; }

.section-heading { margin-bottom: 26px; text-align: center; }
.section-heading span, .result-kicker, .eyebrow { color: var(--green-dark); font-size: 12px; font-weight: 900; letter-spacing: .22em; }
.section-heading h2 { margin: 3px 0 0; font-size: clamp(21px, 3vw, 30px); }
.sub-heading { margin-top: 62px; }
.address { margin: 0; padding: 24px; background: var(--surface); font-size: 16px; font-weight: 700; text-align: center; }
.present-panel > h3 { margin: 45px 0 18px; padding-left: 14px; border-left: 5px solid var(--green); }
.notes-list { margin: 0; padding: 0; list-style: none; }
.notes-list li { position: relative; padding: 8px 0 8px 22px; border-bottom: 1px solid #ebebeb; }
.notes-list li::before { content: "●"; position: absolute; left: 0; color: var(--green-dark); font-size: 10px; }
.notes-list.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }

.confirm-list { margin: 0; border-top: 1px solid var(--line); }
.confirm-list > div { display: grid; grid-template-columns: 220px 1fr; border-bottom: 1px solid var(--line); }
.confirm-list dt { padding: 18px; background: var(--surface); font-weight: 700; }
.confirm-list dd { min-width: 0; margin: 0; padding: 18px; overflow-wrap: anywhere; }

.result-card {
    padding: clamp(42px, 7vw, 80px) 30px;
    border-top: 5px solid var(--green);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .1);
    text-align: center;
}
.result-card h2 { margin: 4px 0 20px; }
.result-card .reference { display: inline-block; margin: 18px 0 30px; padding: 8px 20px; background: var(--surface); font-weight: 700; }
.error-text { color: var(--error); }

.site-footer { padding: 24px; background: #282828; color: #aaa; text-align: center; }

@media (max-width: 1180px) {
    .header-inner { width: min(calc(100% - 32px), 1100px); }
    .global-nav a { min-width: 0; padding-inline: 12px; }
}

@media (max-width: 900px) {
    .site-header, .header-inner { min-height: 76px; }
    .site-logo img { width: 160px; }
    .menu-button {
        display: grid;
        width: 48px;
        height: 52px;
        margin-left: auto;
        padding: 7px 4px 3px;
        border: 0;
        background: transparent;
        place-content: center;
        gap: 5px;
        color: var(--white);
    }
    .menu-button span { display: block; width: 32px; height: 2px; background: var(--white); }
    .menu-button b { font-size: 9px; letter-spacing: .1em; }
    .global-nav {
        display: none;
        position: absolute;
        top: 76px;
        left: 0;
        width: 100%;
        padding: 18px;
        background: rgba(25, 25, 25, .98);
        flex-direction: column;
        gap: 8px;
    }
    .global-nav.is-open { display: flex; }
    .global-nav a { padding: 10px; }
    .page-hero { min-height: 190px; }
    .contact-tabs { width: min(100% - 24px, 1060px); margin-top: -18px; }
    .tab-buttons button { min-height: 80px; font-size: 13px; }
}

@media (max-width: 640px) {
    .header-inner { width: calc(100% - 24px); }
    .page-hero { min-height: 165px; }
    .contact-tabs { width: 100%; margin: 0 auto 60px; }
    .tab-buttons { gap: 2px; }
    .tab-buttons button { min-height: 76px; padding: 10px 6px; font-size: 11px; }
    .contact-panel { padding: 34px 18px; border-left: 0; border-right: 0; box-shadow: none; }
    .form-intro { margin-bottom: 32px; font-size: 14px; }
    .notes-list.two-columns { grid-template-columns: 1fr; }
    .confirm-list > div { grid-template-columns: 1fr; }
    .confirm-list dt { padding: 10px 14px; }
    .confirm-list dd { padding: 13px 14px 20px; }
    .button-row { flex-direction: column-reverse; }
    .button-row .button, .button-row form { width: 100%; }
    .narrow-panel, .result-card { width: 100%; margin: 35px auto 60px; box-shadow: none; }
    .address { padding: 18px 13px; font-size: 14px; text-align: left; }
}
