/* Cocoa News Top HOME (BENTO + Mobile Hero, no deps)
   File: top-news-home.css

   TOPページ専用（ACDEF / スライダーなし / 絞り込みなし / 9件 / もっと見る→/news/）
   - 画面が広すぎてカードが巨大化しないように、TOPは wrap に max-width を設定
   - TOPでは panel / summary / slider は非表示
*/



h3 {
  font-size: 15px;
  font-weight: bold;
  line-height: 140%;
  margin: 40px auto 10px auto;
  padding: 0px 10px 2px 10px;
  text-align: left;
  font-weight: bold;
}

/* ===== Cocoa News Top base ===== */
#cocoa-news-top{
  --nt2-bd: rgba(15,23,42,.10);
  --nt2-tx:#0f172a;
  --nt2-mu:#64748b;
  --nt2-bg: rgba(255,255,255,.85);
  --nt2-sh: 0 12px 32px rgba(2,6,23,.10);
  --nt2-sh2: 0 14px 38px rgba(2,6,23,.16);
  --nt2-r:18px;
  color: var(--nt2-tx);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
#cocoa-news-top *{ box-sizing:border-box; }

/* wrapper fullwidth（TOPは後段でmax-widthを上書きする） */
#cocoa-news-top .nt2-wrap{
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px 24px 36px;
}
@media (max-width: 820px){
  #cocoa-news-top .nt2-wrap{ padding: 14px 14px 28px; }
}

#cocoa-news-top .nt2-empty{
  padding:18px;
  border:1px dashed var(--nt2-bd);
  border-radius:14px;
  color:var(--nt2-mu);
  background: rgba(255,255,255,.35);
}

/* header */
#cocoa-news-top .nt2-head{
  display:flex;
  gap:14px;
  align-items:flex-end;
  justify-content:space-between;
  margin: 8px 0 12px;
}
#cocoa-news-top .nt2-title{ font-size: 22px; margin:0; letter-spacing:.02em; font-weight: 900; }
#cocoa-news-top .nt2-sub{ margin:6px 0 0; color:var(--nt2-mu); font-size:12px; }
#cocoa-news-top .nt2-headLeft{ width:100%; text-align:left; }
#cocoa-news-top .nt2-headRight{ width:230px; }

#cocoa-news-top .nt2-metaBox{
  font-size:12px; color:var(--nt2-mu); text-align:right; line-height:1.6;
  background: rgba(255,255,255,.55);
  border:1px solid var(--nt2-bd);
  border-radius: 12px;
  padding:8px 10px;
}

@media (max-width: 640px){
  #cocoa-news-top .nt2-head{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  #cocoa-news-top .nt2-metaBox{
    text-align: left;
    width: 100%;
  }
}

/* panel（TOPでは非表示にするが、newsページ等では必要なので残す） */
#cocoa-news-top .nt2-panel{
  border:1px solid var(--nt2-bd);
  background: var(--nt2-bg);
  border-radius: 16px;
  padding: 10px 10px;
  box-shadow: var(--nt2-sh);
}
#cocoa-news-top .nt2-row{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin: 6px 0; }
#cocoa-news-top .nt2-rowLabel{ font-size:12px; font-weight:800; color:var(--nt2-mu); min-width: 2.2em; }
#cocoa-news-top .nt2-btns{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
#cocoa-news-top .nt2-btn{
  appearance:none;
  border:1px solid var(--nt2-bd);
  background: rgba(255,255,255,.65);
  border-radius: 999px;
  padding: 7px 10px;
  font-weight:800;
  font-size:12px;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
#cocoa-news-top .nt2-btn:hover{ transform: translateY(-1px); box-shadow: 0 10px 22px rgba(2,6,23,.08); }
#cocoa-news-top .nt2-btn.is-active{ background: rgba(37,99,235,.12); border-color: rgba(37,99,235,.25); }

#cocoa-news-top .nt2-select{
  border:1px solid var(--nt2-bd);
  background: rgba(255,255,255,.75);
  border-radius: 12px;
  padding: 7px 10px;
  font-size: 12px;
}
#cocoa-news-top .nt2-input{
  border:1px solid var(--nt2-bd);
  background: rgba(255,255,255,.75);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 12px;
  min-width: 240px;
}
#cocoa-news-top .nt2-spacer{ flex: 1 1 auto; }

