/* ========================================
   ASCLEPIUS / CONTACT
   Input, confirmation and completion pages.
   Form names and behaviour remain unchanged.
======================================== */

.asc-contact,
.asc-contact *,
.asc-contact-hero,
.asc-contact-hero * {
    box-sizing: border-box;
}

.asc-contact,
.asc-contact-hero {
    color: var(--asc-ink, #18384B);
    font-family: var(--asc-body, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif);
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: 0.015em;
    overflow-wrap: anywhere;
}

.asc-contact {
    width: 100%;
    background: var(--asc-white, #FFFFFF);
}

.asc-contact :where(div, p, span, h1, h2, h3, a, label, button, input, select, textarea, ol, li),
.asc-contact-hero :where(div, p, span, h1, a, ol, li) {
    margin: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
}

.asc-contact [hidden] {
    display: none;
}

.asc-contact a,
.asc-contact-hero a {
    color: var(--asc-navy, #18384B);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.asc-contact a:hover,
.asc-contact-hero a:hover {
    opacity: 1;
    text-decoration-thickness: 2px;
}

.asc-contact :is(a, button, input, select, textarea):focus-visible,
.asc-contact .ContactPrivacy_box:focus-visible,
.asc-contact-hero a:focus-visible {
    outline: 2px solid var(--asc-blue, #2F7FA3);
    outline-offset: 4px;
}

.asc-contact .ContactContainer,
.asc-contact-container {
    width: min(calc(100% - 96px), 1080px);
    margin-inline: auto;
}

.asc-contact h2,
.asc-contact h3 {
    color: var(--asc-navy, #18384B);
    font-weight: 650;
    line-height: 1.65;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.asc-contact .SfEyebrow,
.asc-contact .SfMiniEyebrow,
.asc-contact .ContactPrivacy_label,
.asc-contact .ContactCompleteEyebrow,
.asc-contact .ContactCompleteSupportLabel,
.asc-contact-hero .asc-contact-eyebrow {
    color: var(--asc-navy, #18384B);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.12em;
}

.asc-contact .SfSectionTitle,
.asc-contact .ContactCompleteCard h2 {
    font-size: clamp(23px, 2.6vw, 30px);
}

.asc-contact .SfBlockTitle {
    font-size: 23px;
}

.asc-contact .SfText {
    font-size: 15px;
    line-height: 1.95;
}

/* PAGE INTRODUCTION */

.asc-contact-hero {
    margin-top: 24px;
    border-bottom: 1px solid var(--asc-line, #DCE7E9);
    background: linear-gradient(125deg, #FFFFFF 25%, var(--asc-bg, #F5F8F9) 100%);
}

.asc-contact-breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 12px;
    list-style: none;
    font-size: 12px;
    line-height: 1.7;
}

.asc-contact-breadcrumb li + li::before {
    margin-right: 12px;
    content: "/";
}

.asc-contact-breadcrumb a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.asc-contact-hero__content {
    max-width: 780px;
    padding-block: 34px 40px;
}

.asc-contact-hero .asc-contact-hero__title {
    margin-top: 13px;
    color: var(--asc-navy, #18384B);
    font-size: clamp(28px, 3.6vw, 43px);
    font-weight: 650;
    line-height: 1.5;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.asc-contact-hero .asc-contact-hero__lead {
    margin-top: 18px;
    font-size: 18px;
    line-height: 1.8;
    font-weight: 500;
}

.asc-contact-hero .asc-contact-hero__note {
    margin-top: 9px;
    font-size: 15px;
    line-height: 1.9;
}

.asc-contact-steps {
    display: flex;
    gap: 28px;
    padding-bottom: 22px;
    list-style: none;
}

.asc-contact-steps li {
    display: inline-flex;
    align-items: baseline;
    gap: 9px;
    padding-bottom: 9px;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    line-height: 1.7;
}

.asc-contact-steps li[aria-current="step"] {
    border-bottom-color: var(--asc-teal, #39AEB4);
    font-weight: 700;
}

.asc-contact-steps li span {
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.asc-contact .ContactIntro {
    padding-top: 48px;
}

.asc-contact .ContactIntro_inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
    align-items: start;
    gap: 46px;
}

.asc-contact .ContactIntro_head h2 {
    margin-top: 12px;
}

.asc-contact .ContactIntro_body .SfText + .SfText {
    margin-top: 14px;
}

.asc-contact .ContactGuide {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin-top: 32px;
}

.asc-contact .ContactGuide article {
    min-width: 0;
    padding-block: 19px 8px;
    border-top: 1px solid var(--asc-line, #DCE7E9);
}

.asc-contact .ContactGuide span {
    display: block;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.6;
    font-variant-numeric: tabular-nums;
}

.asc-contact .ContactGuide h3 {
    margin-top: 10px;
    font-size: 18px;
}

.asc-contact .ContactGuide p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.9;
}

/* FORM SECTIONS AND LABELS */

.asc-contact .ContactFormSection {
    padding-block: 42px 76px;
}

.asc-contact .ContactForm {
    width: 100%;
    margin: 0;
}

.asc-contact .ContactForm_notice,
.asc-contact .ContactConfirmNotice {
    margin-bottom: 24px;
    padding: 17px 22px;
    border: 1px solid var(--asc-line, #DCE7E9);
    border-radius: 9px;
    background: var(--asc-bg, #F5F8F9);
    font-size: 13px;
    line-height: 1.9;
}

.asc-contact .ContactFormBlock {
    margin-bottom: 28px;
    padding: 32px 38px 18px;
    border: 1px solid var(--asc-line, #DCE7E9);
    border-radius: 14px;
    background: var(--asc-white, #FFFFFF);
}

.asc-contact .ContactFormBlock_head {
    margin-bottom: 23px;
}

.asc-contact .ContactFormBlock_head h2 {
    margin-top: 8px;
}

.asc-contact .ContactFormBlock_head .SfText {
    max-width: 780px;
    margin-top: 12px;
    font-size: 14px;
}

.asc-contact .ContactFormList {
    border-top: 1px solid var(--asc-line, #DCE7E9);
}

.asc-contact .ContactFormRow {
    display: grid;
    grid-template-columns: minmax(180px, 0.85fr) minmax(0, 2fr);
    align-items: start;
    gap: 27px;
    padding-block: 22px;
    border-bottom: 1px solid var(--asc-line, #DCE7E9);
}

.asc-contact .ContactFormRow:last-child {
    border-bottom: 0;
}

.asc-contact .ContactFormLabel {
    display: flex;
    align-items: center;
    align-content: center;
    flex-wrap: wrap;
    gap: 5px 9px;
    min-height: 52px;
    color: var(--asc-navy, #18384B);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.8;
}

.asc-contact .ContactFormLabel > span {
    display: inline-flex;
    flex: none;
    align-items: center;
    min-height: 22px;
    padding: 1px 7px;
    border-radius: 4px;
    background: var(--asc-ice, #DDF4F7);
    color: var(--asc-navy, #18384B);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.7;
}

.asc-contact .ContactFormField {
    min-width: 0;
}

.asc-contact .ContactFormField input,
.asc-contact .ContactFormField select,
.asc-contact .ContactMessageField textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 12px 15px;
    border: 1px solid #A8BDC7;
    border-radius: 8px;
    background-color: var(--asc-white, #FFFFFF);
    color: var(--asc-navy, #18384B);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: 0;
}

.asc-contact .ContactFormField select {
    appearance: auto;
    padding-right: 12px;
}

.asc-contact .ContactFormField input::placeholder,
.asc-contact .ContactMessageField textarea::placeholder {
    color: #526B78;
    opacity: 1;
}

.asc-contact .ContactFormField input:focus,
.asc-contact .ContactFormField select:focus,
.asc-contact .ContactMessageField textarea:focus {
    border-color: var(--asc-blue, #2F7FA3);
    outline: 2px solid var(--asc-blue, #2F7FA3);
    outline-offset: 2px;
}

.asc-contact .ContactAssistText,
.asc-contact .ContactFormField .asc-form-assist-status {
    margin-top: 8px;
    color: var(--asc-ink, #18384B);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.85;
}

.asc-contact .ContactMethodNotice {
    display: none;
    margin-top: 13px;
    padding: 16px;
    border-left: 3px solid var(--asc-teal, #39AEB4);
    border-radius: 5px;
    background: var(--asc-bg, #F5F8F9);
    font-size: 13px;
    line-height: 1.9;
}

.asc-contact .ContactFormBlock-message {
    padding-bottom: 28px;
}

.asc-contact .ContactMessageField textarea {
    min-height: 220px;
    line-height: 1.85;
    resize: vertical;
}

.asc-contact #message_num {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.7;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* PRIVACY: shared policy HTML is retained inside the scoped component. */

.asc-contact .ContactPrivacy {
    margin-top: 34px;
    padding: 27px;
    border: 1px solid var(--asc-line, #DCE7E9);
    border-radius: 14px;
    background: var(--asc-bg, #F5F8F9);
}

.asc-contact .ContactPrivacy_label {
    margin-bottom: 17px;
}

.asc-contact .ContactPrivacy_box {
    height: 270px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px;
    border: 1px solid var(--asc-line, #DCE7E9);
    border-radius: 8px;
    background: var(--asc-white, #FFFFFF);
    scrollbar-gutter: stable;
}

.asc-contact .ContactPrivacy_box :is(.PoricyDetailArea, .PoricyDetail, .ExplanatoryTextArea, .PoricyItemTitleArea, .PoricyItemArea) {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
}

.asc-contact .ContactPrivacy_box :is(p, li) {
    margin: 0 0 13px;
    padding: 0;
    color: var(--asc-ink, #18384B);
    font-size: 14px;
    line-height: 1.9;
    letter-spacing: 0.015em;
}

.asc-contact .ContactPrivacy_box h2 {
    margin: 20px 0 12px;
    padding: 0;
    color: var(--asc-navy, #18384B);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.8;
    letter-spacing: 0;
    text-wrap: initial;
}

.asc-contact .ContactPrivacyCheck {
    margin-top: 22px;
}

.asc-contact .ContactPrivacyCheck_label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 44px;
    font-size: 14px;
    line-height: 1.85;
    cursor: pointer;
}

.asc-contact .ContactPrivacyCheck_label.is-disabled {
    cursor: not-allowed;
}

.asc-contact .ContactPrivacyCheck_label input {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: var(--asc-navy, #18384B);
}

.asc-contact .ContactPrivacy_note {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.85;
}

/* BUTTONS AND CONFIRMATION */

.asc-contact .ContactSubmitArea {
    margin-top: 30px;
    text-align: center;
}

.asc-contact .ContactSubmitArea > p {
    margin-top: 15px;
    font-size: 13px;
    line-height: 1.9;
}

.asc-contact :is(.ContactSubmitBtn, .ContactBackBtn, .ContactCompletePrimaryBtn, .ContactCompleteSecondaryBtn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    max-width: 100%;
    padding: 15px 26px;
    border: 1px solid var(--asc-navy, #18384B);
    border-radius: 8px;
    background: var(--asc-navy, #18384B);
    color: var(--asc-white, #FFFFFF);
    font-size: 15px;
    line-height: 1.7;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 180ms ease, border-color 180ms ease;
}

.asc-contact :is(.ContactSubmitBtn, .ContactBackBtn, .ContactCompletePrimaryBtn, .ContactCompleteSecondaryBtn):hover {
    box-shadow: 0 0 0 3px rgba(57, 174, 180, 0.18);
    border-color: var(--asc-blue, #2F7FA3);
    opacity: 1;
}

.asc-contact .ContactSubmitBtn {
    width: min(360px, 100%);
}

.asc-contact :is(.ContactBackBtn, .ContactCompleteSecondaryBtn) {
    background: var(--asc-white, #FFFFFF);
    color: var(--asc-navy, #18384B);
    border-color: #A8BDC7;
}

.asc-contact .ContactConfirmValue {
    min-width: 0;
    min-height: 52px;
    padding-top: 11px;
    font-size: 16px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.asc-contact .ContactConfirmValue-column > span {
    display: block;
}

.asc-contact .ContactConfirmInlineNote {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 7px;
    background: var(--asc-bg, #F5F8F9);
    font-size: 13px;
    line-height: 1.85;
}

.asc-contact .ContactConfirmMessage {
    min-height: 120px;
    padding: 20px;
    border: 1px solid var(--asc-line, #DCE7E9);
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.asc-contact .ContactConfirmSubmitArea {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.asc-contact .ContactConfirmSubmitArea > button {
    width: min(300px, 100%);
}

/* COMPLETION AND ERROR */

.asc-contact .ContactCompleteSection {
    padding-block: 48px 76px;
}

.asc-contact .ContactCompleteCard {
    max-width: 880px;
    margin-inline: auto;
    padding: 38px;
    border: 1px solid var(--asc-line, #DCE7E9);
    border-top: 3px solid var(--asc-teal, #39AEB4);
    border-radius: 4px 4px 14px 14px;
}

.asc-contact .ContactCompleteCard h2 {
    margin-top: 16px;
}

.asc-contact .ContactCompleteLead {
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.95;
}

.asc-contact .ContactCompleteLead strong {
    font-size: inherit;
    font-weight: 650;
}

.asc-contact .ContactCompleteNotice {
    margin-top: 28px;
    padding: 23px;
    border-radius: 9px;
    background: var(--asc-bg, #F5F8F9);
}

.asc-contact .ContactCompleteNotice h3 {
    font-size: 18px;
}

.asc-contact .ContactCompleteNotice p {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.95;
}

.asc-contact .ContactCompleteSupport {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--asc-line, #DCE7E9);
}

.asc-contact .ContactCompleteSupport > p:not(.ContactCompleteSupportLabel) {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.9;
}

.asc-contact .ContactCompleteSupportLinks {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 26px;
    margin-top: 14px;
}

.asc-contact .ContactCompleteSupportLinks a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 15px;
    line-height: 1.7;
}

.asc-contact .ContactCompleteActions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 30px;
}

/* TABLET: preserve a useful input width, without oversized label columns. */

@media (max-width: 1023px) {
    .asc-contact .ContactContainer,
    .asc-contact-container {
        width: calc(100% - 64px);
    }

    .asc-contact .ContactIntro_inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .asc-contact .ContactFormBlock {
        padding: 28px 26px 15px;
    }

    .asc-contact .ContactFormRow {
        grid-template-columns: minmax(160px, 0.85fr) minmax(0, 2fr);
        gap: 24px;
    }
}

/* MOBILE: readable controls, full-width fields and natural line wrapping. */

@media (max-width: 767px) {
    .asc-contact,
    .asc-contact-hero {
        font-size: 15px;
    }

    .asc-contact .ContactContainer,
    .asc-contact-container {
        width: calc(100% - 40px);
    }

    .asc-contact-hero {
        margin-top: 18px;
    }

    .asc-contact-hero__content {
        padding-block: 24px 30px;
    }

    .asc-contact-hero .asc-contact-hero__title {
        font-size: 29px;
    }

    .asc-contact-hero .asc-contact-hero__lead {
        font-size: 17px;
    }

    .asc-contact-steps {
        justify-content: space-between;
        gap: 12px;
        max-width: 360px;
    }

    .asc-contact .ContactIntro {
        padding-top: 32px;
    }

    .asc-contact .ContactGuide {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 24px;
    }

    .asc-contact .ContactGuide article {
        display: grid;
        grid-template-columns: 24px minmax(0, 1fr);
        column-gap: 12px;
        padding-top: 18px;
    }

    .asc-contact .ContactGuide span {
        padding-top: 5px;
    }

    .asc-contact .ContactGuide h3 {
        margin-top: 0;
        font-size: 17px;
    }

    .asc-contact .ContactGuide p {
        grid-column: 2;
        margin-top: 7px;
    }

    .asc-contact .ContactFormSection {
        padding-block: 30px 48px;
    }

    .asc-contact .ContactForm_notice,
    .asc-contact .ContactConfirmNotice {
        padding: 15px 16px;
    }

    .asc-contact .ContactFormBlock {
        margin-bottom: 22px;
        padding: 23px 18px 9px;
        border-radius: 11px;
    }

    .asc-contact .SfBlockTitle {
        font-size: 21px;
    }

    .asc-contact .ContactFormBlock_head {
        margin-bottom: 18px;
    }

    .asc-contact .ContactFormRow {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding-block: 19px;
    }

    .asc-contact .ContactFormLabel {
        min-height: 0;
        font-size: 14px;
    }

    .asc-contact .ContactFormBlock-message {
        padding-bottom: 20px;
    }

    .asc-contact .ContactMethodNotice {
        padding: 13px;
    }

    .asc-contact .ContactPrivacy {
        margin-top: 24px;
        padding: 19px 16px;
    }

    .asc-contact .ContactPrivacy_box {
        height: 280px;
        padding: 15px;
    }

    .asc-contact .ContactPrivacyCheck_label {
        font-size: 14px;
    }

    .asc-contact .ContactSubmitBtn {
        width: 100%;
    }

    .asc-contact .ContactConfirmValue {
        min-height: 0;
        padding-top: 0;
        font-size: 15px;
    }

    .asc-contact .ContactConfirmMessage {
        padding: 16px;
        font-size: 15px;
    }

    .asc-contact .ContactConfirmSubmitArea {
        flex-direction: column-reverse;
        gap: 14px;
    }

    .asc-contact .ContactConfirmSubmitArea > button {
        width: 100%;
    }

    .asc-contact .ContactCompleteSection {
        padding-block: 30px 48px;
    }

    .asc-contact .ContactCompleteCard {
        padding: 25px 20px;
    }

    .asc-contact .ContactCompleteNotice {
        padding: 18px;
    }

    .asc-contact .ContactCompleteActions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .asc-contact :is(.ContactSubmitBtn, .ContactBackBtn, .ContactCompletePrimaryBtn, .ContactCompleteSecondaryBtn) {
        transition: none;
    }
}
