:root {
  --bg: #0f0f0f;
  --fg: #f5f2ed;
  --fg-dim: #c8c3bc;
  --fg-dimmer: #888480;
  --border: #2a2a2a;
  --serif: 'Cormorant Garamond', 'Noto Serif JP', serif;
  --sans: 'Outfit', sans-serif;
  --jp: 'Noto Serif JP', serif;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--jp);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Navigation ── */
nav {
  position: static;
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-contact-fixed {
  position: fixed;
  top: 32px;
  right: 48px;
  z-index: 100;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 200px;
  width: auto;
  opacity: 0.92;
}
.footer-logo-img {
  height: 16px;
  width: auto;
  opacity: 0.35;
  filter: brightness(1);
}

.nav-contact {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-contact:hover {
  color: var(--fg);
}

/* ── Fade-in animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.35s; }
.fade-in-delay-4 { transition-delay: 0.5s; }

/* ── Hero ── */
#hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 48px;
}

.hero-tagline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5.5vw, 76px);
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: center;
  color: var(--fg);
}

.hero-sub {
  margin-top: 40px;
  font-family: var(--sans);
  font-weight: 200;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--fg-dim);
  text-align: center;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-scroll span {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--fg-dimmer);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--fg-dimmer), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6) translateY(-8px); }
  50% { opacity: 1; transform: scaleY(1) translateY(0); }
}

/* ── Section base ── */
section {
  padding: 128px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 9.5px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--fg-dimmer);
  margin-bottom: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-label::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--fg-dimmer);
}

/* ── What we do ── */
#about {
  border-top: 1px solid var(--border);
}

.about-headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--fg);
  margin-bottom: 56px;
  max-width: 680px;
}

.about-body {
  max-width: 560px;
}

.about-body p {
  font-family: var(--jp);
  font-weight: 300;
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.06em;
  color: #dedad4;
  margin-bottom: 28px;
}

.about-body p:last-child {
  margin-bottom: 0;
  color: var(--fg);
  font-weight: 400;
}

/* ── Service ── */
#service {
  border-top: 1px solid var(--border);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.service-item {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  padding-right: 64px;
}

.service-item:nth-child(odd) {
  border-right: 1px solid var(--border);
  padding-right: 64px;
}

.service-item:nth-child(even) {
  padding-left: 64px;
  padding-right: 0;
}

.service-item:last-child,
.service-item:nth-last-child(2) {
  border-bottom: none;
}

.service-num {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--fg-dimmer);
  margin-bottom: 20px;
}

.service-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--fg);
  margin-bottom: 16px;
}

.service-desc {
  font-family: var(--jp);
  font-weight: 300;
  font-size: 13px;
  line-height: 2.0;
  letter-spacing: 0.05em;
  color: var(--fg-dim);
}

/* ── Profile ── */
#profile {
  border-top: 1px solid var(--border);
}

.profile-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.profile-name-block {
  position: sticky;
  top: 120px;
}

.profile-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--fg);
  margin-bottom: 12px;
}

.profile-title {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.profile-bio {
  font-family: var(--jp);
  font-weight: 300;
  font-size: 14.5px;
  line-height: 2.2;
  letter-spacing: 0.06em;
  color: #d8d3cc;
}

.profile-bio strong {
  font-weight: 400;
  color: var(--fg);
}

/* ── Profile 追加スタイル ── */
.profile-company-label {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 9.5px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--fg-dimmer);
  margin-bottom: 8px;
}
.profile-company {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(16px, 2vw, 26px);
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--fg);
  margin-bottom: 8px;
}
.profile-founded {
  font-family: var(--jp);
  font-weight: 300;
  font-size: 13px;
  color: var(--fg-dim);
  margin-bottom: 40px;
  letter-spacing: 0.06em;
}
.profile-role {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--fg);
  margin-bottom: 20px;
}

/* ── Google Form Wrapper ── */
.google-form-wrapper {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}
.google-form-wrapper iframe {
  border-radius: 2px;
  filter: invert(1) hue-rotate(180deg);
  opacity: 0.88;
}

/* ── Freelancers ── */
#freelance {
  border-top: 1px solid var(--border);
  padding-top: 96px;
  padding-bottom: 96px;
}

.freelance-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.freelance-text h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--fg);
  margin-bottom: 24px;
}

.freelance-text p {
  font-family: var(--jp);
  font-weight: 300;
  font-size: 14px;
  line-height: 2.1;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  max-width: 480px;
}

.freelance-cta {
  flex-shrink: 0;
}

.btn-outline {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 200;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  border: 1px solid var(--fg-dimmer);
  padding: 16px 36px;
  transition: border-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.btn-outline:hover {
  border-color: var(--fg);
}

/* ── Contact ── */
#contact {
  border-top: 1px solid var(--border);
  text-align: center;
  padding-top: 140px;
  padding-bottom: 140px;
}

.contact-headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4.5vw, 64px);
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--fg);
  margin-bottom: 20px;
}

.contact-sub {
  font-family: var(--jp);
  font-weight: 300;
  font-size: 14px;
  line-height: 2.0;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  margin-bottom: 56px;
}

.btn-primary {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 200;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--fg);
  text-decoration: none;
  padding: 18px 52px;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  opacity: 0.85;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-copy {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg-dimmer);
}

/* ── Divider full-width ── */
.full-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  nav {
    padding: 24px 24px;
  }

  section {
    padding: 80px 24px;
  }

  #hero {
    padding: 0 24px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-item {
    padding: 40px 0 !important;
    border-right: none !important;
    padding-left: 0 !important;
    border-bottom: 1px solid var(--border) !important;
  }

  .service-item:last-child {
    border-bottom: none !important;
  }

  .profile-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .profile-name-block {
    position: static;
  }

  .freelance-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 32px 24px;
  }

  #contact {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}
