/*
Theme Name: Aichi Korfball
Theme URI: https://aichi.korfball.jp/
Author: Aichi Korfball Association
Description: 愛知県コーフボール協会公式テーマ。青(#1B4F8A) + オレンジ(#F5A623)のシンプルでカード型のレイアウト。
Version: 1.0.0
License: GPL v2 or later
Text Domain: aichi-korfball
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  background: #f7f9fc;
  line-height: 1.7;
}
a { color: #1B4F8A; }
a:hover { color: #15406e; }

/* Header / Hero */
.site-hero {
  background: linear-gradient(135deg, #1B4F8A 0%, #2a6cb8 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
}
.site-hero h1, .site-hero .site-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  color: white;
}
.site-hero h1 a, .site-hero .site-title a {
  color: white;
  text-decoration: none;
}
.site-hero .en { font-size: 0.9rem; opacity: 0.8; margin-bottom: 1.5rem; }
.site-hero .tagline { font-size: 1.1rem; font-weight: 300; line-height: 1.6; }
.site-hero .badges {
  display: flex; justify-content: center; gap: 12px;
  margin-top: 1.5rem; flex-wrap: wrap;
}
.site-hero .badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px; padding: 6px 16px; font-size: 0.8rem;
}

/* Slim hero for sub-pages */
.site-hero.slim { padding: 36px 20px 28px; }
.site-hero.slim .site-title { font-size: 0.8rem; opacity: 0.7; margin-bottom: 8px; }
.site-hero.slim .site-title a { color: white; text-decoration: none; }
.page-title { font-size: 1.8rem; color: white; font-weight: 700; letter-spacing: 0.05em; margin-top: 4px; }

