/* =========================================================
   Duet Inc. — Corporate Site
   ========================================================= */

/* Reset --------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, dl, dt, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; padding: 0; }

/* Variables ----------------------------------------------- */
:root {
  --c-bg: #ffffff;
  --c-bg-dark: #0e0e10;
  --c-text: #0c0c0e;
  --c-text-mute: #6b6b70;
  --c-border: #e6e6e8;
  --c-accent: #c5f02c;
  --c-accent-deep: #aedb19;

  --ff-sans-jp: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --ff-sans-en: "Inter", "Helvetica Neue", Arial, sans-serif;

  --container: 1240px;
  --pad-pc: 64px;
  --pad-sp: 24px;

  --header-h: 80px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Base ---------------------------------------------------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-sans-jp);
  color: var(--c-text);
  background: var(--c-bg);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--c-accent); color: var(--c-text); }

.pc-only { display: inline; }
.sp-only { display: none; }
@media (max-width: 768px) {
  .pc-only { display: none; }
  .sp-only { display: inline; }
}

/* Header -------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: saturate(150%) blur(0px);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom-color: var(--c-border);
}
.header-inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--pad-pc);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand__logo {
  height: 40px;
  width: auto;
  transition: opacity 0.3s var(--ease);
}
.brand:hover .brand__logo { opacity: 0.7; }

/* Nav */
.global-nav .nav-list {
  display: flex;
  gap: 36px;
  align-items: center;
}
.global-nav a {
  position: relative;
  font-family: var(--ff-sans-en);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 4px 0;
}
.global-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--c-text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.global-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 32px; height: 32px;
  position: relative;
  z-index: 101;
}
.nav-toggle span {
  position: absolute; left: 4px;
  width: 24px; height: 1.5px;
  background: var(--c-text);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), top 0.4s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 10px; }
.nav-toggle span:nth-child(2) { top: 16px; }
.nav-toggle span:nth-child(3) { top: 22px; }
.nav-toggle.is-open span:nth-child(1) { top: 16px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 16px; transform: rotate(-45deg); }

/* Buttons ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  font-family: var(--ff-sans-en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn--primary {
  background: var(--c-text);
  color: var(--c-bg);
}
.btn--primary:hover {
  background: var(--c-accent);
  color: var(--c-text);
  transform: translateY(-2px);
}
.btn--primary svg path { transition: stroke 0.3s var(--ease); }
.btn--large {
  padding: 22px 44px;
  font-size: 15px;
}

/* Hero ---------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.05);
  animation: heroZoom 12s var(--ease) forwards;
}
@keyframes heroZoom {
  0%   { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.85) 60%, rgba(255,255,255,0.95) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: 80px var(--pad-pc) 120px;
}
.hero__eyebrow {
  font-family: var(--ff-sans-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--c-text-mute);
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero__eyebrow::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--c-text);
}
.hero__title {
  display: block;
  margin-bottom: 32px;
}
.hero__title-en {
  display: block;
  font-family: var(--ff-sans-en);
  font-weight: 800;
  font-size: clamp(40px, 8vw, 112px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-text);
}
.hero__title-en em {
  font-style: italic;
  font-weight: 400;
  font-family: "Inter", serif;
  background: linear-gradient(120deg, var(--c-accent) 0%, var(--c-accent) 100%);
  background-size: 100% 30%;
  background-repeat: no-repeat;
  background-position: 0 78%;
  padding: 0 4px;
}
.hero__title-jp {
  display: block;
  font-size: clamp(15px, 1.7vw, 20px);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-top: 24px;
  color: var(--c-text);
}
.hero__lead {
  max-width: 540px;
  font-size: 15px;
  color: var(--c-text-mute);
  margin-bottom: 40px;
  line-height: 1.9;
}
.hero__scroll {
  position: absolute;
  right: var(--pad-pc);
  bottom: 32px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-sans-en);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--c-text-mute);
}
.hero__scroll-line {
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, var(--c-text) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 30%;
  background: var(--c-accent);
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(330%); }
}

/* Section base -------------------------------------------- */
.section {
  padding: 120px 0;
  position: relative;
}
.section__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-pc);
}
.section__head {
  margin-bottom: 64px;
}
.section__label {
  font-family: var(--ff-sans-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--c-text-mute);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section__label::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--c-accent);
  border-radius: 50%;
}
.section__title {
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}
.section__title .en {
  font-family: var(--ff-sans-en);
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.section__title .jp {
  font-size: 14px;
  color: var(--c-text-mute);
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* About --------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}
.about__lead {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.about__text p {
  margin-bottom: 24px;
  color: var(--c-text);
}
.about__text p:last-child { margin-bottom: 0; }
.about__image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
}
.about__image::before {
  content: "";
  position: absolute;
  top: 24px; left: -24px;
  width: 100%; height: 100%;
  background: var(--c-accent);
  z-index: -1;
  border-radius: 6px;
}
.about__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
}

