:root {
  --ink: #111417;
  --ink-soft: rgba(17, 20, 23, 0.68);
  --navy: #1c211f;
  --paper: #f7f4ee;
  --white: #ffffff;
  --red: #d98b6a;
  --blue: var(--red);
  --mint: rgba(217, 139, 106, 0.72);
  --line: rgba(17, 20, 23, 0.14);
  --line-light: rgba(255, 255, 255, 0.18);
  --shadow: 0 28px 80px rgba(4, 14, 29, 0.18);
  --ease: cubic-bezier(0.165, 0.84, 0.44, 1);
  --container: min(1240px, calc(100vw - 42px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  letter-spacing: 0;
  line-height: 1.85;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -10;
  background:
    linear-gradient(rgba(17, 20, 23, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 20, 23, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  pointer-events: none;
}

body.is-loading {
  overflow: hidden;
}

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

section[id] {
  scroll-margin-top: 96px;
}

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

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

h1,
h2 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  letter-spacing: 0;
  line-height: 0.98;
}

h1 {
  max-width: 870px;
  color: var(--white);
  font-size: clamp(4.2rem, 9vw, 10.4rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(2.7rem, 6vw, 6.8rem);
  font-weight: 900;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.4;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--paper);
  color: var(--navy);
  transition: opacity 700ms var(--ease), visibility 700ms var(--ease);
}

.loader__brand {
  position: absolute;
  top: 32px;
  left: 32px;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.loader__line {
  width: min(78vw, 980px);
  overflow: visible;
}

.loader__line path {
  fill: none;
  stroke: var(--red);
  stroke-dasharray: 1430;
  stroke-dashoffset: 1430;
  stroke-linecap: round;
  stroke-width: 4;
  animation: loaderDraw 1200ms var(--ease) forwards;
}

.loader__steps {
  position: absolute;
  right: 32px;
  bottom: 30px;
  display: flex;
  gap: 18px;
  color: rgba(28, 33, 31, 0.54);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.is-ready .loader {
  opacity: 0;
  visibility: hidden;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: stretch;
  width: var(--container);
  min-height: 58px;
  transform: translateX(-50%);
  border: 1px solid var(--line-light);
  background: rgba(28, 33, 31, 0.78);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-right: 1px solid var(--line-light);
}

.brand__mark {
  font-size: 1.04rem;
  font-weight: 900;
}

.brand__sub {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
}

.site-nav a {
  display: grid;
  min-width: 96px;
  place-items: center;
  border-left: 1px solid var(--line-light);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  font-weight: 900;
  transition: background 260ms var(--ease), color 260ms var(--ease);
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.site-nav .nav-mail {
  min-width: 118px;
  background: var(--red);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: 128px 0 72px;
  background:
    radial-gradient(circle at 78% 24%, rgba(217, 139, 106, 0.22), transparent 32rem),
    linear-gradient(145deg, var(--navy) 0%, var(--ink) 64%, rgba(0, 0, 0, 0.96) 100%);
  color: var(--white);
}

.hero::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 76px 76px;
  content: "";
  pointer-events: none;
}

.side-rail {
  position: absolute;
  top: 50%;
  left: 24px;
  z-index: 2;
  transform: translateY(-50%) rotate(180deg);
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero__ghost {
  position: absolute;
  top: 74px;
  right: -3vw;
  z-index: 0;
  color: rgba(255, 255, 255, 0.055);
  font-size: clamp(8rem, 24vw, 28rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.8;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, 0.95fr);
  gap: clamp(34px, 6vw, 86px);
  width: var(--container);
  margin: 0 auto;
  align-items: center;
}

.hero__copy {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 22px;
}

.hero__lead {
  max-width: 780px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 800;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border: 1px solid var(--line-light);
  padding: 0 22px;
  font-weight: 900;
  transition: background 260ms var(--ease), border-color 260ms var(--ease), transform 260ms var(--ease);
}

.button span {
  margin-left: 12px;
  transition: transform 260ms var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button:hover span {
  transform: translateX(4px);
}

.button--primary {
  border-color: var(--red);
  background: var(--red);
}

.button--line {
  color: rgba(255, 255, 255, 0.78);
}

.flow-panel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line-light);
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    rgba(255, 255, 255, 0.035);
  background-size: 46px 46px, 46px 46px, auto;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.32);
}

.flow-panel__top {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-light);
  padding: 16px 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-panel__stage {
  position: absolute;
  z-index: 2;
  width: 184px;
  min-height: 118px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(28, 33, 31, 0.86);
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.flow-panel__stage small,
.flow-panel__stage span {
  display: block;
}

.flow-panel__stage small {
  margin-bottom: 8px;
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flow-panel__stage strong {
  display: block;
  margin-bottom: 7px;
  color: var(--white);
  font-size: 0.98rem;
  line-height: 1.45;
}

.flow-panel__stage span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
}

.stage-entry {
  top: 82px;
  left: 40px;
}

.stage-site {
  top: 175px;
  left: 252px;
  border-color: var(--line-light);
}

.stage-line {
  top: 108px;
  right: 46px;
}

.stage-record {
  left: 68px;
  bottom: 72px;
}

.stage-next {
  right: 74px;
  bottom: 100px;
  border-color: var(--red);
}

.flow-panel__route {
  position: absolute;
  inset: 82px 24px 34px;
  z-index: 1;
  width: calc(100% - 48px);
  height: calc(100% - 116px);
}

[data-draw] {
  fill: none;
  stroke: var(--mint);
  stroke-linecap: round;
  stroke-width: 3;
}

.hero__image-band {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 0.42fr);
  width: var(--container);
  margin: 58px auto 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.hero__image-band figure {
  height: clamp(180px, 22vw, 280px);
  overflow: hidden;
}

.hero__image-band img {
  width: 100%;
  height: 100%;
  filter: saturate(0.78) contrast(1.1);
  object-fit: cover;
}

.band-copy {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-left: 1px solid var(--line-light);
}

.band-copy span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  border-right: 1px solid var(--line-light);
  padding: 14px 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.statement {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(34px, 7vw, 98px);
  width: var(--container);
  margin: 0 auto;
  padding: clamp(86px, 12vw, 168px) 0;
}

.statement h2 {
  margin-top: 20px;
}

.statement__notes {
  display: grid;
  gap: 20px;
  align-content: end;
  color: var(--ink-soft);
  font-weight: 700;
}

.snap-section {
  overflow: hidden;
  padding: clamp(80px, 11vw, 150px) 0;
  background: var(--white);
}

.section-head {
  width: var(--container);
  margin: 0 auto 42px;
}

.section-head h2,
.section-head--wide h2 {
  max-width: 1030px;
  margin-top: 18px;
}

.snap-track {
  display: grid;
  grid-auto-columns: minmax(320px, 42vw);
  grid-auto-flow: column;
  gap: 10px;
  width: 100%;
  overflow-x: auto;
  padding: 0 max(21px, calc((100vw - 1240px) / 2)) 18px;
  scroll-snap-type: x mandatory;
}

.snap-track::-webkit-scrollbar {
  height: 8px;
}

.snap-track::-webkit-scrollbar-thumb {
  background: rgba(17, 20, 23, 0.28);
}

.snap-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(24px, 4vw, 44px);
}

.snap-card span,
.service-main span,
.service-list span {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.snap-card h3 {
  max-width: 520px;
  margin-top: auto;
}

.snap-card p {
  margin-top: 26px;
  color: var(--ink-soft);
  font-weight: 700;
}

.snap-card--dark {
  background: var(--navy);
  color: var(--white);
}

.snap-card--dark p {
  color: rgba(255, 255, 255, 0.68);
}

.snap-card--accent {
  background: var(--red);
  color: var(--white);
}

.snap-card--accent span,
.snap-card--accent p {
  color: rgba(255, 255, 255, 0.76);
}

.route-section {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  width: var(--container);
  margin: 0 auto;
  padding: clamp(82px, 12vw, 164px) 0;
}

.section-index {
  border-right: 1px solid var(--line);
  padding-right: 18px;
}

.section-index span {
  display: block;
  color: var(--blue);
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1;
}

.section-index p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.route-content {
  min-width: 0;
  padding-left: clamp(26px, 5vw, 70px);
}

.route-copy {
  max-width: 960px;
}

.route-copy h2 {
  margin-top: 18px;
}

.route-copy p:last-child {
  max-width: 720px;
  margin-top: 28px;
  color: var(--ink-soft);
  font-weight: 700;
}

.route-timeline {
  position: relative;
  margin-top: 58px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  overflow: hidden;
}

.route-timeline__line {
  position: absolute;
  inset: 30px 20px auto;
  width: calc(100% - 40px);
  height: 210px;
}

.route-timeline__line [data-draw] {
  stroke: var(--blue);
  stroke-width: 4;
}

.route-timeline ol {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 190px 0 0;
  list-style: none;
}

.route-timeline li {
  min-height: 180px;
  border-left: 1px solid var(--line);
  padding: 22px;
}

.route-timeline li:first-child {
  border-left: 0;
}

.route-timeline span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.route-timeline strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.4;
}

.route-timeline p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.7;
}

.service-section {
  padding: clamp(84px, 12vw, 166px) 0;
  background: var(--navy);
  color: var(--white);
}

.service-section .section-head {
  margin-bottom: 58px;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.78fr) minmax(0, 1.22fr);
  gap: 10px;
  width: var(--container);
  margin: 0 auto;
}

.service-main,
.service-list article {
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.055);
}

.service-main {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 4vw, 48px);
}

