/* ============================================
   株式会社Kマジックスタジオ 共通スタイル
   テーマ：水色（#c4d6d8）× 濃紺 × 白
   ============================================ */
:root {
  --ice: #c4d6d8;        /* テーマカラー（宣材写真の背景色） */
  --ice-light: #e9f1f2;  /* 淡い背景 */
  --ice-soft: #f4f8f9;   /* ごく淡い背景 */
  --aqua: #6fa3b2;       /* 中間アクセント */
  --teal: #34697c;       /* 濃いアクセント（リンク・ライン） */
  --ink: #16232b;        /* ほぼ黒の紺（文字・ボタン） */
  --ink-soft: #4a5a64;   /* サブテキスト */
  --bg: #ffffff;
  --line: #dde7e9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: opacity .2s, color .2s; }
a:hover { opacity: .8; }

.en {
  font-family: "Montserrat", "Bebas Neue", sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16.5px; color: var(--ink); letter-spacing: .04em; }
.brand svg { flex-shrink: 0; color: var(--teal); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

.global-nav > ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.dropdown { list-style: none; }
.global-nav a {
  display: block; padding: 8px 13px; font-size: 13.5px; font-weight: 500; color: var(--ink);
  letter-spacing: .05em;
}
.global-nav a:hover, .global-nav a.current { color: var(--teal); opacity: 1; }
.global-nav a.current { font-weight: 700; }

.has-dropdown { position: relative; }
.has-dropdown > a::after { content: " ▾"; font-size: 9px; color: var(--aqua); }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 16px 40px rgba(22,35,43,.12); min-width: 230px; padding: 8px;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
.dropdown li { width: 100%; }
.dropdown a { padding: 10px 14px; border-radius: 6px; }
.dropdown a:hover { background: var(--ice-light); }

.nav-cta a {
  background: var(--ink); color: #fff !important; border-radius: 999px;
  padding: 10px 22px !important; margin-left: 10px; font-weight: 700;
}
.nav-cta a:hover { background: var(--teal); opacity: 1; }

/* ---------- ヒーロー（トップ） ---------- */
.hero {
  position: relative;
  background: var(--ice) url("../images/hero.webp") left center / auto 100% no-repeat;
  min-height: 560px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(196,214,216,0) 40%, rgba(196,214,216,.55) 58%, rgba(196,214,216,0) 78%);
  pointer-events: none;
}
.hero-inner { max-width: 1240px; margin: 0 auto; padding: 72px 24px; width: 100%; position: relative; z-index: 1; }
.hero-text { margin-left: auto; max-width: 600px; text-align: left; }
.hero-text .tagline-en { font-size: 13px; color: var(--teal); margin-bottom: 16px; }
.hero-text h1 {
  font-size: clamp(28px, 4.4vw, 48px); line-height: 1.45; color: var(--ink);
  font-weight: 900; margin-bottom: 20px; letter-spacing: .02em;
}
.hero-text p { color: #2e424d; font-size: clamp(14px, 1.6vw, 17px); margin-bottom: 34px; font-weight: 500; }

.btn {
  display: inline-block; background: var(--ink); color: #fff; font-weight: 700;
  padding: 15px 40px; border-radius: 999px; font-size: 15px; letter-spacing: .06em;
  transition: background .25s, transform .2s, box-shadow .25s;
  box-shadow: 0 6px 20px rgba(22,35,43,.18);
}
.btn:hover { background: var(--teal); opacity: 1; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(22,35,43,.22); }
.btn.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); box-shadow: none; }
.btn.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- ターゲット別ナビ ---------- */
.audience { background: #fff; padding: 0; position: relative; margin-top: -56px; z-index: 5; }
.audience .container { max-width: 1140px; }
.audience-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border-radius: 18px; padding: 18px;
  box-shadow: 0 20px 50px rgba(22,35,43,.14);
}
.audience-item {
  text-align: center; padding: 22px 12px 20px; border-radius: 12px;
  color: var(--ink); background: var(--ice-soft);
  transition: background .25s, transform .2s;
}
.audience-item:hover { background: var(--ice-light); transform: translateY(-3px); opacity: 1; }
.audience-item .aud-icon { font-size: 30px; margin-bottom: 8px; }
.audience-item .aud-label { font-weight: 800; font-size: 15px; display: block; }
.audience-item .aud-sub { font-size: 11.5px; color: var(--ink-soft); display: block; margin-top: 3px; }
.audience-item .aud-arrow { color: var(--teal); font-size: 12px; font-weight: 700; display: block; margin-top: 8px; letter-spacing: .1em; }

