/*
Theme Name: Repartir
Theme URI: https://repartir.jp
Author: Repartir
Author URI: https://repartir.jp
Description: Corporate website theme for Repartir - Marketing & Creative Studio
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: repartir
*/

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #fff;
  color: #000;
  line-height: 1.5;
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

input, textarea {
  font-family: inherit;
  border: none;
  outline: none;
}

/* ===========================
   Navigation
=========================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #000;
  opacity: 0;
  animation: navFadeIn 1.2s ease 1.7s forwards;
}

body:not(.home) .site-nav {
  opacity: 1;
  animation: none;
}

@keyframes navFadeIn {
  to { opacity: 1; }
}

.nav-border {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .nav-inner {
    padding: 1.5rem 5rem;
  }
}

.nav-logo {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  transition: opacity 0.3s;
}

.nav-logo:hover {
  opacity: 0.5;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  position: relative;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: #fff;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
  padding: 0;
}

.mobile-menu-btn:hover {
  color: #fff;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 73px;
  background: #000;
  z-index: 40;
  flex-direction: column;
  padding: 3rem;
}

.mobile-menu.is-open {
  display: flex;
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu-link {
  display: block;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
  opacity: 0;
  transform: translateX(-20px);
  animation: none;
}

.mobile-menu.is-open .mobile-menu-link {
  animation: mobileMenuSlideIn 0.4s ease forwards;
}

.mobile-menu.is-open .mobile-menu-link:nth-child(1) { animation-delay: 0s; }
.mobile-menu.is-open .mobile-menu-link:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu.is-open .mobile-menu-link:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu.is-open .mobile-menu-link:nth-child(4) { animation-delay: 0.3s; }
.mobile-menu.is-open .mobile-menu-link:nth-child(5) { animation-delay: 0.4s; }

@keyframes mobileMenuSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-menu-link.active {
  color: #fff;
}

/* ===========================
   Hero Section
=========================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}

.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.015;
  mix-blend-mode: multiply;
  animation: grain 30s steps(8) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-2%, -2%); }
  20% { transform: translate(2%, 0%); }
  30% { transform: translate(-1%, 2%); }
  40% { transform: translate(1%, -1%); }
  50% { transform: translate(-2%, 1%); }
  60% { transform: translate(2%, 2%); }
  70% { transform: translate(0%, -2%); }
  80% { transform: translate(-1%, 0%); }
  90% { transform: translate(1%, 1%); }
}

.hero-content {
  position: relative;
  width: 100%;
  padding: 8rem 3rem;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 8rem 5rem;
  }
}

.hero-title {
  color: #000;
  font-family: 'Inter', sans-serif;
  font-size: clamp(4rem, 13vw, 18rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.04em;
  margin-bottom: 3rem;
}

.hero-title-char {
  display: inline-block;
  will-change: transform, opacity, filter;
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
}

.hero-tagline {
  color: rgba(0, 0, 0, 0.7);
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(12px);
  filter: blur(4px);
  will-change: transform, opacity, filter;
}

/* ===========================
   Vision Section
=========================== */
.visionSection {
  position: relative;
  background: #fff;
  color: #000;
  padding: clamp(40px, 6vw, 80px) clamp(18px, 5vw, 64px) clamp(100px, 14vw, 180px);
}

.visionInner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  transform: translateY(-40px);
}

