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

:root {
  --accent: #ff3d68;
  --accent-dark: #d81e4c;
  --ink: #15141c;
  --ink-soft: #4b4a56;
  --paper: #ffffff;
  --paper-soft: #f5f4f8;
  --line: #e7e5ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(21, 20, 28, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
h1, h2, h3 { font-weight: 900; margin: 0 0 12px; line-height: 1.35; }
.section-title { font-size: clamp(22px, 3.4vw, 32px); margin-top: 6px; }
.section-lead { color: var(--ink-soft); max-width: 640px; margin: 0 0 36px; }
.section { padding: 72px 0; }
.section-soft { background: var(--paper-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: "Oswald", sans-serif; font-weight: 700; font-size: 20px; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #ff8a3d);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 16px;
}
.brand small { display: block; font-family: "Noto Sans JP", sans-serif; font-weight: 500; font-size: 11px; color: var(--ink-soft); letter-spacing: 0.04em; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 14px;
  cursor: pointer; border: none; transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(255,61,104,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(255,61,104,0.4); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 86vh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,16,0.35) 0%, rgba(10,10,16,0.78) 75%, rgba(10,10,16,0.92) 100%);
}
.hero-inner { position: relative; padding-bottom: 64px; }
.hero-tag {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.35);
  font-size: 13px; font-weight: 500; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(32px, 5.4vw, 56px); max-width: 780px; }
.hero p { font-size: 16px; max-width: 560px; color: rgba(255,255,255,0.85); margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Studio picker cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.studio-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/5; color: #fff; box-shadow: var(--shadow);
}
.studio-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.studio-card:hover img { transform: scale(1.06); }
.studio-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,10,16,0.88) 100%); }
.studio-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; z-index: 2; }
.studio-card-body .area { font-size: 12px; letter-spacing: 0.08em; color: rgba(255,255,255,0.75); }
.studio-card-body h3 { margin: 4px 0 10px; font-size: 22px; }
.studio-card-body .link { font-size: 13px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Feature list ---------- */
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.feature-card .num {
  font-family: "Oswald", sans-serif; font-size: 13px; font-weight: 700; color: var(--accent);
  letter-spacing: 0.1em; margin-bottom: 10px; display: block;
}
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* ---------- Genre chips / cards ---------- */
.genre-scroll { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.genre-card {
  position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 3/4; color: #fff;
}
.genre-card img { width: 100%; height: 100%; object-fit: cover; }
.genre-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10,10,16,0.85) 100%); }
.genre-card span { position: absolute; left: 12px; right: 12px; bottom: 12px; font-weight: 700; font-size: 14px; z-index: 2; }

