@charset "UTF-8";

/* Sky, cloud and kingfisher. The existing section structure stays in style.css. */
@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("../fonts/zen-kaku-gothic-new-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("../fonts/zen-kaku-gothic-new-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #355660;
  --ink-deep: #263f49;
  --text: #3c5058;
  --muted: #5b6c70;
  --tint: #e5eceb;
  --tint-2: #f1f3ef;
  --line: #d5ddd9;
  --white: #fffdf8;
  --on-ink: #fffdf8;
  --on-ink-70: #d4e0df;
  --paper: #f8f5ee;
  --accent: #227b88;
  --font-jp: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

body {
  background: var(--paper);
  font-synthesis: none;
}

h1, h3, h4, .hl, .btn-big-title, .num-badge-value .num,
.num-badge-value .unit, .situation-n, .kicker, .ps-label,
.feature-copy h3, .stage h3, .faq summary::before,
.faq details > p::before {
  font-weight: 700;
}

h2 {
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.65;
}

.kicker {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: .15em;
}

.site-header {
  background: rgba(248, 245, 238, .94);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(53, 86, 96, .1);
}

/* The artwork fills the opening section. A translucent wash protects the copy. */
.hero {
  isolation: isolate;
  background: var(--paper);
  padding-block: 72px 88px;
}

.hero-art, .hero-art::after, .hero-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art {
  z-index: -1;
  pointer-events: none;
}

.hero-still {
  object-fit: cover;
  object-position: 62% center;
}

/* The extra scroll distance advances the bird before the Hero leaves the screen.
   A normal flow spacer lets sticky release without capturing wheel/touch input. */
@media screen and (prefers-reduced-motion: no-preference) {
  .hero-scroll-ready::after {
    content: "";
    display: block;
    height: 200vh;
    height: 200svh;
  }
  .hero-scroll-ready > .hero {
    position: sticky;
    top: var(--hero-pin-top, var(--header-h));
    min-height: calc(100svh - var(--hero-pin-top, var(--header-h)));
  }
}

/* Layers share one source coordinate plane; the fallback stays visible until ready. */
.hero-scene {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
}
.hero-scene > img, .hero-bird {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
}
.hero-bird {
  transform-origin: 75% 47.9592%;
}
.hero-motion-ready .hero-still {
  visibility: hidden;
}
.hero-motion-ready .hero-scene {
  visibility: visible;
}
.hero-motion-active .hero-scene > img, .hero-motion-active .hero-bird {
  will-change: transform;
}

.hero-art::after {
  content: "";
  background:
    linear-gradient(to top, var(--paper), rgba(248, 245, 238, 0) 22%),
    linear-gradient(90deg, rgba(248, 245, 238, .88), rgba(248, 245, 238, .76) 43%, rgba(248, 245, 238, .12) 78%);
}

.hero-grid {
  display: block;
}

.hero-copy {
  width: min(680px, 64%);
}

.hero h1 {
  font-size: clamp(32px, 3.5vw, 50px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .035em;
}

.hero h1 span {
  display: block;
}

.hero-lead {
  max-width: 38em;
  line-height: 2;
}

.hero .badge {
  border-color: rgba(53, 86, 96, .3);
  background: rgba(255, 253, 248, .35);
  font-weight: 400;
  letter-spacing: .05em;
}

.hero .num-badge {
  background: rgba(255, 253, 248, .62);
  border-color: rgba(53, 86, 96, .2);
  border-radius: 6px;
}

.num-badge-value .num {
  font-weight: 400;
}

.hero .btn-outline {
  background: rgba(255, 253, 248, .72);
}

.hero .btn-outline:hover {
  background: var(--ink-deep);
}

/* Large, low-opacity layers carry the same material through the plain sections. */
#about-us, #feature, #process, #pricing, #faq, #contact {
  position: relative;
  isolation: isolate;
}

#about-us::before, #feature::before, #process::before,
#pricing::before, #faq::before, #contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("../img/photo-06-layers.jpg") center / cover no-repeat;
  opacity: .07;
}

#about-us::before {
  background-image: url("../img/photo-02-horizon.jpg");
  opacity: .22;
  -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 72%, transparent);
  mask-image: linear-gradient(transparent, #000 20%, #000 72%, transparent);
}

