/* ============================================
   MAGIMO STUDIO — Design System
   Light × Gold — Premium Edutainment
   ============================================ */

:root {
  /* --- Color Palette --- */
  --bg-base:        #FFFEF9; /* オフホワイト（暖色寄り） */
  --bg-cream:       #FAF6EC; /* 淡いクリーム（セクション帯） */
  --bg-card:        #FFFFFF;
  --border-soft:    #E8E0C8; /* ゴールドに調和するベージュ */
  --border-mid:     #D6C898;

  --gold:           #C9A84C; /* プライマリゴールド */
  --gold-deep:      #A6862E; /* ディープゴールド（テキスト・アクセント） */
  --gold-light:     #F1E4B0; /* ハイライト用の淡いゴールド */
  --gold-glow:      rgba(201, 168, 76, 0.2);

  --ink:            #1A1A1A; /* メインテキスト（純黒は避ける） */
  --ink-soft:       #444444;
  --ink-muted:      #6B6B6B;
  --ink-faint:      #9A9A9A;

  /* --- Typography --- */
  --font-display:   'Cormorant Garamond', 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  --font-serif:     'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --font-sans:      'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', system-ui, sans-serif;
  --font-mono:      'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* --- Spacing --- */
  --container:      1200px;
  --gutter:         24px;
  --section-pad:    clamp(64px, 10vw, 120px);

  /* --- Radius & Shadow --- */
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --radius-pill:    9999px;

  --shadow-sm:      0 1px 3px rgba(166, 134, 46, 0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:      0 8px 24px rgba(166, 134, 46, 0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:      0 24px 60px rgba(166, 134, 46, 0.10), 0 8px 20px rgba(0,0,0,0.06);
  --shadow-gold:    0 8px 24px rgba(201, 168, 76, 0.30);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--ink);
  line-height: 1.8;
  font-feature-settings: "palt";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* --- Google Fonts --- */
/* Loaded via <link> in <head> */

/* --- Utilities --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: var(--section-pad) 0;
  position: relative;
}
.section--cream { background: var(--bg-cream); }
.section--gold-tint {
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--gold-light) 100%);
}

#concept { overflow: hidden; }
#concept .container { position: relative; z-index: 1; }
#concept .concept__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(250, 246, 236, 0.92) 0%, rgba(250, 246, 236, 0.82) 40%, rgba(250, 246, 236, 0.92) 100%),
    url('../image/concept_bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '— ';
  letter-spacing: -0.05em;
}

.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.h-section {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 24px;
}
.h-section em {
  font-style: normal;
  color: var(--gold-deep);
  background: linear-gradient(180deg, transparent 60%, var(--gold-light) 60%);
  padding: 0 4px;
}
.lead {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--ink-soft);
  line-height: 2;
  max-width: 64ch;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 36px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-gold);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201, 168, 76, 0.40);
}
.btn--ghost {
  background: transparent;
  color: var(--gold-deep);
  border: 1.5px solid var(--gold);
}
.btn--ghost:hover {
  background: var(--gold);
  color: #FFFFFF;
}
/* Hero ghost button (over dark background) */
.hero .btn--ghost {
  color: #FFFEF9;
  border-color: rgba(255, 254, 249, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(255, 254, 249, 0.06);
}
.hero .btn--ghost:hover {
  background: rgba(255, 254, 249, 0.95);
  color: var(--ink);
  border-color: #FFFEF9;
}
.btn--block {
  width: 100%;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(255, 254, 249, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-soft);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.18em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #FFFEF9;
  transition: color 0.3s ease;
}
.nav.is-scrolled .nav__logo { color: var(--ink); }
/* Logo image: show white version by default (over hero), swap to black on scroll */
.nav__logo-img {
  height: 44px;
  width: auto;
  transition: opacity 0.3s ease;
}
.nav__logo-img--dark {
  display: none;
}
.nav.is-scrolled .nav__logo-img--light {
  display: none;
}
.nav.is-scrolled .nav__logo-img--dark {
  display: block;
}

.nav__links a {
  color: #FFFEF9;
  transition: color 0.3s ease;
}
.nav__links a:hover { color: var(--gold-light); }
.nav.is-scrolled .nav__links a { color: var(--ink-soft); }
.nav.is-scrolled .nav__links a:hover { color: var(--gold-deep); }
.nav__logo-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}
.nav__links {
  display: flex;
  gap: 26px;
  align-items: center;
}
@media (max-width: 1024px) {
  .nav__links { gap: 18px; }
  .nav__links a { font-size: 0.82rem; }
  .nav__cta { padding: 10px 18px; font-size: 0.78rem !important; }
}
.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.nav__cta {
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
}
.nav__cta:hover { color: #FFFFFF !important; }

/* --- Hero (Dark Cinema Mode) --- */
.hero {
  position: relative;
  padding: clamp(120px, 16vw, 200px) 0 clamp(80px, 12vw, 140px);
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: #0A0A0A; /* fallback before video loads */
}
/* Fallback gradient (shown when video missing) */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(166, 134, 46, 0.25) 0%, transparent 50%),
    linear-gradient(135deg, #0A0A0A 0%, #14110A 50%, #1A1408 100%);
  z-index: 0;
}
/* Looping background video */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  opacity: 0.95;
}
/* Cinema veil — preserves video visibility, ensures text readability */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(100deg,
      rgba(10, 10, 10, 0.78) 0%,
      rgba(10, 10, 10, 0.55) 45%,
      rgba(10, 10, 10, 0.30) 80%,
      rgba(10, 10, 10, 0.20) 100%),
    linear-gradient(180deg,
      rgba(10, 10, 10, 0.55) 0%,
      transparent 25%,
      transparent 75%,
      rgba(10, 10, 10, 0.65) 100%);
}
/* Subtle gold glow accent on right side */
.hero__veil::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 90% 50%, rgba(201, 168, 76, 0.18) 0%, transparent 55%);
  pointer-events: none;
}
/* Smooth transition into the next light section */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent 0%, var(--bg-base) 100%);
  z-index: 3;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 4;
}
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}
.hero__eyebrow {
  margin-bottom: 24px;
  color: var(--gold-light);
}
.hero__eyebrow::before {
  color: var(--gold-light);
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 4.25rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
  margin-bottom: 32px;
  color: #FFFEF9;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.5);
}
.hero__title em {
  font-style: normal;
  color: var(--gold-light);
  position: relative;
  display: inline-block;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5), 0 0 30px rgba(201, 168, 76, 0.4);
}
.hero__subtitle {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: rgba(255, 254, 249, 0.92);
  font-weight: 400;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
  line-height: 2;
  margin-bottom: 40px;
  max-width: 60ch;
}
.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.stat {
  text-align: center;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--gold-deep);
  line-height: 1;
  margin-bottom: 8px;
}
.stat__num small { font-size: 0.5em; font-weight: 500; }
.stat__label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-transform: uppercase;
  font-family: var(--font-mono);
}

