/*---------------------------------------------------------
                ヘッダー
---------------------------------------------------------*/
header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 2.5% 0;
    width: 100%;
    background: rgba(255, 255, 255, .8);
}

header .h_bg {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: -1;
    width: 100%;
    opacity: .8;
}

header .h_logo {
    width: 240px;
}

header .h_logo img {
    width: 100%;
}

header .menu_toggle {
    position: relative;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 130px;
    cursor: pointer;
    transition: .3s;
}

header .menu_toggle p {
    font-weight: 300;
}

header .menu_toggle .bd_box {
    position: relative;
    width: 45px;
    height: 22px;
}

header .menu_toggle .bd_box span {
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-color01);
    transition: .3s;
}

header .menu_toggle .bd_box span:first-of-type {
    top: 0;
}

header .menu_toggle .bd_box span:nth-of-type(2) {
    top: 50%;
    transform: translateY(-50%);
}

header .menu_toggle .bd_box span:last-of-type {
    bottom: 0;
}

header .h_menu_container {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100vh;
    background: var(--text-color02);
    opacity: 0;
    transition: .3s;
    pointer-events: none;
}


.h_menu_container svg {
    position: absolute;
    top: 0;
    right: calc(100% - 1px);
    height: 100%;
}

header .h_menu_container .nav_content {
    padding: 85px 140px;
    overflow-y: auto;

}

header .h_menu_container nav.header_nav ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

header .h_menu_container nav.header_nav ul li a {
    font-size: 35px;
    font-weight: 700;
    line-height: 1.7;
}

header .h_menu_container .header_sub_nav {
    margin-top: 1em;
}

header .h_menu_container ul.header_sub_menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

header .h_menu_container ul.header_sub_menu li a {
    font-family: var(--font-en);
    font-weight: 500;
    line-height: 1.7;
}

header .menu_toggle.active .bd_box span:first-of-type {
    top: 45%;
    transform: rotate(24deg);
}

header .menu_toggle.active .bd_box span:nth-of-type(2) {
    opacity: 0;
}

header .menu_toggle.active .bd_box span:last-of-type {
    bottom: 45%;
    transform: rotate(-24deg);
}

header .menu_toggle.active+.h_menu_container {
    opacity: 1;
    pointer-events: all;
}

@media screen and (max-width:768px) {
    header {
        padding-top: 10px;
    }

    header .h_logo {
        width: 200px;
    }

    header .h_menu_container .nav_content {
        padding: 85px 20vw;
    }

    header .h_menu_container nav.header_nav ul li a {
        font-size: 28px;
    }
}

@media screen and (max-width:500px) {
    header .menu_toggle {
        flex-direction: column-reverse;
        gap: 3px;
        width: 55px;
    }

    header .menu_toggle p {
        font-size: 12px;
    }

    header .h_menu_container .nav_content {
        padding: 50px 20vw;
    }

    header .h_menu_container nav.header_nav ul {
        gap: 10px;
    }


}

/*---------------------------------------------------------
                ハンバーガーメニュー
---------------------------------------------------------*/

/*---------------------------------------------------------
                固定ボタン
---------------------------------------------------------*/
.fixed_btn {
    position: fixed;
    bottom: 10%;
    right: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: url(../img/ic_fixed_bg.webp);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.fixed_btn svg.tel,
.fixed_btn svg.mail {
    width: 42px;
}

.fixed_btn svg.tel path,
.fixed_btn svg.mail path {
    transition: .3s;
}

.fixed_btn p {
    color: var(--text-color02);
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
    transition: .3s;
}

.fixed_btn svg.ic_arrow {
    width: 42px;
}

.fixed_btn svg.ic_arrow circle,
.fixed_btn svg.ic_arrow path {
    transition: .3s;
}

@media (hover: hover) and (pointer: fine) {

    .fixed_btn:hover svg.tel path,
    .fixed_btn:hover svg.mail path {
        fill: var(--text-color01);
    }

    .fixed_btn:hover p {
        color: var(--text-color01);
    }

    .fixed_btn:hover svg circle {
        fill: var(--text-color01);
    }

    .fixed_btn:hover svg path {
        fill: var(--text-color02);
    }
}

@media screen and (max-width:500px) {
    .fixed_btn {
        bottom: 0;
        right: unset;
        left: 0;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        width: 100%;
        height: auto;
        background-color: var(--accent-color);
    }

    .fixed_btn p {
        writing-mode: unset;
    }

    .fixed_btn p br.pc {
        display: none;
    }
}

/*---------------------------------------------------------
                モーダル
---------------------------------------------------------*/
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 60;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    pointer-events: none;
    transition: .3s;
}

