@charset "UTF-8";

/* ==========================================================================
   contact Page Styles
   ========================================================================== */

.main {
    padding-top: 0;
    /* Header is fixed, but FV is full width */
    max-width: none;
    /* Override common.css main max-width for FV */
    border: none;
    /* Remove debug border from common.css */
    overflow-x: hidden;
}

.l-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* 1 FV (First View)
   -------------------------------------------------------------------------- */
.contact-fv {
    width: 100%;
    height: 40rem;
    position: relative;
    overflow: hidden;
    max-width: 1280px;
    margin: 0 auto 8rem;
}

.contact-fv__inner {
    width: 100%;
    height: 100%;
}

.contact-fv__img {
    display: block;
    width: 100%;
    height: 100%;
}

.contact-fv__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.contact-fv__content {
    position: absolute;
    top: 60%;
    left: 3.125%;
    background-color: var(--title-bk-color);
    /* Cyan/Teal transparent */
    color: #fff;
    padding: 1.5rem 2rem;
}

.contact-fv__title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.contact-fv__desc {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* 2 Section Title
   -------------------------------------------------------------------------- */
.contact-insurance {
    padding-bottom: 8rem;
    background-color: #fff;
}

/* Concept Section */
.contact-concept {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: 6rem;
}

.contact-concept__img-box {
    flex: 0 0 45%;
}

.contact-concept__img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.contact-concept__content {
    flex: 1;
}

.contact-concept__title-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.contact-concept__title {
    background-color: #1459E2;
    color: #fff;
    font-size: 2rem;
    padding: 0.8rem 2rem;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 4rem;
}

.contact-concept__text {
    margin-bottom: 2rem;
    font-size: var(--font-size-body-sp);
    line-height: 1.8;
    color: #333;
    font-weight: 400;
}

.contact-concept__message {
    text-align: right;
    font-weight: 700;
}

.contact-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.contact-title__back {
    width: 10rem;
    height: auto;
    flex-shrink: 0;
}

.contact-title__text {
    position: absolute;
    top: 33%;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

@media screen and (max-width: 768px) {
    .contact-title {
        margin-bottom: 3rem;
    }

    .contact-title__back {
        width: 7rem;
    }

    .contact-title__text {
        font-size: 1.25rem;
        line-height: 1.4;
    }
}

/* 2-1 Insurance Guide Section */
.contact-guide {
    background-color: #EBEDED;
    padding: 4rem 2.5rem 8rem 2.5rem;
    border-radius: 1rem;
    /* 念のための角丸 */
    max-width: 1280px;
    margin: 0 auto 8rem;
}

@media screen and (max-width: 768px) {
    .l-inner {
        padding: 0;
    }

    .contact-guide {
        padding: 4rem 2.5rem 4rem 2.5rem;
        border-radius: 0;
        margin-bottom: 4rem;
    }
}

.contact-tabs {
    display: flex;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.contact-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    border-right: 1px solid #ccc;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
}

.contact-tab.is-active {
    background-color: var(--main-color);
    color: #fff;
}

.contact-tab__icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-tab__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-tab.is-active .contact-tab__icon img {
    filter: brightness(0) invert(1);
}

.contact-tab__name {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
}

.contact-tab-panel {
    display: none;
}

.contact-tab-panel.is-active {
    display: block;
}

.contact-tab-panel__top {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: 4rem;
}

.contact-tab-panel__info {
    flex: 1;
}

.contact-tab-panel__title {
    display: inline-block;
    background-color: var(--main-color);
    color: #fff;
    padding: 0.6rem 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.contact-tab-panel__text {
    font-size: var(--font-size-body-pc);
    line-height: 1.8;
    color: #333;
}

.contact-tab-panel__img {
    flex: 0 0 45%;
}

.contact-tab-panel__img img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}



/* Sub Tabs (Alternating Flat Structure) */
.contact-subtabs {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    background-color: #fff;
}

.contact-subtabs__header {
    width: 100%;
    padding: 1.5rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #333;
    text-align: left;
    cursor: pointer;
    border: 1px solid #333;
    border-bottom: none;
    background-color: #fff;
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s, color 0.3s;
}

.contact-subtabs__header:last-of-type {
    border-bottom: 1px solid #333;
}

.contact-subtabs__header.is-active {
    background-color: #94b4f0;
    color: #fff;
    border-color: #94b4f0;
}

.contact-subtabs__arrow {
    width: 1.5rem;
    height: 1.5rem;
    position: relative;
    transition: transform 0.3s;
}

.contact-subtabs__arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.8rem;
    height: 0.8rem;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translate(-50%, -80%) rotate(135deg);
}

.contact-subtabs__header.is-active .contact-subtabs__arrow {
    transform: rotate(180deg);
}

.contact-subtabs__panel {
    display: none;
    width: 100%;
    background-color: #fff;
    border: 1px solid #94b4f0;
    border-top: none;
}

.contact-subtabs__panel.is-active {
    display: block;
}

.contact-subtabs__content {
    padding: 1.5rem;
}

.contact-subtabs__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
}

