:root {
  --dark1: #0d1f2d;
  --dark2: #1a3a3a;
  --sub: #54bbd4;
  --accent: #00e5cc;
  --text1: #eef0e8;
  --text2: #a8bfb8;

  --header-h: 74px;
  --container: min(1200px, calc(100% - 6rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Zen Old Mincho", serif;
  color: var(--text2);
  background:
    radial-gradient(circle at 12% 84%, rgba(84, 187, 212, 0.08), transparent 48%),
    radial-gradient(circle at 88% 12%, rgba(26, 58, 58, 0.35), transparent 54%),
    linear-gradient(155deg, var(--dark1), var(--dark2) 55%, var(--dark1));
  letter-spacing: 0.08em;
  line-height: 1.95;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(13, 31, 45, 0.82), transparent 30%);
  z-index: 20;
}

a,
button {
  cursor: pointer;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.ambient {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  z-index: -1;
}

.ambient-top {
  width: 500px;
  height: 500px;
  top: -160px;
  right: -140px;
  background: rgba(0, 229, 204, 0.08);
  filter: blur(80px);
}

.ambient-bottom {
  width: 300px;
  height: 300px;
  left: -80px;
  bottom: -90px;
  background: rgba(84, 187, 212, 0.05);
  filter: blur(100px);
}

#stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: rgba(238, 240, 232, 0.82);
  animation: twinkle var(--dur) ease-in-out infinite;
  animation-delay: var(--delay);
  opacity: 0;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 2000;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  margin-left: -3px;
  margin-top: -3px;
  border-radius: 50%;
  background: rgba(0, 229, 204, 0.7);
  mix-blend-mode: screen;
}

.cursor-ring {
  width: 28px;
  height: 28px;
  margin-left: -14px;
  margin-top: -14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 204, 0.3);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(13, 31, 45, 0.84);
  border-color: rgba(84, 187, 212, 0.18);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  text-decoration: none;
  color: var(--text1);
  font-family: "Zen Old Mincho", serif;
  font-size: 13px;
  letter-spacing: 0.3em;
}

.nav-links {
  display: flex;
  gap: 1.45rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text2);
  font-family: "Jost", sans-serif;
  font-weight: 200;
  font-size: 11px;
  letter-spacing: 0.25em;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.32rem;
  height: 1px;
  background: rgba(84, 187, 212, 0.5);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(84, 187, 212, 0.25);
  color: var(--text2);
  background: transparent;
  font-family: "Jost", sans-serif;
  font-weight: 300;
  letter-spacing: 0.2em;
  font-size: 10px;
  padding: 0.45rem 0.7rem;
}

.section {
  position: relative;
  padding: 120px 0;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section-head {
  margin-bottom: 48px;
}

.section-label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: rgba(84, 187, 212, 0.75);
  font-family: "Jost", sans-serif;
  font-weight: 200;
  font-size: 9px;
  letter-spacing: 0.5em;
}

.section-label::after {
  content: "";
  width: 60px;
  height: 1px;
  background: rgba(84, 187, 212, 0.3);
}

.section-title {
  margin: 1.1rem 0 0;
  color: var(--text1);
  font-family: "Zen Old Mincho", serif;
  font-size: clamp(17px, 2.8vw, 36px);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 70px);
}

.hero-inner {
  max-width: 920px;
  position: relative;
  margin: 0 auto;
  text-align: left;
}

.hero-label {
  margin: 0;
  color: rgba(84, 187, 212, 0.7);
  font-family: "Jost", sans-serif;
  font-weight: 200;
  font-size: 10px;
  letter-spacing: 0.5em;
}

.hero-title {
  margin: 1.25rem 0 0;
  color: var(--text1);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(30px, 7.2vw, 76px);
  letter-spacing: 0.04em;
  line-height: 1.02;
  max-width: none;
}

