@charset "UTF-8";

/* Reset & Base */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, Helvetica, Arial, sans-serif;
  color: #0f172a;
  background: #ffffff;
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
.section {
  padding: 72px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.section.alt {
  background: #f8fafc;
}
.section h2 {
  font-size: clamp(24px, 2.4vw, 34px);
  margin: 0 0 16px;
}
.section-lead {
  color: #475569;
  margin-bottom: 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;
}
.logo {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 48px;
}
.nav {
  display: flex;
  gap: 16px;
  align-items: center;
}
.nav a {
  padding: 8px 10px;
  border-radius: 10px;
}
.nav a:hover {
  background: #e2e8f0;
}
.nav .cta {
  background: #0ea5e9;
  color: #fff;
  padding: 10px 14px;
}
.nav .cta:hover {
  background: #0284c7;
}

/* Hamburger for mobile */
.hamburger {
  all: unset;
  display: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #0f172a;
  margin: 5px 0;
  transition: 0.3s;
}
.hamburger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25));
}
.hero h1 {
  font-size: clamp(28px, 4vw, 52px);
  margin: 0 0 10px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.hero p {
  font-size: clamp(16px, 1.6vw, 20px);
  margin: 0 0 24px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
}
.btn.primary {
  background: #22c55e;
  color: #052e16;
  border-color: #16a34a;
}
.btn.primary:hover {
  background: #16a34a;
  color: #fff;
}
.btn.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Cards（差し替え） */
.cards {
  /* 1行で横に流す */
  display: grid;
  grid-auto-flow: column; /* 列方向に自動配置＝横一列 */
  grid-auto-columns: minmax(240px, 1fr); /* 各カードの最小幅を確保 */
  gap: 16px;

  /* 画面が狭いときは横スクロールで4枚とも横並び維持 */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; /* スクロール時にカード頭で止まる */
  padding-bottom: 8px; /* スクロールバー分の余白（任意） */
}

.card {
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(2, 6, 23, 0.04);
  scroll-snap-align: start; /* スナップ位置 */
}

.card h3 {
  margin-top: 0;
  font-size: 18px;
}
/* === PRICE 強制拡大 === */
.section .card .price {
  font-size: 28px !important; /* ← !importantで最優先に */
  line-height: 1.3;
  text-align: center; /* 任意。中央寄せにしたい場合 */
}

/* 広い画面ではスクロールを消し、4等分でピタッと並べる */
@media (min-width: 1100px) {
  .cards {
    grid-auto-columns: 1fr; /* 4枚なら4等分 */
    overflow-x: visible;
    scroll-snap-type: none;
  }
}

/* Instructor */
.instructor {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
  align-items: center;
}
.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0;
  margin: 10px 0;
  list-style: none;
}
.badges li {
  background: #e2e8f0;
  color: #0f172a;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.gallery img {
  border-radius: 12px;
}

/* Form */
.form .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
}
.form input,
.form select,
.form textarea {
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font: inherit;
  background: #fff;
}
.form .full {
  grid-column: 1 / -1;
}
.form-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.small {
  font-size: 12px;
  color: #64748b;
}

/* Footer */
.site-footer {
  padding: 32px 16px;
  text-align: center;
  color: #475569;
  border-top: 1px solid #e2e8f0;
}