/* Services ------------------------------------------------ */
.services { background: #fafafa; }
.services__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--c-text);
}
.service-card__num {
  position: absolute;
  top: 20px; right: 24px;
  font-family: var(--ff-sans-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--c-text-mute);
  z-index: 2;
}
.service-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.service-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
  filter: grayscale(15%);
}
.service-card:hover .service-card__media img { transform: scale(1.06); }
.service-card__body {
  padding: 32px 28px;
}
.service-card__en {
  font-family: var(--ff-sans-en);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--c-text-mute);
  margin: 4px 0 16px;
  font-weight: 500;
}
.service-card__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.service-card__body p:last-child {
  font-size: 14px;
  color: var(--c-text-mute);
  line-height: 1.85;
}

/* Works --------------------------------------------------- */
.works__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--c-border);
}
.work-item {
  padding: 28px 4px;
  border-bottom: 1px solid var(--c-border);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: baseline;
  transition: padding-left 0.4s var(--ease), background 0.4s var(--ease);
}
.work-item:hover {
  padding-left: 16px;
  background: linear-gradient(90deg, var(--c-accent) 0%, transparent 60%);
  background-size: 4px 100%;
  background-repeat: no-repeat;
}
.work-item__broadcaster {
  font-family: var(--ff-sans-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-text);
  text-transform: none;
}
.work-item__name {
  font-size: 14px;
  color: var(--c-text);
  line-height: 1.7;
}
.works__note {
  margin-top: 32px;
  font-size: 13px;
  color: var(--c-text-mute);
}

/* Company ------------------------------------------------- */
.company__list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--c-border);
}
.company__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 28px 4px;
  border-bottom: 1px solid var(--c-border);
  align-items: baseline;
}
.company__row dt {
  font-family: var(--ff-sans-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--c-text);
}
.company__row dd {
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-text);
}
.company__row dd a {
  border-bottom: 1px solid var(--c-border);
  transition: border-color 0.3s var(--ease);
}
.company__row dd a:hover {
  border-bottom-color: var(--c-text);
}

/* Contact ------------------------------------------------- */
.contact {
  background: var(--c-bg-dark);
  color: #f5f5f7;
  padding: 140px 0;
}
.contact .section__label { color: rgba(255,255,255,0.6); }
.contact .section__label::before { background: var(--c-accent); }
.contact__inner {
  text-align: center;
  max-width: 760px;
}
.contact__title {
  margin: 24px 0 32px;
}
.contact__title .en {
  display: block;
  font-family: var(--ff-sans-en);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.contact__title .jp {
  display: block;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  margin-top: 12px;
  font-weight: 500;
}
.contact__text {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
  line-height: 1.9;
}
.contact .btn--primary {
  background: var(--c-accent);
  color: var(--c-text);
}
.contact .btn--primary:hover {
  background: #fff;
  color: var(--c-text);
}
.contact__note {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 24px;
  letter-spacing: 0.05em;
}

/* Footer -------------------------------------------------- */
.site-footer {
  background: var(--c-bg);
  border-top: 1px solid var(--c-border);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px var(--pad-pc) 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.footer__logo { height: 40px; margin-bottom: 24px; }
.footer__address {
  font-size: 13px;
  line-height: 1.9;
  color: var(--c-text-mute);
}
.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-end;
}
.footer__nav a {
  font-family: var(--ff-sans-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--c-text);
  transition: color 0.3s var(--ease);
}
.footer__nav a:hover { color: var(--c-accent-deep); }
.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding: 24px var(--pad-pc);
}
.copyright {
  max-width: var(--container);
  margin: 0 auto;
  font-family: var(--ff-sans-en);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--c-text-mute);
  text-align: center;
}

/* Reveal animation ---------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive ---------------------------------------------- */
@media (max-width: 1024px) {
  .header-inner { padding: 0 32px; }
  .section__inner { padding: 0 32px; }
  .hero__inner { padding: 80px 32px 120px; }
  .hero__scroll { right: 32px; }
  .footer-inner { padding: 64px 32px 40px; }
  .footer-bottom { padding: 24px 32px; }
  .about__grid { gap: 48px; }
  .services__list { grid-template-columns: repeat(2, 1fr); }
  .works__grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .header-inner { padding: 0 var(--pad-sp); }
  .global-nav {
    position: fixed;
    top: 0; right: 0;
    width: 100%; height: 100vh;
    background: var(--c-bg);
    padding: 100px var(--pad-sp) 40px;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    overflow-y: auto;
  }
  .global-nav.is-open { transform: translateX(0); }
  .global-nav .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .global-nav a {
    font-size: 24px;
    font-weight: 700;
  }
  .nav-toggle { display: block; }
  body.is-nav-open { overflow: hidden; }

  .section { padding: 80px 0; }
  .section__inner { padding: 0 var(--pad-sp); }
  .section__head { margin-bottom: 40px; }
  .section__title { gap: 12px; }

  .hero__inner { padding: 64px var(--pad-sp) 96px; }
  .hero__scroll { display: none; }
  .hero__lead { font-size: 14px; }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about__image { aspect-ratio: 4 / 3; }

  .services__list { grid-template-columns: 1fr; gap: 20px; }

  .work-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 20px 4px;
  }
  .work-item:hover { padding-left: 8px; }

  .company__row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 20px 4px;
  }

  .contact { padding: 96px 0; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 56px var(--pad-sp) 32px;
  }
  .footer__nav ul { justify-content: flex-start; gap: 20px; }
  .footer-bottom { padding: 20px var(--pad-sp); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
