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

@font-face {
  font-family: 'Material Icons Round';
  font-style: normal;
  font-weight: 400;
  src: url('../assets/material-icons-round.otf') format('opentype');
  font-display: block;
}

:root {
  --bg-white: #FFFFFF;
  --bg-light: #F4F4F6;
  --bg-dark: #23242E;
  --accent: #7d18dd;
  --accent-hover: #6512b7;
  --accent2: #9b5bff;
  --accent-muted: rgba(125,24,221,0.07);
  --accent-border: rgba(125,24,221,0.2);
  --text-primary: #23242E;
  --text-secondary: #5A5A6A;
  --text-muted: #9999AA;
  --border: #E5E5E8;
  --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-light);
  background-image: radial-gradient(circle, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--text-primary);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ─────────────────────────────────── */
.toc-nav {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 60px;
  width: calc(100% - 48px);
  max-width: 1240px;
  background: rgba(237,237,238,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(35,36,46,0.08);
}

.toc-nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.toc-nav-logo {
  height: 24px;
  width: auto;
  display: block;
}

.toc-nav-tagline {
  display: flex;
  flex-direction: column;
  font-size: 10px;
  line-height: 1.4;
  color: var(--text-secondary);
  padding-left: 14px;
  border-left: 1px solid rgba(35,36,46,0.15);
}

.toc-nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.toc-nav-back {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}
.toc-nav-back:hover { color: var(--accent); }

.toc-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg-white);
  border: 1.5px solid var(--accent);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.toc-nav-cta:hover {
  background: var(--accent);
  color: #fff;
}

.toc-nav-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: background 0.25s ease, color 0.25s ease;
}

.toc-nav-cta:hover .toc-nav-cta-icon {
  background: #fff;
  color: var(--accent);
}

/* ── HERO ────────────────────────────────── */
.toc-hero {
  padding: 160px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.toc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 30%, rgba(125,24,221,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 75% 70%, rgba(125,24,221,0.04) 0%, transparent 55%);
  pointer-events: none;
}

.toc-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

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

.toc-h1 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.toc-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.95;
  max-width: 560px;
  margin: 0 auto;
}

/* ── FORM SECTION ────────────────────────── */
.toc-form-section {
  padding: 0 24px 120px;
  position: relative;
  z-index: 1;
}

.toc-form-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 64px 72px;
  color: var(--text-primary);
  box-shadow: 0 24px 64px rgba(35,36,46,0.06);
}

/* ── 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: 12px 16px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  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(125,24,221,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: 12px;
  border-bottom: 1.5px solid var(--border);
}

.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: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  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: var(--accent-muted);
  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(125,24,221,0.04); }
.toc-skill-card--creative { --hover-color: rgba(0,168,132,0.04); }
.toc-skill-card:hover { background: var(--hover-color); }

/* ── 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 var(--border);
  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: var(--accent-muted);
}
.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: var(--accent-hover);
  box-shadow: 0 8px 24px rgba(125,24,221,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: 980px) {
  .toc-nav-tagline { display: none; }
  .toc-form-card { padding: 48px 40px; }
}

@media (max-width: 640px) {
  .toc-nav { width: calc(100% - 24px); padding: 0 16px; height: 56px; }
  .toc-nav-back { display: none; }
  .toc-hero { padding: 120px 20px 48px; }
  .toc-desc-br { display: none; }
  .toc-form-card { padding: 36px 24px; border-radius: 20px; }
  .toc-row { grid-template-columns: 1fr; }
  .toc-skills-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── FINAL CENTERING / ICON / RESPONSIVE PASS ── */
.material-icons-round {
  font-family: 'Material Icons Round';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

.toc-nav,
.toc-nav-actions,
.toc-nav-cta,
.toc-nav-cta-icon,
.toc-hero-inner,
.toc-form-card,
.skills-group-header,
.toc-skill-card,
.toc-radio-item,
.toc-submit {
  min-width: 0;
}

.toc-nav-cta,
.toc-nav-cta-icon,
.skills-group-header,
.toc-skill-card,
.toc-radio-item,
.toc-submit {
  align-items: center;
  justify-content: center;
}

.toc-nav-cta-icon {
  font-size: 18px;
}

.skills-group-header .material-icons-round {
  font-size: 17px;
}

.skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 18px;
  color: currentColor;
  opacity: 0.48;
}

.toc-skill-card--product:has(input:checked) .skill-icon,
.toc-skill-card--creative:has(input:checked) .skill-icon {
  opacity: 1;
}

.toc-form-card {
  width: min(760px, calc(100vw - 48px));
  margin-inline: auto;
}

.toc-input,
.toc-textarea,
.toc-submit {
  width: 100%;
}

.toc-radio-group {
  justify-content: center;
}

.toc-skill-card {
  min-height: 52px;
  text-align: left;
  overflow-wrap: anywhere;
}

@keyframes tocFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toc-hero-inner,
.toc-form-card {
  animation: tocFadeUp 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.toc-form-card {
  animation-delay: 0.08s;
}

@media (max-width: 640px) {
  .toc-nav-brand {
    min-width: 0;
  }

  .toc-nav-cta {
    min-height: 40px;
    padding: 5px 5px 5px 14px;
    font-size: 12px;
  }

  .toc-nav-cta-icon {
    width: 30px;
    height: 30px;
  }

  .toc-form-card {
    width: calc(100vw - 32px);
    padding: 32px 18px;
  }

  .toc-skills-grid {
    grid-template-columns: 1fr;
  }

  .toc-skill-card {
    justify-content: flex-start;
  }

  .toc-radio-group {
    justify-content: flex-start;
  }
}
