:root {
  --bg: #071114;
  --bg-deep: #020709;
  --bg-mid: #0c2025;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-strong: rgba(255, 255, 255, 0.11);
  --line: rgba(129, 216, 208, 0.22);
  --text: #f4fbfa;
  --muted: rgba(244, 251, 250, 0.78);
  --muted-soft: rgba(244, 251, 250, 0.58);
  --tiffany: #81d8d0;
  --tiffany-deep: #3fbeb4;
  --tiffany-soft: rgba(129, 216, 208, 0.14);
  --gold: #c4a56d;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Noto Sans JP", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(129, 216, 208, 0.18), transparent 26%),
    radial-gradient(circle at left center, rgba(196, 165, 109, 0.12), transparent 24%),
    linear-gradient(180deg, #10252a 0%, var(--bg) 38%, var(--bg-deep) 100%);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.site-header,
.section,
.subhero,
.site-footer {
  padding-left: 5vw;
  padding-right: 5vw;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
  background: linear-gradient(180deg, rgba(4, 11, 13, 0.78) 0%, rgba(4, 11, 13, 0.18) 100%);
  backdrop-filter: blur(10px);
}

.site-header-solid {
  background: rgba(4, 11, 13, 0.88);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tiffany), var(--tiffany-deep));
  color: #07272a;
  font-family: "Cormorant Garamond", serif;
  font-size: 23px;
  font-weight: 700;
}

.logo-text {
  font-size: 0.96rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.desktop-nav,
.header-tools,
.lang-switcher {
  display: flex;
  align-items: center;
}

.desktop-nav {
  gap: 28px;
}

.header-tools {
  gap: 14px;
}

.desktop-nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tiffany), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--text);
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  transform: scaleX(1);
}

.lang-switcher {
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.lang-button,
.menu-toggle,
.close-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.lang-button {
  min-width: 52px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-button.is-active {
  background: linear-gradient(135deg, var(--tiffany), var(--tiffany-deep));
  color: #08282a;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 6px 0;
  background: var(--text);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 8, 10, 0.58);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-panel {
  position: relative;
  width: min(100%, 420px);
  padding: 88px 32px 40px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(129, 216, 208, 0.08), rgba(255, 255, 255, 0.04)),
    rgba(3, 8, 11, 0.96);
  box-shadow: var(--shadow);
}

.lang-switcher-mobile {
  justify-content: center;
  margin-bottom: 20px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 30px;
  line-height: 1;
}

.mobile-menu-links {
  display: grid;
  gap: 16px;
}

.mobile-menu-links a {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
  background: rgba(129, 216, 208, 0.06);
}

.hero,
.subhero {
  position: relative;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(3, 8, 11, 0.7), rgba(3, 8, 11, 0.24)),
    url("../images/kyoto.c08476740505.jpg");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 7vw 9vh auto;
  width: min(28vw, 220px);
  height: min(28vw, 220px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 216, 208, 0.22), transparent 72%);
  filter: blur(14px);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 8, 11, 0.15), rgba(3, 8, 11, 0.56)),
    linear-gradient(120deg, rgba(129, 216, 208, 0.1), transparent 42%);
}

.hero-content,
.section > *,
.subhero > * {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

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

.subhero {
  padding-top: 150px;
  padding-bottom: 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--tiffany);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 1.02;
}

h1 {
  max-width: 900px;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

h3 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.lead,
.feature-card p,
.detail-card p,
.info-card p,
.timeline-item p,
.project-card p,
.contact-panel p,
.stat-card p,
.photo-copy p,
.quote-card p {
  color: var(--muted);
  line-height: 1.9;
}

.lead {
  max-width: 760px;
  margin-top: 24px;
  font-size: 1.02rem;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--tiffany), var(--tiffany-deep));
  color: #08282a;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 18px 34px rgba(63, 190, 180, 0.18);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(129, 216, 208, 0.34);
  color: var(--text);
  box-shadow: none;
}

.section {
  padding-top: 92px;
  padding-bottom: 92px;
}

.section-heading {
  margin-bottom: 34px;
}

