/* PCサイズ (通常 992px, 1130px, または 1200px 以上) で適用 */
/* 注(2026-06-22): EC-CUBE default テーマに .container は存在せず、本ルールは無効（デッドコード）。
   実際のコンテンツ幅は .ec-layoutRole__contents の max-width:1150px が制御している。
   幅を変えたい場合は下記 .ec-layoutRole__contents をコメント解除して調整すること。 */
@media (min-width: 992px) {
    .container {
        max-width: 950px;
    }
    /* 例: 全幅を広げたい場合
    .ec-layoutRole__contents { max-width: 1280px; }
    */
}

/* 左側のサイドバーコンテナが Flexアイテムの場合 */
.ec-layoutRole__column {
    /* 幅の伸縮を禁止し、元の幅を維持 */
    flex-grow: 0; 
    flex-shrink: 0;
    
    /* 特定の幅に固定したい場合は以下を追加 */
    /* width: 240px; */ 
}


/* メールアドレス入力欄*/ 
.login_mail { 
    width: 180px; 
} 
 
/* パスワード入力欄 */ 
.login_pass { 
    width: 180px; 
}

/* --- 追加: 個々のブロックの外枠に罫線を引く --- */ 
.ec-block { 
    border: 3px solid #BFBFBF; 
} 

/* --- 追加: ブロックの中身 (内側) に背景と余白を指定する --- */
.ec-blockContents {
    background-color: #FFF2F2; /* 背景色 */
    padding: 10px; /* 内側の余白 */
    /* 背景画像を追加する場合は以下の行を有効にしてください */
    /* background-image: url('/html/user_data/assets/img/background.gif'); */
}

/* --- 追加(2026-06-22): 大型ビルボード(牡蠣ヒーロー画像/冬限定)はトップページのみ表示 ---
   下層ページ用レイアウト(2)にも同ブロックが配置されているため、
   ログイン/カート/お問い合わせ等の作業ページで本文が大きく下に押し下げられていた。
   homepage の <body> は id="page_homepage" class="front_page" で一意なので、
   それ以外のページではビルボードを非表示にする（DB/テンプレート無改変・完全可逆）。 */
body:not(#page_homepage) .ec-billboard {
    display: none;
}

/* --- 追加(2026-06-22 / 2026-06-23 改修): タップ発信できる電話CTAバー ---
   タブレット・スマホ(≤991.98px)では画面下部に固定(追尾バー)で常時表示し、
   タップで発信できるようにする。PC(≥992px)では非表示。
   本文が固定バーに隠れないよう body に下余白を確保。 */
.nm-mobile-header { display: none; }
@media (max-width: 991.98px) {
    /* 画面最下部に固定する電話バー */
    .nm-mobile-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px 14px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        width: 100%;
        margin: 0;
        padding: 7px 12px;
        background: #0a3d72;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, .25);
        text-align: center;
    }
    /* 電話番号（タップ発信） */
    .nm-mobile-header .nm-tel {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: transparent;
        color: #fff;
        font-size: 19px;
        font-weight: bold;
        line-height: 1.2;
        padding: 0;
        text-decoration: none;
        letter-spacing: 1px;
    }
    .nm-mobile-header .nm-tel small {
        display: block;
        font-size: 10px;
        font-weight: normal;
        letter-spacing: 0;
        opacity: .9;
    }
    .nm-mobile-header .nm-tagline {
        font-size: 11px;
        color: #ffd24a;        /* 青背景で見える色 */
        font-weight: bold;
        white-space: nowrap;
    }
    /* 固定バー分の余白（本文の最後が隠れないように） */
    body {
        padding-bottom: 62px;
    }
}

/* =================================================================
   グローバルナビ: 画像ボタン → テキストボタン化  2026-06-22
   -----------------------------------------------------------------
   対象: <nav class="custom_nav"> 内の .custom_nav_list（<a> に日本語テキスト）
   方針: 赤背景(#a80000)・白文字のボタンを再現。<img>(m-*.png)依存を廃止。
         PC=横一列 / タブレット=折り返し中央寄せ / スマホ=縦1列。
         高さは min-height + flex 中央寄せで全ボタン統一（横幅は内容で可変）。
         タップ領域はタブレット/スマホで 44px 以上を確保。
   注: mymenu ブロックの <style> は撤去済み。ただしキャッシュ未削除の移行期間は
       旧・画像メニュー(<img>)が表示されうるため、その間も崩れないよう
       img 用フォールバック(引き伸ばし防止・高さ統一)も併記している
       （キャッシュ削除後は <img> が無くなり当該ルールは自然に無効化）。
       既存 !important を確実に打ち消すため詳細度を上げた
       「.custom_nav .custom_nav_list …」セレクタを使用。
   ================================================================= */

/* ---- 共通ベース（PC=横一列・連結した赤バー） ---- */
.custom_nav .custom_nav_list {
    display: flex;
    flex-wrap: nowrap;            /* PC: 横一列 */
    align-items: stretch;         /* 高さ揃え */
    justify-content: flex-start;  /* 左寄せ */
    list-style: none;
    margin: 0 0 0 20px;
    padding: 0;
    gap: 0;                       /* 隙間なしで連結 */
}
.custom_nav .custom_nav_list li {
    /* 旧 li{ flex-basis:33.333% !important; margin:5px 10px !important } を打ち消す */
    flex: 0 0 auto !important;
    flex-basis: auto !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    display: flex;
}
.custom_nav .custom_nav_list li a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 31px;             /* PCボタン高さ ≈31px */
    padding: 4px 18px;
    background-color: #a80000;    /* 赤・不透明 */
    color: #ffffff !important;    /* 白文字 */
    font-family: 游ゴシック, YuGothic, "Yu Gothic", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", メイリオ, Meiryo, sans-serif;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;          /* 文字は折り返さない */
    border-radius: 0;             /* 角丸なし＝長方形 */
}
/* ボタン間の仕切り線は「2番目以降の左側」にだけ引く
   ＝先頭の左端・末尾(カートの確認)の右端には白い縦棒が出ない。
   画像メニュー(末尾に非表示のstretch-imgがある構造)でも確実に末尾の棒が消える。 */
