:root {
  color-scheme: light;
  --bg: #f3f6ef;
  --surface: #fffdfa;
  --surface-soft: #e8eee2;
  --text: #141c16;
  --muted: #657064;
  --line: rgba(20, 28, 22, 0.12);
  --accent: #1f6f4a;
  --accent-strong: #12442d;
  --accent-soft: #dce9df;
  --gold: #c49a47;
  --shadow: 0 30px 90px rgba(19, 40, 29, 0.17);
  --radius: 8px;
  --hero-shift: 0px;
  --font: "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}

body[data-theme="modern"] {
  --bg: #f6efe4;
  --surface: #fffaf2;
  --surface-soft: #eadbc8;
  --text: #231712;
  --muted: #765f50;
  --line: rgba(35, 23, 18, 0.16);
  --accent: #9a2f24;
  --accent-strong: #5e1d16;
  --accent-soft: #ead0c6;
  --gold: #a8762d;
  --shadow: 0 30px 90px rgba(74, 37, 20, 0.18);
  --radius: 2px;
  --hero-shift: -18px;
}

body[data-theme="startup"] {
  --bg: #f5f9fc;
  --surface: #ffffff;
  --surface-soft: #e4eff6;
  --text: #0f1720;
  --muted: #5a6a78;
  --line: rgba(15, 23, 32, 0.12);
  --accent: #006d77;
  --accent-strong: #004e55;
  --accent-soft: #d7edf0;
  --gold: #e29578;
  --shadow: 0 30px 90px rgba(23, 58, 83, 0.16);
  --radius: 22px;
  --hero-shift: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 42%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0;
}

body.is-switching .hero-copy,
body.is-switching .hero-gallery {
  opacity: 0;
  transform: translateY(12px);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(20, 28, 22, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 28, 22, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 68%);
}

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

.promo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 16px;
  background: var(--accent-strong);
  color: #fff;
  font-size: 13px;
}

.promo-strip span {
  border-radius: 999px;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 900;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.switcher {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 20px 16px 0;
}

.theme-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.04);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.theme-button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  min-height: calc(100svh - 138px);
  padding: clamp(52px, 8vw, 98px) clamp(20px, 6vw, 90px) clamp(28px, 5vw, 60px);
}

.hero-copy {
  max-width: 720px;
  transition:
    opacity 280ms ease,
    transform 280ms ease;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 6.4vw, 78px);
  line-height: 1.02;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.lead {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.9;
}

.hero-actions,
.contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.hero-badges span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 23px;
  font-weight: 900;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.primary-action:hover,
.secondary-action:hover,
.theme-button:hover,
.domain-box button:hover {
  transform: translateY(-2px);
}

.primary-action {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--accent) 26%, transparent);
}

.secondary-action {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent-strong);
}

.domain-box {
  max-width: 540px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.06);
}

.domain-box label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.domain-box div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}

.domain-box input {
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 1px);
  padding: 0 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 900;
}

.domain-box span {
  color: var(--accent-strong);
  font-weight: 900;
}

.domain-box button {
  min-height: 46px;
  border: 0;
  border-radius: calc(var(--radius) - 1px);
  padding: 0 16px;
  background: var(--gold);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.hero-gallery {
  position: relative;
  min-height: 610px;
  transition:
    opacity 280ms ease,
    transform 280ms ease;
}

.photo-main,
.photo-sub,
.wide-photo,
.lineup-card {
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.photo-main {
  position: absolute;
  inset: 0 8% 8% 0;
}

.photo-main::after,
.wide-photo::after,
.lineup-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(0, 0, 0, 0.28), transparent 48%);
  pointer-events: none;
}

.photo-main,
.wide-photo,
.lineup-card {
  position: relative;
}

.photo-main img,
.photo-sub img,
.wide-photo img,
.lineup-card img {
  transition:
    transform 700ms ease,
    filter 700ms ease;
}

.photo-main:hover img,
.photo-sub:hover img,
.wide-photo:hover img,
.lineup-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.04);
}

.photo-sub {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  height: 230px;
  border: 8px solid var(--bg);
  transform: translateY(var(--hero-shift));
}

.hero-note {
  position: absolute;
  left: -28px;
  bottom: 68px;
  display: grid;
  gap: 8px;
  width: min(290px, 74%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  padding: 20px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(16px);
}

.hero-note span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats,
.section,
.lineup,
.steps,
.showcase,
.price-band,
.contact {
  margin: 0 clamp(20px, 6vw, 90px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-bottom: 44px;
}

.stats article,
.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.045);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.stats article:hover,
.service-card:hover,
.step-grid article:hover,
.plan-card:hover {
  border-color: color-mix(in srgb, var(--accent) 36%, var(--line));
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.09);
  transform: translateY(-6px);
}