.contact-contact-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 3rem;
    list-style: none;
    padding: 0;
}

.contact-contact-list li {
    font-size: var(--font-size-body-sp);
    position: relative;
    padding-left: 2.5rem;
    color: #333;
}

.contact-contact-list li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0.5rem;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    background-color: #94b4f0;
}

@media screen and (min-width: 769px) {


    .contact-subtabs {
        flex-direction: row;
        flex-wrap: wrap;
        border: none;
        background: none;
    }

    .contact-subtabs__header {
        flex: 1;
        order: 1;
        border: 1px solid #ccc;
        border-right: none;
        border-bottom: none;
        justify-content: center;
        text-align: center;
    }

    .contact-subtabs__header:last-of-type {
        border-right: 1px solid #ccc;
        border-bottom: none;
    }

    /* On PC, hide the arrow since it's a tab */
    .contact-subtabs__arrow {
        display: none;
    }

    .contact-subtabs__panel {
        order: 2;
        border: 1px solid #ccc;
        border-top: none;
        margin-top: -1px;
    }

    .contact-tab-panel__bottom {
        position: relative;
        padding-bottom: 0;
    }
}

/* 3 Buttons Grid
   -------------------------------------------------------------------------- */
.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    /* 32px roughly */
    margin-bottom: 8rem;
}

.contact-card {
    flex: 0 0 calc(20% - 1.6rem);
    /* 5 columns */
    aspect-ratio: 1 / 1;
    border: 2px solid #333;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background-color: #fff;
    text-decoration: none;
    color: #333;
}

.contact-card:hover {
    background-color: #f8f8f8;
    transform: translateY(-5px);
    border-color: var(--sub-color);
}

.contact-card__icon {
    width: 6rem;
    height: 6rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
}

/* Wrap after 5th item */
.contact-card:nth-child(n+6) {
    /* Optional: custom margin or layout adjustment if needed */
}

/* Responsive
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1280px) {
    .contact-fv__content {
        padding: 1.5rem 2rem;

    }

    .contact-fv__title {
        font-size: 2.5rem;
    }

    .contact-card {
        flex: 0 0 calc(20% - 1.6rem);
    }
}

@media screen and (max-width: 768px) {

    .contact-subtabs__header {
        font-size: 1.25rem;
    }


    .contact-subtabs__title {

        font-size: 1rem;
    }

    .contact-tab {
        flex: 0;
        width: 25%;
        padding: 0.5rem;
    }

    .contact-tab__icon img {
        width: 80%;
    }

    .contact-fv__content {
        padding: 1.5rem 4rem 1.5rem 2rem;
        top: 30%;
    }

    .contact-fv {
        height: 100vh;
        margin-bottom: 4rem;
    }

    .contact-fv__title {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    .contact-fv__desc {
        font-size: var(--font-size-body-sp);
        line-height: 1.4;
    }

    .contact-insurance {
        padding-bottom: 0;
    }

    .contact-title {
        margin-bottom: 3rem;
    }

    .contact-title__back {
        width: 7rem;
    }

    .contact-title__text {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    .contact-buttons {
        gap: 2rem 1rem;
        margin-bottom: 4rem;

    }

    .contact-card {
        flex: 0 0 calc(50% - 1rem);
        /* 2 columns */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem 1rem;
        min-height: 10rem;
        width: 47%;
        text-align: center;
    }

    .contact-card__icon {
        width: 4rem;
        height: 4rem;
        margin-bottom: 1rem;
    }

    .contact-card__name {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    /* Concept & Proposal SP adjustment */
    .contact-concept {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .contact-concept__img-box {
        flex: 0 0 auto;
        width: 100%;
    }

    .contact-concept__title {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
        margin-bottom: 2rem;

    }

    .contact-concept__text {
        font-size: var(--font-size-body-sp);
    }
}

/* Policy Blocks */
.contact-blocks {
    /* margin-top removed, handled by contact-concept margin-bottom */
}

.contact-block {
    margin-bottom: 8rem;
}

.contact-block__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: 4rem;
}

