:root {
    --ink: #263746;
    --muted: #5d6d7c;
    --line: #d8e0e7;
    --line-dark: #9da9b5;
    --box: #f7f9fb;
    --paper: #ffffff;
    --accent: #2e3f50;
    --error: #b42318;
    --success: #15603e;
}

* {
    box-sizing: border-box;
}

html {
    background: #f3f6f8;
    color: var(--ink);
    font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    letter-spacing: 0;
}

body {
    margin: 0;
    min-width: 320px;
    background: #f3f6f8;
}

button,
input,
textarea {
    font: inherit;
}

.page-shell {
    padding: 42px 18px 56px;
}

.support-sheet {
    width: min(100%, 1060px);
    min-height: 1410px;
    margin: 0 auto;
    padding: 64px 72px 78px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 18px 50px rgba(38, 55, 70, 0.12);
}

.sheet-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: 18px;
    border-bottom: 4px solid var(--accent);
}

.sheet-heading h1 {
    margin: 0 0 10px;
    font-size: 2.35rem;
    line-height: 1.25;
    font-weight: 500;
}

.sheet-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
    font-weight: 600;
}

.sheet-brand {
    min-width: 214px;
    padding-top: 4px;
    text-align: right;
    color: #334455;
}

.sheet-brand strong,
.sheet-brand span {
    display: block;
    line-height: 1.45;
}

.sheet-brand strong {
    font-size: 1.02rem;
    font-weight: 500;
}

.sheet-brand span {
    font-size: 0.96rem;
    font-weight: 600;
}

.intro-box {
    margin-top: 20px;
    padding: 19px 21px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--box);
}

.intro-box p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.9;
}

.intro-box p + p {
    margin-top: 8px;
}

.intro-box .intro-note {
    color: var(--muted);
    font-weight: 400;
}

.support-form {
    margin-top: 18px;
}

.question-block {
    margin: 0;
    padding: 19px 0 18px;
    border: 0;
    border-top: 2px solid var(--line);
}

.question-block:last-of-type {
    border-bottom: 2px solid var(--line);
}

.question-block legend {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0 0 17px;
    padding: 0;
    color: var(--ink);
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.55;
}

.question-number {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
}

.checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    padding-left: 44px;
}

.checkbox-row label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
    position: relative;
    width: 16px;
    height: 16px;
    margin: 0 7px 0 0;
    appearance: none;
    border: 2px solid #405060;
    border-radius: 2px;
    background: #ffffff;
    cursor: pointer;
}

.checkbox-row input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 3px;
    top: -1px;
    width: 6px;
    height: 11px;
    border: solid var(--accent);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.checkbox-row input[type="checkbox"]:focus-visible,
.line-field input:focus-visible,
.submit-button:focus-visible {
    outline: 3px solid rgba(46, 63, 80, 0.26);
    outline-offset: 3px;
}

.question-block--contact {
    padding-bottom: 16px;
}

.contact-caption {
    margin: -2px 0 12px 44px;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 700;
}

.contact-lines {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
    row-gap: 15px;
    padding-left: 44px;
}

.line-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    gap: 12px;
    color: var(--muted);
    font-size: 0.98rem;
    font-weight: 700;
}

.line-field span {
    white-space: nowrap;
}

.line-field em {
    margin-left: 4px;
    color: var(--error);
    font-style: normal;
    font-size: 0.76rem;
    font-weight: 800;
}

.line-field input {
    width: 100%;
    min-height: 32px;
    border: 0;
    border-bottom: 2px solid var(--line-dark);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    padding: 2px 4px 4px;
}

.thanks-box {
    margin-top: 20px;
    padding: 20px 21px;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.thanks-box > p {
    margin: 0 0 17px;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.7;
}

.web-note {
    padding: 14px 18px 14px 20px;
    border-left: 6px solid var(--accent);
    background: var(--box);
}

.web-note p {
    margin: 0;
    color: #435464;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.75;
}

.submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
}

