/* ========================================
   関連施術メニュー
======================================== */

.related-menu {
    position: relative;
    padding: 90px 20px 100px;
    background: #f7f2eb;
    overflow: hidden;
}

.related-menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 45px;
    background: #c8ae78;
}

.related-menu__inner {
    width: min(1100px, 100%);
    margin: 0 auto;
}


/* ========================================
   見出し
======================================== */

.related-menu__heading {
    margin-bottom: 48px;
    text-align: center;
}

.related-menu__en {
    display: block;
    margin-bottom: 8px;
    color: #c89a55;
    font-family: "Times New Roman", "Yu Mincho", "YuMincho", serif;
    font-size: 13px;
    letter-spacing: .22em;
}

.related-menu__title {
    margin: 0 0 15px;
    color: #4d443c;
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: .12em;
}

.related-menu__lead {
    display: block;
    color: #776e67;
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    font-size: 13px;
    line-height: 1.8;
    letter-spacing: .08em;
}


/* ========================================
   メニュー一覧
======================================== */

.related-menu__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 34px 3.5%;
}

.related-menu__item {
    position: relative;
    width: 31%;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-sizing: border-box;
    box-shadow: rgba(97, 76, 57, 0.07) 0px 2px 2px;
    transition:
        transform .4s ease,
        box-shadow .4s ease;
}

.related-menu__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(97, 76, 57, .13);
}


/* ========================================
   写真
======================================== */

.related-menu__image {
    position: relative;
    width: 100%;
    aspect-ratio: 1.45 / 1;
    overflow: hidden;
}

.related-menu__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 55%,
        rgba(76, 55, 42, .14) 100%
    );
    pointer-events: none;
}

.related-menu__image img {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform .6s ease;
}

.related-menu__item:hover .related-menu__image img {
    transform: scale(1.04);
}


/* ========================================
   テキストエリア
======================================== */

.related-menu__content {
    position: relative;
    min-height: 164px;
    padding: 23px 25px 25px;
    box-sizing: border-box;
}

.related-menu__number {
    position: absolute;
    top: -17px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background: #c59e55;
    color: #fff;
    font-family: "Times New Roman", serif;
    font-size: 12px;
    font-style: italic;
    letter-spacing: .04em;
}

.related-menu__name {
    display: flex;
    align-items: center;
    min-height: 48px;
    color: #544941;
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: .06em;
}

.related-menu__name--small {
    font-size: 17px;
    line-height: 1.55;
}


/* ========================================
   VIEW MORE
======================================== */

.related-menu__button {
    display: flex;
    align-items: center;
    width: fit-content;
    margin-top: 19px;
    color: #c59e55;
    font-family: "Times New Roman", serif;
    font-size: 11px;
    letter-spacing: .16em;
}

.related-menu__button i {
    position: relative;
    display: block;
    width: 45px;
    height: 1px;
    margin-left: 12px;
    background: #c59e55;
    transition: width .3s ease;
}

.related-menu__button i::after {
    content: "";
    position: absolute;
    top: -3px;
    right: 0;
    width: 7px;
    height: 7px;
    border-top: 1px solid #c59e55;
    transform: rotate(45deg);
}

.related-menu__item:hover .related-menu__button i {
    width: 55px;
}


/* ========================================
   1024px以下
======================================== */

@media screen and (max-width: 1024px) {

    .related-menu {
        padding: 75px 30px 85px;
    }

    .related-menu__list {
        gap: 30px 4%;
    }

    .related-menu__item {
        width: 46%;
    }

    .related-menu__title {
        font-size: 26px;
    }

    .related-menu__content {
        min-height: 158px;
    }
}


/* ========================================
   599px以下
======================================== */

@media screen and (max-width: 599px) {

    .related-menu {
        padding: 65px 20px 70px;
    }

    .related-menu::before {
        height: 32px;
    }

    .related-menu__heading {
        margin-bottom: 32px;
    }

    .related-menu__en {
        margin-bottom: 5px;
        font-size: 11px;
    }

    .related-menu__title {
        margin-bottom: 10px;
        font-size: 22px;
    }

    .related-menu__lead {
        font-size: 12px;
        line-height: 1.7;
    }

    .related-menu__list {
        display: block;
    }

    .related-menu__item {
        width: 100%;
        margin-bottom: 25px;
    }

    .related-menu__item:last-child {
        margin-bottom: 0;
    }

    .related-menu__image {
        aspect-ratio: 1.6 / 1;
    }

    .related-menu__content {
        min-height: auto;
        padding: 22px 20px 23px;
    }

    .related-menu__number {
        top: -15px;
        left: 16px;
        width: 35px;
        height: 35px;
        font-size: 10px;
    }

    .related-menu__name {
        min-height: auto;
        font-size: 17px;
    }

    .related-menu__name--small {
        font-size: 16px;
    }

    .related-menu__button {
        margin-top: 15px;
        font-size: 10px;
    }
}
