:root {
  --ink: #121313;
  --muted: #6f7172;
  --line: #e6e0d5;
  --paper: #f7f4ee;
  --white: #ffffff;
  --sage: #586d62;
  --clay: #b58b5f;
  --charcoal: #171b1b;
  --soft: #ebe5da;
  --mist: #dde5e1;
  --radius: 8px;
  --shadow: 0 24px 60px rgba(20, 23, 23, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Noto Sans JP", sans-serif;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.48) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.36) 1px, transparent 1px);
  background-size: 72px 72px;
}

img,
video {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(232, 228, 220, 0.9);
  background: rgba(248, 247, 243, 0.9);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1160px, calc(100% - 36px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 238px;
}

.brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  padding: 3px;
  border: 1px solid rgba(181, 139, 95, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.brand strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--clay);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #34383a;
  font-size: 14px;
  min-width: 0;
}

.nav-links a {
  padding: 24px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--clay);
  border-bottom-color: var(--clay);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.lang-toggle button {
  width: 42px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}

.lang-toggle button.active {
  background: var(--charcoal);
  color: var(--white);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--charcoal);
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--white);
  font-size: 14px;
  white-space: nowrap;
}

.button.secondary {
  background: transparent;
  color: var(--charcoal);
}

.button.light {
  border-color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 17, 17, 0.78), rgba(14, 17, 17, 0.34) 54%, rgba(14, 17, 17, 0.08));
  z-index: 1;
}

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

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 96px 0 72px;
}

.eyebrow {
  color: var(--sage);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #e7d5be;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(38px, 7vw, 74px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.35;
}

.lead {
  max-width: 720px;
  color: #f4eee6;
  font-size: clamp(16px, 2vw, 20px);
  overflow-wrap: anywhere;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero .button.secondary {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.section {
  padding: 92px 0;
}

.section.compact {
  padding: 62px 0;
}

.container {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  min-width: 0;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.intro-text p,
.muted {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.service-grid,
.case-grid,
.stats-grid,
.process-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
}

.case-grid {
  grid-template-columns: repeat(3, 1fr);
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
}

.process-grid {
  grid-template-columns: repeat(4, 1fr);
}

.contact-grid {
  grid-template-columns: 1.1fr 0.9fr;
  gap: 38px;
}

.card,
.stat,
.process-step,
.contact-panel,
.price-card,
.process-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.card {
  overflow: hidden;
}

.card figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card img,
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover img {
  transform: scale(1.04);
}

.card-body,
.process-step,
.contact-panel,
.price-card,
.process-card .process-copy {
  padding: 24px;
}

.tag {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.image-pair {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 14px;
  align-items: end;
}

.image-pair img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-pair img:first-child {
  aspect-ratio: 4 / 5;
}

.image-pair img:last-child {
  aspect-ratio: 4 / 3;
}

.band {
  background: var(--charcoal);
  color: var(--white);
}

.band .muted {
  color: #c8ccc7;
}

.stat {
  padding: 22px;
}

.stat strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
}

.gallery {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 14px;
  align-items: stretch;
}

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

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--charcoal);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card .card-body {
  padding: 20px;
}

.gallery img {
  min-height: 260px;
  border-radius: var(--radius);
}

.gallery img:nth-child(2) {
  margin-top: 46px;
}

.page-hero {
  padding: 96px 0 54px;
  background: linear-gradient(135deg, #ede6dc, #f8f6f1 52%, #dfe7e1);
}

.page-hero h1 {
  color: var(--ink);
  font-size: clamp(38px, 6vw, 66px);
}

.page-hero .lead {
  color: var(--muted);
}

.wide-image {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.feature-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.feature-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.price-card {
  display: flex;
  flex-direction: column;
  min-height: 265px;
}

.price-card strong {
  display: block;
  margin: 8px 0 14px;
  font-size: 28px;
  line-height: 1;
}

.price-note {
  margin-top: auto;
  padding-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.notice {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.process-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.process-card {
  overflow: hidden;
  color: var(--ink);
}

.process-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.process-card .muted {
  color: var(--muted);
}

.process-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--clay);
  font-weight: 700;
}

.contact-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-list li {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  padding: 38px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--white);
  font-size: 13px;
}

.footer-inner {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

[data-lang="ja"] {
  display: none;
}

body.lang-ja [data-lang="zh"] {
  display: none;
}

body.lang-ja [data-lang="ja"] {
  display: inline;
}

body.lang-ja p[data-lang="ja"],
body.lang-ja div[data-lang="ja"],
body.lang-ja section[data-lang="ja"],
body.lang-ja ul[data-lang="ja"],
body.lang-ja li[data-lang="ja"] {
  display: block;
}

@media (max-width: 900px) {
  .nav {
    display: grid;
    grid-template-columns: auto auto;
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
  }

  .nav-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
    margin-left: 0;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-links a {
    padding: 6px 0 10px;
    white-space: nowrap;
  }

  .hero {
    min-height: 680px;
  }

  .split,
  .contact-grid,
  .service-grid,
  .case-grid,
  .stats-grid,
  .process-grid,
  .gallery,
  .pricing-grid,
  .process-media-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .gallery img:nth-child(2) {
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .nav {
    width: min(100% - 28px, 1160px);
    grid-template-columns: minmax(0, 1fr);
  }

  .brand {
    min-width: auto;
  }

  .brand span {
    display: block;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 9px;
  }

  .nav-actions .button {
    display: none;
  }

  .lang-toggle button {
    width: 36px;
  }

  h1 {
    font-size: 30px;
    line-height: 1.18;
    width: min(100%, 320px);
    max-width: calc(100vw - 44px);
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  p {
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .hero-inner,
  .container,
  .footer-inner {
    width: min(360px, calc(100% - 28px));
  }

  .section {
    padding: 68px 0;
  }

  .page-hero {
    padding: 70px 0 42px;
  }

  .image-pair {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}
