/* ===================================================
   ページ全体のリセット・共通設定（白帯対策込み）
=================================================== */
html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS Mincho", serif;
    color: #060606;
    background-image: url("background-washi.webp");
    position: relative;
}

/* 背景固定レイヤー（vh→dvhでモバイル対応） */
/*body::before {
    content: "";
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    background-image: url("img/background-washi.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}*/

@supports (height: 100svh) {
    body::before {
        height: 100svh;
    }
}

/* セーフエリア対応 */
@media screen and (max-width: 600px) {
    body {
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
}

footer {
    background-color: #e6cc84ba;
    color: #fff;
    padding: 0px;
    margin: 40px auto 0 auto;
    /* 上だけ40px */
    display: flex;
    justify-content: space-between;
    /* 左右に配置 */
    align-items: center;
    /* 縦中央揃え */
    max-width: 1200px;
    gap: 0px;
    height: auto;
}


footer .logo img {
    height: 50px;
    /* ロゴの大きさ調整（必要なら変更） */
    margin-left: 25px;
    width: auto;
}

.SNS {
    display: flex;
    margin-right: 20px;
    gap: 10px;
    /* アイコンの間隔 */
}

.SNS img {
    height: 60px;
    /* SNSアイコンのサイズ調整（必要なら変更） */
    width: auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* スマホ用（600px以下） */
@media screen and (max-width: 600px) {
    footer {
        flex-direction: column;
        /* 縦並び */
        align-items: center;
        /* 中央寄せ */
        text-align: center;
    }

    footer .logo img {
        height: 35px;
        /* ロゴを小さめに */
        margin: 10px 10px;
    }

    .SNS img {
        height: 50px;
        /* SNSアイコンも少し小さめ */
    }
}

/* ===================================================
   ヘッダー（TOP画像とロゴ重ねる）
=================================================== */
header {
    margin: 0;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.overlay-image {
    position: absolute;
    top: 0;
    right: 8%;
    height: 100%;
    width: auto;
    max-height: 100%;
    padding: 0.5em 20px;
    background-color: #e6cc84ba;
    z-index: 10;
    box-sizing: border-box;
}

@media screen and (max-width: 600px) {
    .image-wrapper {
        height: 200px;
    }

    .overlay-image {
        height: 100%;
        width: auto;
        max-height: 100%;
        padding: 0.5em 20px;
    }
}

/* ===================================================
   紹介文
=================================================== */
.introduce p {
    font-weight: bold;
    font-size: 1em;
    color: black;
    text-align: left;
    margin: 40px 0 30px 0px;
}

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

    .introduce p {
        margin: 40px 15px 10px 15px;
        font-size: 1em;
        text-align: left;
    }
}

/* ===================================================
   メニューセクション
=================================================== */
.menu-section {
    max-width: 1200px;
    margin: 60px auto;
}

.menu-container {
    display: flex;
    justify-content: center;
    /* 中央寄せ */
    align-items: flex-start;
}

.menu-title {
    color: black;
    font-size: 3em;
    writing-mode: vertical-rl;
    text-orientation: upright;
    text-align: center;
    order: 2;
    width: 6%;
}

.menu-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    order: 1;
}

.menu-item {
    position: relative;
}

.menu-item a {
    display: block;
    position: relative;
    width: 87%;
    /* 画像と同じ幅に */
    margin-left: auto;
    /* 右寄せ（左に余白を作らない） */
    text-decoration: none;
    color: inherit;
}

.menu-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@property --color1{
    syntax: "<color>";
    inherits: false;
    initial-value: #d8c4259f;
}
@property --color2{
    syntax: "<color>";
    inherits: false;
    initial-value: #b4a699;
}

.menu-label {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: linear-gradient(to left, var(--color1), var(--color2), transparent);
    opacity: 0.7;
    padding: 1px 20px 1px 150px;
    text-decoration: none;
    color: white;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease, --color1 0.5s, --color2 0.5s;
    font-size: 2em;
    font-weight: 700;
}

.menu-item a:hover .menu-label {
    transform: scale(1.1) translateX(5px);
    opacity: 1;
    --color1: #b4a699;
    --color2: #d8c4259f;
}

/* 中サイズ（PCだけど画面が小さいとき）も横書きにする */
@media screen and (max-width: 1000px) {
    .menu-container {
        flex-direction: column;
        align-items: center;
    }

    .menu-title {
        writing-mode: horizontal-tb;
        font-size: 1.8em;
        order: 1;
        margin-bottom: 15px;
        width: 100%;
        text-align: center;
    }


    /* スマホで画像を全幅にするなら、a も全幅に */
    .menu-item a {
        width: 100%;
        margin-left: 0;
    }


    .menu-images {
        width: 100%;
    }

    .menu-item img {
        width: 100%;
    }

    .menu-label {
        position: static;
        display: block;
        text-align: center;
        margin-top: 5px;
        font-size: 1.4em;
        padding: 5px 10px;
    }
}


/* ===================================================
   ここからはmenu.htmlの表示部分
=================================================== */

/* container は中央寄せ */
body.menu-page .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;

}