.custom_nav .custom_nav_list li + li a {
    border-left: 1px solid rgba(255, 255, 255, .35);
}
.custom_nav .custom_nav_list li a:hover,
.custom_nav .custom_nav_list li a:focus {
    background-color: #8e0000;    /* ホバーでやや濃く（#a80000 より暗め） */
    color: #ffffff !important;
    opacity: 1;
    text-decoration: none;
}
/* 移行期間(旧・画像メニュー)フォールバック: 画像を引き伸ばさず／ダミーは非表示 */
.custom_nav .custom_nav_list li a img {
    width: auto !important;
    max-width: none !important;
    height: 23px !important;
    display: block !important;
}
.custom_nav .custom_nav_list li.stretch-img { display: none !important; }

/* ===== タブレット (768〜991px): PC同様の連結赤バーに統一  2026-06-23 =====
   旧: 中央寄せ＋隙間ありで、バー背景が無く白地にボタンが浮いて見栄えが悪かった。
   PCと同じく「背景#a80000・隙間なし・左寄せ」の連結赤バーに揃える。 */
@media (min-width: 768px) and (max-width: 991px) {
    .custom_nav .custom_nav_list {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;   /* PC同様に左寄せ・連結 */
        align-items: stretch !important;
        gap: 0 !important;                         /* 隙間なしで連結 */
        background-color: #a80000;                 /* バー背景を赤に統一 */
        margin: 0 !important;
        padding: 0;
        width: 100%;
    }
    .custom_nav .custom_nav_list li a {
        min-height: 44px;                      /* タップ領域 44px */
        padding: 8px 18px;
        font-size: 14px;
    }
    .custom_nav .custom_nav_list li a img { height: 24px !important; }  /* 移行期間用 */
}

/* ===== スマホ (〜767px): 縦1列・押しやすく・文字が見切れない ===== */
@media (max-width: 767px) {
    .custom_nav .custom_nav_list {
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: stretch !important;
        gap: 8px;
        margin: 0 !important;
        padding: 0 12px;
        width: 100%;
    }
    .custom_nav .custom_nav_list li {
        flex: 0 0 100% !important;             /* 1列（全幅） */
        width: 100% !important;
    }
    .custom_nav .custom_nav_list li a {
        width: 100%;
        min-height: 48px;                      /* 大きめタップ領域で押しやすく */
        padding: 12px 12px;
        font-size: 15px;
    }
    .custom_nav .custom_nav_list li a img { height: 24px !important; }  /* 移行期間用 */
}

/* ===== 任意: スマホを「2列」にしたい場合は、上の (max-width:767px) 内の
   li 指定を下記に置き換えてください =====
   .custom_nav .custom_nav_list li { flex: 1 1 calc(50% - 8px) !important; width: auto !important; }
*/

/* ===== PC: メニューバーの赤背景をヘッダー幅(1150px)いっぱいに表示  2026-06-23 =====
   (1) ボタンより右の余白部分もメニューと同じ赤背景にして、ヘッダー幅まで赤帯にする。
   (2) 末尾の白縦棒は上の「li + li a」方式で出ないため、ここでは追加不要。 */
@media (min-width: 992px) {
    .custom_nav .custom_nav_list {
        background-color: #a80000;
    }
}

/* =================================================================
   スマホ: グローバルナビをハンバーガーメニューに  2026-06-23
   PC/タブレットは通常の赤バー、スマホ(≤767px)のみハンバーガー化。
   トグルは customize.js が .custom_nav に .nm-open を付け外しする。
   （画像メニュー／テキストメニューどちらの構造でも動作）
   ================================================================= */
/* ハンバーガーボタンは既定で非表示（PC/タブレット） */
.nm-hamburger { display: none; }

@media (max-width: 767px) {
    /* ボタンを赤バーとして表示（☰ + メニュー） */
    .custom_nav .nm-hamburger {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        min-height: 48px;
        margin: 0;
        padding: 10px 16px;
        background-color: #a80000;
        color: #fff;
        border: none;
        cursor: pointer;
        font-size: 15px;
        font-weight: bold;
        font-family: 游ゴシック, YuGothic, "Yu Gothic", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", メイリオ, Meiryo, sans-serif;
    }
    .nm-hamburger .nm-bars {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 26px;
    }
    .nm-hamburger .nm-bars span {
        display: block;
        width: 26px;
        height: 3px;
        background: #fff;
        border-radius: 2px;
        transition: transform .2s ease, opacity .2s ease;
    }
    /* 開いている時はバーを×印に */
    .custom_nav.nm-open .nm-hamburger .nm-bars span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .custom_nav.nm-open .nm-hamburger .nm-bars span:nth-child(2) { opacity: 0; }
    .custom_nav.nm-open .nm-hamburger .nm-bars span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* メニュー本体は既定で隠し、開いた時だけ縦1列のドロップダウンで表示 */
    .custom_nav .custom_nav_list {
        display: none !important;
        background-color: #a80000;   /* 開いた時の背景も赤で統一 */
    }
    .custom_nav.nm-open .custom_nav_list {
        display: flex !important;
    }
    /* ドロップダウンの仕切りは横線（上罫線）にして縦積みでも見やすく */
    .custom_nav .custom_nav_list li + li a {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, .35);
    }
}

/* =================================================================
   PC: ヘッダー画像／メニューバー／ビルボードを本文幅の100%(=1150px)で固定  2026-06-23
   -----------------------------------------------------------------
   ヘッダー領域(.ec-layoutRole__header)やコンテンツトップは画面全幅まで伸びるため、
   広い画面でヘッダー画像(953px原寸)やビルボードが過剰拡大し、下の本文列より広く
   表示されて段差になっていた。本文幅(.ec-layoutRole__contents=1150px)の100%=1150px を
   上限に中央寄せで固定し、ヘッダー画像・メニュー・ビルボードを本文列と同じ幅に揃える。
   ※ PC(992px以上)のみ。タブレット/スマホ(≤991px)は現状維持で対象外。
     1150px 未満の画面では従来どおり全幅（はみ出し・横スクロールは発生しない）。
   ================================================================= */
@media (min-width: 992px) {
    .ec-header,
    .custom_nav,
    .ec-billboard {                   /* ビルボード(牡蠣ヒーロー)もヘッダーと同じ幅に揃える */
        max-width: 1150px;            /* 本文幅 = 100% */
        margin-left: auto !important; /* インライン margin:0 20px を打ち消し中央寄せ */
        margin-right: auto !important;
        box-sizing: border-box;
    }
    /* ヘッダー画像・ビルボード画像は枠(1380px)内に収める＝幅を超えて拡大させない */
    .ec-header img,
    .ec-billboard img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        display: block;
    }
    /* メニューバーは120%枠内で左寄せ維持（左端をヘッダー画像と揃える） */
    .custom_nav .custom_nav_list {
        margin-left: 0;
    }
}
/* =================================================================
   #4 コントラスト改善: カートに入れるボタン  2026-06-23
   style.css の .ec-blockBtn--action 既定色 #DE5D50(白文字 3.63:1=AA未達)を
   #c0392b(白文字 約4.5:1 以上)に上書き。赤系の印象は維持。
   ※ style.css は直接編集せず customize.css で上書き（後勝ち＋同等以上の指定）。
   ================================================================= */
