/* ================================
   スキルマッチベースボール - 共通スタイル
   Wireframe Base Styles (grayscale)
================================ */

/* ================================
   CSS変数定義
================================ */
:root {
  /* フォントファミリー */
  /* 優先順位: Noto Sans JP → Helvetica Neue → Helvetica → Segoe UI → 日本語フォント → システムフォント */
  --font-family-primary: 'Noto Sans JP', 'Helvetica Neue', Helvetica, 'Segoe UI', 'ヒラギノ角ゴ Pro', 'Hiragino Kaku Gothic Pro', 'メイリオ', Meiryo, Osaka, 'MS Pゴシック', 'MS PGothic', sans-serif;
  
  /* カラーパレット */
  --bg: #ffffff;
  --text: #222;
  --text-secondary: #444;
  --muted: #666;
  --muted-light: #777;
  --muted-lighter: #999;
  --muted-lightest: #aaa;
  --brand-color: #E93F4B;
  
  /* ボーダー・ライン */
  --line: #e5e5e5;
  --line-dashed: #bbb;
  --line-dashed-light: #ccc;
  
  /* カード・背景 */
  --card: #f7f7f7;
  --card-light: #f5f5f4;
  --card-lighter: #e8e8e8;
  
  /* アクセント */
  --accent: #C62828;       /* ベースの濃い赤 */
--accent-light: #F8D7DA; /* 薄い赤（背景ハイライト用） */
--accent-lighter: #8B1A1A; /* さらに濃い赤（テキストやhover用） */
  
  /* サイズ・スペーシング */
  --radius: 1.4rem;
  --radius-sm: 1rem;
  --radius-full: 999px;
  --radius-lg: 2rem;
  --container: min(110rem, 92vw);
  
  /* シャドウ */
  --shadow: 0 2px 14px rgba(0,0,0,.06);
  
  /* フォントサイズ */
  --text-xs: 1.1rem;
  --text-sm: 1.2rem;
  --text-base: 1.6rem;
  --text-lg: 1.8rem;
  --text-xl: 2rem;
  --text-2xl: 2.4rem;
  --text-3xl: clamp(2.8rem, 2.6vw, 4rem);
  --text-4xl: clamp(2.8rem, 3.6vw, 3.8rem);
  
  /* スペーシング */
  --space-xs: 0.6rem;
  --space-sm: 0.8rem;
  --space-md: 1rem;
  --space-lg: 1.2rem;
  --space-xl: 1.4rem;
  --space-2xl: 1.6rem;
  --space-3xl: 1.8rem;
  --space-4xl: 2.8rem;
  --space-5xl: 3.2rem;
  --space-6xl: 3.6rem;
  --space-7xl: 4.2rem;
  --space-8xl: 9.6rem;
  --space-9xl: 12.8rem;
  
  /* ブレークポイント */
  --breakpoint-sm: 640px;
  --breakpoint-md: 960px;
  
  /* お問い合わせフォーム用の追加変数 */
  --primary: #000080;
  --primary-hover: #000060;
  --error: #dc2626;
  --success: #059669;
}

/* ================================
   リセット・ベーススタイル
================================ */
* { 
  box-sizing: border-box; 
}

html, body { 
  height: 100%;
  font-size: 10px;
}

