﻿/* =============================================
   SOLARE SOCCER SCHOOL — 共通スタイル
   ============================================= */

/* ===== VARIABLES ===== */
:root {
  --orange: #F97316;
  --orange-2: #EA6508;
  --orange-light: #FED7AA;
  --orange-pale: #FFF3E8;
  --cream: #FFFBF5;
  --warm: #FEF3E2;
  --border: #FDDCB5;
  --text: #1C1917;
  --text-2: #44403C;
  --text-3: #78716C;
  --white: #FFFFFF;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body { max-width: 100%; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.9;
  -webkit-text-size-adjust: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; height: auto; }
[class*="-item"],[class*="-row"],[class*="-card"] { min-width: 0; }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 56px;
  background: rgba(255,251,245,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4vw;
  transition: box-shadow 0.3s;
  box-sizing: border-box;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.07); }
@media (min-width: 768px) { .nav { height: 64px; padding: 0 5vw; } }

/* ロゴ */
.nav-logo, .nav-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img, .nav-logo-link img { height: 28px; width: auto; }
@media (min-width: 768px) { .nav-logo img, .nav-logo-link img { height: 34px; } }

/* ナビリンク：モバイルはフルスクリーンオーバーレイ */
.nav-links {
  list-style: none;
  display: none;
}
.nav-links.open {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2rem;
  position: fixed; inset: 0; z-index: 9990;
  background: white;
}
.nav-links a { font-size: 16px; color: var(--text-2); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--orange); }

@media (min-width: 768px) {
  .nav-links {
    display: flex !important; flex-direction: row; gap: 1rem;
    position: static; background: transparent;
    flex-wrap: nowrap; align-items: center;
  }
  .nav-links a { font-size: 11.5px; white-space: nowrap; }
  /* バーガー用CTAボタン（最後のli）はPC幅で非表示 */
  .nav-links li:last-child { display: none; }
}

/* CTAボタン：モバイルで非表示 */
.nav-cta { display: none; }
@media (min-width: 768px) {
  .nav-cta {
    display: inline-block;
    font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
    background: var(--orange); color: white;
    padding: 10px 22px; border-radius: 999px; transition: all 0.2s;
    white-space: nowrap; flex-shrink: 0;
  }
  .nav-cta:hover { background: var(--orange-2); transform: translateY(-1px); }
}

/* バーガー：モバイルのみ表示 */
.nav-burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 32px; height: 32px; background: none; border: none;
  cursor: pointer; padding: 2px; z-index: 9999; flex-shrink: 0;
}
.nav-burger span { display: block; width: 100%; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.25s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 768px) { .nav-burger { display: none; } }

/* ===== PAGE HEADER ===== */
.page-header {
  position: relative; min-height: 52vw; max-height: 480px;
  display: flex; align-items: flex-end;
  padding-top: 56px; overflow: hidden;
}
@media (min-width: 768px) { .page-header { padding-top: 64px; min-height: 380px; } }
.page-header-bg { position: absolute; inset: 0; }
.page-header-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.page-header-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(28,25,23,0.1) 0%, rgba(28,25,23,0.62) 55%, rgba(28,25,23,0.88) 100%);
}
.page-header-content {
  position: relative; z-index: 1;
  padding: 0 5vw 2.5rem; max-width: 700px; width: 100%;
}
@media (min-width: 768px) { .page-header-content { padding-bottom: 3.5rem; } }
.page-eyebrow { font-size: 10px; letter-spacing: 0.35em; color: var(--orange); font-weight: 700; margin-bottom: 0.9rem; }
@media (min-width: 768px) { .page-eyebrow { font-size: 11px; } }
.page-title {
  font-family: 'Shippori Mincho', serif; font-weight: 800;
  font-size: clamp(1.6rem, 6vw, 3rem); color: white; line-height: 1.45;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  margin-bottom: 0.75rem;
}
.page-sub { font-size: 13.5px; color: rgba(255,255,255,0.75); line-height: 1.9; max-width: 480px; }
@media (min-width: 768px) { .page-sub { font-size: 14px; } }

/* ===== SECTIONS ===== */
.sec { padding: 4rem 5vw; }
@media (min-width: 768px) { .sec { padding: 6rem 5vw; } }
.sec-white { background: white; }
.sec-warm { background: var(--warm); }
.sec-cream { background: var(--cream); }
.sec-orange { background: var(--orange); }
.sec-dark { background: var(--text); }
.sec-inner { max-width: 860px; margin: 0 auto; }
.sec-inner-wide { max-width: 1060px; margin: 0 auto; }

