/* ===== CSS Variables ===== */
:root {
  --bg-primary: #0c0c0f;
  --bg-secondary: #14141a;
  --bg-card: #18181c;

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-tertiary: rgba(255, 255, 255, 0.55);
  --text-muted: rgba(255, 255, 255, 0.35);

  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-light: rgba(255, 255, 255, 0.12);
  --border-medium: rgba(255, 255, 255, 0.12);

  --accent: #85B7EB;
  --accent-dim: rgba(133, 183, 235, 0.5);
  --accent-bg: rgba(133, 183, 235, 0.08);
  --accent-border: rgba(133, 183, 235, 0.12);

  --badge-closed-bg: #501313;
  --badge-closed-text: #F09595;
  --badge-few-bg: #412402;
  --badge-few-text: #FAC775;
  --badge-open-bg: #173404;
  --badge-open-text: #97C459;

  --font-en: 'Oswald', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-body: var(--font-jp);

  --section-padding: 36px 28px;
  --page-max-width: 960px;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 14px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== Layout ===== */
.container {
  max-width: var(--page-max-width);
  margin: 0 auto;
  width: 100%;
}

main {
  flex: 1;
}

/* ===== Header ===== */
.site-header {
  border-bottom: 0.5px solid var(--border-light);
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 100;
}

.header-inner {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 28px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-logo {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}

.site-nav a {
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  font-family: var(--font-en);
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--text-secondary);
}

.site-nav a.active {
  color: var(--text-primary);
  border-bottom: 1px solid #fff;
  padding-bottom: 1px;
}

.header-sns {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.header-sns a {
  display: flex;
  align-items: center;
  color: var(--text-tertiary);
  transition: color 0.2s;
}

.header-sns a:hover {
  color: var(--text-secondary);
}

.header-sns svg {
  width: 14px;
  height: 14px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--text-tertiary);
  transition: all 0.2s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 16px 28px;
  border-top: 0.5px solid var(--border-subtle);
  gap: 16px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  font-family: var(--font-en);
}

.mobile-nav a.active {
  color: var(--text-primary);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 0.5px solid var(--border-subtle);
  padding: 20px 28px;
}

.footer-inner {
  max-width: var(--page-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  gap: 16px;
}

.footer-nav a {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-en);
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--text-tertiary);
}

/* ===== Section Title ===== */
.section-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--text-secondary);
  margin: 0 0 20px;
  font-family: var(--font-en);
}

/* ===== Section ===== */
.section {
  padding: var(--section-padding);
}

.section + .section {
  border-top: 0.5px solid var(--border-subtle);
}

/* ===== Badge ===== */
.badge {
  font-size: 10px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  display: inline-block;
}

.badge-closed {
  background: var(--badge-closed-bg);
  color: var(--badge-closed-text);
}

.badge-few {
  background: var(--badge-few-bg);
  color: var(--badge-few-text);
}

.badge-open {
  background: var(--badge-open-bg);
  color: var(--badge-open-text);
}

/* ===== Work Card ===== */
.work-card {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  border: 0.5px solid var(--border-subtle);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  transition: border-color 0.2s;
}

.work-card:hover {
  border-color: var(--border-medium);
}

.work-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
}

.work-card-dummy {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a28 0%, #0f0f18 100%);
}

.work-card-info {
  position: relative;
  z-index: 1;
  padding: 8px 10px;
}

.work-card-category {
  font-size: 9px;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  font-family: var(--font-en);
  text-transform: uppercase;
}

.work-card-title {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Works Grid ===== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* ===== Schedule ===== */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}