/* ---------- ページ共通見出し ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--ink) 0%, #24404d 70%, var(--teal) 130%);
  color: #fff; text-align: center; padding: 72px 24px 62px;
}
.page-hero .en { color: var(--ice); font-size: 12.5px; display: block; margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(24px, 3.5vw, 38px); font-weight: 900; letter-spacing: .04em; }

section { padding: 84px 0; }
section.alt { background: var(--ice-light); }

.section-title { text-align: center; margin-bottom: 52px; }
.section-title .en { display: block; color: var(--teal); font-size: 12px; margin-bottom: 8px; }
.section-title h2 { font-size: clamp(22px, 3vw, 32px); color: var(--ink); font-weight: 900; letter-spacing: .04em; }
.section-title h2::after {
  content: ""; display: block; width: 40px; height: 2px; background: var(--aqua);
  margin: 18px auto 0;
}

.lead { text-align: center; max-width: 720px; margin: -26px auto 48px; color: var(--ink-soft); }

/* ---------- カード ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card {
  background: #fff; border: none; border-radius: 16px;
  padding: 36px 28px; box-shadow: 0 8px 30px rgba(22,35,43,.07);
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
a.card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(22,35,43,.13); opacity: 1; }
.card .card-icon { font-size: 32px; margin-bottom: 14px; }
.card h3 { color: var(--ink); font-size: 18px; margin-bottom: 10px; letter-spacing: .03em; }
.card p { font-size: 14px; color: var(--ink-soft); flex-grow: 1; }
.card .more { color: var(--teal); font-size: 13px; font-weight: 700; margin-top: 16px; letter-spacing: .08em; }

/* ---------- 表 ---------- */
.table-wrap { overflow-x: auto; }
table.info-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 30px rgba(22,35,43,.06); }
table.info-table th, table.info-table td {
  border: 1px solid var(--line); padding: 15px 20px; text-align: left; font-size: 15px;
  vertical-align: top;
}
table.info-table th { background: var(--ice-soft); color: var(--ink); width: 30%; white-space: nowrap; font-weight: 700; }
table.price-table th { background: var(--ink); color: #fff; width: auto; text-align: center; border-color: #2b3d47; }
table.price-table td { text-align: center; }
table.price-table td.price { font-weight: 800; color: var(--teal); }

/* ---------- リスト ---------- */
.check-list { list-style: none; }
.check-list li { padding: 9px 0 9px 30px; position: relative; border-bottom: 1px solid var(--line); }
.check-list li::before { content: "◆"; color: var(--aqua); position: absolute; left: 4px; font-size: 11px; top: 13px; }

/* ---------- お客様の声 ---------- */
.voice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.voice {
  background: #fff; border-radius: 16px; padding: 30px; border-top: 3px solid var(--ice);
  box-shadow: 0 8px 30px rgba(22,35,43,.07);
}
.voice p { font-size: 14px; color: var(--ink); margin-bottom: 12px; }
.voice .who { font-size: 12.5px; color: var(--teal); font-weight: 700; letter-spacing: .04em; }

/* ---------- 大会情報 ---------- */
.event-block {
  background: #fff; border: none; border-radius: 16px;
  padding: 36px; margin-bottom: 26px; box-shadow: 0 8px 30px rgba(22,35,43,.07);
}
.event-block h3 {
  color: var(--ink); font-size: 20px; margin-bottom: 18px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); letter-spacing: .03em;
}
.event-block .badge {
  display: inline-block; background: var(--teal); color: #fff; font-size: 11.5px;
  padding: 3px 14px; border-radius: 999px; margin-left: 12px; vertical-align: middle;
  letter-spacing: .08em; font-weight: 700;
}
.event-block dl { display: grid; grid-template-columns: 110px 1fr; gap: 10px 18px; font-size: 15px; }
.event-block dt { color: var(--teal); font-weight: 700; }
.event-block dd { color: var(--ink); }

/* ---------- レッスンコース ---------- */
.course {
  background: #fff; border: none; border-radius: 14px;
  padding: 28px 30px; margin-bottom: 16px; display: flex; gap: 20px; align-items: baseline;
  flex-wrap: wrap; justify-content: space-between;
  box-shadow: 0 6px 24px rgba(22,35,43,.06);
}
.course .course-name { font-size: 18px; font-weight: 800; color: var(--ink); }
.course .course-desc { flex-basis: 100%; color: var(--ink-soft); font-size: 14px; margin-top: 6px; }
.course .course-price { font-size: 22px; font-weight: 900; color: var(--teal); white-space: nowrap; }
.course .course-price small { font-size: 13px; color: var(--ink-soft); font-weight: 400; }

