
/*
    通常ボタン 
    before で左側に矢印を表示、　after で右側に　点マークを表示 
*/

.button {
    width: fit-content;
    padding: 19.5px 64px 19.5px 24px;
    background-color: #251e1c;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.04em;
    cursor: pointer;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

/* 左側矢印 */
.button::before {
    content: url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M15.3333%2014L18%2011.5L15.3333%209V11.5V14Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M8%2011.5H18M18%2011.5L15.3333%2014V9L18%2011.5Z%22%20stroke%3D%22white%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
    width: 24px;
    height: 24px;
    display: inline-block;
    position: absolute;
    top: 18px;
    left: -24px;
    transition: transform 0.3s ease;
}

/* 右側　点マーク */
.button::after {
    content: '';
    width: 4px;
    height: 4px;
    background-color: white;
    position: absolute;
    top: 28px;
    right: 34px;
    transition: transform 0.3s ease;
}

/* テキスト */
.button span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.button:hover span {
    transform: translateX(40px);
}

.button:hover::before {
    transform: translateX(48px);
}

.button:hover::after {
    transform: translateX(40px);
}

/* 基本ボタン　白 */
.button--white {
    background-color: white;
    color: #251e1c;
}

.button--white::before {
    filter: invert(1);
}

.button--white::after {
    background-color: #251e1c;
}

.header.white .button {
    transition: filter 0.3s ease;
}

.header.white .button {
    filter: invert(1);
}

/* タブレット */
@media screen and (min-width: 801px) {
    .button {
        padding: 1.25vw 4.444vw 1.25vw 1.667vw;
        font-size: 1.111vw;
    }

    .button::before {
        width: 1.667vw;
        height: 1.667vw;
        position: absolute;
        top: 1.25vw;
        left: -1.667vw;
    }

    .button::after {
        content: '';
        width: 0.278vw;
        height: 0.278vw;
        position: absolute;
        top: 1.944vw;
        right: 2.361vw;
    }

    .button:hover span {
        transform: translateX(2.778vw);
    }

    .button:hover::before {
        transform: translateX(3.333vw);
    }

    .button:hover::after {
        transform: translateX(2.778vw);
    }
}

/* PC */
@media screen and (min-width: 1440px) {

    .button {
        padding: 18px 64px 18px 24px;
        font-size: 16px;
    }

    .button::before {
        width: 24px;
        height: 24px;
        position: absolute;
        top: 18px;
        left: -24px;
    }

    .button::after {
        content: '';
        width: 4px;
        height: 4px;
        position: absolute;
        top: 28px;
        right: 34px;
    }

    .button:hover span {
        transform: translateX(40px);
    }

    .button:hover::before {
        transform: translateX(48px);
    }

    .button:hover::after {
        transform: translateX(40px);
    }
}

/* メニューボタン */
.menu-button {
    width: 40%;
    color: #251e1c;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-button__icon-wrap {
    width: 29px;
    height: 29px;
    border: 1px solid #d7d7d7;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-button__arrow {
    width: 5px;
    height: 10px;
    position: absolute;
    top: -12px;
    left: 11px;
    transition: transform 0.2s ease;
}

.menu-button__icon {
    width: 4px;
    height: 4px;
    background-color: black;
    transition: transform 0.2s ease;
}

.menu-button:hover .menu-button__icon-wrap {
    background-color: #251e1c
}

.menu-button:hover .menu-button__icon {
    transform: translateY(10px);
}

.menu-button:hover .menu-button__arrow {
    transform: translateY(20px);
}


@media screen and (min-width: 801px) {
    .menu-button {
        font-size: 1.111vw;
        width: fit-content;
        justify-content: unset;
        gap: 0.556vw;
    }
    
    .menu-button__icon-wrap {
        width: 2.014vw;
        height: 2.014vw;
    }
    
    .menu-button__arrow {
        width: 0.347vw;
        height: 0.694vw;
        top: -0.833vw;
        left: 0.763vw;
    }
    
    .menu-button__icon {
        width: 0.278vw;
        height: 0.278vw;
    }
    
    .menu-button:hover .menu-button__icon {
        transform: translateY(0.694vw);
    }
    
    .menu-button:hover .menu-button__arrow {
        transform: translateY(1.389vw);
    }
}

@media screen and (min-width: 1440px) {
    .menu-button {
        font-size: 16px;
        gap: 8px;
    }
    
    .menu-button__icon-wrap {
        width: 29px;
        height: 29px;
    }
    
    .menu-button__arrow {
        width: 5px;
        height: 10px;
        top: -12px;
        left: 11px;
    }
    
    .menu-button__icon {
        width: 4px;
        height: 4px;
    }
    
    .menu-button:hover .menu-button__icon {
        transform: translateY(10px);
    }
    
    .menu-button:hover .menu-button__arrow {
        transform: translateY(20px);
    }
}

/* シンプルボタン */

.simple-button__wrap {
    width: 48px;
    height: 48px;
    display: inline-block;
}

.simple-button__row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    text-decoration: none;
    color: unset;
}

/*
.simple-button__base {
    width: 100%;
    height: 100%;
}
*/

.simple-button {
    width: 40px;
    height: 40px;
    border: 1px solid #d7d7d7;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.simple-button__icon {
    width: 4px;
    height: 4px;
    background-color: black;
    position: absolute;
    transition: transform 0.1s ease;
}

