body {
    color: #000;
    font-family: 'Zen Maru Gothic', sans-serif;
    line-height: 1.6;
    background-color: #F8F7F0;
    margin: 0;

    /* PC 背景左右のなすび */
    background-image: url("./img/back_img_nasubi.png"), 
    url("./img/back_img_nasubi.png");
    background-position: calc(0% + 20px) calc(50% - 50px), 
    calc(100% - 20px) calc(50% - 50px);
    background-repeat: repeat-y, repeat-y;
    background-size: auto, auto;
    background-attachment: fixed;
}

h1, h2, h3, p {
    font-family: 'Zen Maru Gothic', sans-serif;
}

img {
    width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: #000;
}

a:hover {
    opacity: 0.7;
}

/* navbar */
header {
    position: fixed;
    width: 100%;
    height: auto;
    top: 0;
    z-index: 10000;
}

.navbar {
    background-color: #902863;
    height: 120px;
}
  
.navbar-icon {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #F8F7F0;
    width: 100%;
    height: auto;
}

.navbar-icon img {
    width: 180px;
    height: auto;
    padding-top: 20px;
    padding-bottom: 8px;
    transition: all 0.4s ease-out;
    transform-origin: center center;
}

.navbar-icon:hover img {
    transform: scale(1.04);
}

.navbar-icon:hover a {
    opacity: 1;
}

.navbar-items {
    display: flex;
    list-style: none;
    justify-content: center;
    margin-right: 20px;
    padding: 0;
    height: auto;
}

.navbar-items li {
    display: flex;
    align-items: center;
    margin-right: 20px;
    margin-top: 12px;
}

.navbar-items li:last-child {
    margin-right: 0;
}
  