/* --- Cards --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all 0.3s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.card__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  font-weight: 600;
  display: block;
  margin-bottom: 16px;
}
.card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 14px;
}
.card__desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.85;
}

/* --- Comparison Table --- */
.comparison {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-soft);
}
.comparison th, .comparison td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.95rem;
}
.comparison thead th {
  background: var(--bg-cream);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-transform: uppercase;
}
.comparison thead th:last-child {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #FFFFFF;
}
.comparison tbody td:last-child {
  color: var(--gold-deep);
  font-weight: 700;
}
.comparison tbody tr:last-child td { border-bottom: none; }
.comparison tbody tr:hover { background: rgba(241, 228, 176, 0.15); }

/* --- Workflow --- */
.workflow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}
.workflow__step {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  position: relative;
}
.workflow__step::after {
  content: '→';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 300;
}
.workflow__step:last-child::after { display: none; }
.workflow__num {
  font-family: var(--font-display);
  color: var(--gold-deep);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}
.workflow__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--ink);
}
.workflow__time {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

/* --- Pricing --- */
.pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.plan {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan--featured {
  border-color: var(--gold);
  border-width: 2px;
  box-shadow: var(--shadow-lg);
  transform: translateY(-12px);
  background: #FFFFFF;
}
.plan--featured .plan__name { color: var(--gold-deep); }
.plan__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #FFFFFF;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}
.plan__name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.plan__price {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--gold-deep);
  line-height: 1;
  margin-bottom: 6px;
}
.plan__price small { font-size: 0.5em; font-weight: 500; }
.plan__period {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 24px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.plan__features {
  flex: 1;
  margin-bottom: 28px;
}
.plan__features li {
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px dashed var(--border-soft);
}
.plan__features li::before {
  content: '✓';
  color: var(--gold-deep);
  font-weight: 700;
  flex-shrink: 0;
}

/* --- FAQ --- */
.faq {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq__item:hover { border-color: var(--gold); }
.faq__item summary {
  list-style: none;
  padding: 24px 28px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  font-family: var(--font-serif);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-deep);
  font-weight: 300;
  transition: transform 0.3s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer {
  padding: 0 28px 24px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.95;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, #FFFEF9 0%, #FAF6EC 60%, #F5E9C0 100%);
  text-align: center;
  border-top: 1px solid var(--border-soft);
}
.cta-section .h-section {
  margin-bottom: 16px;
  color: var(--ink);
}
.cta-section .lead {
  color: var(--ink);
  font-weight: 500;
}

/* --- Pain / Problem cards --- */
.pain {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.pain__item {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 28px 28px;
}
.pain__item h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--ink);
}
.pain__item p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.85;
}

/* --- Footer --- */
.footer {
  background: var(--bg-cream);
  padding: 60px 0 32px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer__logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.footer__logo img {
  height: 38px;
  width: auto;
  display: block;
}
.footer__copy { font-size: 0.78rem; }
.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a:hover { color: var(--gold-deep); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .workflow { grid-template-columns: repeat(2, 1fr); }
  .workflow__step::after { display: none; }
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .plan--featured { transform: none; }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__inner { height: 64px; }
  .hero {
    min-height: 72vh;
    padding: 96px 0 56px;
  }
  .hero__video {
    object-position: center center;
  }
  /* Stronger bottom veil on mobile — shorter hero needs tighter legibility */
  .hero__veil {
    background:
      linear-gradient(180deg,
        rgba(10, 10, 10, 0.70) 0%,
        rgba(10, 10, 10, 0.40) 30%,
        rgba(10, 10, 10, 0.45) 70%,
        rgba(10, 10, 10, 0.80) 100%);
  }
  .hero__title { font-size: 2rem; margin-bottom: 20px; }
  .hero__subtitle {
    line-height: 1.75;
    margin-bottom: 28px;
    font-size: 0.95rem;
  }
  /* <br> inside subtitle becomes awkward at narrow widths */
  .hero__subtitle br { display: none; }
  .hero__cta { gap: 12px; }
  .hero__cta .btn { flex: 1 1 auto; min-width: 0; text-align: center; justify-content: center; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .pricing { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
  .showcase-grid { grid-template-columns: 1fr; }
}

/* --- YouTube Embed Grid (制作実績) --- */
.yt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.yt-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}
.yt-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.yt-card__embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: #0A0A0A;
}
.yt-card__embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.yt-card__embed--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 56.25%;
  position: relative;
}
.yt-card__embed--placeholder span {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.yt-card__embed img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yt-card__info {
  padding: 18px 20px;
}
.yt-card__title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 6px;
}
.yt-card__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  text-transform: uppercase;
  font-weight: 600;
}
@media (max-width: 1024px) {
  .yt-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .yt-grid { grid-template-columns: 1fr; }
}

