/* ==========================================
   ごきらく亭 おしながき デザイン (完成版)
   ========================================== */
body { 
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif; 
    margin: 0; 
    padding: 0; 
    background-color: #f9f6f0; 
    color: #333; 
    line-height: 1.6; 
}

/* ヘッダー */
header { 
    background: #fff; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
    padding: 15px 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
}

/* ロゴとメニューナビ */
.logo { font-size: 1.5rem; font-weight: bold; color: #ff8c00; text-decoration: none; }
nav a { text-decoration: none; color: #555; margin-left: 20px; font-weight: bold; }
nav a:hover { color: #ff8c00; }

/* レイアウトコンテナ（PCで1行4列が綺麗に収まる1200px幅） */
.container { 
    max-width: 1200px; 
    margin: 40px auto; 
    padding: 0 20px; 
}

h2 { 
    text-align: center; 
    color: #ff8c00; 
    border-bottom: 2px solid #ff8c00; 
    padding-bottom: 10px; 
    margin-bottom: 30px; 
}

/* ==========================================
   アコーディオン（カテゴリー見出し）
   ========================================== */
.category-header {
    width: 100%;
    background-color: #ff8c00; /* メインカラー：オレンジ */
    color: #ffffff !important;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 15px 20px;
    margin-top: 15px;
    border: none !important;
    border-radius: 8px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* 開いている時のボタン色 */
.category-header.active {
    background-color: #e07b00;
    border-radius: 8px 8px 0 0 !important;
}

/* 右側の「＋」「ー」アイコン */
.accordion-icon {
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: bold;
}

/* 開閉ラップ枠 */
.menu-list-wrap {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    margin: 0 0 15px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

/* 開いたときのスタイル */
.menu-list-wrap.open {
    max-height: none; /* ★高制限を解除してすべてのメニューを表示させる */
    opacity: 1;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-top: none;
}

/* ==========================================
   1行4列 カード型グリッドレイアウト
   ========================================== */

/* メニューリスト（PCでは基本4列並び） */
.menu-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 1行に4列配置 */
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* 各メニューカード */
.menu-item {
    background: #ffffff;
    border: 1px solid #eef0f2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* 📸 料理画像エリア（正方形 1:1） */
.item-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* 正方形(1:1)を維持 */
    flex-shrink: 0;
    overflow: hidden;
    background-color: #f5f5f5;
    border-bottom: 1px solid #f0f0f0;
}

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

/* 📸 未撮影（Coming Soon...）のおしゃれなストライプデザイン */
.item-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    background: repeating-linear-gradient(
        45deg,
        #fbfbfb,
        #fbfbfb 10px,
        #f2f2f2 10px,
        #f2f2f2 20px
    );
}

/* テキスト・価格エリア */
.item-info {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

/* メニュー名 */
.item-name { 
    font-weight: bold; 
    color: #333; 
    font-size: 0.95rem; 
    line-height: 1.35;
    margin-bottom: 2px;
}

/* 補足説明（切イカ・紅しょうが等） */
.note-text { 
    font-size: 0.78rem; 
    color: #666; 
    font-weight: normal; 
    margin-top: 2px;
    margin-bottom: 6px;
}

/* 価格表示エリア */
.item-price-box {
    margin-top: auto;
    text-align: right;
    padding-top: 4px;
}

.item-price { 
    font-weight: bold; 
    color: #ff8c00; 
    font-size: 1rem; 
}

.tax-included { 
    color: #777; 
    font-size: 0.75rem; 
    font-weight: normal; 
    margin-left: 2px; 
}

/* ごきらくオリジナル！の吹き出しバッジ */
.original-badge {
    background-color: #ff4757;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 5px;
    display: inline-block;
    vertical-align: middle;
}

/* 🍹 飲み物・トッピングなど「画像が無いカード」の見た目調整 */
.menu-item:not(:has(.item-image)) {
    min-height: auto;
}

.menu-item:not(:has(.item-image)) .item-info {
    padding: 12px 14px; /* 画像がないカードは余白を少し広げてスッキリ整える */
}

/* フッター */
footer { 
    background: #333; 
    color: #fff; 
    text-align: center; 
    padding: 20px; 
    margin-top: 60px; 
    font-size: 0.9rem; 
}

/* ------------------------------------------
   レスポンシブ対応（画面サイズに応じて自動変更）
   ------------------------------------------ */
@media (max-width: 992px) {
    /* 中型画面（タブレット等）は2列 */
    .menu-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    /* 小型画面（スマホ等）も2列にする */
    .menu-list {
        grid-template-columns: repeat(2, 1fr); /* 2列並び */
        gap: 8px; /* カード同士の間隔を少し詰めて画面を有効活用 */
    }

    /* スマホで2列にした時、カード内の余白や文字をスッキリ調整 */
    .menu-list-wrap.open {
        padding: 10px 8px; /* 開いた枠の左右余白を少し狭く */
    }

    .item-info {
        padding: 8px 6px; /* カード内の余白を少し小さく */
    }

    .item-name {
        font-size: 0.82rem; /* 文字サイズをスマホ2列用に最適化 */
    }

    .item-price {
        font-size: 0.88rem;
    }

    .tax-included {
        font-size: 0.68rem;
        display: block; /* 税込価格を改行して溢れ防止 */
        margin-left: 0;
    }
}