/* ============================================================
   common.css — 城東ウォリアーズ 共通スタイル
   ============================================================ */

/* ----------------------------------------------------------
   1. CSS カスタムプロパティ（テーマ変数）
   ---------------------------------------------------------- */
:root {
  --primary:       #1a6b3c;
  --primary-dark:  #124d2b;
  --primary-light: #2c9356;
  --accent:        #e8a817;
  --accent-light:  #f4c244;
  --bg:            #faf8f3;
  --bg-white:      #ffffff;
  --text-dark:     #2a332c;
  --text-mid:      #526658;
  --text-light:    #809987;
  --border:        #e0e6e1;
  --shadow:        0 4px 20px rgba(26, 107, 60, 0.08);
  --shadow-lg:     0 12px 40px rgba(26, 107, 60, 0.12);
  --radius:        12px;
}

/* ----------------------------------------------------------
   2. リセット・ベーススタイル
   ---------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg);
  line-height: 1.8;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
}
a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ----------------------------------------------------------
   3. ユーティリティ
   ---------------------------------------------------------- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-link {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  transition: opacity 0.3s;
}
.text-link:hover { opacity: 0.7; }

/* ----------------------------------------------------------
   4. スクロールアニメーション
   ---------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------------------------
   5. キーフレーム
   ---------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ----------------------------------------------------------
   6. ボタンコンポーネント
   ---------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(232, 168, 23, 0.3);
  font-size: clamp(15px, 2vw, 18px);
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(232, 168, 23, 0.4);
}
/* LINE ボタン上書き */
.btn-line {
  background-color: #06C755;
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
}
.btn-line:hover {
  background-color: #05B34C;
  box-shadow: 0 6px 16px rgba(6, 199, 85, 0.4);
}
/* アウトラインボタン */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 50px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-outline:hover {
  background-color: var(--primary);
  color: #fff;
}

/* ----------------------------------------------------------
   7. ヘッダー・ナビゲーション
   ---------------------------------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  transition: padding 0.3s ease, box-shadow 0.3s ease, border-bottom 0.3s ease;
  padding: 16px 0;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  padding: 10px 0;
  border-bottom-color: var(--border);
}

/* ヘッダー専用のコンテナ幅 */
.header .container {
  max-width: 1280px; 
  padding: 0 16px;
}

/* 要素の基本並びと余白 */
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: clamp(18px, 2vw, 22px); /* 画面に合わせて少し縮むように */
  font-weight: 900;
  color: var(--primary-dark);
  white-space: nowrap;
}
.logo span { color: var(--accent); }

/* ナビリンク（改行防止・横スクロール対応・自動隙間調整） */
.nav-links {
  display: flex;
  gap: clamp(12px, 1.5vw, 20px); /* 画面幅に応じて隙間を自動調整 */
  align-items: center;
  white-space: nowrap; /* メニューを改行させない */
  overflow-x: auto; /* はみ出た分は横スクロール可能にする */
  -webkit-overflow-scrolling: touch; /* スマホでの滑らかなスクロール */
  scrollbar-width: none; /* Firefox用スクロールバー非表示 */
}

/* Chrome, Safari用のスクロールバー非表示設定 */
.nav-links::-webkit-scrollbar {
  display: none;
}

/* メニュー項目が縮んで崩れるのを防ぐ */
.nav-links .nav-item,
.nav-links .nav-cta {
  flex-shrink: 0;
}

/* 文字サイズ調整 */
.nav-item {
  font-weight: 500;
  color: var(--text-mid);
  font-size: 14px; /* 文字が多いため14pxにスマート化 */
  transition: color 0.3s ease;
}
.nav-item:hover { color: var(--primary); }

/* ボタンサイズ調整 */
.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 8px 16px; /* ボタンも少しスリムに */
  border-radius: 30px;
  font-weight: 700;
  font-size: 13px; /* 13pxに調整 */
  white-space: nowrap;
  transition: background 0.3s ease;
}
.nav-cta:hover { background: var(--accent-light); }

/* サブページ用 戻るリンク */
.back-link {
  font-weight: 500;
  color: var(--primary);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.back-link:hover { opacity: 0.7; }

/* ----------------------------------------------------------
   8. ページヘッダー帯（サブページ共通）
   ---------------------------------------------------------- */
.page-header {
  padding: 140px 24px 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
  color: #fff;
}
.page-header p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ----------------------------------------------------------
   9. フッター CTA セクション
   ---------------------------------------------------------- */
.footer-cta {
  background: var(--text-dark);
  color: #fff;
  text-align: center;
  padding: 100px 24px;
}
.footer-cta h2 { color: #fff; margin-bottom: 24px; }
.footer-cta p  { color: var(--text-light); margin-bottom: 40px; }
.footer-cta .hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ----------------------------------------------------------
   10. フッター
   ---------------------------------------------------------- */
.footer {
  background: #1a1a1a;
  color: var(--text-light);
  text-align: center;
  padding: 60px 24px 40px;
  font-size: 14px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.footer-links a:hover { color: #fff; }
.footer-org-info {
  margin-bottom: 32px;
  line-height: 1.8;
  color: #999;
}
.footer-org-info p { margin-bottom: 4px; }
.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}

/* =========================================
   カレンダー埋め込み（レスポンシブ対応）
========================================= */
.calendar-wrapper {
  width: 100%;
  height: 600px; /* PC表示時の高さ */
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  background-color: #fff;
}
.calendar-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* スマホ表示時の高さ調整 */
@media (max-width: 768px) {
  .calendar-wrapper {
    height: 450px;
  }
}