/*
Theme Name: SWELL CHILD
Theme URI: https://swell-theme.com/
Description: SWELL Child Theme
Author: LOOS,Inc.
Author URI: https://loos.co.jp/
Template: swell
Version: 1.0.0
*/


@charset "UTF-8";
/*
  SYSTRE Article UI Kit (for SWELL CHILD)
  - Scope: .systre-article (wrap your generated HTML with this class if possible)
  - No inline styles required
  - Safe defaults, readable tables, strong hierarchy, “official” feel
  - Includes .systre-topcards + .systre-bt styles + hard patches for WP/SWELL auto markup
*/
/* =========================
   SYSTRE TOPCARDS ONLY
   - affects only .systre-topcards and its children
   ========================= */

:root{
  --systre-panel:#ffffff;
  --systre-text:#0f172a;
  --systre-muted:#5b6476;
  --systre-border:rgba(15,23,42,.10);
  --systre-shadow:0 10px 28px rgba(15,23,42,.10);
  --systre-shadow2:0 18px 44px rgba(15,23,42,.14);
  --systre-radius:18px;
  --systre-accent:#FF7A3D;
  --systre-accent2:rgba(255,122,61,.18);
  --systre-ring:0 0 0 3px rgba(255,122,61,.22),0 0 0 1px rgba(255,122,61,.42);
  --systre-ease:cubic-bezier(.2,.8,.2,1);
  --systre-fast:160ms var(--systre-ease);
  --systre-med:220ms var(--systre-ease);
}

@media (prefers-color-scheme: dark){
  :root{
    --systre-panel:rgba(255,255,255,.06);
    --systre-text:#e8eefc;
    --systre-muted:rgba(232,238,252,.72);
    --systre-border:rgba(255,255,255,.12);
    --systre-shadow:0 14px 34px rgba(0,0,0,.45);
    --systre-shadow2:0 22px 64px rgba(0,0,0,.55);
    --systre-ring:0 0 0 3px rgba(255,122,61,.18),0 0 0 1px rgba(255,122,61,.38);
  }
}

/* Section */
.systre-topcards{
  margin:14px 0 18px;
  background:
    radial-gradient(1200px 520px at 18% -10%, var(--systre-accent2), transparent 58%),
    radial-gradient(900px 480px at 95% 0%, rgba(99,102,241,.10), transparent 56%),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 34%);
  border:1px solid var(--systre-border);
  border-radius:calc(var(--systre-radius) + 6px);
  padding:clamp(14px, 2.2vw, 22px);
  box-shadow:var(--systre-shadow);
  overflow:hidden;
}
@media (prefers-color-scheme: dark){
  .systre-topcards{
    background:
      radial-gradient(1200px 520px at 18% -10%, rgba(255,122,61,.12), transparent 58%),
      radial-gradient(900px 480px at 95% 0%, rgba(99,102,241,.12), transparent 56%),
      linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0) 36%);
  }
}

/* Grid */
.systre-topcards__grid{
  display:grid;
  grid-template-columns:repeat(12, minmax(0,1fr));
  gap:clamp(12px, 1.6vw, 16px);
}
.systre-topcards__grid > .systre-ea-card{ grid-column:span 12; }
@media (min-width:640px){
  .systre-topcards__grid > .systre-ea-card{ grid-column:span 6; }
}
@media (min-width:980px){
  .systre-topcards__grid > .systre-ea-card{ grid-column:span 4; }
}
@media (min-width:980px){
  .systre-topcards.systre-topcards--5 .systre-topcards__grid > .systre-ea-card:nth-child(4){ grid-column: 3 / span 4; }
  .systre-topcards.systre-topcards--5 .systre-topcards__grid > .systre-ea-card:nth-child(5){ grid-column: 7 / span 4; }
}

/* Card */
.systre-topcards .systre-ea-card{
  background:var(--systre-panel);
  border:1px solid var(--systre-border);
  border-radius:20px;
  overflow:hidden;
  position:relative;
  transform:translateZ(0);
  box-shadow:0 1px 0 rgba(15,23,42,.05), 0 12px 28px rgba(15,23,42,.08);
  transition:transform var(--systre-med), box-shadow var(--systre-med), border-color var(--systre-med);
}
@media (hover:hover){
  .systre-topcards .systre-ea-card:hover{
    transform:translateY(-3px);
    box-shadow:var(--systre-shadow2);
    border-color:rgba(255,122,61,.26);
  }
}