.hero-name-jp {
  margin: clamp(4.8rem, 9vh, 7rem) 0 0;
  color: var(--text1);
  font-family: "Zen Old Mincho", serif;
  font-style: normal;
  font-size: clamp(22px, 3.6vw, 34px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.hero-name-en {
  margin: 0.35rem 0 0;
  color: var(--text2);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(12px, 1.05vw, 16px);
  letter-spacing: 0.14em;
}

.hero-copy {
  margin: 1rem 0 0;
  color: var(--text2);
  max-width: none;
  font-size: clamp(13px, 1.1vw, 16px);
  font-family: "Zen Old Mincho", serif;
  line-height: 1.85;
  white-space: nowrap;
}

.hero-statement {
  margin-top: 3.8rem;
  border-left: 1px solid rgba(84, 187, 212, 0.3);
  padding-left: 12px;
  max-width: 54ch;
  text-align: left;
  opacity: 0.82;
}

.statement-en {
  margin: 0;
  color: var(--text1);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(13px, 1.25vw, 18px);
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.statement-jp {
  margin: 0.45rem 0 0;
  color: var(--text2);
  font-size: clamp(11px, 0.8vw, 12px);
  letter-spacing: 0.05em;
  line-height: 1.75;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2.1rem;
  padding: 0.72rem 1.3rem;
  border: 1px solid rgba(84, 187, 212, 0.5);
  text-decoration: none;
  color: var(--text1);
  font-family: "Jost", sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.32em;
  transition: border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.cta:hover,
.cta:focus-visible {
  color: rgba(0, 229, 204, 0.88);
  border-color: rgba(0, 229, 204, 0.65);
  box-shadow: 0 0 24px rgba(0, 229, 204, 0.16);
  outline: none;
}

.sirius-line {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: min(28vh, 260px);
  pointer-events: none;
  opacity: 0.2;
}

.sirius-line line,
.sirius-line path,
.sirius-line circle {
  fill: none;
  stroke: rgba(238, 240, 232, 0.85);
  stroke-width: 0.85;
  stroke-dasharray: 2 6;
}

.scroll-ui {
  position: absolute;
  bottom: 28px;
  left: calc((100vw - min(var(--container), 920px)) / 2);
  color: var(--text2);
  font-family: "Jost", sans-serif;
  font-size: 9px;
  letter-spacing: 0.4em;
}

.scroll-ui::after {
  content: "";
  display: block;
  margin-top: 6px;
  width: 42px;
  height: 1px;
  background: rgba(84, 187, 212, 0.35);
  animation: scrollPulse 2.8s ease-in-out infinite;
}

.about,
.service,
.works,
.flow,
.contact {
  background: linear-gradient(135deg, rgba(26, 58, 58, 0.18), rgba(13, 31, 45, 0.18));
  border-top: 1px solid rgba(84, 187, 212, 0.08);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1px;
  background: rgba(84, 187, 212, 0.08);
  border: 1px solid rgba(84, 187, 212, 0.08);
}

.about-copy,
.about-image {
  margin: 0;
  padding: 40px 36px;
  background: rgba(13, 31, 45, 0.45);
}

.about-copy {
  white-space: pre-line;
}

.about-image {
  min-height: 360px;
  display: block;
  overflow: hidden;
  border-left: 1px solid rgba(84, 187, 212, 0.08);
}

.about-image img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: block;
  object-fit: cover;
}

.keyword-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(84, 187, 212, 0.08);
  border: 1px solid rgba(84, 187, 212, 0.08);
}

.service-axis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
}

.card,
.work-card,
.flow-step,
.price-box {
  background: rgba(13, 31, 45, 0.45);
  padding: 40px 36px;
  border: 1px solid rgba(84, 187, 212, 0.08);
}

.card-index {
  margin: 0;
  color: var(--text1);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 42px;
  line-height: 1;
}

.card-title,
.work-title,
.step-title {
  margin: 0.75rem 0 1rem;
  color: var(--text1);
  font-family: "Zen Old Mincho", serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.15em;
  line-height: 1.65;
}

.card-subtitle {
  margin: 0 0 1rem;
  color: var(--text2);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.card-meta-title,
.work-tag,
.step-label {
  margin: 0.95rem 0 0.4rem;
  color: rgba(84, 187, 212, 0.75);
  font-family: "Jost", sans-serif;
  font-size: 9px;
  font-weight: 200;
  letter-spacing: 0.42em;
}

.card-copy,
.work-copy,
.step-copy,
.contact-copy,
.card-period {
  margin: 0;
  color: var(--text2);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.output-box {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(84, 187, 212, 0.22);
  background: rgba(26, 58, 58, 0.28);
  color: var(--text2);
  font-size: 11px;
  line-height: 2;
}

.card-period {
  margin-top: 0.95rem;
}

.price-grid {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.price-item {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(84, 187, 212, 0.22);
  background: rgba(26, 58, 58, 0.28);
}

.price-label,
.price-amount,
.price-detail {
  margin: 0;
}

.price-label {
  color: rgba(84, 187, 212, 0.75);
  font-family: "Jost", sans-serif;
  font-size: 9px;
  letter-spacing: 0.28em;
}

.price-amount {
  margin-top: 0.45rem;
  color: var(--text1);
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  line-height: 1.1;
}

.price-detail {
  margin-top: 0.4rem;
  color: var(--text2);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.works-grid,
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(84, 187, 212, 0.08);
  border: 1px solid rgba(84, 187, 212, 0.08);
}

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

.flow-pattern {
  background: rgba(13, 31, 45, 0.45);
  border: 1px solid rgba(84, 187, 212, 0.08);
  padding: 28px 24px;
}

.flow-pattern-label {
  margin: 0 0 1rem;
  color: rgba(84, 187, 212, 0.75);
  font-family: "Jost", sans-serif;
  font-size: 9px;
  letter-spacing: 0.42em;
}

.flow-steps-inline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(84, 187, 212, 0.08);
  border: 1px solid rgba(84, 187, 212, 0.08);
}

.price-box {
  margin-top: 1px;
  border-top: none;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table tr + tr {
  border-top: 1px solid rgba(84, 187, 212, 0.16);
}

.price-table th,
.price-table td {
  padding: 0.85rem 0;
  text-align: left;
}

.price-table th {
  width: 33%;
  color: rgba(84, 187, 212, 0.75);
  font-family: "Jost", sans-serif;
  font-size: 9px;
  font-weight: 200;
  letter-spacing: 0.35em;
}

.price-table td {
  color: var(--text2);
  font-size: 11px;
}

.contact-inner {
  max-width: 900px;
}

.contact-copy {
  max-width: 48ch;
  white-space: pre-line;
}

.contact-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(84, 187, 212, 0.3);
  display: block;
  margin-bottom: 0.5rem;
}

.contact-photo-name {
  font-family: "Jost", sans-serif;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--text2);
  margin: 0;
}

.contact-profile {
  margin-bottom: 2rem;
}

.cta-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
}

.cta-primary {
  margin-top: 0;
}

.cta-secondary {
  margin-top: 0;
  opacity: 0.7;
  font-size: 0.9em;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid rgba(84, 187, 212, 0.08);
  padding-top: 1rem;
  color: rgba(84, 187, 212, 0.7);
  font-family: "Jost", sans-serif;
  font-weight: 200;
  font-size: 9px;
  letter-spacing: 0.35em;
}

.reveal,
.fade-up {
  opacity: 0;
  transform: translateY(16px);
}

.fade-up {
  animation: fadeUp 0.7s ease forwards;
  animation-delay: var(--a-delay, 0s);
}

.delay-1 { --a-delay: 0.2s; }
.delay-2 { --a-delay: 0.4s; }
.delay-3 { --a-delay: 0.6s; }
.delay-4 { --a-delay: 0.8s; }
.delay-5 { --a-delay: 1s; }
.delay-6 { --a-delay: 1.2s; }
.delay-7 { --a-delay: 1.4s; }

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50% { opacity: var(--op, 0.4); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleX(1); }
  50% { opacity: 1; transform: scaleX(1.2); transform-origin: left; }
}