body {
  margin: 0; 
  font-family: var(--font-family-primary);
  color: var(--text); 
  background: var(--bg); 
  line-height: 1.5;
  letter-spacing: .01em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { 
  max-width: 100%; 
  display: block; 
}

a { 
  color: inherit; 
  text-decoration: none; 
}

/* ================================
   レイアウト・コンテナ
================================ */
.container { 
  width: var(--container); 
  margin: 0 auto; 
}

.stack { 
  display: grid; 
  gap: var(--space-4xl); 
}

.section { 
  padding: var(--space-8xl) 0; 
  border-top: 0.1rem solid var(--line); 
}

.section:first-of-type { 
  border-top: none; 
}

/* ================================
   タイポグラフィ
================================ */
.eyebrow { 
  font-size: var(--text-sm); 
  letter-spacing: .12em; 
  text-transform: uppercase; 
  color: var(--muted); 
}

.h1 { 
  font-size: var(--text-4xl); 
  line-height: 1.2; 
  margin: var(--space-sm) 0;
  font-weight: 800; 
}

.h2 { 
  font-size: var(--text-3xl); 
  line-height: 1.25; 
  display: block;
    margin: auto;
  font-weight: 800; 
  color: #000;
  background-image: linear-gradient(transparent 70%, var(--accent-light) 70%, var(--accent-light) 100%, transparent 100%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: 0 0;
  padding: 0.2rem 2rem;
  border-radius: 0.8rem;
}

.h3 { 
  font-size: var(--text-2xl); 
  font-weight: 700; 
  margin: 0; 
}

.lead { 
  font-size: var(--text-lg); 
  color: var(--text-secondary); 
}

/* ================================
   ボタン
================================ */
.btnrow { 
  display: flex; 
  gap: var(--space-lg); 
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  appearance: none; 
  border: 0.1rem solid var(--accent); 
  background: var(--accent); 
  color: var(--bg); 
  padding: var(--space-xl) var(--space-5xl); 
  border-radius: var(--radius-full); 
  font-weight: 700; 
  font-size: var(--text-2xl); 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: var(--space-sm); 
  transition: all 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn.secondary { 
  background: #FFF; 
  color: var(--accent); 
}

.btn.ghost { 
  background: transparent; 
  border-style: dashed; 
  color: var(--accent); 
}

/* ================================
   ナビゲーション
================================ */
.nav { 
  position: sticky; 
  top: 0; 
  backdrop-filter: blur(0.8rem); 
  background: rgba(255,255,255,.7); 
  border-bottom: 0.1rem solid var(--line); 
  z-index: 50; 
}

.nav__inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: var(--space-lg) 0; 
}

.logo { 
  display: flex; 
  align-items: center; 
  gap: var(--space-md); 
  font-weight: 800; 
}

.logo__mark { 
  width: 3.6rem; 
  height: 3.6rem; 
  border-radius: var(--radius-sm); 
  background: var(--accent-light); 
  display: grid; 
  place-items: center; 
  font-size: var(--text-xs); 
  color: var(--accent-lighter); 
}

.nav__links { 
  display: none; 
  gap: var(--space-3xl); 
  color: var(--muted); 
}

.nav__cta { 
  display: flex; 
  gap: var(--space-md); 
}


/* ================================
   CTA・お問い合わせ
================================ */
#cta{
  background: var(--brand-color);
}
#cta .stack{
  gap: var(--space-4xl);
}

#cta .h2{
  color: #fff;
  background-image:none
}
#cta .lead{
  color: #fff;
}
#cta .btnrow{
  justify-content: center;
}
#cta .btn{
  padding-inline: var(--space-8xl);
}

/* ================================
   CTAフロートボタン
================================ */
.cta-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%) scale(0.8);
  transition: all 0.3s ease;
}

.cta-float.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.cta-float .btn {
  width: 12rem;
  height: 12rem;
  padding: 0;
  font-size: var(--text-lg);
  font-weight: 800;
  border-radius: 50%;
  box-shadow: 0 8px 40px rgba(233, 63, 75, 0.5);
  animation: pulse 2s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--brand-color), #d32f2f);
  border: 4px solid #fff;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.cta-float .btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

.cta-float .btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 50px rgba(233, 63, 75, 0.7);
  background: linear-gradient(135deg, #d32f2f, var(--brand-color));
}

@keyframes pulse {
  0% {
    box-shadow: 0 8px 40px rgba(233, 63, 75, 0.5);
  }
  50% {
    box-shadow: 0 12px 50px rgba(233, 63, 75, 0.7);
  }
  100% {
    box-shadow: 0 8px 40px rgba(233, 63, 75, 0.5);
  }
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  50% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
  100% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
}