.visionLine {
  font-family: inherit;
  font-size: clamp(2.5rem, 8vw, 10rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 clamp(12px, 2vw, 24px);
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: clamp(12px, 2.5vw, 32px);
}

.visionWord {
  display: inline-block;
  white-space: nowrap;
  will-change: transform, opacity, filter;
  transition:
    opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.visionJapanese {
  margin-top: clamp(60px, 8vw, 120px);
  opacity: 0;
  filter: blur(10px);
  transition:
    opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.4s,
    filter 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}

.visionSection.is-visible .visionJapanese {
  opacity: 1;
  filter: blur(0);
}

.visionJaLine {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.35em;
  color: rgba(0, 0, 0, 0.45);
  margin: 0;
}

@media (max-width: 480px) {
  .visionInner {
    transform: translateY(-24px);
  }
  .visionLine {
    font-size: clamp(1.75rem, 9vw, 3rem);
    gap: clamp(8px, 2vw, 16px);
  }
  .visionJapanese {
    margin-top: clamp(32px, 5vw, 48px);
  }
  .visionJaLine {
    font-size: clamp(0.8rem, 3.5vw, 1rem);
    line-height: 1.7;
  }
}

@media (min-width: 481px) and (max-width: 1024px) {
  .visionInner {
    transform: translateY(-32px);
  }
  .visionLine {
    font-size: clamp(3rem, 7vw, 6rem);
  }
}

/* ===========================
   Page Header
=========================== */
.page-header {
  position: relative;
  padding-top: 10rem;
  padding-bottom: 6rem;
  overflow: hidden;
  background: #fff;
}

.page-header .container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 3rem;
}

@media (min-width: 768px) {
  .page-header .container {
    padding: 0 5rem;
  }
}

.page-header-inner {
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.page-header-label {
  letter-spacing: 0.3em;
  margin-bottom: 2rem;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.3);
  font-size: 0.625rem;
  font-weight: 300;
}

.page-header-title {
  color: #000;
  position: relative;
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.page-header-title .accent-line {
  position: absolute;
  bottom: -16px;
  left: 0;
  height: 1px;
  background: #000;
  width: 200px;
  transform: scaleX(0);
  transform-origin: left;
}

/* ===========================
   About Section (Company Hero)
=========================== */
.about-hero {
  position: relative;
  overflow: hidden;
  height: 88vh;
  min-height: 700px;
}

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

.about-hero__bg-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: transform, opacity;
}

.about-hero__bg-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-hero__bg-layer--1 img {
  mix-blend-mode: normal;
}

.about-hero__bg-layer--2 img {
  mix-blend-mode: screen;
  opacity: 0.6;
}

.about-hero__bg-layer--3 img {
  mix-blend-mode: lighten;
  opacity: 0.4;
}

.about-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.35) 65%, rgba(0,0,0,0.15) 100%);
  opacity: 0;
}

.about-hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.about-hero__content {
  position: relative;
  z-index: 20;
  height: 100%;
  display: flex;
  align-items: center;
}

.about-hero__content-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  width: 100%;
}

@media (min-width: 768px) {
  .about-hero__content-inner {
    padding: 0 5rem;
  }
}

.about-hero__text-wrap {
  max-width: 560px;
}

.about-hero__headline {
  color: #fff;
  margin-bottom: 2.5rem;
  max-width: 15em;
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
  white-space: pre-line;
  word-break: keep-all;
  opacity: 0;
  transform: translateX(-60px) scale(0.9);
}

.about-hero__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  margin-bottom: 3rem;
  transform: scaleX(0);
  transform-origin: left;
}

.about-hero__body {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  font-weight: 300;
  letter-spacing: 0.025em;
  line-height: 1.9;
}

.about-hero__body p {
  margin-bottom: 1.5rem;
  opacity: 0;
}

.about-hero__body p:last-child {
  margin-bottom: 0;
}

/* ===========================
   Service Hero Blocks
=========================== */
:root {
  --nav-h: 72px;
  --pad-x: clamp(16px, 4vw, 64px);
  --pad-y: clamp(56px, 7vw, 110px);
  --title-en: clamp(34px, 5.0vw, 64px);
  --title-ja: 12px;
  --body: clamp(14px, 1.25vw, 16px);
  --hero-minh: 78vh;
  --line-max: 420px;
}