.service-main h3 {
  margin-top: 20px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.08;
}

.service-main p {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 700;
}

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

.service-list article {
  min-height: 255px;
  padding: clamp(22px, 3vw, 34px);
}

.service-list article:first-child {
  grid-column: span 2;
}

.service-list h3 {
  margin-top: 18px;
}

.service-list p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.66);
  font-weight: 700;
}

.origin-section {
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 13vw, 178px) 0;
}

.origin-word {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: rgba(17, 20, 23, 0.055);
  font-size: clamp(8rem, 24vw, 25rem);
  font-weight: 900;
  line-height: 0.9;
  pointer-events: none;
}

.origin-word span {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(17, 20, 23, 0.07);
}

.origin-word span:last-child {
  border-right: 0;
}

.origin-content {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
}

.origin-content h2 {
  margin-top: 18px;
}

.origin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 58px;
}

.origin-grid p {
  min-height: 156px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  padding: 24px;
  color: var(--ink-soft);
  font-weight: 700;
}

.origin-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.1rem;
}

.contact-section {
  padding: clamp(78px, 10vw, 140px) 0;
  background: var(--red);
  color: var(--white);
}

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

.contact-inner .section-kicker {
  color: rgba(255, 255, 255, 0.72);
}

.contact-inner h2 {
  max-width: 1080px;
  margin-top: 18px;
}

