/*
Theme Name:   Shigaku Champions Cup
Theme URI:    https://shigakusoccer.jp
Description:  首都圏私立中学校チャンピオンズカップ 公式サイト用子テーマ
Author:       
Author URI:  
Template:     astra
Version:      1.0.1
License:      GNU General Public License v2 or later
Text Domain:  shigaku-child
*/

/* ============================================
   ブランドカラー変数
   ============================================ */
:root {
  --brand-blue:       #0077cc;
  --brand-blue-dark:  #005fa3;
  --brand-blue-mid:   #00aaee;
  --brand-blue-pale:  #e8f6ff;
  --brand-yellow:     #ffcc00;
  --brand-yellow2:    #ffdd44;
  --brand-navy:       #1B2C7A;
  --brand-gray:       #64748b;
  --brand-gray-light: #f1f5f9;
  --brand-white:      #ffffff;
  --brand-border:     #e2e8f0;
}

/* ============================================
   基本リセット
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  background: #f8fafc;
  color: var(--brand-navy);
}

/* ============================================
   ヘッダー
   ============================================ */
.site-header,
.ast-primary-header-bar {
  background: var(--brand-white) !important;
  border-bottom: 3px solid transparent !important;
  border-image: linear-gradient(90deg, #0044aa, #0077cc, #00ccff) 1 !important;
  box-shadow: 0 2px 8px rgba(0, 119, 204, 0.08) !important;
}

.ast-primary-navigation .menu-link,
.ast-primary-navigation > ul > li > a {
  color: var(--brand-gray) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.ast-primary-navigation .menu-link:hover,
.ast-primary-navigation > ul > li > a:hover {
  color: var(--brand-blue) !important;
}

/* 参加申込ボタン（最後のメニュー項目） */
.ast-primary-navigation > ul > li:last-child > a {
  background: var(--brand-yellow) !important;
  color: var(--brand-navy) !important;
  padding: 8px 20px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
}

/* ============================================
   サイトロゴ
   ============================================ */
.site-title a {
  color: var(--brand-navy) !important;
  font-weight: 700 !important;
}

/* ============================================
   ボタン全般
   ============================================ */
.ast-button,
.wp-block-button__link,
.btn-primary {
  background: var(--brand-blue) !important;
  color: var(--brand-white) !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  border: none !important;
  transition: background 0.2s, transform 0.15s !important;
}

.ast-button:hover,
.wp-block-button__link:hover {
  background: var(--brand-blue-dark) !important;
  transform: translateY(-2px) !important;
}

/* 黄色ボタン用クラス */
.wp-block-button.is-style-yellow .wp-block-button__link {
  background: var(--brand-yellow) !important;
  color: var(--brand-navy) !important;
}

.wp-block-button.is-style-yellow .wp-block-button__link:hover {
  background: var(--brand-yellow2) !important;
}

/* ============================================
   見出し
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  color: var(--brand-navy);
  font-family: 'Noto Sans JP', sans-serif;
}

/* セクションタイトル用クラス */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--brand-blue);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.section-label::before {
  content: '';
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, #0055bb, #00ccff);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #001f6e 0%, #0077cc 60%, #00aaee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   ヒーローセクション
   ============================================ */
.hero-section {
  background: linear-gradient(160deg, rgba(0,31,110,0.82) 0%, rgba(0,85,187,0.72) 30%, rgba(0,170,255,0.55) 70%, rgba(100,220,255,0.45) 100%),
              center / cover no-repeat;
  min-height: 480px;
  display: flex;
  align-items: center;
  padding: 80px 40px 60px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 22px;
  color: rgba(255,255,255,.9);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
}

.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-yellow);
  animation: pulse-dot 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .2; }
}

.hero-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  color: var(--brand-white);
  line-height: 1.35;
  letter-spacing: .04em;
  margin-bottom: 16px;
}

.hero-title em {
  display: block;
  font-style: normal;
  font-size: clamp(18px, 2.5vw, 26px);
  color: var(--brand-yellow);
  font-weight: 700;
}

.hero-catch {
  font-size: 15px;
  color: rgba(255,255,255,.82);
  line-height: 1.9;
  margin-bottom: 32px;
}

/* ============================================
   バナーカード
   ============================================ */
.banner-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--brand-border);
  background: var(--brand-white);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}

.banner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 119, 204, .15);
}

.banner-card-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.banner-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,30,60,.82) 0%, rgba(10,30,60,.45) 50%, rgba(10,30,60,.2) 100%);
}