.contact-block__header-left {
    flex: 1;
}

.contact-block__header-right {
    flex: 0 0 40%;
    position: relative;
    height: 18rem;
    top: -2rem;
}

.contact-block__staff {
    position: absolute;
    width: 15rem;
    height: auto;
}

.contact-block__staff--01 {
    top: 0;
    right: 17rem;
    z-index: 2;
}

.contact-block__staff--02 {
    top: 9rem;
    right: 2rem;
    z-index: 1;
}

/* Contact Form Section */
.contact-form-section {
    background-color: #ECECEC;
    padding: 6rem;
}

.contact-form__label-top {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333;
}

.contact-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.contact-tab {
    flex: 1;
    border: 1px solid #333;
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    list-style: none;
    color: #333;
    font-size: 1.125rem;
    
    /* リンクが全体に広がるようにフレックスボックス化 */
    display: flex;
}

.contact-tab a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem 0.5rem;
    color: inherit;
    text-decoration: none;
    width: 100%;
    height: 100%;
}

.contact-tab.is-active {
    background-color: #1459E2;
    color: #fff;
    border-color: #1459E2;
}

.contact-panels {
    margin-bottom: 8rem;
}

.contact-panel {
    display: none;
    scroll-margin-top: 400px;
}

.contact-panel.is-active {
    display: block;
}

.contact-panel__row {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 0.5rem;
}

.contact-panel__label {
    flex: 0 0 25rem;
    border-left: 6px solid #1459E2;
    padding-left: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: var(--font-size-body-pc);
    color: #333;
    justify-content: space-between;
}

.contact-badge--required {
    background-color: #E60012;
    color: #fff;
    font-size: 0.8rem;
    padding: 0.2rem 1.2rem;
    border-radius: 1.5rem;
    font-weight: 700;
}

.contact-panel__input {
    flex: 1;
    width: 100%;
}

.contact-panel__input input,
.contact-panel__input textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #333;
    background-color: #fff;
    font-size: var(--font-size-body-sp);
}

.contact-panel__input textarea {
    height: 12rem;
    vertical-align: top;
    resize: vertical;
}

/* 入力エラーが起きた時にjsでこのクラスを付与 */
.contact-panel__input input.is-error,
.contact-panel__input textarea.is-error {
    background-color: #ffb6b6;
    border: 1px solid #ff0000;
}

/* プレースホルダーの文字を編集 */
input::placeholder,
textarea::placeholder {
    font-size: 1rem;
    color: #a0a0a0;
    opacity: 1;
}

/* エラーメッセージ用のテキスト装飾 */
.contact-error-text {
    color: #ff0000;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 500;
    line-height: 1.4;
}


/* Privacy Section */
.contact-privacy {}

.contact-privacy__title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
}

.contact-privacy__box {
    border: 1px solid #333;
    padding: 4.5rem;
    margin-bottom: 4rem;
}

.contact-privacy__inner-text {
    font-size: var(--font-size-body-pc);
    line-height: 2;
    margin-bottom: 3.5rem;
    color: #333;
    font-weight: 500;
}