/* Navigation */
.site-nav {
  background: #15406e;
  text-align: center;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.site-nav ul {
  list-style: none;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0; padding: 0;
}
.site-nav a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
}
.site-nav a:hover { color: #F5A623; }
.site-nav .current_page_item a { color: #F5A623; }

/* Main */
.site-main { max-width: 960px; margin: 40px auto; padding: 0 20px; }
.entry-content > * { margin-bottom: 24px; }

/* Card style — applied via .card class on a wp-block-group */
.entry-content .wp-block-group.card,
.entry-content .card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.entry-content h2 {
  color: #1B4F8A;
  font-size: 1.2rem;
  margin-bottom: 16px;
  border-bottom: 2px solid #F5A623;
  padding-bottom: 8px;
  display: inline-block;
}
.entry-content h3 { color: #1B4F8A; font-size: 1.05rem; margin: 16px 0 8px; }
.entry-content p, .entry-content li { line-height: 1.8; font-size: 0.95rem; }
.entry-content p { margin-bottom: 12px; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content li { margin-bottom: 8px; }

/* Tables */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.entry-content table th {
  text-align: left;
  padding: 8px 12px;
  background: #f0f4f8;
  font-size: 0.85rem;
  width: 30%;
}
.entry-content table td { padding: 8px 12px; font-size: 0.9rem; }
.entry-content table tr { border-bottom: 1px solid #e8ecf0; }

/* CTA button */
.entry-content .cta { text-align: center; margin: 40px 0; }
.entry-content .cta a,
.wp-block-button .wp-block-button__link {
  display: inline-block;
  background: #1B4F8A;
  color: white;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  transition: background 0.2s;
  border: none;
}
.entry-content .cta a:hover,
.wp-block-button .wp-block-button__link:hover { background: #15406e; }

/* Regulations page — doc list */
.entry-content .lead {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-left: 4px solid #F5A623;
  margin-bottom: 24px;
}
.entry-content .doc-list { display: grid; gap: 12px; }
.entry-content .doc {
  display: block;
  background: white;
  border: 1px solid #e3eaf2;
  border-radius: 8px;
  padding: 16px 18px;
  text-decoration: none;
  color: #253346;
  box-shadow: 0 1px 5px rgba(0,0,0,0.04);
}
.entry-content .doc:hover { border-color: #F5A623; }
.entry-content .doc .no {
  display: inline-block;
  min-width: 2.4em;
  color: #6d7d90;
  font-size: 0.85rem;
}
.entry-content .doc .type {
  display: block;
  color: #7a8795;
  font-size: 0.78rem;
  margin-top: 3px;
}
.entry-content .back { margin-top: 28px; }
.entry-content .back a {
  display: inline-block;
  background: #1B4F8A;
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 30px 20px;
  color: #999;
  font-size: 0.8rem;
  border-top: 1px solid #e8ecf0;
  margin-top: 40px;
}
.site-footer a { color: #1B4F8A; text-decoration: none; }

@media (max-width: 600px) {
  .site-hero h1, .site-hero .site-title { font-size: 1.5rem; }
  .site-hero { padding: 50px 16px; }
  .entry-content .wp-block-group.card,
  .entry-content .card { padding: 24px 20px; }
  .site-nav ul { gap: 12px; }
}

/* Pamphlet image */
.pamphlet-image { margin: 2.5rem 0 !important; }
.pamphlet-image img {
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border: 1px solid #e0e0e0;
  width: 100%;
  height: auto;
}
.pamphlet-image figcaption { color: #888; font-size: 0.82rem; text-align: center; margin-top: 8px; }

/* Willows external link button */
.btn-team {
  display: inline-block;
  background: #C08F1D;
  color: white !important;
  text-decoration: none !important;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
  margin: 4px;
}
.btn-team:hover { background: #a07515; transform: translateY(-1px); }

/* Tables — improved for authority/trust */
.entry-content table th {
  background: #1B4F8A !important;
  color: white !important;
  font-size: 0.85rem;
  font-weight: 600;
}
.entry-content table tr:nth-child(even) td { background: #f8fafc; }

/* News page */
.news-item { border-bottom: 1px solid #e8ecf0; padding-bottom: 20px; margin-bottom: 20px; }
.news-item .date { color: #888; font-size: 0.82rem; margin-bottom: 4px; }
.news-item h2 { font-size: 1.05rem; margin-bottom: 0; border-bottom: none; padding-bottom: 0; }


/* ============================================================
   AKA (愛知県コーフボール協会) スタイル追加分
   tcd086ダークレッド配色 + ホームページ新セクション
   ============================================================ */

/* --- カラー変数 --- */
:root {
  --aka-red:      #950000;
  --aka-red-dark: #7A0400;
  --aka-text:     #444444;
  --aka-bg-warm:  #FAF9F5;
  --aka-bg-light: #F4F4F4;
  --aka-black:    #30302E;
  --aka-white:    #FFFFFF;
}

/* --- 旧カラー（navy/gold）を上書き --- */
.site-header,
#masthead,
header.site-header {
  background-color: var(--aka-red) !important;
}
.main-navigation a,
.site-header a,
.site-branding a {
  color: var(--aka-white) !important;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: rgba(255,255,255,0.80) !important;
  border-bottom-color: var(--aka-white) !important;
}
.site-header.is-sticky,
.sticky-header {
  background-color: var(--aka-red) !important;
  box-shadow: 0 2px 12px rgba(149,0,0,0.25) !important;
}
a { color: var(--aka-red); }
a:hover { color: var(--aka-red-dark); }
.wp-block-button__link,
.wp-block-button .wp-element-button,
button[type="submit"],
input[type="submit"] {
  background-color: var(--aka-red) !important;
  border-color: var(--aka-red) !important;
  color: var(--aka-white) !important;
}
.wp-block-button__link:hover,
button[type="submit"]:hover {
  background-color: var(--aka-red-dark) !important;
  border-color: var(--aka-red-dark) !important;
}
.page-header,
.page-hero,
.entry-header-bg {
  background-color: var(--aka-red) !important;
}
.wp-block-separator,
hr.wp-block-separator {
  border-color: var(--aka-red) !important;
}

.btn-team { display: none !important; }


/* ============================================================
   フォトストリップ
   ============================================================ */
.photo-strip {
  background: var(--aka-black);
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: 0;
}
.photo-strip-inner {
  display: flex;
  gap: 3px;
}
.strip-item {
  flex: 1;
  overflow: hidden;
  aspect-ratio: 4/3;
  min-width: 0;
}
.strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.strip-item:hover img {
  transform: scale(1.07);
}


/* ============================================================
   3パネルナビ
   ============================================================ */
.category-panels {
  background: var(--aka-bg-warm);
  padding: 64px 20px;
  margin: 0;
}
.panels-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
}
.panel {
  flex: 1;
  background: var(--aka-white);
  border-radius: 8px;
  padding: 44px 28px 36px;
  text-align: center;
  text-decoration: none !important;
  color: var(--aka-text) !important;
  border-top: 4px solid var(--aka-red);
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  transition: box-shadow 0.25s, transform 0.25s;
  display: block;
}
.panel:hover {
  box-shadow: 0 8px 32px rgba(149,0,0,0.14);
  transform: translateY(-5px);
}
.panel-icon {
  font-size: 2.8rem;
  margin-bottom: 18px;
  display: block;
}
.panel-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--aka-red);
  margin: 0 0 10px;
  letter-spacing: 0.05em;
}
.panel-desc {
  font-size: 0.875rem;
  color: #888;
  margin: 0;
  line-height: 1.6;
}


/* ============================================================
   特集記事（活動実績）
   ============================================================ */
.feature-articles {
  background: var(--aka-white);
  padding: 80px 20px;
  margin: 0;
}
.section-header {
  text-align: center;
  max-width: 960px;
  margin: 0 auto 52px;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--aka-black);
  margin: 0 0 8px;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 3px;
  background: var(--aka-red);
  border-radius: 2px;
}
.section-header p {
  color: #999;
  font-size: 0.9rem;
  margin: 0;
}
.articles-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: var(--aka-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: box-shadow 0.25s, transform 0.25s;
}
.feature-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
  transform: translateY(-4px);
}
.card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--aka-bg-light);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-body {
  padding: 22px 20px 20px;
}
.card-date {
  font-size: 0.78rem;
  color: #aaa;
  display: block;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--aka-black);
  margin: 0 0 10px;
  line-height: 1.55;
}
.card-text {
  font-size: 0.86rem;
  color: var(--aka-text);
  line-height: 1.75;
  margin: 0 0 14px;
}
.card-tag {
  display: inline-block;
  background: var(--aka-red);
  color: var(--aka-white);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}


/* ============================================================
   CTAバナー
   ============================================================ */
.cta-banner {
  background: var(--aka-red);
  padding: 80px 20px;
  text-align: center;
  margin: 0;
}
.cta-inner {
  max-width: 680px;
  margin: 0 auto;
}
.cta-banner h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--aka-white);
  margin: 0 0 16px;
  line-height: 1.4;
}
.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin: 0 0 36px;
  line-height: 1.7;
}
.btn-cta {
  display: inline-block;
  background: var(--aka-white);
  color: var(--aka-red) !important;
  font-size: 1rem;
  font-weight: 700;
  padding: 15px 44px;
  border-radius: 4px;
  text-decoration: none !important;
  letter-spacing: 0.05em;
  transition: background 0.2s, opacity 0.2s;
}
.btn-cta:hover {
  background: rgba(255,255,255,0.88);
  opacity: 1;
}


/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 768px) {
  .panels-inner {
    flex-direction: column;
    gap: 16px;
  }
  .panel { padding: 32px 20px 28px; }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .photo-strip-inner {
    flex-wrap: wrap;
  }
  .strip-item {
    flex: 0 0 calc(50% - 2px);
  }

  .cta-banner h2 { font-size: 1.5rem; }
  .section-header h2 { font-size: 1.5rem; }
}

/* ============================================================
   ヘッダー・ナビ ダークレッド修正
   ============================================================ */

/* site-hero（青グラデーション）→ ダークレッドに上書き */
.site-hero {
  background: var(--aka-red) !important;
  background-image: none !important;
}

/* site-nav（ダークネイビー）→ ダークレッドに */
.site-nav {
  background-color: var(--aka-red-dark) !important;
}
.site-nav a {
  color: var(--aka-white) !important;
}
.site-nav a:hover,
.site-nav .current-menu-item > a {
  color: rgba(255,255,255,0.80) !important;
}

/* tcd086テーマの装飾ライン（ゴールド）を非表示 */
.decoration,
.decoration-line,
[class*="deco"],
.line-left,
.line-right {
  display: none !important;
}

/* 旧テーマの金色装飾ボーダーを削除 */
article.hentry {
  border-left: none !important;
  padding-left: 0 !important;
}
article.hentry::before,
article.hentry::after,
body::before {
  display: none !important;
  content: none !important;
}

/* 新セクション全ての金色ボーダーを削除 */
.photo-strip,
.category-panels,
.feature-articles,
.cta-banner,
.photo-strip *,
.category-panels *,
.feature-articles *,
.cta-banner * {
  border-left-color: transparent !important;
}
.photo-strip,
.category-panels,
.feature-articles,
.cta-banner {
  border-left: none !important;
  padding-left: 0 !important;
}

/* パネルタイトル・カードタイトルの色をダークレッドに強制 */
.panel-title,
.panel-title h3,
h3.panel-title {
  color: #950000 !important;
}
.card-title,
h3.card-title {
  color: #30302E !important;
}
/* パネルのリンク色を上書き */
a.panel,
a.panel:visited,
a.panel .panel-title {
  color: #444444 !important;
}
a.panel .panel-title {
  color: #950000 !important;
}
/* 活動実績タイトルのリンク色 */
.feature-articles h3,
.feature-articles a {
  color: #30302E !important;
}
.section-header h2 {
  color: #30302E !important;
}

/* ===================================================
   tcd086スタイル ヒーロー3パネル + セクション
   AKA Site Redesign v2
=================================================== */

/* 既存の旧デザインを非表示 */
.photo-strip,
.category-panels,
.feature-articles,
.cta-banner {
  display: none !important;
}

/* =====================
   ヒーロー 3パネル
===================== */
.aka-hero-panels {
  display: flex;
  width: 100%;
  height: 88vh;
  min-height: 520px;
  max-height: 900px;
  overflow: hidden;
}

.aka-panel {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: block;
  text-decoration: none;
  transition: flex 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.aka-panel:hover {
  flex: 1.6;
}

.aka-panel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.aka-panel:hover .aka-panel-bg {
  transform: scale(1.05);
}

.aka-panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.48) 60%,
    rgba(149, 0, 0, 0.72) 100%
  );
  transition: background 0.4s ease;
}

