/*
Theme Name: GEM_Theme_1117（Jリーグ結果追加）
Description: Converted from HTML to WordPress
Author: ChatGPT
Version: 1.0
*/
@import url('css/main.css');
@import url('css/tailwind.css');


/* ===== グローバルナビ共通 ===== */

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* メニューリスト（PC時） */
.header-nav__list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav__list > li {
  position: relative;
}

.header-nav__list > li > a {
  display: inline-block;
  padding: 0.25rem 0;
  color: #fff;
  text-decoration: none;
}

/* サブメニュー（ドロップダウン） */
.header-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  padding: 8px 0;
  margin-top: 8px;
  list-style: none;
  background: #111;
  border: 1px solid #333;
  border-radius: 4px;
  display: none;
  z-index: 1000;
}

.header-nav .sub-menu li a {
  display: block;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.header-nav .sub-menu li a:hover {
  background: #222;
}

/* 親メニューが開いているとき */
.header-nav__list > li.is-open > .sub-menu {
  display: block;
}

/* ===== ハンバーガー（スマホ用） ===== */

.header-nav__toggle {
  display: none;          /* PCでは非表示 */
  width: 32px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.header-nav__toggle span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
  border-radius: 9999px;
  transition: transform .2s ease, top .2s ease, opacity .2s ease;
}

.header-nav__toggle span:nth-child(1) { top: 0; }
.header-nav__toggle span:nth-child(2) { top: 11px; }
.header-nav__toggle span:nth-child(3) { top: 22px; }

/* 開いているときの×アイコン */
.header-nav__toggle.is-open span:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}
.header-nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.header-nav__toggle.is-open span:nth-child(3) {
  top: 11px;
  transform: rotate(-45deg);
}

/* ===== スマホレイアウト ===== */

@media (max-width: 768px) {
  /* ハンバーガー表示 */
  .header-nav__toggle {
    display: block;
  }

  /* メニューは縦並びでヘッダ下に展開 */
  .header-nav {
    position: fixed;
    inset: 60px 0 auto 0;      /* ヘッダの高さに合わせて調整 */
    background: rgba(0,0,0,.95);
    transform: translateY(-100%);
    transition: transform .2s ease;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 12px 16px 24px;
    z-index: 999;
  }

  .header-nav.is-open {
    transform: translateY(0);
  }

  .header-nav__list {
    display: block;
  }

  .header-nav__list > li {
    margin-bottom: 4px;
  }

  .header-nav__list > li > a {
    display: block;
    padding: 8px 0;
  }

  /* サブメニューも縦に */
  .header-nav .sub-menu {
    position: static;
    border: none;
    background: transparent;
    padding: 4px 0 8px;
    margin: 0 0 4px 12px;
    display: none;  /* is-open時だけ表示 */
  }

  .header-nav__list > li.is-open > .sub-menu {
    display: block;
  }

  .header-nav .sub-menu li a {
    padding: 4px 0;
    font-size: 0.85rem;
    opacity: 0.9;
  }
}

/* ===== PCデフォルト表示 ===== */
@media (min-width: 769px) {
  .header-nav {
    display: block;
  }
}

/* ===== スマホ時：デフォルト非表示 ===== */
@media (max-width: 768px) {
  .header-nav {
    position: fixed;
    inset: 60px 0 auto 0;      /* 固定ヘッダの高さに合わせて調整（例：60px） */
    background: rgba(0,0,0,.95);
    transform: translateY(-100%);
    display: none;             /* ★ デフォルトは非表示 */
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 12px 16px 24px;
    z-index: 999;
  }

  /* ハンバーガーで開いたときだけ表示 */
  .header-nav.is-open {
    display: block;
    transform: translateY(0);
  }

  .header-nav__list {
    display: block;
  }

  .header-nav__list > li {
    margin-bottom: 4px;
  }

  .header-nav__list > li > a {
    display: block;
    padding: 8px 0;
  }
}