.simple-button__arrow {
    transition: transform 0.3s ease;
}

.simple-button.right .simple-button__arrow {
    transform: translateX(-48px);
}

.simple-button.left .simple-button__arrow {
    transform: translateX(48px);
}

.simple-button__base:hover .simple-button,
.simple-button__row:hover .simple-button {
    background-color: #251e1c;
}

.simple-button__base:hover .simple-button.right .simple-button__icon,
.simple-button__row:hover .simple-button.right .simple-button__icon {
    transform: translateX(20px);
}

.simple-button__base:hover .simple-button.left .simple-button__icon,
.simple-button__row:hover .simple-button.left .simple-button__icon {
    transform: translateX(-20px);
}

.simple-button__base:hover .simple-button__arrow,
.simple-button__row:hover .simple-button__arrow {
    transform: translateX(0);
}

@media screen and (min-width: 801px) {
    .simple-button__wrap {
        width: 3.333vw;
        height: 3.333vw;
    }

    .simple-button {
        width: 3.333vw;
        height: 3.333vw;
    }

    .simple-button.right .simple-button__arrow {
        transform: translateX(-3.333vw);
    }
    
    .simple-button.left .simple-button__arrow {
        transform: translateX(3.333vw);
    }
    
    .simple-button__base:hover .simple-button.right .simple-button__icon,
    .simple-button__row:hover .simple-button.right .simple-button__icon {
        transform: translateX(1.389vw);
    }
    
    .simple-button__base:hover .simple-button.left .simple-button__icon,
    .simple-button__row:hover .simple-button.left .simple-button__icon {
        transform: translateX(-1.389vw);
    }
    
    .simple-button__base:hover .simple-button__arrow,
    .simple-button__row:hover .simple-button__arrow {
        transform: translateX(0);
    }
}

@media screen and (min-width: 1440px) {
    .simple-button__wrap {
        width: 48px;
        height: 48px;
    }
    
    .simple-button {
        width: 48px;
        height: 48px;
    }

    .simple-button.right .simple-button__arrow {
        transform: translateX(-48px);
    }
    
    .simple-button.left .simple-button__arrow {
        transform: translateX(48px);
    }
    
    .simple-button__base:hover .simple-button.right .simple-button__icon,
    .simple-button__row:hover .simple-button.right .simple-button__icon {
        transform: translateX(20px);
    }
    
    .simple-button__base:hover .simple-button.left .simple-button__icon,
    .simple-button__row:hover .simple-button.left .simple-button__icon {
        transform: translateX(-20px);
    }
    
    .simple-button__base:hover .simple-button__arrow,
    .simple-button__row:hover .simple-button__arrow {
        transform: translateX(0);
    }
}


/* コンタクトボタン(フッター用) */

.contact-button__wrap {
    width: 62px;
    height: 62px;
    display: inline-block;
}

.contact-button {
    width: 62px;
    height: 62px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: #333;
    transition: background-color 0.3s ease;
}

.contact-button__icon {
    width: 4px;
    height: 4px;
    background-color: white;
    position: absolute;
    transition: transform 0.2s ease;
}

.contact-button__arrow {
    transition: transform 0.3s ease;
}

.contact-button.right .contact-button__arrow {
    transform: translateX(-48px);
}

.contact-button.left .contact-button__arrow {
    transform: translateX(48px);
}

.contact-button__base:hover .contact-button {
    background-color: white;
}

.contact-button__base:hover .contact-button.right .contact-button__icon {
    transform: translateX(48px);
}

.contact-button__base:hover .contact-button.left .contact-button__icon {
    transform: translateX(-48px);
}

.contact-button__base:hover .contact-button__arrow {
    transform: translateX(0);
}

@media screen and (min-width: 801px) {
    .contact-button__wrap {
        width: 3.333vw;
        height: 3.333vw;
    }

    .contact-button {
        width: 3.333vw;
        height: 3.333vw;
    }

    .contact-button.right .contact-button__arrow {
        transform: translateX(-3.333vw);
    }
    
    .contact-button.left .contact-button__arrow {
        transform: translateX(3.333vw);
    }
    
    .contact-button__base:hover .contact-button.right .contact-button__icon {
        transform: translateX(3.333vw);
    }
    
    .contact-button__base:hover .contact-button.left .contact-button__icon {
        transform: translateX(-3.333vw);
    }
    
    .contact-button__base:hover .contact-button__arrow {
        transform: translateX(0);
    }
}

@media screen and (min-width: 1440px) {
    .contact-button__wrap {
        width: 62px;
        height: 62px;
    }
    
    .contact-button {
        width: 62px;
        height: 62px;
    }

    .contact-button.right .contact-button__arrow {
        transform: translateX(-48px);
    }
    
    .contact-button.left .contact-button__arrow {
        transform: translateX(48px);
    }
    
    .contact-button__base:hover .contact-button.right .contact-button__icon {
        transform: translateX(48px);
    }
    
    .contact-button__base:hover .contact-button.left .contact-button__icon {
        transform: translateX(-48px);
    }
    
    .contact-button__base:hover .contact-button__arrow {
        transform: translateX(0);
    }
}