@charset "UTF-8";


.p-contact-header__title {
    font-size: 2.4rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.p-contact-header__sub {
    font-size: 1.4rem;
    opacity: 0.8;
    letter-spacing: 0.05em;
}

.p-contact-section {
    padding: 80px 0;
    background-color: #F0F1F2;
}

.p-contact-intro {
    text-align: center;
    margin-bottom: 60px;
    font-size: 1.25rem;
    line-height: 2;
    color: #333;
}

.p-contact-list {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.p-contact-card {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 40px 50px;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.p-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.p-contact-card__title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #04384c;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.p-contact-card__title span {
    background: #04384c;
    color: #fff;
    font-size: 1rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', sans-serif;
}

.p-contact-card__inner {
    display: flex;
    gap: 40px;
    align-items: stretch;
    /* これにより左画像と右コンテンツの高さが揃う */
    height: 180px;
    /* ここで全カードの高さを完全に統一 */
}

.p-contact-card__image {
    background-color: #f0f0f0;
    width: 240px;
    flex-shrink: 0;
    /* heightは親のstretchにより180pxに固定されます */
}

.p-contact-card__content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.p-contact-card__text {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin: 0;
    /* 余白を消して画像の上辺とテキストの上辺をぴったり合わせる */
}

.p-contact-card__btn-wrap {
    text-align: left;
    margin-top: auto;
    /* ボタンを一番下へ押し込み、画像の下辺とぴったり合わせる */
    line-height: 1;
}

.common_fv {
    margin-bottom: 0;
}

@media screen and (max-width: 750px) {
    .p-contact-header {
        padding: 120px 0 40px;
    }

    .p-contact-header__title {
        font-size: 1.5rem;
    }

    .p-contact-section {
        padding: 50px 0;
    }

    .p-contact-intro {
        font-size: 1rem;
        text-align: left;
        padding: 0;
    }

    .p-contact-list {
        gap: 24px;
        padding: 0;
    }

    .p-contact-card {
        padding: 30px 20px;
    }

    .p-contact-card__title {
        font-size: 1.1rem;
    }

    /* スマホ時は縦並びになるため固定高さを解除し、余白を調整 */
    .p-contact-card__inner {
        flex-direction: column;
        gap: 20px;
        height: auto;
    }

    .p-contact-card__image {
        width: 100%;
        height: 180px;
    }

    .p-contact-card__text {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .p-contact-card__btn-wrap {
        text-align: center;
        margin-top: 0;
    }
}