/*
Theme Name: Lightning Child
Template: lightning
*/

.club-location{
  margin: 0 0 10px;
  font-size: 0.95em;
  color: #666;
}
.club-location span{
  font-weight: 700;
  color: #333;
}
/* club 詳細：基本情報（公的寄り） */
.club-basic{
  margin: 20px 0 28px;
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}
.club-basic h2{
  margin: 0 0 12px;
  font-size: 1.1em;
}
.club-basic-table{
  width: 100%;
  border-collapse: collapse;
}
.club-basic-table th,
.club-basic-table td{
  padding: 10px 8px;
  border-top: 1px solid #eef0f2;
  vertical-align: top;
  font-size: 0.95em;
}
.club-basic-table th{
  width: 22%;
  color: #374151;
  font-weight: 700;
}
.club-basic-table td{
  color: #111827;
}

.club-map{
  margin-top: 10px;
}
.club-map iframe{
  display: block;
  border-radius: 8px;
}

.club-sport{
  display: inline-block;
  padding: 5px 12px;
  margin: 8px 0 10px;
  background: #eef4ff;
  color: #1e3a8a;
  font-size: 0.9em;
  font-weight: 600;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

/* 種目ボタン（自動） */
.sport-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.sport-button{
  display: block;
  text-align: center;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  text-decoration: none;
  color: #1f2937;
  background: #ffffff;
  transition: 0.2s ease;
}

.sport-button:hover{
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* 地域ボタン（自動） */
.area-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.area-button{
  display: block;
  text-align: center;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  text-decoration: none;
  color: #1f2937;
  background: #ffffff;
  transition: 0.2s ease;
}

.area-button:hover{
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* 学校ボタン（自動） */
.school-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.school-button{
  display: block;
  text-align: center;
  padding: 14px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  text-decoration: none;
  color: #1f2937;
  background: #ffffff;
  transition: 0.2s ease;
}

.school-button:hover{
  background: #f1f5f9;
  border-color: #94a3b8;
}

.club-cards{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;           /* もし警告が気になるなら下の行も追加 */
  grid-gap: 16px;      /* 古い検証ツール向けの保険 */
}
.club-card{
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 16px;
  background: #fff;
}
.club-card__title{
  margin: 0 0 8px;
}
.club-card__sport{
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef4ff;
  margin-bottom: 10px;
}
.club-card__loc{
  margin: 6px 0 12px;
}
.club-card__btn .btn{
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid #ccc;
}

/* club 詳細（公的寄り） */
.club-single .club-title{
  margin: 0 0 10px;
}

.club-meta{
  margin: 6px 0;
  color: #374151;
  font-size: 0.95em;
}

.club-tag{
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1e3a8a;
  font-weight: 600;
}

.club-basic{
  margin: 20px 0 24px;
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.club-basic h2{
  margin: 0 0 12px;
  font-size: 1.1em;
}

.club-basic-table{
  width: 100%;
  border-collapse: collapse;
}

.club-basic-table th,
.club-basic-table td{
  padding: 10px 8px;
  border-top: 1px solid #eef0f2;
  vertical-align: top;
  font-size: 0.95em;
}

.club-basic-table th{
  width: 22%;
  font-weight: 700;
  color: #374151;
}

.club-map iframe{
  display: block;
  border-radius: 8px;
}

.club-note{
  margin: 18px 0 0;
  font-size: 0.9em;
  color: #6b7280;
}
/* 学校一覧グリッド */
.school-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.school-button{
  display: block;
  text-align: center;
  padding: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  text-decoration: none;
  color: #1f2937;
  font-weight: 600;
  transition: 0.2s ease;
}

.school-button:hover{
  background: #f1f5f9;
  border-color: #94a3b8;
}
/* ===== クラブ一覧カード（最終版） ===== */
.archive article {
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 40px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: 0.25s ease;
}

.archive article:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

/* 種目ラベル */
.archive .entry-meta,
.archive .vk_post_taxonomy {
    background: #eef4ff;
    color: #1a3a8a;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
}

/* 続きを読むボタン */
.archive .btn {
    background: #2e7d32 !important;
    border-radius: 6px;
}
.club-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.club-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transition: 0.3s;
}

.club-card:hover {
  transform: translateY(-4px);
}

.club-title a {
  text-decoration: none;
  color: #222;
  font-weight: bold;
  font-size: 18px;
}

.club-button {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 14px;
  background: #2e9f4b;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}

/* ===== 新着クラブカード完全統一（最終版） ===== */

.wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.wp-block-post-template > li {
    display: flex;
    flex-direction: column;
    min-height: 320px;
}
/* ===== 新着クラブカード高さ完全固定（Lightning強制上書き） ===== */

.home .wp-block-post-template {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 40px !important;
}

.home .wp-block-post-template > li {
    min-height: 320px !important;
    display: flex !important;
    flex-direction: column !important;
}
.home .wp-block-post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* 新着クラブ 詳しく見るボタン */

.wp-block-post-template .wp-block-button__link {
    background-color: #2e9f4b;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s ease;
}
/* ===== 新着クラブカード最終整列 ===== */

.home .wp-block-post-template {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 40px !important;
}

.home .wp-block-post-template > li {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 340px; /* ←全体高さここで統一 */
}

/* 抜粋は3行で止める */
.home .wp-block-post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ボタン下固定 */
.home .wp-block-buttons {
    margin-top: auto;
}
.wp-block-post-template .wp-block-button__link:hover {
    background-color: #247d3a;
    transform: translateY(-2px);
}
/* ===== 公的寄りカードデザイン ===== */

.home .wp-block-post-template > li {
    border: 1px solid #d6d6d6;
    padding: 24px;
    border-radius: 4px; /* 控えめ */
    background: #ffffff;
}

/* タイトルをやや濃紺に */
.home .wp-block-post-title a {
    color: #1f3c73;
}

/* 公的ボタン最終形 */
.home .wp-block-button__link {
    background-color: #1f3c73;
    border-radius: 2px;
    font-weight: 400;
    font-size: 13px;
    padding: 6px 12px;
    letter-spacing: 0.5px;
}

.home .wp-block-button__link:hover {
    background-color: #1f3c73; /* ホバーで色変えない */
}
/* 強制的に公的色にする */
.home .wp-block-button__link {
    background-color: #1f3c73 !important;
    color: #fff !important;
}
/* ===== 公的ボタン 強制上書き（最終版） ===== */

.home .wp-block-post-template .wp-block-button .wp-block-button__link {
    background-color: #1f3c73 !important;
    color: #ffffff !important;
    border: none !important;
}

.home .wp-block-post-template .wp-block-button .wp-block-button__link:hover {
    background-color: #1f3c73 !important;
}
/* ===== 公的最終バランス調整 ===== */

.home .wp-block-post-template > li {
    padding: 28px;
}

.home .wp-block-post-title {
    margin-bottom: 12px;
}

.home .wp-block-post-excerpt {
    margin-bottom: 18px;
    line-height: 1.8;
}

/* ボタンをやや大きく */
.home .wp-block-button__link {
    font-size: 14px;
    padding: 8px 16px;
}
.wp-block-post-excerpt__more-link {
    background-color: #1f3c73;
    color: #fff;
    padding: 6px 14px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 13px;
}
.wp-block-read-more {
    margin-top: auto !important;
}
/* 公的寄り 続きを読むボタン 最終版 */
.home .wp-block-read-more {
    display: inline-block !important;
    background-color: #2f4f7f !important;  /* 落ち着いた公的ブルー */
    color: #ffffff !important;
    padding: 10px 20px !important;
    border-radius: 2px !important;        /* 丸くしすぎない */
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    margin-top: 16px !important;
    min-width: 130px;
    text-align: center;
}

/* ホバー */
.home .wp-block-read-more:hover {
    background-color: #243f66 !important;
}
.wp-block-post {
    display: flex;
    flex-direction: column;
}

/* カードを縦flex化 */
.home .wp-block-post {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 抜粋部分を伸ばす */
.home .wp-block-post-excerpt {
    flex-grow: 1;
}

/* ボタンを最下部へ */
.home .wp-block-read-more {
    margin-top: auto !important;
}
/* クエリーループの各カードを縦flexにする */
.home .wp-block-post > .wp-block-group {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 抜粋部分を伸ばす */
.home .wp-block-post-excerpt {
    flex-grow: 1;
}

/* ボタンを最下部へ */
.home .wp-block-read-more {
    margin-top: auto !important;
}
/* クエリーループを均等グリッドに */
.home .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* 各カードを縦フレックス化 */
.home .wp-block-post > .wp-block-group {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px; /* ←ここで高さを揃える */
}

/* 抜粋を伸ばす */
.home .wp-block-post-excerpt {
    flex-grow: 1;
}

/* ボタンを最下部固定 */
.home .wp-block-read-more {
    margin-top: auto !important;
}
/* アイキャッチ領域の高さを固定 */
.home .wp-block-post-featured-image {
    height: 160px;
    overflow: hidden;
}

/* 画像がない場合も高さ確保 */
.home .wp-block-post .wp-block-group {
    display: flex;
    flex-direction: column;
}

.home .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home .wp-block-post-featured-image:empty {
    background-color: #f3f5f8;
    height: 160px;
}
/* アイキャッチ領域を固定 */
.home .wp-block-post-featured-image {
    min-height: 160px;
    background-color: #f3f5f8;
}

/* 画像がある場合 */
.home .wp-block-post-featured-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

/* 画像が存在する場合は背景を消す */
.home .wp-block-post-featured-image img {
    position: relative;
    z-index: 2;
}
/* =====================
   モバイル最適化
===================== */
@media screen and (max-width: 768px) {

  /* カード1列表示 */
  .wp-block-query .wp-block-post {
    width: 100% !important;
  }

  /* アイキャッチ高さ調整 */
  .wp-block-post-featured-image img {
    height: 180px !important;
    object-fit: cover;
  }

  /* タイトルサイズ */
  .wp-block-post-title {
    font-size: 18px !important;
    line-height: 1.4;
  }

  /* 本文サイズ */
  .wp-block-post-excerpt {
    font-size: 14px !important;
  }

  /* ボタン幅広げる */
  .wp-block-read-more {
    display: block !important;
    width: 100%;
    text-align: center;
  }

  /* 余白調整 */
  .wp-block-group {
    padding-left: 15px;
    padding-right: 15px;
  }
}
/* ===== モバイル：カード完全1列固定 ===== */
@media screen and (max-width: 768px){

  .wp-block-query ul,
  .wp-block-query-loop ul {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .wp-block-post {
    width: 100% !important;
  }

  .wp-block-columns {
    flex-direction: column !important;
  }

}
@media screen and (max-width: 768px){

  h1 {
    font-size: 26px !important;
    line-height: 1.3;
  }

}
@media screen and (max-width: 768px){

  .wp-block-query ul {
    flex-direction: column !important;
  }

}
/* ===== モバイル完全強制上書き ===== */
@media screen and (max-width: 768px){

  .wp-block-query ul.wp-block-post-template{
    grid-template-columns: 1fr !important;
  }

}
@media screen and (max-width: 768px){

  /* ヒーロー本文サイズ調整 */
  .wp-block-group p{
    font-size: 14px !important;
    line-height: 1.6;
  }

}
@media screen and (max-width: 768px){

  .wp-block-button__link{
    font-size: 16px !important;
    padding: 14px 20px !important;
    border-radius: 6px;
  }

}
@media screen and (max-width: 768px){

  .wp-block-heading{
    font-size: 22px !important;
    white-space: nowrap;
  }

}
@media screen and (max-width: 768px){

  h1, h2, h3{
    white-space: normal !important;
    word-break: break-word;
  }

}
@media screen and (max-width: 768px){

  .wp-block-buttons{
    display: flex !important;
    justify-content: center;
    gap: 12px;
  }

  .wp-block-button{
    flex: 1;
  }

  .wp-block-button__link{
    width: 100%;
    text-align: center;
  }

}
@media screen and (max-width: 768px){

  ul.wp-block-post-template{
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

}
@media screen and (max-width: 768px){

  .school-heading{
    white-space: nowrap;
  }

}
@media screen and (max-width: 768px){

  .wp-block-button__link{
    border-radius: 8px;
  }

}
@media screen and (max-width: 768px){

  .wp-block-heading::after{
    height: 3px;
  }

}
@media screen and (max-width: 768px){

  .wp-block-group:first-of-type{
    background: #f5f7fb;
  }

}
@media screen and (max-width: 768px){

  .wp-block-button__link{
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  }

  .wp-block-button__link:active{
    transform: scale(0.98);
  }

}
/* ===== ロゴサイズ最適化 ===== */

/* PC */
.navbar-brand img,
.site-branding img,
.custom-logo {
  max-width: 230px;
  height: auto;
}

/* モバイル */
@media screen and (max-width: 768px){

  .navbar-brand img,
  .site-branding img,
  .custom-logo {
    max-width: 165px;
  }

}
/* ヘッダー高さ最適化 */
.navbar {
  padding-top: 6px;
  padding-bottom: 6px;
}
a.vk_categoryBadge[href*="/sport/"]:hover {
  background: #1e3357 !important;
}

/* 共通基本設定 */
a.vk_categoryBadge {
  display: inline-flex;
  align-items: center;
  width: auto;
  white-space: nowrap;
  border-radius: 999px;
  transition: 0.2s ease;
}

/* 種目 */
a.vk_categoryBadge[href*="/sport/"] {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  background: #2f4a7a !important;
  color: #ffffff !important;
}

/* 学校 */
a.vk_categoryBadge[href*="/school/"] {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  background: #eef2f7 !important;
  color: #5a6b82 !important;
}
.club-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.club-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.club-card__thumb {
  position: relative;
}

.club-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
}
.club-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: 0.2s ease;
}

.club-card:hover {
  transform: translateY(-4px);
}

.club-card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.club-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.club-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.club-card__title {
  font-size: 18px;
  margin-bottom: 8px;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
}

.club-card__excerpt {
  font-size: 14px;
  line-height: 1.6;
  margin: 10px 0;
  height: 3.2em;
  overflow: hidden;
}

.club-card__btn {
  margin-top: auto;
  color: #2f4a7a;
  font-weight: 600;
  text-decoration: none;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 999px;
  margin-right: 6px;
}

.badge-sport {
  background: #2f4a7a;
  color: #fff;
}

.badge-school {
  background: #eef2f7;
  color: #5a6b82;
}

.club-card__new {
  display: inline-block;
  font-size: 11px;
  background: #e53935;
  color: #fff;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}