.schedule-label {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== Link Arrow ===== */
.link-arrow {
  font-size: 12px;
  color: var(--text-tertiary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.link-arrow:hover {
  color: var(--text-secondary);
}

.link-arrow-accent {
  color: var(--accent);
}

.link-arrow-accent:hover {
  color: var(--accent);
  opacity: 0.8;
}

/* ===== HR Divider ===== */
hr.section-divider {
  border: none;
  border-top: 0.5px solid var(--border-subtle);
  margin: 0;
}

/* ============================================
   PAGE: TOP (index.html)
   ============================================ */

/* Hero */
.hero {
  text-align: center;
  padding: 56px 28px 22px;
}

.hero h1,
.hero-title {
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 6px;
  margin-bottom: 12px;
}

/* ===== Stagger Slide Up ===== */
.hero-stagger-wrap {
  text-align: center;
}

.hero-title {
  display: inline-flex;
  gap: 2px;
  margin-bottom: 0;
}

.hero-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: staggerUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-letter:nth-child(1) { animation-delay: 0.3s; }
.hero-letter:nth-child(2) { animation-delay: 0.5s; }
.hero-letter:nth-child(3) { animation-delay: 0.7s; }
.hero-letter:nth-child(4) { animation-delay: 0.9s; }
.hero-letter:nth-child(5) { animation-delay: 1.1s; }

@keyframes staggerUp {
  0%   { opacity: 0; transform: translateY(40px); }
  40%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
  opacity: 0;
  margin-top: 8px;
  animation: subtitleFadeUp 0.6s ease forwards;
  animation-delay: 2.0s;
}

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

.hero-sub {
  font-size: 13px;
  color: var(--text-tertiary);
  letter-spacing: 1px;
  font-family: var(--font-en);
  margin-bottom: 32px;
}

.showreel-placeholder {
  max-width: 520px;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 0.5px solid var(--border-subtle);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-tertiary);
}

.showreel-placeholder svg {
  width: 36px;
  height: 36px;
  opacity: 0.4;
}

.showreel-placeholder span {
  font-size: 12px;
  letter-spacing: 2px;
  font-family: var(--font-en);
  opacity: 0.4;
}

/* Pickup Works */
.pickup-works {
  padding: var(--section-padding);
}

.pickup-works-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.pickup-works-header .section-title {
  margin: 0;
}

/* About */
.about-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.about-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1e1e28;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.about-icon svg {
  width: 28px;
  height: 28px;
  color: var(--text-tertiary);
}

.about-text {
  flex: 1;
}

.about-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.about-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* ===== CTA Section ===== */
.cta-section {
  text-align: center;
  padding: 48px 28px;
}

.cta-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.cta-mail {
  font-size: 16px;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.cta-mail:hover {
  text-decoration: underline;
}

/* ============================================
   PAGE: WORKS (works.html)
   ============================================ */

.works-header {
  padding: 32px 28px 20px;
}

.works-header h1 {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter {
  font-size: 11px;
  padding: 5px 14px;
  border-radius: 14px;
  border: 0.5px solid var(--border-medium);
  color: var(--text-tertiary);
  background: transparent;
  transition: all 0.2s;
  font-family: var(--font-en);
  letter-spacing: 0.3px;
}

.filter:hover {
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.25);
}

.works-grid-section {
  padding: 0 28px 36px;
}

.works-footer {
  padding: 20px 28px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-top: 0.5px solid var(--border-subtle);
}

.works-note {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* ============================================
   PAGE: CONTACT (contact.html)
   ============================================ */

.contact-section {
  padding: var(--section-padding);
}

/* Genre Tags */
.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.genre-tag {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 12px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 0.5px solid var(--border-light);
}

.available-lead {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

/* Mail Box */
.mail-box {
  padding: 16px 18px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 0.5px solid var(--border-light);
}

.mail-address {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.mail-note {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Process */
.process-list {
  display: flex;
  flex-direction: column;
}

.process-step {
  display: flex;
  gap: 16px;
}

.step-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding-top: 4px;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-dim);
  flex-shrink: 0;
}

.step-bar {
  width: 1px;
  flex: 1;
  background: var(--border-subtle);
  margin: 4px 0;
  min-height: 20px;
}

.process-step:last-child .step-bar {
  display: none;
}

.step-content {
  padding-bottom: 24px;
  flex: 1;
}

.process-step:last-child .step-content {
  padding-bottom: 0;
}

.step-num {
  font-size: 10px;
  color: var(--accent-dim);
  letter-spacing: 1px;
  font-family: var(--font-en);
  margin-bottom: 4px;
}

.step-heading {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.7;
}

/* Note Cards */
.note-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.note-card {
  padding: 14px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 0.5px solid var(--border-subtle);
}

.note-title {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.note-title svg {
  width: 14px;
  height: 14px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.note-body {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.75;
  padding-left: 22px;
}

/* ============================================
   PAGE: PROFILE (profile.html)
   ============================================ */

.profile-hero {
  padding: var(--section-padding);
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.profile-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #1e1e28;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 0.5px solid var(--border-light);
  overflow: hidden;
}

.profile-icon svg {
  width: 40px;
  height: 40px;
  color: var(--text-tertiary);
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.profile-title {
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  font-family: var(--font-en);
}

.profile-bio {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
}

/* Tags */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-soft {
  font-size: 11px;
  padding: 5px 14px;
  border-radius: 14px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 0.5px solid var(--border-light);
}

.tag-skill {
  font-size: 11px;
  padding: 5px 14px;
  border-radius: 14px;
  background: var(--accent-bg);
  color: rgba(133, 183, 235, 0.7);
  border: 0.5px solid var(--accent-border);
}

/* Clients */
.clients-box {
  padding: 16px 18px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 0.5px solid var(--border-subtle);
  margin-bottom: 10px;
}

.clients-list {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* SNS Links */
.sns-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sns-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 0.5px solid var(--border-light);
  transition: border-color 0.2s;
}

.sns-card:hover {
  border-color: var(--border-medium);
}

.sns-card-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sns-card-icon svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
}

.sns-card-info {
  flex: 1;
}

.sns-card-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.sns-card-handle {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-en);
}

.sns-card-arrow {
  color: var(--text-muted);
}

.sns-card-arrow svg {
  width: 12px;
  height: 12px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 767px) {
  .header-inner {
    padding: 0 16px;
  }

  .site-nav {
    display: none;
  }

  .header-sns {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 40px 16px 32px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .section {
    padding: 24px 16px;
  }

  .pickup-works,
  .works-header,
  .works-grid-section,
  .works-footer,
  .contact-section,
  .profile-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-title {
    font-size: 11px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .section {
    padding: 32px 24px;
  }

  .works-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