/* --- Showcase Gallery (AI Samples) --- */
.showcase-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  color: var(--ink-soft);
  border: 1px solid var(--border-soft);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-sans);
}
.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}
.filter-btn.is-active {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #FFFFFF;
  border-color: var(--gold-deep);
  box-shadow: var(--shadow-gold);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.video-card {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
}
.video-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
}
.video-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
  transition: transform 0.5s ease;
}
.video-card:hover .video-card__bg {
  transform: scale(1.04);
}
.video-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(26, 26, 26, 0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
}
.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-md);
}
.video-card:hover .video-card__play {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 12px 32px rgba(201, 168, 76, 0.45);
}
.video-card__play svg {
  width: 22px;
  height: 22px;
  fill: var(--gold-deep);
  margin-left: 3px;
}
.video-card__category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 254, 249, 0.92);
  color: var(--gold-deep);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.video-card__duration {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(26, 26, 26, 0.78);
  color: #FFFEF9;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-weight: 500;
}
.video-card__title {
  position: relative;
  color: #FFFEF9;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  z-index: 2;
}
.video-card__mock-label {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  text-align: center;
  transform: translateY(calc(-50% - 50px));
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: rgba(26, 26, 26, 0.45);
  text-transform: uppercase;
  font-weight: 600;
  pointer-events: none;
}
.video-card.is-hidden { display: none; }