.ec-blockBtn--action {
    background-color: #c0392b !important;
    border-color: #c0392b !important;
    color: #ffffff !important;
}
.ec-blockBtn--action:hover,
.ec-blockBtn--action:focus,
.ec-blockBtn--action:active,
.ec-blockBtn--action.active {
    background-color: #a93224 !important;   /* ホバー/押下はやや暗め */
    border-color: #a93224 !important;
    color: #ffffff !important;
}

/* =================================================================
   #6 見出し構造の改善用: 視覚非表示クラス（スクリーンリーダーには読まれる）
   トップの唯一のh1「相生牡蠣専門 野村水産」を見た目を変えずに出力するために使用。
   ================================================================= */
.nm-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

/* =================================================================
   フェーズ3 a11y: キーボードフォーカスの可視化  2026-06-23
   テーマで全 <a> 等に outline:none が当たりフォーカスが見えないため、
   :focus-visible（キーボード操作時のみ）に明瞭なアウトラインを復活させる。
   マウスクリック時は出ないので見た目への影響は最小。
   ================================================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.ec-blockBtn--action:focus-visible {
    outline: 3px solid #1a73e8 !important;
    outline-offset: 2px !important;
    border-radius: 2px;
}

/* =================================================================
   #7 サイドバー会員ログインのコンパクト化  2026-06-23
   入力欄を枠幅にフィットさせ、余白を詰めて省スペースに。ボタンはサイト赤に統一。
   ================================================================= */