.contact-privacy__note {
    border: 1px solid #333;
    padding: 1.8rem;
    text-align: center;
    font-size: var(--font-size-body-pc);
    font-weight: 700;
    color: #333;
}

.contact-privacy__arrow {
    width: 0;
    height: 0;
    border-left: 2rem solid transparent;
    border-right: 2rem solid transparent;
    border-top: 2rem solid #1459E2;
    margin: 0 auto 4rem;
}

.contact-privacy__submit {
    display: flex;
    justify-content: center;
    gap: 4rem;
}

.contact-privacy__consent {
    background-color: #002B41;
    color: #fff;
    padding: 1.5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20rem;
    max-width: 25rem;
    height: 4rem;
    cursor: pointer;

}

.contact-privacy__consent-label {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    cursor: pointer;
    font-weight: 700;
    font-size: var(--font-size-body-pc);
}

.contact-privacy__consent-label input[type="checkbox"] {
    width: 1.8rem;
    height: 1.8rem;
}

.contact-privacy__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #E60012;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: var(--font-size-body-sp);
    transition: opacity 0.3s, background-color 0.3s;
    height: 4rem;
    width: 20rem;
    max-width: 25rem;
    -webkit-appearance: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.contact-privacy__btn.is-disabled {
    background-color: #999;
    pointer-events: none;
    opacity: 0.6;
    cursor: default;
}

.contact-privacy__btn:not(.is-disabled):hover {
    opacity: 0.8;
}

/* SP Adjustments */
@media screen and (max-width: 768px) {

    .contact-block {
        margin-bottom: 4rem;
    }

    .contact-panels {
        margin-bottom: 4rem;
    }

    .contact-form__label-top {
        font-size: var(--font-size-body-pc);
        margin-bottom: 2rem;
    }

    .contact-form-section {
        padding: 3rem 2.5rem;
        margin-bottom: 4rem;
    }

    .contact-tabs {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 3rem;
    }

    .contact-tab {
        flex: 0 0 100%;
        padding: 0.5rem 0.5rem;
        font-size: 1rem;
        width: 100%;
    }

    .contact-panel {
        scroll-margin-top: 550px;
    }

    .contact-panel__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
        margin-bottom: 2rem;
    }

    .contact-panel__label {
        flex: 0 0 auto;
        width: 100%;
        font-size: var(--font-size-body-sp);
        justify-content: space-between;
        padding-left: 0.8rem;
    }

    .contact-badge--required {
        font-size: 0.8rem;
        padding: 0.1rem 0.8rem;
    }

    .contact-privacy__title {
        font-size: 1.5rem;
        line-height: 1.4;

    }

    .contact-panel__input input {
        padding: 0.5rem;
    }

    .contact-privacy__box {
        padding: 2.5rem 1.5rem;
        padding: 0;
        border: none;
    }

    .contact-privacy__inner-text {
        font-size: var(--font-size-body-sp);
        margin-bottom: 2.5rem;
    }

    .contact-privacy__note {
        padding: 1.2rem;
        font-size: var(--font-size-body-sp);
    }

    .contact-privacy__arrow {
        margin: 0 auto 4rem;
    }

    .contact-privacy__submit {
        flex-direction: column;
        gap: 2.5rem;
    }

    .contact-privacy__consent {
        padding: 1rem 1.5rem;
        justify-content: center;
        width: 100%;
    }

    .contact-privacy__btn {
        padding: 1rem 1.5rem;
        min-height: auto;
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .contact-block__header {
        display: block;
        margin-bottom: 3rem;
        padding: 0 2.5rem;
    }

    .contact-block__header-right {
        display: none;
    }
}


/* font-size already set to 1rem in base classes */
.contact-block__main-text {
    margin-bottom: 2rem;
}

.contact-block__text {
    margin-bottom: 2rem;
}

.contact-initiatives {
    padding-left: 0;
}