.submit-button {
    min-width: 178px;
    min-height: 48px;
    border: 0;
    border-radius: 4px;
    background: var(--accent);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(46, 63, 80, 0.18);
    transform: translateY(0);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.submit-button:hover {
    background: #1f2e3c;
    box-shadow: 0 16px 28px rgba(31, 46, 60, 0.24);
    transform: translateY(-2px);
}

.submit-button:active {
    box-shadow: 0 6px 14px rgba(31, 46, 60, 0.2);
    transform: translateY(0);
}

.submit-button:disabled {
    cursor: wait;
    opacity: 0.68;
    background: var(--accent);
    box-shadow: 0 8px 18px rgba(46, 63, 80, 0.12);
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .submit-button,
    .submit-button:hover,
    .submit-button:active {
        transform: none;
        transition: background-color 0.2s ease, opacity 0.2s ease;
    }
}

.submit-result {
    margin-top: 18px;
    padding: 15px 18px;
    border-radius: 4px;
    font-size: 0.98rem;
    line-height: 1.7;
}

.submit-result strong {
    display: block;
    margin-bottom: 2px;
}

.submit-result p {
    margin: 0;
}

.submit-result--success {
    border: 1px solid rgba(21, 96, 62, 0.28);
    background: #eef8f2;
    color: var(--success);
}

.form-status {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 4px;
    background: #fff4f2;
    color: var(--error);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.6;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.trust-footer {
    width: min(100%, 1060px);
    margin: 18px auto 0;
    padding: 20px 16px 0;
    color: #5d6d7c;
    text-align: center;
    font-size: 0.82rem;
    line-height: 1.7;
}

.trust-footer p {
    margin: 0;
}

.trust-footer__operator {
    color: #435464;
    font-weight: 700;
    text-decoration: none;
}

.trust-footer__operator span {
    display: block;
}

.trust-footer__operator:hover {
    text-decoration: underline;
}

.trust-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 0;
    margin: 8px auto;
}

.trust-footer__links a {
    color: #435464;
    text-decoration: none;
    font-weight: 600;
}

.trust-footer__links a:hover {
    text-decoration: underline;
}

.trust-footer__links a + a::before {
    content: "|";
    display: inline-block;
    margin: 0 10px;
    color: #9da9b5;
    font-weight: 400;
}

.trust-footer__copy {
    color: #6b7a88;
}

@media (max-width: 760px) {
    .page-shell {
        padding: 0;
    }

    .support-sheet {
        min-height: auto;
        padding: 30px 20px 40px;
        box-shadow: none;
    }

    .sheet-header {
        display: block;
        padding-bottom: 14px;
        border-bottom-width: 3px;
    }

    .sheet-heading h1 {
        font-size: 1.78rem;
        line-height: 1.35;
    }

    .sheet-heading p,
    .intro-box p {
        font-size: 0.98rem;
    }

    .sheet-brand {
        min-width: 0;
        margin-top: 14px;
        text-align: left;
    }

    .intro-box {
        padding: 15px 16px;
    }

    .question-block legend {
        align-items: flex-start;
        font-size: 1.04rem;
    }

    .question-number {
        width: 28px;
        height: 28px;
        margin-top: 2px;
        font-size: 0.92rem;
    }

    .checkbox-row,
    .contact-caption,
    .contact-lines {
        padding-left: 40px;
    }

    .checkbox-row {
        display: grid;
        gap: 10px;
    }

    .checkbox-row label {
        font-size: 1rem;
    }

    .contact-lines {
        grid-template-columns: 1fr;
        row-gap: 13px;
    }

    .line-field {
        grid-template-columns: minmax(74px, auto) minmax(0, 1fr);
        gap: 10px;
    }

    .thanks-box {
        padding: 16px;
    }

    .thanks-box > p {
        font-size: 1rem;
    }

    .submit-row {
        justify-content: stretch;
    }

    .submit-button {
        width: 100%;
    }

    .trust-footer {
        padding: 18px 20px 28px;
        font-size: 0.78rem;
    }

    .trust-footer__links {
        display: grid;
        gap: 4px;
    }

    .trust-footer__links a + a::before {
        content: none;
    }
}

@media print {
    html,
    body {
        background: #ffffff;
    }

    .page-shell {
        padding: 0;
    }

    .support-sheet {
        width: 100%;
        min-height: 0;
        padding: 20mm;
        box-shadow: none;
    }

    .submit-row,
    .trust-footer,
    .form-status,
    .submit-result {
        display: none !important;
    }
}