/* スマホ用のCTAフロートボタン調整 */
@media (max-width: 768px) {
  .cta-float {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  .cta-float .btn {
    width: 7rem;
    height: 7rem;
    font-size: var(--text-xs);
    border-width: 2px;
  }
}

@media (max-width: 480px) {
  .cta-float {
    bottom: 1rem;
    right: 1rem;
  }
  
  .cta-float .btn {
    width: 6rem;
    height: 6rem;
    font-size: 1rem;
    border-width: 2px;
  }
}

/* ================================
   フッター
================================ */
footer { 
  border-top: 0.1rem solid var(--line); 
  padding: var(--space-7xl) 0; 
  color: var(--muted); 
}

/* ================================
   スマホ用レスポンシブ対応
================================ */
@media (max-width: 768px) {
  /* コンテナの調整 */
  .container { 
    width: 95vw; 
    padding: 0 var(--space-md);
  }
  
  /* セクションのパディング調整 */
  .section { 
    padding: var(--space-4xl) 0; 
  }
  
  /* タイポグラフィの調整 */
  .h1 { 
    font-size: clamp(2.4rem, 6vw, 3.8rem); 
    line-height: 1.3;
    margin: var(--space-md) 0;
  }
  
  .h2 { 
    font-size: clamp(2.2rem, 5vw, 3.2rem); 
    line-height: 1.3;
    padding: 0.1rem 1.5rem;
    text-align: center;
  }
  
  .h3 { 
    font-size: var(--text-xl); 
  }
  
  .lead { 
    font-size: var(--text-base); 
    line-height: 1.6;
  }
  
  /* ボタンの調整 */
  .btnrow { 
    flex-direction: column;
    gap: var(--space-md); 
    width: 100%;
  }
  
  .btn {
    width: 100%;
    padding: var(--space-lg) var(--space-3xl); 
    font-size: var(--text-lg); 
    justify-content: center;
  }
  
  /* ナビゲーションの調整 */
  .nav__inner { 
    padding: var(--space-md) 0; 
  }
  
  .nav__cta { 
    flex-direction: column;
    gap: var(--space-sm); 
  }
  
  .nav__cta .btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
  }
  
  /* フッターの調整 */
  footer { 
    padding: var(--space-4xl) 0; 
  }
  
  footer .container {
    flex-direction: column;
    gap: var(--space-2xl);
    text-align: center;
  }
  
  footer .meta {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  /* CTAセクションの調整 */
  #cta .btn {
    padding-inline: var(--space-4xl);
    width: 100%;
  }
}

@media (max-width: 480px) {
  /* さらに小さい画面用の調整 */
  .container { 
    width: 98vw; 
    padding: 0 var(--space-sm);
  }
  
  .section { 
    padding: var(--space-3xl) 0; 
  }
  
  .h1 { 
    font-size: clamp(2rem, 7vw, 3rem); 
  }
  
  .h2 { 
    font-size: clamp(1.8rem, 6vw, 2.8rem); 
    padding: 0.1rem 1rem;
  }
  
  .btn {
    padding: var(--space-md) var(--space-2xl); 
    font-size: var(--text-base); 
  }
  
  .nav__inner { 
    padding: var(--space-sm) 0; 
  }
  
  .logo img {
    max-width: 120px;
  }
}

/* ================================
   ヘッダー・ナビゲーション
================================ */

/* Stickyヘッダーのスタイル */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateY(0);
  opacity: 1;
}

.nav.nav--visible {
  transform: translateY(0);
  opacity: 1;
}

.nav.nav--hidden {
  transform: translateY(-100%);
  opacity: 0;
}

/* ナビゲーション全体のレイアウト */
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  margin-top: 1rem; /* ヘッダーメニューの上部マージン */
}

.logo {
  flex-shrink: 0;
}

.nav__links {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav__cta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.nav__toggle span {
  width: 100%;
  height: 3px;
  background: var(--text);
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.nav__toggle.active span:first-child {
  transform: rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
}

/* デスクトップ表示時のナビゲーション */
.nav__links {
  display: none;
}

/* ハンバーガーメニューボタンはデフォルトで非表示 */
.nav__toggle {
  display: none;
}

@media (max-width: 768px) {
  .nav__inner {
    justify-content: space-between;
    margin-top: 0.5rem; /* スマホ用ヘッダーメニューの上部マージン */
  }
  
  .nav__toggle {
    display: flex;
  }
  
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-3xl);
    transition: right 0.3s ease;
    z-index: 5;
    border-left: 1px solid var(--line);
  }
  
  .nav__links.active {
    right: 0;
    display: flex;
  }
  
  .nav__links a {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
  }
  
  .nav__links a:hover {
    background: var(--accent-light);
    color: var(--accent);
  }
  
  .nav__cta {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav__inner {
    margin-top: 0.25rem; /* 小さい画面用ヘッダーメニューの上部マージン */
  }
}
