:root {
    --navy: #071a2f;
    --navy-light: #102b49;
    --gold: #c9a45c;
    --white: #ffffff;
    --text: #263344;
    --muted: #687586;
    --surface: #f4f6f8;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
    line-height: 1.8;
}

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

.content-width {
    width: min(1120px, 88%);
    margin: 0 auto;
}

/* ヘッダー */
.site-header {
    position: absolute;
    z-index: 5;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 5.5%;
    color: var(--white);
    background: rgb(0 0 0 / 78%);
    border-bottom: 1px solid rgb(255 255 255 / 15%);
}

.site-logo {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.site-logo img {
    display: block;
    width: 90px;
    height: auto;
    filter:
        drop-shadow(0 0 5px rgb(255 255 255 / 85%)) drop-shadow(0 0 12px rgb(255 255 255 / 55%));
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.7vw, 26px);
    font-size: 0.75rem;
}

.site-nav a {
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active,
.site-nav a.is-current {
    color: var(--gold);
}

/* 共通見出し */
.section-label {
    margin: 0 0 14px;
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.section-padding {
    padding: 100px 0;
}

.contact-flow h2,
.contact-form-section h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.5;
}

/* ヒーロー */
.contact-hero {
    display: flex;
    min-height: 420px;
    align-items: center;
    padding: 110px 0 70px;
    color: var(--white);
    background:
        linear-gradient(90deg, rgb(5 16 31 / 82%), rgb(5 16 31 / 30%)),
        url("hero-background.jpg") center / cover no-repeat;
}

.contact-hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.45;
}

.contact-hero-copy {
    margin: 22px 0 0;
    color: rgb(255 255 255 / 90%);
    font-size: 1rem;
}

/* FLOW */
.contact-flow {
    padding: 76px 0 84px;
    background: var(--surface);
}

.contact-flow .flow-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 32px;
}

.contact-flow .flow-item {
    min-width: 0;
    min-height: 230px;
    padding: 26px 24px;
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-top: 3px solid var(--gold);
}

.contact-flow .flow-number {
    display: block;
    margin-bottom: 18px;
    color: var(--gold);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.2;
}

.contact-flow .flow-en {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.contact-flow .flow-item h3 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 1.05rem;
}

.contact-flow .flow-item p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

/* お問い合わせフォーム */
.contact-form-section {
    padding: 84px 0 100px;
    background: var(--white);
}

.contact-form-section .content-width {
    max-width: 900px;
}

.form-intro {
    margin: 18px 0 28px;
    color: var(--muted);
}

.contact-form {
    width: 100%;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.contact-form .form-row label {
    padding-top: 10px;
    color: var(--navy);
    font-weight: 600;
}

.contact-form .form-row label span {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 7px;
    color: #fff;
    background: #a44a43;
    border-radius: 2px;
    font-size: 0.68rem;
    font-weight: 500;
    vertical-align: 2px;
}

.contact-form .form-row label span.optional {
    color: var(--muted);
    background: #e9edf1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 14px;
    color: var(--text);
    background: #fafbfc;
    border: 1px solid #d5dbe2;
    border-radius: 3px;
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgb(201 164 92 / 35%);
    border-color: var(--gold);
}

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

.contact-form .form-submit {
    display: flex;
    width: min(100%, 300px);
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin: 36px auto 0;
    padding: 15px 24px;
    color: var(--white);
    background: var(--navy);
    border: 0;
    cursor: pointer;
    font: inherit;
    transition: background 0.2s ease;
}

.contact-form .form-submit:hover {
    background: var(--navy-light);
}

.contact-form .form-submit span:first-child {
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.contact-form .form-submit span:last-child {
    font-size: 0.9rem;
}

/* フッター */
.site-footer {
    padding: 24px 0;
    color: rgb(255 255 255 / 75%);
    background: var(--navy);
    font-size: 0.78rem;
}

.site-footer p {
    margin: 0;
}

/* タブレット */
@media (max-width: 900px) {
    .contact-flow .flow-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-flow .flow-item {
        min-height: 200px;
    }
}

/* スマートフォン */
@media (max-width: 700px) {
    .site-header {
        gap: 14px;
        padding-inline: 5%;
    }

    .site-nav {
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 8px 14px;
        font-size: 0.68rem;
    }

    .site-logo img {
        width: 76px;
    }

    .contact-hero {
        min-height: 390px;
    }

    .section-padding {
        padding: 64px 0;
    }
}

@media (max-width: 560px) {
    .content-width {
        width: 88%;
    }

    .site-header {
        align-items: flex-start;
        padding-top: 12px;
    }

    .site-nav {
        max-width: 72%;
    }

    .contact-flow .flow-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-flow .flow-item {
        min-height: auto;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .contact-form .form-row label {
        padding-top: 0;
    }

    .contact-form .form-submit {
        width: 100%;
    }
}