@media (max-width: 640px){
  #cocoa-news-top .nt2-input{ min-width:0; width:100%; }
}

#cocoa-news-top .nt2-summary{ margin: 12px 2px 14px; color: var(--nt2-mu); font-size: 12px; }

/* ===== Mobile Hero (<=640px) ===== */
#cocoa-news-top .nt2-mhero{ display:none; }
@media (max-width: 640px){
  #cocoa-news-top .nt2-mhero{
    display:block;
    margin: 8px 0 12px;
    border-radius: 18px;
    overflow: hidden;
    border:1px solid rgba(15,23,42,.10);
    box-shadow: 0 12px 32px rgba(2,6,23,.10);
    background: rgba(255,255,255,.65);
  }
  #cocoa-news-top .nt2-mheroA{ display:block; color:inherit; text-decoration:none; position:relative; }
  #cocoa-news-top .nt2-mheroThumb{ aspect-ratio: 16/10; background: rgba(15,23,42,.06); }
  #cocoa-news-top .nt2-mheroImg{ width:100%; height:100%; object-fit:cover; display:block; }
  #cocoa-news-top .nt2-mheroPh{ width:100%; height:100%; background: linear-gradient(135deg, rgba(15,23,42,.08), rgba(15,23,42,.03)); }

  #cocoa-news-top .nt2-mheroOverlay{
    position:absolute; inset:0;
    display:flex; flex-direction:column; justify-content:flex-end;
    padding: 14px;
    background: linear-gradient(to top, rgba(11,18,32,.78) 0%, rgba(11,18,32,.20) 55%, transparent 100%);
  }
  #cocoa-news-top .nt2-mheroMeta{ display:flex; gap:8px; align-items:center; margin-bottom:8px; }
  #cocoa-news-top .nt2-mheroPill{
    font-size:11px; font-weight:900; color:#fff;
    padding:6px 10px; border-radius:999px;
    background: rgba(0,0,0,.45);
    border:1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(8px);
  }
  #cocoa-news-top .nt2-mheroTime{ font-size:12px; color: rgba(255,255,255,.9); font-weight:800; }
  #cocoa-news-top .nt2-mheroTitle{
    color:#fff; font-weight:900; font-size:16px; line-height:1.35;
    text-shadow: 0 2px 6px rgba(0,0,0,.45);
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  }
}

/* ===== BENTO GRID ===== */
#cocoa-news-top .nt2-bento{
  display:grid;
  gap: 14px;
  grid-template-columns: repeat(11, minmax(0,1fr));
}
#cocoa-news-top .nt2-card{
  border:1px solid var(--nt2-bd);
  background: rgba(255,255,255,.78);
  border-radius: var(--nt2-r);
  box-shadow: var(--nt2-sh);
  overflow:hidden;
  transition: transform .14s ease, box-shadow .14s ease;
  position:relative;
}
#cocoa-news-top .nt2-card:hover{ transform: translateY(-1px); box-shadow: var(--nt2-sh2); }

#cocoa-news-top .nt2-card::after{
  content:"";
  position:absolute;
  inset:-40% -60%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.22) 50%, rgba(255,255,255,0) 100%);
  transform: rotate(18deg) translateX(-40%);
  animation: nt2Shine 7s ease-in-out infinite;
  animation-delay: var(--nt2-delay, 0s);
  pointer-events:none;
  opacity:.55;
}
@keyframes nt2Shine{
  0%, 72%{ transform: rotate(18deg) translateX(-60%); opacity:0; }
  78%{ opacity:.45; }
  100%{ transform: rotate(18deg) translateX(60%); opacity:0; }
}
@media (prefers-reduced-motion: reduce){
  #cocoa-news-top .nt2-card::after{ animation:none; }
}

