/* 商品情報 タブUI */
.bousai-product-tabs { width: 100%; margin: 40px 0; color: #333; font-family: inherit; }
.bousai-product-tabs__nav { display: flex !important; width: 100%; border-bottom: 1px solid #d8d8d8; }
.bousai-product-tabs__button { position: relative; flex: 1; appearance: none; -webkit-appearance: none; margin: 0; padding: 18px 10px; border: 0; background: transparent; color: #666; font-family: inherit; font-size: 15px; font-weight: 400; line-height: 1.5; text-align: center; cursor: pointer; transition: color .2s ease, background-color .2s ease; }
.bousai-product-tabs__button:not(:last-child)::after { content: ''; position: absolute; top: 25%; right: 0; width: 1px; height: 50%; background: #ddd; }
.bousai-product-tabs__button:hover { color: #111; background: #f7f7f7; }
.bousai-product-tabs__button.is-active { color: #111; font-weight: 600; }
.bousai-product-tabs__button.is-active::before { content: ''; position: absolute; left: 12%; right: 12%; bottom: -1px; height: 2px; background: #333; }
.bousai-product-tabs__button:focus-visible { outline: 2px solid #555; outline-offset: -2px; }
.bousai-product-tabs__tab-label { display: none; }
.bousai-product-tabs__panel { padding: 30px 4px 10px; font-size: 15px; line-height: 1.9; }
.bousai-product-tabs__panel[hidden] { display: none; }
.bousai-product-tabs__panel p { margin: 0 0 1.4em; }

/* 仕様・サイズ用リスト */
.bousai-product-spec { margin: 0; padding: 0; font-size: 14px; }
.bousai-product-spec__row { display: grid; grid-template-columns: 180px 1fr; margin: 0; padding: 17px 0; border-bottom: 1px solid #e5e5e5; }
.bousai-product-spec__row:first-child { border-top: 1px solid #e5e5e5; }
.bousai-product-spec dt { margin: 0; color: #555; font-weight: 400; }
.bousai-product-spec dd { margin: 0; color: #333; }
.bousai-product-spec--two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
.bousai-product-spec--two-column .bousai-product-spec__row:nth-child(2) { border-top: 1px solid #e5e5e5; }
.bousai-nutrition-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: 24px; }
.bousai-nutrition-item { display: flex; align-items: baseline; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #e6e3df; font-size: 12px; }
.bousai-nutrition-item__label { color: #777; }.bousai-nutrition-item strong { color: #590b0a; font-size: 15px; }.bousai-nutrition-item__unit { margin-left: 2px; font-size: 12px; }.editor-styles-wrapper .bousai-nutrition-item__value { display: inline-block; min-width: 2.6em; border-bottom: 1px dotted currentColor; }


/* メーカーリンク */
.bousai-maker-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 0 0 14px; font-size: 13px; }
.bousai-maker-links__item { display: inline-flex; align-items: center; width: fit-content; color: #555; text-decoration: none; transition: color .2s ease; }
.bousai-maker-links__icon { margin-left: 5px; font-size: .95em; line-height: 1; transition: transform .2s ease; }
.bousai-maker-links__item:hover, .bousai-maker-links__item:focus-visible { color: #1d4f91; }
.bousai-maker-links__item:hover .bousai-maker-links__icon, .bousai-maker-links__item:focus-visible .bousai-maker-links__icon { transform: translateX(5px); }

/* 調理手順 */
.cooking-steps { display: grid; grid-template-columns: auto 1fr; gap: 0 14px; }
.cooking-step { display: contents; }
.step-mark { display: grid; place-items: center; align-self: center; width: 24px; height: 24px; color: #590b0a; border: 1px solid #590b0a; border-radius: 50%; font-size: 11px; font-weight: 700; }
.step-copy { padding: 5px 0; border-bottom: 1px solid #e6e3df; }
.cooking-step:last-child .step-copy { border-bottom: 0; }
.step-copy p { margin: 0; color: #777; font-size: 11px; }
.step-copy strong { color: #252525; font-size: 12px; }
.step-copy .value { color: #590b0a; font-size: 14px; font-weight: 700; }

/* 価格・商品ファクト・3列手順 */
.price { margin: 2px 0 17px; color: #590b0a; font-size: 22px; font-weight: 700; }
.price .price-unit { margin-left: 1px; font-size: 13px; }
.price .price__tax { color: #777; font-size: 12px; font-weight: 500; }
.price small { display: block; margin-top: 2px; color: #777; font-size: 10px; font-weight: 500; }
.price__date { border-bottom: 0 !important; text-decoration: none !important; }
.editor-styles-wrapper .price__value, .editor-styles-wrapper .fact__value, .editor-styles-wrapper .step__value { display: inline-block; min-width: 2.6em; border-bottom: 1px dotted currentColor; }
.facts { border-top: 1px solid #e6e3df; border-bottom: 1px solid #e6e3df; }
.fact { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 0; font-size: 12px; }
.fact + .fact { border-top: 1px solid #e6e3df; }
.fact__label, .fact small { color: #777; }.fact strong, .fact .unit { color: #590b0a; }.fact strong { font-size: 17px; }.fact-value { display: flex; align-items: baseline; gap: 4px; }.unit { margin-left: 2px; font-size: 12px; font-weight: 700; }
.label, .step-label, .method-label { color: #777; font-size: 12px; font-weight: 400; }.label { margin: 16px 0 6px; }.steps { display: grid; grid-template-columns: repeat(3,1fr); }.step { min-height: 58px; padding: 10px 8px 2px; text-align: center; }.step + .step { border-left: 1px solid #e6e3df; }.step-label { margin: 0 0 4px; }.step strong, .step__value, .step__unit { color: #590b0a; font-size: 17px; }.step__suffix, .method-label { color: #777; font-size: 12px; font-weight: 400; }.step__unit { margin-left: 2px; font-size: 12px; }

/* アレルギー表示 */
.bousai-allergen-list { margin: 40px 0; }
.bousai-allergen-list__intro { font-size: 15px; line-height: 1.5; margin: 0; }
.bousai-allergen-list__items { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 18px 0 0; padding: 0; }
.bousai-allergen-list__item { box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: calc((100% - 60px) / 7); min-height: 44px; border: 1px solid #b7b7b7; border-radius: 12px; background: #fff; color: #777; font-size: 13px; line-height: 1.25; text-align: center; }
.bousai-allergen-list__item.is-contained { border-color: #dcedf8; background: #dcedf8; color: #235b7b; }
.bousai-allergen-list__item .components-toggle-control { position: absolute; z-index: 2; margin: 54px 0 0; min-width: 135px; padding: 5px 8px; border-radius: 4px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); font-size: 11px; }
.bousai-allergen-list__note { margin: 12px 0 0; font-size: 13px; line-height: 1.5; }

/* 商品画像ギャラリー */
.bousai-product-gallery { width: 100%; margin: 32px 0; }
.bousai-product-gallery__main { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f5f5f5; }
.bousai-product-gallery__main > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bousai-product-gallery__arrow { position: absolute; top: 50%; z-index: 1; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: #333; font-size: 32px; font-weight: 300; line-height: 38px; cursor: pointer; transform: translateY(-50%); }
.bousai-product-gallery__arrow:hover { background: #fff; }
.bousai-product-gallery__arrow--prev { left: 14px; }
.bousai-product-gallery__arrow--next { right: 14px; }
.bousai-product-gallery__label { min-height: 1.5em; margin: 12px 0 16px; color: #444; font-size: 14px; line-height: 1.5; text-align: center; }
.bousai-product-gallery__thumbnails { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.bousai-product-gallery__thumbnail { flex: 0 0 96px; aspect-ratio: 4 / 3; overflow: hidden; padding: 0; border: 2px solid transparent; background: #f5f5f5; cursor: pointer; }
.bousai-product-gallery__thumbnail.is-active { border-color: #333; }
.bousai-product-gallery__thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bousai-product-gallery__editor-actions { margin-top: 16px; }
.bousai-product-gallery--empty { display: flex; align-items: center; justify-content: center; min-height: 160px; border: 1px dashed #999; background: #fafafa; }

/* ブロックエディタでは、すべての入力欄を開いた状態で表示します。 */
.editor-styles-wrapper .bousai-tabs--editor { border: 1px solid #d6d6d6; padding: 1rem; }
.editor-styles-wrapper .bousai-tabs__editor-help { color: #50575e; font-size: .9em; margin-top: 0; }
.editor-styles-wrapper .bousai-tabs__tab--editor { border: 1px solid #d6d6d6; margin: 1rem 0; padding: 1rem; }
.editor-styles-wrapper .bousai-tabs__tab--editor .bousai-tabs__tab-label { display: block; border-bottom: 2px solid #222; font-size: 1.15em; margin: 0 0 1rem; padding: 0 0 .5rem; }
.editor-styles-wrapper .bousai-tabs__editor-content { padding-left: .25rem; }

@media (max-width: 600px) { .bousai-product-tabs { margin: 30px 0; } .bousai-product-tabs__button { padding: 14px 4px; font-size: 13px; } .bousai-product-tabs__panel { padding-top: 24px; font-size: 14px; } .bousai-product-spec__row { grid-template-columns: 100px 1fr; gap: 15px; padding: 14px 0; } .bousai-product-spec--two-column { grid-template-columns: 1fr; gap: 0; } .bousai-product-spec--two-column .bousai-product-spec__row:nth-child(2) { border-top: 0; } .bousai-nutrition-list { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 16px; } .bousai-responsive-columns { grid-template-columns: 1fr; gap: 20px; } .bousai-allergen-list { margin: 30px 0; } .bousai-allergen-list__items { gap: 7px; } .bousai-allergen-list__item { width: calc((100% - 21px) / 4); min-height: 40px; font-size: 11px; } .bousai-product-gallery__arrow { width: 36px; height: 36px; font-size: 28px; line-height: 32px; } .bousai-product-gallery__arrow--prev { left: 8px; } .bousai-product-gallery__arrow--next { right: 8px; } .bousai-product-gallery__thumbnail { flex-basis: 76px; } }

/* 3列調理手順の余白・モバイル表示 */
.steps .step { padding-top: 10px; padding-bottom: 0; }
.cooking-summary .label { padding-top: 10px; margin: 0; }
@media (max-width: 600px) { .steps { grid-template-columns: repeat(2, 1fr); background: #f5f5f5; } .steps .step + .step { border-left: 0; } }

/* 調理手順の文字・余白調整 */
.cooking-summary .label { padding-top: 0 !important; margin: 0 !important; }
.cooking-summary .step-label, .cooking-summary .method-label, .cooking-summary .step__suffix, .cooking-summary .step__suffix-text { font-size: 11px !important; }
.cooking-summary .step strong .step__suffix-text { color: #777 !important; font-size: 11px !important; font-weight: 400 !important; }
@media (max-width: 600px) { .cooking-summary .steps { grid-template-columns: repeat(3, 1fr) !important; background: transparent !important; } }
.cooking-summary .steps .step + .step { border-left: 1px solid #e6e3df !important; }
@media (max-width: 600px) { .bousai-responsive-columns { flex-direction: column; gap: 20px; } }