@media (max-width: 1023px) {
  :root {
    --container: min(1200px, calc(100% - 3rem));
  }

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

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

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

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

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

  .about-image {
    min-height: 240px;
    border-left: 0;
    border-top: 1px solid rgba(84, 187, 212, 0.08);
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 64px;
    --container: min(1200px, calc(100% - 48px));
  }

  body::before {
    display: none;
  }

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

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(13, 31, 45, 0.95);
    border-top: 1px solid rgba(84, 187, 212, 0.15);
    border-bottom: 1px solid rgba(84, 187, 212, 0.15);
    transition: max-height 0.3s ease;
  }

  .nav-links.is-open {
    max-height: 360px;
  }

  .nav-links a {
    padding: 0.9rem 24px;
    width: 100%;
  }

  .section {
    padding: 80px 0;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 50px);
    padding-bottom: 120px;
  }

  .hero-title {
    font-size: clamp(30px, 13vw, 50px);
  }

  .hero-name-jp {
    font-size: clamp(22px, 8.2vw, 34px);
  }

  .hero-name-en {
    font-size: clamp(12px, 4.2vw, 14px);
  }

  .hero-copy {
    margin-top: 1.2rem;
    max-width: 26ch;
    font-size: clamp(12px, 4vw, 14px);
    white-space: normal;
  }

  .hero-statement {
    margin-top: 4.8rem;
    max-width: 46ch;
    padding-left: 10px;
  }

  .statement-en {
    font-size: clamp(12px, 3.8vw, 14px);
  }

  .statement-jp {
    font-size: clamp(10px, 3.2vw, 12px);
  }

  .section-title {
    font-size: clamp(16px, 5.3vw, 25px);
  }

  .hero-inner {
    margin: 0 auto;
    text-align: center;
  }

  .hero-title,
  .hero-copy,
  .hero-statement {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-title {
    max-width: 7.5ch;
    line-height: 1.05;
  }

  .keyword-grid,
  .works-grid,
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .flow-steps-inline,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .work-card,
  .flow-step,
  .price-box,
  .about-copy,
  .about-image {
    padding: 28px 24px;
  }

  .price-table th,
  .price-table td {
    display: block;
    width: 100%;
    padding: 0.35rem 0;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

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

  .star,
  .scroll-ui::after,
  .fade-up,
  .reveal.visible {
    animation: none !important;
    transition: none !important;
  }

  .fade-up,
  .reveal {
    opacity: 1;
    transform: none;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}
