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

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

body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  font-weight: 400;
  color: #111111;
  background-color: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

/* ========================================
   CSS VARIABLES
======================================== */
:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-400: #aaaaaa;
  --gray-600: #666666;
  --gray-800: #333333;

  --header-h: 72px;
  --section-py: 100px;
  --inner-max: 1200px;
  --inner-px: 40px;

  --transition: 0.3s ease;
}

/* ========================================
   UTILITY
======================================== */
.pc-only { display: block; }
.sp-only { display: none; }

@media (max-width: 768px) {
  .pc-only { display: none; }
  .sp-only { display: block; }
  :root {
    --section-py: 64px;
    --inner-px: 20px;
    --header-h: 60px;
  }
}

/* ========================================
   BUTTONS
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn--black {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn--black:hover {
  background: var(--white);
  color: var(--black);
}

.btn--white {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn--white:hover {
  background: transparent;
  color: var(--white);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline-white:hover {
  background: var(--white);
  color: var(--black);
}

/* ========================================
   LINK ARROW
======================================== */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--black);
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
  transition: gap var(--transition), opacity var(--transition);
}
.link-arrow::after {
  content: '→';
  font-size: 1rem;
}
.link-arrow:hover {
  gap: 14px;
  opacity: 0.7;
}
.link-arrow--white {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* ========================================
   SECTION COMMON
======================================== */
.section {
  padding: var(--section-py) 0;
}

.section__inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 var(--inner-px);
}

.section__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 12px;
}
.section__label--white { color: rgba(255,255,255,0.6); }

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 24px;
}
.section__title--white { color: var(--white); }

.section__lead {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 56px;
  max-width: 600px;
}

.section__more {
  text-align: center;
  margin-top: 56px;
}

/* ========================================
   HEADER
======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header__inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 var(--inner-px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.header__logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.header__logo-texts {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.header__logo-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  line-height: 1;
}
.header__logo-sub {
  font-size: 0.65rem;
  color: var(--gray-600);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-top: 3px;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header__nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--gray-800);
  transition: color var(--transition);
  position: relative;
}
.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--black);
  transition: width var(--transition);
}
.header__nav-link:hover { color: var(--black); }
.header__nav-link:hover::after { width: 100%; }

.header__nav-link--cta {
  background: var(--black);
  color: var(--white);
  padding: 8px 20px;
}
.header__nav-link--cta::after { display: none; }
.header__nav-link--cta:hover {
  background: var(--gray-800);
  color: var(--white);
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.header__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--black);
  transition: transform var(--transition), opacity var(--transition);
}
.header__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.header__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   MOBILE MENU
======================================== */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--black);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mobile-menu__link {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  padding: 8px 16px;
  transition: opacity var(--transition);
}
.mobile-menu__link:hover { opacity: 0.6; }

/* ========================================
   HERO
======================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

/* Background: photo with dark overlay */
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: center center;
  z-index: 0;
  filter: brightness(2.5) contrast(1.3);
}
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
}

/* Particles */
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero__particles i {
  display: block;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s, 2px);
  height: var(--s, 2px);
  border-radius: 50%;
  background: var(--white);
  opacity: var(--o, 0.3);
}

/* Geometric decorations */
.hero__geo {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.12);
  transform: rotate(45deg);
}
.hero__geo--1 { width: 72px; height: 72px; top: 12%; left: 7%; }
.hero__geo--2 { width: 44px; height: 44px; top: 8%;  right: 10%; border-color: rgba(255,255,255,0.18); }
.hero__geo--3 { width: 96px; height: 96px; bottom: 14%; right: 6%; border-color: rgba(255,255,255,0.07); }
.hero__geo--4 { width: 32px; height: 32px; bottom: 20%; left: 12%; border-color: rgba(255,255,255,0.15); }

/* Photo areas — replace background-image with actual photos */
.hero__photo {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 38%;
  z-index: 2;
  pointer-events: none;
}
.hero__photo--left  { left: 0; }
.hero__photo--right { right: 0; }