/* ---------- Steps ---------- */
.steps { display: flex; justify-content: center; gap: 6px; margin-bottom: 40px; flex-wrap: wrap; }
.step-pill {
  display: flex; align-items: center; gap: 8px; padding: 9px 16px 9px 10px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink-soft); background: #fff;
}
.step-pill .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--paper-soft); color: var(--ink-soft); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.step-pill.active { border-color: var(--accent); color: var(--accent); }
.step-pill.active .dot { background: var(--accent); color: #fff; }
.step-pill.done { color: var(--ink); }
.step-pill.done .dot { background: var(--ink); color: #fff; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }

.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.choice-card {
  border: 2px solid var(--line); border-radius: 12px; padding: 18px; cursor: pointer;
  transition: border-color .15s ease, transform .15s ease; background: #fff;
}
.choice-card:hover { transform: translateY(-2px); }
.choice-card.selected { border-color: var(--accent); background: #fff6f8; }
.choice-card img { border-radius: 8px; height: 110px; width: 100%; object-fit: cover; margin-bottom: 10px; }
.choice-card h4 { margin: 0 0 4px; font-size: 15px; }
.choice-card p { margin: 0; font-size: 12px; color: var(--ink-soft); }

.lesson-filter { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 13px; cursor: pointer; font-weight: 500;
}
.filter-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.lesson-row {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 18px; align-items: center;
  padding: 18px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.lesson-row:hover { border-color: var(--accent); background: #fffafb; }
.lesson-row.selected { border-color: var(--accent); background: #fff6f8; }
.lesson-date { text-align: center; }
.lesson-date .d { font-size: 22px; font-weight: 900; font-family: "Oswald", sans-serif; }
.lesson-date .w { font-size: 11px; color: var(--ink-soft); }
.lesson-info h4 { margin: 0 0 4px; font-size: 15px; }
.lesson-info .meta { font-size: 12px; color: var(--ink-soft); display: flex; gap: 10px; flex-wrap: wrap; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--paper-soft); font-size: 11px; font-weight: 700; color: var(--ink-soft); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid.full { grid-template-columns: 1fr; }
label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  font-family: inherit; font-size: 14px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }

.summary-box { background: var(--paper-soft); border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.summary-box .row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.summary-box .row:last-child { border-bottom: none; }
.summary-box .row .k { color: var(--ink-soft); }
.summary-box .row .v { font-weight: 700; }

.confirm-wrap { text-align: center; padding: 60px 20px; }
.confirm-icon { width: 72px; height: 72px; border-radius: 50%; background: #e9fbef; color: #27a362; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; font-size: 32px; }
.confirm-note { max-width: 460px; margin: 20px auto 0; background: var(--paper-soft); border-radius: 12px; padding: 18px; font-size: 13px; color: var(--ink-soft); text-align: left; }

/* ---------- Weekly table ---------- */
.week-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.week-table th, .week-table td { border: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.week-table th { background: var(--paper-soft); font-weight: 700; text-align: center; }
.week-cell .lesson-chip {
  display: block; background: #fff6f8; border-left: 3px solid var(--accent); border-radius: 6px;
  padding: 6px 8px; margin-bottom: 6px; font-size: 11.5px; line-height: 1.5;
}
.week-cell .lesson-chip b { display: block; font-size: 12px; }

/* ---------- Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: flex-start; }
.admin-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: sticky; top: 96px; }
.admin-panel h3 { font-size: 16px; }
.week-toggle-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 4px; }
.week-toggle {
  border: 1px solid var(--line); border-radius: 8px; text-align: center; padding: 8px 0; font-size: 12px;
  cursor: pointer; background: #fff; font-weight: 700;
}
.week-toggle.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.repeat-type-row { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.repeat-type { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 12px; font-weight: 700; cursor: pointer; background: #fff; }
.repeat-type.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.nth-week-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 4px; }
.nth-week { border: 1px solid var(--line); border-radius: 8px; text-align: center; padding: 8px 0; font-size: 12px; cursor: pointer; background: #fff; }
.nth-week.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.hint { font-size: 12px; color: var(--ink-soft); margin: 6px 0 16px; }
.field { margin-bottom: 16px; }

.preview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.preview-head h3 { margin: 0; }
.calendar-preview { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-height: 420px; }
.gen-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.gen-chip { background: var(--paper-soft); border-radius: 10px; padding: 10px 12px; font-size: 13px; text-align: center; font-weight: 700; }
.empty-hint { color: var(--ink-soft); font-size: 14px; text-align: center; padding: 60px 20px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.admin-tabs { display: flex; gap: 10px; }
.admin-tab { padding: 10px 18px; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; background: #fff; border: 1px solid var(--line); }
.admin-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.admin-list-row {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; font-size: 13px;
}
.admin-list-row .left { display: flex; align-items: center; gap: 12px; }
.admin-list-row .badge { background: var(--paper-soft); padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }

/* ---------- Instructors ---------- */
.instructor-card { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.instructor-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.instructor-card h4 { margin: 0 0 4px; font-size: 15px; }
.instructor-card p { margin: 0; font-size: 12px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.78); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.55); max-width: 300px; margin-top: 12px; }
.site-footer h5 { color: #fff; font-size: 13px; letter-spacing: 0.06em; margin-bottom: 14px; }
.site-footer li { font-size: 13px; margin-bottom: 10px; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; font-size: 12px; color: rgba(255,255,255,0.4); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.demo-badge { background: var(--accent); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }

/* ---------- Studio detail page ---------- */
.studio-hero { position: relative; height: 56vh; min-height: 380px; color: #fff; display: flex; align-items: flex-end; }
.studio-hero .hero-bg::after { background: linear-gradient(180deg, rgba(10,10,16,0.25) 0%, rgba(10,10,16,0.82) 100%); }
.studio-hero-inner { position: relative; padding-bottom: 42px; }
.studio-meta-row { display: flex; gap: 26px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,0.85); margin-top: 14px; }
.studio-meta-row span { display: flex; align-items: center; gap: 6px; }

.breadcrumb { font-size: 12px; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--accent); }

@media (max-width: 920px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-panel { position: static; }
  .grid-3, .choice-grid, .footer-grid, .form-grid, .genre-scroll, .gen-list { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .grid-3, .choice-grid, .footer-grid, .form-grid, .genre-scroll, .gen-list, .grid-2 { grid-template-columns: 1fr; }
  .lesson-row { grid-template-columns: 60px 1fr; }
  .lesson-row .btn { grid-column: 1 / -1; }
  .week-toggle-row, .nth-week-row { grid-template-columns: repeat(4, 1fr); }
}
