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

:root {
  --color-bg:       #fafaf8;
  --color-surface:  #ffffff;
  --color-ink:      #1a1a1a;
  --color-ink-mid:  #555555;
  --color-ink-soft: #888888;
  --color-accent:   #1a3a5c;
  --color-accent-light: #2a5285;
  --color-border:   #e8e8e4;
  --color-cta:      #1a3a5c;
  --color-cta-hover:#2a5285;

  --font-sans: 'Inter', 'Noto Sans JP', sans-serif;
  --font-jp:   'Noto Sans JP', 'Inter', sans-serif;

  --max-w: 1100px;
  --section-pad: 120px;
  --section-pad-sm: 72px;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-jp);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

/* =============================================
   UTILITIES
   ============================================= */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: var(--section-pad) 0;
}

.pc-only {
  display: block;
}

/* =============================================
   FADE-IN ANIMATION
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   SECTION HEADER
   ============================================= */
.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-ink);
  margin-bottom: 20px;
  line-height: 1.3;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--color-ink-mid);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.9;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 36px;
  border-radius: 2px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1.5px solid transparent;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--color-cta);
  color: #fff;
  border-color: var(--color-cta);
}
.btn-primary:hover {
  background-color: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(26,58,92,0.2);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-cta);
  border-color: var(--color-cta);
}
.btn-outline:hover {
  background-color: var(--color-cta);
  color: #fff;
  transform: translateY(-1px);
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  padding: 16px 0;
  box-shadow: 0 1px 0 var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-en {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  transition: color 0.35s ease;
  line-height: 1;
}

.logo-ja {
  font-size: 0.65rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  transition: color 0.35s ease;
  line-height: 1;
  letter-spacing: 0.04em;
}

.site-header.scrolled .logo-en { color: var(--color-ink); }
.site-header.scrolled .logo-ja { color: var(--color-ink-soft); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s ease;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a:focus::after { width: 100%; }

.main-nav a:hover { color: rgba(255,255,255,1); }

.site-header.scrolled .main-nav a {
  color: var(--color-ink-mid);
}
.site-header.scrolled .main-nav a:hover {
  color: var(--color-ink);
}

.nav-cta {
  padding: 9px 22px;
  border: 1.5px solid rgba(255,255,255,0.6) !important;
  border-radius: 2px;
  color: rgba(255,255,255,0.9) !important;
  transition: all 0.25s ease !important;
}
.nav-cta:hover {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
}
.nav-cta::after { display: none !important; }

.site-header.scrolled .nav-cta {
  border-color: var(--color-cta) !important;
  color: var(--color-cta) !important;
}
.site-header.scrolled .nav-cta:hover {
  background: var(--color-cta) !important;
  color: #fff !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: rgba(255,255,255,0.9);
  transition: all 0.3s ease;
}

.site-header.scrolled .hamburger span {
  background: var(--color-ink);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

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

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 38, 0.72) 0%,
    rgba(10, 22, 38, 0.45) 60%,
    rgba(10, 22, 38, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-top: 80px;
}

.hero-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: 0.03em;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 44px;
  line-height: 2;
  font-weight: 300;
}

/* Scroll down arrow */
.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-down span {
  display: block;
  width: 16px;
  height: 16px;
  border-right: 1.5px solid rgba(255,255,255,0.6);
  border-bottom: 1.5px solid rgba(255,255,255,0.6);
  transform: rotate(45deg);
  animation: scrollBounce 1.8s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(-4px); opacity: 0.4; }
  50%       { transform: rotate(45deg) translateY(4px);  opacity: 1; }
}

/* =============================================
   SERVICES
   ============================================= */
.services {
  background: var(--color-surface);
}

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

/* Last 2 items centered */
.services-grid .service-card:nth-child(4) { grid-column: 1 / 2; }
.services-grid .service-card:nth-child(5) { grid-column: 2 / 3; }

.service-card {
  padding: 48px 40px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  background: var(--color-bg);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
  z-index: 1;
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  color: var(--color-accent);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
  color: var(--color-ink);
}

.service-card p {
  font-size: 0.875rem;
  color: var(--color-ink-mid);
  line-height: 1.95;
}