/* Media */
.systre-topcards .systre-ea-card__media{
  display:block;
  position:relative;
  text-decoration:none;
  color:inherit;
  border-bottom:1px solid var(--systre-border);
  overflow:hidden;
  aspect-ratio:16/9;
  background:
    radial-gradient(900px 240px at 18% 0%, rgba(255,122,61,.18), transparent 58%),
    linear-gradient(180deg, rgba(15,23,42,.03), rgba(15,23,42,0));
}
@media (prefers-color-scheme: dark){
  .systre-topcards .systre-ea-card__media{
    background:
      radial-gradient(900px 240px at 18% 0%, rgba(255,122,61,.16), transparent 60%),
      linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0));
  }
}

/* Hard patch: WP/SWELL auto <br><p> */
.systre-topcards .systre-ea-card__media br,
.systre-topcards .systre-ea-card__media p{
  display:none !important;
  margin:0 !important;
  padding:0 !important;
}

/* Full-bleed image (img or placeholder div) */
.systre-topcards .systre-ea-card__media .systre-ea-card__img{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
  margin:0 !important;
  z-index:0 !important;
  transform:scale(1.0001);
  transition:transform var(--systre-med), filter var(--systre-med);
}
@media (hover:hover){
  .systre-topcards .systre-ea-card:hover .systre-ea-card__img{
    transform:scale(1.035);
    filter:saturate(1.05);
  }
}

/* Rank */
.systre-topcards .systre-ea-card__rank{
  position:absolute;
  left:12px;
  top:12px;
  z-index:2 !important;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 9px;
  border-radius:999px;
  background:rgba(255,255,255,.80);
  border:1px solid rgba(15,23,42,.10);
  box-shadow:0 10px 18px rgba(15,23,42,.12);
  backdrop-filter:blur(10px);
}
@media (prefers-color-scheme: dark){
  .systre-topcards .systre-ea-card__rank{
    background:rgba(8,12,20,.62);
    border:1px solid rgba(255,255,255,.12);
    box-shadow:0 12px 20px rgba(0,0,0,.38);
  }
}
.systre-topcards .systre-ea-card__rankNo{
  width:26px;
  height:26px;
  border-radius:999px;
  display:inline-grid;
  place-items:center;
  font-weight:900;
  letter-spacing:.02em;
  color:#fff;
  background:linear-gradient(135deg, #FF7A3D, #ff9a3d);
  box-shadow:0 10px 18px rgba(255,122,61,.25);
}
.systre-topcards .systre-ea-card__rankLabel{
  font-size:12px;
  font-weight:900;
  color:var(--systre-text);
  opacity:.86;
  white-space:nowrap;
}

/* Body */
.systre-topcards .systre-ea-card__body{
  padding:14px 14px 16px;
  display:grid;
  gap:8px;
}
.systre-topcards .systre-ea-card__title{
  margin:0;
  font-size:clamp(15px, 1.35vw, 17px);
  line-height:1.28;
  font-weight:900;
  letter-spacing:.01em;
  color:var(--systre-text);
}
.systre-topcards .systre-ea-card__lead{
  margin:0;
  color:var(--systre-muted);
  font-size:13px;
  line-height:1.55;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* Chip */
.systre-topcards .systre-ea-card__chips{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.systre-topcards .systre-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  font-size:11.5px;
  font-weight:950;
  color:var(--systre-text);
  background:linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.65));
  border:1px solid var(--systre-border);
  box-shadow:0 1px 0 rgba(15,23,42,.05);
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
@media (prefers-color-scheme: dark){
  .systre-topcards .systre-chip{
    background:rgba(255,255,255,.07);
    border-color:rgba(255,255,255,.12);
  }
}
.systre-topcards .systre-chip::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:999px;
  background:var(--systre-accent);
  box-shadow:0 0 0 3px rgba(255,122,61,.20);
  flex:0 0 auto;
}