/* ====== Manual Slider (content-width 100%) ====== */
.gem-manual-slider .swiper {
  width: 100%; /* 親コンテンツ幅いっぱい（テーマのコンテンツ幅に追従） */
}
.gem-manual-slider .swiper-slide {
  height: auto;
}

/* ====== Media box (16:9・サムネ100%) ====== */
.gem-manual-slider .gem-slide-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 14px;
  background: #f2f4f7;
}
.gem-manual-slider .gem-slide-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gem-manual-slider .gem-thumb-placeholder {
  background: linear-gradient(180deg,#eaecef,#dfe3e8);
  width: 100%;
  height: 100%;
}

/* ====== Category pill (左上) ====== */
.gem-manual-slider .gem-slide-cat {
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.65);
  color: #fff;
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* ====== Title overlay box（左下固定・黒70%） ====== */
.gem-manual-slider .gem-title-box {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.7); /* 70% Black */
  padding: 18px 24px;             /* 余白はお好みで調整 */
  z-index: 1;
}
.gem-manual-slider .gem-slide-title {
  margin: 0;
  /* 少し大きめ */
  font-size: clamp(20px, 3.24vw, 26px);
  line-height: 1.35;
  font-weight: 800;
  color: #fff;                     /* 背景黒に対して白文字 */
}

.gem-manual-slider .gem-slide-title a,
.gem-manual-slider .gem-slide-title a:hover {
  text-decoration: none!important;
  -webkit-transition: all .3s ease-out;
  -moz-transition: all .3s ease-out;
  -ms-transition: all .3s ease-out;
  transition: all .3s ease-out;
}
.gem-manual-slider .gem-slide-title a:hover {
  opacity: 0.8;
  text-decoration: none!important;
  border:none;
}

/* ====== Link block ====== */
.gem-manual-slider .gem-slide {
  text-decoration: none;
  display: block;
}
.gem-manual-slider .gem-slide:hover .gem-slide-title {
}

/* ====== Swiper UI ====== */
.gem-manual-slider .swiper-button-prev,
.gem-manual-slider .swiper-button-next {
  color: #111827;
}
.gem-manual-slider .swiper-pagination-bullet { opacity: .4; }
.gem-manual-slider .swiper-pagination-bullet-active { opacity: 1; }

/* 微調整（多段表示時の間隔） */
@media (min-width: 768px) {
  .gem-manual-slider .swiper { padding-bottom: 8px; }

}

@media (max-width: 767px) {
  .gem-manual-slider .gem-slide-title {
    font-size: clamp(16px, 2.25vw, 20px);
    line-height: 1.35;                /* 背景黒に対して白文字 */
  }

  .gem-manual-slider .gem-slide-media {
    border-radius: 0px;
  }
}