.stats article {
  padding: 24px;
}

.stats strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-strong);
  font-size: clamp(28px, 3vw, 38px);
}

.stats span,
.section p,
.showcase-copy p,
.service-card p {
  color: var(--muted);
  line-height: 1.8;
}

.section,
.lineup,
.steps,
.showcase,
.price-band,
.contact {
  padding: clamp(54px, 7vw, 92px) 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 68px);
}

.section-heading {
  max-width: 760px;
}

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

.service-card {
  min-height: 260px;
  padding: 26px;
}

.service-icon {
  display: inline-flex;
  margin-bottom: 52px;
  color: var(--accent);
  font-weight: 900;
}

.steps {
  border-top: 1px solid var(--line);
}

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

.step-grid article {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 26px;
  background: var(--accent-strong);
  color: #fff;
  box-shadow: var(--shadow);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.step-grid article::after {
  position: absolute;
  right: -30px;
  bottom: -46px;
  content: attr(data-step);
  color: rgba(255, 255, 255, 0.08);
  font-size: 130px;
  font-weight: 900;
}

.step-grid span {
  display: inline-flex;
  margin-bottom: 46px;
  color: color-mix(in srgb, var(--gold) 86%, #fff);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.step-grid p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.8;
}

.lineup {
  border-top: 1px solid var(--line);
}

.lineup-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.9fr;
  gap: 16px;
}

.lineup-card {
  position: relative;
  min-height: 380px;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.lineup-card:hover {
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.18);
  transform: translateY(-8px);
}

.lineup-card:first-child {
  min-height: 500px;
}

.lineup-card div {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 1;
  color: #fff;
}

.lineup-card span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lineup-card h3 {
  margin: 0;
  font-size: 26px;
}

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.wide-photo {
  position: relative;
  height: min(58vw, 560px);
  min-height: 360px;
}

.showcase-copy {
  max-width: 600px;
}

.price-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.price-band p {
  color: var(--muted);
  line-height: 1.8;
}

.plan-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.plan-card span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.plan-card strong {
  display: block;
  margin: 10px 0 2px;
  color: var(--accent-strong);
  font-size: 62px;
  line-height: 1;
}

.plan-card .primary-action {
  width: 100%;
  margin-top: 12px;
}

.contact {
  justify-content: space-between;
}

.contact h2 {
  max-width: 780px;
  margin-bottom: 0;
}

body[data-theme="modern"] .hero {
  grid-template-columns: minmax(360px, 1fr) minmax(0, 0.92fr);
}

body[data-theme="modern"] .hero-copy {
  order: 2;
}

body[data-theme="modern"] .hero-gallery {
  order: 1;
}

body[data-theme="modern"] .photo-main {
  inset: 0 0 10% 6%;
}

body[data-theme="modern"] .photo-sub {
  right: auto;
  left: 0;
}

body[data-theme="startup"] .lineup-grid {
  grid-template-columns: repeat(3, 1fr);
}

body[data-theme="startup"] .lineup-card:first-child {
  min-height: 380px;
}

body[data-theme="startup"] .hero-gallery {
  min-height: 560px;
}

@media (max-width: 940px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .switcher {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .theme-button {
    flex: 0 0 auto;
  }

  .hero,
  body[data-theme="modern"] .hero,
  .split,
  .showcase {
    grid-template-columns: 1fr;
  }

  body[data-theme="modern"] .hero-copy,
  body[data-theme="modern"] .hero-gallery {
    order: initial;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  .hero-gallery {
    min-height: 500px;
  }

  .stats,
  .service-grid,
  .step-grid,
  .lineup-grid,
  .price-band,
  body[data-theme="startup"] .lineup-grid {
    grid-template-columns: 1fr;
  }

  .lineup-card,
  .lineup-card:first-child,
  body[data-theme="startup"] .lineup-card:first-child {
    min-height: 360px;
  }

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

@media (max-width: 560px) {
  h1 {
    font-size: 40px;
  }

  .brand {
    min-width: 0;
  }

  .hero-gallery {
    min-height: 420px;
  }

  .photo-main {
    inset: 0 0 13% 0;
  }

  .photo-sub {
    width: 52%;
    height: 170px;
  }

  .hero-note {
    left: 14px;
    bottom: 32px;
  }

  .domain-box div {
    grid-template-columns: 1fr;
  }

  .domain-box span {
    display: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal,
  .reveal.is-visible,
  body.is-switching .hero-copy,
  body.is-switching .hero-gallery {
    opacity: 1;
    transform: none;
  }
}
