/* ===== リセット ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== カラーパレット ===== */
:root {
  --primary: #FFFFFF;
  --primary-light: #F9FAFB;
  --primary-dark: #E5E7EB;
  --accent: #6B7280;
  --white: #FFFFFF;
  --bg: #F9FAFB;
  --text: #111827;
  --muted: #6B7280;
  --border: #E5E7EB;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Sans", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== ヘッダー ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #010711;
  z-index: 1001;
}

.logo a {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ナビゲーション */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.main-nav a {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.2s;
  font-size: 0.95rem;
  display: block;
}

.main-nav a:hover {
  background: var(--bg);
}

/* ドロップダウン */
.dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: "▼";
  font-size: 0.7rem;
  margin-left: 0.3rem;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  list-style: none;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  padding: 0.7rem 1.2rem;
  border-radius: 0;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: var(--bg);
}

.btn-primary {
  background: #4c4c4d;
  color: var(--white);
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #87898f;
}

/* ===== ヒーロー（2カラム検索） ===== */
.hero {
  position: relative;
  min-height: 600px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.hero-left,
.hero-right {
  position: relative;
  padding: 10rem 3rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-left {
  background: linear-gradient(rgba(87, 87, 87, 0.75), rgba(33, 39, 48, 0.75)),
              url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?w=800&auto=format&fit=crop&q=80') center/cover;
}

.hero-right {
  background: linear-gradient(rgba(92, 92, 92, 0.75), rgba(201, 220, 252, 0.75)),
              url('https://images.unsplash.com/photo-1552664730-d307ca884978?w=800&auto=format&fit=crop&q=80') center/cover;
}

.hero-title-main {
  position: absolute;
  top: 3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  color: var(--white);
  font-size: 2.5rem;
  z-index: 10;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle-main {
  position: absolute;
  top: 6.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  color: var(--white);
  font-size: 1.1rem;
  z-index: 10;
  opacity: 0.95;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-section-title {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  font-weight: 700;
  line-height: 1.3;
}

.hero-section-title span {
  font-size: 1.5rem;
}

.hero-select,
.hero-input {
  width: 100%;
  max-width: 400px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-select:focus,
.hero-input:focus {
  outline: 2px solid var(--white);
  background: rgba(255, 255, 255, 1);
}

.hero-button {
  width: 100%;
  max-width: 400px;
  padding: 1rem;
  background: #3B82F6;
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-button:hover {
  background: #2563EB;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* ===== ニューステッカー ===== */
.news-ticker {
  background: #1F2937;
  color: var(--white);
  padding: 1rem 2rem;
  overflow: hidden;
}

.news-ticker-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.news-ticker-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.news-ticker-text {
  white-space: nowrap;
  animation: scroll 30s linear infinite;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== 動画背景ラッパー ===== */
.video-background-wrapper {
  position: relative;
  background: #000;
}

.main-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.content-overlay {
  position: relative;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(3px);
  z-index: 1;
}

/* ===== セクション共通 ===== */
.section {
  padding: 4rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  color: var(--text);
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* ===== カードグリッド ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.card-icon.blue { background: #111827; color: var(--white); }
.card-icon.orange { background: #6B7280; color: var(--white); }
.card-icon.green { background: #374151; color: var(--white); }
.card-icon.purple { background: #4B5563; color: var(--white); }
.card-icon.red { background: #1F2937; color: var(--white); }
.card-icon.yellow { background: #9CA3AF; color: var(--white); }

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.card p {
  color: var(--muted);
  line-height: 1.8;
}

.card ul {
  list-style: none;
  margin: 1rem 0;
}

.card ul li {
  padding: 0.3rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--muted);
}

.card ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--text);
  font-weight: 600;
}

/* ===== 講座カード ===== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.course-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.course-card:hover {
  transform: translateY(-4px);
}

.course-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #6B7280, #374151);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3rem;
}

.course-body {
  padding: 1.5rem;
}

.course-tag {
  display: inline-block;
  background: var(--text);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.course-body h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.course-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 1rem;
}

.course-duration {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ===== 実績数字 ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-box {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--muted);
  font-size: 1rem;
}

/* ===== フッター ===== */
footer {
  background: #F3F4F6;
  color: var(--text);
  padding: 3rem 2rem 1rem;
  border-top: 1px solid var(--border);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  display: block;
  padding: 0.3rem 0;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-section a:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  opacity: 0.7;
}

/* ===== FAB（固定ボタン） ===== */
.fab-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.2s;
}

.fab:hover {
  transform: scale(1.1);
}

.fab-help {
  background: #6B7280;
  color: var(--white);
}

.fab-contact {
  background: #111827;
  color: var(--white);
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  /* ハンバーガーメニュー表示 */
  .hamburger {
    display: flex;
  }
  
  /* ナビゲーション */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s;
    overflow-y: auto;
    padding-top: 80px;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
  }
  
  .main-nav li {
    width: 100%;
  }
  
  /* ドロップダウン（スマホ） */
  .dropdown-toggle::after {
    float: right;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--border);
    margin: 0;
    padding-left: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
  }
  
  .dropdown.active .dropdown-menu {
    max-height: 300px;
  }
  
  .dropdown-menu a {
    padding: 0.8rem 1rem;
  }
  
  .btn-primary {
    width: 100%;
    margin-top: 1rem;
  }
  
  /* ヒーロー */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .hero-title-main {
    position: static;
    transform: none;
    padding: 2rem 1rem 0;
    font-size: 1.8rem;
  }
  
  .hero-subtitle-main {
    position: static;
    transform: none;
    padding: 0.5rem 1rem 0;
    font-size: 1rem;
  }
  
  .hero-left,
  .hero-right {
    padding: 2rem 1.5rem;
  }
  
  .hero-section-title {
    font-size: 1.8rem;
    margin-top: 1rem;
  }
  
  .hero-section-title span {
    font-size: 1.3rem;
  }
  
  .hero-select,
  .hero-input,
  .hero-button {
    max-width: 100%;
  }
  
  .card-grid,
  .course-grid,
  .stats-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.5rem;
  }
}
/* === カバー画像カード用ユーティリティ === */
/* 背景画像を敷き詰め、内側は0パディングでオーバーレイを載せる */
.card.cover {
  padding: 0;
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* 上品な薄グレーの枠＋柔らかい影（既存のトーンに合わせて微調整） */
.card.elegant-border {
  border: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
}

/* 画像上に載せる白オーバーレイ */
.card .overlay {
  background: rgba(255, 255, 255, 0.90);
  padding: 20px;
  border-radius: 8px;
  margin: 10px;
  backdrop-filter: blur(2px);
}
