.fs-page-hero {
    position: relative;
    display: flex;
    width: auto;
    max-width: 100vw;
    min-height: 72svh;
    align-items: center;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding: 140px 0 90px;
    overflow: hidden;
    background-color: var(--fs-bg-deep);
    background-position: center;
    background-size: cover;
}

.fs-page-hero--company {
    background-image:
        linear-gradient(90deg, rgba(0, 5, 15, 0.9), rgba(0, 5, 15, 0.32)),
        linear-gradient(0deg, #00050f, transparent 32%),
        url('https://failsafe.jp/wp-content/uploads/2026/04/company-bg.webp');
}

.fs-page-hero--contact {
    background-image:
        linear-gradient(90deg, rgba(0, 5, 15, 0.9), rgba(0, 5, 15, 0.32)),
        linear-gradient(0deg, #00050f, transparent 32%),
        url('https://failsafe.jp/wp-content/uploads/2026/04/contact-bg.webp');
}

.fs-page-hero__content {
    width: min(700px, 78%);
}

.fs-page-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.7rem, 6vw, 5rem);
    font-weight: 850;
    line-height: 1.2;
}

.fs-page-hero__lead {
    max-width: 660px;
    margin: 24px 0 0;
    color: #d5e1ed;
    font-size: 1rem;
    line-height: 2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.fs-page-hero .fs-button-row {
    margin-top: 32px;
}

.company-mission {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 80px;
}

.company-mission__statement {
    margin: 0;
    color: #fff;
    font-size: clamp(1.55rem, 3vw, 2.4rem);
    font-weight: 750;
    line-height: 1.75;
}

.company-mission__statement span {
    color: var(--fs-cyan);
}

.company-mission__copy p {
    margin: 0 0 20px;
    color: var(--fs-muted);
    line-height: 2;
}

.company-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.company-values .fs-card {
    padding: 34px 30px;
}

.company-info {
    width: 100%;
    border-collapse: collapse;
}

.company-info tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.company-info th,
.company-info td {
    padding: 22px 0;
    text-align: left;
    vertical-align: top;
}

.company-info th {
    width: 220px;
    color: var(--fs-cyan);
    font-size: 0.85rem;
    font-weight: 750;
}

.company-info td {
    color: #c7d5e4;
    font-size: 0.92rem;
    line-height: 1.75;
}

.company-info a {
    color: var(--fs-cyan);
}

.contact-intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-intro-grid .fs-card {
    padding: 30px;
}

.contact-form-shell {
    max-width: 780px;
    margin: 0 auto;
    padding: 42px;
    border: 1px solid var(--fs-border);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(10, 25, 49, 0.88), rgba(2, 9, 23, 0.9));
    box-shadow: var(--fs-shadow);
}

.contact-form-shell .wp-block-columns,
.contact-form-shell .wp-block-column {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

.contact-form-shell .wpcf7-form p {
    margin: 0 0 24px;
}

.contact-form-shell .wpcf7-form label {
    display: block;
    color: #e8f2fb;
    font-size: 0.87rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.contact-form-shell .must,
.contact-form-shell .optional {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.65rem;
}

.contact-form-shell .must {
    background: rgba(56, 189, 248, 0.16);
    color: var(--fs-cyan);
}

.contact-form-shell .optional {
    background: rgba(148, 163, 184, 0.12);
    color: #b6c4d2;
}

.contact-form-shell .wpcf7-form-control-wrap {
    display: block;
    margin-top: 9px;
}

.contact-form-shell .wpcf7-text,
.contact-form-shell .wpcf7-email,
.contact-form-shell .wpcf7-tel,
.contact-form-shell .wpcf7-textarea,
.contact-form-shell .wpcf7-select {
    width: 100% !important;
    padding: 13px 15px !important;
    border: 1px solid rgba(103, 232, 249, 0.2) !important;
    border-radius: 10px !important;
    outline: none !important;
    background: rgba(0, 6, 17, 0.8) !important;
    color: #eff6ff !important;
    font-size: 0.95rem !important;
    box-sizing: border-box !important;
}

.contact-form-shell .wpcf7-text:focus,
.contact-form-shell .wpcf7-email:focus,
.contact-form-shell .wpcf7-tel:focus,
.contact-form-shell .wpcf7-textarea:focus,
.contact-form-shell .wpcf7-select:focus {
    border-color: var(--fs-cyan) !important;
    box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.1) !important;
}

.contact-form-shell .wpcf7-textarea {
    min-height: 170px;
    resize: vertical;
}

.contact-form-shell .wpcf7-submit {
    width: 100% !important;
    min-height: 56px;
    margin-top: 8px;
    border: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #2563eb, #0891b2 70%, #22d3ee) !important;
    box-shadow: 0 14px 36px rgba(14, 165, 233, 0.24);
    color: #fff !important;
    font-weight: 800 !important;
    cursor: pointer;
}

.contact-form-shell .wpcf7-not-valid-tip {
    color: #fca5a5;
    font-size: 0.78rem;
}

.contact-form-shell .wpcf7-response-output {
    margin: 22px 0 0 !important;
    padding: 14px 16px !important;
    border-radius: 10px;
    color: #e2e8f0;
}

.contact-note {
    max-width: 780px;
    margin: 22px auto 0;
    color: var(--fs-muted);
    font-size: 0.78rem;
    line-height: 1.8;
    text-align: center;
}

@media (max-width: 900px) {
    .company-mission {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .company-values,
    .contact-intro-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .fs-page-hero {
        min-height: 78svh;
        align-items: flex-end;
        padding: 120px 0 62px;
    }

    .fs-page-hero--company {
        background-image:
            linear-gradient(180deg, rgba(0, 5, 15, 0.25), #00050f 100%),
            url('https://failsafe.jp/wp-content/uploads/2026/04/company-bg-mobile.webp');
    }

    .fs-page-hero--contact {
        background-image:
            linear-gradient(180deg, rgba(0, 5, 15, 0.25), #00050f 100%),
            url('https://failsafe.jp/wp-content/uploads/2026/04/contact-bg-mobile.webp');
    }

    .fs-page-hero__content {
        width: 100%;
    }

    .fs-page-hero h1 {
        font-size: clamp(2.05rem, 9vw, 2.7rem);
    }

    .fs-page-hero__lead {
        font-size: 0.9rem;
        line-height: 1.85;
    }

    .company-info th,
    .company-info td {
        display: block;
        width: 100%;
        padding: 0;
    }

    .company-info th {
        padding-top: 18px;
    }

    .company-info td {
        padding: 7px 0 18px;
    }

    .contact-form-shell {
        padding: 26px 20px;
        border-radius: 16px;
    }
}
