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

:root {
  --bg-dark: #0f0f1e;
  --accent: #7b5ef8;
  --accent2: #a78bfa;
  --text-primary: #0a0a18;
  --text-secondary: #5a5a7a;
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-en: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  background: var(--bg-dark);
  color: #fff;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ─────────────────────────────────── */
.toc-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(15,15,30,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50px;
  z-index: 100;
}

.toc-nav-logo {
  height: 28px;
  width: auto;
}

.toc-nav-back {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.toc-nav-back:hover { color: #fff; }

/* ── HERO ────────────────────────────────── */
.toc-hero {
  padding: 160px 24px 80px;
  text-align: center;
}

.toc-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.toc-label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent2);
  margin-bottom: 16px;
}

.toc-h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.toc-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.85;
  max-width: 560px;
  margin: 0 auto;
}

/* ── FORM SECTION ────────────────────────── */
.toc-form-section {
  padding: 0 24px 120px;
}

.toc-form-card {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  padding: 56px 64px;
  color: var(--text-primary);
}

/* ── FORM FIELDS ─────────────────────────── */
.toc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.toc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.toc-label-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.toc-req {
  color: #e53e3e;
  margin-left: 2px;
}

.toc-help {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 2px;
}

.toc-input {
  padding: 11px 14px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-jp);
  color: var(--text-primary);
  background: #f0f0f5;
  outline: none;
  width: 100%;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.toc-input::placeholder { color: #aaa; }
.toc-input:focus {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(123,94,248,0.12);
}

.toc-textarea {
  resize: vertical;
  min-height: 100px;
}

/* ── SKILLS GROUPS ───────────────────────── */
.skills-group {
  margin-top: 16px;
}

.skills-group-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1.5px solid #e8e8f0;
}

.skills-group-header--product {
  color: var(--accent);
}

.skills-group-header--creative {
  color: #00a884;
}

.toc-skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.toc-skill-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border: 1.5px solid #e5e5ee;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  line-height: 1.4;
}

.toc-skill-card input[type="checkbox"] {
  display: none;
}

.skill-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.toc-skill-card--product:has(input:checked) {
  border-color: var(--accent);
  background: rgba(123,94,248,0.06);
  color: var(--accent);
}
.toc-skill-card--product:has(input:checked) .skill-icon {
  opacity: 1;
  stroke: var(--accent);
}

.toc-skill-card--creative:has(input:checked) {
  border-color: #00a884;
  background: rgba(0,168,132,0.06);
  color: #00a884;
}
.toc-skill-card--creative:has(input:checked) .skill-icon {
  opacity: 1;
  stroke: #00a884;
}

.toc-skill-card--product { --hover-color: rgba(123,94,248,0.04); }
.toc-skill-card--creative { --hover-color: rgba(0,168,132,0.04); }
.toc-skill-card:hover { background: var(--hover-color); }

@media (max-width: 640px) {
  .toc-skills-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── RADIO ───────────────────────────────── */
.toc-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.toc-radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid #e5e5ee;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.toc-radio-item:has(input:checked) {
  border-color: var(--accent);
  background: rgba(123,94,248,0.06);
}
.toc-radio-item input { accent-color: var(--accent); }

/* ── PRIVACY ─────────────────────────────── */
.toc-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  cursor: pointer;
  line-height: 1.6;
}
.toc-privacy input { margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); }
.toc-privacy a { color: var(--accent); text-decoration: underline; }

/* ── SUBMIT ──────────────────────────────── */
.toc-submit {
  display: block;
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-jp);
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 16px;
}
.toc-submit:hover {
  background: #6345e8;
  box-shadow: 0 8px 24px rgba(123,94,248,0.35);
  transform: translateY(-1px);
}
.toc-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.toc-corp-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
}
.toc-corp-note a { color: var(--accent); text-decoration: underline; }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 640px) {
  .toc-nav { width: calc(100% - 24px); padding: 10px 16px; }
  .toc-hero { padding: 120px 20px 56px; }
  .toc-form-card { padding: 36px 24px; border-radius: 16px; }
  .toc-row { grid-template-columns: 1fr; }
  .toc-check-grid { grid-template-columns: repeat(2, 1fr); }
}
