@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=JetBrains+Mono:wght@400;700&family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

/* ============================================================
   U-TECH AIゲームクリエイター教室｜笹塚・下北沢 — 案5ベース静的サイト
   ============================================================ */

:root {
  --primary: #0e63b8;
  --primary-dark: #0b3f77;
  --primary-light: #1583d8;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --ink: #22303c;
  --muted: #5f7181;
  --bg: #ffffff;
  --bg-soft: #f2f7fb;
  --line: #e2eaf1;
  --radius: 16px;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  line-height: 1.95;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
ul, ol { list-style-position: inside; }
a { color: var(--primary); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }

.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.nav a:hover { color: var(--primary); }
.nav a.active { color: var(--primary); }
.nav .btn { font-size: 0.9rem; padding: 10px 22px; }

.nav-toggle {
  display: none; background: none; border: 0; width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1250px) {
  .nav { gap: 16px; }
}
@media (max-width: 1280px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; left: 0; right: 0; top: 70px;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 20px 24px 28px; gap: 4px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(10, 40, 80, 0.12);
    transform: translateY(-130%); transition: transform 0.3s ease;
  }
  .nav.open { transform: none; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--bg-soft); font-size: 1rem; }
  .nav .btn { margin-top: 14px; text-align: center; border-bottom: none; }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: 0.2s; border: 0; cursor: pointer; font-size: 1rem;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline { border: 2px solid rgba(255, 255, 255, 0.75); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn-outline-dark { border: 2px solid var(--primary); color: var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 17px 44px; font-size: 1.08rem; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #0b3f77 0%, #0e63b8 55%, #1583d8 100%);
  padding: 92px 0 84px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 70%);
}
.hero::before { width: 480px; height: 480px; top: -160px; right: -120px; }
.hero::after { width: 380px; height: 380px; bottom: -180px; left: -100px; }
.hero-inner { position: relative; z-index: 1; }
.hero-layout {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: center; gap: 54px;
}
.hero-copy { min-width: 0; }
.hero-visual {
  position: relative; border-radius: 28px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.32);
  box-shadow: 0 24px 56px rgba(3, 25, 51, .34);
  transform: rotate(1.5deg);
}
.hero-visual img { width: 100%; height: 430px; object-fit: cover; }
.hero-visual::after {
  content: "AI × GAME × CREATIVE"; position: absolute; left: 18px; bottom: 18px;
  padding: 8px 14px; border-radius: 999px; color: #fff; font-weight: 800;
  font-size: .72rem; letter-spacing: .12em; background: rgba(6, 30, 55, .74);
  backdrop-filter: blur(8px);
}
.hero .kicker {
  display: inline-block; background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px; padding: 5px 18px; font-size: 0.82rem; font-weight: 700;
  margin-bottom: 26px; letter-spacing: 0.04em;
}
.hero h1 { font-size: clamp(1.55rem, 3.8vw, 2.7rem); line-height: 1.62; font-weight: 800; }
.hero h1 .accent { color: #ffd166; }
.hero .sub { margin-top: 24px; font-size: clamp(0.95rem, 1.6vw, 1.08rem); opacity: 0.94; font-weight: 600; }
.hero .cta-row { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 下層ページヒーロー ---------- */
.page-hero {
  background: linear-gradient(135deg, #0b3f77, #1583d8); color: #fff;
  padding: 60px 0 52px;
}
.page-hero .eyebrow { color: #ffd166; }
.page-hero h1 { font-size: clamp(1.4rem, 3vw, 2.15rem); line-height: 1.55; font-weight: 800; }
.page-hero p { margin-top: 14px; opacity: 0.92; max-width: 720px; }

/* ---------- セクション共通 ---------- */
.section { padding: 78px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { max-width: 780px; margin: 0 auto 44px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }

.curriculum-section-head {
  max-width: none;
  margin-right: 0;
}

.curriculum-section-head h2,
.curriculum-cta h2 {
  font-size: clamp(1.9rem, 3.1vw, 2.75rem);
  line-height: 1.4;
  text-wrap: pretty;
}
.eyebrow {
  display: block; color: var(--primary); font-weight: 800;
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 10px;
}
h2 { font-size: clamp(1.35rem, 2.7vw, 1.95rem); font-weight: 800; line-height: 1.55; }
h3 { font-size: 1.12rem; font-weight: 800; line-height: 1.6; }
.lead { margin-top: 16px; color: var(--muted); }
.prose { max-width: 780px; margin: 0 auto; }
.prose p + p { margin-top: 1.2em; }
.prose .em { font-weight: 800; }
.center { text-align: center; }
.mt-lg { margin-top: 44px; }
.mt-md { margin-top: 28px; }

/* ---------- カード ---------- */
.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) {
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: 0 4px 16px rgba(15, 50, 90, 0.05);
}
.card .icon { font-size: 2rem; margin-bottom: 12px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: var(--ink); }
.card .note { display: block; margin-top: 10px; }
.card-media {
  width: calc(100% + 56px); max-width: none; height: 190px; margin: -30px -28px 24px;
  object-fit: cover; border-radius: var(--radius) var(--radius) 0 0;
}
.card-media.contain { object-fit: contain; padding: 14px; background: #eaf3fa; }

/* ---------- 写真・画像 ---------- */
.media-split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  align-items: center; gap: 52px;
}
.media-split.reverse .media-copy { order: 2; }
.media-split.reverse .media-frame { order: 1; }
.media-frame {
  position: relative; overflow: hidden; border-radius: 22px;
  box-shadow: 0 18px 42px rgba(15, 50, 90, .14);
  background: #dceaf5;
}
.media-frame img { width: 100%; height: 360px; object-fit: cover; }
.media-frame.contain img { object-fit: contain; padding: 18px; background: #eaf3fa; }
.media-caption {
  position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 10px 14px;
  border-radius: 12px; color: #fff; font-size: .82rem; font-weight: 700;
  background: rgba(7, 33, 57, .8); backdrop-filter: blur(8px);
}
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.photo-card { position: relative; overflow: hidden; border-radius: 18px; min-height: 280px; }
.photo-card img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.photo-card .media-caption { margin: 0; }
.classroom-lesson-photo {
  min-height: 0;
  margin-top: 24px;
}
.photo-card.classroom-lesson-photo img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: cover;
}
.access-guide {
  min-height: 0;
  margin-top: 24px;
}
.access-guide-media { position: relative; }
.access-guide-link { display: block; }
.photo-card.access-guide img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
}
.access-guide .media-caption {
  line-height: 1.7;
}
.access-guide-notice {
  margin: 0;
  padding: 14px 16px;
  color: #d7dbd8;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.8;
  background: #11131a;
}
.page-hero.has-photo { position: relative; overflow: hidden; }
.page-hero.has-photo::after {
  content: ""; position: absolute; inset: 0 0 0 58%;
  background-image: var(--page-hero-image); background-position: center; background-size: cover;
  opacity: .26; mask-image: linear-gradient(to right, transparent, #000 28%);
}
.page-hero.has-photo .container { position: relative; z-index: 1; }

/* ---------- 強調引用 ---------- */
.pull-quote {
  max-width: 720px; margin: 36px auto 0; padding: 30px 34px;
  background: #fff; border-left: 5px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 4px 16px rgba(15, 50, 90, 0.06);
  font-weight: 700; font-size: 1.05rem; line-height: 2;
}

/* ---------- ツールカード ---------- */
.tool-badge {
  width: 58px; height: 58px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 1.05rem; margin-bottom: 16px;
}
.tool-badge.scratch { background: #f5a01a; }
.tool-badge.python { background: #3776ab; }
.tool-badge.unity { background: #232c37; }

/* ---------- 数字ハイライト ---------- */
.stats { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 36px; text-align: center; min-width: 240px;
  box-shadow: 0 4px 16px rgba(15, 50, 90, 0.05);
}
.stat .num { font-size: 2.3rem; font-weight: 800; color: var(--primary); line-height: 1.3; }
.stat .num small { font-size: 1rem; font-weight: 700; }
.stat .desc { margin-top: 6px; font-size: 0.9rem; color: var(--muted); font-weight: 600; }

/* ---------- ステップ ---------- */
.steps { display: grid; gap: 18px; max-width: 820px; margin: 0 auto; }
.step {
  display: flex; gap: 20px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px;
}
.step-num {
  flex: 0 0 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: 0.95rem; }
.step .skill { display: inline-block; margin-left: 10px; font-size: 0.78rem; color: var(--accent-dark); font-weight: 700; }

/* ---------- 作品 ---------- */
.work-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.work-thumb {
  aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center;
  font-size: 3.4rem; background: linear-gradient(135deg, #dbeafe, #ede9fe);
}
.work-thumb.t2 { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.work-thumb.t3 { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.work-thumb.t4 { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.work-thumb.t5 { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }
.work-thumb.t6 { background: linear-gradient(135deg, #fee2e2, #fecaca); }
.work-thumb.has-image { padding: 0; background: #dceaf5; }
.work-thumb.has-image img { width: 100%; height: 100%; object-fit: cover; }
.work-thumb.has-image.contain img { object-fit: contain; padding: 12px; background: #eef5fa; }
.work-body { padding: 20px 22px 26px; flex: 1; }
.work-body h3 { margin-bottom: 8px; }
.work-body p { font-size: 0.92rem; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.badge {
  background: #e7f1fb; color: var(--primary); border-radius: 999px;
  padding: 3px 13px; font-size: 0.76rem; font-weight: 700;
}
.badge.gold { background: #fef3c7; color: #b45309; }

/* ---------- プレースホルダー ---------- */
.placeholder {
  border: 2px dashed #aac4da; border-radius: var(--radius);
  padding: 52px 24px; text-align: center; color: var(--muted);
  background: #f8fbfd; font-weight: 600;
}
.placeholder .ph-icon { font-size: 2.4rem; display: block; margin-bottom: 10px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 14px; overflow: hidden;
}
.faq summary {
  padding: 20px 52px 20px 24px; font-weight: 700; cursor: pointer;
  list-style: none; position: relative; line-height: 1.7;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q."; color: var(--accent); font-weight: 800; margin-right: 10px; }
.faq summary::after {
  content: "＋"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  color: var(--primary); font-weight: 800; font-size: 1.15rem;
}
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 24px 24px; }
.faq .answer p + p { margin-top: 0.9em; }

/* ---------- 教室情報テーブル ---------- */
.table-wrap { overflow-x: auto; }
.info-table { width: 100%; border-collapse: collapse; background: #fff; }
.info-table th {
  width: 30%; min-width: 130px; text-align: left; padding: 15px 18px;
  background: var(--bg-soft); border: 1px solid var(--line); font-weight: 700; vertical-align: top;
}
.info-table td { padding: 15px 18px; border: 1px solid var(--line); }

/* ---------- チェックリスト ---------- */
.check-list { list-style: none; max-width: 640px; margin: 0 auto; }
.check-list li { position: relative; padding-left: 2em; margin: 0.7em 0; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 800;
}
.ai-use-list { margin: 18px 0 0; }

/* ---------- 番号付き注目リスト ---------- */
.watch-list { list-style: none; counter-reset: watch; max-width: 640px; margin: 0 auto; }
.watch-list li {
  counter-increment: watch; position: relative; padding: 16px 20px 16px 62px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; font-weight: 600;
}
.watch-list li::before {
  content: counter(watch); position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff;
  font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
}

/* ---------- CTAバナー ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: #fff; border-radius: 22px; padding: 56px 32px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 70%);
  top: -120px; right: -80px;
}
.cta-banner h2 { position: relative; }
.cta-banner p { position: relative; margin-top: 14px; opacity: 0.94; }
.cta-banner .btn { position: relative; margin-top: 26px; }
.curriculum-cta {
  padding-right: clamp(28px, 6vw, 72px);
  padding-left: clamp(28px, 6vw, 72px);
  text-align: left;
}
.curriculum-cta h2 { max-width: 980px; }
.curriculum-cta p { max-width: 760px; }
.home-cta { text-align: left; }
.home-cta p { max-width: 820px; }
.home-classroom-actions p {
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
  text-align: left;
}
.cta-banner.has-photo { isolation: isolate; background-position: center; background-size: cover; }
.cta-banner.has-photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(7, 45, 83, .96), rgba(14, 99, 184, .8));
}

/* ---------- フォーム ---------- */
.form-grid { display: grid; gap: 20px; max-width: 640px; margin: 0 auto; }
.name-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid label { font-weight: 700; font-size: 0.92rem; display: block; margin-bottom: 7px; }
.form-grid .req { color: #dc2626; font-size: 0.78rem; margin-left: 6px; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; padding: 13px 15px; border: 1px solid #c3d3e0; border-radius: 10px;
  font: inherit; background: #fff; color: var(--ink);
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  outline: 2px solid var(--primary); border-color: transparent;
}
.form-note { font-size: 0.83rem; color: var(--muted); text-align: center; }
.form-done {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: var(--radius); padding: 44px 28px;
}
.form-done .icon { font-size: 2.6rem; }
.form-done h3 { margin-top: 10px; color: #047857; }
.form-confirm {
  max-width: 640px; margin: 36px auto 0; padding: 32px;
  background: var(--bg-soft); border: 1px solid var(--line);
}
.form-confirm h2 { margin-bottom: 8px; font-size: 1.6rem; }
.confirm-list { margin-top: 24px; border-top: 1px solid var(--line); }
.confirm-list > div { display: grid; grid-template-columns: 160px 1fr; border-bottom: 1px solid var(--line); }
.confirm-list dt, .confirm-list dd { margin: 0; padding: 15px 12px; }
.confirm-list dt { font-weight: 700; color: var(--primary); }
.confirm-list dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.confirm-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.confirm-actions .btn-secondary { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.confirm-actions .btn-secondary:hover { border-color: var(--primary); }
.confirm-status { margin-top: 16px; }
.contact-step-card { position: relative; }
.contact-step-label {
  display: inline-block; margin-bottom: 18px; padding: 6px 10px;
  color: #08090c; background: var(--primary);
  font: 700 .76rem "Chakra Petch", "Noto Sans JP", sans-serif;
  letter-spacing: .08em;
}
.completion-mark {
  display: grid; place-items: center; width: 72px; height: 72px; margin: 8px auto 18px;
  color: #08090c; background: var(--primary); border-radius: 50%;
  font: 800 2.4rem/1 "Chakra Petch", sans-serif;
  box-shadow: 0 0 34px rgba(141, 255, 69, .28);
}
.contact-step-card.form-done {
  color: var(--ink); background: var(--bg-soft); border-color: var(--line);
}
.contact-step-card.form-done h2 { color: var(--primary); margin-bottom: 16px; }
.contact-step-card.form-done p + p { margin-top: 12px; }
[aria-disabled="true"] { pointer-events: none; opacity: .55; }
.news-section { padding-top: 72px; padding-bottom: 72px; background: #0d0f14; border-bottom: 1px solid var(--line); }
.news-list { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.news-item time { color: var(--muted); font: 600 .82rem "Chakra Petch", sans-serif; }
.news-item a { color: var(--ink); text-decoration: none; font-weight: 700; }
.news-item a:hover { color: var(--primary); }
.news-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 5px; }
.news-tag { display: inline-block; padding: 3px 8px; color: #08090c; background: var(--primary); font-size: .72rem; font-weight: 800; }
.news-tag.sasazuka { color: #fff; background: var(--purple); }
.news-detail { max-width: 820px; margin: 0 auto; }
.news-detail-body { margin-top: 28px; white-space: pre-wrap; line-height: 2; }
.news-filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.news-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.news-pagination a { padding: 7px 12px; border: 1px solid var(--line); text-decoration: none; }
.slot-help { margin-top: 7px; color: var(--muted); font-size: .82rem; }
@media (max-width: 560px) { .news-item { grid-template-columns: 1fr; gap: 6px; } }
@media (max-width: 560px) {
  .confirm-list > div { grid-template-columns: 1fr; }
  .confirm-list dt { padding-bottom: 4px; }
  .confirm-list dd { padding-top: 4px; }
}

/* ---------- フッター ---------- */
.site-footer { background: #0b2740; color: #cfe0ee; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { font-size: 1.05rem; margin-bottom: 12px; color: #fff; }
.site-footer p { font-size: 0.9rem; }
.footer-head { font-weight: 800; color: #fff; margin-bottom: 12px; font-size: 0.95rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin: 8px 0; font-size: 0.9rem; }
.site-footer a { color: #cfe0ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.copyright { text-align: center; margin-top: 44px; font-size: 0.8rem; color: #8fa9c0; }

@media (max-width: 860px) {
  .hero-layout, .media-split { grid-template-columns: 1fr; gap: 34px; }
  .hero-visual { max-width: 620px; transform: none; }
  .hero-visual img { height: 330px; }
  .media-split.reverse .media-copy, .media-split.reverse .media-frame { order: initial; }
  .page-hero.has-photo::after { left: 38%; }
}
@media (max-width: 640px) {
  .hero { padding: 62px 0 56px; }
  .hero-visual img, .media-frame img { height: 250px; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-card, .photo-card img { min-height: 230px; }
  .card-media { height: 180px; }
}

/* ---------- アニメーション ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Pattern 5 visual system — dark / neon / creator console
   文言・ページ構成は維持し、旧案5の世界観を全ページへ適用
   ============================================================ */
:root {
  --primary: #8dff45;
  --primary-dark: #55b91c;
  --primary-light: #b8ff8a;
  --accent: #8dff45;
  --accent-dark: #65cf29;
  --ink: #ecf2ee;
  --muted: #9ba09d;
  --bg: #08090c;
  --bg-soft: #11131a;
  --line: #30333c;
  --purple: #7e5cff;
  --paper: #e8ece7;
  --radius: 6px;
  --maxw: 1160px;
}

body {
  color: var(--ink); background: var(--bg);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}
a { color: inherit; }

.site-header {
  height: 76px; background: rgba(8, 9, 12, .92);
  border-color: var(--line); backdrop-filter: blur(15px);
}
.header-inner { height: 76px; max-width: 1440px; }
.logo {
  --ut-green: var(--primary);
  --ut-ink: #e8f5ec;
  display: inline-flex; align-items: center; gap: 14px; flex: 0 0 auto;
  color: var(--ut-ink); font-family: "Chakra Petch", "Noto Sans JP", sans-serif;
  line-height: 1;
}
.ut-logo__mark {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 52px; height: 52px; border-radius: 13px;
  background: linear-gradient(150deg, #0f2e1d, #071009);
  border: 1px solid var(--ut-green);
  box-shadow: inset 0 0 20px rgba(141, 255, 69, .2);
}
.ut-logo__play {
  width: 0; height: 0; margin-left: 4px;
  border-left: 17px solid var(--ut-green);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.ut-logo__text {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  height: 52px; gap: 3px;
}
.ut-logo__word { font-size: 22px; font-weight: 700; letter-spacing: .06em; }
.ut-logo__line {
  display: flex; align-items: center; gap: 7px; padding: 3px 9px;
  border: 1px solid #1d3628; border-radius: 4px; background: #08120c;
}
.ut-logo__prompt { color: var(--ut-green); font: 400 11px "JetBrains Mono", monospace; }
.ut-logo__ja {
  color: #dcefe3; font-family: "Noto Sans JP", sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: .08em;
}
.ut-logo__cursor {
  width: 6px; height: 14px;
  background: var(--ut-green);
  animation: ut-blink 20s step-end infinite;
}
@keyframes ut-blink { 0% { opacity: 1; } 97% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ut-logo__cursor { animation: none; } }
.nav { gap: clamp(12px, 1.6vw, 25px); }
.nav a {
  color: #dfe5e1; font: 600 .72rem "Noto Sans JP", sans-serif;
  letter-spacing: .03em;
}
.nav a:hover, .nav a.active { color: var(--primary); }
.nav a.btn-primary, .nav a.btn-primary.active { color: #08090c; }
.nav a.btn-primary { background: #f59e0b; }
.nav a.btn-primary:hover { background: #fbbf24; }
.nav .btn { font-size: .72rem; padding: 10px 20px; }
.nav-toggle span { background: #fff; }

.btn { border-radius: 0; font-family: "Noto Sans JP", sans-serif; }
.btn-primary {
  color: #08090c; background: var(--primary);
  box-shadow: 0 0 28px rgba(141, 255, 69, .18);
}
.btn-primary:hover { color: #08090c; background: #a6ff6d; }
.btn-outline { border-color: #646872; color: #fff; }
.btn-outline-dark { color: var(--primary); border-color: var(--primary); }
.btn-outline-dark:hover { color: #08090c; background: var(--primary); }

.hero {
  min-height: calc(100vh - 76px); display: flex; align-items: center;
  padding: 80px 0; background:
    radial-gradient(circle at 76% 46%, rgba(126, 92, 255, .43), transparent 28%),
    #08090c;
}
.hero::before {
  width: auto; height: auto; inset: 0; border-radius: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 4px, rgba(255,255,255,.025) 5px);
}
.hero::after {
  width: 410px; height: 410px; left: auto; right: 6%; bottom: 8%;
  border: 1px dashed rgba(141,255,69,.3); background: none;
}
.hero-layout { gap: clamp(40px, 6vw, 90px); }
.hero-copy { position: relative; }
.hero-copy::before {
  content: "●  CREATOR MODE : ONLINE"; display: block; margin-bottom: 28px;
  color: var(--primary); font: 600 .67rem "Chakra Petch", sans-serif;
  letter-spacing: .16em;
}
.hero .kicker {
  padding: 0; margin-bottom: 18px; color: #969b98; background: none;
  border: 0; border-radius: 0; font: 600 .7rem "Chakra Petch", "Noto Sans JP", sans-serif;
  letter-spacing: .08em;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 4.2rem); line-height: 1.35; letter-spacing: -.055em;
}
.hero h1 .accent {
  color: var(--primary); -webkit-text-stroke: 0;
  text-shadow: 0 0 26px rgba(141,255,69,.26);
}
.hero .sub { color: #b0b4b2; opacity: 1; font-size: .95rem; line-height: 2; }
.hero-visual {
  border-radius: 0; border-color: rgba(141,255,69,.45); transform: none;
  box-shadow: 20px 20px 0 rgba(126,92,255,.32), 0 0 50px rgba(126,92,255,.18);
}
.hero-visual::before {
  content: "U-TECH / VISUAL_01"; position: absolute; z-index: 2; left: 14px; top: 12px;
  color: var(--primary); font: 600 .58rem "Chakra Petch", sans-serif; letter-spacing: .14em;
}
.hero-visual::after { border-radius: 0; background: rgba(8,9,12,.82); color: var(--primary); }

.page-hero {
  position: relative; padding: 82px 0 70px; color: #fff;
  background: radial-gradient(circle at 78% 50%, rgba(126,92,255,.38), transparent 30%), #08090c;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 4px, rgba(255,255,255,.025) 5px);
}
.page-hero .eyebrow { color: var(--primary); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 4.5rem); letter-spacing: -.05em; }
.page-hero p { color: #b8bdb9; }
.page-hero.has-photo::after { opacity: .32; filter: saturate(.8) contrast(1.1); }

.section { position: relative; padding: 108px 0; background: #08090c; color: var(--ink); }
.section.alt { background: var(--paper); color: #08090c; }
.section-head { margin-bottom: 58px; }
.eyebrow {
  color: var(--primary); font: 600 .7rem "Chakra Petch", sans-serif;
  letter-spacing: .2em;
}
.section.alt .eyebrow { color: var(--purple); }
h2 { font-size: clamp(2rem, 4.2vw, 4.25rem); line-height: 1.28; letter-spacing: -.05em; }
h3 { letter-spacing: -.02em; }
.lead, .section:not(.alt) .prose { color: #aeb4b0; }
.section.alt .lead, .section.alt .prose { color: #38413c; }
.em { color: var(--primary); }
.section.alt .em { color: var(--purple); }

.card {
  border-radius: 0; border-color: var(--line); background: #11131a; color: var(--ink);
  box-shadow: none; transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--primary); }
.card p { color: #aeb4b0; }
.section.alt .card { background: #fff; border-color: #c9cfca; color: #08090c; }
.section.alt .card:hover { border-color: var(--purple); }
.section.alt .card p { color: #38413c; }
.card-media { border-radius: 0; border-bottom: 1px solid var(--line); filter: saturate(.86) contrast(1.04); }
.card-media.contain { background: #171a22; }
.section.alt .card-media.contain { background: #e1e6e1; }
.card .icon { color: var(--primary); filter: grayscale(1); }
.section.alt .card .icon { color: var(--purple); }

.media-frame, .photo-card {
  border-radius: 0; border: 1px solid var(--line);
  box-shadow: 18px 18px 0 rgba(126,92,255,.18);
}
.section.alt .media-frame, .section.alt .photo-card {
  border-color: #a9b1ab; box-shadow: 18px 18px 0 rgba(126,92,255,.16);
}
.media-caption { border-radius: 0; background: rgba(8,9,12,.86); color: var(--primary); }
.pull-quote {
  border-radius: 0; background: #11131a; color: #fff; border-left-color: var(--primary);
  box-shadow: none;
}
.section.alt .pull-quote { color: #08090c; background: #fff; border-left-color: var(--purple); }

.tool-badge { border-radius: 0; font-family: "Chakra Petch", sans-serif; }
.tool-badge.scratch { color: #08090c; background: var(--primary); }
.tool-badge.python { background: var(--purple); }
.tool-badge.unity { background: #08090c; border: 1px solid #777; }

.stat { border-radius: 0; background: #fff; border-color: #bfc6c0; box-shadow: none; }
.stat .num { color: var(--purple); font-family: "Chakra Petch", "Noto Sans JP", sans-serif; }
.stat .desc { color: #3f4742; }

.step { border-radius: 0; border-color: var(--line); background: #11131a; }
.step-num { color: #08090c; background: var(--primary); font-family: "Chakra Petch", sans-serif; }
.section.alt .step { color: #08090c; background: #fff; border-color: #c9cfca; }
.section.alt .step-num { color: #fff; background: var(--purple); }

.work-card { background: #11131a; }
.work-thumb { border-bottom: 1px solid var(--line); border-radius: 0; }
.work-thumb.has-image.contain img { background: #171a22; }
.section.alt .work-thumb.has-image.contain img { background: #e1e6e1; }
.badge { color: #08090c; background: var(--primary); border-radius: 0; }
.badge.gold { color: #fff; background: var(--purple); }

.placeholder {
  color: #8c928e; background: #11131a; border-color: #555b57; border-radius: 0;
}
.section.alt .placeholder { color: #535b56; background: #fff; border-color: #9ea79f; }

.faq details { border-radius: 0; border-color: var(--line); background: #11131a; }
.faq summary::before, .faq summary::after { color: var(--primary); }
.faq .answer { color: #b7bcb9; }

.info-table { color: #08090c; }
.info-table th { background: #dfe4df; border-color: #bac2bb; }
.info-table td { background: #fff; border-color: #bac2bb; }
.schedule-meta {
  display: inline-block; margin-top: 18px; padding: 5px 10px;
  color: var(--primary); border: 1px solid var(--line);
  font: 600 .72rem "Chakra Petch", "Noto Sans JP", sans-serif; letter-spacing: .08em;
}
.schedule-table {
  width: 100%; min-width: 760px; border-collapse: collapse; color: var(--ink);
  background: #11131a; border: 1px solid var(--line);
}
.schedule-table caption {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.schedule-table th, .schedule-table td {
  padding: 16px 10px; border: 1px solid var(--line); text-align: center; white-space: nowrap;
}
.schedule-table thead th { color: #08090c; background: var(--primary); }
.schedule-table tbody th { color: #fff; background: #171a22; font-size: .88rem; }
.schedule-table td { color: #656b67; }
.status-open, .status-full {
  display: inline-block; min-width: 64px; padding: 5px 8px;
  font-size: .76rem; font-weight: 800; line-height: 1.3;
}
.status-open { color: #08090c; background: var(--primary); }
.status-full { color: #fff; background: var(--purple); }
.pdf-link::before { content: "PDF  "; color: var(--purple); font-family: "Chakra Petch", sans-serif; }
.check-list li::before { color: var(--primary); }
.watch-list li { border-radius: 0; color: #08090c; border-color: #c3cac4; }
.watch-list li::before { background: var(--purple); }

.cta-banner {
  border-radius: 0; background: radial-gradient(circle at 50% 10%, rgba(126,92,255,.52), transparent 45%), #08090c;
  border: 1px solid var(--line);
}
.cta-banner::before { border: 1px dashed rgba(141,255,69,.25); background: none; }
.cta-banner.has-photo::after { background: linear-gradient(110deg, rgba(8,9,12,.98), rgba(8,9,12,.76)); }

.form-grid input, .form-grid select, .form-grid textarea {
  color: #08090c; border-radius: 0; border-color: #aeb5af;
}
.form-done { border-radius: 0; }

.site-footer { color: #9da39f; background: #08090c; border-top: 1px solid var(--line); }
.site-footer a { color: #aeb4b0; }
.footer-logo, .footer-head { color: #fff; }
.footer-head-sub { margin-top: 22px; }
.footer-logo b { color: var(--primary); font-family: "Chakra Petch", "Noto Sans JP", sans-serif; }

@media (max-width: 1280px) {
  .nav { background: #0d0f14; border-color: var(--line); box-shadow: 0 18px 30px rgba(0,0,0,.45); }
  .nav a { border-color: var(--line); }
}
@media (max-width: 860px) {
  .hero { min-height: auto; }
  .hero::after { width: 280px; height: 280px; }
  .hero-visual { box-shadow: 10px 10px 0 rgba(126,92,255,.3); }
  .section { padding: 82px 0; }
}
@media (max-width: 640px) {
  .site-header, .header-inner { height: 68px; }
  .nav { top: 68px; }
  .logo { gap: 10px; }
  .ut-logo__mark { width: 40px; height: 40px; border-radius: 10px; }
  .ut-logo__play { margin-left: 3px; border-left-width: 13px; border-top-width: 8px; border-bottom-width: 8px; }
  .ut-logo__text { height: 40px; gap: 2px; }
  .ut-logo__word { font-size: 17px; }
  .ut-logo__line { gap: 4px; padding: 3px 6px; }
  .ut-logo__prompt { font-size: 8.5px; }
  .ut-logo__ja { font-size: 9.5px; letter-spacing: .04em; }
  .ut-logo__cursor { width: 4px; height: 10px; }
  .hero h1 { font-size: clamp(1.9rem, 10vw, 3.2rem); }
  .page-hero { padding: 64px 0 58px; }
  .section { padding: 68px 0; }
  h2 { font-size: clamp(1.75rem, 9vw, 2.8rem); }
}

/* 先生が選んだAI作品を公式サイト内で安全に再生する */
.official-works-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  color: #aeb4b0;
  border: 1px solid var(--line);
  text-align: center;
}
.official-work-card .work-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  height: auto;
  background: #171a22;
}
.official-work-card .work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.official-work-card .work-thumb-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--primary);
  font-size: 3rem;
}
.official-work-card .work-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.official-work-card .work-body h3,
.official-work-card .work-body p { margin: 0; }
.official-work-card .work-creator {
  color: var(--primary);
  font-size: .82rem;
  font-weight: 700;
}
.official-work-card .btn { margin-top: auto; align-self: flex-start; }
.official-works-more {
  margin-top: 36px;
  text-align: center;
}
.official-works-count {
  margin: 0 0 14px;
  color: #aeb4b0;
  font-size: .9rem;
  font-weight: 700;
}
.official-works-more .btn[hidden] { display: none; }

/* ---------- ホーム：判断材料を早く伝える ---------- */
.home-facts-section { padding: 34px 0; }
.home-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.home-fact {
  display: flex;
  min-width: 0;
  min-height: 136px;
  padding: 20px 18px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 50, 90, .04);
}
.home-fact-label {
  color: var(--primary);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
}
.home-fact strong {
  margin-top: 3px;
  font-size: 1.08rem;
  line-height: 1.55;
}
.home-fact small {
  margin-top: 4px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.55;
}
.compact-details { margin-top: 14px; }
.compact-details > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.compact-details > div:last-child { border-bottom: 0; }
.compact-details dt {
  color: var(--primary);
  font-weight: 800;
}
.compact-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.home-decision-grid { max-width: 900px; margin: 0 auto; }
.home-classroom-actions p { margin-bottom: 18px; color: var(--muted); }
.screen-time-section .section-head { margin-bottom: 0; }
.section.alt .teacher-home-facts span {
  color: var(--ink);
  border-color: #cbd9e4;
  background: rgba(255, 255, 255, .62);
}
.section.alt .teacher-home-facts strong { color: var(--primary); }

@media (max-width: 900px) {
  .home-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .home-facts-section { padding: 22px 0; }
  .home-facts { grid-template-columns: 1fr; gap: 10px; }
  .home-fact {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    min-height: 0;
    padding: 15px 16px;
    align-items: center;
  }
  .home-fact-label { grid-row: 1 / span 2; }
  .home-fact strong { margin: 0; font-size: 1rem; }
  .home-fact small { margin: 0; }
  .compact-details > div {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 11px 0;
  }
}

/* ---------- 講師・指導方針 ---------- */
.teacher-intro { padding-top: 64px; padding-bottom: 64px; }
.teacher-stats { margin-top: 0; }
.teacher-profile { align-items: start; }
.teacher-position {
  margin: 10px 0 0;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: .08em;
}
.section.alt .teacher-position { color: var(--purple); }
.teacher-profile h2 {
  margin: 0;
  font-size: clamp(1.15rem, 1.75vw, 1.6rem);
}
.teacher-name-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.teacher-employment-tag {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: rgba(141, 255, 69, .08);
  font: 700 .7rem "Noto Sans JP", sans-serif;
  letter-spacing: .08em;
  line-height: 1.4;
}
.section.alt .teacher-employment-tag {
  border-color: var(--purple);
  color: var(--purple);
  background: rgba(126, 92, 255, .08);
}
.teacher-affiliation {
  margin-bottom: 24px;
  color: #d8ddda;
  font-weight: 700;
  line-height: 1.8;
}
.section.alt .teacher-affiliation { color: #252b27; }
.teacher-credentials {
  display: grid;
  gap: 8px;
  margin: 0 0 28px;
  padding: 20px 22px;
  list-style: none;
  border: 1px solid var(--line);
  background: #11131a;
}
.teacher-credentials li {
  position: relative;
  padding-left: 22px;
  color: #d8ddda;
  font-weight: 700;
}
.teacher-credentials li::before {
  content: "＋";
  position: absolute;
  left: 0;
  color: var(--primary);
}
.teacher-photo img { object-position: center; }
.teacher-photo-stack { display: grid; gap: 24px; }
.teacher-work img { min-height: 420px; }
.teacher-message { max-width: 920px; margin-top: 72px; }
.teacher-message .eyebrow { display: block; margin-bottom: 12px; }
.teacher-message p + p { margin-top: 14px; }
.teacher-role-label {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 10px;
  color: #08090c;
  background: var(--primary);
  font: 700 .72rem "Noto Sans JP", sans-serif;
  letter-spacing: .08em;
}
.teacher-role h3 { font-size: 1.45rem; }
.teacher-home-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.teacher-home-facts span {
  padding: 9px 12px;
  color: #d8ddda;
  border: 1px solid var(--line);
  font-size: .82rem;
}
.teacher-home-facts strong {
  margin-right: 4px;
  color: var(--primary);
  font: 700 1.05rem "Chakra Petch", "Noto Sans JP", sans-serif;
}

@media (max-width: 860px) {
  .teacher-message { margin-top: 48px; }
  .teacher-work img { min-height: 300px; }
}

@media (max-width: 640px) {
  .teacher-intro { padding-top: 44px; padding-bottom: 44px; }
  .teacher-stats .stat { min-width: 100%; }
  .teacher-credentials { padding: 18px; }
  .teacher-home-facts { display: grid; grid-template-columns: 1fr; }
}

/* ============================================================
   V2 — AI時代の教育方針・90分の授業構成
   ============================================================ */
.vision-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 15%, rgba(141, 255, 69, .1), transparent 28%),
    #08090c;
}
.vision-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: start;
}
.vision-statement {
  padding-left: 26px;
  border-left: 3px solid var(--primary);
}
.vision-statement h2 {
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  line-height: 1.42;
  letter-spacing: -.045em;
}
.vision-title span { display: block; white-space: nowrap; }
.vision-copy { margin: 0; }
.vision-copy p { color: #c1c6c2; text-wrap: pretty; }
.vision-pillars .card { position: relative; overflow: hidden; }
.vision-pillars .card::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  right: -45px;
  bottom: -45px;
  border: 1px solid rgba(141, 255, 69, .22);
  transform: rotate(45deg);
}

.lesson-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr);
  max-width: 1080px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: #11131a;
}
.lesson-flow-section .section-head { max-width: 920px; }
.lesson-title {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1.35;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.lesson-title span { display: inline; }
.lesson-block {
  display: flex;
  gap: 20px;
  min-width: 0;
  min-height: 260px;
  padding: 30px 26px;
  border-right: 1px solid var(--line);
}
.lesson-block:last-child { border-right: 0; }
.lesson-block--creation {
  background: linear-gradient(135deg, rgba(126, 92, 255, .2), rgba(141, 255, 69, .05));
}
.lesson-time {
  display: flex;
  flex: 0 0 54px;
  flex-direction: column;
  align-items: center;
  color: var(--primary);
  font-family: "Chakra Petch", sans-serif;
  line-height: 1;
}
.lesson-time strong { font-size: 2.5rem; }
.lesson-time span { margin-top: 7px; font-size: .65rem; letter-spacing: .15em; }
.lesson-body { min-width: 0; }
.lesson-label,
.creation-path-number,
.output-word,
.ai-mode-label {
  display: block;
  margin-bottom: 10px;
  color: var(--primary);
  font: 600 .67rem "Chakra Petch", sans-serif;
  letter-spacing: .14em;
}
.lesson-body h3 { margin-bottom: 10px; }
.lesson-body p { color: #b8bdb9; font-size: .92rem; line-height: 1.85; }
.lesson-body small {
  display: block;
  margin-top: 12px;
  color: #909692;
  font-size: .76rem;
  line-height: 1.7;
}
.lesson-output {
  display: flex;
  max-width: 1080px;
  margin: 24px auto 0;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  color: #dce1de;
  font-weight: 700;
}
.lesson-output span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: #11131a;
}
.lesson-output b { color: var(--primary); }
.section.alt .lesson-flow { border-color: #bfc6c0; background: #fff; }
.section.alt .lesson-block { border-color: #c9cfca; }
.section.alt .lesson-block--creation {
  background: linear-gradient(135deg, rgba(126, 92, 255, .12), rgba(141, 255, 69, .08));
}
.section.alt .lesson-time,
.section.alt .lesson-label { color: var(--purple); }
.section.alt .lesson-body p { color: #38413c; }
.section.alt .lesson-body small { color: #606862; }
.section.alt .lesson-output { color: #202622; }
.section.alt .lesson-output span { border-color: #c4cbc5; background: #fff; }
.section.alt .lesson-output b { color: var(--purple); }

.creation-paths { max-width: 980px; margin: 0 auto; }
.creation-path { padding: 38px 34px; }
.creation-path h3 { font-size: 1.5rem; }
.section.alt .creation-path-number { color: var(--purple); }
.creation-path .check-list { margin-left: 0; }
.creation-path-note {
  max-width: 900px;
  margin: 26px auto 0;
  padding: 16px 20px;
  border-left: 3px solid var(--purple);
  color: #303732;
  background: rgba(255, 255, 255, .58);
  font-weight: 700;
}

.systems-thinking-section { overflow: hidden; }
.systems-thinking-section .media-copy { margin: 0; }
.systems-thinking-section .media-copy h2 { margin-bottom: 28px; }
.system-map {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 440px;
  padding: 42px 36px 34px;
  align-content: center;
  border: 1px solid rgba(141, 255, 69, .46);
  background:
    linear-gradient(rgba(141,255,69,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141,255,69,.035) 1px, transparent 1px),
    #0d0f14;
  background-size: 24px 24px;
  box-shadow: 18px 18px 0 rgba(126,92,255,.2);
}
.system-map-title {
  position: absolute;
  top: 15px;
  left: 18px;
  color: var(--primary);
  font: 600 .62rem "Chakra Petch", sans-serif;
  letter-spacing: .15em;
}
.system-node {
  padding: 16px 18px;
  border: 1px solid var(--line);
  color: #fff;
  background: #171a22;
  text-align: center;
  font-weight: 800;
}
.system-node--server { border-color: var(--primary); color: var(--primary); }
.system-node--data { border-color: var(--purple); }
.system-arrow { color: #929894; text-align: center; font-size: .78rem; }

.output-word { color: var(--purple); }
.output-grid .card { min-height: 230px; }
.output-grid h3 { font-size: 1.35rem; }
.presentation-feature {
  margin-top: 54px;
  padding-top: 54px;
  border-top: 1px solid #c3cac4;
}
.presentation-feature h3 {
  margin-bottom: 18px;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.45;
}
.presentation-feature p { color: #38413c; line-height: 2; }
.presentation-photo img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: cover;
}

.founder-message {
  max-width: 980px;
  padding: clamp(30px, 5vw, 62px);
  font-weight: 400;
}
.founder-message h2 {
  margin: 0 0 34px;
  font-size: clamp(1.7rem, 3.3vw, 3.15rem);
}
.founder-message p { color: #d0d5d1; line-height: 2.1; }
.founder-message p:last-child {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: #fff;
  font-weight: 700;
}
.teaching-policy-grid { max-width: 980px; margin: 0 auto; }

.teacher-home-title {
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.42;
  letter-spacing: -.045em;
}
.teacher-home-title span { display: block; white-space: nowrap; }
.teacher-home p { text-wrap: pretty; }
.nowrap { white-space: nowrap; }

/* 明るい背景ではネオン色を濃くして、文字の可読性を確保する */
.section.alt .teacher-home-facts span {
  color: #27302a;
  border-color: #b9c1bb;
  background: #fff;
}
.section.alt .teacher-home-facts strong { color: #3b7f16; }
.section.alt .btn-outline-dark {
  color: #2f6d0d;
  border-color: #2f6d0d;
}
.section.alt .btn-outline-dark:hover { color: #fff; background: #2f6d0d; }

.ai-mode-grid { max-width: 940px; margin: 0 auto 54px; }
.ai-mode-grid .card { min-height: 230px; }
.section-subhead { margin: 0 auto 26px; text-align: center; }
.section-subhead h3 { font-size: 1.35rem; }

@media (max-width: 940px) {
  .vision-grid { grid-template-columns: 1fr; }
  .vision-copy { max-width: 780px; }
  .lesson-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lesson-block--algorithm { border-right: 0; }
  .lesson-block--creation { grid-column: 1 / -1; border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .section-head,
  .section-subhead,
  .cta-banner {
    text-align: left;
  }
  .section-head {
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }
  .section-head h2,
  .cta-banner h2 {
    font-size: clamp(1.7rem, 7.4vw, 1.9rem);
    line-height: 1.42;
  }
  .section-subhead {
    margin-right: 0;
    margin-left: 0;
  }
  .section-subhead h3 { font-size: 1.2rem; }
  .vision-statement { padding-left: 18px; }
  .vision-statement h2 { font-size: clamp(1.75rem, 8vw, 2rem); }
  .lesson-title { white-space: normal; }
  .lesson-title span { display: block; }
  .teacher-home-title { font-size: clamp(1.8rem, 8.5vw, 2rem); }
  .lesson-flow { grid-template-columns: 1fr; }
  .lesson-block {
    min-height: 0;
    padding: 24px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .lesson-block--creation { grid-column: auto; border-top: 0; }
  .lesson-block:last-child { border-bottom: 0; }
  .lesson-time { flex-basis: 46px; }
  .lesson-time strong { font-size: 2.1rem; }
  .lesson-output { gap: 7px; font-size: .82rem; }
  .lesson-output span { padding: 5px 8px; }
  .creation-path { padding: 28px 22px; }
  .system-map { min-height: 360px; padding: 52px 22px 28px; box-shadow: 10px 10px 0 rgba(126,92,255,.2); }
  .founder-message { padding: 28px 22px; }
}

/* 無料体験を予約された方だけにメールで案内するアクセスページ */
.private-guide-header .header-inner { justify-content: space-between; }
.private-guide-badge {
  padding: 7px 11px;
  color: var(--primary);
  border: 1px solid rgba(141, 255, 69, .45);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  white-space: nowrap;
}
.private-access-container { max-width: 980px; }
.private-access-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr);
  gap: 28px;
  align-items: stretch;
}
.private-access-summary > div {
  padding: 30px;
  border: 1px solid var(--line);
  background: #11131a;
}
.private-access-label {
  margin-bottom: 10px;
  color: var(--primary);
  font: 600 .68rem "Chakra Petch", sans-serif;
  letter-spacing: .18em;
}
.private-access-address { margin-bottom: 12px; font-size: 1.18rem; font-weight: 800; line-height: 1.8; }
.private-access-summary .btn { margin-top: 22px; }
.private-access-warning { border-left: 4px solid var(--purple) !important; }
.private-access-warning strong { display: block; margin-bottom: 12px; color: #fff; font-size: 1.05rem; }
.private-access-warning p { color: #b8bdb9; }
.private-route-map {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid #b9c1bb;
  background: #fff;
  box-shadow: 18px 18px 0 rgba(126, 92, 255, .18);
}
.private-route-map img { display: block; width: 100%; height: auto; }
.private-arrival-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  counter-reset: arrival-step;
}
.private-arrival-steps li {
  position: relative;
  padding: 26px 24px 26px 76px;
  border: 1px solid var(--line);
  background: #11131a;
  counter-increment: arrival-step;
}
.private-arrival-steps li::before {
  content: counter(arrival-step);
  position: absolute;
  top: 24px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #08090c;
  background: var(--primary);
  font: 700 1rem "Chakra Petch", sans-serif;
}
.private-arrival-steps strong { display: block; margin-bottom: 8px; color: #fff; }
.private-arrival-steps span { color: #b8bdb9; line-height: 1.85; }
.private-entrance-photo {
  margin: 0;
  border: 1px solid var(--line);
  background: #11131a;
  box-shadow: 18px 18px 0 rgba(126, 92, 255, .18);
}
.private-entrance-photo a,
.private-entrance-photo img { display: block; width: 100%; }
.private-entrance-photo img { height: auto; }
.private-entrance-photo figcaption { padding: 12px 16px; color: #b8bdb9; font-size: .82rem; }
.private-access-contact {
  margin-top: 34px;
  padding: 22px 24px;
  border-left: 4px solid var(--primary);
  background: #11131a;
}
.private-access-contact p + p { margin-top: 8px; }
.private-access-contact a { font-weight: 800; }
.private-guide-footer { padding: 34px 24px; text-align: center; }
.private-guide-footer .copyright { margin-top: 8px; }

@media (max-width: 700px) {
  .private-guide-badge { font-size: .64rem; }
  .private-access-summary,
  .private-arrival-steps { grid-template-columns: 1fr; }
  .private-access-summary > div { padding: 24px 20px; }
  .private-route-map { padding: 7px; box-shadow: 10px 10px 0 rgba(126, 92, 255, .18); }
  .private-arrival-steps li { padding: 22px 18px 22px 68px; }
  .private-arrival-steps li::before { top: 20px; left: 18px; }
  .private-entrance-photo { box-shadow: 10px 10px 0 rgba(126, 92, 255, .18); }
}

.work-game-modal[hidden] { display: none; }
.work-game-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  overflow: hidden;
  background: rgba(3, 4, 7, .96);
}
.work-game-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1120px, 100%);
  height: min(760px, calc(100dvh - 24px));
  min-width: 0;
  min-height: 0;
  margin: auto;
  border: 1px solid var(--line);
  background: #08090c;
}
.work-game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.work-game-header h2 {
  margin: 2px 0 0;
  font-size: clamp(1.15rem, 3vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: -.02em;
}
.work-game-header p { margin: 3px 0 0; color: #aeb4b0; font-size: .8rem; }
.work-game-close {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  padding: 0;
  color: #08090c;
  border: 0;
  background: var(--primary);
  font: 400 2rem/1 sans-serif;
  cursor: pointer;
}
.work-game-viewport {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  padding: 12px;
  overflow: hidden;
}
.work-game-stage {
  align-self: center;
  justify-self: center;
  width: min(100%, 960px, calc((100dvh - 150px) * 19 / 12));
  max-height: 100%;
  aspect-ratio: 19 / 12;
  overflow: hidden;
  border: 1px solid #555b57;
  background: #fff;
}
.work-game-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.work-game-hint {
  margin: 9px 0 0;
  color: #8f9691;
  font-size: .76rem;
  text-align: center;
}
body.work-game-open { overflow: hidden; }

@media (max-width: 640px) {
  .work-game-modal { padding: 0; }
  .work-game-dialog { width: 100%; height: 100dvh; border: 0; }
  .work-game-header { padding: max(9px, env(safe-area-inset-top)) 10px 9px; }
  .work-game-header .eyebrow { font-size: .56rem; }
  .work-game-header h2 { max-width: calc(100vw - 80px); }
  .work-game-close { flex-basis: 44px; width: 44px; height: 44px; }
  .work-game-viewport { padding: 8px max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)); }
  .work-game-stage { width: min(100%, calc((100dvh - 125px) * 19 / 12)); }
  .work-game-hint { margin-top: 6px; font-size: .68rem; }
}

@media (max-height: 430px) and (orientation: landscape) {
  .work-game-header { padding: 6px 10px; }
  .work-game-header .eyebrow,
  .work-game-header p,
  .work-game-hint { display: none; }
  .work-game-close { flex-basis: 40px; width: 40px; height: 40px; }
  .work-game-viewport { grid-template-rows: minmax(0, 1fr); padding: 6px; }
  .work-game-stage { width: min(100%, calc((100dvh - 64px) * 19 / 12)); }
}
