.of-page-content:has(.otonafolio-contact) {
    max-width: 1120px;
}

.of-page-content:has(.otonafolio-contact) > .of-eyebrow {
    color: var(--of-accent);
}

.of-page-content:has(.otonafolio-contact) > h1 {
    margin-bottom: 0;
    font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 900;
    letter-spacing: -.055em;
}

.otonafolio-contact {
    max-width: 1120px;
    margin-top: 34px;
}

.of-contact-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--of-border);
    border-radius: 8px;
    background: var(--of-surface);
}

.of-contact-guide {
    padding: 34px 28px;
    background:
        linear-gradient(145deg, rgba(238, 109, 118, .18), transparent 42%),
        #111521;
    color: #f6f3ef;
}

.of-contact-kicker {
    margin: 0 0 10px;
    color: var(--of-accent-2);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .2em;
}

.of-contact-guide h2,
.of-contact-panel h2,
.of-contact-message h2 {
    margin: 0;
    color: inherit;
    font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
    font-weight: 900;
    letter-spacing: -.035em;
}

.of-contact-guide h2 {
    font-size: 27px;
}

.of-contact-guide > p:not(.of-contact-kicker, .of-contact-domain) {
    margin: 14px 0 26px;
    color: #b9bdc8;
    font-size: 13px;
}

.of-contact-guide-list {
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.of-contact-guide-list > div {
    position: relative;
    padding: 20px 0 20px 39px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.of-contact-guide-list span {
    position: absolute;
    top: 20px;
    left: 0;
    color: #f47a83;
    font-size: 11px;
    font-weight: 900;
}

.of-contact-guide-list h3 {
    margin: 0;
    color: #fff;
    font-size: 13px;
    line-height: 1.6;
}

.of-contact-guide-list p {
    margin: 5px 0 0;
    color: #9fa4b2;
    font-size: 11px;
    line-height: 1.7;
}

.of-contact-domain {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 24px 0 0;
    color: #9fa4b2;
    font-size: 10px;
}

.of-contact-domain code {
    color: #fff;
    font-size: 12px;
}

.of-contact-panel {
    padding: 34px clamp(24px, 5vw, 52px) 42px;
}

.of-contact-panel-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 26px;
    border-bottom: 2px solid var(--of-text);
}

.of-contact-panel h2 {
    color: var(--of-text);
    font-size: clamp(24px, 3.5vw, 34px);
}

.of-contact-required-note {
    flex: 0 0 auto;
    margin: 0;
    color: var(--of-muted);
    font-size: 11px;
}

.of-contact-required,
.of-contact-required-note span {
    color: var(--of-accent);
    font-weight: 900;
}

.of-contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
}

.of-contact-field-wide {
    grid-column: 1 / -1;
}

.of-contact-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--of-text);
    font-size: 13px;
    font-weight: 900;
}

.of-contact-optional {
    display: inline-block;
    padding: 1px 7px;
    margin-left: 6px;
    border: 1px solid var(--of-border);
    border-radius: 3px;
    color: var(--of-muted);
    font-size: 9px;
    font-weight: 700;
    vertical-align: 2px;
}

.of-contact-field input,
.of-contact-field textarea,
.of-contact-field select {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--of-border);
    border-radius: 5px;
    outline: 0;
    background: var(--of-bg);
    color: var(--of-text);
    line-height: 1.6;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.of-contact-field textarea {
    min-height: 220px;
    resize: vertical;
}

.of-contact-field input:focus,
.of-contact-field textarea:focus,
.of-contact-field select:focus {
    border-color: var(--of-accent);
    box-shadow: 0 0 0 3px rgba(238, 109, 118, .12);
}

.of-contact-help {
    margin: 6px 0 0;
    color: var(--of-muted);
    font-size: 10px;
}

.of-contact-consent {
    padding: 14px 16px;
    border: 1px solid var(--of-border);
    border-radius: 5px;
    background: var(--of-bg);
}

.of-contact-consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--of-muted);
    font-size: 12px;
    cursor: pointer;
}

.of-contact-consent input {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    margin-top: 4px;
    accent-color: var(--of-accent);
}

.of-contact-consent a {
    color: var(--of-accent);
}

.of-contact-submit-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.of-contact-submit {
    min-height: 48px;
    padding: 10px 25px;
    border: 0;
    border-radius: 5px;
    background: var(--of-accent);
    color: #17131a;
    font-weight: 900;
    cursor: pointer;
}

.of-contact-submit:hover {
    filter: brightness(1.06);
}

.of-contact-submit-row p {
    margin: 0;
    color: var(--of-muted);
    font-size: 10px;
}

.of-contact-message {
    padding: 34px;
    border: 1px solid var(--of-border);
    border-top: 5px solid var(--of-accent);
    border-radius: 7px;
    background: var(--of-surface);
}

.of-contact-message.success {
    border-top-color: #4fa68f;
}

.of-contact-message.error {
    padding: 14px 18px;
    margin-bottom: 18px;
    border-top-color: #d64f67;
}

.of-contact-message h2 {
    color: var(--of-text);
    font-size: clamp(24px, 4vw, 34px);
}

.of-contact-message p {
    color: var(--of-muted);
}

.of-contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 860px) {
    .of-contact-layout {
        grid-template-columns: 1fr;
    }

    .of-contact-guide-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .of-contact-guide-list > div {
        padding-right: 14px;
        border-right: 1px solid rgba(255, 255, 255, .12);
    }
}

@media (max-width: 640px) {
    .otonafolio-contact {
        margin-top: 24px;
    }

    .of-contact-guide,
    .of-contact-panel {
        padding: 25px 20px;
    }

    .of-contact-guide-list {
        grid-template-columns: 1fr;
    }

    .of-contact-guide-list > div {
        border-right: 0;
    }

    .of-contact-panel-header,
    .of-contact-submit-row {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .of-contact-field-wide {
        grid-column: auto;
    }

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