/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(108,92,231,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 70%, rgba(232,184,75,0.08) 0%, transparent 50%),
    var(--color-primary);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-height);
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero__eyebrow::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--color-accent);
  display: block;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero__title-ja {
  font-family: var(--font-ja);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  display: block;
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--color-text-dim);
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===== Section Hero (章扉) ===== */
.section-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-lg);
  overflow: hidden;
  background: var(--color-secondary);
}

.section-hero__bg {
  position: absolute;
  inset: 0;
}

.section-hero__number {
  position: absolute;
  top: 50%;
  right: -2rem;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 20vw;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.section-hero__content {
  position: relative;
  z-index: 1;
}

/* ===== Cards ===== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  transition: all var(--transition);
}

.card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card__media {
  aspect-ratio: 16/9;
  background: var(--color-surface-2);
  overflow: hidden;
  position: relative;
}

.card__media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
}

.card__body {
  padding: 1.5rem;
}

.card__year {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.card__title {
  font-family: var(--font-ja);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.card__meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ===== Works List ===== */
.works-table {
  width: 100%;
  border-collapse: collapse;
}

.works-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  border-bottom: 1px solid var(--color-border);
}

.works-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
  vertical-align: middle;
}

.works-table tr:hover td {
  background: rgba(255,255,255,0.02);
}

.works-table tr:last-child td {
  border-bottom: none;
}

/* ===== Section Cards (Departments) ===== */
.dept-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  display: block;
}

.dept-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--dept-color, var(--color-accent));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.dept-card:hover::before {
  transform: scaleX(1);
}

.dept-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.dept-card__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  margin-bottom: 1rem;
}

.dept-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: rgba(255,255,255,0.05);
  color: var(--dept-color, var(--color-accent));
  font-size: 1.5rem;
}

.dept-card__brand {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--dept-color, var(--color-accent));
  margin-bottom: 0.5rem;
}

.dept-card__title {
  font-family: var(--font-ja);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.dept-card__desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.dept-card__arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  color: var(--dept-color, var(--color-accent));
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition);
}

.dept-card:hover .dept-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Stats ===== */
.stat {
  text-align: center;
  padding: 2rem;
}

.stat__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
}

/* ===== Studios ===== */
.studio-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: all var(--transition);
}

.studio-item:hover {
  border-color: rgba(255,255,255,0.12);
}

.studio-item__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.studio-item__name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.studio-item__loc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ===== Related Companies ===== */
.company-card {
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  text-align: center;
  transition: all var(--transition);
}

.company-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.company-card__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.company-card__name {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.company-card__country {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ===== Recruit Card ===== */
.recruit-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  transition: all var(--transition);
}

.recruit-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.recruit-card__header {
  padding: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.recruit-card__type {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.recruit-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.recruit-card__dept {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.recruit-card__body {
  padding: 1.5rem 2rem;
  flex: 1;
}

.recruit-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.recruit-card__tag {
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  background: var(--color-surface-2);
  border-radius: 2px;
  color: var(--color-text-muted);
}

.recruit-card__footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.recruit-card__employment {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ===== Footer ===== */
.footer {
  background: var(--color-secondary);
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-md);
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.footer__brand-name span {
  color: var(--color-accent);
}

.footer__brand-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 280px;
  margin-top: 0.75rem;
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: 1.25rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--color-text);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copyright {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  font-family: var(--font-display);
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer__social-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

@media (max-width: 1024px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Page Hero ===== */
.page-hero {
  padding: calc(var(--nav-height) + 5rem) 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, var(--page-accent, rgba(108,92,231,0.12)) 0%, transparent 60%);
}

.page-hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.page-hero__eyebrow::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--color-accent);
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.page-hero__subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.8;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--color-text-dim);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb__sep {
  opacity: 0.4;
}