.contact-inner p {
  max-width: 720px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

.contact-mail {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  padding: 0 24px;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 900;
  transition: background 260ms var(--ease), color 260ms var(--ease), transform 260ms var(--ease);
}

.contact-mail span {
  margin-left: 18px;
}

.contact-mail:hover {
  transform: translateY(-2px);
  background: var(--white);
  color: var(--red);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: var(--container);
  margin: 0 auto;
  padding: 28px 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 850ms var(--ease), transform 850ms var(--ease);
}

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

@keyframes loaderDraw {
  to {
    stroke-dashoffset: 0;
  }
}

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

@media (max-width: 1060px) {
  .hero__grid,
  .statement,
  .route-section,
  .service-layout {
    grid-template-columns: 1fr;
  }

  .flow-panel {
    min-height: 560px;
  }

  .hero__image-band {
    grid-template-columns: 1fr;
  }

  .band-copy {
    border-top: 1px solid var(--line-light);
    border-left: 0;
  }

  .route-section {
    gap: 28px;
  }

  .section-index {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 20px;
  }

  .section-index p {
    writing-mode: initial;
  }

  .route-content {
    padding-left: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100vw - 28px, 1240px);
  }

  body::before {
    background-size: 44px 44px;
  }

  .loader__brand {
    top: 22px;
    left: 20px;
  }

  .loader__steps {
    right: auto;
    left: 20px;
    bottom: 22px;
    flex-wrap: wrap;
  }

  .site-header {
    top: 10px;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .brand {
    min-height: 50px;
    border-right: 0;
  }

  .brand__sub {
    display: none;
  }

  .site-nav {
    overflow-x: auto;
    justify-content: flex-start;
    border-top: 1px solid var(--line-light);
  }

  .site-nav a {
    min-width: 82px;
    min-height: 44px;
    font-size: 0.72rem;
  }

  section[id] {
    scroll-margin-top: 124px;
  }

  .side-rail {
    display: none;
  }

  .hero {
    padding: 132px 0 48px;
  }

  .hero__ghost {
    top: 112px;
    right: -16vw;
    font-size: 8rem;
  }

  h1 {
    font-size: clamp(2.75rem, 11vw, 3.65rem);
    line-height: 1.06;
  }

  h2 {
    font-size: clamp(2.2rem, 11vw, 4.2rem);
  }

  .hero__lead {
    margin-top: 20px;
    font-size: 1.03rem;
  }

  .button {
    width: 100%;
  }

  .flow-panel {
    min-height: 0;
    padding: 0 18px 18px;
  }

  .flow-panel__top {
    margin: 0 -18px 18px;
  }

  .flow-panel__stage {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 0;
    margin-top: 10px;
    padding: 13px;
  }

  .flow-panel__stage:first-of-type {
    margin-top: 0;
  }

  .flow-panel__route {
    display: none;
  }

  .band-copy {
    grid-template-columns: 1fr;
  }

  .band-copy span {
    min-height: 44px;
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .statement {
    padding: 76px 0;
  }

  .snap-track {
    grid-auto-columns: minmax(286px, 84vw);
    padding-inline: 14px;
  }

  .snap-card {
    min-height: 390px;
  }

  .route-timeline__line {
    display: none;
  }

  .route-timeline ol {
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  .route-timeline li {
    min-height: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .route-timeline li:first-child {
    border-top: 0;
  }

  .service-list,
  .origin-grid {
    grid-template-columns: 1fr;
  }

  .service-list article:first-child {
    grid-column: auto;
  }

  .service-main {
    min-height: 380px;
  }

  .origin-word {
    grid-template-columns: 1fr;
    font-size: 9rem;
    opacity: 0.8;
  }

  .origin-word span {
    justify-content: flex-start;
    padding-left: 8px;
    border-right: 0;
    border-bottom: 1px solid rgba(17, 20, 23, 0.07);
  }

  .contact-mail {
    width: 100%;
    justify-content: space-between;
    min-width: 0;
    font-size: 0.98rem;
  }

  .site-footer {
    display: grid;
  }
}
