@charset "utf-8";
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

img {
    width: 100%;
    vertical-align: bottom;
}

/* COMMON */
.title {
    font-family: "Fredericka the Great", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 60px;
    width: fit-content;
    color: brown;
    text-shadow: 3px 3px 5px yellow;
}

main {
    background-image: url(../img/bg.jpg);
    padding: 100px 200px;
}

/* nav */
.menu-wrapper {
    position: relative;
}

.menu-icon {
    width: 40px;
    height: 30px;
    position: fixed; /* ← fixedにして右に左上固定 */
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 4;
    display: inline-block;
}

.menu-icon span {
    display: block;
    height: 4px;
    margin: 6px 0;
    background: #fff7c1;
    border-radius: 2px;
    transition: 0.4s;
    color: #fff7c1;
}
.menu-icon div {
    color: #fff7c1;
    line-height: 0;
}

/* ハンバーガーがXに変形 */
#menu-toggle:checked + .menu-icon span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
#menu-toggle:checked + .menu-icon span:nth-child(2) {
    opacity: 0;
}
#menu-toggle:checked + .menu-icon span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* オーバーレイ背景 */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
    z-index: 2;
}

#menu-toggle:checked ~ .overlay {
    opacity: 1;
    pointer-events: auto;
}

/* メニュー本体（左から出す） */
.menu {
    position: fixed;
    top: 0;
    right: -250px; /* ← 初期位置を右へ */
    width: 250px;
    height: 100%;
    background: #ffffff9a;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
    transition: right 0.4s ease;
    z-index: 3;
}

#menu-toggle:checked ~ .menu {
    right: 0; /* ← 開いたときは右0へ */
}

.menu ul {
    padding: 60px 20px;
}

.menu li {
    margin: 20px 0;
}

.menu a {
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.menu a:hover {
    color: #fff7c1;
}

/* HEADER */
header {
    position: relative;
    height: 100vh;
    background-image: url(../img/hero.png);
    background-size: cover;
}

header .jump a {
    color: #fff7c1;
}
header .jump {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
}

/* ABOUT */
#about {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about {
    width: 500px;
    height: 500px;
    background-color: #fff7c1;
    padding: 30px 50px;
    line-height: 1.5;
    box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.714);
}

/* MENU */
#menu h2 {
    width: fit-content;
    background-color: #fff7c1;
    padding: 15px 25px;
    margin-top: 50px;
    box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.714);
    transform: rotate(-20deg);
}

#menu .food-box {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 100px;
}

#menu .food-item {
    width: 200px;
    height: fit-content;
}

#menu .food-name {
    background-color: #fff7c1;
    width: fit-content;
    padding: 5px 10px;
    font-weight: bold;
    margin: 0 auto;
}

/* accordion */

#menu input {
    display: none;
}

#menu input + label ~ div {
    display: block;
}

#menu input:checked + label ~ div {
    display: none;
}

#menu label {
    display: block;
    font-size: 18px;
    background-color: brown;
    color: #fff7c1;
    width: fit-content;
    padding: 10px 70px 40px;
    margin: 30px auto;
    cursor: pointer;
    clip-path: polygon(100% 0, 0 0, 50% 100%);
}

#menu label:hover {
    background-color: rgb(208, 55, 55);
}

/* ACCESS */
#access {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 50px;
    margin-top: 100px;
}

#access .map {
    width: 500px;
    height: 500px;
    background-color: #fff7c1;
    padding: 30px 50px;
    line-height: 1.5;
    box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.714);
    position: relative;
}

#access .map h2 {
    position: absolute;
    z-index: 1;
}
#access .map img {
    width: 80%;
    height: 90%;
    object-fit: contain;
    position: absolute;
    top: 50px;
}

#access h3 {
    font-size: 35px;
    color: #fff;
    text-shadow: 0 0 5px brown, 0 0 20px yellow, 0 0 40px yellow;
    transform: skew(-25deg);
}

#access th,
td {
    font-weight: bold;
    font-size: 18px;
    text-align: left;
    vertical-align: top;
    padding-right: 30px;
    color: #333;
    height: 50px;
}

#access td span {
    font-weight: normal;
    font-size: 16px;
}

/* CONTACT */
#contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    margin-top: 100px;
}

#contact .contact-imgbox {
    width: 450px;
height: 300px;
    background-color: white;
    transform: rotate(-15deg);
    display: flex;
justify-content: center;
align-items: center;}

#contact .contact-photo{
    width: 95%;
    height: 95%;
    object-fit: cover;
}

#contact .contact-box {
    background-color: #fff7c1;
    box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.714);
    width: 50%;
    height: 620px;
    position: relative;
}

#contact .contact-icon {
    position: absolute;
    width: 280px;
    left: 40%;
    top: 5px;
    transform: translateX(-50%);
}

#contact .drop-icon {
    position: absolute;
    width: 200px;
    top: 130px;
    right: 25px;
    transform: rotate(20deg);
    z-index: 1;
}

#contact .send-button {
    position: absolute;
    bottom: 10px;
    width: 300px;
    left: 50%;
    transform: translateX(-50%);
}

#contact .send-button input[type="submit"] {
    width: 190px;
    top: 4px;
    left: 43px;
    height: 60px;
    cursor: pointer;
    opacity: 0;
}

#contact .send-button img {
    transition: 0.8s;
}

#contact .send-button input[type="submit"]:hover + img {
    width: 310px;
}

/* CONNTACT-form */
#contact input,
textarea {
    display: block;
    position: absolute;
}

#contact input[type="text"],
input[type="email"],
textarea {
    width: 70%;
    height: 40px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    font-style: italic;
    top: 190px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgb(188, 234, 228);
}

#contact input[type="email"] {
    top: 240px;
}

#contact textarea {
    top: 290px;
    height: 200px;
    resize: none;
}

/* GALLERY */
#grid{position: relative;}
#grid h4{position: absolute;
color: #fff7c1;
text-shadow: #fff 1px 1px;
font-size: 100px;
top: 50%;
left: 50%;
line-height: 0.9;
transform: translate(-50%,-50%) rotate(-15deg);

}

.photo-grid {
    display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-template-rows: 150px 150px 150px ;
    gap: 5px;
    background-color:#000;
}

.photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.grid-item1{grid-column: 1/2;
grid-row: 1/3;}

.grid-item2{grid-column: 3/5;
grid-row: 2/3;}

.grid-item3{grid-column: 3/5;
grid-row:3/4;}

.grid-item5{grid-column: 2/5;
grid-row: 1/2;}

.grid-item6{grid-column: 2/3
    ;
grid-row: 2/4;}


/* footer */
footer{
background-color: brown;
color: #fff7c1;
text-align: center;
padding: 10px;
font-size: small;}