:root {
  color-scheme: light;
  --ink: #111111;
  --ink-soft: #2b2b2b;
  --muted: #666666;
  --line: #d8d8d8;
  --line-dark: #111111;
  --paper: #ffffff;
  --soft: #f6f6f4;
  --soft-2: #ecebe7;
  --focus: #8a7d63;
  --page-gutter: clamp(8px, 1vw, 16px);
  --content-left-gutter: clamp(22px, 3vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.9;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(17,17,17,.08);
  backdrop-filter: blur(16px);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.94);
  border-color: rgba(17,17,17,.16);
  box-shadow: 0 14px 38px rgba(17,17,17,.05);
}
.header-inner {
  width: 100%;
  height: 76px;
  padding-inline: var(--page-gutter);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
}
.brand {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .08em;
}
.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 1.4vw, 24px);
  min-width: 0;
}
.header-nav a {
  position: relative;
  flex: 0 0 auto;
  padding: 10px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  letter-spacing: .14em;
  transition: color .2s ease;
}
.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .24s ease;
}
.header-nav a:hover,
.header-nav a[aria-current="page"] {
  color: var(--ink);
}
.header-nav a:hover::after,
.header-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

main { padding-top: 76px; }
.container {
  width: 100%;
  padding-left: calc(var(--page-gutter) + var(--content-left-gutter));
  padding-right: var(--page-gutter);
}
.section { padding: 112px 0; }
.section.border { border-top: 1px solid var(--line); }
.section.soft { background: var(--soft); }
.eyebrow { font-size: 12px; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; margin-bottom: 18px; }
.display {
  font-size: clamp(44px, 8vw, 118px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0;
}
.page-title {
  font-size: clamp(44px, 8vw, 104px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0;
}
.lead {
  font-size: clamp(18px, 2.1vw, 26px);
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}
.text { color: var(--muted); margin: 0; }
.large-copy { font-size: clamp(30px, 5vw, 64px); line-height: 1.2; font-weight: 500; margin: 0; }

.hero {
  position: relative;
  height: calc(100vh - 76px);
  height: calc(100svh - 76px);
  min-height: 0;
  display: grid;
  align-items: center;
  padding: clamp(24px, 6svh, 72px) 0;
  overflow: hidden;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("assets/hero-cycle-illustration.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 92%;
  border-bottom: 1px solid var(--line);
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  height: 100%;
}
.hero-body {
  display: grid;
  gap: clamp(16px, 3svh, 30px);
  max-width: min(1120px, 100%);
}
.hero .display {
  font-size: clamp(40px, min(7.2vw, 12svh), 104px);
  line-height: 1.34;
}
.hero-line {
  display: block;
  white-space: nowrap;
}
.hero-line + .hero-line {
  margin-left: 1.5em;
}
.hero .eyebrow,
.hero .lead {
  color: var(--ink-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual {
  justify-self: end;
  width: min(100%, 720px);
  max-height: calc(100% - 24px);
  margin: 0;
  padding: clamp(16px, 2.4vw, 30px);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
  display: grid;
  place-items: center;
}
.hero-visual img {
  width: 100%;
  max-height: min(34svh, 340px);
  height: auto;
  object-fit: contain;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.button.secondary { background: transparent; color: var(--ink); }
.hero .button {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.hero .button.secondary {
  background: transparent;
  color: var(--ink);
}
.button:hover { transform: translateY(-2px); }
.button.secondary:hover { background: var(--ink); color: var(--paper); }
.hero .button.secondary:hover {
  background: var(--ink);
  color: var(--paper);
}
.hero-image,
.feature-image {
  overflow: hidden;
  background: var(--soft);
  aspect-ratio: 4 / 5;
}
.hero-image img,
.feature-image img { height: 100%; object-fit: cover; filter: grayscale(1); transition: transform .7s ease; }
.hero-image:hover img,
.feature-image:hover img { transform: scale(1.03); }

.two-column { display: grid; grid-template-columns: .78fr 1fr; gap: 72px; align-items: start; }
.copy-stack { display: grid; gap: 26px; }
.link-arrow { display: inline-flex; gap: 12px; align-items: center; width: fit-content; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.link-arrow::after { content: "→"; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(5px); }

.business-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.business-card {
  border-top: 1px solid var(--ink);
  padding-top: 24px;
  display: grid;
  gap: 20px;
  min-height: 330px;
}
.business-card h3 { font-size: clamp(32px, 4vw, 56px); line-height: 1; font-weight: 500; margin: 0; }
.business-card .jp { font-size: 18px; color: var(--ink); }
.story-steps { counter-reset: step; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.story-steps li { counter-increment: step; min-height: 170px; padding: 22px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; display: flex; flex-direction: column; justify-content: space-between; }
.story-steps li::before { content: "0" counter(step); font-size: 12px; letter-spacing: .16em; color: var(--muted); }
.story-steps strong { font-size: 18px; line-height: 1.5; }

.page-hero { padding: 118px 0 86px; border-bottom: 1px solid var(--line); }
.page-hero .lead { max-width: 760px; margin-top: 28px; }
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.content-block { border-top: 1px solid var(--ink); padding-top: 20px; }
.content-block h2, .content-block h3 { margin: 0 0 14px; font-size: 22px; font-weight: 600; }
.image-band { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: stretch; }
.image-band .feature-image { aspect-ratio: 16 / 10; }
.image-band .caption { background: var(--soft); padding: 32px; display: grid; align-content: end; }
.service-list { display: grid; gap: 18px; }
.service-row { display: grid; grid-template-columns: 170px 1fr; gap: 32px; padding: 24px 0; border-top: 1px solid var(--line); }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.philosophy-text { max-width: 800px; display: grid; gap: 26px; font-size: clamp(20px, 2.6vw, 32px); line-height: 1.8; }
.company-table { border-top: 1px solid var(--ink); }
.company-row { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.company-row dt { font-weight: 600; }
.company-row dd { margin: 0; color: var(--muted); }
.placeholder { color: var(--muted); background: var(--soft); padding: 2px 8px; }
.form-frame { border: 1px solid var(--line); background: var(--soft); min-height: 680px; }
.form-frame iframe { width: 100%; min-height: 680px; border: 0; display: block; background: var(--paper); }
.form-placeholder { padding: 38px; display: grid; gap: 16px; }

.site-footer { border-top: 1px solid var(--ink); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-brand { font-size: 24px; letter-spacing: .08em; font-weight: 600; margin-bottom: 18px; }
.footer-copy { font-size: clamp(24px, 4vw, 46px); line-height: 1.25; margin: 0; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; align-content: start; }
.footer-nav a { padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--muted); }
.footer-bottom { margin-top: 54px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; }

.reveal {
  --reveal-x: 0;
  --reveal-y: 46px;
  --reveal-scale: 1;
  --reveal-delay: 0ms;
  opacity: 0;
  transform: translate3d(var(--reveal-x), var(--reveal-y), 0) scale(var(--reveal-scale));
  transition: opacity .9s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--reveal-delay);
  will-change: opacity, transform;
}
.reveal[data-reveal="right"] {
  --reveal-x: 38px;
  --reveal-y: 0;
}
.reveal[data-reveal="zoom"] {
  --reveal-y: 22px;
  --reveal-scale: .965;
}
.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.story-steps.reveal {
  opacity: 1;
  transform: none;
}
.story-steps.reveal li {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .72s cubic-bezier(.22, 1, .36, 1), transform .72s cubic-bezier(.22, 1, .36, 1);
}
.story-steps.reveal.is-visible li {
  opacity: 1;
  transform: translateY(0);
}
.story-steps.reveal.is-visible li:nth-child(1) { transition-delay: 60ms; }
.story-steps.reveal.is-visible li:nth-child(2) { transition-delay: 140ms; }
.story-steps.reveal.is-visible li:nth-child(3) { transition-delay: 220ms; }
.story-steps.reveal.is-visible li:nth-child(4) { transition-delay: 300ms; }
.story-steps.reveal.is-visible li:nth-child(5) { transition-delay: 380ms; }
.story-steps.reveal.is-visible li:nth-child(6) { transition-delay: 460ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal,
  .story-steps.reveal li { opacity: 1; transform: none; }
}
@media (max-height: 620px) {
  .hero {
    padding: 18px 0;
  }
  .hero-body {
    gap: 12px;
  }
  .hero .display {
    font-size: clamp(32px, min(6.6vw, 10svh), 76px);
  }
  .hero .lead {
    font-size: 16px;
    line-height: 1.6;
  }
  .hero .button {
    min-height: 40px;
    padding-inline: 16px;
  }
}
@media (max-width: 980px) {
  .hero-grid, .two-column, .image-band, .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-image { aspect-ratio: 16 / 10; }
  .hero-visual { display: none; }
  .business-grid, .content-grid { grid-template-columns: 1fr; }
  .story-steps { grid-template-columns: repeat(3, 1fr); }
  .header-inner { gap: 24px; }
  .header-nav { gap: clamp(6px, 1vw, 14px); }
  .header-nav a { font-size: 11px; letter-spacing: .1em; }
}
@media (max-width: 640px) {
  :root {
    --page-gutter: clamp(6px, 2vw, 10px);
    --content-left-gutter: clamp(12px, 4vw, 18px);
  }
  .header-inner { grid-template-columns: 1fr; gap: 8px; height: auto; padding: 16px var(--page-gutter) 12px; }
  main { padding-top: 104px; }
  .brand { font-size: 18px; }
  .header-nav { width: 100%; justify-content: space-between; gap: clamp(4px, 1.6vw, 10px); overflow: visible; padding-bottom: 4px; }
  .header-nav a { font-size: clamp(9px, 2.75vw, 11px); letter-spacing: .04em; }
  .section { padding: 72px 0; }
  .hero {
    height: calc(100vh - 104px);
    height: calc(100svh - 104px);
    padding: 24px 0;
    background-position: right 8px bottom 18px;
    background-size: auto 52%;
  }
  .hero-body {
    gap: 14px;
  }
  .hero .display {
    font-size: clamp(31px, 9.6vw, 48px);
  }
  .hero-line + .hero-line {
    margin-left: .6em;
  }
  .hero .lead {
    font-size: clamp(15px, 4vw, 18px);
    line-height: 1.65;
  }
  .hero .button {
    min-height: 42px;
    padding-inline: 16px;
  }
  .page-hero { padding: 82px 0 58px; }
  .story-steps { grid-template-columns: 1fr; }
  .service-row, .company-row { grid-template-columns: 1fr; gap: 8px; }
  .footer-nav { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .form-frame, .form-frame iframe { min-height: 560px; }
}
