@charset "utf-8";

.key-visual {
    position: relative;
}

.key-visual .slider {
    width: 100%;
    /* height: 100vh; */
}

.caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 100%;
}

.caption-bgc {
    background-color: #ddd;
}

.caption h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px #000;
}

.caption p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px #000;
}

.menu h2 {
    text-align: center;
}

.menu .menu-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    list-style: none;
}

.menu-filter li {
    margin: 0 15px;
    padding: 10px 20px;
    background-color: #fff;
    border: 1px solid #cc0000;
    color: #cc0000;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.menu-filter li.active-1,
.menu-filter li:hover {
    background-color: #cc0000;
    color: #fff;
}

.menu-list {
    display: grid;
    grid-template-columns: repeat(4, 4fr);
    gap: 5px;
    /* padding: 30px; */
}

.menu-list a{
    color: #fff;
    background: #edba37; /* メインカラーをボタンに適用 */
    padding: 0.5rem 1rem;
    border-radius: 50px;

}

.menu-item {
    cursor: pointer;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 15px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.menu-item img {
    width: 300px; 
    height: 300px;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid #000;
}

.menu-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #cc0000;
}

.menu-item .price {
    font-size: 1rem;
    font-weight: bold;
    margin-top: auto;
}

/* モーダル全体の背景 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000; /* モーダルの優先表示 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* 背景の暗さを調整 */
    overflow: auto;
}

/* モーダルのコンテンツ */
.modal-content {
    background-color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 中央に配置 */
    padding: 20px;
    border: 1px solid #ccc;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

/* 閉じるボタン */
.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover {
    color: #000; /* ホバー時に濃い色 */
}

.modal-content img {
    width: 100%;
    max-height: 300px;
    object-fit: contain; /* 画像を適切に収める */
    /* margin-bottom: 15px; */
}

.modal-text {
    text-align: center;
    padding: 2rem .5rem;
}

#modal-name {
    margin: 0;
}

#modal-price {
    font-size: 24px;
    font-weight: bold;
    color: #cc0000;
}


@media (max-width: 768px){
    .menu-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
        justify-content: center;
        gap: 20px;
        padding: 30px;
    }

    .caption {
        top: 15%;
    }
    

  }

  
@media (max-width: 413px){
    .caption h2{
        margin-bottom: 0px;
    }
    .caption p{
        color: #fff;
    }

    .menu .menu-filter {
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
    }

    .menu-filter li {
        margin: 0;
    }

    .menu-list {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        justify-content: center;
        gap: 20px;
        padding: 30px;
    }
}
  

