/* 確認してほしいこと　1/19
・スマホ版ナビ
・ヘッダーのheidhtを可変にしていいか
*/

/* フォント */

* {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* ナビとh2にフォント適用 */
.nav li a,
.movingh2 {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 1px;
}


/* 基本　p0,m0 */
h1,
h2,
h3,
h4,
p,
ul,
a,
.padding_0 {
    padding: 0;
    margin: 0;
    list-style: none;
}

/* 全体の幅を620pxにする */
.w-container {
    width: 620px;
    margin: auto;
    background-color: #fff;
}

/* スマホ用の幅設定（触らないでほしい） */
@media screen and (max-width:620px) {
    .w-container:not(.header img) {
        width: 91%;

        & .index_main:not(h2) {
            width: 91%;
            margin: auto;
        }
    }
}

/* リンクの文字設定とカーソル */
* a {
    text-decoration: none;
    color: #333;
    display: block;
    cursor: url(../img/icon/mousetest4.png) 10 5, auto;
}

/* リンクの左寄せ */
.grow .right {
    text-align: right;

    & a {
        display: inline;

        & span {
            color: #333;
            background-color: rgb(250, 189, 189);
            padding: 5px;
            border-radius: 10px;
            box-shadow: 1px 1px 1px 1px #777777;
            transition: all 0.5s;

            &:hover {
                background: lightcoral;
                color: #fff;

            }
        }
    }
}

/* トップに戻るボタン */
.fixed {
    position: fixed;
    bottom: 5%;
    right: calc(5% + 150px);
    z-index: 1;
    border-radius: 10px;

    & a {
        display: block;

        & img {
            width: 50px;
            height: auto;
            vertical-align: top;
        }
    }
}

@media screen and (max-width:1000px) {
    .fixed {
        right: calc(5% + 50px);
    }

}

@media screen and (max-width:800px) {

    .fixed {
        right: 5%;
    }

}

/* 動く背景（触らないでください） */
.bg_scroll {
    position: fixed;
    height: 100vh;
    width: 100vw;
    background-image: url(../img/top_background/naruto_pc.png);
    background-repeat: repeat;
    animation: infinite 100s linear rotation1;
    background-attachment: fixed;
    z-index: -1;
    padding: 0;
    margin: 0;
    top: 0;
    left: 0;
}

@keyframes rotation1 {
    100% {
        background-position: -100% -100%;
    }
}

/* スマホ用背景 */
@media screen and (max-width:620px) {
    .bg_scroll {
/* background-color: red;         */
        background-image: url(../img/top_background/naruto_mo.png);
        background-size: 15%;
    }
}

/* ヘッダー */
.header {

    & .secret,
    & .mobile_header {
        display: none;
    }

    & img {
        height: 250px;
        width: 100%;
        object-fit: cover;
        top: 50px;
        z-index: 20;
    }
}

@media screen and (max-width:620px) {
    .header {
        & .pc_header {
            display: none;
        }

        & .mobile_header {
            display: block;
        }

        & img {
            height: auto;
            object-fit: fill;
        }
    }
}

/* ナビ */
/* PCでは通常表示 */
.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #fff;

    & .navlist {
        display: grid;
        grid-auto-flow: column;
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;

        & li {
            background: rgb(252, 224, 235);
            border-radius: 10px;
            text-align: center;
            line-height: 2em;
            font-size: 1em;
            transition: all 0.5s;

            &:hover {
                z-index: 999;
                background-color: lightcoral;

                & a {
                    color: #fff;
                }
            }


            & a {
                transition: all 0.5s;
            }
        }
    }

    /* SNSアイコン　PC版削除 */
    & .footer-sns {
        display: none;
    }
}


/* スマホではクリックで表示（触らないでください） */
@media screen and (max-width:620px) {
    .nav {
        /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
        position: fixed;
        z-index: 999;
        /*ナビのスタート位置と形状*/
        top: 0;
        left: -120%;
        width: 100%;
        height: 100vh;
        /*ナビの高さ*/
        background: rgba(222, 222, 222, 0.7);
        /*動き*/
        transition: all 0.6s;


        &.panelactive {
            left: 0;
        }

        & .navlist {
            /*ナビゲーション天地中央揃え*/
            position: absolute;
            z-index: 999;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            grid-auto-flow: row;
            grid-template-columns: repeat(1, auto);
            gap: 15px;

            & li {
                background: #ccc url(../img/icon/ramencircle.png) no-repeat padding-box left 5% center/20%;
                border-radius: 10px;
                line-height: 1em;
                font-size: 0.875em;
                transition: none;
                padding-left: 50px;

                &:hover {
                    margin-top: 0;
                }

                & a {
                    /* color: #333; */
                    padding: 10px;
                    display: block;
                    letter-spacing: 0.1em;
                    font-weight: bold;
                }
            }
        }


        & .footer-sns {
            display: flex;
            position: absolute;
            top: 80%;
            left: 50%;
            gap: 15px;
            font-size: 24px;
            justify-content: center;
            padding: 5px 0;
            transform: translate(-50%, -50%);
            z-index: 999;

            & li:hover {
                background-color: transparent;
            }

            & a {
                display: grid;
                place-items: center;
                width: 36px;
                aspect-ratio: 1/1;
                background-color: rgb(198, 156, 109);
                color: #fff;
                clip-path: circle(50%);
            }
        }
    }

    /* 押したら開く設定 */
    .openbtn {
        position: fixed;
        z-index: 9999;
        /*ボタンを最前面に*/
        top: 10px;
        left: 10px;
        cursor: pointer;
        width: 50px;
        height: 50px;
        background-color: rgb(252, 224, 235);
        border-radius: 10px;
    }

    .openbtn span {
        display: inline-block;
        transition: all .4s;
        position: absolute;
        left: 14px;
        height: 3px;
        border-radius: 2px;
        background-color: #666;
        width: 45%;
    }

    .openbtn span:nth-of-type(1) {
        top: 15px;
    }

    .openbtn span:nth-of-type(2) {
        top: 23px;
    }

    .openbtn span:nth-of-type(3) {
        top: 31px;
    }

    .openbtn.active span:nth-of-type(1) {
        top: 18px;
        left: 18px;
        transform: translateY(6px) rotate(-45deg);
        width: 30%;
    }

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

    .openbtn.active span:nth-of-type(3) {
        top: 30px;
        left: 18px;
        transform: translateY(-6px) rotate(45deg);
        width: 30%;
    }

    .no_scroll {
        overflow: hidden;
    }

}