/* KV */
.systre-topcards .systre-ea-card__kv{
  margin:0;
  padding:9px 10px;
  border-radius:14px;
  border:1px solid var(--systre-border);
  background:linear-gradient(180deg, rgba(15,23,42,.02), rgba(15,23,42,0));
}
@media (prefers-color-scheme: dark){
  .systre-topcards .systre-ea-card__kv{
    background:rgba(255,255,255,.05);
    border-color:rgba(255,255,255,.12);
  }
}
.systre-topcards .systre-ea-card__kv .systre-kv{
  display:grid;
  grid-template-columns:72px 1fr;
  gap:10px;
  align-items:baseline;
}
.systre-topcards .systre-ea-card__kv dt{
  margin:0;
  font-size:11.5px;
  font-weight:900;
  color:var(--systre-muted);
  letter-spacing:.02em;
  white-space:nowrap;
}
.systre-topcards .systre-ea-card__kv dd{
  margin:0;
  font-size:12.5px;
  font-weight:900;
  color:var(--systre-text);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Actions */
.systre-topcards .systre-ea-card__actions{ margin-top:2px; }
.systre-topcards .systre-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  padding:10px 12px;
  border-radius:14px;
  font-weight:900;
  font-size:13px;
  text-decoration:none;
  color:#fff;
  background:linear-gradient(135deg, #FF7A3D, #ff9a3d);
  border:1px solid rgba(255,122,61,.35);
  box-shadow:0 10px 18px rgba(255,122,61,.25), 0 1px 0 rgba(255,255,255,.35) inset;
  transition:transform var(--systre-fast), filter var(--systre-fast), box-shadow var(--systre-fast);
}
@media (hover:hover){
  .systre-topcards .systre-btn:hover{
    transform:translateY(-1px);
    filter:brightness(1.02) saturate(1.02);
    box-shadow:0 14px 26px rgba(255,122,61,.30), 0 1px 0 rgba(255,255,255,.35) inset;
  }
}

/* Focus */
.systre-topcards .systre-ea-card__media:focus-visible,
.systre-topcards .systre-btn:focus-visible{
  outline:none;
  box-shadow:var(--systre-ring);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .systre-topcards *{ transition:none !important; animation:none !important; }
  .systre-topcards .systre-ea-card:hover{ transform:none !important; }
}


/* ========================
   FG LINKLIST (shortcode)
   ======================== */
.fg-linklist{display:grid;grid-template-columns:repeat(3,1fr);gap:5px 6px}
.fg-linklist__item{display:flex;align-items:center;gap:5px;padding:6px 10px;background:#f8f9fb;border:1px solid #e2e6ed;border-radius:6px;color:#334155;font-size:13px;font-weight:500;line-height:1.3;text-decoration:none;transition:all .2s ease}
.fg-linklist__item:hover{background:#eef2ff;border-color:#818cf8;color:#4338ca;transform:translateY(-1px);box-shadow:0 2px 8px rgba(99,102,241,.12)}
.fg-linklist__icon{flex-shrink:0;display:flex;align-items:center;color:#94a3b8;transition:color .2s}
.fg-linklist__item:hover .fg-linklist__icon{color:#6366f1}
.fg-linklist__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:959px){.fg-linklist{grid-template-columns:repeat(2,1fr)}}
@media(max-width:599px){.fg-linklist{grid-template-columns:repeat(2,1fr);gap:4px}.fg-linklist__item{padding:5px 8px;font-size:12.5px}}

/* ========================
   Category header image fix
   ======================== */
.p-termHead__thumbWrap{aspect-ratio:auto;height:auto}.p-termHead__thumbImg.u-obf-cover{object-fit:contain;width:100%;height:auto}

/* ========================================
   fg-tabs - Custom tab switcher
   ======================================== */
.fg-tabs__nav{display:flex;gap:0;margin-bottom:0}
.fg-tabs__btn{flex:1;padding:12px 20px;font-size:15px;font-weight:700;border:2px solid #e2e6ed;border-bottom:none;background:#f1f3f5;color:#64748b;cursor:pointer;border-radius:8px 8px 0 0;transition:all .2s}
.fg-tabs__btn.is-active{background:#fff;color:#2563eb;border-color:#2563eb;border-bottom:2px solid #fff;position:relative;z-index:1;margin-bottom:-2px}
.fg-tabs__btn:hover:not(.is-active){background:#e9ecef;color:#475569}
.fg-tabs__panel{display:none;padding:20px;border:2px solid #2563eb;border-radius:0 0 8px 8px}
.fg-tabs__panel.is-active{display:block}
@media(max-width:599px){.fg-tabs__btn{padding:10px 12px;font-size:14px}.fg-tabs__panel{padding:12px}}