/* Photo areas — add background-image here when photos are ready */
.hero__photo--left  { background: linear-gradient(to right,  #161010 0%, rgba(18,8,8,0.6) 50%, transparent 100%); }
.hero__photo--right { background: linear-gradient(to left,   #161010 0%, rgba(18,8,8,0.6) 50%, transparent 100%); }

/* Fade overlay on top of real photos */
.hero__photo-fade {
  position: absolute;
  inset: 0;
}
.hero__photo--left  .hero__photo-fade { background: linear-gradient(to right,  rgba(10,10,10,0.55) 0%, transparent 100%); }
.hero__photo--right .hero__photo-fade { background: linear-gradient(to left,   rgba(10,10,10,0.55) 0%, transparent 100%); }

/* Center content */
.hero__inner {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 var(--inner-px);
  width: 100%;
  max-width: 700px;
}

.hero__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 24px;
}

.hero__title {
  margin-bottom: 40px;
}

.hero__title-img {
  width: clamp(280px, 55vw, 600px);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 32px rgba(0,0,0,0.5));
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Corner tagline */
.hero__corner-text {
  position: absolute;
  bottom: 36px;
  left: 40px;
  z-index: 3;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.35);
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%  { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100%{ transform: scaleY(0); transform-origin: bottom; }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .hero__photo { width: 45%; }
  .hero__corner-text { display: none; }
  .hero__geo--3, .hero__geo--4 { display: none; }
  .hero__buttons { flex-direction: column; align-items: center; }
  .hero__buttons .btn { width: 100%; max-width: 300px; }
}

/* ========================================
   MARQUEE
======================================== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.marquee__track {
  display: inline-flex;
  gap: 12px;
  animation: marquee 30s linear infinite;
}
.marquee__img {
  height: 240px;
  width: auto;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  filter: grayscale(100%);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ========================================
   ABOUT
======================================== */
.about {
  background: var(--white);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__lead {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--black);
}

.about__text {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.85;
  margin-bottom: 32px;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--gray-200);
  border: 2px solid var(--gray-200);
}

.stat-card {
  background: var(--white);
  padding: 36px 28px;
  text-align: center;
}

.stat-card__number {
  font-family: 'Inter', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-card__number span {
  font-size: 1.4rem;
}

.stat-card__label {
  font-size: 0.8rem;
  color: var(--gray-600);
  letter-spacing: 0.05em;
}

/* ========================================
   SERVICE
======================================== */
.service {
  background: var(--gray-100);
}

.service__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 64px;
}

.service-card {
  padding: 48px 44px;
  position: relative;
}
.service-card--dark {
  background: var(--black);
  color: var(--white);
}
.service-card--light {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--gray-200);
}

.service-card__number {
  font-family: 'Inter', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  opacity: 0.12;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}
.service-card--dark .service-card__number { color: var(--white); }

.service-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.service-card__en {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 20px;
}

.service-card__text {
  font-size: 0.9rem;
  line-height: 1.8;
  opacity: 0.8;
  margin-bottom: 24px;
}

.service-card__list {
  margin-bottom: 32px;
}
.service-card__list li {
  font-size: 0.875rem;
  padding: 8px 0;
  border-bottom: 1px solid;
  opacity: 0.7;
}
.service-card--dark .service-card__list li { border-color: rgba(255,255,255,0.15); }
.service-card--light .service-card__list li { border-color: var(--gray-200); }

/* Flow */
.service__flow {
  background: var(--white);
  padding: 48px;
  border: 1px solid var(--gray-200);
}

.service__flow-title {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gray-800);
}

.flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  row-gap: 24px;
}

.flow-step {
  text-align: center;
  min-width: 100px;
}
.flow-step__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}
.flow-step__text {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--gray-800);
}
.flow-step__text small {
  font-size: 0.7rem;
  color: var(--gray-400);
}

.flow-arrow {
  font-size: 1.2rem;
  color: var(--gray-400);
  padding: 0 8px;
  margin-bottom: 24px;
}

/* ========================================
   WORKS
======================================== */
.works {
  background: var(--white);
  scroll-margin-top: var(--header-h);
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--gray-200);
  border: 2px solid var(--gray-200);
}

.work-card {
  background: var(--white);
  transition: background var(--transition);
  cursor: pointer;
}
.work-card:hover { background: var(--gray-100); }

.work-card__image {
  height: 200px;
  background: var(--gray-200);
  /* placeholder — replace with real images */
}

.work-card__body {
  padding: 24px;
}

.work-card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: var(--black);
  color: var(--white);
  padding: 3px 10px;
  margin-bottom: 12px;
}

.work-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.work-card__text {
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* ========================================
   RECRUIT
======================================== */
.recruit {
  background: var(--gray-100);
}

.recruit__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.recruit__message-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.recruit__message-text {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.85;
  margin-bottom: 36px;
}

.recruit__positions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.position-card {
  background: var(--white);
  padding: 24px 28px;
  border-left: 4px solid var(--black);
  transition: transform var(--transition);
}
.position-card:hover { transform: translateX(4px); }

.position-card__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 6px;
}

.position-card__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}

.position-card__type {
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* ========================================
   NEWS
======================================== */
.news {
  background: var(--white);
}

.news__list {
  border-top: 1px solid var(--gray-200);
  margin-bottom: 16px;
}

.news__item {
  border-bottom: 1px solid var(--gray-200);
}

.news__link {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 22px 8px;
  transition: background var(--transition), padding var(--transition);
  flex-wrap: wrap;
}
.news__link:hover {
  background: var(--gray-100);
  padding-left: 16px;
}

.news__date {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--gray-400);
  white-space: nowrap;
  min-width: 90px;
}