/* メイン */
/*　コンテンツ内グリッド設定 */
.index_main {
    display: grid;
    grid-auto-flow: row;
    gap: 20px;
    padding: 20px 10px;
}

@media screen and (max-width:620px) {
    .index_main {
        padding: 30px 0;
    }

}

/* 各コンテンツのタイトル */
.movingh2 {
    background-color: rgb(252, 224, 235);
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
    border-radius: 10px;
}

/* トップのコピーライト */
.top_introduction p {
    color: rgb(148, 117, 81);
    font-family: "Shippori Mincho B1", serif;
    font-weight: bold;
    font-style: oblique;
    font-size: 1em;
    text-align: center;

    & span {
        font-family: "Shippori Mincho B1", serif;
        font-weight: bold;
        font-style: oblique;
        font-size: 1em;
    }
}

@media screen and (max-width:620px) {
    .top_introduction p {

        & span::before {
            content: '\A';
            white-space: pre;

        }
    }
}

/* News */
.news-container {
    display: grid;
    padding-left: 10%;

    & p {
        display: grid;
        grid-template-columns: 120px auto;

        & time {
            text-align: center;
        }
    }
}

@media screen and (max-width:620px) {
    .news-container {
        padding: 0;

        & p {
            display: block;
            padding: 5px 0;

            & time {
                padding: 0;

                &::after {
                    content: '\A';
                    white-space: pre;
                }
            }
        }
    }
}


/* 残骸（消してもOK） */
/* .top_news p {

    text-indent: 10%;
    padding: 5px 0;

    & time {
        padding:0 23px;
    }
}

@media screen and (max-width:620px) {
    .top_news p {
        text-indent: 0;

        & time {
            padding: 0;

            &::after {
                content: "\A";
                white-space: pre;
            }
        }

        & span {
            text-indent: 1em;
            padding-left: 1em;
        }
    }
} */


/* メニュー */
.menu {

    & ul,
    & p {
        list-style: disc;
        list-style-position: inside;
        text-indent: 30%;
    }

    & p {
        padding-top: 15px;
    }
}

@media screen and (max-width:620px) {
    .menu {

        & ul,
        & p {
            list-style: disc;
            list-style-position: inside;
            text-indent: 0;
        }

        & p {
            padding-top: 15px;
        }
    }
}

/* Access */
.access_grid {
    padding-left: 10%;
    display: grid;
    gap: 15px;

    & div[class^="shop_"] {
        display: grid;
        grid-template-columns: 120px auto;
        grid-template-rows: auto;

        & p:nth-of-type(1) {
            text-align: center;
        }

        & .grid_1 {
            font-weight: bold;
        }
    }

    & .shop_address {
        grid-template-columns: 120px auto;
        grid-template-rows: auto auto;
        row-gap: 5px;

        & .grid_1 {
            display: grid;
            grid-area: 1 / 1 / 3 / 2;
            padding: 0 5px;
            place-items: center;
        }

        & .grid_4 {
            grid-area: 2 / 2 / 2 /-1;
        }

    }

    & .shop_access {
        grid-template-columns: 120px auto;
        grid-template-rows: auto auto auto;
        row-gap: 5px;

        & .grid_1 {
            display: flex;
            grid-area: 1 / 1 / 4 / 2;
            padding: 0 5px;
            place-items: center;
        }

        & .grid_4 {
            grid-area: 2 / 2 / 2 /-1;
        }

        & .grid_6 {
            grid-area: 3 / 2 / 4 / -1;
        }
    }

    & .shop_holiday {
        grid-template-columns: 120px auto;
        grid-template-rows: auto auto;
        row-gap: 5px;

        & .grid_1 {
            display: flex;
            grid-area: 1 / 1 / 3 / 2;
            margin: auto;
        }

        & .grid_4 {
            grid-area: 2 / 2 / -1 / -1;
        }

        & a {
            display: inline;
        }
    }
}

.access_grid .right {
    padding-top: 10px;
}

@media screen and (max-width:620px) {
    .access {
        & .access_grid {
            padding: 0;

            & div[class^="shop_"] {
                display: block;
                text-align: left;

                &>* {
                    padding: 0;
                    margin: 0;
                }

                & .grid_1 {
                    display: block;
                    font-weight: bold;
                    border-bottom: 2px dotted black;
                    text-align: left;
                }
            }
        }
    }
}

/* フッター */
.footer {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
    gap: 10px;
    padding: 0 10px 20px;

    & .footer-sns {
        display: flex;
        gap: 15px;
        font-size: 24px;
        justify-content: center;
        padding: 10px 0;

        & a {
            display: grid;
            place-items: center;
            width: 36px;
            aspect-ratio: 1/1;
            background-color: rgb(198, 156, 109);
            color: #fff;
            clip-path: circle(50%);
        }
    }
}

@media screen and (max-width:620px) {
    .footer {
        grid-auto-flow: row;
        grid-template-columns: auto;

        & .tel {
            display: grid;
            gap: 0px;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        }
    }
}