@charset "utf-8";

/* カラー変数の定義（メイン：深いブルー / アクセント：鮮やかなイエロー） */
:root {
  --main-blue: #0f2b48;          /* より深みと濃さのあるブルー */
  --main-blue-hover: #0a1c30;    /* ホバー時の濃いブルー */
  --accent-yellow: #f1c40f;      /* 鮮やかな黄色 */
  --accent-yellow-dark: #d4ac0d; /* ボタンテキスト等視認性用濃いめイエロー */
  --accent-yellow-light: #fffde6;/* 非常に薄いイエロー（背景用） */
  --line-green: #06C755;         /* LINEグリーン */
}

/* ヘッダーとフッターの背景色 */
header,
footer {
  background-color: #f0f4f8 !important;
}

/* ヒーローエリア全体の背景色（しっかりとした青系へ変更） */
.hero {
  background: linear-gradient(135deg, #0a192f 0%, #1b365d 100%) !important;
  color: #ffffff !important;
}

.hero h1, .hero p {
  color: #ffffff !important;
}

/* ヒーローボタン 横並びベース設定（PC・共通） */
.hero-cta-group {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important; /* 折り返しを禁止 */
  gap: 10px;
  margin-top: 15px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.hero-cta-group a {
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  border-radius: 25px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  flex: 1 1 0 !important; /* 3つのボタンを完全に均等幅にする */
  min-width: 0 !important; /* 横幅オーバーによる折り返しを防止 */
  white-space: nowrap;
}

.hero-cta-group a:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* 1. LINEボタン（緑・強調） */
.btn-hero-line {
  background: var(--line-green) !important;
  color: #ffffff !important;
  font-size: 1.05rem !important;
  padding: 12px 8px !important;
  box-shadow: 0 4px 10px rgba(6, 199, 85, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* 2. 無料相談・体験ボタン（イエロー：文字を黒にして見やすく） */
.btn-hero-sub {
  background: var(--accent-yellow) !important;
  color: #111111 !important;
  padding: 12px 8px !important;
  font-size: 0.95rem !important;
  box-shadow: 0 4px 10px rgba(241, 196, 15, 0.3);
}

/* 3. ネット入会申込ボタン（ディープブルー） */
.btn-hero-main {
  background: var(--main-blue) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 8px !important;
  font-size: 0.95rem !important;
  cursor: pointer;
}

/* スマホ最適化（768px以下でも完全3横並びを維持） */
@media (max-width: 768px) {
  /* ヘッダー内調整 */
  header .header-inner {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 10px !important;
  }

  header .logo img {
    max-height: 28px !important;
    width: auto !important;
    margin-bottom: 0 !important;
  }

  .header-btn-group {
    width: auto !important;
    flex-direction: row !important;
    gap: 5px !important;
    align-items: center !important;
  }

  .header-btn-group .member-menu-wrap {
    width: auto !important;
  }

  .header-btn-group a,
  .header-btn-group button,
  .header-btn-group .member-menu-wrap button {
    display: inline-block !important;
    width: auto !important;
    box-sizing: border-box !important;
    text-align: center !important;
    font-size: 11px !important;
    font-family: inherit !important;
    padding: 6px 8px !important;
    line-height: 1.2 !important;
    border: none !important;
    border-radius: 16px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
  }

  /* ヒーローエリア 3つボタン スマホ完全横並び設定 */
  .hero-cta-group {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    width: 100% !important;
  }

  .hero-cta-group a {
    font-size: 10px !important; /* スマホ画面で溢れないよう文字サイズを自動微調整 */
    padding: 10px 2px !important;
    border-radius: 20px !important;
    flex: 1 1 0 !important;
    width: auto !important;
  }

  .btn-hero-line {
    font-size: 10px !important;
    gap: 3px !important;
  }

  .btn-hero-line i {
    font-size: 0.9rem !important;
  }
}

/* スムーススクロール有効化 */
html {
  scroll-behavior: smooth;
}

/* 全ポップアップ共通：閉じる（× ＋ CLOSE）ボタンの統一スタイル */
.modal-close,
.facility-modal-close,
.camp-modal-content .modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 42px;
  background-color: rgba(0, 0, 0, 0.6) !important; /* 黒背景でくっきり表示 */
  border: 2px solid #ffffff !important; /* 白枠 */
  border-radius: 8px !important; /* 角丸四角形 */
  cursor: pointer;
  z-index: 10;
  padding: 4px 0 0 0 !important;
  outline: none;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  font-size: 0 !important;
}

/* CSSで×印（アイコン）を作成 */
.modal-close::before,
.facility-modal-close::before,
.camp-modal-content .modal-close::before {
  content: '×';
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  font-weight: bold;
  margin-bottom: -1px;
}

/* ×印の下に「CLOSE」文字を表示 */
.modal-close::after,
.facility-modal-close::after,
.camp-modal-content .modal-close::after {
  content: 'CLOSE';
  color: #ffffff;
  font-size: 8px;
  font-weight: bold;
  letter-spacing: 0.5px;
  line-height: 1;
}

.gs-logo-link:hover {
    transform: scale(1.08) translateY(-1px);
    opacity: 0.9;
}

/* キャンペーンモーダル内の画像サイズ調整 */
.camp-modal-img {
  width: 100%;
  max-height: 58vh;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* PC（画面幅768px以上）の場合の表示調整 */
@media (min-width: 768px) {
  .modal-content,
  .camp-modal-content {
    max-width: 600px !important;
    max-height: 92vh !important;
    padding: 24px 30px !important;
    overflow-y: hidden !important;
  }
  .camp-modal-img,
  .modal-content img {
    max-height: 72vh !important;
    object-fit: contain !important;
  }
}

/* セクション全体の上書き設定 */
#custom-features-section .feature-card {
    background: #f4f7fa !important;
    border: 1px solid #e1e8ed !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04) !important;
}

/* タイトル色 */
#custom-features-section .section-title h2,
#custom-features-section .feature-card h3 {
    color: var(--main-blue) !important;
}

/* アコーディオン用のスタイリング */
#custom-features-section .more-cards-wrapper {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 15px;
}

/* PC・スマホ共通: 3列グリッド表示 */
#custom-features-section .more-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
}

