@charset "UTF-8";
/* =========================================================
   東広島ジュニアレスリングスポーツ少年団 ― BLOG
   ========================================================= */

:root {
  --orange: #e8552b;
  --orange-deep: #c9431e;
  --brown: #3b2a24;
  --brown-2: #4a3730;
  --khaki: #aba28f;
  --beige: #bdb39d;
  --cream: #f7f1e8;
  --cream-2: #efe6d8;
  --white: #fff;
  --text: #3b2a24;
  --text-sub: #6b5d56;
  --line: #ddd3c4;

  --ff-base: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  --ff-display: "Dela Gothic One", "Zen Kaku Gothic New", sans-serif;
  --ff-en: "Archivo Black", "Arial Black", sans-serif;
  --ff-hand: "Yusei Magic", "Klee One", cursive;

  --radius: 12px;
  --shadow: 0 4px 14px rgba(59, 42, 36, .08);
  --container: 1100px;

  /* 筆ストローク（オレンジ） */
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 40' preserveAspectRatio='none'%3E%3Cpath fill='%23e8552b' d='M10 9 C70 5 150 3 230 2 L298 0 L290 8 L299 14 L292 22 L298 29 C220 32 140 35 70 37 L4 40 L12 33 L2 27 L9 20 L1 14Z'/%3E%3C/svg%3E");
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; }

body {
  font-family: var(--ff-base);
  font-weight: 500;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.hand {
  font-family: var(--ff-hand);
  font-weight: 400;
  line-height: 1.35;
}

/* =========================================================
   HEADER
   ========================================================= */

/* 右上の筆キャッチ */

/* =========================================================
   PAGE HERO
   ========================================================= */
.blog-hero {
  background: #ebe3d1;
  overflow: hidden;
}
.blog-hero__title { line-height: 0; margin: 0; }
/* 画像の縦横比のまま、画面の横幅いっぱいに表示します（切り取りなし） */
.blog-hero__banner {
  display: block;
  width: 100%;
  max-width: 2696px;
  height: auto;
  margin: 0 auto;
}

/* =========================================================
   LAYOUT
   ========================================================= */
/* PC：記事・カレンダー・入団申し込みを1つのグリッドに並べる
   （.blog-main と .post-grid を display: contents にして、中の要素を .blog-layout のグリッドに直接配置） */
.blog-layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 20px 60px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 236px;
  grid-template-areas:
    "filter  filter  filter   ."
    "feature notice  notice   archive"
    "feature mat     practice archive"
    "feature mat     voice    voice"
    "event   player  team     stack"
    "mini    player  team     stack"
    "pager   pager   pager    pager";
  gap: 11px 16px;
}
.blog-main,
.blog-layout .post-grid { display: contents; }
.filter  { grid-area: filter; }
.pager   { grid-area: pager; }
.archive {
  grid-area: archive;
  display: flex;
  flex-direction: column;
}
/* PC：グリッドの高さに合わせてカレンダーを伸ばす */
.archive .cal { flex: 1; display: flex; flex-direction: column; }
.archive .cal__table { flex: 1; }

/* ---------- filter ---------- */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1px;
}
.filter a {
  display: inline-block;
  padding: 3px 18px;
  min-width: 80px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--white);
  background: var(--khaki);
  border-radius: 999px;
  transition: background-color .2s;
}
.filter a:hover { background: var(--brown-2); }
.filter a.is-current { background: var(--orange); }

/* =========================================================
   POST GRID
   ========================================================= */
.post-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-areas:
    "feature notice   notice"
    "feature mat      practice"
    "feature mat      voice"
    "event   player   team"
    "mini    player   team";
  gap: 11px 16px;
}
.card--feature  { grid-area: feature; }
.card--notice   { grid-area: notice; }
.card--mat      { grid-area: mat; }
.card--practice { grid-area: practice; }
.card--voice    { grid-area: voice; }
.card--event    { grid-area: event; }
.card--mini     { grid-area: mini; }
.card--player   { grid-area: player; }
.card--team     { grid-area: team; }
.side-cta       { grid-area: cta; }
.card--coach    { grid-area: coach; }