/* sizing */
#cocoa-news-top .nt2-card--hero{ grid-column: span 4; }
#cocoa-news-top .nt2-card--wide{ grid-column: span 3; }
#cocoa-news-top .nt2-card--tall{ grid-column: span 2; }
#cocoa-news-top .nt2-card--small{ grid-column: span 2; }

@media (max-width: 980px){
  #cocoa-news-top .nt2-card--hero{ grid-column: span 6; }
  #cocoa-news-top .nt2-card--wide{ grid-column: span 4; }
  #cocoa-news-top .nt2-card--tall{ grid-column: span 4; }
  #cocoa-news-top .nt2-card--small{ grid-column: span 2; }
}
@media (max-width: 640px){
  #cocoa-news-top .nt2-bento{ grid-template-columns: 1fr; }
  #cocoa-news-top .nt2-card--hero,
  #cocoa-news-top .nt2-card--wide,
  #cocoa-news-top .nt2-card--tall,
  #cocoa-news-top .nt2-card--small{ grid-column: span 1; }
}

#cocoa-news-top .nt2-a{ display:block; color:inherit; text-decoration:none; }
#cocoa-news-top .nt2-thumb{ position:relative; width:100%; aspect-ratio: 16/9; background: rgba(15,23,42,.06); overflow:hidden; }
#cocoa-news-top .nt2-img{ width:100%; height:100%; object-fit: cover; display:block; }
#cocoa-news-top .nt2-imgPh{ width:100%; height:100%; background: linear-gradient(135deg, rgba(15,23,42,.08), rgba(15,23,42,.03)); }
#cocoa-news-top .nt2-badges{ position:absolute; top:10px; left:10px; display:flex; gap:8px; }
#cocoa-news-top .nt2-pill{
  font-size: 11px; font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  color:#fff;
  background: rgba(15,23,42,.45);
  backdrop-filter: blur(8px);
  border:1px solid rgba(255,255,255,.18);
}
#cocoa-news-top .nt2-body{ padding: 12px 14px 14px; }
#cocoa-news-top .nt2-h{
  margin:0 0 8px;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing:.01em;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}
#cocoa-news-top .nt2-meta{ display:flex; gap:8px; align-items:center; color: var(--nt2-mu); font-size: 12px; margin-bottom: 10px; }
#cocoa-news-top .nt2-dot{ width:4px; height:4px; border-radius: 99px; background: var(--nt2-bd); display:inline-block; }
#cocoa-news-top .nt2-chips{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom: 10px; }
#cocoa-news-top .nt2-chip{ font-size:11px; padding:6px 10px; border-radius:999px; border:1px solid var(--nt2-bd); color: #475569; background: rgba(255,255,255,.55); }
#cocoa-news-top .nt2-actions{ display:flex; gap:10px; flex-wrap:wrap; }
#cocoa-news-top .nt2-sbtn{ display:inline-flex; align-items:center; gap:8px; border:1px solid var(--nt2-bd); border-radius: 12px; padding: 8px 10px; background: rgba(255,255,255,.55); font-size:12px; font-weight:900; color: inherit; text-decoration:none; }
#cocoa-news-top .nt2-sbtn svg{ width:16px; height:16px; opacity:.9; }

/* bottom */
#cocoa-news-top .nt2-bottom{ margin: 16px 0 6px; text-align:center; }
#cocoa-news-top .nt2-more{ border:1px solid var(--nt2-bd); background: rgba(255,255,255,.75); border-radius: 14px; padding: 12px 16px; font-weight: 900; cursor:pointer; box-shadow: var(--nt2-sh); }
#cocoa-news-top .nt2-more:hover{ box-shadow: var(--nt2-sh2); transform: translateY(-1px); }

/* ===== SLIDER (FULLWIDTH) ===== */
#cocoa-news-top .nt2-slider{ margin-top: 18px; }
#cocoa-news-top .nt2-sliderHead{ display:flex; justify-content:space-between; align-items:baseline; gap:10px; margin: 6px 2px 10px; }
#cocoa-news-top .nt2-sliderTitle{ font-weight: 900; letter-spacing:.02em; }
#cocoa-news-top .nt2-sliderHint{ color: var(--nt2-mu); font-size: 12px; }