.marquee-band {
  padding-top: 24px;
  padding-bottom: 24px;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  color: var(--tiffany);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  animation: marquee 18s linear infinite;
}

.feature-grid,
.service-grid,
.project-grid,
.gallery-grid,
.stats-grid,
.contact-layout,
.photo-grid,
.photo-strip {
  display: grid;
  gap: 22px;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.photo-grid-home {
  grid-template-columns: 1.3fr 0.85fr 0.85fr;
}

.photo-grid-duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.info-card,
.detail-card,
.project-card,
.contact-panel,
.gallery-card,
.stat-card,
.quote-card,
.photo-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(129, 216, 208, 0.05), rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow);
}

.feature-card,
.info-card,
.project-card,
.contact-panel,
.stat-card,
.quote-card {
  padding: 28px;
}

.feature-card {
  text-decoration: none;
}

.feature-index {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--tiffany);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
}

.split-section {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.08fr 1fr;
  align-items: start;
}

.detail-stack,
.timeline {
  display: grid;
  gap: 18px;
}

.detail-card {
  padding: 24px;
}

.timeline-item {
  display: grid;
  gap: 18px;
  grid-template-columns: 64px 1fr;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.timeline-item span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--tiffany-soft);
  color: var(--tiffany);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
}

.stat-card {
  text-align: center;
}

.stat-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--tiffany);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

.project-card,
.photo-card {
  overflow: hidden;
}

.project-visual,
.about-visual,
.gallery-card {
  background-size: cover;
  background-position: center;
}

.project-visual {
  min-height: 210px;
  margin: -28px -28px 22px;
}

.about-visual {
  min-height: 460px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.quote-card {
  text-align: center;
}

.quote-card p {
  margin: 0;
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.2;
}

.gallery-grid {
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-auto-rows: 240px;
}

.gallery-card {
  position: relative;
  display: flex;
  align-items: end;
  padding: 24px;
  overflow: hidden;
}

.gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(8, 22, 24, 0.42));
}

.gallery-card > div {
  position: relative;
  z-index: 1;
}

.gallery-card-large {
  grid-row: span 2;
}

.photo-card {
  position: relative;
  min-height: 320px;
}

.photo-card-large {
  min-height: 420px;
}

.photo-card img,
.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-card img {
  min-height: inherit;
}

.photo-copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px;
  background: linear-gradient(180deg, rgba(6, 14, 16, 0), rgba(6, 14, 16, 0.82));
}

.photo-copy h3 {
  max-width: 22rem;
}

.photo-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo-strip img {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.contact-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-highlight {
  background:
    radial-gradient(circle at top right, rgba(129, 216, 208, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(129, 216, 208, 0.05), rgba(255, 255, 255, 0.03));
}

.contact-list {
  margin: 22px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 2;
}

.site-footer {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding-top: 20px;
  padding-bottom: 40px;
  color: var(--muted-soft);
  text-align: center;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-33%); }
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 18px;
  }

  .lang-button {
    min-width: 44px;
    padding: 8px 10px;
  }
}

@media (max-width: 960px) {
  .feature-grid,
  .service-grid-3,
  .project-grid,
  .stats-grid,
  .split-section,
  .gallery-grid,
  .contact-layout,
  .photo-grid-home,
  .photo-grid-duo,
  .photo-strip {
    grid-template-columns: 1fr;
  }

  .gallery-card-large {
    grid-row: span 1;
  }

  .photo-card-large,
  .photo-card,
  .photo-strip img {
    min-height: 260px;
  }
}

@media (max-width: 768px) {
  .desktop-nav,
  .site-header .lang-switcher {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .hero-content,
  .subhero {
    text-align: center;
  }

  .hero-actions,
  .button-row {
    justify-content: center;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .project-visual {
    min-height: 180px;
  }
}

@media (max-width: 520px) {
  .site-header,
  .section,
  .subhero,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .logo-text {
    max-width: 140px;
    line-height: 1.35;
    font-size: 0.8rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.8rem;
  }

  .mobile-menu-panel {
    padding: 78px 20px 28px;
  }
}