/* 右列：新着記事と入団申し込みを縦に積む（PC） */
.side-stack {
  grid-area: stack;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.side-stack > * { flex: 1; }
.side-stack .side-cta { min-height: 0; padding: 14px 16px 14px; }
.side-stack .side-cta .arrow-btn { margin-top: 8px; }

/* 新着記事（テキストカード） */
.card--coach .card__link { padding: 46px 16px 14px; gap: 10px; }
.card--coach .card__title { font-size: 15px; }

/* ---------- card base ---------- */
.card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card__title {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: .02em;
}
.card__excerpt {
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-sub);
}
.card time { font-size: 11px; font-weight: 500; }
.card__link:hover .card__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.card__link:hover img { transform: scale(1.04); }
.card img { transition: transform .5s ease; }

.meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
}

/* tags */
.tag {
  display: inline-block;
  padding: 1px 12px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
  border-radius: 999px;
}
.tag--dark    { background: var(--brown); color: var(--white); }
.tag--orange  { background: var(--orange); color: var(--white); }
.tag--white   { background: var(--white); color: var(--orange); }
.tag--new     { background: var(--white); color: var(--brown); }
.tag--outline { border: 1px solid var(--brown); padding: 0 8px; font-size: 10px; font-weight: 500; }
.tag--outline-light { border: 1px solid var(--white); color: var(--white); }

/* READ MORE */
.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-base);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  margin-top: auto;
}
.more::after {
  content: "";
  width: 11px;
  height: 11px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 6h9M6.5 2.5 10 6l-3.5 3.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 6h9M6.5 2.5 10 6l-3.5 3.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s;
}
.card__link:hover .more::after { transform: translateX(3px); }
.more--right { align-self: flex-end; }

/* 丸い矢印ボタン */
.arrow-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  position: relative;
}
.arrow-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  background: var(--white);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 6h9M6.5 2.5 10 6l-3.5 3.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 6h9M6.5 2.5 10 6l-3.5 3.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.arrow-btn--white { background: var(--white); }
.arrow-btn--white::after { background: var(--orange); }

