:root{--ink:#30382e;--olive:#465b40;--red:#a33228;--paper:#faf7ef;--line:#d8d9cb}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);font-family:-apple-system,BlinkMacSystemFont,'Noto Sans CJK JP',sans-serif;line-height:1.55}body:before{content:'';position:fixed;inset:0;background:url(assets/paper.webp) center/cover;opacity:.12;pointer-events:none;z-index:-1}a{color:inherit}button,a{touch-action:manipulation}button{font:inherit;cursor:pointer}a:focus-visible,button:focus-visible{outline:3px solid #b77b29;outline-offset:3px}.wrap{max-width:1100px;margin:auto;padding:0 20px}.notice{text-align:center;background:var(--olive);color:white;font-size:12px;padding:5px}.head{display:flex;align-items:center;justify-content:space-between;padding-block:12px;gap:12px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none}.brand img{width:46px;height:54px;object-fit:contain}.brand strong{font-size:25px;letter-spacing:.08em;display:block;line-height:1.15}.brand small{font-size:12px;letter-spacing:.1em}.head .tag{font-size:11px;letter-spacing:.12em;color:var(--olive);text-align:right}.hero{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center;padding-block:18px 30px}.scene{position:relative;min-width:0}.scene .shop{width:100%;height:310px;object-fit:cover;border-radius:90px 90px 12px 12px;display:block}.scene .sheep{position:absolute;width:110px;right:-12px;bottom:-12px;filter:drop-shadow(0 5px 5px #30291b30)}.eyebrow{font-size:11px;letter-spacing:.22em;color:var(--olive);font-weight:700;margin:0}.intro h1{font-family:Georgia,'Noto Serif CJK JP',serif;font-size:30px;line-height:1.35;margin:4px 0 14px;letter-spacing:.04em}.choices{display:grid;gap:10px}.choice{display:grid;grid-template-columns:76px 1fr 24px;gap:12px;align-items:center;text-decoration:none;background:#fffdf8;border:1px solid var(--line);border-radius:12px;padding:10px;box-shadow:0 3px 0 #465b4010}.choice img{width:76px;height:76px;object-fit:cover;border-radius:8px}.choice strong{font-size:18px;display:block;line-height:1.35}.choice .action{font-size:15px;color:var(--red);font-weight:700;display:block;margin-top:4px}.choice.frozen .action{color:var(--olive)}.arrow{background:var(--red);color:white;border-radius:50%;width:24px;height:24px;text-align:center;line-height:23px}.frozen .arrow{background:var(--olive)}.status{display:flex;align-items:center;justify-content:space-between;min-height:46px;padding:8px 12px;border:1px solid var(--olive);border-radius:8px;text-decoration:none;font-weight:700;font-size:15px}.section{border-top:1px solid var(--line);padding:22px 0}.section h2{font-family:Georgia,'Noto Serif CJK JP',serif;font-size:22px;margin:0 0 12px}.section p{margin:8px 0;font-size:15px}.info{display:grid;grid-template-columns:1fr 1fr;gap:28px}.guide details{border-bottom:1px solid var(--line);background:#fffdf8}.guide summary{cursor:pointer;min-height:48px;padding:12px;font-weight:700}.guide details p{padding:0 12px 12px}.foot{position:relative;margin-top:20px;overflow:hidden;background:#f5e8cc}.foot img{display:block;width:100%;max-height:260px;object-fit:cover}.foot .sign{position:absolute;left:7%;top:28%;font-family:Georgia,serif;font-size:clamp(17px,3vw,34px);color:#465b40}.foot small{display:block;text-align:center;padding:10px;background:var(--paper)}.menu{max-width:760px}.pickup{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fffdf8;border:1px solid var(--line);padding:12px;border-radius:10px}.pickup button,.back{border:1px solid var(--olive);background:white;color:var(--olive);border-radius:7px;min-height:44px;padding:8px 14px;text-decoration:none}.categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.categories button{min-height:48px;border:1px solid var(--line);border-radius:8px;background:#fffdf8;color:var(--ink);font-weight:700;font-size:16px;padding:6px}.categories button.active{background:var(--olive);color:white;border-color:var(--olive)}.categories button:first-child:not(.active){color:var(--red);border-color:var(--red)}.cart{position:sticky;bottom:0;background:#fffdf8;border-top:1px solid var(--line);padding:10px 16px;display:flex;justify-content:space-between;align-items:center;gap:12px}.cart button{background:var(--red);color:white;border:0;border-radius:8px;min-height:48px;padding:8px 20px;font-weight:700}.sample{padding:20px 0;min-height:120px}.sample img{width:100px;border-radius:8px}.sample article{display:flex;gap:15px;align-items:center}.sample button{min-height:44px}.menu h1{font-size:22px;margin:12px 0}.menu h2{font-size:17px;margin:14px 0 8px}.menu .desc{font-size:14px;margin:0 0 12px}dialog{max-width:90%;border:1px solid var(--line);border-radius:12px;padding:24px;color:var(--ink)}dialog button{min-height:44px} @media(max-width:700px){.wrap{padding-inline:16px}.hero{display:flex;flex-direction:column;gap:10px;padding-block:0 18px;align-items:stretch}.scene .shop{height:112px;border-radius:45px 45px 8px 8px}.scene .sheep{width:70px;right:4px;bottom:-6px}.intro h1{font-size:22px;margin:2px 0 8px}.choice{grid-template-columns:60px 1fr 24px;padding:8px;gap:10px}.choice img{width:60px;height:60px}.choice strong{font-size:17px}.choices{gap:8px}.info{grid-template-columns:1fr;gap:0}.head{padding-block:8px}.head .tag{font-size:10px}.brand strong{font-size:23px}.brand img{height:46px;width:40px}.foot img{height:auto}.foot .sign{font-size:17px}.section{padding:16px 0}}@media(max-width:350px){.wrap{padding-inline:12px}.scene .shop{height:94px}.choice strong{font-size:16px}.choice img{width:54px;height:54px}.choice{grid-template-columns:54px 1fr 24px}.intro h1{font-size:20px}.head .tag{display:none}.categories button{font-size:14px}}
.phrase{display:inline-block;max-width:100%;overflow-wrap:anywhere;vertical-align:baseline}.section p{line-height:1.7}.menu h2{line-height:1.5}.cart{position:fixed;bottom:0;left:0;right:0;max-width:760px;margin:auto;padding-bottom:calc(10px + env(safe-area-inset-bottom))}body:has(.menu){padding-bottom:90px}

/* ===== 機能接続レイヤー（デザイン値はVer.2のまま、既存システムとの接続専用） ===== */
.guide{background:transparent;border:0;border-radius:0;overflow:visible}
.sub{font-size:13.5px;color:#465b40;padding-bottom:10px;line-height:1.6}
main.wrap{max-width:1100px}
#scr-order .tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 6px}
#scr-order .tabs button{min-height:50px;border:1px solid var(--line);border-radius:8px;background:#fffdf8;color:var(--ink);font-weight:700;font-size:16px;padding:6px;cursor:pointer}
#scr-order .tabs button.active{background:var(--olive);color:#fff;border-color:var(--olive)}
#scr-order .tabs button.early:not(.active){color:var(--red);border-color:var(--red);background:#fffdf8}
#scr-order .grid{display:flex;flex-direction:column;gap:10px}
#scr-order .grid>.item{display:flex;gap:15px;align-items:center;width:100%;text-align:left;background:#fffdf8;border:1px solid var(--line);border-radius:12px;padding:10px;cursor:pointer;min-width:0}
#scr-order .grid>.item img{width:100px;height:100px;object-fit:cover;border-radius:8px;flex:none}
#scr-order .item .body{display:flex;flex-direction:column;gap:2px;min-width:0}
#scr-order .item .name{font-size:16.5px;font-weight:700;line-height:1.4}
#scr-order .item .price{font-size:18px;font-weight:700;color:var(--ink)}
#scr-order .item .desc{font-size:13px;color:#5f5748}
#pickup-bar.pickup-bar{background:#fffdf8;border:1px solid var(--line);border-radius:10px;color:var(--ink)}
#cartbar.cartbar{background:#fffdf8;border-top:1px solid var(--line);color:var(--ink)}
#cartbar .btn{background:var(--red);border-radius:8px}
#scr-home .foot{margin-inline:-20px}
@media(max-width:700px){#scr-home .foot{margin-inline:-16px}}
@media(max-width:350px){#scr-home .foot{margin-inline:-12px}}
button.choice{font:inherit;text-align:left;width:100%}
.section h2{background:none;display:block}
#scr-home .section h2{background:none;display:block;padding:0}
#scr-order .tabs button:first-child:not(.active){color:var(--red);border-color:var(--red)}

/* ===== 文字組み調整レイヤー（改行位置のみ・文言とデザインは不変） ===== */
body{line-break:strict}
h1,h2,h3,.guide summary{text-wrap:balance}
p,.note,.sub,.section p,.scroll-hint,.item .desc,.guide-body{text-wrap:pretty}
@supports (word-break:auto-phrase){ body{word-break:auto-phrase} }

/* ===== 固定カートバー対策：注文画面の下部余白（バー実測76px + 16px + セーフエリア） ===== */
#scr-order{padding-bottom:calc(92px + env(safe-area-inset-bottom))}
/* ===== 固定詳細バー対策：詳細画面の下部余白（バー実測83px + 16px + セーフエリア） ===== */
#scr-detail{padding-bottom:calc(99px + env(safe-area-inset-bottom))}

/* ===== ヘッダー補足文を1文1行に（改行位置の指定のみ） ===== */
#page-sub{white-space:pre-line}

/* ===== フッター画像入れ替え対応（文字は画像に重ねず下に配置／画像は切り取らない） ===== */
#scr-home .foot img{max-height:none;object-fit:contain}
#scr-home .foot .sign{position:static;display:block;text-align:center;padding:12px 10px 0}
/* ===== ご案内 見出し共通化（2026-12-02 本人仕様） ===== */
.guide-card{background:#fffdf8;border:1px solid #d8d8cb;border-radius:12px;overflow:hidden}
.guide-card>a.grow{display:flex;align-items:center;gap:12px;min-height:60px;padding:6px 12px;font-size:16px;font-weight:600;color:#30382d;text-decoration:none;border:0;border-radius:0;background:transparent}
.guide-card>details{border:0;border-top:1px solid #d8d8cb;border-radius:0;background:transparent;margin:0}
.guide-card>details>summary{display:flex;align-items:center;gap:12px;min-height:60px;padding:6px 12px;font-size:16px;font-weight:600;color:#30382d;cursor:pointer;list-style:none}
.guide-card summary::-webkit-details-marker{display:none}
.guide-card .g-ic{display:flex;flex:none}
.guide-card .g-ic svg{display:block}
.guide-card .g-tx{flex:1;min-width:0}
.guide-card .g-ar{display:flex;flex:none;margin-left:auto}
.guide-card .g-ar svg{transition:transform .2s}
.guide-card>details[open ] .g-ar svg{transform:rotate(180deg)}
/* コンポーネント固有の見出しCSS解除 */
.guide-card .lb-frozen-guide{border-top:1px solid #d8d8cb}
.guide-card .lb-lunch{border:0;border-radius:0;background:transparent}
.guide-card .lb-lunch>summary::after{content:none}
.guide-card .lb-frozen-guide>summary{background:transparent;border:0;border-radius:0;box-shadow:none}
.guide-card>details>summary .g-ic svg{width:22px;height:22px}
.guide-card>details>summary .g-ar svg{width:22px;height:22px}
.guide-card>a.grow .g-ic svg{width:22px;height:22px}

/* 予約日時コンポーネント接続：旧チップUI（JS互換のためDOMは残す）は表示しない */
.legacy-pickup{display:none!important}

/* 商品画面微調整パーツ接続：対象要素だけにオリーブ #45583c を適用（状態スタイルは既存優先） */
#item-grid .item .name{color:#45583c}
#scr-detail .stepper button{color:#45583c}
.mini-stepper button[data-inc],.mini-stepper button[data-dec]{color:#45583c}
#change-pickup{color:#45583c}

/* 店員呼び出し接続：小さい画面ではモーダル内部をスクロールしてキャンセルまで届くようにする */
.modal-card.lb-call{max-height:calc(100dvh - 36px);overflow-y:auto}

/* 注文結果接続：確定アニメーションは遷移時だけ再生し、自動更新では静止画にする */
.done-check.dc-played .dc-circle,.done-check.dc-played .dc-mark{animation:none;stroke-dashoffset:0}

/* ランチ案内接続：対象キャプションは中央寄せ（改行時も各行中央） */
.lb-lunch-small{display:block;width:max-content;max-width:none;text-align:center}
.lb-lunch-small .phrase{white-space:nowrap}
.choice-note{margin:-4px 0 0 4px;font-size:13px;color:var(--olive)}