/* =============================================
   SPLIT SECTION
   ============================================= */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.split-image {
  overflow: hidden;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.split-image:hover img {
  transform: scale(1.03);
}

.split-text {
  background: var(--color-ink);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 72px;
}

.split-text .section-label {
  color: rgba(255,255,255,0.45);
  margin-bottom: 24px;
}

.split-text h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.03em;
  margin-bottom: 28px;
  color: #ffffff;
}

.split-text p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 2;
}

/* =============================================
   WHY
   ============================================= */
.why {
  background: var(--color-bg);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 72px;
}

.why-item {
  border-top: 1px solid var(--color-border);
  padding-top: 40px;
}

.why-number {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  display: block;
  margin-bottom: 16px;
}

.why-item h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  color: var(--color-ink);
}

.why-item p {
  font-size: 0.875rem;
  color: var(--color-ink-mid);
  line-height: 1.95;
}

/* =============================================
   IMAGE BAND
   ============================================= */
.image-band {
  overflow: hidden;
}

.image-band-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 400px;
}

.image-band-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s ease;
}

.image-band-img:hover {
  transform: scale(1.04);
}

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

.about-table-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.about-table {
  width: 100%;
  border-collapse: collapse;
}

.about-table th,
.about-table td {
  padding: 22px 24px;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.about-table th {
  width: 160px;
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.about-table td {
  color: var(--color-ink-mid);
  line-height: 1.8;
}

.about-table tr:first-child th,
.about-table tr:first-child td {
  border-top: 1px solid var(--color-border);
}

.about-table a {
  color: var(--color-accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.about-table a:hover {
  border-bottom-color: var(--color-accent);
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  background: var(--color-bg);
}

.contact-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.contact-inner .section-label {
  margin-bottom: 20px;
}

.contact-inner h2 {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.4;
  color: var(--color-ink);
  margin-bottom: 20px;
}

.contact-desc {
  font-size: 0.9rem;
  color: var(--color-ink-mid);
  margin-bottom: 48px;
  line-height: 1.9;
}

.contact-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.contact-info {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--color-ink-soft);
}

.contact-info a {
  color: var(--color-ink-mid);
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-info a:hover {
  color: var(--color-ink);
  border-bottom-color: var(--color-ink);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--color-ink);
  color: rgba(255,255,255,0.5);
  padding: 60px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.footer-logo-en {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
}

.footer-logo-ja {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.45);
}

.footer-address {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.footer-copy {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  margin-top: 8px;
}

/* =============================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================= */
@media (max-width: 900px) {
  :root {
    --section-pad: 80px;
  }

  .pc-only { display: none; }

  /* Header */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--color-surface);
    box-shadow: -4px 0 32px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 99;
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }

  .main-nav a {
    font-size: 1rem;
    color: var(--color-ink-mid) !important;
  }

  .main-nav a:hover {
    color: var(--color-ink) !important;
  }

  .nav-cta {
    border-color: var(--color-cta) !important;
    color: var(--color-cta) !important;
  }

  .hamburger {
    display: flex;
    z-index: 101;
  }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid .service-card:nth-child(4),
  .services-grid .service-card:nth-child(5) {
    grid-column: auto;
  }

  /* Split */
  .split-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .split-image {
    height: 360px;
  }

  .split-text {
    padding: 60px 40px;
  }

  /* Why */
  .why-grid {
    gap: 40px;
  }

  /* Image band */
  .image-band-inner {
    height: 280px;
  }

  /* About */
  .about-table th {
    width: 120px;
  }
}

/* =============================================
   RESPONSIVE — MOBILE (≤ 600px)
   ============================================= */
@media (max-width: 600px) {
  :root {
    --section-pad: 64px;
  }

  .container {
    padding: 0 20px;
  }

  /* Hero */
  .hero-content {
    padding-top: 100px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 36px 28px;
  }

  /* Why */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Image band */
  .image-band-inner {
    grid-template-columns: 1fr;
    height: auto;
  }

  .image-band-img {
    height: 240px;
  }

  /* About */
  .about-table th,
  .about-table td {
    padding: 16px 12px;
    font-size: 0.82rem;
  }

  .about-table th {
    width: 88px;
  }

  /* Contact */
  .contact-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .contact-info {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  /* Split */
  .split-text {
    padding: 48px 28px;
  }

  .section-header {
    margin-bottom: 48px;
  }
}