/* ---------- 特集カード ---------- */
.card--feature { min-height: 393px; color: var(--white); background: var(--brown); }
.card--feature .card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card--feature .card__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(40, 28, 24, .05) 0%, rgba(40, 28, 24, .2) 45%, rgba(52, 38, 32, .92) 72%, #3b2a24 100%);
}
.card--feature .card__body {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 0 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card--feature .card__title { font-size: 21px; }
.card--feature .card__excerpt { color: rgba(255, 255, 255, .88); }
.card--feature .more { margin-top: 2px; }

/* ---------- お知らせバナー ---------- */
.card--notice {
  background: var(--orange);
  color: var(--white);
}
.card--notice .card__link { padding: 46px 20px 18px; gap: 12px; }
.card--notice .card__title { font-size: 25px; line-height: 1.35; position: relative; z-index: 1; }
.card__icon {
  position: absolute;
  right: 26px;
  bottom: 14px;
  width: 92px;
  height: 92px;
  color: rgba(255, 255, 255, .28);
}
.card--notice:hover { background: var(--orange-deep); }

/* ---------- 写真上・テキスト下 ---------- */
.card__thumb {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__cat {  /* カテゴリータグ：全カード共通で左上に配置 */
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
.card__cat--white { background: var(--white); color: var(--orange); }
/* テキストのみのカードは padding-top 46px でタグぶんの余白を確保 */
.card--photo-top .card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 16px;
}
.card--mat .card__thumb { height: 137px; }
.card--mat .card__body { padding-left: 14px; }

.card--event .card__thumb { height: 100px; }
.card--event .card__body { padding: 14px 20px 12px; }
.card--event .card__title { font-size: 18px; }

.card--player .card__thumb { height: 155px; }
.card--player .card__body { padding: 16px 18px 20px; }
.card__sub {
  display: block;
  font-size: 14px;
  margin-top: 2px;
}

.card--dark { background: var(--brown); color: var(--white); }
.card--team .card__thumb { height: 130px; }
.card--team .card__body { padding: 12px 18px 20px; }

/* ---------- テキストカード ---------- */
.card--beige { background: var(--beige); }
.card--practice .card__link,
.card--voice .card__link {
  padding: 46px 16px 14px;
  gap: 12px;
}
.card--practice .card__title { font-size: 16px; }
.card--voice .card__title { font-size: 15px; }
.card--voice .meta { font-size: 11px; gap: 10px; }
.quote-mark {
  font-family: var(--ff-en);
  font-size: 40px;
  line-height: .6;
  color: var(--orange);
  height: 18px;
  margin-right: 2px;
}

/* ---------- ミニ記事 ---------- */
.card--mini { border-radius: var(--radius); }
.card--mini .card__link {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 40px 14px 12px 12px;
}
.card__round {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}
.card--mini .card__body { flex: 1; min-width: 0; }
.card--mini .card__title { font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card--mini .meta { font-size: 10.5px; }

/* ---------- CMS用の追加パーツ ---------- */
.card__noimg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: var(--cream-2) url(../images/logo-mark.png) center / 44px auto no-repeat;
  opacity: .9;
}
.card__round.card__noimg { flex-shrink: 0; width: 58px; height: 58px; border-radius: 50%; background-size: 30px auto; }
.filter__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 6px 3px 14px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.filter__note a {
  display: grid;
  place-items: center;
  min-width: 0;
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  background: var(--brown);
  font-size: 12px;
  line-height: 1;
}
.post-empty {
  grid-area: feature;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-sub);
  background: var(--white);
  border-radius: var(--radius);
}
.cal__table td > a[aria-current="date"] { background: var(--orange); }

/* =========================================================
   PAGER
   ========================================================= */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 40px auto 0;
  padding: 10px 24px;
  width: fit-content;
  background: var(--cream-2);
  border-radius: 8px;
}
.pager__num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 26px;
  font-size: 13px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 3px;
  transition: border-color .2s, color .2s;
}
.pager__num:hover { border-color: var(--orange); color: var(--orange); }
.pager__num.is-current { background: var(--orange); border-color: var(--orange); color: var(--white); }
.pager__arrow {
  width: 30px;
  height: 26px;
  position: relative;
}
.pager__arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--brown);
  border-left: 2px solid var(--brown);
  transform: rotate(-45deg);
}
.pager__arrow--prev::before { border-color: var(--orange); margin-left: 12px; }
.pager__arrow--next::before { transform: rotate(135deg); margin-right: 12px; }
.pager__arrow[aria-disabled="true"] { pointer-events: none; }

/* =========================================================
   ARCHIVE / CTA
   ========================================================= */
.side-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 14px 12px;
}
.side-title {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.2;
}

/* ---------- calendar ---------- */
.cal { margin-top: 4px; }
.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 10px;
}
.cal__nav {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--brown);
  border-radius: 50%;
  position: relative;
}
.cal__nav::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid var(--brown);
  border-left: 1.5px solid var(--brown);
  transform: translateX(1px) rotate(-45deg);
}
.cal__nav--next::before { transform: translateX(-1px) rotate(135deg); }
.cal__nav:hover { background: var(--cream-2); }
.cal__month {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
}
.cal__num {
  font-family: var(--ff-en);
  font-size: 24px;
  line-height: 1;
}
.cal__table {
  width: 100%;
  table-layout: fixed;
  text-align: center;
  font-size: 10px;
}
.cal__table th {
  font-weight: 700;
  padding-bottom: 6px;
}
.cal__table td {
  height: 30px;
  padding: 0;
}
.cal__table td > a,
.cal__table td > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0 auto;
  border-radius: 50%;
}
.has-post {
  background: var(--brown-2);
  color: var(--white);
  font-weight: 700;
}
.has-post:hover { background: var(--orange); }
.is-today {
  border: 1.5px solid var(--orange);
  color: var(--orange);
  font-weight: 700;
}

/* ---------- CTA ---------- */
.side-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 16px 16px;
  min-height: 172px;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(rgba(200, 70, 32, .55), rgba(170, 60, 28, .7)),
    url(../images/cta-join.jpg) center / cover no-repeat;
}
.side-cta {
  justify-content: center;
}
.side-cta__label {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .8);
  font-size: 18px;
  font-weight: 900;
}
.side-cta .arrow-btn { width: 38px; height: 38px; margin-top: 10px; transition: transform .2s; }
.side-cta:hover .arrow-btn { transform: translateX(4px); }

