/* ============================================================
   Edel Menu Manager – Front Styles
   ============================================================ */

/* ----------------------------------------------------------
   上段：メニュー一覧
   ---------------------------------------------------------- */
.menu-list-section {
    margin-bottom: 60px;
}

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

.menu-table li + li {
    border-top: 1px solid #e8e0d8;
}

.menu-row {
    display: flex;
    align-items: center;
    padding: 14px 4px;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.menu-row:hover {
    opacity: 0.7;
}

.menu-row--no-anchor {
    cursor: default;
}

.menu-row--no-anchor:hover {
    opacity: 1;
}

.menu-name {
    white-space: nowrap;
    font-size: 15px;
}

.menu-line {
    flex: 1;
    border-bottom: 1px dotted #c5b9ac;
}

.menu-price {
    white-space: nowrap;
    font-size: 15px;
    font-weight: 600;
}

/* ----------------------------------------------------------
   下段：各メニュー詳細
   ---------------------------------------------------------- */
.menu-details-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.menu-detail-block {
    scroll-margin-top: 100px;
}

.detail-title {
    font-size: 22px;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4bfb0;
}

.detail-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* ----------------------------------------------------------
   ギャラリー
   ---------------------------------------------------------- */
.detail-gallery {
    flex-shrink: 0;
    width: 320px;
}

/* メイン画像ラッパー（ラベルオーバーレイ用） */
.main-image-wrap {
    position: relative;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    background: #f0ebe5;
}

.main-image-img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.2s ease;
    object-fit: cover;
}

/* 透過ラベルオーバーレイ */
.main-image-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.48);
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

/* サムネイルリスト */
.thumb-list {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.thumb-item {
    width: 72px;
    height: 72px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition:
        border-color 0.2s,
        opacity 0.2s;
    flex-shrink: 0;
    background: #f0ebe5;
}

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

.thumb-item:hover {
    opacity: 0.8;
}

.thumb-item.active {
    border-color: #c5a791;
}

/* ----------------------------------------------------------
   説明エリア
   ---------------------------------------------------------- */
.detail-desc {
    flex: 1;
    min-width: 0;
}

.detail-price {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #3a2e28;
}

.tax-note {
    font-size: 14px;
    font-weight: 400;
    color: #888;
}

.detail-description {
    font-size: 15px;
    line-height: 1.8;
    color: #4a3f38;
}

.detail-description p {
    margin-bottom: 12px;
}

.detail-note {
    margin-top: 12px;
    font-size: 13px;
    color: #888;
}

/* ----------------------------------------------------------
   レスポンシブ
   ---------------------------------------------------------- */
@media (max-width: 640px) {
    .detail-flex {
        flex-direction: column;
        gap: 20px;
    }

    .detail-gallery {
        width: 100%;
    }
}

/* ----------------------------------------------------------
   画像名タグ
   ---------------------------------------------------------- */
.detail-image-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.image-tag-btn {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid #c5a791;
    border-radius: 20px;
    background: #fff;
    color: #5a3e30;
    font-size: 13px;
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s;
    line-height: 1.6;
}

.image-tag-btn:hover {
    background: #c5a791;
    color: #fff;
}

/* ----------------------------------------------------------
   モーダル
   ---------------------------------------------------------- */
#edel-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
}

#edel-modal.is-open {
    display: block;
}

.edel-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
}

.edel-modal-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    pointer-events: none;
}

.edel-modal-inner > * {
    pointer-events: auto;
}

/* 閉じるボタン */
.edel-modal-close {
    position: fixed;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1;
}

.edel-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 画像エリア */
.edel-modal-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 80vh;
}

.edel-modal-img-box {
    position: relative;
    line-height: 0;
}

/* 前へ / 次へ ボタン（画像の上にオーバーレイ） */
.edel-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}

.edel-modal-prev {
    left: 10px;
}

.edel-modal-next {
    right: 10px;
}

.edel-modal-nav:hover {
    background: rgba(0, 0, 0, 0.65);
}