.news__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid var(--gray-400);
  color: var(--gray-600);
  padding: 2px 10px;
  white-space: nowrap;
}

.news__title {
  font-size: 0.95rem;
  color: var(--black);
  flex: 1;
  min-width: 200px;
}

/* ========================================
   CONTACT
======================================== */
.contact {
  position: relative;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
}

.contact__bg {
  position: absolute;
  inset: 0;
  background: var(--black);
  z-index: 0;
}
.contact__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

.contact__inner {
  position: relative;
  z-index: 1;
}

.contact__lead {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 44px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contact__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.contact__tel {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}
.contact__tel strong {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
}

/* ========================================
   RECRUIT MODAL
======================================== */
.recruit-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
}
.recruit-modal.is-open {
  display: block;
}
.recruit-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}
.recruit-modal__dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(640px, 92vw);
  max-height: 88vh;
  background: var(--white);
  border-radius: 4px;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.recruit-modal__close {
  position: sticky;
  top: 0;
  float: right;
  margin: 16px 16px 0 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.recruit-modal__inner {
  padding: 24px 32px 40px;
}
.recruit-modal__head {
  margin-bottom: 24px;
}
.recruit-modal__type-badge {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.recruit-modal__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.4;
}
.recruit-modal__body h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--black);
  margin: 20px 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--black);
}
.recruit-modal__body p {
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.8;
  white-space: pre-wrap;
}
.recruit-modal__footer {
  margin-top: 32px;
  text-align: center;
}
.recruit-modal__btn {
  display: inline-block;
  min-width: 260px;
}

@media (max-width: 480px) {
  .recruit-modal__inner { padding: 16px 20px 32px; }
  .recruit-modal__title { font-size: 1.2rem; }
}

/* ========================================
   FOOTER
======================================== */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 72px 0 32px;
}

.footer__inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 var(--inner-px);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}

.footer__logo {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.footer__tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.footer__address {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer__nav-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer__nav-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__nav-col a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer__nav-col a:hover { color: var(--white); }

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

.footer__copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  font-family: 'Inter', sans-serif;
}

.footer__policy {
  display: flex;
  gap: 24px;
}
.footer__policy a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}
.footer__policy a:hover { color: var(--white); }

/* ========================================
   INTRO ANIMATION
======================================== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: introFadeOut 0.8s ease forwards 3.2s;
  pointer-events: none;
}

.intro__text {
  width: clamp(280px, 50vw, 560px);
  height: auto;
  /* Mask: 200%幅で右半分（透明）→左半分（表示）へスライド */
  -webkit-mask-image: linear-gradient(to right, #000 50%, transparent 52%);
  mask-image: linear-gradient(to right, #000 50%, transparent 52%);
  -webkit-mask-size: 200% 100%;
  mask-size: 200% 100%;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  animation: drawText 2.2s cubic-bezier(0.4, 0, 0.25, 1) forwards 0.4s;
}

@keyframes drawText {
  from {
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
  }
  to {
    -webkit-mask-position: 0% 0;
    mask-position: 0% 0;
  }
}

@keyframes introFadeOut {
  from {
    opacity: 1;
    visibility: visible;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ========================================
   HEADER — ACTIVE LINK
======================================== */
.header__nav-link--active {
  color: var(--black);
  font-weight: 600;
}
.header__nav-link--active::after {
  width: 100%;
}

/* ========================================
   PAGE HERO (サブページ共通)
======================================== */
.page-hero {
  background: var(--black);
  padding: 160px 0 80px;
}
.page-hero__inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 var(--inner-px);
}
.page-hero__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
}
.page-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ========================================
   BREADCRUMB
======================================== */
.breadcrumb {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 0;
}
.breadcrumb__inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 var(--inner-px);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--gray-600);
}
.breadcrumb__inner a {
  color: var(--gray-600);
  transition: color var(--transition);
}
.breadcrumb__inner a:hover { color: var(--black); }
.breadcrumb__inner span:last-child { color: var(--black); font-weight: 500; }

/* ========================================
   PHILOSOPHY (経営理念)
======================================== */
.philosophy__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--gray-200);
  border: 2px solid var(--gray-200);
}

.philosophy-card {
  background: var(--white);
  padding: 44px 36px;
}
.philosophy-card--primary {
  background: var(--black);
  color: var(--white);
}

.philosophy-card__en {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 12px;
}

.philosophy-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: 16px;
}

.philosophy-card__text {
  font-size: 0.875rem;
  line-height: 1.85;
  opacity: 0.75;
}