.banner-card-img.blue1 {
  background: linear-gradient(150deg, #001a77 0%, #0055bb 40%, #0099dd 75%, #33bbee 100%);
}
.banner-card-img.blue2 {
  background: linear-gradient(150deg, #002288 0%, #0066cc 40%, #00aae8 75%, #44ccff 100%);
}
.banner-card-img.blue3 {
  background: linear-gradient(150deg, #001155 0%, #0044aa 40%, #0077cc 75%, #22aadd 100%);
}

.banner-card-body {
  padding: 16px 18px 20px;
}

.banner-card-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.4;
  margin-bottom: 6px;
}

.banner-card-body p {
  font-size: 12px;
  color: var(--brand-gray);
  line-height: 1.7;
}

.banner-new {
  display: inline-block;
  background: var(--brand-yellow);
  color: var(--brand-navy);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 6px;
}

/* ============================================
   ニュースリスト
   ============================================ */
.news-item-link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--brand-white);
  border-radius: 6px;
  border: 1px solid var(--brand-border);
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s;
  margin-bottom: 4px;
}

.news-item-link:hover {
  border-color: var(--brand-blue-mid);
  box-shadow: 0 2px 10px rgba(0, 119, 204, .1);
}

.news-cat {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 3px 9px;
  border-radius: 100px;
  margin-top: 2px;
  white-space: nowrap;
}

.news-cat.cat-new    { background: #fef9e0; color: #996600; }
.news-cat.cat-result { background: #e6f7ee; color: #15803d; }
.news-cat.cat-event  { background: #ffe8e8; color: #dc2626; }
.news-cat.cat-info   { background: #FFEDD5; color: #C2410C; }

.news-item-date {
  font-size: 11px;
  color: var(--brand-gray);
  margin-bottom: 4px;
}

.news-item-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-navy);
  line-height: 1.55;
}

/* ============================================
   スタッツカード
   ============================================ */
.stats-card {
  background: var(--brand-white);
  border-radius: 12px 12px 0 0;
  padding: 28px 24px 32px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-item { text-align: center; }

.stat-number {
  font-size: 44px;
  font-weight: 900;
  background: linear-gradient(135deg, #0033aa 0%, #0088cc 50%, #00ccff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: block;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 10px;
  color: var(--brand-gray);
  letter-spacing: .1em;
  margin-top: 4px;
  display: block;
}

.stat-divider {
  grid-column: span 2;
  height: 1px;
  background: var(--brand-border);
}

/* ============================================
   CTAセクション
   ============================================ */
.cta-section {
  background: linear-gradient(160deg, #001166 0%, #0044bb 20%, #0077dd 45%, #00aaff 68%, #33ccff 85%, #99eeff 100%);
  padding: 72px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* ============================================
   スポンサー帯
   ============================================ */
.sponsor-strip {
  background: var(--brand-navy);
  padding: 28px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: center;
}

.sponsor-item {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  letter-spacing: .08em;
  transition: color .2s;
}

.sponsor-item:hover { color: rgba(255,255,255,.7); }

/* ============================================
   フッター
   ============================================ */
.site-footer,
.ast-small-footer {
  background: var(--brand-navy) !important;
  color: rgba(255,255,255,.4) !important;
}

.site-footer a,
.ast-small-footer a {
  color: rgba(255,255,255,.4) !important;
  transition: color .2s !important;
}

.site-footer a:hover,
.ast-small-footer a:hover {
  color: var(--brand-blue-mid) !important;
}

/* ============================================
   Gutenbergブロック上書き
   ============================================ */
.wp-block-cover {
  min-height: 480px !important;
}

.wp-block-columns {
  gap: 24px !important;
}

/* ============================================
   レスポンシブ
   ============================================ */
@media (max-width: 768px) {
  .hero-section {
    padding: 80px 24px 48px;
    min-height: auto;
  }

  .stats-card {
    grid-template-columns: 1fr 1fr;
    border-radius: 8px;
    margin: 24px;
  }

  .stat-number { font-size: 32px; }

  .cta-section { padding: 56px 24px; }
  .sponsor-strip { padding: 24px; gap: 20px; }
}

/* ===== フッター：案B ライト＋カラーロゴ ===== */
footer,
.ast-small-footer,
.site-footer {
  background: #f4f6f8 !important;
  color: #444 !important;
  border-top: 3px solid #0066cc !important;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-brand p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 8px 0 0;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: #0d1f3c !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.site-footer a,
.ast-small-footer a {
  color: #555 !important;
  transition: color .2s !important;
  text-decoration: none !important;
}

.site-footer a:hover,
.ast-small-footer a:hover {
  color: #0066cc !important;
}

footer .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer .footer-col ul li {
  margin-bottom: 6px;
  font-size: 13px;
}

.footer-bottom {
  border-top: 1px solid #dde0e5;
  padding-top: 16px;
  font-size: 12px;
  color: #999 !important;
}

footer .logo-img {
  filter: none !important;
  height: 42px !important;
  width: auto !important;
}


/* ロゴ画像（ナビ） */
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 42px !important; width: auto !important; display: block; max-width: none !important; }