/* Responsive */
@media (max-width: 960px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .instructor {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 720px) {
  .section {
    padding: 60px 16px;
  }
  .nav {
    position: fixed;
    top: 56px;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  }
  .nav.is-open {
    display: flex;
  }
  .hamburger {
    display: block;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .form .grid {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
.gallery img,
.gallery video {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.muve-videos {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 常に6列固定 */
  gap: 10px;
}

.muve-videos video {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
/* ここから追加 */

:root {
  --thumb-ratio: 16/9; /* ギャラリーとムービーを同じ比率に */
}
/* ギャラリーとムービーのタイルを同じ大きさにそろえる */
.gallery img,
.muve-videos video {
  width: 100%;
  aspect-ratio: var(--thumb-ratio); /* 高さを比率で固定 */
  object-fit: cover; /* はみ出す部分はトリミングして埋める */
  display: block;
  border-radius: 12px;
}
/* 既存の .gallery と同じカラム設定にする */
.muve-videos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px; /* .gallery と同じ値に合わせると見た目がそろう */
}

/* 既存のメディアクエリに合わせて同様に崩す */
@media (max-width: 960px) {
  .muve-videos {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 720px) {
  .muve-videos {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ライトボックスの基本 */
.lightbox {
  display: none; /* 最初は非表示 */
  position: fixed;
  z-index: 9999;
  inset: 0; /* 上下左右を全画面に */
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

/* 拡大画像 */
.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* 閉じるボタン */
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}
.lightbox .close:hover {
  color: #ddd;
}
/* ギャラリー画像をクリック可能に見せる */
.gallery img {
  cursor: pointer; /* マウスを指マークに */
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05); /* ちょっと拡大して“押せる感”を演出 */
}
/* 共通ライトボックス（画像・動画どちらも使える） */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

/* コンテンツ（画像 or 動画） */
.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* 閉じるボタン */
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}
.lightbox .close:hover {
  color: #ddd;
}
/* ギャラリー画像をクリック可能に見せる */
.gallery img {
  cursor: pointer; /* マウスを指マークに */
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05); /* ちょっと拡大して“押せる感”を演出 */
}
/* 動画上で手のひらカーソルにする */
.muve-videos video,
.gallery video,
.hero-video {
  cursor: pointer;
}

/* キーボード操作のフォーカスが分かるように（任意） */
.muve-videos video:focus-visible,
.gallery video:focus-visible,
.hero-video:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.6);
  outline-offset: 2px;
}

.instructor img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover; /* はみ出たらトリミング */
  max-height: 400px; /* ←ここで縦の上限を決める */
}

/* サムネ動画 */
.thumb-video {
  cursor: pointer;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ライトボックス */
.video-lightbox[hidden] {
  display: none !important;
}

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.85);
  padding: 4vmin;
}

.video-lightbox .close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 40px;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
}

#videoPlayer {
  width: min(92vw, 1200px);
  height: auto;
  max-height: 92vh;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000; /* ← 9999 から上げる */
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.85);
  padding: 4vmin;
}
/* ここから追加 */

.cards {
  display: flex;
  flex-wrap: wrap; /* 画面幅が狭ければ折り返す */
  gap: 20px;
  justify-content: space-between;
}

.card {
  flex: 1 1 calc(25% - 20px); /* 4枚を1行に配置 */
  min-width: 200px;
}

/* スマホでは縦並び */
@media (max-width: 768px) {
  .card {
    flex: 1 1 100%;
  }
}

/* === Lesson Cards Layout === */
.section .cards {
  display: flex;
  flex-wrap: wrap; /* 画面幅が狭い時は自動で折り返し */
  justify-content: center; /* 横方向中央寄せ */
  gap: 24px; /* カード間の間隔 */
  margin-top: 32px;
}

.section .card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 24px;
  flex: 1 1 240px; /* 横幅を自動調整・最小幅240px */
  max-width: 260px; /* 1カードの最大幅 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.section .card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #0f172a;
}

.section .card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.section .card li {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 6px;
}

.section .card .price {
  font-weight: 700;
  color: #0ea5e9;
  margin-top: 8px;
  font-size: 1rem;
}
/* ここから追加 */

/* ==== LESSONSだけ強制横並び（最優先）==== */

.sns-logo {
  display: flex; /* 横並びにする */
  justify-content: center; /* 中央揃え（左寄せにしたい場合は "flex-start"） */
  align-items: center; /* 縦位置も中央に揃える */
  gap: 20px; /* アイコンの間隔 */
  margin-top: 20px; /* 上に少し余白（任意） */
}

.sns-logo img {
  width: 48px; /* アイコンサイズ調整（お好みで） */
  height: auto;
  transition: transform 0.3s ease;
}

.sns-logo img:hover {
  transform: scale(1.1); /* ホバー時に少し拡大（任意） */
}

.logo {
  font-family: "Orbitron", sans-serif;
  font-size: 60px;
  font-weight: 800;
  color: #e0f2fe; /* 明るい雪のような色 */
  text-shadow: 0 0 10px #38bdf8, 0 0 20px #0ea5e9;
  letter-spacing: 3px;
  text-transform: uppercase;
}
