/* ================================================================
   portal.css — 高密度ECポータル(トップページ専用)
   ヨドバシ/楽天全盛期リスペクトの「情報過多は正義」デザイン
   ================================================================ */
body.portal-body { background: #f3eee3; }

/* ---- ヘッダー(密度版) ---- */
.p-header { background: linear-gradient(180deg, #0a5c4c, #0e7c66); color: #fff; padding: 10px 0; position: sticky; top: 0; z-index: 50; }
.p-header-inner { display: flex; align-items: center; gap: 18px; }
.p-header .logo { color: #fff; }
.p-header .logo small { color: #b8e3d8; }
.p-search { flex: 1; display: flex; max-width: 520px; position: relative; }
.p-search input {
  flex: 1; border: 2px solid #f59e0b; border-right: none; border-radius: 8px 0 0 8px;
  padding: 9px 14px; font-family: inherit; font-size: 13.5px;
}
.p-search input:focus { outline: none; }
.p-search button {
  background: linear-gradient(180deg, #fbbf24, #f59e0b); border: 2px solid #f59e0b;
  border-radius: 0 8px 8px 0; padding: 0 18px; font-weight: 800; font-size: 13.5px; color: #4a2c04;
}
.p-search .ss-ac-drop { top: calc(100% + 6px); color: var(--ink); }
.p-header-links { display: flex; gap: 14px; align-items: center; font-size: 12px; font-weight: 700; }
.p-header-links a { display: flex; flex-direction: column; align-items: center; gap: 1px; opacity: .92; }
.p-header-links a:hover { opacity: 1; text-decoration: underline; }
.p-header-links .big { font-size: 17px; line-height: 1; }
.p-cart-btn { position: relative; }
.p-cart-btn .cart-badge { position: absolute; top: -6px; right: -10px; }

/* カート独立ブロック(密度ヘッダー内) — 白ピルでグリーン地から浮かせて強調 */
.p-header .hdr-cart-pill { background: #fff; color: var(--brand-dark); box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.p-header .hdr-cart-pill:hover { background: #fffbeb; }
.p-header .hdr-cart-icon .cart-badge { background: var(--accent); color: #fff; }
.p-header .hdr-cart-drop { color: var(--ink); }

/* サブカテナビ帯 */
.p-subnav { background: #0a5c4c; border-top: 1px solid rgba(255,255,255,.18); }
.p-subnav .inner { display: flex; flex-wrap: wrap; gap: 2px 0; padding: 4px 0; justify-content: space-between; }
.p-subnav a { color: #d9efe9; font-size: 11px; font-weight: 600; padding: 3px 6px; letter-spacing: -0.01em; border-radius: 5px; white-space: nowrap; }
.p-subnav a:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ---- 店舗ヒーロー ---- */
.store-hero { position: relative; overflow: hidden; border-bottom: 4px solid #0a5c4c; background: #b9dcf5; }
.store-hero svg { display: block; width: 100%; height: auto; max-height: 380px; min-height: 240px; object-fit: cover; }
.store-hero.photo img { display: block; width: 100%; height: auto; max-height: 460px; min-height: 260px; object-fit: cover; object-position: center 34%; }
.store-hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,16,26,0) 42%, rgba(8,16,26,.32) 72%, rgba(8,16,26,.66) 100%);
}
.store-hero.noimg img { display: none; }
.store-hero.noimg { min-height: 240px; background: linear-gradient(120deg, #0a5c4c, #0e7c66 60%, #14a085); }
.store-hero.noimg .store-hero-scrim { background: none; }
.store-hero-copy {
  position: absolute; left: max(20px, calc((100% - 1180px) / 2 + 20px)); bottom: 26px;
  color: #fff; text-shadow: 0 2px 10px rgba(10,40,60,.55), 0 1px 2px rgba(10,40,60,.6);
}
.store-hero-copy h1 { font-size: clamp(24px, 3.4vw, 40px); font-weight: 900; letter-spacing: .02em; line-height: 1.25; }
.store-hero-copy h1 span { color: #ffd76a; }
.store-hero-copy p { font-size: 13.5px; font-weight: 700; margin-top: 6px; line-height: 1.6; }
.store-hero-copy .cta { display: flex; gap: 10px; margin-top: 14px; }
.btn-hero-ghost {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 10px;
  font-weight: 800; font-size: 13.5px; color: #fff; background: rgba(10,60,50,.45);
  border: 1.5px solid rgba(255,255,255,.7); backdrop-filter: blur(3px); text-shadow: none;
}
.btn-hero-ghost:hover { background: rgba(10,60,50,.65); }
@media (max-width: 700px) {
  .store-hero svg { min-height: 200px; }
  .store-hero-copy { bottom: 14px; }
  .store-hero-copy p { display: none; }
}

/* ---- 3カラムレイアウト ---- */
.portal { display: grid; grid-template-columns: 198px minmax(0,1fr) 198px; gap: 12px; padding: 12px 0 30px; align-items: start; }

/* ---- 汎用ボックス ---- */
.pbox { background: #fff; border: 1px solid #ddd3bd; border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.pbox-h {
  background: linear-gradient(180deg, #14846d, #0e7c66); color: #fff;
  font-size: 12.5px; font-weight: 800; padding: 7px 12px; display: flex; justify-content: space-between; align-items: center;
}
.pbox-h a { font-size: 10.5px; color: #cdeee5; font-weight: 700; }
.pbox-h a:hover { color: #fff; text-decoration: underline; }
.pbox-h.hot { background: linear-gradient(180deg, #e5484d, #c62a2f); }
.pbox-h.gold { background: linear-gradient(180deg, #b8860b, #96700a); }
.pbox-h.navy { background: linear-gradient(180deg, #23395d, #1a2b47); }
.pbox-b { padding: 10px; }

/* ---- 左サイド: カテゴリツリー ---- */
.side-tree { font-size: 12px; }
.side-tree .cat { font-weight: 800; padding: 7px 12px; background: #f2f7f5; border-top: 1px solid #e8e2d2; display: flex; justify-content: space-between; color: #0a5c4c; }
.side-tree .cat:first-child { border-top: none; }
.side-tree a.sub { display: flex; justify-content: space-between; padding: 4.5px 12px 4.5px 20px; color: #333; border-top: 1px dotted #eee5d2; }
.side-tree a.sub:hover { background: #fff8e1; color: #b45309; }
.side-tree .n { color: #999; font-size: 10.5px; }

.mini-rank { font-size: 12px; }
.mini-rank a { display: flex; gap: 8px; padding: 6px 10px; border-top: 1px dotted #eee5d2; align-items: flex-start; }
.mini-rank a:first-child { border-top: none; }
.mini-rank a:hover { background: #fff8e1; }
.mini-rank .no { flex: 0 0 18px; height: 18px; background: #8a94a6; color: #fff; font-size: 11px; font-weight: 800; text-align: center; line-height: 18px; border-radius: 4px; }
.mini-rank a:nth-child(1) .no { background: #d4a017; } .mini-rank a:nth-child(2) .no { background: #8a94a6; } .mini-rank a:nth-child(3) .no { background: #a05a2c; }
.mini-rank .t { flex: 1; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-rank .p { color: #c62a2f; font-weight: 800; white-space: nowrap; }

/* ---- 中央: 特売バナー ---- */
.banner { border-radius: 10px; padding: 18px 20px; color: #fff; margin-bottom: 10px; position: relative; overflow: hidden; display: block; border: 1px solid rgba(0,0,0,.08); }
.banner:hover { filter: brightness(1.06); }
.banner h3 { font-size: 21px; font-weight: 900; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.banner p { font-size: 12px; margin-top: 3px; opacity: .95; font-weight: 600; }
.banner .tag { position: absolute; top: 10px; right: 12px; background: #fff; border-radius: 999px; font-size: 10.5px; font-weight: 900; padding: 3px 10px; }
.banner-sale { background: repeating-linear-gradient(45deg, #d92c32 0 22px, #c62a2f 22px 44px); }
.banner-sale .tag { color: #c62a2f; }
.banner-story { background: linear-gradient(120deg, #23395d, #3b5586); }
.banner-story .tag { color: #23395d; }
.banner-data { background: linear-gradient(120deg, #0e7c66, #14a085); }
.banner-data .tag { color: #0e7c66; }
.banner-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.banner-row .banner { margin-bottom: 0; padding: 13px 16px; }
.banner-row .banner h3 { font-size: 15.5px; padding-right: 64px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner-row .banner p { padding-right: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- 目玉商品(チラシ風) ---- */
.megyoku { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.megyoku-item { border: 2px solid #f0b429; border-radius: 8px; padding: 8px; position: relative; background: #fffdf5; display: block; }
.megyoku-item:hover { border-color: #c62a2f; background: #fff; }
.megyoku-item .art { width: 100%; border-radius: 6px; display: block; }
.megyoku-item img.art.photo, .dense-card img.art.photo { aspect-ratio: 4/3; object-fit: cover; height: auto; }
.history-list .thumb img.art.photo { aspect-ratio: 4/3; object-fit: cover; width: 100%; height: auto; }
.megyoku-item .nm { font-size: 11.5px; font-weight: 700; line-height: 1.35; height: 31px; overflow: hidden; margin-top: 6px; }
.megyoku-item .pr { color: #c62a2f; font-weight: 900; font-size: 18px; margin-top: 2px; }
.megyoku-item .pr small { font-size: 10px; color: #666; font-weight: 600; }
.burst {
  position: absolute; top: -10px; left: -10px; width: 54px; height: 54px; z-index: 2;
  background: #e5484d; color: #fff; font-size: 10px; font-weight: 900; line-height: 1.15;
  display: flex; align-items: center; justify-content: center; text-align: center;
  clip-path: polygon(50% 0%, 61% 12%, 76% 6%, 79% 22%, 95% 24%, 89% 39%, 100% 50%, 89% 61%, 95% 76%, 79% 78%, 76% 94%, 61% 88%, 50% 100%, 39% 88%, 24% 94%, 21% 78%, 5% 76%, 11% 61%, 0% 50%, 11% 39%, 5% 24%, 21% 22%, 24% 6%, 39% 12%);
  transform: rotate(-12deg);
}
.burst.b2 { background: #b8860b; }

/* ---- 商品ミニカード(密度版) ---- */
.dense-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.dense-card { border: 1px solid #e8e2d2; border-radius: 7px; padding: 6px; background: #fff; position: relative; display: block; }
.dense-card:hover { border-color: #f59e0b; box-shadow: 0 2px 8px rgba(180,120,0,.18); }
.dense-card .art { width: 100%; border-radius: 5px; display: block; }
.dense-card .nm { font-size: 10.5px; line-height: 1.3; height: 27px; overflow: hidden; margin-top: 4px; color: #333; }
.dense-card .pr { color: #c62a2f; font-weight: 800; font-size: 13.5px; }
.dense-card .pt { font-size: 9.5px; color: #b45309; font-weight: 700; }
.dense-card .rankno {
  position: absolute; top: 4px; left: 4px; z-index: 2; width: 20px; height: 20px; border-radius: 4px;
  background: #555; color: #fff; font-size: 11px; font-weight: 900; text-align: center; line-height: 20px;
}
.dense-card .rankno.r1 { background: #d4a017; } .dense-card .rankno.r2 { background: #8a94a6; } .dense-card .rankno.r3 { background: #a05a2c; }
.stamp { display: inline-block; font-size: 9px; font-weight: 800; border-radius: 3px; padding: 1px 5px; margin-right: 3px; }
.stamp.free { background: #e0f2e9; color: #0a5c4c; }
.stamp.fast { background: #fde8e8; color: #c62a2f; }
.stamp.few { background: #fff3cd; color: #92600a; }

/* ---- ストーリー新着リスト ---- */
.news-list { font-size: 12.5px; }
.news-list a { display: flex; gap: 10px; padding: 7px 12px; border-top: 1px dotted #eee5d2; align-items: baseline; }
.news-list a:first-child { border-top: none; }
.news-list a:hover { background: #f4faf8; }
.news-list .cat-tag { flex: 0 0 auto; font-size: 9.5px; font-weight: 800; border-radius: 3px; padding: 1px 7px; }
.news-list .new { color: #e5484d; font-size: 9.5px; font-weight: 900; }
.news-list .t { flex: 1; line-height: 1.45; }
.news-list .t:hover { text-decoration: underline; }

/* ---- データコーナー ---- */
.stat-row { display: flex; justify-content: space-between; font-size: 11.5px; padding: 4px 0; border-bottom: 1px dotted #eee5d2; }
.stat-row b { font-family: ui-monospace, monospace; }
.hbar { display: flex; align-items: center; gap: 6px; font-size: 10.5px; padding: 3px 0; }
.hbar .lb { flex: 0 0 58px; text-align: right; color: #555; }
.hbar .tr { flex: 1; background: #f0ece0; border-radius: 3px; height: 11px; overflow: hidden; }
.hbar .tr i { display: block; height: 100%; background: linear-gradient(90deg, #0e7c66, #2fa88d); }
.hbar .v { flex: 0 0 46px; font-size: 10px; color: #333; font-weight: 700; font-family: ui-monospace, monospace; }

/* ---- 右サイド ---- */
.rail-cart { font-size: 12px; padding: 10px; }
.rail-cart .total { font-size: 16px; font-weight: 900; color: #c62a2f; }
.history-list a { display: flex; gap: 7px; padding: 5px 10px; border-top: 1px dotted #eee5d2; font-size: 11px; line-height: 1.3; align-items: center; }
.history-list a:first-child { border-top: none; }
.history-list a:hover { background: #fff8e1; }
.history-list .thumb { flex: 0 0 34px; width: 34px; border-radius: 4px; overflow: hidden; }
.history-list .thumb svg { display: block; width: 100%; height: auto; }
.history-list .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sponsor-stack { display: flex; flex-direction: column; gap: 7px; padding: 10px; }
.sponsor-stack a {
  display: flex; align-items: center; gap: 8px; border: 1px solid #e0d8c4; border-radius: 7px;
  padding: 8px 10px; font-size: 11.5px; font-weight: 800; background: #fffdf7;
}
.sponsor-stack a:hover { border-color: #f59e0b; background: #fff; }
.sponsor-stack .plogo { width: 26px; height: 26px; border-radius: 6px; color: #fff; font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.sponsor-stack small { display: block; font-size: 9px; color: #888; font-weight: 500; }
.mail-box { padding: 10px; font-size: 11px; }
.mail-box input { width: 100%; border: 1.5px solid #ddd3bd; border-radius: 6px; padding: 7px 9px; font-family: inherit; font-size: 12px; margin: 6px 0; }
.mail-box button { width: 100%; background: linear-gradient(180deg, #14846d, #0e7c66); border: none; color: #fff; font-weight: 800; border-radius: 6px; padding: 8px; font-size: 12px; }
.mail-box button:hover { filter: brightness(1.1); }

/* ---- セクション帯見出し(中央) ---- */
.strip-h {
  display: flex; align-items: center; gap: 10px; margin: 4px 0 8px;
  font-size: 15px; font-weight: 900; color: #4a2c04;
}
.strip-h::before { content: ""; width: 6px; height: 20px; background: linear-gradient(180deg, #f59e0b, #d97706); border-radius: 3px; }
.strip-h .sub { font-size: 10.5px; color: #98866a; font-weight: 600; }
.strip-h a.more { margin-left: auto; font-size: 11px; color: #0e7c66; font-weight: 800; }
.strip-h a.more:hover { text-decoration: underline; }

/* ---- 密度フッターリンク(多段カラム) ---- */
.fat-links { background: #fff; border: 1px solid #ddd3bd; border-radius: 8px; padding: 20px 22px 16px; font-size: 13px; margin-bottom: 12px; }

.fat-links-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 22px;
  padding-top: 4px;
}
.fl-col { display: flex; flex-direction: column; min-width: 0; }
.fl-col + .fl-col { border-top: none; }
.fl-col.fl-stack { gap: 18px; }
.fl-sub { display: flex; flex-direction: column; }

.fl-head {
  position: relative;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px;
  padding-left: 10px;
}
.fl-head::before {
  content: "";
  position: absolute;
  left: 0; top: 1px;
  width: 4px; height: 14px;
  background: #0e7c66;
  border-radius: 2px;
}

.fat-links-grid a {
  display: block;
  color: #767676;
  font-size: 13px;
  line-height: 1.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fat-links-grid a:hover { color: #0e7c66; text-decoration: underline; }

.fl-copyright {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #ede7d8;
  font-size: 11px;
  color: #999;
}

@media (max-width: 900px) {
  .fat-links-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .fat-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 20px; }
}

@media (max-width: 1000px) {
  .portal { grid-template-columns: 1fr; }
  .side-col-l { order: 2; } .side-col-r { order: 3; }
  .dense-grid { grid-template-columns: repeat(3, 1fr); }
  .megyoku { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .dense-grid { grid-template-columns: repeat(2, 1fr); }
  .p-header-inner { flex-wrap: wrap; }
}
