@charset "UTF-8";

/* ========================================
   WHY UNIWORDS
   ① PC・スマートフォン共通CSS
======================================== */

.why-four-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.uw-why__photo {
    width: 140px;
    height: 140px;
    margin: 0 auto 8px;
    border-radius: 50%;
    overflow: hidden;
}

.uw-why__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

#why.section {
    padding-top: 36px;
}

#why .feature-card,
#why .feature-card:hover {
    border-color: #7CCBDA;
}

#why .feature-card {
    text-align: center;
    background: transparent;
    position: relative;
    border-width: 1px;
    box-shadow: none;
    padding: 18px 28px;
}

#why .overlap-heading {
    margin-bottom: clamp(20px, 2.5vw, 30px);
    text-align: left;
}

#why .overlap-heading__en {
    font-size: clamp(1.4rem, 6.15vw, 2.6rem);
    max-width: 100%;
    letter-spacing: -.065em;
}

#why .uw-why-message {
    max-width: none;
    margin: 0 0 44px;
    text-align: left;
}

#why .uw-why-message p {
    font-size: var(--body-readable-size);
    line-height: 1.6;
    color: var(--body-readable-color);
    margin: 0 0 17px;
}

#why .uw-why-message p:last-child {
    margin-bottom: 0;
}

#why .feature-card p {
    font-size: var(--body-readable-size);
    color: var(--body-readable-color);
    text-align: left;
    line-height: var(--body-line-height);
}

#why .feature-card h3 {
    font-size: clamp(12px, 3.55vw, 17px);
    white-space: nowrap;
    letter-spacing: -.025em;
    text-align: center;
    margin-bottom: 0;
}

#why .uw-why__card-rule {
    display: block;
    width: 36px;
    height: 3px;
    margin: 16px auto 20px;
    border-radius: 999px;
    background: var(--green);
}

#why .feature-card:hover {
    box-shadow: 0 12px 28px rgba(62, 153, 178, .10);
}

/* ========================================
   ② スマートフォン専用｜390px以下
======================================== */
@media (max-width: 390px) {}

/* ========================================
   ② スマートフォン専用｜430px以下
======================================== */
@media (max-width: 430px) {
    #why .uw-why-message p {
        line-height: 1.75;
    }

    /* カードを縦に2枚配置 */
    #why .why-four-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* カード内を写真＋文章の2列にする */
    #why .feature-card {
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr);
        column-gap: 14px;
        align-items: start;
        padding: 16px;
        text-align: left;
    }

    /* 写真を左側に配置 */
    #why .uw-why__photo {
        grid-column: 1;
        grid-row: 1 / 4;
        width: 76px;
        height: 76px;
        margin: 0;
    }

    /* 見出しを右側に配置 */
    #why .feature-card h3 {
        grid-column: 2;
        font-size: 13px;
        line-height: 1.5;
        white-space: normal;
        text-align: left;
        margin: 0;
    }

    /* 緑色の区切り線 */
    #why .uw-why__card-rule {
        grid-column: 2;
        width: 30px;
        margin: 8px 0 10px;
    }

    /* 本文を右側に配置 */
    #why .feature-card p {
        grid-column: 2;
        font-size: 14px;
        line-height: 1.7;
        margin: 0;
    }
}

/* ========================================
   ③ PC専用｜768px以上
======================================== */
@media (min-width: 768px) {
    .why-four-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .uw-why__photo {
        width: 140px;
        height: 140px;
    }

    #why.section {
        padding-top: 64px;
    }

    #why .overlap-heading__en {
        font-size: clamp(2rem, 5vw, 5rem);
    }

    #why .uw-why-message {
        margin-bottom: 28px;
    }

    #why .uw-why-message p {
        margin-bottom: 20px;
    }

    #why .feature-card h3 {
        font-size: clamp(13px, 1.65vw, 19px);
    }
}