@media (max-width: 1024px) {
  .showcase-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 720px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .video-card__play { width: 48px; height: 48px; }
  .video-card__play svg { width: 18px; height: 18px; }
}

.showcase-cta {
  text-align: center;
  margin-top: 56px;
}
.showcase-cta a {
  font-size: 0.95rem;
  color: var(--gold-deep);
  font-weight: 700;
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 4px;
  transition: all 0.25s ease;
}
.showcase-cta a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* --- Mock Image Boxes (for sections without real images yet) --- */
.mock-img {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #FFFEF9 0%, #F1E4B0 50%, #C9A84C 100%);
  border: 1px solid var(--border-soft);
}
.mock-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.5), transparent 50%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 2px, transparent 2px, transparent 10px);
}
.mock-img::after {
  content: attr(data-label);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(255, 254, 249, 0.85);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

/* Variants for differentiation */
.mock-img--game     { background: url('../image/service_anime.jpg')         center/cover no-repeat, linear-gradient(135deg, #FFFEF9 0%, #F1E4B0 50%, #C9A84C 100%); }
.mock-img--anime    { background: url('../image/strength_variations.jpg')   center/cover no-repeat, linear-gradient(135deg, #FAF6EC 0%, #E8D88A 50%, #A6862E 100%); }
.mock-img--sns      { background: url('../image/service_marketing.jpg')     center/cover no-repeat, linear-gradient(135deg, #FFF8E0 0%, #F1E4B0 50%, #D6C898 100%); }
.mock-img--manga    { background: url('../image/strength_handfinish.jpg')   center/cover no-repeat, linear-gradient(135deg, #FFF5D6 0%, #F8EDC0 50%, #C9A84C 100%); }
.mock-img--live2d   { background: linear-gradient(135deg, #FAF6EC 0%, #EBDD9A 50%, #A6862E 100%); }
.mock-img--corp     { background: url('../image/strength_direction.jpg')    center/cover no-repeat, linear-gradient(135deg, #FFFEF9 0%, #F1E4B0 50%, #D6C898 100%); }
.mock-img--edu      { background: url('../image/service_edutainment.jpg')   center/cover no-repeat, linear-gradient(135deg, #FAF6EC 0%, #E8D88A 50%, #C9A84C 100%); }
.mock-img--brochure { background: linear-gradient(135deg, #FFFEF9 0%, #F8EDC0 55%, #A6862E 100%); }

/* Suppress placeholder sheen / label on variants that now have real images */
.mock-img--game::before,    .mock-img--game::after,
.mock-img--anime::before,   .mock-img--anime::after,
.mock-img--sns::before,     .mock-img--sns::after,
.mock-img--manga::before,   .mock-img--manga::after,
.mock-img--corp::before,    .mock-img--corp::after,
.mock-img--edu::before,     .mock-img--edu::after { display: none; }

/* Smaller inline image inside request-intro column */
.request-intro__image {
  max-width: 440px;
  margin: 4px 0 28px;
}

/* --- Inline Contact Form (per-page CTA block) --- */
.contact-form {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 44px 44px 40px;
  box-shadow: var(--shadow-md);
  text-align: left;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.contact-form__row--single {
  grid-template-columns: 1fr;
}
.contact-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.contact-form label .required {
  color: #C72D2D;
  font-size: 0.7rem;
  margin-left: 6px;
  font-weight: 700;
}
.contact-form label .optional {
  color: var(--ink-faint);
  font-size: 0.7rem;
  margin-left: 6px;
  font-weight: 500;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-base);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}
.contact-form__submit {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.contact-form__note {
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-align: center;
}
.contact-form__privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 18px 0 4px;
}
.contact-form__privacy input {
  margin-top: 4px;
  flex-shrink: 0;
}
.contact-form__privacy a {
  color: var(--gold-deep);
  text-decoration: underline;
}
@media (max-width: 720px) {
  .contact-form {
    padding: 32px 24px 28px;
  }
  .contact-form__row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* --- Floating Download Banner (bottom-right) --- */
.float-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px 16px 18px;
  background: linear-gradient(135deg, #FFFEF9 0%, #FAF6EC 100%);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(166, 134, 46, 0.22), 0 4px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: var(--ink);
  max-width: 360px;
  transition: all 0.3s ease;
  animation: float-banner-in 0.6s ease 1.2s both;
}
@keyframes float-banner-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.float-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(166, 134, 46, 0.30), 0 6px 16px rgba(0, 0, 0, 0.10);
  border-color: var(--gold-deep);
}
.float-banner__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.4);
}
.float-banner__icon svg { width: 22px; height: 22px; fill: currentColor; }
.float-banner__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.float-banner__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  text-transform: uppercase;
  font-weight: 700;
}
.float-banner__title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}
.float-banner__sub {
  font-size: 0.74rem;
  color: var(--ink-muted);
}
.float-banner__close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.float-banner__close:hover { background: rgba(0, 0, 0, 0.12); }
.float-banner.is-hidden { display: none; }

@media (max-width: 720px) {
  .float-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}

/* --- Request Form Page --- */
.request-page {
  background: var(--bg-cream);
  min-height: 100vh;
  padding: 120px 0 80px;
}
.request-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
}
.request-intro__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 16px;
  display: block;
}
.request-intro h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 24px;
}
.request-intro h1 em {
  font-style: normal;
  color: var(--gold-deep);
}
.request-intro p {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 2;
  margin-bottom: 24px;
}
.request-bullets {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 24px;
}
.request-bullets li {
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.request-bullets li::before {
  content: '✓';
  color: var(--gold-deep);
  font-weight: 700;
  flex-shrink: 0;
}
.request-form {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
}
.request-form h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.request-form__sub {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 28px;
}
.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.field label .required {
  color: #C72D2D;
  font-size: 0.7rem;
  margin-left: 6px;
  font-weight: 700;
}
.field label .optional {
  color: var(--ink-faint);
  font-size: 0.7rem;
  margin-left: 6px;
  font-weight: 500;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea,
.field select {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-base);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
.field textarea {
  min-height: 110px;
  resize: vertical;
}
.field--radio {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.field--radio label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 14px;
  background: var(--bg-base);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.field--radio label:has(input:checked) {
  background: var(--gold);
  border-color: var(--gold-deep);
  color: #FFFFFF;
}
.field--radio input { position: absolute; opacity: 0; pointer-events: none; }
.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 24px 0;
}
.privacy-check input { margin-top: 4px; flex-shrink: 0; }
.privacy-check a {
  color: var(--gold-deep);
  text-decoration: underline;
}
.form-note {
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 16px;
}

@media (max-width: 860px) {
  .request-grid { grid-template-columns: 1fr; gap: 40px; }
  .request-page { padding: 100px 0 60px; }
}

/* --- Reveal on scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Video Modal ========== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.video-modal.is-open {
  display: flex;
  opacity: 1;
}
.video-modal__frame {
  position: relative;
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.2s ease, background 0.2s ease;
}
.video-modal__close:hover {
  transform: scale(1.08);
  background: #fff;
}
body.is-modal-open {
  overflow: hidden;
}
@media (max-width: 640px) {
  .video-modal {
    padding: 12px;
  }
  .video-modal__close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}