/* =========================================================
   FOOTER
   ========================================================= */

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 960px) {
  
  

  

  /* ---- レイアウト：左にアーカイブ（縦1列）、右に記事 ---- */
  .blog-layout {
    grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "archive main main";
    gap: 16px 14px;
  }
  .blog-main { display: block; grid-area: main; }
  .blog-layout .post-grid {
    display: grid;
    grid-template-areas:
      "feature notice   notice"
      "feature mat      practice"
      "feature mat      voice"
      "event   player   team"
      "mini    player   team"
      "coach   cta      cta";
  }
  .filter { margin-bottom: 12px; }
  .side-stack { display: contents; }
  .side-stack > * { flex: none; }
  /* 横長バナー：左に手書きコピー＋ラベル、右に矢印 */
  .side-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "label arrow";
    align-items: center;
    column-gap: 16px;
    row-gap: 6px;
    min-height: 120px;
    padding: 16px 22px;
  }
  .side-cta__label { grid-area: label; justify-self: start; margin-top: 0; padding-top: 0; border-top: 0; font-size: 18px; }
  .side-cta .arrow-btn { grid-area: arrow; }
  .side-cta .arrow-btn { margin-top: 0; }

  /* ---- アーカイブ：縦1列の日付レール ---- */
  .archive .cal { display: block; }
  .archive {
    display: block;
    align-self: start;
    padding: 12px 6px 14px;
    border-radius: 32px;
    text-align: center;
  }
  .archive .side-title {
    writing-mode: vertical-rl;
    margin: 0 auto 8px;
    font-size: 14px;
    letter-spacing: .08em;
  }
  .cal { margin-top: 0; }
  .cal__head {
    flex-direction: column;
    gap: 6px;
    padding: 0 0 10px;
    margin-bottom: 6px;
    border-bottom: 1px dashed #bdb5a8;
  }
  .cal__nav { width: 26px; height: 26px; }
  .cal__nav--prev::before { transform: translateY(2px) rotate(45deg); }
  .cal__nav--next::before { transform: translateY(-2px) rotate(-135deg); }
  .cal__month { flex-direction: column; align-items: center; gap: 2px; font-size: 9px; }
  .cal__num { font-size: 22px; }
  .cal__month { white-space: nowrap; letter-spacing: -.02em; }

  /* レールぶん記事幅が狭くなるので文字を少し詰める */
  .card--feature .card__title { font-size: 19px; }
  .card--mat .card__title,
  .card--practice .card__title,
  .card--voice .card__title,
  .card--player .card__title,
  .card--team .card__title { font-size: 14px; }
  .card--voice .card__title { font-size: 13px; }
  .card--notice .card__title { font-size: 22px; }

  /* table を1列のリストとして並べ直す */
  .cal__table,
  .cal__table tbody,
  .cal__table tr { display: contents; }
  .cal__table thead { display: none; }
  .cal__table td {
    display: grid;
    grid-template-columns: 28px 10px;
    align-items: center;
    justify-content: center;
    justify-items: center;
    column-gap: 3px;
    height: auto;
    min-height: 32px;
    padding: 2px 0;
    font-size: 11px;
    line-height: 1;
  }
  .cal__table td:empty { display: none; }
  .cal__table td > a,
  .cal__table td > span { width: 28px; height: 28px; }

  /* 曜日（列の位置から自動で付与・日付の右横） */
  .cal__table td::after {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-sub);
  }
  .cal__table td:nth-child(1)::after { content: "日"; color: var(--orange); }
  .cal__table td:nth-child(2)::after { content: "月"; }
  .cal__table td:nth-child(3)::after { content: "火"; }
  .cal__table td:nth-child(4)::after { content: "水"; }
  .cal__table td:nth-child(5)::after { content: "木"; }
  .cal__table td:nth-child(6)::after { content: "金"; }
  .cal__table td:nth-child(7)::after { content: "土"; color: #4a6fa5; }

  /* 記事がある日：日付＋曜日をまとめて横長の角丸（ピル型）で色付け */
  .cal__table td {
    position: relative;
    width: 48px;
    margin: 1px auto;
    border-radius: 999px;
  }
  .cal__table td:has(> .has-post),
  .cal__table td:has(> .is-today) { min-height: 26px; }
  .cal__table td:has(> .has-post) {
    background: var(--brown-2);
    transition: background-color .2s;
  }
  .cal__table td:has(> .has-post)::after { color: var(--white); }
  .cal__table td > .has-post { background: none; }
  .cal__table td > .has-post::before {   /* ピル全体をクリック可能に */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
  }
  .cal__table td:has(> .has-post:hover),
  .cal__table td:has(> .has-post:focus-visible) { background: var(--orange); }
  .cal__table td > .has-post:focus-visible { outline: none; }
  .cal__table td:has(> .has-post:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }

  /* 今日：同じピル型の枠線 */
  .cal__table td:has(> .is-today) { box-shadow: inset 0 0 0 1.5px var(--orange); }
  .cal__table td:has(> .is-today)::after { color: var(--orange); }
  .cal__table td > .is-today { border: 0; }
  /* 週の区切り（日曜の前に余白） */
  .cal__table tr + tr td:nth-child(1):not(:empty) { margin-top: 8px; }
  .cal__table tr + tr td:nth-child(1):not(:empty)::before { content: ""; position: absolute; left: 4px; right: 4px; top: -5px; border-top: 1px dotted var(--line); }
}

