/* =========================
   Jun Sports Hokkaido - NEWS
   Unified CSS (RB-style base + Mobile SNS option)
   - Base: Bright (RB-like)
   - List: Card grid / Detail: Article card
   - Mobile: IG-like list + X-like detail (at bottom)
   ========================= */

:root{
  --bg: #f3f4f6;                 /* page bg */
  --panel: #ffffff;              /* card bg */
  --line: rgba(0,0,0,.12);       /* border */
  --text: #111827;               /* text */
  --muted: rgba(17,24,39,.65);   /* sub text */

  --navy: #071a3a;
  --navy2:#020714;
  --gold1:#C9A24D;
  --gold2:#F5E1A4;

  --shadow: 0 14px 32px rgba(0,0,0,.12);
  --shadow2: 0 22px 42px rgba(0,0,0,.16);

  --radius: 18px;
  --radius2: 22px;

  --container: 1200px;
  --gap: 28px;

  --header-h: 0px;              /* fixed header height if needed */
}

/* =========================
   Page / Layout
   ========================= */
.news-page{
  background: linear-gradient(180deg, #F5F7FB 0%, #EDF1F7 100%);
  padding: calc(64px + var(--header-h)) 0 84px;
}

.news-container{
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 255px;
  gap: 24px;
}

/* =========================
   Hero
   ========================= */
.news-hero{
  background:
    radial-gradient(1200px 420px at 50% 0%, rgba(201,162,77,.22), transparent 55%),
    linear-gradient(180deg, var(--navy), var(--navy2));
  color: #fff;
  text-align: center;
  padding: calc(42px + var(--header-h)) 0 27px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  margin-top: 40px;
}

.news-hero--thin{
  padding: calc(32px + var(--header-h)) 0 22px;
}

.news-hero__inner{
  width: min(var(--container), 92vw);
  margin: 0 auto;
}

.news-hero__title{
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: .10em;
  font-weight: 900;
  margin: 0;
}

.news-hero__lead{
  margin: 10px 0 0;
  opacity: .85;
  letter-spacing: .06em;
  font-weight: 700;
}

/* =========================
   List (news_list)
   ========================= */

/* grid wrapper you are using */
.news-main-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

/* card */
.news-card{
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease;
  height: fit-content;
}

.news-card > a{
  display: block;
  color: inherit;
  text-decoration: none;
}

.news-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* thumb */
.news-card__thumb{
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  position: relative;
}

.news-card__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card__noimg{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: .18em;
  color: rgba(255,255,255,.92);
}

/* optional badge on image */
.news-badge{
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;

  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .10em;

  color: #111;
  background: linear-gradient(135deg, var(--gold1), var(--gold2));
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
}

/* body */
.news-card__body{
  padding: 16px 16px 18px;
}

.news-card__date{
  font-size: 12px;
  color: rgba(17,24,39,.55);
  font-weight: 800;
  letter-spacing: .06em;
  margin: 0;
}

.news-card__category{
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  display: inline-block;
  vertical-align: middle;
  padding-left: 0;
}

/* category colors */
.news-card__category.cat-team{
  background: rgba(10,95,255,.18);
  color: #0a5fff;
}
.news-card__category.cat-top{
  background: rgba(120,120,120,.18);
  color: #444;
}
.news-card__category.cat-goods{
  background: linear-gradient(135deg, #C9A24D, #F5E1A4);
  color: #1a1a1a;
}
.news-card__category.cat-event{
  background: rgba(27,167,166,.18);
  color: #1ba7a6;
}

.news-card__title{
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  margin: 10px 0 0;
  color: var(--text);

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================
   Sidebar (shared)
   ========================= */
.news-side{
  position: sticky;
  top: calc(16px + var(--header-h));
  align-self: start;
}

.side-box{
  background: #fff;
  border: 1px solid var(--line);
  padding: 16px 16px 10px;
  margin-bottom: 18px;
}

.side-box h3{
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .18em;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(7,26,58,.15);
}

.side-box ul{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.side-box a{
  display: block;
  padding: 10px 10px;
  border-radius: 5px;
  text-decoration: none;
  color: rgba(17,24,39,.78);
  font-weight: 600;
  letter-spacing: .04em;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(0,0,0,.02);
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
  font-size: 0.85rem;
}

.side-box a:hover{
  transform: translateY(-1px);
  background: rgba(7,26,58,.06);
  border-color: rgba(7,26,58,.14);
  color: rgba(17,24,39,.92);
}

/* =========================
   Filter row (optional)
   ========================= */
.news-filter{
  grid-column: 1 / -1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}

.news-filter__row{
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.news-filter__chips{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip{
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  color: rgba(17,24,39,.72);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .06em;
  background: rgba(0,0,0,.02);
}

.chip.is-active{
  border-color: rgba(201,162,77,.55);
  background: linear-gradient(135deg, rgba(201,162,77,.20), rgba(245,225,164,.18));
  color: rgba(17,24,39,.92);
}

.news-filter__search{
  display: flex;
  gap: 8px;
  align-items: center;
}

.search{
  width: min(360px, 60vw);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,.9);
  color: var(--text);
}

/* =========================
   Detail (news_detail)
   ========================= */
.news-wrap{
  padding: 28px 0 80px;
  background: linear-gradient(180deg, #F5F7FB 0%, #EDF1F7 100%);
}

/* detail grid wrapper you use */
.news-grid{
  width: min(var(--container), 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 255px;
  gap: 24px;
}

/* aside wrapper for detail (if exists) */
.news-detail_aside{
  margin-top: 37.6px;
}

/* breadcrumbs */
.breadcrumbs{
  color: rgba(17,24,39,.70);
  font-weight: 800;
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
}
.breadcrumbs a{
  color: rgba(17,24,39,.70);
  text-decoration: none;
}
.breadcrumbs a:hover{
  color: rgba(17,24,39,.92);
}

/* article */
.news-article {
  background: transparent;
  padding: 0;
  color: var(--text);
  border-radius: 0;
}
@media (min-width: 641px) {
  .news-article {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 20px 40px;
    /*border-radius: var(--radius);*/
  }
}


.news-article__meta{
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  color: rgba(17,24,39,.70);
  font-weight: 800;
}

.news-article__title{
  color: var(--text);
  font-weight: 900;
  margin: 0 0 14px;
  line-height: 1.25;
}

.news-article__body{
  color: var(--text);
  line-height: 1.9;
  border-top: 1px solid rgba(7, 26, 58, .15);
  padding-top: 14px;
}

.news-article__body h2,
.news-article__body h3{
  margin-top: 1.4em;
}

.news-article__body a{
  color: #0a5fff;
  font-weight: 800;
}

.news-article__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* list marker custom (▶) */
.news-article__body ul{
  list-style: none;
  padding-left: 0;
}
.news-article__body li{
  position: relative;
  padding-left: 1.2em;
}
.news-article__body li::before{
  content: "▶";
  position: absolute;
  left: 0;
  top: .1em;
  font-size: .8em;
  color: var(--gold1);
}


/* =========================
   Responsive (Tablet)
   ========================= */
@media (max-width: 1100px){
  .news-container{
    grid-template-columns: 1fr 300px;
    gap: 34px;
  }
  .news-main-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px){
  .news-container{
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .news-side{
    position: static;
  }
}

@media (max-width: 980px){
  .news-grid{
    grid-template-columns: 1fr;
  }
}

/* =========================
   Mobile (ONLY) - keep at bottom
   - List: IG-like (3 columns) + meta overlay
   - Detail: X-like (compact + fixed action bar)
   ========================= */
@media (max-width: 640px){

  /* page */
  .news-page{
    padding: var(--header-h);
    min-height: 325px;
  }
  .news-container{
    padding: 0;
  }
  .news-main-grid {
    height: auto;
  }

  /* hero compact */
  .news-hero{
    padding: calc(24px + var(--header-h)) 0 14px;
  }
  .news-hero__title{
    font-size: 20px;
    letter-spacing: .10em;
  }
  .news-hero__lead{
    display: none;
  }

  /* hide sidebars for mobile SNS feel */
  .news-side,
  .news-aside,
  .news-detail_aside{
    display: none;
  }

  /* =====================
     LIST: 3-column grid
     ===================== */
  .news-main-grid,
  .news-cards{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
  }

  .news-card{
    position: relative;          /* ★ overlay基準 */
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    transform: none;
    overflow: hidden;            /* ★ はみ出し防止 */
  }
  .news-card:hover{
    transform: none;
    box-shadow: none;
  }

  /* thumb */
  .news-card__thumb{
    aspect-ratio: 4 / 5;
    border-radius: 0;
  }

  /* meta overlay (date + category only) */
  .news-card__body{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;

    display: block;
    padding: 10px 8px 10px;

    background: linear-gradient(
      180deg,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,.55) 70%,
      rgba(0,0,0,.78) 100%
    );
  }

  .news-card__date{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    margin: 0;
    line-height: 1.2;
    color: rgba(255,255,255,.92);
  }

  .news-card__category{
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 0;
    white-space: nowrap;
  }

  /* IG感を維持してテキストは隠す */
  .news-card__title,
  .news-card__excerpt,
  .news-card__meta{
    display: none;
  }

  /* =====================
     DETAIL: X-like post
     ===================== */
  .breadcrumbs{
    font-size: 12px;
    opacity: .85;
    margin: 0 0 8px;
  }

  .news-article{
    padding: 0 0 8px;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid rgba(0,0,0,.12);
    border-bottom: 1px solid rgba(0,0,0,.12);
    background: linear-gradient(180deg, #F5F7FB 0%, #EDF1F7 100%);
  }

  .news-article__meta{
    font-size: 12px;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0;
  }

  .news-article__title{
    font-size: 19px;
    line-height: 1.35;
    margin: 6px 0 10px;
  }

  .news-article__body{
    font-size: 15px;
  }

  .news-article__body img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    margin: 12px 0;
  }

  /* fixed action bar */
  .news-article__actions{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;

    padding: 10px 12px 12px;
    background: rgba(255,255,255,.90);
    border-top: 1px solid rgba(0,0,0,.10);
    backdrop-filter: blur(10px);

    margin: 0;
  }

  .news-article__actions .btn{
    width: 100%;
    padding: 10px 0;
    border-radius: 12px;
    font-size: 13px;
  }

  .news-wrap{
    padding-bottom: 0px; /* fixed bar space */
  }

/* =========================
   Improve readability (mobile list overlay)
   ========================= */

/* 下部オーバーレイを強化 */
.news-card__body{
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,.55) 55%,
    rgba(0,0,0,.88) 100%
  );
  padding: 12px 8px 10px;
}

/* 日付：白＋影で可読性UP */
.news-card__date{
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  text-shadow: 0 2px 6px rgba(0,0,0,.6);
}

/* カテゴリ：必ず読める“黒帯バッジ” */
.news-card__category{
  background: rgba(0,0,0,.75) !important;
  color: #ffffff !important;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 999px;
  text-shadow: none;
}

/* カテゴリ色は「縁 or 下線」で表現（色は残す） */
.news-card__category.cat-team{
  box-shadow: inset 0 -2px 0 #0a5fff;
}
.news-card__category.cat-top{
  box-shadow: inset 0 -2px 0 #999;
}
.news-card__category.cat-goods{
  box-shadow: inset 0 -2px 0 #C9A24D;
}
.news-card__category.cat-event{
  box-shadow: inset 0 -2px 0 #1ba7a6;
}




}

/* extra small */
@media (max-width: 390px){
  .news-main-grid,
  .news-cards{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* share-box only for detail */
.news-article .share-box{
  margin: 10px 0 14px;
}

.news-article .share-box__list{
  list-style: none;
  padding: 0;
  margin: 0;

  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.news-article .share-box__btn{
  width: 40px;
  height: 40px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
}

.news-article .share-box__btn i{
  font-size: 30px;
  line-height: 1;
}

.news-article .share-box__btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(0,0,0,.14);
}

/* sr-only */
.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}


.ttl-share{
  text-align: center;
  font-weight: 900;
  letter-spacing: .18em;
  font-size: 14px;
  margin: 14px 0 14px;
}

.share-list{
  display: flex;
  justify-content: center;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.share-list a{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  color: #111;
  font-size: 18px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.share-list a:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.ttl-share{
  display: flex;
  align-items: center;
  gap: 12px;
}
.ttl-share::before,
.ttl-share::after{
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,.2);
}


.news-article__title {
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.02em;

  /* ここが肝 */
  /*max-width: 18em;         行幅を制限して自然改行 */
  word-break: keep-all;  /* 日本語を変な位置で切らない */
  overflow-wrap: break-word;
}




.news-article__content{
  line-height: 1.95;
  letter-spacing: .02em;
}

/* 本文内画像 */
.news-article__content img{
  max-width: 100%;
  height: auto;
  display: block;
  margin: 18px auto;
  border-radius: 16px;
}

/* 画像＋キャプション運用（CKEditorでfigure/figcaptionを入れる想定） */
.news-article__content figure{
  margin: 22px 0;
}
.news-article__content figcaption{
  margin-top: 8px;
  font-size: .92em;
  opacity: .72;
  text-align: center;
}

/* 引用（Numberっぽい） */
.news-article__content blockquote{
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 4px solid rgba(0,0,0,.85);
  background: rgba(0,0,0,.04);
}
.news-article__content blockquote p{
  margin: 0;
  font-weight: 800;
  letter-spacing: .08em;
}

/* ===== mobile fix: main が右に寄るのを矯正 ===== */
@media (max-width: 768px){

  /* 2カラム構造をモバイルでは縦積みに固定 */
  .news-grid{
    display: block !important;   /* flex / grid を解除して事故を止める */
  }

  /* main を常にフル幅＆中央基準に */
  main.news-main{
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;       /* 親でpaddingを持つ方が安定 */
    box-sizing: border-box;
  }

  /* aside がある場合は下へ（非表示ならそのままでもOK） */
  aside.news-side{
    width: 100% !important;
    margin: 16px auto 0 !important;
  }
}