@media screen and (max-width: 768px) {
    .contact-proposal__title {
        display: none;
        /* Removed in favor of common title */
    }

    .contact-proposal__text {
        font-size: var(--font-size-body-sp);
    }
}

/* Feature Section */
.contact-features {
    display: flex;
    flex-direction: column;
    gap: 12rem;
    margin-bottom: 12rem;
}

.contact-feature__inner {
    display: flex;
    align-items: flex-start;
    gap: 6rem;
}

.contact-feature:nth-child(even) .contact-feature__inner {
    flex-direction: row-reverse;
}

.contact-feature__image {
    flex: 1;
    position: relative;
    margin-bottom: 2rem;
    /* Added for SP stack consistency */
}

.contact-feature__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-feature__title-box {
    position: absolute;
    bottom: -2rem;
    left: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.contact-feature:nth-child(even) .contact-feature__title-box {
    left: auto;
    right: 0;
    align-items: flex-end;
}

.contact-feature__title {
    background-color: #55b3ca;
    color: #fff;
    padding: 0.6rem 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    width: fit-content;
}

.contact-feature__content {
    flex: 1;
}

.contact-feature__text {
    font-size: var(--font-size-body-pc);
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
}

.contact-feature__text:last-child {
    margin-bottom: 0;
}

@media screen and (max-width: 768px) {
    .contact-features {
        gap: 4rem;
        margin-bottom: 4rem;
    }

    .contact-feature__inner,
    .contact-feature:nth-child(even) .contact-feature__inner {
        flex-direction: column;
        gap: 4rem;
    }

    .contact-feature__image {
        width: 100%;
    }

    .contact-feature__title-box,
    .contact-feature:nth-child(even) .contact-feature__title-box {
        bottom: -3rem;
        left: 0;
        right: auto;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .contact-feature__title {
        font-size: 1.15rem;
        padding: 0.5rem 1rem;
    }

    .contact-feature__content {
        padding-top: 0;
    }

    .contact-feature__text {
        font-size: var(--font-size-body-sp);
    }
}

/* Company Info Section */
.contact-info {
    margin-bottom: 12rem;
}

.contact-info__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-info__item {
    display: flex;
    gap: 0.5rem;
}

.contact-info__label {
    flex: 0 0 12rem;
    background-color: #1459E2;
    color: #fff;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: 0.1em;
}

.contact-info__data {
    flex: 1;
    background-color: #ECECEC;
    padding: 1.5rem 2.5rem;
    color: #333;
    font-size: 1.125rem;
    line-height: 1.8;
    display: flex;
    align-items: center;
}

@media screen and (max-width: 768px) {
    .contact-info {
        margin-bottom: 4rem;
    }

    .contact-info__item {
        flex-direction: column;
        gap: 0;
    }

    .contact-info__label {
        flex: 0 0 auto;
        padding: 0.8rem;
        font-size: 1rem;
    }

    .contact-info__data {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .contact-info__list {
        gap: 1rem;
    }
}

/* Access Section */
.contact-access {
    margin-bottom: 12rem;
}

.contact-access__list {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.contact-access__item {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.contact-access__img {
    flex: 1;
}

.contact-access__img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-access__content {
    flex: 1;
}

.contact-access__name {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-access__ename {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
}

.contact-access__label {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.contact-access__text {
    font-size: var(--font-size-body-sp);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-access__contact {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 2rem;
}

.contact-access__contact-item {
    display: flex;
    gap: 1.5rem;
}

.contact-access__contact-label {
    font-weight: 700;
    width: 2.5rem;
}

.contact-access__station-label {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.contact-access__station-text {
    font-size: 1rem;
    line-height: 1.6;
}

.contact-access__map {
    flex: 1;
    height: 30rem;
}

@media screen and (max-width: 1024px) {
    .contact-access__item {
        flex-direction: column;
        gap: 3rem;
    }

    .contact-access__img,
    .contact-access__map {
        width: 100%;
        height: auto;
    }

    .contact-access__map {
        aspect-ratio: 16 / 9;
    }
}

/* ISO Section */
.contact-iso {
    margin-bottom: 8rem;
}

.contact-iso__content {
    background-color: #ECECEC;
    padding: 4rem 6rem;
    display: flex;
    align-items: center;
    gap: 6rem;
    border-radius: 1rem;
}

.contact-iso__img {
    flex: 0 0 20rem;
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-iso__img img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.contact-iso__text {
    flex: 1;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.8;
    color: #333;
}

/* Partners Section */
.contact-partners {
    margin-bottom: 12rem;
}

.contact-partners__content {
    background-color: #ECECEC;
    padding: 4rem 6rem;
    border-radius: 1rem;
}

.contact-partners__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 4rem;
    list-style: none;
    padding: 0;
}

.contact-partners__item a {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: var(--font-size-body-pc);
    font-weight: 700;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-partners__item a:hover {
    color: #1459E2;
}

.contact-partners__item a::before {
    content: "";
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid #1459E2;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231459E2'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E");
    background-size: 1rem;
    background-position: center;
    background-repeat: no-repeat;
}

@media screen and (max-width: 1024px) {

    .contact-iso__content,
    .contact-partners__content {
        padding: 3rem;
    }
}

@media screen and (max-width: 768px) {
    .contact-iso__content {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }

    .contact-iso__img {
        flex: 0 0 auto;
        width: 100%;
    }

    .contact-iso__text {
        font-size: var(--font-size-body-pc);
        text-align: center;
    }

    .contact-partners__content {
        padding: 2rem;
    }

    .contact-partners__list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.sp-hide {
    display: block;
}

@media screen and (max-width: 768px) {

    .contact-tabs {
        margin-bottom: 3rem
    }

    .sp-hide {
        display: none !important;
    }

    .contact-proposal {
        padding-bottom: 4rem;
    }
}

/* 2-4 Flow Section
   -------------------------------------------------------------------------- */
.contact-flow {
    position: relative;
    /* 上のタブエリアとの間隔 */
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.contact-flow__bg-wrap {
    position: absolute;
    top: 0;
    left: calc(50% - 50vw);
    width: 100vw;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.contact-flow__bg {
    position: absolute;
    width: 50vw;
    max-width: 600px;
    opacity: 0.8;
}

.contact-flow__bg--a {
    top: 5%;
    left: 0;
}

.contact-flow__bg--b {
    bottom: 10%;
    right: 0;
}

.contact-flow__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6rem 4rem;
    margin-bottom: 6rem;
    /* Added to handle contact-flow__contact spacing */
    position: relative;
    z-index: 2;
}

.contact-flow__item {
    display: flex;
    flex-direction: column;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    padding: 2.5rem;
}

.contact-flow__item:nth-child(odd) {
    background-image: url('../img/contact_illustB.webp');
}

.contact-flow__item:nth-child(even) {
    background-image: url('../img/contact_illustA.webp');
}

.contact-flow__head {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-flow__num {
    font-size: 3.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.contact-flow__item-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1.4;

}

.contact-flow__text {
    font-size: var(--font-size-body-pc);
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
}

.contact-flow__img {
    margin-top: auto;
}

.contact-flow__img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Area */
.contact-flow__contact {
    position: relative;
    z-index: 2;
}

.contact-flow__contact-title-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.contact-flow__contact-title-wrap::before,
.contact-flow__contact-title-wrap::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #94b4f0;
}

.contact-flow__contact-title {
    padding: 0 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.contact-flow__contact-arrow {
    width: 0;
    height: 0;
    border-left: 2.5rem solid transparent;
    border-right: 2.5rem solid transparent;
    border-top: 2.5rem solid #333;
    margin: 0 auto 3rem;
}

.contact-flow__contact-lead {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 4rem;
}

.contact-flow__contact-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.contact-flow__btn-web {
    width: 25rem;
    display: block;
    background-color: #E60012;
    border-radius: 0.5rem;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-flow__btn-web:hover {
    opacity: 0.8;
}

.contact-flow__btn-web img {
    width: 100%;
    height: auto;
    display: block;
}

.contact-flow__btn-tel {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-flow__btn-tel>img {
    width: 25rem;
    height: auto;
}

.contact-flow__btn-tel-time {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

@media screen and (max-width: 768px) {
    .contact-flow__bg--a {
        width: 100vw;
        top: 0;
    }

    .contact-flow__bg--b {
        width: 100vw;
        bottom: 20%;
    }

    .contact-flow__list {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .contact-flow__contact-title-wrap {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-flow__contact-title-wrap::before,
    .contact-flow__contact-title-wrap::after {
        width: 100%;
        flex: none;
    }

    .contact-flow__contact-title {
        text-align: center;
        line-height: 1.4;
    }

    .contact-flow__contact-btns {
        flex-direction: column;
        gap: 3rem;
    }

    .contact-flow__btn-web,
    .contact-flow__btn-tel>img {
        width: 100%;
        max-width: 20rem;
    }
}

/* 2-5 FAQ Section
   -------------------------------------------------------------------------- */
.contact-faq {
    max-width: 1280px;
    margin: 8rem auto 0;
    padding: 0 2.5rem;
}

.contact-faq__list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.contact-faq__item {
    background-color: #EBEDED;
    border-radius: 0;
}

.contact-faq__header {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 2.5rem 4rem 2.5rem 3rem;
    /* Extra padding on right for the icon */
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    position: relative;
}

.contact-faq__q-icon {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin-right: 2rem;
    flex-shrink: 0;
}

.contact-faq__q-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: #333;
    line-height: 1.6;
    flex: 1;
    padding-right: 2rem;
}

/* Plus/Minus Icon */
.contact-faq__icon {
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
}

.contact-faq__icon::before,
.contact-faq__icon::after {
    content: "";
    position: absolute;
    background-color: #333;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact-faq__icon::before {
    width: 1.5rem;
    height: 3px;
}

.contact-faq__icon::after {
    width: 3px;
    height: 1.5rem;
}

.contact-faq__item.is-active .contact-faq__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.contact-faq__body {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}

.contact-faq__item.is-active .contact-faq__body {
    height: auto;
}

.contact-faq__content {
    display: flex;
    align-items: flex-start;
    padding: 0 4rem 2.5rem 3rem;
}

.contact-faq__a-icon {
    font-size: 3rem;
    font-weight: 700;
    color: #E60012;
    line-height: 1;
    margin-right: 2rem;
    flex-shrink: 0;
}

.contact-faq__a-text {
    font-size: 1.125rem;
    color: #333;
    line-height: 1.8;
    flex: 1;
    padding-top: 0.5rem;
}

@media screen and (max-width: 768px) {
    .contact-faq {
        position: relative;
        margin: 4rem 0 auto;
        padding: 0 2.5rem 4rem;
    }

    .contact-faq__header {
        padding: 1.5rem 3rem 1.5rem 1.5rem;
    }

    .contact-faq__list {
        gap: 2rem;
    }

    .contact-faq__q-icon,
    .contact-faq__a-icon {
        font-size: 2rem;
        margin-right: 1rem;
    }

    .contact-faq__q-text {
        font-size: 1rem;
        padding-right: 1rem;
    }

    .contact-faq__icon {
        right: 1.5rem;
        width: 1.5rem;
        height: 1.5rem;
    }

    .contact-faq__icon::before {
        width: 1.2rem;
    }

    .contact-faq__icon::after {
        height: 1.2rem;
    }

    .contact-faq__content {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }

    .contact-faq__a-text {
        font-size: 1rem;
        padding-top: 0.2rem;
    }
}


/* SP Overrides */
@media screen and (max-width: 768px) {

    .contact-tab__icon {
        margin-bottom: 0;
    }


    .contact-tab__name {
        display: none;
    }

    .contact-tab-panel__top {
        display: flex;
        flex-direction: column;
        position: relative;
        margin-bottom: 2rem;
    }

    .contact-tab-panel__info {
        display: contents;
    }

    .contact-tab-panel__title {
        position: absolute;
        top: 1rem;
        left: 0;
        z-index: 2;
        margin-bottom: 0;
        font-size: 1.1rem;
        padding: 0.6rem 1rem;
    }

    .contact-tab-panel__img {
        order: 1;
        width: 100%;
    }

    .contact-tab-panel__text {
        order: 2;
    }

    .contact-contact-list {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

.contact-concept__signature {
    text-align: right;
    font-size: 0.8rem;
    line-height: 1.6;
    font-weight: 700;
    margin-bottom: 4rem;
}

/* Links Section */
.contact-links {
    border: 1px solid #333;
    padding: 4rem 6rem;
}

.contact-links__list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-links__item a {
    font-size: var(--font-size-body-sp);
    font-weight: 400;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Text on left, arrow on right */
    transition: color 0.3s;
}

.contact-links__item a::after {
    content: "";
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid #1459E2;
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231459E2'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E");
    background-size: 1rem;
    background-position: center;
    background-repeat: no-repeat;
    margin-left: 1rem;
    transition: transform 0.3s, background-color 0.3s;
}

.contact-links__item a:hover {
    color: #1459E2;
}

.contact-links__item a:hover::after {
    background-color: #1459E2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E");
    transform: translateX(5px);
}

@media screen and (max-width: 768px) {
    .contact-links {
        padding: 3rem 2rem;
        margin-bottom: 4rem;
    }

    .contact-links__item a::after {
        width: 1.5rem;
        height: 1.5rem;
        margin-left: 0.5rem;
    }
}

/* ==========================================================================
   Thanks Page Styles
   ========================================================================== */
.contact-thanks {
    background-color: #ECECEC;
    padding: 6rem;
}

.contact-thanks__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-thanks__text {
    font-size: var(--font-size-body-pc);
    color: #333;
    line-height: 2;
    margin-bottom: 4rem;
}

.contact-thanks__btn-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

.contact-thanks__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1459E2;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 700;
    width: 25rem;
    height: 5rem;
    border-radius: 0.2rem;
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-thanks__btn:hover {
    opacity: 0.8;
}

@media screen and (max-width: 768px) {
    .contact-thanks {
        padding: 4rem 1.5rem;
        margin-bottom: 4rem;
    }

    .contact-thanks__text {
        font-size: var(--font-size-body-sp);
        text-align: left;
        margin-bottom: 3rem;
    }

    .contact-thanks__btn {
        width: 100%;
        height: 4rem;
    }
}

.contact-privacy__consent-label>p{
    line-height: 1;
}

#agree-check{
    width: 1.8rem;
    height: 1.8rem;
    position: relative;
    background-color: #fff;
    cursor: pointer;
}

#agree-check:before{
    content: " ";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;top: 0;
    background-image: url(/contact/img/contact_check.png);
    background-size: 100% auto;
    background-repeat: no-repeat;
    opacity: 0;
}

#agree-check.checked:before{
    opacity: 1;
}

.contact-privacy__btn-wrap .send-btn{
    display: none;
}

.mw_wp_form_preview .contact-privacy__title,
.mw_wp_form_preview .contact-privacy__box,
.mw_wp_form_preview .contact-privacy__arrow,
.mw_wp_form_preview .contact-privacy__consent,
.mw_wp_form_preview .contact-privacy__btn-wrap .confirm-btn,
.mw_wp_form_preview .contact-privacy__btn-wrap .is-disabled{
    display: none !important;
}

.mw_wp_form_preview .contact-privacy__btn-wrap{
    display: flex;
    gap: 0.6em;
    justify-content: center;
}

.mw_wp_form_preview .contact-privacy__btn-wrap .back-btn{
    background-color: #999;
    pointer-events: all;
    cursor: pointer;
}

.mw_wp_form_preview .contact-privacy__btn-wrap .send-btn{
    display: block !important;
    pointer-events: all;
    background-color: #E60012 !important;
    opacity: 1 !important;
    cursor: pointer;
}
@media screen and (max-width: 768px) {
    .contact-area{
        width: 120%;
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-area iframe{
        height: 130vw;
    }
}