@media (max-width: 760px) {
  /* スマホ：横長のままだと小さすぎるので、高さを決めて「BLOG」と団名の部分を見せる */
  .blog-hero__banner { height: 100px; object-fit: cover; object-position: 16% center; }

  .blog-layout .post-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "feature  feature"
      "notice   notice"
      "mat      practice"
      "mat      voice"
      "event    event"
      "mini     mini"
      "player   team"
      "coach    coach"
      "cta      cta";
  }
  .card--notice .card__title { font-size: 21px; }
}

@media (max-width: 520px) {
  

  .blog-layout {
    padding-left: 10px;
    padding-right: 10px;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas: "archive main";
    gap: 14px 8px;
  }
  .archive { padding: 10px 3px; border-radius: 24px; }
  .cal__nav { width: 24px; height: 24px; }
  .cal__num { font-size: 18px; }
  .cal__month { font-size: 8px; }
  .cal__table td { grid-template-columns: 24px 9px; column-gap: 1px; min-height: 28px; font-size: 10px; }
  .cal__table td::after { font-size: 8px; }
  .cal__table td { width: 40px; }
  .cal__table td:has(> .has-post),
  .cal__table td:has(> .is-today) { min-height: 24px; }
  .cal__table td > a,
  .cal__table td > span { width: 24px; height: 24px; }
  .filter { gap: 6px; }
  .filter a { min-width: 0; padding: 3px 12px; font-size: 11px; }

  /* 記事エリアはモバイルでも2列（760px以下の grid-template-areas を継続） */
  .post-grid { gap: 10px; }
  .card--feature { min-height: 400px; }
  .card--feature .card__title { font-size: 18px; }
  .card--notice .card__title { font-size: 19px; }
  .card__icon { width: 64px; height: 64px; right: 16px; }

  .card__title { font-size: 13px; }
  .card--practice .card__title,
  .card--voice .card__title { font-size: 13px; }
  .card--practice .card__link,
  .card--voice .card__link { padding: 10px 10px; gap: 8px; }
  .card--photo-top .card__body { padding: 10px 10px 12px; gap: 4px; }
  .post-grid { gap: 8px; }
  .card--event .card__body { padding: 12px 14px; }
  .card__sub { font-size: 12px; }
  .card__cat { top: 10px; left: 10px; }
  .card--notice .card__link,
  .card--practice .card__link,
  .card--voice .card__link,
  .card--coach .card__link { padding-top: 38px; }
  .tag { padding: 1px 9px; font-size: 10px; }
  .meta { gap: 6px; font-size: 10px; }
  .card time { font-size: 10px; }
  .more { font-size: 11px; gap: 6px; }

  .card--mat .card__thumb { height: 110px; }
  .card--player .card__thumb,
  .card--team .card__thumb { height: 120px; }

  .pager { gap: 6px; padding: 8px 12px; }

  .side-cta { padding: 16px; column-gap: 10px; }
  .side-cta__label { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* 日本語の見出しを文節で自然に改行（対応ブラウザのみ） */
.card__title, .article__title, .article__body h2, .related__name { word-break: auto-phrase; }

/* 前後に記事がない月の矢印 */
.cal__nav.is-disabled { opacity: .25; pointer-events: none; }

/* =========================================================
   カテゴリー別・月別の一覧（記事数が少なくても崩れない均等グリッド）
   ========================================================= */
.blog-layout--list {
  grid-template-columns: minmax(0, 1fr) 236px;
  grid-template-areas: "main archive";
  align-items: start;
}
.blog-layout--list .blog-main { display: block; grid-area: main; }
.blog-layout--list .filter { margin-bottom: 12px; }
.blog-layout.blog-layout--list .post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: none;
  gap: 16px;
}
.blog-layout--list .archive { display: block; }
.blog-layout--list .archive .cal { display: block; }
.card--list .card__thumb { height: 150px; }
.card--list .card__body { padding: 14px 16px 16px; }
.card--list .card__title { font-size: 15px; }
.blog-layout--list .pager { margin-top: 40px; }

@media (max-width: 960px) {
  .blog-layout--list {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas: "archive main";
  }
}
@media (max-width: 760px) {
  .blog-layout.blog-layout--list .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card--list .card__thumb { height: 120px; }
}
@media (max-width: 520px) {
  .blog-layout--list { grid-template-columns: 48px minmax(0, 1fr); }
  .card--list .card__thumb { height: 100px; }
  .card--list .card__body { padding: 10px 10px 12px; }
  .card--list .card__title { font-size: 13px; }
}
.blog-hero__home { display: block; }

/* ヘッダー：メニューに「ブログ」を足したぶん、右上の筆キャッチと重ならないよう調整 */

/* =========================================================
   CATEGORY（見出し＋ボタン）とその場での絞り込み
   ========================================================= */
[hidden] { display: none !important; }
.filter-bar {
  grid-area: filter;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
.filter-bar__title { flex-shrink: 0; }
/* ボタンは CATEGORY の右側に並べ、入りきらないときはその中で折り返す */
.filter-bar .filter { margin: 0; flex: 1 1 0; min-width: 0; gap: 8px; }
.filter-bar .filter a { min-width: 72px; padding: 3px 14px; }
.filter-bar__count { flex-basis: 100%; font-size: 12px; font-weight: 700; color: var(--text-sub); }
.blog-layout--list .filter-bar,
.blog-layout--list .filter-bar .filter { margin-bottom: 0; }
.blog-layout--list .filter-bar { margin-bottom: 12px; }
@media (max-width: 960px) {
  .filter-bar { margin-bottom: 12px; }
}
@media (max-width: 520px) {
  .filter-bar { gap: 6px 10px; }
  .filter-bar__title { width: 100%; font-size: 15px; }
  .filter-bar .filter { flex-basis: 100%; gap: 6px; }
  .filter-bar .filter a { min-width: 0; padding: 3px 12px; }
}
/* 大きいカードの見出しは、文節での改行だと「第」だけが1行目に残ることがあるため通常の改行に */
.card__title { word-break: normal; }

/* 専用の枠（コーチ通信・コラム）に、まだ記事がないとき */
.card--empty .card__link { cursor: default; }
.card--empty .card__title { color: var(--text-sub); font-size: 15px; }

/* ---------- 右側に写真を出すカード（お知らせ枠・横長の白い枠） ---------- */
.card__side {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 46%;
  overflow: hidden;
}
.card__side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.card--has-side .card__link:hover .card__side img { transform: scale(1.04); }
.card--has-side .card__link { padding-right: calc(46% + 18px); }
.card--notice.card--has-side .card__title { font-size: 16px; line-height: 1.4; }   /* 写真上の枠（mat）の見出しと同じ大きさ */
@media (max-width: 960px) {
  .card--notice.card--has-side .card__title { font-size: 14px; }
}
@media (max-width: 600px) {
  .card__side { width: 40%; }
  .card--has-side .card__link { padding-right: calc(40% + 10px); }
  /* 横長の白い枠はスマホでは半分の幅になるので、写真は出さずに文字だけにします */
  .card--voice .card__side { display: none; }
  .card--voice.card--has-side .card__link { padding-right: 10px; }
}

/* =========================================================
   記事が8件に満たないページ（2ページ目の最後・公開したばかりのときなど）
   空いた枠を詰めて、コーチ通信は記事のすぐ下、コラム・入団申し込みはカレンダーのすぐ下に置きます。
   記事が増えて8件そろうと、自動でいつもの並びに戻ります（render.php の bv_sparse_areas）
   ========================================================= */
.blog-aside { display: contents; }
.blog-layout--list .blog-aside .side-stack { display: none; }

.blog-layout--sparse:not(.blog-layout--list) {
  grid-template-areas:
    "filter filter filter ."
    "grid   grid   grid   aside"
    "pager  pager  pager  pager";
}
.blog-layout--sparse:not(.blog-layout--list) .post-grid {
  display: grid;
  grid-area: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: var(--areas);
  align-self: start;
}
.blog-layout--sparse:not(.blog-layout--list) .blog-aside {
  grid-area: aside;
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-self: start;
}
.blog-layout--sparse:not(.blog-layout--list) .blog-aside .archive .cal { flex: none; }
.blog-layout--sparse:not(.blog-layout--list) .blog-aside .side-stack,
.blog-layout--sparse:not(.blog-layout--list) .blog-aside .side-stack > * { flex: none; }
/* ⑤の枠は右の列まで広がらず細くなるので、右側の写真は出さない */
.blog-layout--sparse:not(.blog-layout--list) .card--voice .card__side { display: none; }
.blog-layout--sparse:not(.blog-layout--list) .card--voice.card--has-side .card__link { padding-right: 18px; }

@media (max-width: 960px) {
  .blog-layout--sparse:not(.blog-layout--list) {
    grid-template-areas:
      "archive filter filter"
      "archive grid   grid"
      "archive side   side"
      "archive pager  pager"
      "archive .      .";
    /* 左のカレンダー（縦長）の高さは最後の行で受けて、記事の間に隙間を作らない */
    grid-template-rows: auto auto auto auto 1fr;
  }
  .blog-layout--sparse:not(.blog-layout--list) .blog-main { display: contents; }
  .blog-layout--sparse:not(.blog-layout--list) .blog-aside { display: contents; }
  .blog-layout--sparse:not(.blog-layout--list) .filter-bar { margin-bottom: 0; }
  .blog-layout--sparse:not(.blog-layout--list) .side-stack {
    grid-area: side;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "coach cta cta";
    gap: 11px 16px;
  }
}
@media (max-width: 760px) {
  .blog-layout--sparse:not(.blog-layout--list) {
    grid-template-areas:
      "archive filter"
      "archive grid"
      "archive side"
      "archive pager"
      "archive .";
  }
  .blog-layout--sparse:not(.blog-layout--list) .post-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: var(--areas-sp);
  }
  .blog-layout--sparse:not(.blog-layout--list) .side-stack {
    grid-template-columns: 1fr;
    grid-template-areas: "coach" "cta";
  }
}

/* 月別一覧の「2026年9月の記事（7件）×」の × ボタンは真円に（CATEGORY のボタンの幅・余白を受けないように） */
.filter-bar .filter .filter__note a {
  flex: none;
  width: 22px;
  height: 22px;
  min-width: 0;
  padding: 0;
  border-radius: 50%;
  aspect-ratio: 1;
}
/* 2ページ目以降（コラムの枠なし）：入団申し込みを横いっぱいに */
@media (max-width: 960px) {
  .blog-layout--sparse:not(.blog-layout--list) .side-stack:not(:has(.card--coach)) { grid-template-areas: "cta cta cta"; }
}
@media (max-width: 760px) {
  .blog-layout--sparse:not(.blog-layout--list) .side-stack:not(:has(.card--coach)) { grid-template-areas: "cta"; }
}
