:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f6f5f2;
  --color-panel: #ffffff;
  --color-text: #1c1c1c;
  --color-muted: #6b6b6b;
  --color-border: rgba(0, 0, 0, 0.1);
  --color-accent: #9c7a3f;
  --color-dark: #16161a;
  --color-dark-muted: #a3a3a8;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 100;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(72px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Feature rows: media and text slide in from opposite sides */
.feature-media.reveal {
  transform: translateX(-64px);
}

.feature-row:nth-child(even) .feature-media.reveal {
  transform: translateX(64px);
}

.feature-text.reveal {
  transform: translateX(64px);
  transition-delay: 0.15s;
}

.feature-row:nth-child(even) .feature-text.reveal {
  transform: translateX(-64px);
}

.feature-media.reveal.is-visible,
.feature-text.reveal.is-visible {
  transform: none;
}

/* Section title underline draws in */
.section-title .heading {
  position: relative;
}

.section-title .heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -14px;
  height: 2px;
  width: 100%;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.section-title.is-visible .heading::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color: var(--color-text);
  line-height: 1.9;
  word-break: keep-all;
  overflow-wrap: break-word;
  background: var(--color-bg);
  font-weight: 400;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  z-index: 10;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--color-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

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

.logo {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text);
  letter-spacing: 0.12em;
}

.nav a {
  color: var(--color-muted);
  text-decoration: none;
  margin-left: 40px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--color-accent);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: #000 url('../assets/hero-tokyo.jpg') center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  top: -12%;
  left: 0;
  right: 0;
  height: 124%;
  background: inherit;
  filter: grayscale(100%) contrast(1.15) brightness(0.55);
  transform: translateY(var(--parallax-y, 0px)) scale(var(--parallax-scale, 1));
  will-change: transform;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero::after {
    transform: none;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, rgba(10, 11, 13, 0.94) 0%, rgba(10, 11, 13, 0.7) 45%, rgba(10, 11, 13, 0.3) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 96px 24px;
  max-width: 640px;
}

.hero-inner .hero-eyebrow.reveal {
  transition-delay: 0.1s;
}

.hero-inner h1.reveal {
  transition-delay: 0.25s;
}

.hero-inner .hero-lead.reveal {
  transition-delay: 0.4s;
}

.hero-eyebrow {
  color: #cbaa6b;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0 0 20px;
  font-size: 0.78rem;
  padding-left: 2px;
}

.hero h1 {
  font-size: 2.3rem;
  font-weight: 400;
  line-height: 1.6;
  margin: 0 0 28px;
  color: #fff;
  letter-spacing: 0.02em;
}

.hero-lead {
  color: #d8d8db;
  font-size: 0.95rem;
  line-height: 2;
  margin: 0;
  font-weight: 300;
}

/* Sections */
.section {
  padding: 100px 0;
  border-top: 1px solid var(--color-border);
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-title {
  margin: 0 0 56px;
}

.section-title .eyebrow {
  display: block;
  color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title .heading {
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.04em;
}

/* Profile table */
.profile-table {
  width: 100%;
  border-collapse: collapse;
}

.profile-table th,
.profile-table td {
  text-align: left;
  padding: 22px 16px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.profile-table th {
  width: 180px;
  color: var(--color-muted);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.profile-table td {
  color: var(--color-text);
  font-weight: 400;
}

.purpose-list {
  margin: 0;
  padding-left: 1.1em;
}

.purpose-list li {
  margin-bottom: 8px;
}

/* Business feature list */
.feature-list {
  display: flex;
  flex-direction: column;
}

.feature-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: center;
  gap: 56px;
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
}

.feature-row:first-child {
  padding-top: 0;
}

.feature-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.feature-row:nth-child(even) {
  grid-template-columns: 7fr 5fr;
}

.feature-row:nth-child(even) .feature-media {
  order: 2;
}

.feature-row:nth-child(even) .feature-text {
  order: 1;
}

.feature-media {
  overflow: hidden;
}

.feature-media img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  filter: grayscale(90%) contrast(1.05) brightness(1.02);
  transition: filter 0.6s ease, transform 0.6s ease;
}

.feature-row:hover .feature-media img {
  filter: grayscale(0%) contrast(1.05);
  transform: scale(1.03);
}

.feature-text h3 {
  margin: 0 0 18px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.feature-text p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 2;
  font-weight: 400;
  max-width: 46em;
}

/* Contact */
.contact-box {
  border: 1px solid var(--color-border);
  border-left: 2px solid var(--color-accent);
  padding: 40px;
  max-width: 640px;
  background: var(--color-bg-alt);
}

.contact-box > p {
  color: var(--color-muted);
  font-weight: 400;
  margin: 0 0 20px;
}

/* Contact form */
.contact-form {
  margin-top: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-group .required {
  color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 600;
  margin-left: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  line-height: 1.7;
}

/* Honeypot field: hidden from real visitors, left for bots to fill in */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.btn-submit {
  display: inline-block;
  padding: 14px 40px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--color-text);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-submit:hover {
  background: var(--color-accent);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-result {
  margin: 16px 0 0;
  font-size: 0.85rem;
  min-height: 1.2em;
}

.form-result.is-success {
  color: #2e7d4f;
}

.form-result.is-error {
  color: #b3423c;
}

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: var(--color-dark-muted);
  font-weight: 300;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding: 64px 24px;
}

.footer-logo {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #fff;
}

.footer-nav {
  display: flex;
  gap: 32px;
}

.footer-nav a {
  color: var(--color-dark-muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 24px;
  font-size: 0.82rem;
}

.footer-legal {
  margin: 0;
  color: #d8d8db;
  letter-spacing: 0.02em;
}

.copyright {
  margin: 0;
  color: var(--color-dark-muted);
  letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 720px) {
  .nav a {
    margin-left: 20px;
    font-size: 0.78rem;
  }

  .hero {
    min-height: 460px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .section {
    padding: 64px 0;
  }

  .feature-row,
  .feature-row:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 0;
  }

  .feature-row:nth-child(even) .feature-media,
  .feature-row:nth-child(even) .feature-text {
    order: initial;
  }

  .feature-media img {
    height: 200px;
  }

  .profile-table th {
    width: 120px;
    display: block;
    border-bottom: none;
    padding-bottom: 4px;
  }

  .profile-table td {
    display: block;
    padding-top: 0;
  }
}
