:root {
    --navy: #17324d;
    --blue: #1d5f99;
    --paper: #ffffff;
    --soft: #f4f6f8;
    --soft-blue: #eef4f8;
    --line: #d7e0e8;
    --line-dark: #b7c5d1;
    --ink: #1f2d3a;
    --muted: #637487;
    --error: #b42318;
    --success: #15603e;
    --font-ja: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, "Helvetica Neue", sans-serif;
    --font-en: "Inter", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color: var(--ink);
    font-family: var(--font-ja);
    letter-spacing: 0;
    background: var(--soft);
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--soft);
    overflow-x: hidden;
}

body,
button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: calc(100% - 40px);
    max-width: 1120px;
    margin: 0 auto;
}

h1,
h2,
h3,
p,
dd,
span,
strong,
summary,
label {
    overflow-wrap: anywhere;
}

.page-title__grid > *,
.two-column > *,
.contact-layout > *,
.form-ticket > *,
.work-table article > div,
.check-list div > *,
.process-list li > div {
    min-width: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 64px;
    padding: 10px max(20px, calc((100vw - 1120px) / 2));
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
}

.brand,
.footer-brand {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand__name,
.footer-brand span {
    color: var(--navy);
    font-family: var(--font-en);
    font-size: 1.32rem;
    font-weight: 700;
}

.brand__mark {
    font-size: 0.65em;
    vertical-align: super;
}

.brand__tag,
.footer-brand small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #405469;
    font-size: 0.9rem;
    font-weight: 500;
}

.header-nav a:hover {
    color: var(--blue);
}

.header-nav__button {
    padding: 7px 12px;
    border: 1px solid var(--blue);
    border-radius: 4px;
    color: var(--blue);
    background: #ffffff;
}

.header-nav__button:hover {
    background: #f2f8fc;
}

.page-title {
    padding: 42px 0 32px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.page-title__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: start;
}

.page-label,
.section-kicker {
    margin: 0 0 10px;
    color: var(--blue);
    font-family: var(--font-en);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-title h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.8rem, 2.8vw, 2.35rem);
    font-weight: 600;
    line-height: 1.42;
}

.page-lead {
    max-width: 760px;
    margin: 16px 0 0;
    color: #3d4e5e;
    font-size: 1.02rem;
    font-weight: 400;
    line-height: 1.9;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.page-note {
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.desk-panel {
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fbfcfd;
}

.desk-panel dl {
    margin: 0;
}

.desk-panel dl > div {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
}

.desk-panel dl > div + div {
    border-top: 1px solid var(--line);
}

.desk-panel dt {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.desk-panel dd {
    margin: 0;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.7;
}

.desk-panel dd a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.desk-actions {
    display: grid;
    padding: 14px 16px 16px;
    border-top: 1px solid var(--line);
}

.desk-actions .button {
    width: 100%;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
}

.quick-section,
.notice-section {
    padding: 22px 0 0;
}

.quick-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 16px;
}

.quick-card {
    padding: 17px 20px;
    border: 1px solid #c7d7e4;
    border-left: 5px solid var(--blue);
    border-radius: 4px;
    background: #f7fbff;
}

.quick-card strong {
    display: block;
    color: var(--navy);
    font-weight: 600;
}

.quick-card p {
    margin: 6px 0 0;
    color: #485b6d;
    font-size: 0.95rem;
    line-height: 1.8;
}

.quick-card--links {
    border-left-width: 1px;
    background: #ffffff;
}

.trust-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    margin-top: 9px;
    color: var(--blue);
    font-size: 0.9rem;
    font-weight: 600;
}

.trust-links a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.notice-box {
    padding: 17px 20px;
    border: 1px solid #c7d7e4;
    border-left: 5px solid var(--blue);
    border-radius: 4px;
    background: #f7fbff;
}

.notice-box strong {
    display: block;
    color: var(--navy);
    font-weight: 600;
}

.notice-box p {
    margin: 6px 0 0;
    color: #485b6d;
    font-size: 0.95rem;
    line-height: 1.8;
}

.section {
    padding: 54px 0;
}

.section--muted,
.section--contact {
    background: var(--soft-blue);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 22px;
}

#scope .section-heading {
    max-width: none;
}

.section-heading--compact {
    margin-bottom: 0;
}

.section-heading h2,
.form-ticket h2,
.contact-summary h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.28rem, 2.1vw, 1.72rem);
    font-weight: 600;
    line-height: 1.42;
}

.section-heading p:not(.section-kicker),
.form-ticket p,
.contact-summary p {
    margin: 12px 0 0;
    color: #4d5f70;
    font-size: 0.96rem;
    line-height: 1.85;
}

.work-table {
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--paper);
}

.work-table article {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 18px;
    padding: 20px 22px;
}

.work-table article + article {
    border-top: 1px solid var(--line);
}

.work-table article > span {
    color: var(--blue);
    font-family: var(--font-en);
    font-weight: 600;
}

.work-table h3 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 1.04rem;
    font-weight: 600;
}

.work-table p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.8;
}

.scope-note {
    margin-top: 14px;
    padding: 15px 18px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #ffffff;
}

.scope-note strong {
    display: block;
    color: var(--navy);
    font-weight: 600;
}

.scope-note p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.8;
}

.two-column,
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 42px;
    align-items: start;
}

.check-list {
    display: grid;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--paper);
}

.check-list div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 16px;
    padding: 15px 18px;
}

.check-list div + div {
    border-top: 1px solid var(--line);
}

.check-list strong {
    color: var(--navy);
    font-weight: 600;
}

.check-list span {
    color: var(--muted);
    line-height: 1.75;
}

