html {
    scroll-behavior: smooth;
}
summary {
    list-style: none;
}
summary::-webkit-details-marker {
    display: none;
}

/* .line-animated {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}
.line-animated-reverse {
    stroke-dasharray: 1;
    stroke-dashoffset: -1;
}
.line-animated.start-draw {
    animation: line-animation 1.5s ease-out forwards;
}
.line-animated-reverse.start-draw {
    animation: line-animation 1s linear .3s forwards;
}
@keyframes line-animation {
    to {
        stroke-dashoffset: 0;
    }
} */

#menu.is-active {
    left: 0;
}

.container-cqi {
    container-type: inline-size;
}

.footer-container {
    > div:first-of-type > div {
        padding: 2cqi;

        p {
            font-size: 1.29cqi;
        }

        > img {
            width: 1.612cqi;
            height: 1.612cqi;
        }
    }

    .container-logo {
        width: 17.112cqi;
    }

    .content-wrap {
        gap: 4.032cqi;
    }
    .content-item {
        padding: 2.419cqi;

        > div:first-of-type {
            margin-bottom: 1.612cqi;
        }

        > div:last-of-type {
            gap: 1.612cqi 2.419cqi;
            font-size: 1.29cqi;
        }

        h1 {
            font-size: 2.016cqi;
        }
    }

    @media screen and (max-width: 1600px) and (max-height: 800px) {
        .content-wrap {
            gap: 5.72cqh !important;
        }
        .content-item {
            width: calc(100% / 2 - (5.72cqh / 2));
            padding: 3.432cqh;
        
            > div:first-of-type {
                margin-bottom: 1.612cqi;
            }
        
            > div:last-of-type {
                gap: 2.288cqh 3.432cqh;
                font-size: 1.29cqi;
            }
        
            h1 {
                font-size: 2.016cqi;
            }
        }
    }
}

/* ヘッダーの改行タイミングでバーガーメニュー表示 */
@media screen and (max-height: 800px) {
    .pc-header, .sub-header {
        display: none !important;
    }
    .sp-header {
        display: block !important;
    }

    /* 切り替わったタイミングで-60pxしていたコンテンツ幅を100% */
    .height-switch {
        width: 100% !important;
    }

    .break-800 {
        right: 0 !important;
    }
    .container-inline-size .text-cqh-25 {
        font-size: 2.66cqh;
    }
    .container-inline-size .text-cqh-18 {
        font-size: 2.05cqh;
    }
    .container-inline-size .translate-cqh {
        transform: translateX(-45.25cqh);
    }

    /* 詰まっているコンテンツ用スタイル */
    .low-height > div {
        padding: 20px 10px;

        div:first-of-type {
            h1 {
                font-size: 20px;
            }
        }
    }

    .low-content {
        justify-content: center !important;

        > div {
            width: 300px;
            padding: 15px;
        }

        a > div {
            font-size: 20px;
            justify-content: space-between;

            p {
                width: 100%;
            }
        }
    }
}

/* コンテンツのheight限界値でSP表示 */
@media screen and (max-height: 600px) {
    .pc-content, .pc-header {
        display: none !important;
    }
    .sp-content, .sp-header {
        display: block !important;
    }
}

.triangle {
    width: 0;
    height: 0;
    border-style: solid;
    border-right: 19px solid transparent;
    border-left: 19px solid transparent;
    border-top: 39px solid #555555;
    border-bottom: 0;
}

.hov-slide {
    position: relative;
    overflow: hidden;
    color: inherit;
}

.hov-slide::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fafafa;
    transform: translateX(0%);
    -webkit-transition: .3s;
    transition: .3s;
    z-index: -1;
}

.hov-slide_white::before {
    background: #fff;
}

.hov-slide:hover::before {
    transform: translateX(100%);
}

.hov-gradient {
    position: relative;
}

.hov-gradient::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: linear-gradient(90deg, rgba(14, 137, 116, 1), rgba(164, 180, 41, 1));
    opacity: 0;
    transition: opacity .3s;
}

.hov-gradient:hover::before {
    opacity: 1;
}

.container-inline-size {
    container-type: inline-size;
}

[data-section] {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.modal-content {
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    width: 55px;
}

.border-gradient {
    position: relative;
    border: none;
}

.border-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    padding: 1px;
    background: linear-gradient(91.24deg, #0E8974 0.84%, #A4B429 99.46%);
    -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.border-gradient .js-summary {
    background: url('../../environment/images/icon-open.png')no-repeat;
    background-size: 25px;
    background-position: center right 40px;
}
.border-gradient.is-opened .js-summary {
    background: url('../../environment/images/icon-close.png')no-repeat;
    background-position: top 53px right 40px;
}

.border-gradient .content-inner {
    margin: 10px 40px 40px;
    padding: 50px 0;
    border-top: 1px dashed var(--iyo-green);
    border-bottom: 1px dashed var(--iyo-green);
}

@media screen and (max-width: 768px) {
    .modal-close {
        top: 15px;
        right: 15px;
        width: 30px;
    }
    .border-gradient .js-summary {
    background-position: center right 20px;
    background-size: 20px;
    }
    .border-gradient.is-opened .js-summary {
    background: url('../../environment/images/icon-close.png')no-repeat;
    background-position: center right 20px;
    background-size: 20px;
    }
    .border-gradient .content-inner {
    margin: 10px 20px 20px;
    padding: 30px 0;
    }
}

section.section {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
}