@charset "UTF-8";
/*
Theme Name: Soccer School Japan
Theme URI: https://xn--lckiqr2c7o6dc.net
Description: 全国少年サッカー情報サイト用テーマ
Author: Soccer School Japan
Version: 2.0
*/

/* =============================================
   Reset & Base
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-size: 1.5rem;
  line-height: 1.8;
  font-family: "Hiragino Kaku Gothic ProN","Hiragino Sans",Meiryo,"Noto Sans JP",sans-serif;
  background: #f5f7f5;
  color: #1a1a1a;
}
a { color: #16a34a; text-decoration: none; }
a:hover { color: #15803d; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 1.2rem; color: #888; text-align: center; margin-top: 4px; }
.alignright { float: right; margin: 0 0 16px 20px; }
.alignleft  { float: left;  margin: 0 20px 16px 0; }
.aligncenter { display: block; margin: 16px auto; }
.screen-reader-text { position: absolute; left: -9999px; }

/* =============================================
   ヘッダー
============================================= */
#site-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 56px;
  gap: 24px;
}

#site-logo a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  font-size: 2.2rem;
  line-height: 1;
}
.logo-text {
  font-size: 1.7rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -.3px;
}
.logo-text span { color: #16a34a; }

/* カテゴリナビ */
#category-nav { flex: 1; }
.category-nav-inner {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-nav-inner::-webkit-scrollbar { display: none; }
.category-nav-inner a {
  color: #4b5563;
  font-size: 1.35rem;
  font-weight: 600;
  padding: 8px 14px;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.category-nav-inner a:hover { background: #f0fdf4; color: #16a34a; }
.category-nav-inner a.current { background: #f0fdf4; color: #16a34a; }

/* 都道府県ドロップダウン（ヘッダー） */
.pref-select-wrap {
  flex-shrink: 0;
}
.pref-select {
  appearance: none;
  background: #f9fafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") right 10px center no-repeat;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 6px 32px 6px 12px;
  font-size: 1.3rem;
  color: #374151;
  cursor: pointer;
  font-family: inherit;
}
.pref-select:focus { outline: 2px solid #16a34a; outline-offset: 1px; border-color: #16a34a; }

/* =============================================
   レイアウト
============================================= */
#main-wrap {
  max-width: 1140px;
  margin: 28px auto;
  padding: 0 20px;
}
.content-wrap { display: grid; grid-template-columns: 1fr; gap: 28px; }
.content-wrap.has-sidebar { grid-template-columns: 1fr 280px; }
.content-main { min-width: 0; }
#sidebar { min-width: 0; }

/* =============================================
   都道府県グリッド（トップ）
============================================= */
.pref-section { margin-bottom: 40px; }

.pref-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.pref-section-head h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827;
}
.pref-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.pref-tab {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.pref-tab:hover,
.pref-tab.active { background: #16a34a; border-color: #16a34a; color: #fff; }

.pref-region { display: none; }
.pref-region.active { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.pref-card {
  display: block;
  text-align: center;
  padding: 8px 4px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 1.25rem;
  color: #374151;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.pref-card:hover { background: #f0fdf4; border-color: #16a34a; color: #16a34a; }

/* =============================================
   セクション共通
============================================= */
.home-section { margin-bottom: 40px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e5e7eb;
}
.section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title-icon {
  width: 4px;
  height: 18px;
  background: #16a34a;
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}
.section-more {
  font-size: 1.25rem;
  color: #16a34a;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 3px;
}
.section-more::after { content: "›"; font-size: 1.6rem; line-height: 1; }
.section-more:hover { color: #15803d; }

/* =============================================
   記事カード
============================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-2px); }
.card-img-wrap {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f3f4f6;
}
.card-img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 14px; }
.card-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #16a34a;
  margin-bottom: 5px;
}
.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title a { color: #111827; }
.card-title a:hover { color: #16a34a; }
.card-date { font-size: 1.15rem; color: #9ca3af; }
.card-excerpt {
  font-size: 1.25rem;
  color: #6b7280;
  line-height: 1.6;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* リスト形式カード（archive.php） */
.card-list {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.card-list .card-img-wrap {
  flex-shrink: 0;
  width: 160px;
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
}
.card-list .card-body { padding: 0; flex: 1; min-width: 0; }
.card-list .card-title { font-size: 1.5rem; -webkit-line-clamp: 3; }

.btn-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 1.2rem;
  color: #16a34a;
  border: 1px solid #16a34a;
  padding: 4px 14px;
  border-radius: 4px;
  text-decoration: none;
}
.btn-more:hover { background: #16a34a; color: #fff; }

.no-posts { text-align: center; color: #9ca3af; padding: 40px 0; font-size: 1.4rem; }

/* =============================================
   記事詳細
============================================= */
.post-header { margin-bottom: 20px; }
.post-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.post-cat-link {
  font-size: 1.2rem;
  font-weight: 700;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 2px 10px;
  border-radius: 4px;
  text-decoration: none;
}
.post-tag-link {
  font-size: 1.2rem;
  color: #6b7280;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 2px 10px;
  border-radius: 4px;
  text-decoration: none;
}
.post-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.45;
  color: #111827;
  margin-bottom: 10px;
}
.post-date { font-size: 1.2rem; color: #9ca3af; }
.post-thumbnail { border-radius: 8px; overflow: hidden; margin-bottom: 24px; aspect-ratio: 16/9; }
.post-thumb-img { width: 100%; height: 100%; object-fit: cover; }
.post-content {
  background: #fff;
  border-radius: 8px;
  padding: 28px 32px;
  border: 1px solid #e5e7eb;
  line-height: 2;
}
.post-content h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #111827;
  border-left: 4px solid #16a34a;
  padding-left: 12px;
  margin: 32px 0 14px;
}
.post-content h3 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #1f2937;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 6px;
  margin: 24px 0 12px;
}
.post-content p { margin-bottom: 16px; }
.post-content ul, .post-content ol { margin: 0 0 16px 22px; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 6px; }
.post-content strong { color: #111827; font-weight: 700; }
.post-content table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 1.4rem; }
.post-content table th { background: #111827; color: #fff; padding: 8px 12px; text-align: left; }
.post-content table td { padding: 8px 12px; border-bottom: 1px solid #e5e7eb; }
.post-content table tr:hover td { background: #f9fafb; }

.related-posts { margin-top: 40px; }
.related-posts .section-title { font-size: 1.6rem; margin-bottom: 16px; }

/* =============================================
   アーカイブ
============================================= */
.archive-header { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid #e5e7eb; }
.archive-title { font-size: 2rem; font-weight: 700; color: #111827; }
.archive-desc { font-size: 1.3rem; color: #6b7280; margin-top: 6px; line-height: 1.7; }

/* ページネーション */
.nav-links { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.nav-links a, .nav-links span {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 8px;
  border-radius: 6px; border: 1px solid #d1d5db;
  font-size: 1.3rem; color: #374151; text-decoration: none;
  transition: background .15s;
}
.nav-links a:hover { background: #f0fdf4; border-color: #16a34a; color: #16a34a; }
.nav-links .current { background: #16a34a; border-color: #16a34a; color: #fff; }

/* =============================================
   試合結果テーブル
============================================= */
.match-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden;
  font-size: 1.3rem;
}
.match-table th { background: #111827; color: #fff; padding: 10px 12px; text-align: left; font-weight: 600; }
.match-table td { padding: 9px 12px; border-bottom: 1px solid #f3f4f6; }
.match-table tr:last-child td { border-bottom: none; }
.match-table tr:hover td { background: #f9fafb; }
.match-score { font-weight: 700; text-align: center; }

/* =============================================
   サイドバー
============================================= */
.widget {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}
.widget-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111827;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 6px;
}
.widget-cat-list li { border-bottom: 1px solid #f3f4f6; }
.widget-cat-list li:last-child { border-bottom: none; }
.widget-cat-list li a {
  display: flex; justify-content: space-between;
  padding: 9px 16px; color: #374151; font-size: 1.3rem; text-decoration: none;
}
.widget-cat-list li a:hover { background: #f9fafb; color: #16a34a; }
.cat-count { color: #9ca3af; font-size: 1.1rem; }

.widget-post-list li { border-bottom: 1px solid #f3f4f6; }
.widget-post-list li:last-child { border-bottom: none; }
.widget-post-list li a {
  display: block; padding: 9px 16px; color: #374151;
  font-size: 1.3rem; line-height: 1.55; text-decoration: none;
}
.widget-post-list li a:hover { background: #f9fafb; color: #16a34a; }
.widget-empty { padding: 12px 16px; color: #9ca3af; font-size: 1.3rem; }

/* =============================================
   フッター
============================================= */
#site-footer {
  background: #111827;
  color: #9ca3af;
  margin-top: 60px;
  padding: 40px 20px 24px;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
}
.footer-logo {
  font-size: 1.7rem;
  font-weight: 800;
  color: #f9fafb;
  margin-bottom: 16px;
}
.footer-logo span { color: #4ade80; }
.footer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #1f2937;
}
.footer-cats a { color: #9ca3af; font-size: 1.3rem; text-decoration: none; }
.footer-cats a:hover { color: #f9fafb; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-copy { font-size: 1.2rem; color: #6b7280; }
.footer-disclaimer { font-size: 1.1rem; color: #4b5563; }

/* =============================================
   レスポンシブ
============================================= */
@media (max-width: 900px) {
  .content-wrap.has-sidebar { grid-template-columns: 1fr; }
  #sidebar { display: none; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .pref-region.active { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); }
  .header-inner { gap: 12px; }
  .logo-text { font-size: 1.5rem; }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .card-list { flex-direction: column; }
  .card-list .card-img-wrap { width: 100%; }
  .post-title { font-size: 1.9rem; }
  .post-content { padding: 20px 16px; }
  .pref-section-head { flex-direction: column; align-items: flex-start; }
  .pref-tabs { gap: 4px; }
  .pref-tab { font-size: 1.1rem; padding: 3px 10px; }
  .footer-bottom { flex-direction: column; }
  .pref-select-wrap { display: none; }
}

/* =============================================
   スクール一覧（archive-soccer_school）
============================================= */
.school-pref-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.pref-filter-btn {
  font-size: 1.2rem;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #374151;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.pref-filter-btn span { font-size: 1.0rem; color: #9ca3af; }
.pref-filter-btn:hover,
.pref-filter-btn.active { background: #16a34a; border-color: #16a34a; color: #fff; }
.pref-filter-btn.active span { color: #bbf7d0; }

.school-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.school-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.school-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-2px); }
.school-card-img-wrap {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f0fdf4;
}
.school-card-no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.6rem;
}
.school-card-img { width: 100%; height: 100%; object-fit: cover; }
.school-card-body { padding: 14px 16px; }
.school-card-pref {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 1px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.school-card-name {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 10px;
}
.school-card-name a { color: #111827; text-decoration: none; }
.school-card-name a:hover { color: #16a34a; }
.school-card-meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  font-size: 1.25rem;
  color: #4b5563;
}
.meta-icon { margin-right: 4px; }
.school-card-link {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 600;
  color: #16a34a;
  text-decoration: none;
}
.school-card-link:hover { color: #15803d; }

/* =============================================
   スクール詳細（single-soccer_school）
============================================= */
.breadcrumb {
  font-size: 1.2rem;
  color: #9ca3af;
  margin-bottom: 16px;
}
.breadcrumb a { color: #6b7280; text-decoration: none; }
.breadcrumb a:hover { color: #16a34a; }

.school-detail { max-width: 100%; }

.school-header { margin-bottom: 20px; }
.school-pref-badge {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 2px 12px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.school-name {
  font-size: 2.6rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.3;
  margin-bottom: 10px;
}
.school-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.4rem;
}
.rating-stars { color: #f59e0b; letter-spacing: 2px; }
.rating-num { font-weight: 700; color: #111827; }
.rating-count { color: #9ca3af; font-size: 1.2rem; }

.school-photo { margin-bottom: 24px; border-radius: 10px; overflow: hidden; }
.school-photo-img { width: 100%; max-height: 420px; object-fit: cover; }
.school-photo-credit { font-size: 1.1rem; color: #9ca3af; text-align: right; margin-top: 4px; }

.school-info-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
}
.school-info-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 8px;
}
.school-info-list { display: flex; flex-direction: column; gap: 0; }
.school-info-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
  padding: 11px 0;
  border-bottom: 1px solid #f3f4f6;
  align-items: baseline;
}
.school-info-row:last-child { border-bottom: none; }
.school-info-row dt {
  font-size: 1.3rem;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}
.school-info-row dd {
  font-size: 1.4rem;
  color: #111827;
  line-height: 1.6;
}
.school-info-row dd a { color: #16a34a; }

.btn-school-official {
  display: block;
  margin-top: 20px;
  background: #16a34a;
  color: #fff;
  text-align: center;
  padding: 13px 20px;
  border-radius: 8px;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}
.btn-school-official:hover { background: #15803d; color: #fff; }

.school-map { margin-bottom: 24px; }
.school-map .school-info-title { margin-bottom: 12px; }

.school-description { margin-bottom: 24px; }

.school-notice {
  font-size: 1.2rem;
  color: #9ca3af;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .school-grid { grid-template-columns: 1fr; }
  .school-info-row { grid-template-columns: 110px 1fr; }
}
@media (max-width: 600px) {
  .school-name { font-size: 2rem; }
  .school-info-row { grid-template-columns: 1fr; gap: 2px; }
  .school-info-row dt { color: #9ca3af; font-size: 1.2rem; }
}