/* スマホ画面幅で3つを綺麗に並べるための微調整 */
@media (max-width: 768px) {
    #custom-features-section .more-cards-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }
}

#custom-features-section .small-card {
    padding: 10px 8px !important;
    border-radius: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

#custom-features-section .small-card .feature-icon {
    font-size: 22px !important;
    margin-bottom: 4px !important;
}

#custom-features-section .small-card .feature-text h3 {
    font-size: 12px !important;
    margin-bottom: 4px !important;
    line-height: 1.3 !important;
    color: var(--main-blue) !important;
}

#custom-features-section .small-card .feature-text p {
    font-size: 10px !important;
    line-height: 1.3 !important;
    margin-bottom: 6px !important;
    color: #666 !important;
}

/* カード内ボタン（青背景×白文字カプセルボタン） */
#custom-features-section .btn-blue-action {
    display: inline-block !important;
    background-color: var(--main-blue) !important;
    background: var(--main-blue) !important;
    color: #ffffff !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: bold !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12) !important;
    transition: opacity 0.2s ease !important;
    margin-top: 6px !important;
}

#custom-features-section .btn-blue-action:hover {
    opacity: 0.85 !important;
    color: #ffffff !important;
}

/* 小さいカード（アコーディオン内）用サイズ微調整 */
#custom-features-section .small-card .btn-blue-action {
    padding: 4px 6px !important;
    font-size: 0.65rem !important;
    margin-top: auto !important;
}

/* 開閉ボタン（イエロー） */
#custom-features-section .toggle-btn-wrap {
    text-align: center !important;
    margin-top: 25px !important;
    width: 100% !important;
}

#custom-features-section .btn-toggle-more {
    display: inline-block !important;
    background: var(--accent-yellow) !important;
    color: #111111 !important;
    border: 2px solid var(--accent-yellow) !important;
    padding: 12px 35px !important;
    font-size: 15px !important;
    font-weight: bold !important;
    border-radius: 30px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(241, 196, 15, 0.3) !important;
}

#custom-features-section .btn-toggle-more:hover {
    background: #e0b400 !important;
    border-color: #e0b400 !important;
    color: #000000 !important;
}

/* PCでは改行タグを非表示 */
#custom-features-section .sp-only {
    display: none;
}

/* スマホ表示時（768px以下）のみ改行を有効化 */
@media (max-width: 768px) {
    #custom-features-section .sp-only {
        display: inline !important;
    }
}

.btn-blue-action {
    white-space: nowrap;
    display: inline-block;
}

@media screen and (min-width: 768px) {
    #achievementModal .modal-content {
        max-width: 580px !important;
        padding: 15px 20px !important;
    }
    #achievementVideoPlayer {
        max-height: 320px !important;
        object-fit: contain;
    }
}