.serviceHero {
  position: relative;
  width: 100%;
  min-height: var(--hero-minh);
  overflow: clip;
  background: #000;
  color: #fff;
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.serviceHero.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.serviceHero__content {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  padding: var(--pad-y) var(--pad-x);
  padding-top: calc(var(--pad-y) + 8px);
}

.serviceHero__titleEn {
  font-size: var(--title-en);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

.serviceHero__titleJa {
  font-size: var(--title-ja);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .68);
  margin-bottom: 18px;
  font-weight: 300;
}

.serviceHero__line {
  height: 1px;
  background: rgba(255, 255, 255, .35);
  width: min(var(--line-max), 60vw);
  margin: 0 0 18px;
}

.serviceHero__list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--body);
  line-height: 2.0;
  color: rgba(255, 255, 255, .84);
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.serviceHero__bg {
  position: absolute;
  inset: 0;
}

.serviceHero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(100%) contrast(1.05);
}

.serviceHero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(0, 0, 0, .78) 0%,
    rgba(0, 0, 0, .58) 45%,
    rgba(0, 0, 0, .32) 75%,
    rgba(0, 0, 0, .18) 100%
  );
}

/* Service Hero Responsive */
@media (max-width: 360px) {
  :root {
    --hero-minh: 72vh;
    --title-en: 30px;
    --title-ja: 11px;
    --line-max: 260px;
  }
  .serviceHero__content {
    padding-top: 72px;
  }
  .serviceHero__list {
    gap: 8px;
  }
}

@media (min-width: 361px) and (max-width: 767px) {
  :root {
    --hero-minh: 74vh;
    --line-max: 320px;
  }
  .serviceHero__content {
    max-width: 560px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  :root {
    --hero-minh: 80vh;
    --line-max: 420px;
  }
  .serviceHero__list {
    grid-template-columns: 1fr 1fr;
    gap: 10px 28px;
  }
}

@media (min-width: 1025px) {
  :root {
    --hero-minh: 84vh;
  }
  .serviceHero__content {
    max-width: 1100px;
  }
  .serviceHero__list {
    grid-template-columns: 1fr 1fr;
    gap: 10px 34px;
  }
  .serviceHero__titleEn {
    line-height: 1.06;
  }
}

/* ===========================
   Services Bottom Description
=========================== */
.services-bottom {
  position: relative;
  background: #fff;
  padding: 6rem 0;
}

@media (min-width: 768px) {
  .services-bottom {
    padding: 8rem 0;
  }
}

.services-bottom .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

@media (min-width: 768px) {
  .services-bottom .container {
    padding: 0 5rem;
  }
}

.services-bottom-text {
  color: rgba(0, 0, 0, 0.7);
  font-size: 1.0625rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 2.2;
  max-width: 56rem;
}

/* ===========================
   Section Reveal Animation
=========================== */
.section-reveal {
  position: relative;
  opacity: 0;
  transform: translateY(80px);
  transition:
    opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   WhyUs / Cases / Staff - Grid Sections
=========================== */
.grid-section {
  position: relative;
  padding: 8rem 0 10rem;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.grid-section .container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 3rem;
}

@media (min-width: 768px) {
  .grid-section .container {
    padding: 0 5rem;
  }
}

/* Grid Items (Why Us / Cases) */
.grid-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5rem;
}

@media (min-width: 768px) {
  .grid-items--2col {
    grid-template-columns: 1fr 1fr;
    gap: 4rem 4rem;
  }
}

.grid-item {
  position: relative;
  padding: 4rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.grid-item-inner {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 768px) {
  .grid-item-inner {
    grid-template-columns: 2.5rem 1fr;
  }
}

.grid-item__number {
  font-family: 'Inter', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: rgba(0, 0, 0, 0.2);
  transition: color 0.5s;
}

.grid-item:hover .grid-item__number {
  color: rgba(0, 0, 0, 0.5);
}

.grid-item__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.grid-item__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #000;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.grid-item:hover .grid-item__title {
  transform: translateX(8px);
}

.grid-item__subtitle {
  font-size: 0.625rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.3);
  margin-top: 0.75rem;
  transition: opacity 0.3s;
}

.grid-item:hover .grid-item__subtitle {
  opacity: 0.6;
}