#feature::before {
  background-size: auto 100%;
  opacity: .055;
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
}

#process::before, #pricing::before, #faq::before, #contact::before {
  background-image: url("../img/photo-02-horizon.jpg");
  opacity: .065;
}

.about .define {
  display: grid;
  grid-template-columns: 200px minmax(0, 700px);
  gap: 64px;
  align-items: start;
  padding: 12px 0 0;
  border: 0;
  background: none;
}

.about .define .define-term {
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 72px;
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1;
}

.define-term span {
  display: block;
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .1em;
  color: var(--muted);
}

.about .define .define-description {
  font-size: 17px;
  line-height: 2.15;
}

.about-lead {
  max-width: 700px;
  margin: 28px 0 0 264px;
  color: var(--muted);
  line-height: 2;
}

/* Three small material studies create a visual sequence within the existing process. */
.stages {
  gap: 40px;
}

.stage {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.stage-art {
  margin-bottom: 28px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.stage-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-n {
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .12em;
}

.stage h3 {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: .04em;
}

.stage-meta {
  font-weight: 400;
}

#process {
  background-color: #edf0ea;
}

#pricing .sec-head {
  position: relative;
  padding-right: 300px;
}

#pricing .sec-head::after {
  content: "";
  position: absolute;
  top: -24px;
  right: 0;
  width: 260px;
  height: 132px;
  background: url("../img/photo-08b-terrain.jpg") center / cover no-repeat;
  opacity: .8;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

/* Two masks meet so the material fades on all four edges, never as a rectangle.
   The vertical layer is sized to the drawn height of the artwork (3/4 of its width,
   the section box is much taller), so the fade lands on the photo's own top and
   bottom edges instead of somewhere inside it. */
#contact::before {
  background: url("../img/photo-08a-boundary.jpg") right center / min(65vw, 900px) auto no-repeat;
  opacity: .22;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 30%, #000 80%),
    linear-gradient(transparent 0%, #000 35%, #000 65%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 30%, #000 80%),
    linear-gradient(transparent 0%, #000 35%, #000 65%, transparent 100%);
  -webkit-mask-size: 100% 100%, 100% min(48.75vw, 675px);
  mask-size: 100% 100%, 100% min(48.75vw, 675px);
  -webkit-mask-position: center, center;
  mask-position: center, center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* 58% keeps the horizon at the same fraction of the section at every width
   (it is the height where the horizon sits inside the photo), so it stays behind
   a card instead of drifting into the gap between two. Anything over 100% would
   lift the photo's bottom edge into the section as a hard line. */
#faq::before {
  background-image: url("../img/photo-08c-horizon.jpg");
  background-position: center 58%;
  opacity: .12;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 55%, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 55%, #000 80%, transparent);
}

.usecase-screen {
  background: var(--tint);
}

.screen-note {
  color: var(--muted);
}

.cta-band {
  background-image: linear-gradient(rgba(248, 245, 238, .32), rgba(248, 245, 238, .32)), url("../img/photo-09-light.jpg");
}

.site-footer--art {
  padding-top: 0;
  background-color: var(--ink-deep);
  background-image: none;
}

.footer-landscape {
  position: relative;
  margin-bottom: 64px;
  aspect-ratio: 2243 / 701;
  overflow: hidden;
}

.footer-landscape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-landscape::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(transparent 76%, var(--ink-deep));
}

@media (max-width: 1023px) {
  .hero {
    padding-block: 56px 72px;
  }

  .hero-copy {
    width: min(660px, 85%);
  }

  .stages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .about .define {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 40px;
  }

  .about-lead {
    margin-left: 200px;
  }
}