.cat-tabs {
  --tab-fg: var(--gem-tab-fg, #1a202c);
  --tab-bg: var(--gem-tab-bg, #f1f5f9);
  --tab-active-fg: var(--gem-tab-active-fg, #fff);
  --tab-active-bg: var(--gem-tab-active-bg, #111827);
  --tab-border: var(--gem-tab-border, #e5e7eb);
  --link-fg: var(--gem-link-fg, #111827);
  --link-hover: var(--gem-link-hover, #0ea5e9);
  --muted: var(--gem-muted, #6b7280);
  --line: var(--gem-line, #e5e7eb);

  margin: clamp(16px, 3vw, 28px) auto;
  padding: 0 clamp(12px, 2.5vw, 20px);
  max-width: 1100px;
}

.screen-reader-text {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Tabs */
.cat-tabs__tablist {
  display: flex; gap: 8px;
  flex-wrap: nowrap; overflow-x: auto;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
.cat-tabs__tab {
  appearance: none;
  border: 1px solid var(--tab-border);
  background: var(--tab-bg); color: var(--tab-fg);
  border-radius: 9999px;
  padding: 8px 14px;
  font: 600 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  white-space: nowrap; cursor: pointer;
}
.cat-tabs__tab.is-active,
.cat-tabs__tab:focus-visible {
  outline: none;
  background: var(--tab-active-bg);
  color: var(--tab-active-fg);
  border-color: var(--tab-active-bg);
}

/* Panels */
.cat-tabs__panels { padding-top: 14px; }
.cat-tabs__panel[hidden] { display: none; }

/* Title list */
.post-titles {
  list-style: decimal;
  margin: 0;
  padding-left: 1.25em;
  display: grid; gap: 8px;
}
.post-titles__item {
  display: flex; gap: 8px; align-items: baseline;
  border-bottom: 1px dashed var(--line);
  padding: 8px 0;
}
.post-titles__link {
  flex: 1;
  text-decoration: none;
  color: var(--link-fg);
  font-weight: 600;
}
.post-titles__link:hover,
.post-titles__link:focus-visible {
  text-decoration: underline;
  color: var(--link-hover);
  outline: none;
}
.post-titles__date {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.post-titles__more { margin-top: 10px; text-align: right; }
.post-titles__more-link {
  font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor;
}

.titles-fallback__heading {
  font: 700 18px/1.2 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  margin: 8px 0 12px;
}

/* Dark scheme */
@media (prefers-color-scheme: dark) {
  .cat-tabs {
    --tab-fg:#e5e7eb; --tab-bg:#111827; --tab-border:#1f2937;
    --tab-active-fg:#111827; --tab-active-bg:#e5e7eb;
    --link-fg:#e5e7eb; --link-hover:#38bdf8; --muted:#9ca3af; --line:#1f2937;
  }
}

/* ===== Mobile: badge above title, date below title ===== */
@media (max-width: 640px){
  /* 1行レイアウト → 縦積み */
  .post-titles__item{
    flex-direction: column;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 3px;               /* モバイルは少し詰める */
    padding: 10px 0;
  }

  /* タイトルはブロック化して改行しやすく */
  .post-titles__link{
    display: block;
    line-height: 1.35;
    order: 1;               /* バッジの次、日付の前 */
    margin: 0;              /* 余白は下で調整 */
  }

  /* バッジは最上段に。横→縦で余白も調整 */
  .cat-badge{
    order: 0;
    margin: 0 0 4px 0;      /* 右余白→下余白に変更 */
  }

  /* 日付はタイトルの下に */
  .post-titles__date{
    order: 2;
    display: block;
    margin-top: 4px;
  }
}
/* ===== Mobile: badge above title, date below title ===== */
@media (max-width: 640px){
  /* 1行レイアウト → 縦積み */
  .post-titles__item{
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;               /* モバイルは少し詰める */
    padding: 10px 0;
  }

  /* タイトルはブロック化して改行しやすく */
  .post-titles__link{
    display: block;
    line-height: 1.35;
    order: 1;               /* バッジの次、日付の前 */
    margin: 0;              /* 余白は下で調整 */
  }

  /* バッジは最上段に。横→縦で余白も調整 */
  .cat-badge{
    order: 0;
    margin: 0 0 4px 0;      /* 右余白→下余白に変更 */
  }

  /* 日付はタイトルの下に */
  .post-titles__date{
    order: 2;
    display: block;
    margin-top: 4px;
  }
}






/* ===== Category Tabs (Titles Only) ===== */
.cat-tabs {
  --tab-fg: var(--gem-tab-fg, #1a202c);
  --tab-bg: var(--gem-tab-bg, #f1f5f9);
  --tab-active-fg: var(--gem-tab-active-fg, #fff);
  --tab-active-bg: var(--gem-tab-active-bg, #111827);
  --tab-border: var(--gem-tab-border, #e5e7eb);
  --link-fg: var(--gem-link-fg, #111827);
  --link-hover: var(--gem-link-hover, #0ea5e9);
  --muted: var(--gem-muted, #6b7280);
  --line: var(--gem-line, #e5e7eb);

  margin: clamp(16px, 3vw, 28px) auto;
  padding: 0 clamp(12px, 2.5vw, 20px);
  max-width: 1100px;
}

.screen-reader-text {
  position: absolute !important;
  height: 1px; width: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* Tabs */
.cat-tabs__tablist {
  display: flex; gap: 8px;
  flex-wrap: nowrap; overflow-x: auto;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
.cat-tabs__tab {
  appearance: none;
  border: 1px solid var(--tab-border);
  background: var(--tab-bg); color: var(--tab-fg);
  border-radius: 9999px;
  padding: 8px 14px;
  font: 600 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  white-space: nowrap; cursor: pointer;
}
.cat-tabs__tab.is-active,
.cat-tabs__tab:focus-visible {
  outline: none;
  background: var(--tab-active-bg);
  color: var(--tab-active-fg);
  border-color: var(--tab-active-bg);
}

/* Panels */
.cat-tabs__panels { padding-top: 14px; }
.cat-tabs__panel[hidden] { display: none; }

/* Titles */
.post-titles {
  list-style: decimal;
  margin: 0; padding-left: 1.25em;
  display: grid; gap: 8px;
}
.post-titles__item {
  display: flex; gap: 10px; align-items: center;
  border-bottom: 1px dashed var(--line);
  padding: 8px 0;
}
.post-titles__link {
  flex: 1; min-width: 0;
  text-decoration: none;
  color: var(--link-fg);
  font-weight: 600;
}
.post-titles__link:hover,
.post-titles__link:focus-visible {
  text-decoration: underline;
  color: var(--link-hover);
  outline: none;
}
.post-titles__date {
  color: var(--muted);
  font-size: 12px; white-space: nowrap;
}
.post-titles__more { margin-top: 10px; text-align: right; }
.post-titles__more-link { font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor; }
.post-titles__empty { color: var(--muted); }
.titles-fallback__heading {
  font: 700 18px/1.2 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  margin: 8px 0 12px;
}

/* ===== Category badge (Gray background always) ===== */
.cat-badge{
  --badge-bg: #e5e7eb;   /* グレー背景（固定） */
  --badge-fg: #111827;   /* 文字色は濃いグレー */
  --badge-dot: #9ca3af;  /* デフォルトのドット色（親カテゴリのみ等） */

  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  margin-right: 8px;
  border-radius: 9999px;
  background: var(--badge-bg);
  color: var(--badge-fg);
  font: 700 11px/1 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  letter-spacing: .02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.cat-badge__dot{
  width: 8px; height: 8px; border-radius: 9999px;
  background: var(--badge-dot); /* 子カテゴリありなら各色に上書き（inline style） */
  opacity: 1;
}
.cat-badge__text{ transform: translateY(.5px); }

/* Dark scheme */
@media (prefers-color-scheme: dark) {
  .cat-tabs {
    --tab-fg:#e5e7eb; --tab-bg:#111827; --tab-border:#1f2937;
    --tab-active-fg:#111827; --tab-active-bg:#e5e7eb;
    --link-fg:#e5e7eb; --link-hover:#38bdf8; --muted:#9ca3af; --line:#1f2937;
  }
}


/* ===== ページャー共通デザイン（カテゴリ用） ===== */

/* paginate_links(type=list) の <ul class="page-numbers"> 対応 */
.category ul.page-numbers {
  display: flex;           /* 横並び */
  flex-wrap: wrap;
  justify-content: center; /* 中央寄せ */
  gap: 8px;                /* ボタン同士の余白 */
  list-style: none;        /* 先頭の「・」を消す */
  padding: 0;
  margin: 24px 0;
}

.category ul.page-numbers li {
  margin: 0;
}

/* 「次の12件」と同じボタン風デザインにする部分 */
/* ここは実際の「次の12件」ボタンのスタイルに合わせて色など調整してください */
.category ul.page-numbers a,
.category ul.page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;      /* 丸いボタン */
  font-size: 0.875rem;
  text-decoration: none;
  border: 1px solid #111827;  /* 「次の12件」と同系の色に変更してください */
  background: #111827;        /* ここも同じ色に */
  color: #fff;                /* 文字色も合わせる */
  box-sizing: border-box;
}

/* ========================================
   WINTER SPORTS カテゴリ専用ヒーロー
   ======================================== */
.winter-hero {
  background: radial-gradient(circle at top left, #1e293b 0, #020617 55%, #000 100%);
  color: #f9fafb;
  padding: 40px 0 32px;
  margin-bottom: 40px;
  font-size: 16px; /* 全体のベース文字サイズをやや大きめに */
}

.winter-hero__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 上段 */
.winter-hero__intro {
  margin-bottom: 28px;
}

.winter-hero__label {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.winter-hero__label-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  margin-right: 8px;
}

.winter-hero__title {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 12px;
}

@media (min-width: 768px) {
  .winter-hero__title {
    font-size: 34px;
  }
}

@media (min-width: 1024px) {
  .winter-hero__title {
    font-size: 40px;
  }
}

.winter-hero__lead {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.96);
  max-width: 720px;
  margin: 0 0 18px;
}

.winter-hero__lead-strong {
  font-weight: 600;
}

/* 基本情報3つのボックス */
.winter-hero__info-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

@media (min-width: 640px) {
  .winter-hero__info-row {
    flex-direction: row;
  }
}

.winter-info {
  flex: 1 1 0;
  background: #020617;
  border-radius: 12px;
  border: 1px solid #1e3a8a;
  padding: 12px 14px;
}

.winter-info__label {
  font-size: 12px;
  color: #cbd5f5;
  margin: 0 0 4px;
}

.winter-info__main {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.winter-info__sub {
  font-size: 12px;
  color: #cbd5f5;
  margin: 4px 0 0;
}

/* ボタン類 */
.winter-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.winter-btn {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.winter-btn--main {
  padding: 8px 16px;
  background: #22c55e;
  color: #020617;
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.35);
}

.winter-btn--main:hover {
  background: #4ade80;
  transform: translateY(-1px);
}

.winter-btn--sub {
  padding: 7px 14px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.7);
}

.winter-btn--sub:hover {
  background: rgba(30, 64, 175, 0.75);
  border-color: #60a5fa;
}

.winter-btn__icon {
  width: 16px;
  height: 16px;
  margin-left: 6px;
}

/* 下段カード群：flex で PC 時3列 */
.winter-hero__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* カード本体 */
.winter-card {
  flex: 1 1 260px;
  background: #0b1b3a; /* 濃いブルー */
  border-radius: 16px;
  border: 1px solid #1d4ed8;
  padding: 16px 16px 18px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.55);
}

.winter-card--para {
  border-color: #10b981;
}

@media (min-width: 1024px) {
  .winter-card {
    flex-basis: calc(33.333% - 12px); /* PC 時は最大3列想定 */
  }
}

.winter-card__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  padding: 3px 9px;
  border-radius: 999px;
}

.winter-card__label--sky {
  background: rgba(59, 130, 246, 0.2);
  color: #bfdbfe;
}

.winter-card__label--para {
  background: rgba(16, 185, 129, 0.18);
  color: #a7f3d0;
}

.winter-card__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
}

.winter-card__text {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 8px;
  color: #e5e7eb;
}

.winter-card__list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.7;
}

.winter-card__list li {
  margin-bottom: 3px;
}

.winter-card__note {
  font-size: 12px;
  color: #cbd5f5;
  margin-top: 4px;
}

/* 実施競技タグ（改行させない） */
.winter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.winter-tags__item {
  display: inline-block;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #020617;
  border: 1px solid #1f2937;
  color: #e5e7eb;
  white-space: nowrap; /* ← 1タグの中で改行しない */
}