.grid-item__desc {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 2;
  color: rgba(0, 0, 0, 0.6);
  max-width: 48rem;
  transition: opacity 0.4s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.grid-item:hover .grid-item__desc {
  opacity: 0.8;
  transform: translateX(4px);
}

/* Hover line indicator */
.grid-item__hover-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #000;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.grid-item:hover .grid-item__hover-line {
  transform: scaleY(1);
}

/* Cases extra styles */
.grid-item__client {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.6);
}

.grid-item__case-desc {
  font-size: 0.9375rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.5);
}

/* ===========================
   Staff Section
=========================== */
.staff-intro {
  position: relative;
  margin-bottom: 6rem;
}

@media (min-width: 768px) {
  .staff-intro {
    margin-bottom: 8rem;
  }
}

.staff-intro-box {
  position: relative;
  display: inline-block;
}

.staff-intro-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transform: translate(-24px, -20px);
  width: calc(100% + 48px);
  height: calc(100% + 40px);
}

.staff-intro-text {
  position: relative;
  color: rgba(0, 0, 0, 0.75);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 2;
  max-width: 640px;
}

/* Staff Grid */
.staff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem 2rem;
  margin-bottom: 6rem;
}

@media (min-width: 768px) {
  .staff-grid {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 8rem;
  }
}

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

.staff-card {
  position: relative;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  cursor: default;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.staff-card:hover {
  border-color: rgba(0, 0, 0, 0.25);
}

.staff-card__name {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.3;
  color: #000;
  margin-bottom: 0.5rem;
  transition: font-weight 0.2s ease;
}

.staff-card:hover .staff-card__name {
  font-weight: 600;
}

.staff-card__role {
  font-size: 0.9375rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.6);
}

/* Staff Page - Representative */
.staff-representative {
  margin-bottom: 8rem;
  padding-bottom: 6rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  max-width: 48rem;
}

