@charset "utf-8";

/*-------------------------
* トップページ共通
-------------------------*/

.title,
.more,
.nav-top {
    font-family: 'jsMath-cmbx10', sans-serif;
}

/*-------------------------
* ヘッダー
-------------------------*/

header {
    width: 100%;
    /* 波の基準ボックス */
    position: relative;
    background-color: var(--brown);
}

header::after {
    content: "";
    background: url(../img/wave-half-brown.svg) no-repeat center;
    background-color: var(--yellow);
    /* 横幅100%、高さauto */
    background-size: 100% auto;
    display: block;
    width: 100%;
    height: 5rem;

    position: absolute;
    bottom: -30px;
    left: 0;
    z-index: 1;
}

.slider {
    width: 100%;
    height: auto;
    clip-path: ellipse(50% 40% at 50% 50%);
    animation: slider-move 3s;
}

.slider li img {
    filter: contrast(60%);
}

@keyframes slider-move {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.title-top {
    font-family: "Cedarville Cursive", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 4rem;

    position: absolute;
    top: 25%;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;

    line-height: 1;
    text-align: center;
    color: var(--yellow);
    mix-blend-mode: hard-light;
}

.nav-top {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 5%;

    /* 枠のサイズを残したまま動かしたい,z-indexを使いたいのでrelative */
    position: relative;
    top: -5rem;
    z-index: 1;
}

.nav-top li:first-child a {
    border-radius: 37% 63% 33% 67% / 57% 35% 65% 43%;
    background-image: radial-gradient(circle, #9ed2c9 5px, transparent 5px);
    background-position: 0 0, 17.5px 35px;
    background-size: 35px 35px;
}

.nav-top li:nth-child(2) a {
    border-radius: 57% 43% 49% 51% / 43% 53% 47% 57%;
    background-image: repeating-linear-gradient(45deg, #9ed2c980, #9ed2c980 20px, transparent 20px, transparent 40px), repeating-linear-gradient(-45deg, #9ed2c980, #9ed2c980 20px, transparent 20px, transparent 40px);
}

.nav-top li:last-child a {
    border-radius: 35% 65% 20% 80% / 71% 30% 70% 29%;
    background-image: repeating-linear-gradient(0deg, #9ed2c9, #9ed2c9 15px, transparent 15px, transparent 25px);
}

.nav-top li a {
    width: 10rem;
    height: 8.5rem;
    font-size: 2.4rem;
    color: #451D1D;
    background: var(--mint);
    box-shadow: 2px 2px 2px 2px #1fb199;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* 668px以上だとスケールが上書きされて縮む */
.nav-top li a:hover {
    transform: translateY(2px);
}

@media screen and (min-width:668px) {

    .slider {
        width: 80%;
        height: 60vh;
        margin: 0 auto;
        clip-path: ellipse(50% 45% at 50% 55%);
    }

    .title-top {
        font-size: 6rem;
    }

    .nav-top {
        gap: 10%;
    }

    .nav-top li a {
        transform: scale(1.2);
    }

}

/* 高さ500以下かつ幅668以下ならこっち */
@media screen and (max-height:500px) {
    header {
        height: 500px;
    }

    .title-top {
        font-size: 3rem;
    }

    .nav-top {
        top: 0rem;
    }

    .wide-none {
        display: none;
    }

    /*
    .slider {
        height: 300px;
    } */
}

/*-------------------------
* main
-------------------------*/

.about,
.works {
    padding: 1rem 3.2rem;
}

/* ★moreボタン */
.more {
    width: 16rem;
    height: 4.8rem;
    /* 左側に自動で余白を作って右に押し出す */
    margin: 1.6rem 0 2.6rem auto;
    border-radius: 1.7rem;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.25);
    /* heightと同じ数値にすると上下中央に */
    line-height: 4.8rem;
    text-align: center;
    position: relative;
    background: var(--red);
    color: #FCFAE0;
}

.more:hover {
    background: #FCFAE0;
    color: var(--red);
    /* insetをはじめに書かないと上書き変更されなかった */
    box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.25);
    transform: translateY(2px);
}

.more:hover::before,
.more:hover::after {
    content: "";
    position: absolute;
    width: 1.6rem;
    height: 1.6rem;
    background: url(../img/cherry.svg) no-repeat center;
    background-size: contain;
}

.more:hover::before {
    top: -0.8rem;
    right: 0;
}

.more:hover::after {
    bottom: -0.8rem;
    left: 0;
}

@media screen and (min-width:668px) {

    .about,
    .works {
        padding: 1rem 10%;
    }

    .more {
        /* 左側に自動で余白を作って右に押し出す */
        margin-right: 10%;
        font-size: 2.1rem;
    }
}

/*-------------------------
* main : about
-------------------------*/

.about {
    height: auto;
    background: var(--yellow);
    /* 波の基準ボックス */
    position: relative;
}

.about::after {
    content: "";
    background: url(../img/wave-half.svg) no-repeat center;
    /* 横幅100%、高さauto */
    background-size: 100% auto;
    background-color: var(--lightyellow);
    display: block;
    width: 100%;
    height: 5rem;
    transform: rotate(180deg);
    position: absolute;
    /* 波線の位置を調整、サイズを決める */
    bottom: -30px;
    left: 0;
    z-index: 1;
}

.text-box {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0.5rem;
    padding: 3.2rem 1.6rem;
}

.text-box>p+p {
    margin-top: 1.8rem;
}

/*-------------------------
* main : works
-------------------------*/

.works {
    height: auto;
    background: var(--lightyellow);
    padding-bottom: 5rem;
}
