/* ============================================================
   IBMP | Premium Dark Theme — style.css
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --bg-primary: #050505;
  --bg-secondary: #0c0c0c;
  --bg-card: #111111;
  --bg-card-hover: #181818;
  --surface: #161616;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;

  --accent: #c9a84c;
  --accent-light: #e0c97a;
  --accent-dim: rgba(201, 168, 76, 0.15);

  --font-ja: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-en: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --header-height: 80px;
  --container-max: 1200px;
  --transition-base: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.2s ease;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  /* Lenis handles smooth scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

::selection {
  background: var(--accent);
  color: var(--bg-primary);
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 140px 0;
  position: relative;
}

/* ---------- Section Header ---------- */
.section__header {
  text-align: center;
  margin-bottom: 80px;
}

.section__label {
  display: inline-block;
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.section__line {
  width: 50px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto;
}

.section__desc {
  margin-top: 24px;
  color: var(--text-secondary);
  font-size: 15px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: background var(--transition-base), box-shadow var(--transition-base);
  background: transparent;
}

.header.is-scrolled {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.header__logo-img {
  height: 36px;
  width: auto;
  filter: invert(1) brightness(1.2);
  mix-blend-mode: screen;
  transition: opacity var(--transition-fast);
}

.header__logo-img:hover {
  opacity: 0.8;
}

.header__nav-list {
  display: flex;
  gap: 36px;
  align-items: center;
}

.header__nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  padding: 8px 0;
  transition: color var(--transition-fast);
}

.header__nav-link::after {
  content: attr(data-text);
  position: absolute;
  bottom: 0;
  left: 0;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--accent);
  opacity: 0;
  transform: translateY(4px);
  transition: all var(--transition-fast);
}

.header__nav-link:hover {
  color: var(--text-primary);
}

.header__nav-link:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  height: 20px;
  justify-content: center;
  z-index: 1001;
}

.header__hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform var(--transition-base), opacity var(--transition-base);
  transform-origin: center;
}

.header__hamburger.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}

.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.hero__logo-wrap {
  margin-bottom: 48px;
  display: inline-block;
  position: relative;
}

.hero__logo {
  width: clamp(200px, 30vw, 380px);
  filter: invert(1) brightness(1.2);
  mix-blend-mode: screen;
  opacity: 0;
  position: relative;
  z-index: 2;
}

/* Animated Staff Lines */
.hero__staff-lines {
  position: absolute;
  bottom: -10px;
  left: -20%;
  width: 140%;
  height: 40px;
  z-index: 1;
  opacity: 0;
}

.staff-line {
  fill: none;
  stroke: rgba(201, 168, 76, 0.2);
  stroke-width: 0.8;
}

.hero__text {
  max-width: 700px;
  margin: 0 auto;
}

.hero__catchphrase {
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.7;
  margin-bottom: 20px;
}

.hero__line {
  display: block;
  overflow: hidden;
}

.hero__line-inner {
  display: inline-block;
}

.hero__sub {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--accent);
  opacity: 0;
  margin-bottom: 0;
}

/* Scroll CTA — inline flow below sub text */
.hero__scroll-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  margin-top: 48px;
}

.hero__scroll-text {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  50.01% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--bg-secondary);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 48px 36px;
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__icon {
  width: 56px;
  height: 56px;
  color: var(--accent);
  margin-bottom: 28px;
  transition: transform var(--transition-base);
}

.service-card:hover .service-card__icon {
  transform: scale(1.1);
}

.service-card__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.service-card__desc {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
}

.service-card__number {
  position: absolute;
  bottom: 20px;
  right: 28px;
  font-family: var(--font-en);
  font-size: 64px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  transition: color var(--transition-base);
}

.service-card:hover .service-card__number {
  color: rgba(201, 168, 76, 0.08);
}

/* ============================================================
   COMPANY
   ============================================================ */
.company__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

.company__table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.company__table th,
.company__table td {
  padding: 20px 28px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: top;
}

.company__table tr:last-child th,
.company__table tr:last-child td {
  border-bottom: none;
}

.company__table th {
  width: 160px;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.company__table td {
  color: var(--text-secondary);
  line-height: 1.9;
}

.company__business-list {
  list-style: none;
}

.company__business-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
}

.company__business-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.company__map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.company__map-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.company__map-label svg {
  color: var(--accent);
  flex-shrink: 0;
}

.company__map {
  position: relative;
  width: 100%;
  height: 400px;
  background: var(--bg-card);
}

.company__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ============================================================
   COMPOSERS
   ============================================================ */