.staff-representative__label {
  color: rgba(0, 0, 0, 0.3);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.625rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.staff-representative__name {
  font-family: 'Inter', sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #000;
  margin-bottom: 2rem;
}

.staff-representative__name-en {
  color: rgba(0, 0, 0, 0.5);
  letter-spacing: 0.1em;
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 0.75rem;
}

.staff-representative__role-ja {
  color: rgba(0, 0, 0, 0.4);
  letter-spacing: 0.05em;
  font-size: 1rem;
  font-weight: 300;
}

/* Staff Page - Team Members List */
.staff-list-label {
  color: rgba(0, 0, 0, 0.3);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.625rem;
  font-weight: 300;
  margin-bottom: 5rem;
}

.staff-member-row {
  position: relative;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.staff-member-row__inner {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .staff-member-row__inner {
    grid-template-columns: 2.5rem 1fr 1fr;
  }
}

.staff-member-row__number {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(0, 0, 0, 0.2);
  transition: color 0.5s;
}

.staff-member-row:hover .staff-member-row__number {
  color: rgba(0, 0, 0, 0.5);
}

.staff-member-row__name {
  font-size: clamp(1.5rem, 2.5vw, 1.75rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #000;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.staff-member-row:hover .staff-member-row__name {
  transform: translateX(8px);
}

.staff-member-row__name-en {
  color: rgba(0, 0, 0, 0.4);
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  font-weight: 300;
  margin-top: 0.75rem;
}

.staff-member-row__position {
  text-align: left;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .staff-member-row__position {
    text-align: right;
    margin-top: 0;
  }
}

.staff-member-row__role-ja {
  color: rgba(0, 0, 0, 0.6);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.staff-member-row__role-en {
  color: rgba(0, 0, 0, 0.3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.625rem;
  font-weight: 300;
  margin-top: 0.5rem;
}

.staff-member-row .grid-item__hover-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #000;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.staff-member-row:hover .grid-item__hover-line {
  transform: scaleY(1);
}

/* Staff Team Description */
.staff-team-desc {
  margin-top: 10rem;
  padding-top: 6rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  max-width: 56rem;
}

.staff-team-desc p {
  color: rgba(0, 0, 0, 0.7);
  font-size: 1.125rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 2;
}

/* ===========================
   Contact Section
=========================== */
.contact-section {
  position: relative;
  padding: 8rem 0 10rem;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

@media (min-width: 768px) {
  .contact-section .container {
    padding: 0 5rem;
  }
}

.contact-intro {
  margin-bottom: 4rem;
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.9375rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 2;
}

@media (min-width: 768px) {
  .contact-intro {
    margin-bottom: 6rem;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 7fr 5fr;
    gap: 5rem;
  }
}

/* Contact Form */
.contact-form-frame {
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: clamp(32px, 5vw, 56px);
  background: rgba(0, 0, 0, 0.01);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.form-group label {
  display: block;
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0;
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  color: #000;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  transition: border-color 0.2s ease;
}

.form-group textarea {
  resize: none;
  line-height: 1.8;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(0, 0, 0, 0.4);
}

.form-submit-btn {
  display: inline-block;
  padding: 1rem 3rem;
  background: #000;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 1rem;
  border: none;
}

.form-submit-btn:hover {
  opacity: 0.8;
}

/* Contact Page Form */
.contact-page-form .form-group label {
  color: rgba(0, 0, 0, 0.4);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.625rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.contact-page-form .form-group input,
.contact-page-form .form-group textarea {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-page-form .form-group input:focus,
.contact-page-form .form-group textarea:focus {
  border-color: rgba(0, 0, 0, 0.3);
}

.contact-page-form .form-submit-btn {
  padding: 1.25rem 4rem;
  letter-spacing: 0.15em;
  font-weight: 300;
  transition: opacity 0.2s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-page-form .form-submit-btn:hover {
  transform: scale(1.02);
}

.contact-page-form .form-submit-btn:active {
  transform: scale(0.98);
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info__label {
  color: rgba(0, 0, 0, 0.4);
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.contact-info__value {
  color: #000;
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}

.contact-info__value:hover {
  opacity: 0.6;
}

.contact-info__note {
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.4);
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.8;
}

/* Contact Page - Left Column */
.contact-page-info {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.contact-page-info__block h3 {
  color: rgba(0, 0, 0, 0.3);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.625rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.contact-page-info__block a,
.contact-page-info__block p {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: #000;
  transition: color 0.5s;
}

.contact-page-info__block a:hover {
  color: rgba(0, 0, 0, 0.5);
}

.contact-page-info__block p.small {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.8;
}

.contact-page-info__block p.muted {
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.4);
}

.contact-page-info__divider {
  height: 1px;
  width: 5rem;
  background: rgba(0, 0, 0, 0.1);
}

/* ===========================
   Footer
=========================== */
.site-footer {
  position: relative;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 4rem 3rem;
}

@media (min-width: 768px) {
  .footer-inner {
    padding: 4rem 5rem;
  }
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr 2fr;
  }
}

.footer-logo {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  transition: opacity 0.5s;
}

.footer-logo:hover {
  opacity: 0.4;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-nav {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-nav a {
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.5s;
}

.footer-nav a:hover {
  color: #fff;
}

/* Footer SNS */
.footer-sns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-sns a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.5s;
}

.footer-sns a:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  transform: translateY(-4px);
}

.footer-sns svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-sns .x-icon svg {
  width: 1rem;
  height: 1rem;
}

/* Footer Bottom */
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.625rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  z-index: 40;
  transition: all 0.5s;
  color: rgba(255, 255, 255, 0.3);
  font-size: 1rem;
  font-weight: 300;
}

.back-to-top:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  transform: translateY(-4px);
}

.back-to-top-arrow {
  animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(2px); }
}

/* ===========================
   Contact Page Layout
=========================== */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5rem;
}

@media (min-width: 1024px) {
  .contact-page-grid {
    grid-template-columns: 5fr 7fr;
    gap: 8rem;
  }
}

/* ===========================
   Form Messages
=========================== */
.form-message {
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 400;
}

.form-message--success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-message--error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ===========================
   Utility
=========================== */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 3rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 5rem;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