.modal.open{
    opacity: 1;
    pointer-events: all;
}


.modal .modal_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #333;
    opacity: .7;
}

.modal .modal_close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 35px;
    height: 35px;
    background: var(--base-color);
    border-radius: 50%;
    cursor: pointer;
}

.modal .modal_close::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    content: "×";
    color: var(--text-color01);
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.modal .modal_content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
}

.modal .modal_content .modal_inner {
    position: relative;
    padding: 100px 2.5vw;
    width: 95vw;
    max-width: calc(1030px + 5vw);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-color02);
}

.modal .modal_content .modal_inner .ttl {
    font-size: clamp(24px, 2.7vw, 40px);
    text-align: center;
}


.modal .modal_content .modal_inner .content {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1030px;
    gap: 16px;
    margin: 86px auto 0;
}

.modal .modal_content .modal_inner .content .box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 55px 40px;
    width: 100%;
    background: var(--base-color);
}

.modal .modal_content .modal_inner .content .box img.clover {
    position: absolute;
    top: -30%;
    right: 0;
    width: 162px;
}

.modal .modal_content .modal_inner .content .box .text_box {
    width: calc(100% - 32px - 483px);
}

.modal .modal_content .modal_inner .content .box .text_box p.tel {
    font-size: 25px;
}

.modal .modal_content .modal_inner .content .box .text_box p.text {
    margin-top: 12px;
}

.modal .modal_content .modal_inner .content .box .tel_link {
    padding: 50px 55px;
    width: 483px;
    background: var(--bg-color03);
}

.modal .modal_content .modal_inner .content .box .tel_link a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal .modal_content .modal_inner .content .box .tel_link a svg {
    width: 40px;
}

.modal .modal_content .modal_inner .content .box .tel_link a p {
    font-family: var(--font02);
    font-size: 48px;
    line-height: 1;
    letter-spacing: 0.05em;
    text-decoration: underline;
}

.modal .modal_content .modal_inner .content .box .tel_link .detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    margin-top: 32px;
}

.modal .modal_content .modal_inner .content .box .tel_link .detail p {
    font-size: 17px;
    line-height: 1;
    letter-spacing: 0.05em;
}

.modal .modal_content .modal_inner .content .link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 0;
    width: calc((100% - 16px)/2);
    background: var(--base-color);
    transition: .3s;
}

.modal .modal_content .modal_inner .content .link svg {
    width: 10px;
}

.modal .modal_content .modal_inner .content .link svg path {
    transition: .3s;
}

@media (hover: hover) and (pointer: fine) {
    .modal .modal_content .modal_inner .content .link:hover {
        background: var(--text-color01);
        color: var(--base-color);
    }

    .modal .modal_content .modal_inner .content .link:hover svg path {
        fill: var(--base-color);
    }
}

@media screen and (max-width:990px) {
    .modal .modal_content .modal_inner .content .box img.clover {
        top: -20%;
        left: unset;
    }

    .modal .modal_content .modal_inner .content .box {
        flex-direction: column;
    }

    .modal .modal_content .modal_inner .content .box .text_box,
    .modal .modal_content .modal_inner .content .box .tel_link {
        width: 100%;
    }
}

@media screen and (max-width:768px) {
    .modal .modal_content .modal_inner .content {
        flex-direction: column;
    }

    .modal .modal_content .modal_inner .content .box .tel_link a p {
        font-size: 36px;
    }

    .modal .modal_content .modal_inner .content .box .tel_link {
        padding: 30px 20px;
    }

    .modal .modal_content .modal_inner .content .box .tel_link .detail {
        flex-direction: column;
        gap: 10px;
    }

    .modal .modal_content .modal_inner .content .link {
        width: 100%;
    }
}

@media screen and (max-width:500px) {
    .modal .modal_content .modal_inner .content .box img.clover {
        top: -10%;
        width: 100px;
    }

    .modal .modal_content .modal_inner .content .box {
        padding: 60px 20px 40px;
    }

    .modal .modal_content .modal_inner .content .box .tel_link a svg {
        width: 30px;
    }

    .modal .modal_content .modal_inner .content .box .tel_link a p {
        font-size: 24px;
    }
}