.composers {
  background: var(--bg-secondary);
}

.composers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.composer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.composer-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.composer-card__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.composer-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  filter: grayscale(30%);
}

.composer-card:hover .composer-card__image {
  transform: scale(1.08);
  filter: grayscale(0%);
}

.composer-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
}

.composer-card__role {
  font-size: 11px;
  font-weight: 400;
  color: var(--accent-light);
  letter-spacing: 0.05em;
}

.composer-card__info {
  padding: 24px 20px 28px;
}

.composer-card__name {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.composer-card__title {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.composer-card__bio {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.composer-card__bio p {
  margin-bottom: 10px;
}

.composer-card__credits {
  font-size: 12px;
  color: var(--text-muted);
}

.composer-card__credits strong {
  color: var(--accent);
  font-weight: 500;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--bg-primary);
}

.contact__form {
  max-width: 800px;
  margin: 0 auto;
}

.contact__form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 28px;
}

.form-group {
  position: relative;
}

.form-group--full {
  width: 100%;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.required {
  color: var(--accent);
  margin-left: 4px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-ja);
  font-size: 15px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input::placeholder {
  color: var(--text-muted);
  font-size: 14px;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-textarea {
  resize: vertical;
  min-height: 160px;
}

/* Checkbox */
.form-group--confirm {
  margin-top: 20px;
  margin-bottom: 36px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
}

.form-checkbox input {
  display: none;
}

.form-checkbox__mark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--border-hover);
  border-radius: 4px;
  position: relative;
  transition: all var(--transition-fast);
  margin-top: 2px;
}

.form-checkbox input:checked+.form-checkbox__mark {
  background: var(--accent);
  border-color: var(--accent);
}

.form-checkbox input:checked+.form-checkbox__mark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--bg-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Submit Button */
.form-group--submit {
  text-align: center;
  margin-top: 8px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 48px;
  background: linear-gradient(135deg, var(--accent), #b8913d);
  color: var(--bg-primary);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 50px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201, 168, 76, 0.3);
}

.btn-submit:hover::before {
  opacity: 1;
}

.btn-submit__text,
.btn-submit__icon {
  position: relative;
  z-index: 1;
}

.btn-submit__icon svg {
  transition: transform var(--transition-fast);
}

.btn-submit:hover .btn-submit__icon svg {
  transform: translateX(4px);
}

.btn-submit__loading {
  display: none;
  position: relative;
  z-index: 1;
}

.btn-submit.is-loading .btn-submit__text,
.btn-submit.is-loading .btn-submit__icon {
  display: none;
}

.btn-submit.is-loading .btn-submit__loading {
  display: inline-flex;
}

.btn-submit:disabled {
  pointer-events: none;
  opacity: 0.6;
}

/* Form Message */
.form-message {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  min-height: 24px;
}

.form-message.is-success {
  color: #4ade80;
}

.form-message.is-error {
  color: #f87171;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 60px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer__logo-img {
  height: 28px;
  filter: invert(1) brightness(1.2);
  opacity: 0.5;
}

.footer__nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__nav a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  letter-spacing: 0.03em;
}

.footer__nav a:hover {
  color: var(--accent);
}

.footer__copy {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .composers__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding: 0 20px;
  }

  .section {
    padding: 100px 0;
  }

  .section__header {
    margin-bottom: 48px;
  }

  /* Header Mobile */
  .header__hamburger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.96);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
    z-index: 999;
  }

  .header__nav.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .header__nav-link {
    font-size: 22px;
    font-weight: 600;
  }

  .header__nav-link::after {
    display: block;
    position: relative;
    font-size: 12px;
    text-align: center;
    opacity: 0.5;
    transform: none;
    margin-top: 4px;
  }

  /* Composers */
  .composers__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  /* Contact */
  .contact__form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Company */
  .company__table th {
    width: 120px;
    font-size: 13px;
    padding: 16px;
  }

  .company__table td {
    font-size: 13px;
    padding: 16px;
  }

  .company__map {
    height: 280px;
  }

  /* Hero */
  .hero__catchphrase {
    letter-spacing: 0.04em;
  }

  .btn-submit {
    padding: 14px 40px;
  }
}

@media (max-width: 480px) {

  .company__table th,
  .company__table td {
    display: block;
    width: 100%;
  }

  .company__table th {
    padding-bottom: 4px;
    border-bottom: none;
  }

  .company__table td {
    padding-top: 4px;
    padding-bottom: 20px;
  }
}

/* ---------- Reveal Utility ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}