.aka-panel:hover .aka-panel-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0.38) 50%,
    rgba(149, 0, 0, 0.82) 100%
  );
}

.aka-panel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 32px 48px;
  color: #fff;
  text-align: center;
  transform: translateY(8px);
  transition: transform 0.4s ease;
}

.aka-panel:hover .aka-panel-content {
  transform: translateY(0);
}

.aka-panel-icon {
  margin-bottom: 16px;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.aka-panel:hover .aka-panel-icon {
  opacity: 1;
}

.aka-panel-title {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  margin: 0 0 8px;
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  border: none !important;
  padding: 0 !important;
}

.aka-panel-en {
  font-size: 0.82rem;
  letter-spacing: 0.25em;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  margin: 0 0 10px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.aka-panel-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.9);
  margin: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.aka-panel:hover .aka-panel-desc {
  opacity: 1;
  transform: translateY(0);
}

/* 仕切り線（パネル間） */
.aka-panel + .aka-panel::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255,255,255,0.25);
  z-index: 5;
  pointer-events: none;
}

/* =====================
   協会について
===================== */
.aka-about {
  background: #FAF9F5;
  padding: 80px 20px 96px;
}

.aka-about-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.aka-about-label {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: #950000;
  font-weight: 700;
  margin-bottom: 14px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.aka-about-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: #30302E;
  margin: 0 0 20px;
  letter-spacing: 0.04em;
  border: none !important;
  padding: 0 !important;
}