.navbar-items li a {
    display: flex;
    align-items: center;
    color: #F8F7F0;
    font-size: 16px;
    margin: 0 20px;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.navbar-items li a span, .navbar-footer-style {
    display: none;
}
  
.navbar-hamburger {
    display: none;
}
  

/* fb誘導アイコン */
.fb {
    position: fixed;
    bottom: -45px;
    right: 25px;
    z-index: 9999;
    width: 200px;
    height: auto;
    display: none;
}

.fb-item img {
    transition: all 0.4s ease-out;
    transform-origin: center center;
}

.fb-item:hover img {
    transform: scale(1.1);
}

.fb-item:hover a {
    opacity: 1;
}

  
/* top */
/* aタグ追加によるTOPの3茄子の修正css 
img:nth-child(3) 下部にあり*/

.top {
    margin-top: 120px;
}
  
.top-illust {
    position: relative;
    overflow: hidden;
    display: block;
}

.top-illust-sp {
    display: none;
}
  
/* 画像位置を調整 */ 
.top-illust img:nth-child(2) {
    position: absolute;
    top: -7%;
    right: -20%;
    height: auto;
    transition: transform 1s ease-in-out;
}
.top-illust img:nth-child(3) {
    position: absolute;
    bottom: 0;
    left: 0;
}
.top-illust img:nth-child(4) {
    position: absolute;
    bottom: 0;
    left: 0;
}
  
/* 画像サイズを調整 */
.top-illust img:nth-child(1) {
    width: 100%;
    height: auto;
}
  
.top-illust img:nth-child(2) {
    width: 55%;
    height: auto;
}  
.top-illust img:nth-child(3) {
    width: 30%;
    height: auto;
}  

/* フォークのアニメーション */
/* 3なすびのアニメーション */
@keyframes move {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.top-illust img:nth-child(2) {
    animation: move 1.5s ease-in-out infinite;
}
.top-illust img:nth-child(3) {
    animation: move 1.5s ease-in-out infinite;
}
.top-illust img:nth-child(4) {
    animation: move 1.5s ease-in-out infinite;
}
    

/* news */
.news {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 57%;
    margin: auto; 
    padding: 40px 0;
}

.news-ul {
    list-style-type: none;
    margin: 0;
    padding: 0 20px;
    border: none;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    font-size: 14px; 
    width: 85%;
}

.news-ul span {
    font-family: 'Zen Maru Gothic', sans-serif;
}

.news-title {
    background-color: #902863;
    color: #fff;
    padding: 3px 8px;
    display: inline-block; /* インラインブロック要素にすることで幅を調整 */
    margin-right: 10px;
    margin-bottom: 8px;
    font-family: 'Zen Maru Gothic', sans-serif;
}
  
.news li {
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #000;
    margin: 15px 10px;
    font-family: 'Zen Maru Gothic', sans-serif;
}
  
.news li p {
    white-space: pre-wrap;
    font-size: 15px; 
}
  
  
/* なすび食堂 */
.nasubisyokudou-text1 h1 {
    text-align: center;
    font-size: 1.8em;
    color: #902863;
    padding-top: 50px;
    padding-bottom: 15px;
    font-weight: bold;
}

.nasubisyokudou-text2 {
    width: 57%;
    margin: 0 auto;
}

.br-sp {
    display: none;
}


/* メニュー紹介一覧 */
.menu {
    padding: 30px 0;
}

.menu h2 {
    text-align: center;
    font-size: 1.8em;
    color: #902863;
    padding: 10px;
    font-weight: bold;
}

.menu-photo {
    font-size: 0;
    text-align: center;
    margin: 10px 100px;
}

.menu-item {
    display: inline-block;
    width: calc(33.33% - 40px); /* 3列に分けて、左右に20pxずつ余白 */
    margin: 20px 20px; /* 上下に20px、左右に20px余白 */
    vertical-align: top;
    font-size: 16px;
}

.menu-caption {
    font-size: 18px;
    font-weight: bold;
    color: #902863;
    padding: 20px 0;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.menu-title {
    text-align: justify;
    font-size: 16px;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.menu-item img {
    transition: all 0.4s ease-out;
    transform-origin: center center;
}

.menu-item:hover img {
    transform: scale(1.04);
}

.menu-item:hover a {
    opacity: 1;
}

.menu-radius img {
    border-radius: 5px;
}
  

/* なすびミュージアム */
.nasubi-museum-bunner {
    display: block;
    margin: 0 auto;
    padding-bottom: 80px;
    width: 70%;
    height: auto;
}

.nasubi-museum-bunner img {
    border-radius: 5px;
    transition: all 0.4s ease-out;
    transform-origin: center center;
}
  
.nasubi-museum-bunner:hover img {
    transform: scale(1.03);
}

.nasubi-museum-bunner:hover a {
    opacity: 1;
}

/* なすびTシャツ */
.nasubi-t-bunner {
    display: block;
    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 40px;
    width: 70%;
    height: auto;
}

.nasubi-t-bunner img {
    border-radius: 5px;
    transition: all 0.4s ease-out;
    transform-origin: center center;
}
  
.nasubi-t-bunner:hover img {
    transform: scale(1.03);
}

.nasubi-t-bunner:hover a {
    opacity: 1;
}

.nasubi-t-pc {
    position: relative;
    overflow: hidden;
    display: block;
}

.nasubi-t-sp {
    display: none;
}

/* footer */
.footer-style {
    background-color: #902863;
    height: 250px;
}

.footer-logo {
    width: 170px;
    height: auto;
    margin: 0 auto;
    padding-top: 45px;
    padding-bottom: 40px;
}

.footer-sns {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-sns img {
    width: 25px;
    height: auto;
    padding-bottom: 20px;
}

.footer-style p {
    text-align: center;
    color: #F8F7F0;
    font-size: 12px;
}


/* タブレット用 */
/* 768〜1280pxの表示 */
@media screen and (min-width: 768px) and (max-width: 1280px) {

    /* タブレット用news */
    .news {
        width: 70%;
    }

    /* タブレット用メニュー紹介一覧 */
    .menu-item {
        width: calc(50% - 40px); /* 2列に分けて、左右に20pxずつ余白 */
    }
    
}

/* スマホ用 */
/* 767px以下の表示 */
@media screen and (max-width: 767px) {

    /* スマホ用背景左右のなすび表示しない */
    body {
        background-image: none;
    }
    
    /* スマホ用navbar */
    .navbar {
        height: 75px;
    }

    .navbar-icon {
        border-bottom: none;
    }

    .navbar-icon img {
        width: 170px;
        height: auto;
    }

    .navbar-hamburger {
        display: block;
        position: relative;
        margin-left: 20px;
        margin-top: -42px;
        width: 30px;
        height: 20px;
        cursor: pointer;
    }
    
    .navbar-hamburger span {
        display: block;
        position: absolute;
        height: 2px;
        width: 100%;
        background-color: #fff;
        transition: all .3s ease-out;
    }
    
    .navbar-hamburger span:nth-child(1) {
        top: 0;
    }
    .navbar-hamburger span:nth-child(2) {
        top: 9px;
    }
    .navbar-hamburger span:nth-child(3) {
        bottom: 0;
    }
    
    .navbar-hamburger.active span:nth-child(1) {
        top: 9px;
        transform: rotate(45deg);
    }
    .navbar-hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .navbar-hamburger.active span:nth-child(3) {
        bottom: 9px;
        transform: rotate(-45deg);
    }
    
    .navbar-items {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
        height: 3000px;
        background-color: #F8F7F0;
     }
    
    .navbar-items li {
        display: flex;
        align-items: center;
        padding: 15px 0;
        margin: 0;
        border-bottom: 1px solid #000;
    }
      
    .navbar-items li a {
        padding: 5px;
        color: #000;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
      
    .navbar-items li a span {
        display: inline;
        margin-left: auto;
        font-weight: bolder;
    }

    .navbar-footer-style {
        display: inline;
    }
     
    .navbar-footer-style p {
        text-align: center;
        color: #902863;
        font-size: 12px;
    }

    /* スマホ用fb誘導アイコン */
    .fb {
        width: 170px;
        height: auto;
        right: 5px;
    }


    /* スマホ用top */
    .top {
        margin-top: 67px;
    }

    .top-illust {
        display: none; /* 非表示にする */
    }

    .top-illust-sp {
        position: relative;
        overflow: hidden;
        display: block;
    }

    .top-illust-sp img:nth-child(2) {
        position: absolute;
        top: 0;
        right: -32%;
        height: auto;
        transition: transform 1s ease-in-out;
    }
      
    .top-illust-sp img:nth-child(3) {
        position: absolute;
        bottom: 0;
        left: 24%;
        transform: translateX(-24%);
    }
      
    /* スマホ用画像サイズを調整 */     
    .top-illust-sp img:nth-child(2) {
        width: 75%;
        height: auto;
    }  

    .top-illust-sp img:nth-child(3) {
        width: 55%;
        height: auto;
    }  

    /* スマホ用フォークのアニメーション */
    /* スマホ用3なすびのアニメーション */
    .top-illust-sp img:nth-child(2) {
        animation: move 1.5s ease-in-out infinite;
    }
    .top-illust-sp img:nth-child(3) {
        animation: move 1.5s ease-in-out infinite;
    }


    /* スマホ用news */
    .news {
        width: 85%;
    }

    .news-ul {
        width: 100%;
    }

    /* スマホ用なすび食堂 */
    .nasubisyokudou-text1 h1 {
        font-size: 1.5em;
    }

    .nasubisyokudou-text2 {
        width: 85%;
    }

    .br-sp {
        display: block
    }

    /* スマホ用メニュー紹介一覧 */
    .menu-photo {
        margin: 10px 0;
    }

    .menu-item {
        width: 80%;
        margin: 20px 0;
    }

    .menu h2 {
        font-size: 1.5em;
    }

    /* スマホ用footer */
    .footer-style {
        height: 350px;
    }

    .footer-logo {
        width: 170px;
        height: auto;
    }

    .footer-sns img {
        width: 35px;
        height: auto;
    }

    /* スマホ用なすびミュージアム */
    .nasubi-museum-bunner {
        width: 85%;
    }

    /* スマホ用なすびTシャツ */
    .nasubi-t-bunner {
        width: 85%;
    }

    .nasubi-t-sp {
        position: relative;
        overflow: hidden;
        display: block;
    }
    
    .nasubi-t-pc {
        display: none;
    }
}


/* スマホの時だけ表示する下部のなすび */
@media screen and (max-width: 767px) {
    .sp-only-nasubi {
        display: block; /* スマートフォンサイズの場合、表示する */
        margin: 0 auto;
        padding-bottom: 20px;
        width: 80%;
    }
}

@media screen and (min-width: 768px) {
    .sp-only-nasubi {
        display: none; /* PCサイズの場合、非表示にする */
    }
}


/* フォントおかしいから修正 */
.nasubisyokudou-text2 {
    font-family: 'Zen Maru Gothic', sans-serif;
}

/* 営業カレンダー追加 */
.nasubisyokudou-calendar-text1 h2 {
    text-align: center;
    font-size: 1.8em;
    color: #902863;
    padding-top: 50px;
    padding-bottom: 15px;
    font-weight: bold;
}

.nasubisyokudou-calendar-img {
    display: flex;
    width: 70%;
    margin: 0 auto;
    gap: 20px;
}
@media screen and (max-width: 767px) {
    .nasubisyokudou-calendar-img {
        display: block;
        width: 90%;
    }
}

.nasubisyokudou-text1 h1 {
    text-align: center;
    font-size: 1.8em;
    color: #902863;
    padding-top: 50px;
    padding-bottom: 15px;
    font-weight: bold;
}

.nasubisyokudou-calendar-text2 p {
    text-align: center;
    margin: 0 auto;
    margin-top: 10px;
}


.nasubisyokudou-calendar-text3 {
    border: 3px solid #902863;
    border-radius: 5px;
    width: 500px;
    margin: 0 auto;
    margin-top: 20px;
}
@media screen and (max-width: 767px) {
    .nasubisyokudou-calendar-text3 {
        width: 70%;
    }
}
.nasubisyokudou-calendar-text3 p {
    text-align: center;
    margin: 0 auto;
    margin-top: 10px;
    margin-bottom: 10px;
    font-family: 'Zen Maru Gothic', sans-serif;
}
.nasubisyokudou-calendar-text3 p span {
    color: #902863;
    font-weight: bold;
    font-family: 'Zen Maru Gothic', sans-serif;
}

/* 営業時間変更に関するcss */
.time-henkou {
    background-color: red;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 500;
    margin-top: 10px;
    margin-bottom: 10px;
    display: inline-block;
}

/* 臨時休業に関するcss */
.temporary-closed {
    max-width: 480px;
    margin: 0 auto;
    padding: 10px;
    border: 2px solid #902863;
    margin-top: 30px;
    margin-bottom: 10px;

    @media screen and (max-width: 767px) {
        width: 80%;
    }

    p {
        font-family: 'Zen Maru Gothic', sans-serif;
        font-weight: 500;
        text-align: center;
        color: #902863;
    }

    a {
        font-family: 'Zen Maru Gothic', sans-serif;
        font-weight: 500;
        text-align: center;
        color: #902863;
    }

}

/* 注意文css */
.temporary-notice {
    max-width: 480px;
    margin: 0 auto;
    padding: 10px;
    border: 2px solid #902863;
    margin-top: 30px;
    margin-bottom: 10px;

    @media screen and (max-width: 767px) {
        width: 80%;
    }

    p {
        font-family: 'Zen Maru Gothic', sans-serif;
        font-weight: 500;
        text-align: justify;
        color: #902863;
    }

    a {
        font-family: 'Zen Maru Gothic', sans-serif;
        font-weight: 500;
        text-align: center;
        color: #902863;
    }

}


/* aタグ追加によるTOPの3茄子の修正css */
/* PC */

#fork {
  position: absolute;
  top: -7%;
  right: -20%;
  width: 55%;
  height: auto;
  animation: move 1.5s ease-in-out infinite;
}

#top-sanbasubi {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30%;
  height: auto;
  animation: move 1.5s ease-in-out infinite;
}

.top-sanbasubi-hover:hover  {
    opacity: 1;
}

/* スマホ用 */
/* 767px以下の表示 */
@media screen and (max-width: 767px) {
    #fork-sp {
        position: absolute;
        top: 0;
        right: -32%;
        width: 75%;
        height: auto;
        animation: move 1.5s ease-in-out infinite;
    }

    #top-sanbasubi-sp {
        position: absolute;
        bottom: 0;
        left: 24%;
        transform: translateX(-24%);
        width: 55%;
        height: auto;
        animation: move 1.5s ease-in-out infinite;
    }
}