/* ---------- ステップ ---------- */
.steps { counter-reset: step; list-style: none; max-width: 720px; margin: 0 auto; }
.steps li {
  counter-increment: step; background: #fff; border: none;
  border-radius: 14px; padding: 22px 26px 22px 76px; margin-bottom: 14px; position: relative;
  box-shadow: 0 6px 24px rgba(22,35,43,.06);
}
.steps li::before {
  content: counter(step); position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; background: var(--ice); color: var(--ink);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
  font-family: "Montserrat", sans-serif;
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--ink) 0%, #24404d 70%, var(--teal) 130%);
  color: #fff; text-align: center;
}
.cta h2 { font-size: clamp(20px, 3vw, 28px); margin-bottom: 14px; letter-spacing: .04em; }
.cta p { color: #b9cdd4; margin-bottom: 32px; }
.cta .btn { background: #fff; color: var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.cta .btn:hover { background: var(--ice); color: var(--ink); }

/* ---------- チラシ付きイベント ---------- */
.flyer-event { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 30px; align-items: start; margin-bottom: 26px; }
.flyer-event > img { border-radius: 12px; box-shadow: 0 10px 34px rgba(22,35,43,.16); }
.flyer-event .event-block { margin-bottom: 0; }
@media (max-width: 760px) {
  .flyer-event { grid-template-columns: 1fr; gap: 18px; }
  .flyer-event > img { max-width: 420px; margin: 0 auto; }
}
.flyer-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; max-width: 760px; margin: 0 auto; }
.flyer-duo figure { text-align: center; }
.flyer-duo img { border-radius: 12px; box-shadow: 0 10px 34px rgba(22,35,43,.14); }
.flyer-duo figcaption { margin-top: 10px; font-size: 13.5px; color: var(--ink-soft); font-weight: 700; }

/* ---------- 動画・ギャラリー ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 960px; margin: 0 auto; }
.video-wrap {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  box-shadow: 0 8px 30px rgba(22,35,43,.12); background: #000;
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 960px; margin: 0 auto; }
.photo-grid img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 14px;
  box-shadow: 0 8px 30px rgba(22,35,43,.1);
}
.photo-grid img.tall { aspect-ratio: 3 / 4; }
@media (max-width: 640px) {
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid img.tall { aspect-ratio: auto; }
}

/* ---------- 連絡ボタン ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; max-width: 720px; margin: 0 auto; }
.contact-card {
  background: #fff; border: none; border-radius: 16px; padding: 40px 28px;
  text-align: center; box-shadow: 0 8px 30px rgba(22,35,43,.07);
}
.contact-card .card-icon { font-size: 38px; margin-bottom: 12px; }
.contact-card h3 { color: var(--ink); margin-bottom: 8px; }
.contact-card p { font-size: 13px; color: var(--ink-soft); margin-bottom: 20px; }
.line-btn { background: #06c755; }
.line-btn:hover { background: #05a648; }

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: #aebfc7; padding: 64px 0 30px; }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 0 24px; text-align: center; }
.footer-brand { color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 8px; letter-spacing: .05em; }
.footer-tagline { font-size: 13px; margin-bottom: 28px; color: var(--ice); }
.footer-nav { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; margin-bottom: 30px; }
.footer-nav a { color: #aebfc7; font-size: 13px; letter-spacing: .04em; }
.footer-nav a:hover { color: #fff; }
.sns { display: flex; justify-content: center; gap: 16px; margin-bottom: 30px; }
.sns a {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; transition: background .25s, transform .2s;
}
.sns a:hover { background: var(--teal); opacity: 1; transform: translateY(-2px); }
.sns svg { width: 19px; height: 19px; fill: #fff; }
.copyright { font-size: 12px; color: #6d7f89; border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; letter-spacing: .05em; }

/* ---------- スマホ対応 ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .global-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(22,35,43,.1);
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .global-nav.open { display: block; }
  .global-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 0; }
  .global-nav a { padding: 13px 26px; font-size: 15px; }
  .dropdown { display: block; position: static; border: none; box-shadow: none; padding: 0; }
  .dropdown a { padding-left: 46px; font-size: 14px; color: var(--ink-soft); }
  .nav-cta a { margin: 10px 22px; text-align: center; }

  .hero {
    background: var(--ice) url("../images/hero.webp") left 30% top / cover no-repeat;
    min-height: 0;
  }
  .hero::after { display: none; }
  .hero-inner { padding: 0; }
  .hero-text {
    max-width: none; margin: 300px 0 0; padding: 36px 26px 46px;
    background: linear-gradient(180deg, rgba(196,214,216,0) 0%, rgba(228,238,240,.97) 14%, #eef4f5 100%);
    text-align: center;
  }

  .audience { margin-top: 0; padding-top: 20px; }
  .audience-grid { grid-template-columns: repeat(2, 1fr); box-shadow: 0 12px 32px rgba(22,35,43,.1); }

  .event-block dl { grid-template-columns: 96px 1fr; }
  section { padding: 56px 0; }
}