.process-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.process-list li {
    min-height: 170px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--paper);
}

.process-list li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--navy);
    color: #ffffff;
    font-family: var(--font-en);
    font-size: 0.9rem;
    font-weight: 600;
}

.process-list h3 {
    margin: 14px 0 8px;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 600;
}

.process-list p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

.form-ticket {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
}

.button,
.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.button {
    padding: 11px 18px;
}

.button--outline {
    border: 1px solid var(--blue);
    background: var(--paper);
    color: var(--blue);
}

.button--primary {
    border: 1px solid var(--navy);
    background: var(--navy);
    color: #ffffff;
}

.button--primary:hover {
    background: #244968;
    border-color: #244968;
}

.button--outline:hover {
    background: #f2f8fc;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-list details {
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--paper);
    overflow: hidden;
}

.faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 19px;
    color: var(--navy);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--blue);
    font-family: var(--font-en);
    font-size: 1.2rem;
    font-weight: 600;
}

.faq-list details[open] summary {
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
}

.faq-list details[open] summary::after {
    content: "-";
}

.faq-list p {
    margin: 0;
    padding: 16px 19px 18px;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.8;
}

.contact-summary {
    position: sticky;
    top: 88px;
}

.contact-note {
    margin-top: 20px;
    padding: 15px 17px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--blue);
    border-radius: 4px;
    background: var(--paper);
}

.contact-note strong,
.contact-note span {
    display: block;
}

.contact-note strong {
    color: var(--navy);
    font-weight: 600;
}

.contact-note span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.support-contact-form {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--paper);
}

.form-intro {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #c7d7e4;
    border-left: 5px solid var(--blue);
    border-radius: 4px;
    background: #f7fbff;
}

.form-intro strong {
    display: block;
    color: var(--navy);
    font-weight: 600;
}

.form-intro p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.form-section {
    margin: 0 0 18px;
    padding: 0 0 4px;
    border: 0;
}

.form-section legend {
    display: block;
    width: 100%;
    margin: 0 0 14px;
    padding: 0 0 8px;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
    font-size: 1rem;
    font-weight: 600;
}

.form-row {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

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

.support-contact-form label {
    display: grid;
    gap: 7px;
}

.support-contact-form label > span {
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 600;
}

.support-contact-form em {
    margin-left: 3px;
    color: var(--error);
    font-style: normal;
    font-size: 0.74rem;
}

.support-contact-form input,
.support-contact-form select,
.support-contact-form textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid #c8d4df;
    border-radius: 3px;
    background: #ffffff;
    color: var(--ink);
    padding: 10px 11px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.support-contact-form textarea {
    min-height: 138px;
    resize: vertical;
}

.support-contact-form input[type="file"] {
    min-height: auto;
    padding: 9px 10px;
    background: #fbfcfd;
}

.support-contact-form input:focus,
.support-contact-form select:focus,
.support-contact-form textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(29, 95, 153, 0.12);
}

.file-help,
.file-status {
    margin: -8px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.6;
}

.file-status {
    margin-top: -10px;
    font-weight: 600;
}

.file-status--error {
    color: var(--error);
}

.submit-button {
    width: 100%;
    min-height: 48px;
    border: 0;
    background: var(--navy);
    color: #ffffff;
}

.submit-button:hover {
    background: #244968;
    box-shadow: 0 8px 20px rgba(23, 50, 77, 0.18);
    transform: translateY(-2px);
}

.submit-button:active {
    box-shadow: 0 4px 12px rgba(23, 50, 77, 0.16);
    transform: translateY(0);
}

.submit-button:disabled {
    cursor: wait;
    opacity: 0.68;
}

.submit-result,
.form-status {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 0.92rem;
    line-height: 1.7;
}

.submit-result strong {
    display: block;
}

.submit-result p {
    margin: 2px 0 0;
}

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

.form-status {
    color: var(--error);
    background: #fff4f2;
}

.privacy-note {
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.6;
    text-align: center;
}

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

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--paper);
    color: var(--muted);
    padding: 32px 0;
}

.footer-grid {
    display: grid;
    gap: 16px;
    text-align: center;
}

.footer-brand {
    justify-self: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 0;
    font-size: 0.84rem;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--blue);
    text-decoration: underline;
}

.footer-links a + a::before {
    content: "|";
    display: inline-block;
    margin: 0 10px;
    color: var(--line-dark);
}

.footer-copy {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button,
    .submit-button {
        transition: none;
    }

    .submit-button:hover,
    .submit-button:active {
        transform: none;
    }
}

@media (max-width: 980px) {
    .page-title__grid,
    .quick-grid,
    .two-column,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .contact-summary {
        position: static;
    }

    .form-ticket {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .container {
        width: calc(100% - 32px);
    }

    .site-header {
        position: relative;
        display: grid;
        gap: 12px;
        min-height: auto;
        padding: 14px 16px;
    }

    .header-nav {
        gap: 12px;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 0.84rem;
    }

    .page-title {
        padding: 34px 0 28px;
    }

    .page-actions,
    .page-actions .button {
        width: 100%;
    }

    .page-title h1 {
        font-size: 2rem;
    }

    .desk-panel dl > div,
    .check-list div,
    .work-table article {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .section {
        padding: 42px 0;
    }

    .process-list,
    .form-row--split {
        grid-template-columns: 1fr;
    }

    .support-contact-form {
        padding: 18px 14px;
    }

    .trust-links {
        display: grid;
    }

    .footer-links {
        display: grid;
        gap: 6px;
    }

    .footer-links a + a::before {
        content: none;
    }
}