#cocoa-news-top .nt2-sliderViewport{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-top: 1px solid rgba(15,23,42,.10);
  border-bottom: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.55);
  overflow: hidden;
  padding: 14px 0;
}
#cocoa-news-top .nt2-sliderViewport--manual{ overflow-x:auto; }
#cocoa-news-top .nt2-sliderTrack{ display:flex; gap: 14px; will-change: transform; padding: 0 14px; }

#cocoa-news-top .nt2-stile{
  display:grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  align-items: stretch;

  min-width: 520px;
  max-width: 720px;

  border: 1px solid rgba(15,23,42,.10);
  border-radius: 18px;
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  background: rgba(255,255,255,.85);
  box-shadow: 0 10px 28px rgba(2,6,23,.10);
  transition: transform .14s ease, box-shadow .14s ease;
}
#cocoa-news-top .nt2-stile:hover{ transform: translateY(-1px); box-shadow: 0 14px 34px rgba(2,6,23,.16); }
#cocoa-news-top .nt2-sthumb{ position:relative; aspect-ratio: 1 / 1; overflow:hidden; background: rgba(15,23,42,.06); }
#cocoa-news-top .nt2-simg{ width:100%; height:100%; object-fit: cover; display:block; }
#cocoa-news-top .nt2-simgPh{ width:100%; height:100%; background: linear-gradient(135deg, rgba(15,23,42,.08), rgba(15,23,42,.03)); }
#cocoa-news-top .nt2-spill{ position:absolute; top:10px; left:10px; font-size:11px; font-weight:900; padding: 6px 10px; border-radius:999px; color:#fff; background: rgba(15,23,42,.45); border:1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); }

#cocoa-news-top .nt2-stext{ padding: 12px 14px; display:flex; flex-direction:column; justify-content:center; min-width:0; }
#cocoa-news-top .nt2-sh{ font-size: 14px; font-weight: 900; line-height: 1.35; display:-webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow:hidden; }
#cocoa-news-top .nt2-smeta{ margin-top: 6px; font-size: 12px; color: var(--nt2-mu); }

@media (max-width: 720px){
  #cocoa-news-top .nt2-stile{ min-width: 86vw; grid-template-columns: 150px 1fr; }
}

/* ============================================================
   TOPページ専用（HOME）上書き
   - 絞り込みパネル/サマリー/スライダーを出さない
   - 画面が広すぎてカードが巨大化しないようにmax-widthを設定
   - 「もっと見る」をaにしても見た目維持
   ============================================================ */

#cocoa-news-top[data-nt2-mode="home"] .nt2-panel,
#cocoa-news-top[data-nt2-mode="home"] .nt2-summary,
#cocoa-news-top[data-nt2-mode="home"] .nt2-slider{
  display:none !important;
}

/* TOPの表示幅をキャップ（巨大化防止） */
#cocoa-news-top[data-nt2-mode="home"] .nt2-wrap{

  margin: 0 auto;
}

/* TOPは左右パディングを少し安定させる（任意） */
#cocoa-news-top[data-nt2-mode="home"] .nt2-wrap{
  padding-left: 16px;
  padding-right: 16px;
}

/* TOPの「もっと見る」リンク対応 */
#cocoa-news-top[data-nt2-mode="home"] .nt2-more{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}


#cocoa-news-top .nt2-bottom{
  margin: 16px 0 0;
}

/* full-width call-to-action row */
#cocoa-news-top a.nt2-more{
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 60%;
  padding: 14px 14px;

  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.70);
  box-shadow: 0 12px 32px rgba(2,6,23,.10);

  color: #0f172a;
  font-weight: 900;
  text-decoration: none;
}


#cocoa-news-top a.nt2-more:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 38px rgba(2,6,23,.14);
}

#cocoa-news-top a.nt2-more:focus-visible{
  outline: 3px solid rgba(37,99,235,.25);
  outline-offset: 2px;
}

@media (max-width: 640px){
  #cocoa-news-top .nt2-pair{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  #cocoa-news-top .nt2-pair .nt2-card{
    grid-column: auto;
  }
}