/* ===== TYPOGRAPHY ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 9.5px; letter-spacing: 0.4em; color: var(--orange);
  font-weight: 700; margin-bottom: 1rem;
}
.eyebrow::before { content: ''; display: block; width: 18px; height: 2px; background: var(--orange); border-radius: 2px; }
.sec-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(1.3rem, 5vw, 2rem);
  font-weight: 800; line-height: 1.6; margin-bottom: 1.25rem; color: var(--text);
}
.sec-title-white { color: white; }
.sec-body { font-size: 15px; color: var(--text-2); line-height: 2.1; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .sec-body { font-size: 15.5px; } }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--orange); color: white;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  padding: 14px 28px; border-radius: 999px;
  box-shadow: 0 4px 20px rgba(249,115,22,0.35); transition: all 0.25s;
}
.btn-primary:hover { background: var(--orange-2); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(249,115,22,0.45); }
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: #06C755; color: white;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  padding: 14px 24px; border-radius: 999px; transition: all 0.25s;
}
.btn-line:hover { background: #05a847; transform: translateY(-2px); }
.btn-white {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: white; color: var(--orange);
  font-size: 13px; font-weight: 900; letter-spacing: 0.06em;
  padding: 14px 28px; border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12); transition: all 0.25s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.18); }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: white; font-size: 13px; font-weight: 600;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,0.55);
  transition: all 0.25s;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* ===== FOOTER ===== */
footer { background: #1C1917; padding: 4rem 5vw 2.5rem; }
.footer-inner { max-width: 1000px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.footer-brand img { height: 28px; margin-bottom: 0.6rem; filter: brightness(0) invert(1) opacity(0.75); }
.footer-brand-text { font-family: 'Shippori Mincho', serif; font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 0.5rem; }
.footer-concept { font-size: 11px; color: var(--orange-light); letter-spacing: 0.1em; }
.footer-address { font-size: 11px; color: rgba(255,255,255,0.28); margin-top: 5px; line-height: 1.8; }
.footer-nav { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.footer-nav-col h4 { font-size: 9.5px; letter-spacing: 0.25em; color: var(--orange); font-weight: 700; margin-bottom: 0.9rem; }
.footer-nav-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav-col a { font-size: 12.5px; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-nav-col a:hover { color: white; }
.footer-bottom { font-size: 11px; color: rgba(255,255,255,0.2); text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.06); }

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.06s; }
.reveal-d2 { transition-delay: 0.12s; }
.reveal-d3 { transition-delay: 0.18s; }
.reveal-d4 { transition-delay: 0.24s; }

/* ===== COMMON COMPONENTS ===== */
/* cards */
.card-base {
  background: white; border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem 1.25rem;
  transition: all 0.3s;
}
.card-base:hover { box-shadow: 0 8px 28px rgba(249,115,22,0.1); transform: translateY(-3px); border-color: var(--orange); }

/* quote block */
.quote-block {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  font-weight: 700; line-height: 2; color: var(--text);
  border-left: 3px solid var(--orange);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0; background: var(--orange-pale); border-radius: 0 8px 8px 0;
}
@media (min-width: 768px) { .quote-block { padding: 1.5rem 2rem; } }

/* news list */
.news-list { display: flex; flex-direction: column; margin-top: 1.25rem; }
.news-item {
  display: flex; flex-direction: column; gap: 3px;
  padding: 0.9rem 0; border-bottom: 1px solid var(--border);
  font-size: 14.5px; transition: color 0.2s;
}
@media (min-width: 560px) { .news-item { flex-direction: row; gap: 1.5rem; align-items: baseline; } }
.news-item:hover { color: var(--orange); }
.news-date { font-size: 11.5px; color: var(--text-3); flex-shrink: 0; min-width: 80px; }

/* CTA section */
.cta-sec {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-2) 100%);
  padding: 4.5rem 5vw; text-align: center; position: relative; overflow: hidden;
}
@media (min-width: 768px) { .cta-sec { padding: 6rem 5vw; } }
.cta-sec::before {
  content: ''; position: absolute; top: -80px; right: -60px;
  width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,0.06);
}
.cta-sec::after {
  content: ''; position: absolute; bottom: -60px; left: -40px;
  width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,0.04);
}
.cta-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.cta-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(1.15rem, 4.5vw, 1.75rem);
  font-weight: 800; color: white; line-height: 1.8; margin-bottom: 0.9rem;
}
.cta-body { font-size: 14px; color: rgba(255,255,255,0.85); line-height: 2; margin-bottom: 2rem; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; }
@media (min-width: 480px) { .cta-actions { flex-direction: row; justify-content: center; } }

/* nav scroll script */

/* ===== RESPONSIVE GRID UTILITIES ===== */
.grid-2col { display:grid; grid-template-columns:1fr; gap:1.5rem; }
.grid-3col { display:grid; grid-template-columns:1fr; gap:1.25rem; }
@media(min-width:560px){ .grid-2col { grid-template-columns:1fr 1fr; } }
@media(min-width:560px){ .grid-3col { grid-template-columns:1fr 1fr; } }
@media(min-width:900px){ .grid-3col { grid-template-columns:1fr 1fr 1fr; } }

/* テーブル行（72px固定ラベル）のスマホ対応 */
.table-row { display:flex; flex-direction:column; }
.table-label { font-size:11.5px; font-weight:700; color:var(--text-2); padding:0.5rem 0; border-bottom:1px solid var(--border); }
.table-val { font-size:13px; color:var(--text-2); padding:0.5rem 0 0.9rem; }
@media(min-width:480px){
  .table-row { display:grid; grid-template-columns:72px 1fr; align-items:center; }
  .table-label { border-bottom:none; border-right:2px solid var(--orange); padding:0.9rem 1rem; }
  .table-val { padding:0.9rem 1.1rem; }
}

/* overflow防止 */
table { width:100%; border-collapse:collapse; }
img { max-width:100%; height:auto; }