@media (max-width: 767px) {
  .hero {
    padding-block: 44px 64px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(28px, 7.6vw, 40px);
    letter-spacing: .02em;
  }

  .hero-still {
    object-position: 63% center;
  }

  .hero-art::after {
    background:
      linear-gradient(to top, var(--paper), rgba(248, 245, 238, 0) 18%),
      linear-gradient(90deg, rgba(248, 245, 238, .92), rgba(248, 245, 238, .84) 50%, rgba(248, 245, 238, .64));
  }

  .hero .badge {
    letter-spacing: 0;
  }

  #about-us::before {
    opacity: .16;
  }

  .about .define {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 0;
  }

  .about .define .define-term {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 52px;
  }

  .define-term span {
    margin-top: 0;
    font-size: 10px;
  }

  .about .define .define-description {
    font-size: 16px;
    line-height: 2;
  }

  .about-lead {
    margin-left: 0;
  }

  .stages {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .stage {
    padding: 0;
  }

  .stage-art {
    aspect-ratio: 2 / 1;
    margin-bottom: 24px;
  }

  #pricing .sec-head {
    padding-right: 0;
  }

  #pricing .sec-head::after {
    position: static;
    display: block;
    width: 100%;
    height: 100px;
    margin-top: 28px;
    opacity: .65;
  }

  .footer-landscape {
    aspect-ratio: 1.6;
    margin-bottom: 40px;
  }

  .footer-landscape img {
    object-position: 60% center;
  }
}

/* A single pair of CTA links expands from the reading rail into the footer. */
.cta-landing {
  --cta-gap: 32px;
  --cta-card-height: 110px;
  position: relative;
  height: var(--cta-card-height);
}

.cta-unified {
  --cta-title-size: 20px;
  --cta-side-padding: 24px;
  --cta-detail-height: 22px;
  --cta-detail-gap: 6px;
  --cta-detail-opacity: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--cta-gap);
}

.cta-unified-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: var(--cta-card-height);
  min-width: 0;
  padding: 8px var(--cta-side-padding);
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--on-ink);
  text-align: center;
  text-decoration: none;
  line-height: 1.4;
  transition: background-color .18s ease, color .18s ease;
}

.cta-unified-link.is-primary:hover {
  background: var(--ink-deep);
  color: var(--on-ink);
}

.cta-unified-link.is-sample {
  background: var(--white);
  color: var(--ink);
}

.cta-unified-link.is-sample:hover {
  background: var(--tint);
  color: var(--ink-deep);
}

.btn-big[data-purpose="sample"] {
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
}

.btn-big[data-purpose="sample"]:hover {
  background: var(--tint);
}

.btn-big[data-purpose="sample"] .btn-big-sub {
  color: var(--muted);
}

.cta-unified-title {
  font-size: var(--cta-title-size);
  font-weight: 700;
}

.cta-unified-sub {
  display: block;
  max-height: var(--cta-detail-height);
  margin-top: var(--cta-detail-gap);
  overflow: hidden;
  opacity: var(--cta-detail-opacity);
  font-size: 13px;
  line-height: 1.6;
  color: var(--on-ink-70);
}

.is-sample .cta-unified-sub {
  color: var(--muted);
}

.cta-rail {
  display: none;
  position: fixed;
  inset: auto 0 0;
  z-index: 39;
  height: calc(68px + env(safe-area-inset-bottom, 0px));
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(248, 245, 238, .94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
  opacity: var(--cta-rail-opacity, 0);
  pointer-events: none;
}

.cta-ready .cta-rail {
  display: block;
}

.cta-ready .cta-unified[data-state="floating"] .cta-unified-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: var(--cta-width);
  height: var(--cta-height);
  transform: translate3d(var(--cta-x), var(--cta-y), 0);
}

.cta-ready .cta-unified[data-state="hidden"] {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 767px) {
  .cta-landing {
    --cta-gap: 16px;
    --cta-card-height: 92px;
    height: calc(2 * var(--cta-card-height) + var(--cta-gap));
  }

  .cta-unified {
    --cta-title-size: 17px;
    --cta-side-padding: 16px;
    grid-template-columns: 1fr;
  }

  .cta-rail {
    height: calc(84px + env(safe-area-inset-bottom, 0px));
  }

  .cta-destination {
    padding-block: 48px;
  }

  .cta-unified-sub {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-motion-ready .hero-still {
    visibility: visible;
  }
  .hero-motion-ready .hero-scene {
    visibility: hidden;
  }
  .cta-unified-link {
    transition: none;
  }
}

@media print {
  .cta-rail, .cta-destination {
    display: none !important;
  }

  .hero-art, .section::before {
    display: none;
  }
}
