/* ============================================================
   活動案例頁 case.css（scope 在 #radish-cases）
   ============================================================ */
#radish-cases {
  --red:var(--wp--preset--color--palette-color-1, #e84043);
  --red-deep:var(--wp--preset--color--palette-color-2, #d0201f);
  --cream:var(--wp--preset--color--palette-color-6, #f7f4ed);
  --sage:var(--wp--preset--color--palette-color-5, #c7e2bd);
  --sage-deep:#a9cf9c;
  --ink:var(--wp--preset--color--palette-color-3, #2b2b2b);
  --content:1290px;
  --ff:"Noto Sans TC","Noto Sans JP","PingFang TC","Microsoft JhengHei",sans-serif;
  margin:0; font-family:var(--ff); color:#fff; background:var(--red);
  line-height:1.5; overflow-x:clip; position:relative;
}
#radish-cases *,#radish-cases *::before,#radish-cases *::after { box-sizing:border-box; }
#radish-cases img { max-width:100%; display:block; }
#radish-cases ul { margin:0; padding:0; list-style:none; }
#radish-cases a { color:inherit; text-decoration:none; }
#radish-cases .container { width:min(var(--content), 100% - 40px); margin-inline:auto; }

/* ---------- HERO ---------- */
#radish-cases .chero { background:var(--red); padding-top:clamp(84px,9vw,112px); padding-bottom:34px; }
#radish-cases .chero-top { display:flex; gap:24px; align-items:flex-start; }
#radish-cases .hero-side { display:flex; flex-direction:column; gap:22px; color:#fff; flex-shrink:0; }
#radish-cases .hero-side__top { display:flex; align-items:flex-start; gap:10px; padding-top:4px; }
#radish-cases .hero-side__col { display:flex; flex-direction:column; align-items:center; gap:12px; }
#radish-cases .hero-side__cn { font-size:24px; font-weight:700; writing-mode:vertical-rl; letter-spacing:.12em; }
#radish-cases .hero-side__arrow { width:2px; height:48px; background:#fff; position:relative; }
#radish-cases .hero-side__arrow::after { content:""; position:absolute; bottom:-2px; left:50%; transform:translateX(-50%); border:6px solid transparent; border-top-color:#fff; }
#radish-cases .hero-side__jp { font-size:18px; font-weight:700; writing-mode:vertical-rl; color:rgba(255,255,255,.9); letter-spacing:.04em; margin-top:20px; }
/* 國際拓銷 badge:直接複用案例標籤(品牌快閃)樣式 */
#radish-cases .hero-badge { align-self:flex-start; border:2px solid var(--sage); color:#fff; font-weight:900; font-size:clamp(15px,1.4vw,19px); line-height:1.2; text-align:center; border-radius:14px; padding:10px 14px; letter-spacing:.08em; }
#radish-cases .chero-main { flex:1; min-width:0; display:flex; align-items:center; }
#radish-cases .chero-gojapan { width:100%; height:auto; }

/* ---------- CASES ---------- */
#radish-cases .cases { padding-bottom:20px; }
/* 案例分隔線 sage 1.5px;padding-bottom:0 使分隔線貼齊內容底(=meta item3),讓三線等距 */
#radish-cases .case { padding:44px 0 0; border-bottom:1.5px solid var(--sage); }
#radish-cases .case:first-child { padding-top:20px; }

/* 圖組（黑場 placeholder） */
#radish-cases .ph { display:block; background:#111; border-radius:14px; }
#radish-cases .case-media { display:grid; gap:14px; margin-bottom:24px; }
/* case1：三張一排 */
#radish-cases .case-media--row { grid-template-columns:repeat(3,1fr); }
#radish-cases .case-media--row .ph { aspect-ratio:16/11; }
/* case2：左大直 + 右上大橫 + 下排[標籤+兩小] */
#radish-cases .case-media--nhk {
  grid-template-columns:1.15fr .8fr .62fr .62fr;
  grid-template-areas:"a b b b" "a l c d";
}
#radish-cases .case-media--nhk .ph--a { grid-area:a; }
#radish-cases .case-media--nhk .ph--b { grid-area:b; aspect-ratio:24/7; }
#radish-cases .case-media--nhk .ph--c { grid-area:c; aspect-ratio:1/1; }
#radish-cases .case-media--nhk .ph--d { grid-area:d; aspect-ratio:1/1; }
/* case3：直排標籤 + 中大圖 + 右上/右下 */
#radish-cases .case-media--popup {
  grid-template-columns:auto 1.5fr 1fr;
  grid-template-areas:"label big r1" "label big r2";
}
#radish-cases .case-media--popup .ph--big { grid-area:big; }
#radish-cases .case-media--popup .ph--r1 { grid-area:r1; aspect-ratio:16/7; }
#radish-cases .case-media--popup .ph--r2 { grid-area:r2; aspect-ratio:16/7; }
/* NHK POP UP 文字標籤:字級對齊 GLOBAL MARKET EXPANSION、水平置中 */
#radish-cases .ph--label,#radish-cases .ph--vlabel { display:flex; align-items:center; justify-content:center; font-weight:900; font-size:clamp(32px,4.4vw,56px); color:var(--sage); letter-spacing:.02em; line-height:1; text-align:center; }
#radish-cases .case-media--nhk .ph--label { grid-area:l; justify-content:center; }
#radish-cases .case-media--popup .ph--vlabel { grid-area:label; writing-mode:vertical-rl; }

/* case head：GLOBAL（case1）+ 標籤（右） */
#radish-cases .case-head { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin-bottom:14px; }
#radish-cases .case-head--no-big { justify-content:flex-end; }
#radish-cases .case-bigtitle { font-size:clamp(32px,4.4vw,56px); font-weight:900; color:var(--sage); line-height:1; letter-spacing:.01em; }
/* NHK POP UP 手機專用大標(桌機/平板隱藏,collage 內用原本標籤) */
#radish-cases .nhk-mtitle { display:none; }
#radish-cases .case-tag { flex:0 0 auto; border:2px solid var(--sage); color:#fff; font-weight:900; font-size:clamp(15px,1.4vw,19px); line-height:1.2; text-align:center; border-radius:14px; padding:10px 14px; letter-spacing:.08em; }

/* 標題列：icon + 標題（左） / MORE（右） */
#radish-cases .case-titlerow { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:18px; }
#radish-cases .case-title { display:flex; align-items:center; gap:10px; font-size:clamp(18px,1.7vw,23px); font-weight:900; color:var(--sage); letter-spacing:.03em; }
#radish-cases .case-title__i { flex:0 0 auto; width:auto; height:26px; }
#radish-cases .btn-more { flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; background:var(--sage); color:var(--red); border-radius:999px; font-weight:900; letter-spacing:.12em; font-size:14px; padding:.5em 1.6em; transition:.2s; }
#radish-cases .btn-more:hover { background:#fff; }

/* body：左 meta（底線列）/ 中 desc1 / 右 desc2 */
#radish-cases .case-body { display:grid; grid-template-columns:minmax(180px,22%) 1fr 1fr; gap:clamp(20px,3vw,50px); align-items:stretch; }
/* meta:三格等高(≥54px),文字垂直置中,line1/line2 在格底,line3=案例分隔線 */
#radish-cases .case-facts { display:flex; flex-direction:column; height:100%; }
#radish-cases .case-facts li { flex:1; min-height:54px; display:flex; align-items:center; color:var(--sage); font-weight:700; font-size:clamp(14px,1.05vw,16px); letter-spacing:.04em; border-bottom:1.5px solid var(--sage); }
#radish-cases .case-facts li:last-child { border-bottom:0; }
#radish-cases .case-desc { font-size:14px; line-height:1.95; color:rgba(255,255,255,.92); margin:0; letter-spacing:.02em; }

/* ---------- FOOTER：共用 radish-footer;此頁 margin-top 桌機 160 / 平板 40 ---------- */
#radish-cases .radish-footer { margin-top:160px; }

/* ---------- 平板 ≤999.98 ---------- */
@media (max-width:999.98px) {
  #radish-cases .radish-footer { margin-top:40px; }
  #radish-cases .case-body { grid-template-columns:1fr 1fr; align-items:start; }
  #radish-cases .case-body .case-facts { grid-column:1/-1; flex-direction:row; flex-wrap:wrap; gap:10px 24px; height:auto; }
  #radish-cases .case-facts li { flex:0 0 auto; min-height:0; padding-bottom:0; border-bottom:0; }
}

/* ---------- 手機 ≤689.98 ---------- */
@media (max-width:689.98px) {
  /* P6:hero 側欄改水平一列(台灣→日本 台湾発日本行き 國際拓銷),GO JAPAN 在下 */
  #radish-cases .chero-top { flex-direction:column; gap:14px; }
  #radish-cases .hero-side { flex-direction:row; align-items:center; flex-wrap:nowrap; gap:0 10px; }
  #radish-cases .hero-side__top { align-items:center; gap:10px; flex:0 0 auto; }
  #radish-cases .hero-side__col { flex-direction:row; align-items:center; gap:6px; }
  #radish-cases .hero-side__cn { writing-mode:horizontal-tb; font-size:19px; }
  #radish-cases .hero-side__arrow { width:30px; height:2px; }
  #radish-cases .hero-side__arrow::after { bottom:auto; top:50%; left:auto; right:-4px; transform:translateY(-50%); border-top-color:transparent; border-left-color:#fff; }
  #radish-cases .hero-side__jp { writing-mode:horizontal-tb; margin-top:0; font-size:13px; white-space:nowrap; }
  /* P4:國際拓銷 badge 字級對齊案例標籤(15px) */
  #radish-cases .hero-badge { flex:0 0 auto; padding:7px 11px; }
  /* P3:案例底部 padding 20px;手機 footer margin-top 0 */
  #radish-cases .case { padding-bottom:20px; }
  #radish-cases .case:first-child { padding-top:20px; }
  #radish-cases .radish-footer { margin-top:0; }
  /* 手機:NHK POP UP 改成 case-head 大標(如 GLOBAL MARKET EXPANSION),collage 內標籤隱藏 */
  #radish-cases .nhk-mtitle { display:block; }
  #radish-cases .case-head--no-big { justify-content:space-between; }
  #radish-cases .case-media--nhk .ph--label,#radish-cases .case-media--popup .ph--vlabel { display:none; }
  /* 案例圖組(移除 label 格) */
  #radish-cases .case-media--row { grid-template-columns:1fr; }
  #radish-cases .case-media--nhk { grid-template-columns:1fr 1fr; grid-template-areas:"a a" "b b" "c d"; }
  #radish-cases .case-media--nhk .ph--a { aspect-ratio:16/10; }
  #radish-cases .case-media--nhk .ph--b { aspect-ratio:16/9; }
  #radish-cases .case-media--popup { grid-template-columns:1fr; grid-template-areas:"big" "r1" "r2"; }
  #radish-cases .case-body { grid-template-columns:1fr; }
}