.aka-about-divider {
  width: 40px;
  height: 3px;
  background: #950000;
  margin: 0 auto 32px;
  border-radius: 2px;
}

.aka-about-text {
  font-size: 1rem;
  line-height: 2;
  color: #555;
  max-width: 660px;
  margin: 0 auto 56px;
}

.aka-about-features {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.aka-feature {
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  background: #fff;
  border-top: 3px solid #950000;
  padding: 28px 20px 24px;
  text-align: left;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-left: none !important;
}

.aka-feature-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: rgba(149,0,0,0.15);
  line-height: 1;
  margin-bottom: 10px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.aka-feature h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #30302E;
  margin: 0 0 10px;
  border: none !important;
  padding: 0 !important;
}

.aka-feature p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: #666;
  margin: 0;
}

.aka-cta-btn {
  display: inline-block;
  background: #950000;
  color: #fff !important;
  padding: 16px 48px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.aka-cta-btn:hover {
  background: #7A0400;
  transform: translateY(-2px);
  color: #fff !important;
  text-decoration: none;
}

/* =====================
   最新情報セクション
===================== */
.aka-news {
  background: #fff;
  padding: 72px 20px 88px;
  border-top: 1px solid #eee;
}

.aka-news-inner {
  max-width: 900px;
  margin: 0 auto;
}

.aka-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.aka-section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #30302E;
  margin: 0 0 20px;
  border: none !important;
  padding: 0 !important;
}

.aka-news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.aka-more-link {
  display: block;
  text-align: center;
  color: #950000;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.aka-more-link:hover {
  text-decoration: underline;
}

/* =====================
   レスポンシブ
===================== */
@media (max-width: 768px) {
  .aka-hero-panels {
    flex-direction: column;
    height: auto;
    max-height: none;
  }

  .aka-panel {
    height: 40vw;
    min-height: 180px;
  }

  .aka-panel:hover {
    flex: 1;
  }

  .aka-panel-content {
    padding: 0 20px 28px;
  }

  .aka-panel-title {
    font-size: 1.8rem;
  }

  .aka-about-features {
    flex-direction: column;
    align-items: center;
  }

  .aka-feature {
    max-width: 100%;
    width: 100%;
  }
}
