/* ============================================================
   日本深度 JAPAN IN DEPTH — shared design system
   Single dark, editorial-broadcast theme derived from the logo
   (deep navy + steel blue + a faint Fuji-red glow).
   ============================================================ */

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

:root {
  --bg:        #ffffff;
  --bg-2:      #f4f7fb;
  --panel:     rgba(10,30,60,0.035);
  --panel-2:   rgba(10,30,60,0.06);
  --ink:       #0b1f38;
  --muted:     rgba(11,31,56,0.66);
  --dim:       rgba(11,31,56,0.46);
  --line:      rgba(11,31,56,0.10);
  --line-2:    rgba(11,31,56,0.16);
  --accent:    #2f6fb0;   /* steel blue from the logo rim (darkened for white bg) */
  --accent-2:  #1d4e7e;
  --fuji:      #c0392b;    /* faint red glow near the peak */
  --font: 'Inter', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', 'Segoe UI', sans-serif;
  --max: 1240px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ambient backdrop */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(91,155,213,0.16), transparent 60%),
    radial-gradient(700px 500px at 12% 8%, rgba(192,57,43,0.08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #ffffff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-1px); }
.btn-yt { background: #ff0000; color: #fff; border-color: #ff0000; }
.btn-yt:hover { background: #e60000; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(11,31,56,0.05); }

/* language switch pill */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lang-switch::before { content: '🌐'; font-size: 13px; }
.lang-switch:hover { color: var(--ink); border-color: var(--ink); background: rgba(11,31,56,0.05); }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { width: 42px; height: 42px; border-radius: 50%; }
.nav-logo .nl-main { font-size: 19px; font-weight: 700; letter-spacing: 0.06em; line-height: 1; }
.nav-logo .nl-sub  { font-size: 9.5px; font-weight: 500; letter-spacing: 0.34em; color: var(--accent-2); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: block;
  padding: 8px 15px;
  font-size: 14.5px;
  color: var(--muted);
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 9px 18px; font-size: 13.5px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; transition: 0.25s; }

/* ── PAGE HEADER (sub-pages) ── */
.page-head {
  padding: 152px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-head .eyebrow { color: var(--accent-2); font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; margin-bottom: 18px; }
.page-head h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 600; line-height: 1.08; letter-spacing: 0.01em; }
.page-head p { margin-top: 22px; max-width: 720px; color: var(--muted); font-size: 18px; }

/* ── HERO (home) ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 68px;
}
/* Fuji-like silhouette echoing the logo */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 58%;
  background: linear-gradient(180deg, rgba(91,155,213,0) 0%, rgba(91,155,213,0.12) 100%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.hero::before {
  content: '';
  position: absolute;
  bottom: 36%; left: 50%;
  width: 380px; height: 220px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(192,57,43,0.28), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; text-align: center; padding: 60px 24px; margin: 0 auto; max-width: 960px; }
.hero .kicker {
  display: inline-block;
  font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid var(--line-2);
  border-radius: 50px;
  padding: 8px 20px;
  margin-bottom: 32px;
}
.hero h1 { font-size: clamp(46px, 8.5vw, 104px); font-weight: 700; line-height: 1.04; letter-spacing: 0.02em; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { margin: 30px auto 0; max-width: 640px; font-size: clamp(16px, 2vw, 20px); color: var(--muted); }
.hero-actions { margin-top: 44px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats { margin-top: 72px; display: flex; gap: 56px; justify-content: center; flex-wrap: wrap; }
.hero-stats .num { font-size: 38px; font-weight: 700; line-height: 1; }
.hero-stats .lbl { font-size: 13px; color: var(--dim); letter-spacing: 0.06em; margin-top: 8px; }

/* ── GENERIC SECTION ── */
.section { padding: 100px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .eyebrow { color: var(--accent-2); font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(32px, 4.5vw, 52px); font-weight: 600; line-height: 1.14; }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 18px; }

/* ── FEATURE / BUSINESS CARDS ── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 34px 30px;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.card:hover { border-color: var(--line-2); background: var(--panel-2); transform: translateY(-3px); }
.card .ic {
  width: 48px; height: 48px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(91,155,213,0.14);
  color: var(--accent-2);
  margin-bottom: 22px;
  font-size: 22px;
}
.card h3 { font-size: 21px; font-weight: 600; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* ── PROGRAMS ── */
.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prog {
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.prog:hover { border-color: var(--accent); transform: translateY(-4px); }
.prog-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 120% at 70% 0%, rgba(91,155,213,0.30), transparent 55%),
    linear-gradient(160deg, #102643, #08152a);
  display: grid; place-items: center;
  overflow: hidden;
}
.prog-thumb .ep { position: absolute; top: 14px; left: 14px; font-size: 12px; letter-spacing: 0.18em; color: var(--accent-2); }
.prog-thumb .fuji {
  position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
  width: 75%; height: 62%;
  background: linear-gradient(180deg, #16335a, #0c1f3b);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.prog-thumb .peak {
  position: absolute; bottom: 38%; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 16px solid transparent; border-right: 16px solid transparent;
  border-bottom: 22px solid #eaf2fb;
  z-index: 2;
}
.prog-thumb .play {
  position: relative; z-index: 3;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,0,0,0.92);
  display: grid; place-items: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  transition: transform 0.2s;
}
.prog:hover .play { transform: scale(1.08); }
.prog-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prog-tag { font-size: 12px; letter-spacing: 0.12em; color: var(--accent-2); text-transform: uppercase; }
.prog-body h3 { font-size: 19px; font-weight: 600; line-height: 1.35; }
.prog-body p { color: var(--muted); font-size: 14.5px; flex: 1; }
.prog-link { color: var(--accent-2); font-size: 14px; display: inline-flex; align-items: center; gap: 7px; }
.prog:hover .prog-link { color: var(--accent); }

/* ── CAST ── */
.cast-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cast {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.cast:hover { border-color: var(--line-2); transform: translateY(-4px); }
.cast-photo { aspect-ratio: 4 / 5; background: #f4f6f9; overflow: hidden; }
.cast-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cast-info { padding: 24px 26px 28px; }
.cast-role { display: inline-block; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 12px; }
.cast-info h3 { font-size: 26px; font-weight: 600; }
.cast-info .roma { color: var(--dim); font-size: 13px; letter-spacing: 0.14em; margin: 4px 0 16px; }
.cast-info p { color: var(--muted); font-size: 15px; }
.cast-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cast-tags span { font-size: 12px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 50px; padding: 5px 13px; }

/* ── SPLIT / ABOUT ── */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 600; line-height: 1.16; margin-bottom: 22px; }
.split p { color: var(--muted); font-size: 17px; margin-bottom: 16px; }
.split-visual {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(130% 100% at 50% 0%, rgba(91,155,213,0.18), transparent 55%),
    radial-gradient(60% 40% at 50% 58%, rgba(192,57,43,0.12), transparent 70%),
    linear-gradient(180deg, #eef4fb, #ffffff);
  position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.split-visual img { width: 58%; }

/* ── FORMS ── */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.form-aside h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 600; line-height: 1.15; margin-bottom: 20px; }
.form-aside p { color: var(--muted); font-size: 16.5px; margin-bottom: 22px; }
.form-aside .info-list { list-style: none; margin-top: 28px; }
.form-aside .info-list li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.form-aside .info-list li b { color: var(--ink); font-weight: 600; min-width: 96px; }

form.jd-form { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 36px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; letter-spacing: 0.02em; }
.field label .req { color: var(--fuji); margin-left: 4px; }
.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(11,31,56,0.04);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 13px 15px;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); background: rgba(11,31,56,0.06);
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
form.jd-form .btn { width: 100%; justify-content: center; margin-top: 8px; }
.form-note {
  display: none; margin-top: 16px; padding: 14px 16px; border-radius: 8px;
  background: rgba(91,155,213,0.12); border: 1px solid rgba(91,155,213,0.3);
  color: var(--accent-2); font-size: 14px;
}
.form-note.show { display: block; }
.form-fallback { margin-top: 18px; font-size: 13px; color: var(--dim); }
.form-fallback a { color: var(--accent-2); }

/* ── CTA BANNER ── */
.cta-banner {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 72px 32px;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(91,155,213,0.16), transparent 60%),
    var(--panel);
}
.cta-banner h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 600; margin-bottom: 18px; }
.cta-banner p { color: var(--muted); font-size: 17px; max-width: 600px; margin: 0 auto 32px; }
.cta-banner .hero-actions { margin-top: 0; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  margin-top: 40px;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.foot-brand img { width: 52px; height: 52px; border-radius: 50%; }
.foot-brand .nl-main { font-size: 20px; font-weight: 700; letter-spacing: 0.06em; }
.foot-brand .nl-sub { font-size: 10px; letter-spacing: 0.3em; color: var(--accent-2); }
.foot-about { color: var(--muted); font-size: 14.5px; max-width: 320px; }
.foot-col h4 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 11px; }
.foot-col a { color: var(--muted); font-size: 14.5px; transition: color 0.2s; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.foot-bottom span { color: var(--dim); font-size: 13px; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 8px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  /* Keep the primary subscribe CTA visible on mobile (conversion-critical) */
  .nav-cta .btn-yt { display: inline-flex; padding: 7px 13px; font-size: 12.5px; }
  .nav-cta .lang-switch { padding: 7px 12px; font-size: 12px; }
  .cards, .prog-grid, .cast-grid { grid-template-columns: 1fr 1fr; }
  .split, .form-wrap, .foot-grid { grid-template-columns: 1fr; gap: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .cards, .prog-grid, .cast-grid, .field-row, .foot-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 32px; }
  form.jd-form { padding: 26px 22px; }
  .page-head { padding: 130px 0 44px; }
}
