/* 同じ項目を一画面幅に並べ、横方向の操作なしで比較する。 */
.comparison .compare-matrix-wrap {
  width: 100%;
  overflow: visible;
  margin-top: 1rem;
}
.comparison .compare-matrix {
  display: table;
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.comparison .compare-matrix thead {
  display: table-header-group;
  position: static;
  clip: auto;
  width: auto;
  height: auto;
  overflow: visible;
}
.comparison .compare-matrix tr { display: table-row; border: 0; padding: 0; }
.comparison .compare-matrix th,
.comparison .compare-matrix td {
  display: table-cell;
  width: auto;
  vertical-align: top;
  padding: .7rem .65rem;
  border: 1px solid #cdd6d3;
  overflow-wrap: anywhere;
  word-break: normal;
  font-size: .86rem;
  line-height: 1.65;
}
.comparison .compare-matrix td:before { content: none; display: none; }
.comparison .compare-matrix thead th {
  background: #193e50;
  color: #fff;
  font-size: .83rem;
}
.compare-letter {
  display: inline-block;
  margin-right: .35rem;
  font-size: 1rem;
  font-weight: 800;
}
.comparison .compare-matrix .compare-metric th {
  padding: .4rem .65rem;
  background: #edf2ef;
  color: #283c3d;
  font-size: .8rem;
  font-weight: 700;
}
.comparison .compare-matrix .compare-values td { background: #fff; color: #172c30; }
.comparison .compare-matrix tbody .compare-metric:first-child + .compare-values td {
  color: #a9422d;
  font-size: 1.15rem;
  font-weight: 800;
}
.compare-difference {
  border-left: 4px solid #a9422d;
  background: #f8f1ec;
  margin: .9rem 0;
  padding: .7rem .85rem;
  color: #172c30;
  line-height: 1.6;
}
.compare-difference strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.compare-difference small { font-size: .75rem; }
.compare-difference--neutral { border-color: #9aaba8; background: #f1f5f2; font-size: .78rem; }
.compare-legend-link { margin: .8rem 0 .4rem; font-size: .85rem; font-weight: 700; }
.comparison #selected-list { scroll-margin-top: 1rem; }
.comparison #selected-list p { line-height: 1.65; }
.comparison .compare-source-inline { display: inline-block; margin-top: .3rem; color: #193e50; font-size: .76rem; font-weight: 700; }
.comparison .compare-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media(max-width: 760px) {
  .comparison .compare-matrix th,
  .comparison .compare-matrix td { padding: .55rem .38rem; font-size: .8rem; }
  .comparison .compare-matrix thead th { font-size: .75rem; line-height: 1.4; }
  .compare-letter { display: block; margin: 0 0 .1rem; font-size: .95rem; }
  .comparison .compare-matrix .compare-metric:first-child + .compare-values td { font-size: .93rem; }
  .comparison .compare-matrix .compare-metric th { font-size: .78rem; }
  #compare-table-main .compare-metric th { font-size: 14px; text-wrap: balance; word-break: auto-phrase; }
  #compare-table-main .compare-metric:not(:first-child) + .compare-values td { font-size: 14px; }
}
.compare-unknown { margin: 1.2rem 0; border-block: 1px solid #b8c6c1; padding: .8rem 0; }
.compare-unknown summary { cursor: pointer; font-weight: 700; color: #173d3a; padding: .4rem 0; }
.compare-unknown p { font-size: .85rem; line-height: 1.6; }
.filter-disclosure > summary { display:none; }
.content > .product-overview { padding:1.4rem; }
.formal-product-name { font-size:.82rem; line-height:1.6; color:#485955; margin:0 0 .8rem; }
.formal-product-name summary { cursor:pointer; font-weight:700; text-decoration:underline; text-underline-offset:.2em; }
@media(max-width:600px){main:has(.product-overview) .page-title{font-size:clamp(1.6rem,7vw,2rem);line-height:1.25;text-wrap:balance}}
@media (max-width:760px) {
  .filter-disclosure > summary { display:block; cursor:pointer; color:#173d3a; font-weight:700; padding:.85rem 1rem; border:1px solid #aebeb8; background:#edf3ef; }
  .filter-disclosure > summary::before { content:'＋ '; }
  .filter-disclosure[open] > summary::before { content:'− '; }
  .filter-disclosure > summary span { font-weight:400; font-size:.85rem; margin-left:.5rem; }
  .content > .product-overview { padding:1rem; }
}
.product-overview .official-photo { margin:1rem 0; font-size:.85rem; line-height:1.6; }
.official-photo a { font-weight:700; }
.official-photo span { color:#40534d; }
@media (max-width:760px) {
  .feature-detail { min-width:0; width:100%; }
  .feature-detail thead { position:absolute; clip:rect(0,0,0,0); width:1px; height:1px; overflow:hidden; }
  .feature-detail tr, .feature-detail th, .feature-detail td { display:block; width:100%; }
  .feature-detail tr { border:1px solid #b8c6c1; margin-bottom:1rem; }
  .feature-detail th, .feature-detail td { border:0; padding:.55rem .75rem; }
  .feature-detail th { background:#edf3ef; }
  .feature-detail td::before { content:attr(data-label); display:block; color:#43544f; font-size:.78rem; font-weight:700; }
}
.feature-detail td[data-label="確認日と出典"] a { display:inline-flex; align-items:center; min-height:44px; padding:0 .35rem; }
.feature-related-links a { display:inline-flex; align-items:center; min-height:44px; }
.selection-tray { display:none; }
@media(max-width:760px) {
  body.has-selection-tray { padding-bottom: 190px; }
  .selection-tray:not([hidden]) { display:block; position:fixed; z-index:20; bottom:0; inset-inline:0; background:#fff; border-top:2px solid #1c4b58; box-shadow:0 -3px 14px #17374326; padding:.45rem .7rem max(.45rem,env(safe-area-inset-bottom)); }
  #floating-compare { display:none !important; }
  #tray-items { display:flex; flex-wrap:wrap; gap:.2rem .45rem; max-height:82px; padding:9px; scroll-padding:9px; overflow:auto; }
  #tray-items:has(.selection-chip:only-child) { padding:0; overflow:visible; }
  #tray-items:has(.selection-chip:nth-child(2):last-child) { max-height:80px; }
  .selection-chip { display:inline-flex; align-items:center; gap:.25rem; font-size:.75rem; line-height:1.25; color:#183d38; background:#edf3ef; padding:.2rem .4rem; }
  .selection-chip button { border:0; background:transparent; color:#173d3a; font-size:1.15rem; line-height:1; min-width:32px; min-height:32px; padding:0; }
  .selection-tray > a { display:block; padding:.55rem; text-align:center; color:white; background:#963b2a; font-weight:700; text-decoration:none; }
  .selection-tray > a[hidden] { display:none; }
}
.comparison-selected { margin:.6rem 0 1rem; }
.comparison-selected p { margin:.2rem 0; font-weight:700; }
.comparison-selected .selection-chip { display:inline-flex; align-items:center; padding:.2rem .45rem; margin:.2rem; background:#edf3ef; font-size:.8rem; }
.comparison-selected button { border:0; background:transparent; color:#173d3a; min-width:32px; min-height:32px; padding:0; }
.purpose-shortcuts { padding:1.2rem; margin:0 0 1.5rem; background:#edf3ef; border-top:3px solid #1c4b58; }
.purpose-shortcuts h2 { margin:0 0 .3rem; font-size:1.15rem; }
.purpose-shortcuts p { margin:.3rem 0 .8rem; font-size:.85rem; }
.purpose-shortcuts > div { display:flex; flex-wrap:wrap; gap:.5rem; }
.purpose-shortcuts button { min-height:44px; padding:.6rem .85rem; background:white; border:1px solid #718c82; color:#173d3a; font-weight:700; }
.purpose-shortcuts button:hover { background:#dcebe4; }


.compare-table-jump { display:inline-flex; align-items:center; min-height:44px; font-weight:700; }
#compare-table-main { scroll-margin-top:1rem; }
.compare-table-jump[hidden] { display:none; }

@media(max-width:760px) {
  .comparison #compare-table-main thead th { position: sticky; top: 0; z-index: 3; }
  .product-card-head { grid-template-columns:minmax(0,1fr); gap:.45rem; }
  .product-card-shape { min-height:100px; padding:.3rem .6rem; }
  .product-card-shape svg { width:min(100%, 230px); }
}

/* 商品一覧は形と金額を先に見せ、配送の詳細は必要なときに開く。 */
.product-card-head { display:grid; grid-template-columns:minmax(0,1fr) 150px; gap:.8rem; align-items:start; }
.product-card-shape { display:grid; justify-items:center; align-content:center; min-height:108px; padding:.35rem .5rem; border:1px solid #e1e5e0; background:#f7f5ef; text-align:center; color:#586463; font-size:.72rem; }
.product-card-shape svg { display:block; width:min(100%, 210px); height:auto; }
.product-card-shape small { font-size:.7rem; }
@media(max-width:760px) {
  .product-card-head { grid-template-columns:minmax(0,1fr); gap:.45rem; }
  .product-card-shape { min-height:100px; padding:.3rem .6rem; }
  .product-card-shape svg { width:min(100%, 230px); }
}
.product-shipping { margin:.4rem 0; font-size:.78rem; }
.product-shipping summary { cursor:pointer; color:#193e50; font-weight:700; }
.product-status.sold-out { color:#9d3425; font-weight:700; }
.meal-compare { display:inline-block; background:#193e50; color:white; padding:.65rem .9rem; font-weight:700; text-decoration:none; }
.meal-compare:hover { color:white; background:#315a6d; }
.meal-result .meal-compare-note { color:#586463; font-size:.75rem; }
#compare-result { scroll-margin-top:1rem; }

.compare-destination { background:#edf4ed; padding:.7rem; font-size:.8rem; line-height:1.6; }

.comparison-error { padding:1rem; margin:1rem 0; border-left:4px solid #a9422d; background:#fff1eb; color:#62291e; font-weight:700; line-height:1.7; scroll-margin-top:1rem; }

/* 比較表の列幅を保ちながら、送料の根拠を押しやすくする。 */
.comparison .compare-source-inline { display:inline-flex; align-items:center; min-height:44px; max-width:100%; }

.shape-card-facts { margin:.4rem 0 0; color:#263e32; font-size:.8rem; line-height:1.55; text-align:left; overflow-wrap:anywhere; }
.detail-shape-facts { padding:.65rem .8rem; background:#f1f5ef; }
.detail-shape-facts .shape-card-facts { margin:0; font-size:.9rem; }

.compare-meal-context { margin:0 0 1rem; padding:1rem; border:1px solid #a6beb1; border-left:4px solid #426e56; background:#f0f6f0; overflow-wrap:anywhere; }
.compare-meal-context h3 { margin:0 0 .4rem; font-size:1.05rem; }
.compare-meal-context p { margin:.35rem 0; font-size:.85rem; line-height:1.6; }
.compare-meal-context article { padding:.65rem 0; border-top:1px solid #c6d6ca; }
.comparison .compare-matrix thead a { display:inline-block; color:#fff; text-decoration:underline; overflow-wrap:anywhere; }

.compare-meal-context { scroll-margin-top:1rem; }

.product-card-shape .product-photo-source { display:inline-flex; align-items:center; justify-content:center; min-height:44px; max-width:100%; padding:.25rem .2rem; font-size:.78rem; line-height:1.4; font-weight:700; color:#193e50; text-decoration:underline; overflow-wrap:anywhere; }

/* 人数計算の小さな文字は淡い背景でも読みやすい濃さにする。 */
.meal-plan { --sub:#4a5e51; --accent:#943b29; }

/* 写真・仕様の公式情報へ進む補助リンク。広告の購入案内とは別の導線。 */
.product-card-shape .product-photo-source, .official-photo a { display:inline-flex; align-items:center; justify-content:center; min-height:44px; max-width:100%; padding:.6rem .8rem; border:1.5px solid #193e50; border-radius:4px; background:#fff; color:#193e50; font-size:.82rem; font-weight:700; line-height:1.45; text-decoration:none; text-align:center; overflow-wrap:anywhere; }
.product-card-shape .product-photo-source:hover, .official-photo a:hover { background:#edf4f4; text-decoration:underline; }

/* 比較する前に食べ方の違いが分かるよう、商品名のすぐ下へ短く表示する。 */
.compare-use-label { display:inline-block; margin:.35rem 0 0; padding:.12rem .34rem; border-radius:3px; background:#e5efeb; color:#193e50; font-size:.72rem; font-weight:800; line-height:1.35; }

.compare-matrix.compare-only-differences tr[data-same-info="true"]{display:none}.compare-difference-toggle{display:flex;align-items:center;gap:.55rem;margin:1rem 0 .2rem;font-weight:800;color:#193e50}.compare-difference-toggle input{width:1.2rem;height:1.2rem;accent-color:#193e50}.compare-difference-help{margin:.2rem 0 .7rem;color:#46595d;font-size:.78rem;line-height:1.6}.same-value-note{display:inline-block;margin-left:.45rem;padding:.08rem .3rem;border-radius:3px;background:#e5efeb;color:#193e50;font-size:.68rem;vertical-align:middle}

.comparison .compare-net-caption { caption-side: top; text-align: left; padding: .8rem; background: #eef3ea; color: #172c30; font-size: .875rem; line-height: 1.6; }