.nm-login__label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    margin: 8px 0 2px;
    line-height: 1.2;
}
.nm-login .nm-login__input {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    margin: 0;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
}
.nm-login__btn {
    width: 100%;
    margin-top: 10px;
    padding: 8px 10px;
    background-color: #a80000;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}
.nm-login__btn:hover,
.nm-login__btn:focus {
    background-color: #8e0000;
}
.nm-login__links {
    margin-top: 10px;
    font-size: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}
.nm-login__links a { white-space: nowrap; }

/* =================================================================
   メニューバー全体の幅をビルボード/ヘッダーに合わせる  2026-06-23
   ビルボード(.ec-billboard)とヘッダー画像(.ec-header)は左右20pxのinsetがあるが、
   992px未満ではメニュー(.custom_nav)が全幅で40px広く、端がはみ出して見えていた。
   992px未満でメニュー全体に左右20pxを付け、ビルボード画像と同じ幅・左右位置に揃える。
   （PC≥992pxは三者とも1150px中央寄せで既に一致のため対象外）
   ================================================================= */
@media (max-width: 991px) {
    .custom_nav {
        margin-left: 20px !important;
        margin-right: 20px !important;
    }
}

/* =================================================================
   サイドバー「カテゴリ一覧」(category_nav_pc) を縦1列の整ったリストに  2026-06-23
   -----------------------------------------------------------------
   問題: PC/タブレットのサイドバー(.ec-categoryNaviRole)で style.css の
         li{float:left} により項目が横並びになり、文字数差で階段状に崩れていた。
   方針: .ec-categoryNaviRole にスコープして float を解除し縦1列に。
         区切り線・ブロッククリック・ホバー・見出しを付与（スマホのSP版と同じ見た目）。
   ※ SP版(.ec-headerCategoryArea)や他サイドバーブロックには影響しないようスコープ限定。
   ================================================================= */
/* 見出し「カテゴリ一覧」 */
.ec-categoryNaviRole .nm-catnav-heading {
    background-color: #eeeeee;
    color: #333;
    font-weight: bold;
    padding: 10px 12px;
    text-align: left;
    font-size: 1em;
}
/* リスト全体: 縦並び・全幅 */
.ec-categoryNaviRole .ec-itemNav__nav {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.ec-categoryNaviRole .ec-itemNav__nav li {
    float: none !important;       /* 横並びfloatを解除 */
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
}
.ec-categoryNaviRole .ec-itemNav__nav ul {  /* 子カテゴリも縦 */
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
/* リンク: ブロック全体クリック可・区切り線 */
.ec-categoryNaviRole .ec-itemNav__nav li a {
    display: block !important;
    width: auto !important;
    padding: 10px 12px !important;
    border-bottom: 1px solid #e0e0e0 !important;
    color: #333 !important;
    text-decoration: none !important;
    text-align: left !important;
    background-color: transparent;
    font-weight: normal;
}
/* 先頭項目の上にも線を引いて見出しと区切る */
.ec-categoryNaviRole .ec-itemNav__nav > li:first-child > a {
    border-top: 1px solid #e0e0e0 !important;
}
/* ホバーで背景フィードバック */
.ec-categoryNaviRole .ec-itemNav__nav li a:hover,
.ec-categoryNaviRole .ec-itemNav__nav li a:focus {
    background-color: #f5f5f5 !important;
}

/* 重複解消(改修 2026-06-24): カテゴリ一覧は ≤991px では .ec-headerCategoryArea を単一表示にする。
   ・.ec-headerCategoryArea は d-lg-none によりPC(≥992px)で非表示／モバイル・タブレット(≤991px)で表示。
   ・タブレット幅(768〜991px)はサイドバーの .ec-categoryNaviRole を隠し二重表示を防ぐ
     （PC≥992px はサイドバー表示のまま＝現状維持）。
   旧・スマホ用グレーリストCSSは末尾のカード型デザイン(.ec-headerCategoryArea)へ統合したため削除。 */
@media (min-width: 768px) and (max-width: 991px) {
    .ec-categoryNaviRole {
        display: none !important;
    }
}

/* =================================================================
   トップのバナーの横幅を全て揃える（karatuki.gif と同幅）  2026-06-23
   原因: banner_03〜10 が入れ子(nested)になり、各 .ec-headerRole の左右padding20px
         が累積して階段状に幅が縮んでいた（テンプレートの不正divが根本原因＝別途修正済、
         反映には要キャッシュ削除）。入れ子の .ec-headerRole の左右paddingを0にして、
         全バナーを最上位バナー(karatuki)と同じ幅に揃える。
         ・「.ec-headerRole 内の .ec-headerRole」= バナーの入れ子のみが対象（サイドバー等は非ネストなので無影響）。
         ・PC/タブレット/スマホ いずれも各ブレークポイントのコンテナ幅で均一になる。
         ・キャッシュ削除後（入れ子解消）は本ルールは一致対象が無くなり自然に無効化。 */
.ec-headerRole .ec-headerRole {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* =================================================================
   トップのバナーを<a>で囲んだ際、幅・整列を従来どおり維持  2026-06-23
   <a>(インライン)のままだと幅が崩れるため block 化し、画像を100%幅にする。
   ＝前回の「全8枚同一幅・左揃え」を保持。 */
.nm-banner-link {
    display: block;
    width: 100%;
    line-height: 0;          /* 画像下の余白を消す */
}
.nm-banner-link img {
    display: block;
    width: 100%;
    height: auto;
}

/* =================================================================
   すまし汁バナー（専用デザイン画像が無いため HTML+CSS で合成）  2026-06-23
   suimono.jpg を背景に、左側へ赤の半透明パネル＋タイトル、右上に
   「レシピありクリック」バッジを重ね、他のレシピバナーと同比率(704:158)で表示。
   .nm-banner-link（display:block）と .ec-headerRole の幅統一CSSの中で使う想定。 */
.nm-rcp-banner {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 704 / 158;
    /* 背景画像は各バナーで style="background-image:url(...)" を指定（すまし汁/牡蠣ご飯 共用） */
    background-color: #7b1010;
    background-size: cover;
    background-position: center right;
    text-decoration: none;
    overflow: hidden;
}
.nm-rcp-banner::before {   /* 左側を濃い赤グラデで覆い、白文字を読みやすく */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(123,16,16,.95) 0%, rgba(123,16,16,.88) 40%, rgba(123,16,16,0) 72%);
}
.nm-rcp-banner__text {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-weight: bold;
    font-size: clamp(18px, 4.4vw, 34px);
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.nm-rcp-banner__text small {
    display: block;
    font-size: clamp(11px, 2vw, 15px);
    font-weight: normal;
    margin-top: 6px;
    opacity: .95;
}
.nm-rcp-banner__badge {
    position: absolute;
    top: 6%;
    right: 2%;
    background: #e8540a;
    color: #fff;
    font-weight: bold;
    font-size: clamp(9px, 1.6vw, 13px);
    line-height: 1.15;
    text-align: center;
    padding: 6px 8px;
    border-radius: 6px;
    transform: rotate(-4deg);
}

/* =================================================================
   レシピバナー（写真背景＋テキスト＋バッジをHTML/CSSで合成）  2026-06-24
   1枚絵JPGを廃止し、文字をテキスト化（SEO/アクセシビリティ/可読性向上）。
   背景は「写真のみ」画像（guratan-1.jpg 等）を使用。
   既存バナー幅(823px)・比率を維持し、左右の縮み・整列崩れを起こさない。
   ================================================================= */
.nm-recipeBanner {
    position: relative;
    display: block;
    width: 100%;
    max-width: 823px;          /* 既存バナー幅に合わせる */
    aspect-ratio: 823 / 185;   /* 既存比率を維持 */
    margin: 0 auto 12px;
    background-color: #8b1a1a;          /* 画像読込前/余白の保険 */
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow .3s ease, transform .3s ease;
}
/* 料理写真は ::before に分離（インライン --nm-bg を使用）。ホバーでゆっくりズーム
   ＝「できたて・シズル感」を演出。テキスト/バッジは拡大しない（写真だけ動く）。 */
.nm-recipeBanner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--nm-bg);
    background-size: cover;
    background-position: center right;  /* 料理写真を右側に見せる */
    background-repeat: no-repeat;
    transition: transform .7s ease;
    will-change: transform;
}
.nm-recipeBanner__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;     /* 左寄せ（見本どおり） */
    text-align: left;            /* 流用ヘッダークラスの中央寄せ継承を打ち消す */
    padding: 0 26px;
    background: linear-gradient(90deg,
                rgba(120,16,16,0.94) 0%,
                rgba(135,22,22,0.88) 38%,
                rgba(140,26,26,0.40) 62%,
                rgba(140,26,26,0) 82%);
    color: #ffffff;
}
.nm-recipeBanner__lead {
    margin: 0 0 3px;
    font-size: 20px;
    font-weight: 700;
    color: #ffd98a;              /* 暖色ゴールド＝食欲を刺激し、フック(キラーコピー)を際立たせる */
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
    letter-spacing: .02em;
}
.nm-recipeBanner__title {
    margin: 0 0 5px;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,.5);
    letter-spacing: .02em;
}
.nm-recipeBanner__sub {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #fff4e6;              /* ほんのり暖色寄りの白で温かみを演出 */
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.nm-recipeBanner__badge {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 8px;
    background: #e8780f;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
@media (max-width: 767px) {
    .nm-recipeBanner__overlay { padding: 0 18px; }
    .nm-recipeBanner__lead  { font-size: 14px; }
    .nm-recipeBanner__title { font-size: 25px; }
    .nm-recipeBanner__sub   { font-size: 11.5px; }
    .nm-recipeBanner__badge { font-size: 11px; padding: 4px 8px; }
}
/* ホバー: 浮き上がり＋影＋写真ズームで「美味しそう・もっと見たい」を喚起 */
.nm-recipeBanner:hover {
    box-shadow: 0 8px 22px rgba(0,0,0,.30);
    transform: translateY(-2px);
}
.nm-recipeBanner:hover::before { transform: scale(1.07); }
@media (prefers-reduced-motion: reduce) {
    .nm-recipeBanner, .nm-recipeBanner::before { transition: none; }
    .nm-recipeBanner:hover { transform: none; }
    .nm-recipeBanner:hover::before { transform: none; }
}

/* =================================================================
   スマホ(<768)対策: レシピバナー(.nm-recipeBanner)の幅0潰れを防止  2026-06-24
   バナーは流用している .ec-headerRole 系クラスが style.css のモバイル指定で
   inline-block 化し縮む。.nm-recipeBanner は中身が絶対配置で在来コンテンツが
   無いため幅0になる。バナーを内包する .ec-headerRole 配下を全幅ブロックに矯正。
   （:has で「.nm-recipeBanner を含む .ec-headerRole」のみを対象＝サイドバー等に無影響） */
@media (max-width: 767.98px) {
    .ec-headerRole:has(.nm-recipeBanner),
    .ec-headerRole:has(.nm-recipeBanner) .ec-headerRole__title,
    .ec-headerRole:has(.nm-recipeBanner) .ec-headerTitle,
    .ec-headerRole:has(.nm-recipeBanner) .ec-headerTitle__title,
    .ec-headerRole:has(.nm-recipeBanner) .ec-headerTitle__title > div {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
    }
    .nm-recipeBanner {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* =================================================================
   販売期間 告知バー（トップページ最上部・全幅）  2026-06-24
   牡蠣は季節商品（毎年10月〜翌3月末・完売次第終了）。販売期間を常時固定表示。
   「数量限定・完売次第終了」のスカーシティ表現で購買動機を後押し。
   表示はトップのみ（JSで body#page_homepage を判定して挿入）。
   ================================================================= */
.nm-saleBar {
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(90deg, #8e0000 0%, #c0392b 100%);
    color: #ffffff;
    text-align: center;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: .02em;
    line-height: 1.5;
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.nm-saleBar__label { margin-right: 4px; }
.nm-saleBar__period { color: #ffd98a; }          /* 販売期間を暖色ゴールドで強調 */
.nm-saleBar__note {
    display: inline-block;
    margin-left: 10px;
    padding: 1px 9px;
    border-radius: 4px;
    background: rgba(255,255,255,.18);
    font-size: 12px;
    font-weight: bold;
}
@media (max-width: 767px) {
    .nm-saleBar { font-size: 13px; padding: 8px 12px; }
    .nm-saleBar__note { display: block; margin: 4px auto 0; width: fit-content; }
}

/* =================================================================
   画像バナーもホバーで軽くズーム（レシピバナーと統一）  2026-06-24
   対象: トップ mainTop 内の画像バナー（殻つき karatuki / select / main-kaki01-04）。
   ・ズームのはみ出しは枠(div)の overflow:hidden でクリップ。
   ・:has(> img) で「直下が img の枠」だけを対象＝レシピバナー(.nm-recipeBanner)の
     枠には付けない（付けるとレシピバナーのホバー影がクリップされてしまうため）。
   ================================================================= */
/* 枠の深さがバナーで異なる（karatuki=1重 / main-kaki=2重）ため子孫結合子で両対応。
   overflow:hidden は「img を直下に持つ div」＝imgの直接の枠のみ（レシピバナー枠は除外）。 */
.ec-layoutRole__mainTop .ec-headerTitle__title div:has(> img) {
    overflow: hidden;
}
/* 追記(2026-06-26): select バナーを <a href="/oyster-guide.html"> で囲んだため
   直下が img でなく a になり上の :has(> img) に一致しなくなる。包んだ場合も
   ホバーズームのはみ出しをクリップできるよう a 経由(> a > img)も対象にする。 */
.ec-layoutRole__mainTop .ec-headerTitle__title div:has(> a > img) {
    overflow: hidden;
}
.ec-layoutRole__mainTop .ec-headerTitle__title img {
    display: block;
    transition: transform .7s ease;
    will-change: transform;
}
.ec-layoutRole__mainTop .ec-headerTitle__title img:hover {
    transform: scale(1.07);
}
@media (prefers-reduced-motion: reduce) {
    .ec-layoutRole__mainTop .ec-headerTitle__title img,
    .ec-layoutRole__mainTop .ec-headerTitle__title img:hover {
        transition: none;
        transform: none;
    }
}

/* =================================================================
   修正1: ヘッダーメニューの固定（スクロール追従）  2026-06-24
   下スクロールでもメニューバー(背景#a80000/白文字)が上部に残るよう sticky 化。
   ・背景#fff を明示し、追従中に本文が透けないようにする（メニューは内側で#a80000維持）。
   ・z-index は商品画像・バナーより上(1000)。スマホのハンバーガー開閉は不変（DOM/JS非改変）。
   ・sticky は領域を確保するため本文先頭は隠れない（padding-top 不要）。
   ================================================================= */
.ec-layoutRole__header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
}

/* =================================================================
   アクセシビリティ用: 視覚的に隠すがスクリーンリーダーには読まれるラベル  2026-06-24
   （修正3: お問い合わせフォームの sr-only ラベルで使用）
   ================================================================= */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* =================================================================
   修正2: フォーカス枠(outline)の可視化  2026-06-24
   既存テーマ/プラグインの outline:none（.slick-prev/next, .slick-list:focus,
   .ec-headerSearch, .slideThumb 等）に勝つよう、読み込み順で最後に !important で上書き。
   ・マウスクリック時の不要枠を避けるため :focus-visible を使用。
   ・赤(#a80000)・白どちらの背景上でも視認できる琥珀色(#ffbf47)＋offsetで明瞭化。
   ================================================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #ffbf47 !important;
    outline-offset: 2px !important;
}

/* 商品一覧の価格を ブランド赤・太字・中央寄せ にする  2026-06-24
   対象を .ec-shelfGrid 配下に限定（商品詳細の価格には影響しない）。
   既存ルールを確実に上書きするため !important を付与。 */
.ec-shelfGrid .price02-default {
    color: #a80000 !important;       /* サイトのブランド赤 */
    text-align: center !important;   /* 中央寄せ（商品名と揃える） */
    font-weight: bold !important;    /* 太字で視認性を上げる */
    display: block !important;       /* 中央寄せを確実に効かせる */
}

/* 商品一覧: 商品名エリアの高さを2行ぶんに固定し、価格・数量の縦位置を全カードで揃える  2026-06-24
   商品名(aの2番目のp・クラスなし)の行数差(1行/2行)で価格・数量がずれる問題の解消。 */
.ec-shelfGrid__item > a > p:nth-of-type(2) {
    height: 3em !important;          /* 2行ぶんで固定（1行でも2行でも同一高さ） */
    min-height: 3em !important;
    display: -webkit-box !important; /* 行数クランプ用 */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;           /* 3行以上は2行にクランプ（はみ出しは…で省略） */
    line-clamp: 2;
    overflow: hidden !important;     /* 余剰行を隠して全カードの高さを揃える */
    margin-bottom: 0 !important;
}

/* =================================================================
   モバイル/タブレット(≤991px): カテゴリ一覧を「赤見出しバー＋赤丸＋右矢印」カードに  2026-06-24改
   ・対象は .ec-headerCategoryArea 配下のみ（≤991px の単一カテゴリナビ）。PC(≥992px)は @media 外＝現状維持。
   ・既存スタイル(ブロック内<style>等)に勝つよう !important。
   ・先頭赤丸(::before)・末尾右矢印(::after)・min-height48pxのタップ領域・2行でも縦中央(align-items:center)。
   ================================================================= */
@media (max-width: 991px) {
    /* 見出し：ブランド赤バー（メニュー/バナーと統一） */
    .ec-headerCategoryArea__heading {
        background: #a80000 !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 8px 8px 0 0 !important;
        overflow: hidden !important;
    }
    .ec-headerCategoryArea__heading > p {
        background: #a80000 !important;
        color: #fff !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        padding: 12px 16px !important;
        margin: 0 !important;
    }
    /* リスト本体：角丸カード化 */
    .ec-headerCategoryArea .ec-itemNav__nav {
        width: 100% !important;
        margin: 0 0 20px !important;
        padding: 0 !important;
        list-style: none !important;
        background: #fff !important;
        border: 1px solid #e2d2d2 !important;
        border-top: none !important;
        border-radius: 0 0 8px 8px !important;
        overflow: hidden !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, .08) !important;
    }
    .ec-headerCategoryArea .ec-itemNav__nav > li {
        display: block !important;
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        border-bottom: 1px solid #f1e7e7 !important;
    }
    .ec-headerCategoryArea .ec-itemNav__nav > li:last-child {
        border-bottom: none !important;
    }
    /* 各項目：先頭に赤丸ポイント・末尾に右矢印・十分なタップ領域 */
    .ec-headerCategoryArea .ec-itemNav__nav > li > a {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 14px 16px !important;
        min-height: 48px !important;
        box-sizing: border-box !important;
        color: #5a1414 !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        text-align: left !important;
        text-decoration: none !important;
        background: #fff !important;
        border: none !important;                 /* 旧グレーリストのborderを無効化 */
        transition: background .15s ease, color .15s ease;
    }
    .ec-headerCategoryArea .ec-itemNav__nav > li > a::before {
        content: "" !important;
        flex: 0 0 auto !important;
        width: 6px !important;
        height: 6px !important;
        border-radius: 50% !important;
        background: #a80000 !important;
    }
    .ec-headerCategoryArea .ec-itemNav__nav > li > a::after {
        content: "\203A" !important;             /* › */
        margin-left: auto !important;
        color: #a80000 !important;
        font-size: 22px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
    }
    .ec-headerCategoryArea .ec-itemNav__nav > li > a:hover,
    .ec-headerCategoryArea .ec-itemNav__nav > li > a:active {
        background: #fbeeee !important;
        color: #a80000 !important;
    }
}

/* =================================================================
   モバイル/タブレット(≤991px): カテゴリ一覧を「メニューバーと同じ幅」に  2026-06-24改
   ・メニューバー(赤バー)は左右20pxインセット(例SP:20→355)。カテゴリの親 .ec-headerRole も
     padding:15px 20px 0（左右20px）で同じインセットなので、親paddingは残したまま
     カテゴリを flex:0 0 100%・width:100% で親のコンテンツ幅いっぱい(=メニューバー幅)に広げる。
   ・原因: 旧来は flex のデフォルトでカテゴリが親コンテンツ幅まで伸びず狭まっていた。
   ・前回の「親padding除去(全幅0→端)」は撤去（メニューより広くなりすぎるため）。
   ・PC(≥992px)は @media 外＝現状維持。他の .ec-headerRole/バナーには無影響。 */
@media (max-width: 991px) {
    .ec-headerCategoryArea.d-lg-none {
        width: 100% !important;
        flex: 0 0 100% !important;
        margin: 0 !important;
    }
    .ec-headerCategoryArea.d-lg-none .ec-itemNav,
    .ec-headerCategoryArea.d-lg-none .ec-itemNav__nav {
        width: 100% !important;
    }
}

/* =================================================================
   モバイル/タブレット(≤991px): ヘッダーを「余白を活かした上質な印象」に  2026-06-24
   ・UX: 要素を絞る/高さ過大にしない/追従(stickyは既設)/馴染みあるアイコン。
   ・注意: メニューバー(.nm-hamburger は .custom_nav 幅100%=20→端-20)は
     前回カテゴリ一覧と幅を揃えたため、バー幅を動かさない（.custom_nav への
     左右paddingは入れず、字間・高さの調整のみ .nm-hamburger に適用）。
   ・PC(≥992px)は @media 外＝現状維持。
   ================================================================= */
@media (max-width: 991px) {
    /* 1. ヘッダー全体: 白背景＋上質な影（追従中も浮きを保つ） */
    .ec-layoutRole__header {
        background: #ffffff !important;
        box-shadow: 0 1px 6px rgba(0, 0, 0, .06) !important;
        z-index: 1000 !important;
    }
    /* 2. ロゴ帯: 上下左右に余白を確保し、ロゴを中央＋高さ抑制で“呼吸”させる */
    .ec-header {
        padding: 10px 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .ec-header img {
        height: auto !important;
        max-height: 56px !important;     /* 高さを抑え冗長さを軽減（横長画像のため実効は幅で決まる） */
        width: auto !important;
        max-width: 88% !important;       /* 左右に余白を残して上質に */
        object-fit: contain !important;
    }
    /* 3. 赤メニューバー: 字間と高さを整える（バー幅=カテゴリ一致は維持） */
    .custom_nav {
        letter-spacing: .04em !important;
    }
    .custom_nav .nm-hamburger {
        min-height: 50px !important;     /* タップ48px以上を確保 */
    }
    /* 4. 販促バナー(billboard): 余白をリセットしロゴ帯との階層を明確に */
    .ec-billboard {
        margin: 0 !important;
    }
}

/* スマホ：レシピバナーの固定比率(823/185)を解除し、文字が収まる高さに調整  2026-06-25
   狭い幅で高さ約45pxまで潰れてタイトル/説明文が見切れる問題の解消。768px以上は変更なし。 */
@media (max-width: 767px) {
    .nm-recipeBanner {
        aspect-ratio: auto !important;
        min-height: 108px !important;
    }
    .nm-recipeBanner__overlay {
        padding: 10px 14px !important;
    }
    .nm-recipeBanner__lead {
        font-size: 13px !important;
        margin-bottom: 2px !important;
        padding-right: 64px !important; /* バッジと重ならないように */
    }
    .nm-recipeBanner__title {
        font-size: 23px !important;
        line-height: 1.12 !important;
        margin-bottom: 3px !important;
    }
    .nm-recipeBanner__sub {
        font-size: 11px !important;
    }
    .nm-recipeBanner__badge {
        font-size: 10px !important;
        padding: 3px 7px !important;
    }
}

/* スマホ(≤767px): ヘッダー画像とメニューバーを画面横幅いっぱいに広げる  2026-06-25
   ・.ec-header はインライン margin:0 20px ＋ padding16px、.custom_nav は margin20px で
     左右がインセットしていた。これらを打ち消し 0→端 まで全幅に。
   ・ヘッダー画像は width:100% で全幅表示（横長画像のため高さは比率なりに約48px）。
   ・タブレット(768〜991px)・PCは対象外＝現状維持。 */
@media (max-width: 767px) {
    .ec-header {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .ec-header img {
        max-width: 100% !important;
        width: 100% !important;
    }
    .custom_nav {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* レシピバナー間の余白を「王道の焼き牡蠣！」等のキャンペーンバナー(5px)に統一  2026-06-25
   従来 margin-bottom により各レシピバナー間が約35pxと広すぎたのを5pxに詰める。
   PC・タブレット・スマホ共通。 */
.nm-recipeBanner {
    margin-bottom: -5px !important;
}

/* スマホ(≤767px): カテゴリ一覧も画面いっぱい(全幅)に  2026-06-25
   ・ヘッダー画像/メニューを全幅化したのに合わせ、カテゴリも左右端まで広げる。
   ・カテゴリの親 .ec-headerRole の左右paddingのみ除去（:has で限定＝他バナーに無影響）。
     カテゴリ側は既存の width:100%・flex:0 0 100% で全幅に追従。
   ・タブレット(768〜991px)・PCは対象外＝現状維持（メニューが20pxインセットのため揃う）。 */
@media (max-width: 767px) {
    .ec-headerRole:has(> .ec-headerCategoryArea) {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* PC(≥992px): ヘッダー画像とメニューバーをビルボード(.ec-billboard)と同幅・中央寄せに揃える  2026-06-25改
   ・一旦全幅(1854px)化したが、ビルボード(max-width:1150px中央)と不揃いのため 1150px・中央寄せに戻す。
   ・これでヘッダー画像/メニュー/ビルボードの左右端が一致。
   ・タブレット/スマホ(≤991px)は個別最適化済みのため対象外（このブロックはPC限定）。 */
@media (min-width: 992px) {
    .ec-header {
        max-width: 1150px !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .ec-header a {
        display: block !important;
        width: 100% !important;
    }
    .ec-header img[src*="header.png"] {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .custom_nav {
        max-width: 1150px !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* タブレット幅(768〜991px): 商品一覧を2カラムにし、商品名を全文表示  2026-06-25
   ・既定 width:25%(4カラム)で1枚約182pxと窮屈・商品名が途中で切れていたのを2カラムに。
   ・商品名は別途の「2行クランプ(価格/数量の縦位置揃え用・全幅共通)」が効いているため、
     タブレットでは height/display/line-clamp も含めて解除し全文表示にする
     （ご提示の overflow:visible だけでは既存クランプに詳細度で負けるため補強）。
   ・PC(≥992px)・スマホ(≤767px)は対象外＝現状維持（2行クランプ・整列はそのまま）。 */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .ec-shelfGrid .ec-shelfGrid__item {
        width: 50% !important;
        padding: 0 12px !important;
        box-sizing: border-box !important;
    }
    .ec-shelfGrid .ec-shelfGrid__item > a > p:not([class]) {
        display: block !important;
        height: auto !important;
        min-height: 2.6em !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
}

/* タブレット(768〜991px): ヘッダー画像をビルボードと同じ全幅・比率維持に  2026-06-25
   ・現状この幅だけ header が中央382px（max-height:56・max-width:88%・object-fit:contain）で、
     全幅(0→端)のビルボードと不一致だった。PC(1150中央)・SP(全幅)は既に一致のため対象外。
   ・56px高さ制限/中央寄せ/左右paddingを解除し、width:100%・height:auto で比率(7.75:1)を保ち全幅に。
   ・<a>(インライン)をブロック化して画像を全幅に広げる。 */
@media (min-width: 768px) and (max-width: 991px) {
    .ec-header {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .ec-header > a {
        display: block !important;
        width: 100% !important;
    }
    .ec-header img,
    .ec-header img[src*="header.png"] {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;     /* 既存の56px制限を解除 */
        object-fit: contain !important;
        margin: 0 auto !important;
    }
}

/* スマホ(≤767px): ビルボード直下へ移動したプロモ帯(.nm-saleBar--moved)を全幅(メニューバー幅)に  2026-06-25
   ・移動はJS(customize.js)。ここは移動後の幅をメニューバー＝全幅に揃える指定。PC/タブレットは対象外。 */
@media (max-width: 767px) {
    .nm-saleBar.nm-saleBar--moved {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
}

/* スマホ(≤767px): 商品一覧を1列表示に  2026-06-25
   （タブレットは2カラム、PCは4カラムのまま。スマホのみ1カラム＝1枚全幅） */
@media (max-width: 767px) {
    .ec-shelfGrid .ec-shelfGrid__item {
        width: 100% !important;
    }
}

/* ヘッダー画像: スマホ・タブレット(≤991px)のみ 高さ90px固定・全幅・object-fit:fill（左右を切らず縦伸縮）  2026-06-25改
   ・cover(中央トリミング)では狭い画面でロゴ・電話が切れたため、両端を残す fill に変更。
   ・比率は崩れる（狭い画面=縦に伸び）が、ロゴ・電話を含む全内容が表示される。
   ・PC(≥992px)は対象外＝元のサイズ（全幅1150px・height:auto・比率7.75:1維持・歪みなし）に戻す。
   ・高さは調整可（下記 90px）。 */
@media (max-width: 991px) {
    .ec-header img,
    .ec-header img[src*="header.png"] {
        height: 90px !important;
        max-height: 90px !important;
        width: 100% !important;
        max-width: 100% !important;
        object-fit: fill !important;   /* 左右を切らず高さに合わせて縦伸縮（比率は崩れる） */
        display: block !important;
    }
}

/* =================================================================
   タブレット/スマホ(≤991px): フッターのブログ／インスタ リンク行  2026-06-25
   ・PC(≥992px)はサイドバー表示があるため非表示。≤991pxのみ表示。
   ・タブレットはサイドバーの重複ブロックを隠す（:has。スマホはサイドバー自体が非表示）。 */
.nm-snsFooter { display: none; }
@media (max-width: 991px) {
    .nm-snsFooter {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        align-items: center;
        padding: 16px 12px 20px;
        background: #ffffff;
    }
    .nm-snsFooter__link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        box-sizing: border-box;
        padding: 11px 18px;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 700;
        text-decoration: none;
        letter-spacing: .02em;
    }
    .nm-snsFooter__link--blog {
        background: #ffffff;
        color: #7a1717;
        border: 1px solid #d8b8b8;
    }
    .nm-snsFooter__link--blog:hover,
    .nm-snsFooter__link--blog:active { background: #fbeeee; }
    .nm-snsFooter__link--insta {
        background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
        color: #ffffff;
        border: none;
    }
    .nm-snsFooter__link--insta:hover,
    .nm-snsFooter__link--insta:active { opacity: .92; }
    .nm-snsFooter__ic { font-size: 18px; line-height: 1; }

    /* タブレットでサイドバーの重複（ブログ/インスタ）を隠す（スマホはサイドバー自体が非表示）
       ※これらのブロックは .ec-block ではなく .ec-headerRole で包まれている */
    .ec-layoutRole__left .ec-headerRole:has(a[href*="ameblo.jp/kakikaki11"]),
    .ec-layoutRole__left .ec-headerRole:has(a[href*="instagram.com/aioioyster"]) {
        display: none !important;
    }
}

/* =================================================================
   販売停止モード（フロント抑止・閲覧は可）  2026-06-25
   customize.js の FLAG=true、または URL に ?nm_stop=1 で有効化。
   購入ボタンを無効化し、上部に通知を表示。閲覧は通常どおり。 */
.nm-salesStop {
    width: 100%;
    box-sizing: border-box;
    flex: 0 0 100%;          /* flex親に入っても潰れず全幅 */
    background: #a80000;
    color: #ffffff;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    letter-spacing: .02em;
    padding: 12px 14px;
    line-height: 1.5;
}
.nm-buyOff {
    opacity: .55 !important;
    cursor: not-allowed !important;
    filter: grayscale(35%);
}

/* =================================================================
   PCサイドバー: 「お店の紹介」の上に紹介動画（ミュート自動再生・ループ・幅100%）  2026-06-25
   ・JS(customize.js)が .ec-layoutRole__left の shop-info ブロック直前に <video> を挿入。
   ・PC(≥992px)のみ表示。サイドバー幅(約288px)に合わせ width:100%。
   ・動画ファイル未アップ時はJSのonerrorで自動的に非表示（崩れない）。 */
.nm-shopVideo { display: none; }
@media (min-width: 992px) {
    .nm-shopVideo {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 0 20px;        /* 「お店の紹介」画像と同じ左右20pxインセット＝幅248pxに揃える */
        margin: 0 0 12px;
        line-height: 0;
    }
    .nm-shopVideo__v {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 4px;
        pointer-events: none;     /* 装飾動画：クリック/カーソル対象にしない */
        user-select: none;        /* テキスト選択させない */
        caret-color: transparent; /* テキストカーソル（点滅キャレット）を出さない */
        outline: none;
    }
}

/* =================================================================
   スマホ: ヘッダー内カテゴリ一覧を全幅化（実機検証済み）  2026-06-26
   -----------------------------------------------------------------
   不具合: スマホ幅で .ec-headerRole .ec-headerCategoryArea.d-md-none が
           約228pxまでしか広がらず右に余白ができていた。
   競合メモ: 上部 @media(max-width:991px) に同種の全幅化ルールがあるが対象が
           「.ec-headerCategoryArea.d-lg-none」で、実DOMのクラスは「d-md-none」のため
           マッチせず不発だった（＝今回の d-md-none 向け指定が実効ルール）。
           同一セレクタの重複は無く、衝突しない。
   PC(md以上=768px〜)は d-md-none が display:none のため、本ルール(≤767.98px限定)で
   PC表示への影響はなし。!important は既存スタイル上書きのため意図的に保持。
   ================================================================= */
@media (max-width: 767.98px){
  .ec-headerRole .ec-headerCategoryArea.d-md-none{
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .ec-headerRole .ec-headerCategoryArea.d-md-none > .ec-headerCategoryArea__heading,
  .ec-headerRole .ec-headerCategoryArea.d-md-none > .ec-itemNav{
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* =================================================================
   定休日カレンダー（当月＋次月）  2026-06-27
   ・customize.js が closures.json から生成し、PC=左メニュー下／≤991px=フッター上に挿入。
   ・定休日/休日/祝日/本日を色分け。.nm-cl-* は td と凡例 span 双方に適用。
   ================================================================= */
.nm-calendar{
  box-sizing:border-box;
  display:flex; flex-direction:column; gap:14px;
  margin:16px 0; padding:14px 12px 18px;
  background:#fff;
}
@media (min-width:992px){
  .nm-calendar{ padding:8px 0 14px; margin:14px 0 0; }   /* 左カラム内 */
}
@media (max-width:991px){
  .nm-calendar{ align-items:center; border-top:1px solid #e6e6e6; } /* フッター上・縦並び中央 */
}
.nm-calendar__month{
  width:100%; max-width:340px;
  border-collapse:collapse; table-layout:fixed;
  font-size:13px; color:#333;
}
.nm-calendar__cap{
  caption-side:top; text-align:center; font-weight:bold;
  font-size:15px; padding:6px 0; color:#0b4f6c; letter-spacing:.04em;
}
.nm-calendar__month th,
.nm-calendar__month td{
  text-align:center; padding:5px 0; height:30px; border:1px solid #ececec;
}
.nm-calendar__month th{ background:#f6f6f6; font-weight:bold; }
.nm-calendar__month th.nm-sun{ color:#d9534f; }
.nm-calendar__month th.nm-sat{ color:#2f6fb0; }
/* 区分の色分け（優先表示は JS 側で 祝日>休日>定休日） */
.nm-calendar .nm-cl-teikyu{ background:#f1f1f1; color:#999; }                       /* 定休日 */
.nm-calendar .nm-cl-kyu{ background:#fff1e0; color:#c8771a; }                       /* 休日   */
.nm-calendar .nm-cl-shuku{ background:#fdecec; color:#d9534f; font-weight:bold; }   /* 祝日   */
.nm-calendar td.nm-cl-today{ outline:2px solid #f0a500; outline-offset:-2px; font-weight:bold; }
/* 凡例 */
.nm-calendar__legend{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; font-size:11px; }
.nm-calendar__legend span{ padding:2px 8px; border-radius:3px; }