.container {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* スマホ用 */
@media screen and (max-width: 600px) {
    .container {
        margin: 0;
        padding: 10px;
        /* 必要ならパディングも調整 */
    }
}

.menu-name {
    margin-top: 30px;
    margin-bottom: 30px;
}

.menu-title-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-title-price h3 {
    margin: 0;
    font-size: 1.2em;
    position: relative;
}

.menu-title-price .line {
    flex-grow: 1;
    height: 1px;
    background-color: #060606;
}

.menu-title-price p.price {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
    color: #060606;
}

.menu-name p.description {
    margin-top: 5px;
    font-size: 1em;
    color: #333;
    font-weight: 600;
}

.menu-category h2 {
    font-size: 1.8em;
    color: white;
    padding: 2px 20px;
    background-color: rgba(62, 55, 55, 0.61);
    white-space: nowrap;
    width: auto;
    margin: 15px auto;
}

.menu-name img {
    margin-top: 15px;
}

.subtitle {
    font-size: 1.4em;
    color: #e76c07;
    font-weight: 1000;
}

@media screen and (max-width: 600px) {
    .menu-name img {
        display: block;
        margin: 0 auto;
        max-width: 90%;
        /* 横幅が広すぎないよう調整 */
        height: auto;
    }
}

/*-------------------目次ボタン-------------------*/

:root {
    --container-width: 1000px;
    --sidebar-width: 150px;
    --sidebar-gap: 50px;
}


.menu-sidebar {
    position: fixed;
    top: 118px;
    left: calc(50% - var(--container-width) / 2 - var(--sidebar-width) - var(--sidebar-gap));
    width: var(--sidebar-width);
    padding: 1.5em 1em;
    background: linear-gradient(to bottom, #f7f3e97c, #afa18c74);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.441);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    z-index: 9998;
}

.menu-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-sidebar li {
    margin-bottom: 1em;
}

.menu-sidebar a {
    display: block;
    color: #3c2f2f;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    letter-spacing: 1px;
    padding: 0.3em 0.5em;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.menu-sidebar a:hover {
    background-color: #f7f6f4c8;
    border-left: 4px solid #d0d0d0cc;
    color: #121111;
    transform: translateX(5px);
}

@media screen and (max-width: 1420px) {
    .menu-sidebar {
        display: none;
    }
}

/* PCでは横スクロールメニュー非表示 */
.menu-nav-scroll {
    display: none;
}

/* スマホ用：横スクロール固定トップメニュー */
@media screen and (max-width: 1420px) {

    /* サイドバー非表示 */
    .menu-sidebar {
        display: none;
    }

    .menu-nav-scroll {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: #fffaf58b;
        border-bottom: 1px solid #e0d5c0;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
        z-index: 9999;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .menu-nav-scroll ul {
        display: flex;
        padding: 0.5em 1.2em;
        margin: 0;
        list-style: none;
        white-space: nowrap;
    }

    .menu-nav-scroll li {
        margin-right: 0.5em;
        flex: 0 0 auto;
    }

    .menu-nav-scroll a {
        display: inline-block;
        text-decoration: none;
        color: #3c2f2f;
        font-weight: 600;
        padding: 0.5em 1.3em;
        border-radius: 10px;
        background: linear-gradient(to right, #fdfcfb, #ece9e6);
        transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
        white-space: nowrap;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    }

    /* ホバー時のアニメーション */
    .menu-nav-scroll a:hover {
        transform: scale(1.1);
        /* 少し拡大 */
        background: #c5b496;
        /* 背景色変化 */
        color: white;
        /* 文字色変化 */
    }


    header h1 {
        margin-top: 60px;
        /* 横スクロールメニューの高さ分余白 */
    }


    /* スマホ画面の固定メニューの高さ分だけスクロールマージンを確保 */
    /* scroll-margin-top でジャンプ位置調整 */
    .menu-category h2 {
        scroll-margin-top: 60px;
        /* 固定メニューの高さ */
        position: relative;
        /* ::beforeでずれ防止 */
    }

    /* scroll-margin-top非対応のためのフォールバック */
    .menu-category h2::before {
        content: "";
        display: block;
        height: 60px;
        /* 固定メニューの高さ */
        margin-top: -60px;
        /* 上に引き上げて背景が伸びるのを防ぐ */
        visibility: hidden;
    }
}



/* PCはbodyマージン戻す */
@media screen and (min-width: 769px) {
    body {
        margin-top: 0;
    }
}

/* ===================================================
   コンテンツラッパー（店舗情報・予約）
=================================================== */
.content-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 1200px;
    gap: 20px;
}

.information {
    border-radius: 20px;
    background-color: #fff;
    padding: 25px;
}

.map iframe {
    max-width: 100%;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-top: 40px;
}

.reserve {
    text-align: center;
    border-radius: 20px;
    background-color: #fff;
    padding: 20px;
    margin-top: 10px;
}


.information p,
.reserve p {
    font-size: 1em;
    margin: 2px 0 1px 0px;
}

.information h2,
.reserve h2 {
    font-size: 1.1em;
    text-align: center;
    background-color: #ae944b;
    color: white;
    padding: 5px 0;
    margin: 0 auto;
    margin-bottom: 20px;
    width: 40%;
    border-radius: 40px;
}

.information h3 {
    margin: 5px 0 1px 0px;
    color: #060606;
    font-size: 1em;
}

.information-img img {
    margin-bottom: 16px;
}

/* QRコード右寄せ */
.reserve .qrcode {
    display: flex;
    justify-content: flex-end;
    /* 右寄せ */
    gap: 15px;
    /* アイコンの間隔 */
    margin-top: 30px;
    width: 60%;
    /* PC用の幅 */
    margin-left: auto;

}

.reserve .qrcode img {
    width: 80px;
    /* PC用サイズ */
    height: 80px;
}

@media screen and (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .reserve .qrcode {
        width: 90%;
        /* 幅を広げてスマホ画面に対応 */
        justify-content: flex-end;
        /* 右寄せ */
        gap: 10px;
        /* 間隔を少し狭く */
    }

    .reserve .qrcode img {
        width: 60px;
        /* 小さめサイズに調整 */
        height: 60px;
    }
}

/* ===================================================
   ボタン（英語切替・TOP）
=================================================== */
.lang-button,
.lang-button-top,
.top-button {
    position: fixed;
    right: 20px;
    padding: 10px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: background-color 0.3s ease;
}

.lang-button {
    bottom: 70px;
    background-color: #333;
    color: #fff;
}

.lang-button-top {
    bottom: 10px;
    background-color: #333;
    color: #fff;
}

.lang-button-top:hover,
.lang-button:hover {
    background-color: #555;
}

.top-button {
    bottom: 20px;
    background-color: #b99532;
    color: #fff;
}

.top-button:hover {
    background-color: #b89b73;
}





/* ===================================================
   レスポンシブ：スマホ用メニュー
=================================================== */
@media screen and (max-width: 600px) {
    .menu-container {
        flex-direction: column;
        align-items: center;
    }

    .menu-title {
        writing-mode: horizontal-tb;
        font-size: 1.5em;
        order: 1;
        margin-bottom: 15px;
        width: 100%;
    }

    .menu-images {
        width: 100%;
    }

    .menu-item img {
        width: 100%;
    }

    .menu-label {
        position: static;
        display: block;
        text-align: center;
        margin-top: 5px;
        font-size: 1.2em;
        padding: 5px 10px;
    }

    .menu-title-price {
        flex-direction: column;
        align-items: flex-start;
    }


}


/* ===================================================
   ドリンクカテゴリの見た目
=================================================== */
.drink-section {
    padding: 15px;
}


details.drink-accordion>summary {
    cursor: pointer;
    background-color: rgba(166, 158, 158, 0.805);
    color: rgb(13, 13, 13);
    padding: 5px 15px;
    font-size: 1.1em;
    margin-top: 30px;
    margin-bottom: 5px;
    width: 240px;

    /* ▼マークを非表示にするための追加 */
    list-style: none;
    /* Firefox */
}

details.drink-accordion>summary::-webkit-details-marker {
    display: none;
    /* Chrome, Safari */
}

.drink-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2列固定 */
    gap: 0 20px;
    position: relative;
}

/* スマホ（600px以下）：1列表示 */
@media screen and (max-width: 600px) {
    .drink-grid {
        grid-template-columns: 1fr;
    }
}


.drink-item {
    display: flex;
    justify-content: space-between;
    font-size: 1.1em;
    padding: 8px 12px;
    border-bottom: 1px solid #000000;
    position: relative;
}

.drink-item .name {
    font-weight: 500;
}

.drink-item .price {
    font-weight: 500;
}


/* Shochu 内の小項目（Karariimo など）用の details */
.sub-drink-accordion {
    margin-left: 5px;
    margin-top: 3px;
    border-left: 3px solid #828282;
    padding-left: 10px;
}

.sub-drink-accordion summary {
    cursor: pointer;
    color: #222;
    padding: 5px 10px;
    font-size: 1em;
    margin-bottom: 5px;
    width: fit-content;
}

.sub-drink-accordion[open] summary {
    background-color: rgba(233, 229, 217, 0.8);
}

.sub-drink-accordion .drink-grid {
    margin-left: 10px;
}

/* animation css */
@keyframes fadeInFromLeft {
	0% {
		opacity: 0;
		transform: translateX(-20px);
	}
	100% {
		opacity: 1;
		transform: translateX(0);
	}
}
@keyframes fadeInFromBottom {
	0% {
		opacity: 0;
		transform: translateY(1em);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}
@keyframes fadein {
	0% {
		opacity: 0;
		transform: translateY(0);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

.menu-item.animation {
	animation-duration: .5s;
	animation-timing-function: ease;
	animation-fill-mode: forwards;
	opacity: 0;
	transform: translateX(-20px);
}
.menu-item.in {
	animation-name: fadeInFromLeft;
}

.information-img img.animation {
	animation-duration: .5s;
	animation-timing-function: ease-out;
	animation-fill-mode: forwards;
	opacity: 0;
}
.information-img img.in {
	animation-name: fadein;
}

.menu-category img.animation {
	animation-duration: .8s;
	animation-timing-function: ease;
	animation-fill-mode: forwards;
	opacity: 0;
}
.menu-category img.in {
	animation-name: fadeInFromBottom;
}
/* animation css */