/* ========================================
   MESSAGE (代表メッセージ)
======================================== */
.message {
  background: var(--gray-100);
}

.message__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

.message__photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--gray-400);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 16px;
}

.message__name {
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-bottom: 2px;
}
.message__name-ja {
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
}

.message__text {
  font-size: 0.95rem;
  line-height: 1.95;
  color: var(--gray-800);
  margin-bottom: 20px;
}

.message__signature {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

/* ========================================
   COMPANY TABLE (会社情報)
======================================== */
.company-info {
  background: var(--white);
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--black);
}

.company-table th,
.company-table td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9rem;
  line-height: 1.7;
  vertical-align: top;
}

.company-table th {
  width: 200px;
  font-weight: 600;
  color: var(--black);
  background: var(--gray-100);
  white-space: nowrap;
}

.company-table td {
  color: var(--gray-800);
}

/* ========================================
   TIMELINE (会社沿革)
======================================== */
.history {
  background: var(--gray-100);
}

.timeline {
  position: relative;
  padding-left: 120px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 80px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--gray-200);
}

.timeline__item {
  position: relative;
  display: flex;
  gap: 40px;
  padding: 0 0 40px;
  align-items: flex-start;
}
.timeline__item:last-child { padding-bottom: 0; }

.timeline__year {
  position: absolute;
  left: -120px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--black);
  width: 100px;
  text-align: right;
  padding-top: 3px;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -44px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-400);
  border: 2px solid var(--white);
}
.timeline__item--current::before {
  background: var(--black);
  width: 14px;
  height: 14px;
  left: -46px;
  top: 6px;
}

.timeline__body {
  flex: 1;
}

.timeline__month {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.timeline__event {
  font-size: 0.95rem;
  color: var(--gray-800);
  line-height: 1.6;
}

/* ========================================
   RESPONSIVE — TABLET (1024px)
======================================== */
@media (max-width: 1024px) {
  .about__grid {
    gap: 48px;
  }
  .service__grid {
    grid-template-columns: 1fr;
  }
  .works__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer__nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   RESPONSIVE — MOBILE (768px)
======================================== */
@media (max-width: 768px) {
  /* Header */
  .header__nav { display: none; }
  .header__hamburger { display: flex; }

  /* Hero */
  .hero__title { letter-spacing: -0.02em; }
  .hero__lead br { display: none; }
  .hero__buttons { flex-direction: column; }
  .hero__buttons .btn { width: 100%; }

  /* About */
  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about__stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat-card { padding: 24px 16px; }
  .stat-card__number { font-size: 2rem; }

  /* Service */
  .service-card { padding: 36px 28px; }
  .service__flow { padding: 32px 20px; }
  .flow-steps { gap: 0; row-gap: 16px; }
  .flow-arrow { display: none; }
  .flow-steps { flex-direction: column; }

  /* Works */
  .works__grid {
    grid-template-columns: 1fr;
  }
  .work-card__image { height: 160px; }

  /* Recruit */
  .recruit__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* News */
  .news__link {
    gap: 10px;
    padding: 18px 8px;
  }
  .news__date { min-width: auto; }

  /* Contact */
  .contact { padding: 80px 0; }
  .contact__buttons { flex-direction: column; align-items: center; }
  .contact__buttons .btn { width: 100%; max-width: 320px; }

  /* Footer */
  .footer__nav {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========================================
   RESPONSIVE — SMALL (480px)
======================================== */
@media (max-width: 480px) {
  .about__stats { grid-template-columns: 1fr 1fr; }
  .footer__nav { grid-template-columns: 1fr; }
  .works__grid { grid-template-columns: 1fr; }
  .news__tag { display: none; }
  .company-table th { width: auto; white-space: normal; }
}

/* ========================================
   RESPONSIVE — COMPANY PAGE (768px)
======================================== */
@media (max-width: 768px) {
  /* Page Hero */
  .page-hero { padding: 120px 0 56px; }

  /* Philosophy */
  .philosophy__grid { grid-template-columns: 1fr; }
  .philosophy-card { padding: 32px 24px; }

  /* Message */
  .message__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .message__photo-placeholder { aspect-ratio: 4 / 3; }

  /* Company Table */
  .company-table th,
  .company-table td { padding: 14px 16px; font-size: 0.85rem; }
  .company-table th { width: 120px; }
  .company-table tr { display: grid; grid-template-columns: 1fr; }
  .company-table th { border-bottom: none; padding-bottom: 4px; }
  .company-table td { padding-top: 4px; background: none; }

  /* Timeline */
  .timeline { padding-left: 80px; }
  .timeline::before { left: 52px; }
  .timeline__year { left: -80px; width: 60px; font-size: 0.75rem; }
  .timeline__item::before { left: -32px; }
  .timeline__item--current::before { left: -34px; }
}
