/* デザイントークンは tokens.css を唯一の出典とする（このファイルでは再定義しない）。
   index.html は tokens.css → styles.css の順に読み込むこと。 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ivory);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  /* 日本語は本文もラベルも明朝で統一する。英字のマイクロラベルのみ Manrope。 */
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.025em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-active {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

/* UA 既定の small { font-size: smaller } は、既に 8-9px まで落ちた親サイズに二重にかかり
   意図しない 6.7px / 7.5px を生む。ラベルの寸法は必ず指定側で決める。 */
small {
  font: inherit;
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd,
ol {
  margin: 0;
}

h1,
h2,
h3,
blockquote {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.025em;
  text-wrap: balance;
  word-break: auto-phrase;
}

p,
dd,
li,
small {
  text-wrap: pretty;
  word-break: auto-phrase;
}

::selection {
  color: var(--ivory-hi);
  background: var(--kitsurin);
}

:focus-visible {
  outline: 2px solid var(--kitsurin);
  outline-offset: 4px;
}

.section--dark :focus-visible,
.footer :focus-visible,
.site-header :focus-visible {
  outline-color: var(--kitsurin);
}

.contact__panel :focus-visible {
  outline-color: var(--kitsurin);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 4000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--ivory-hi);
  background: var(--kitsurin);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.skip-link:focus-visible {
  outline-color: var(--sun);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-y) var(--page-x);
}

.section[id] {
  scroll-margin-top: var(--header-h);
}

.section--dark {
  max-width: none;
  color: var(--ivory-hi);
  background: var(--deep);
}

/* Header */
.site-header {
  position: fixed;
  z-index: 200;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  height: var(--header-h);
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-x);
  /* ヒーローが明るくなったため、最初から濃色文字＋アイボリー地で固定する。 */
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 242, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background-color 0.45s ease, border-color 0.45s ease;
}

.site-header.is-scrolled,
.site-header.menu-visible {
  /* 0.94 では濃色セクションが透けてヘッダーが二色になる（継ぎ目が出る）。 */
  background: rgba(250, 248, 242, 0.985);
}

.brand {
  position: relative;
  z-index: 3;
  width: clamp(148px, 12vw, 188px);
}

.brand img {
  width: 100%;
}

.desktop-nav {
  display: flex;
  height: 100%;
  align-items: center;
  gap: clamp(16px, 2vw, 34px);
}

.desktop-nav > a {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.desktop-nav > a:not(.nav-contact) {
  height: 100%;
}

.desktop-nav > a:not(.nav-contact)::after {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}

.desktop-nav > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-contact {
  min-width: 138px;
  height: 52px;
  padding: 0 18px;
  justify-content: space-between;
  color: var(--ivory-hi);
  border: 1px solid var(--kitsurin);
  background: var(--kitsurin);
  transition: color 0.3s ease, background-color 0.3s ease, transform 0.12s ease;
}

.nav-contact:hover {
  color: var(--kitsurin);
  background: transparent;
}

.nav-contact:active {
  transform: translateY(1px);
}

.desktop-nav > a:not(.nav-contact):active::after {
  transform: scaleX(1);
  transform-origin: left;
  opacity: 0.6;
}

.nav-contact i {
  font-style: normal;
}

.menu-button {
  position: relative;
  z-index: 3;
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
}

.menu-button > span:not(.sr-only) {
  position: absolute;
  left: 13px;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: top 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.menu-button > span:first-child { top: 19px; }
.menu-button > span:nth-child(2) { top: 28px; }
.menu-button[aria-expanded="true"] > span:first-child { top: 24px; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] > span:nth-child(2) { top: 24px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed;
  z-index: 2;
  inset: 0;
  color: var(--ink);
  background: var(--ivory-hi);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav__inner {
  display: flex;
  height: 100%;
  padding: 104px 24px 36px;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* auto マージンで中央寄せ。項目が増えて収まらない場合は上下が潰れるだけで、
   justify-content: center のように端が切れない。 */
.mobile-nav__inner > a:first-child {
  margin-top: auto;
}

.mobile-nav__inner > a:last-child {
  margin-bottom: auto;
}

.mobile-nav a {
  display: grid;
  padding: 16px 0;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: clamp(21px, 4.8vw, 30px);
  grid-template-columns: 48px 1fr;
  transition: color 0.25s ease, padding-left 0.3s var(--ease-out);
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  color: var(--kitsurin);
}

.mobile-nav a:active {
  color: var(--kitsurin);
  padding-left: 6px;
}

.mobile-nav small {
  color: var(--kitsurin);
  font-family: var(--font-en);
  font-size: var(--fs-micro);
  font-weight: 600;
}

.nojs-nav {
  display: none;
}

/* Common editorial system */
.chapter {
  display: grid;
  width: min(100%, 280px);
  align-items: center;
  gap: 14px;
  color: var(--kitsurin);
  font-family: var(--font-en);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
  grid-template-columns: auto 1fr auto;
}

.chapter i {
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.chapter small {
  font: inherit;
}

.chapter--light {
  color: rgba(250, 248, 242, 0.7);
}

.eyebrow {
  margin-top: clamp(16px, 1.6vw, 24px);
  color: var(--kitsurin);
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: rgba(250, 248, 242, 0.55);
}

.section-title {
  margin-top: 16px;
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.26;
}

.section-title > span {
  display: block;
}

.section-title--light {
  color: var(--ivory-hi);
}

.body-copy {
  color: var(--ink-soft);
  font-size: clamp(16px, 1.12vw, 18px);
  line-height: 2.05;
}

.body-copy p + p {
  margin-top: 1.7em;
}

/* Hero — 橘の木のある広場。同じ絵を2枚重ね、下をグレースケール、上を円形マスクで開く。
   木を中心に色が市場へ広がる動きが、そのままスローガンの意味になる。 */
.hero {
  position: relative;
  min-height: max(620px, 100svh);
  overflow: hidden;
  color: var(--ink);
  background: var(--sky);
}

/* ヘッダーは不透明なので、絵はヘッダーの下から始める。
   これで木の頭と空が必ず見える（inset:0 だと上端が隠れていた）。 */
.plaza {
  --cx: 50%;
  --cy: 38%;
  --r: 0%;
  --ring-o: 0;
  --glow-o: 0;
  position: absolute;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
}

/* 静止画を2枚重ね、下をグレースケール、上を円形マスクで開いていく。
   backdrop-filter は対応が狭いので、素の filter で成立する2枚重ねにする。 */
.plaza__base,
.plaza__color {
  position: absolute;
  inset: 0;
  background: url("assets/plaza-1800.webp") center top / cover no-repeat;
  transform: scale(var(--zoom, 1));
  transform-origin: var(--cx) var(--cy);
}

@media (min-width: 1101px) {
  .plaza__base,
  .plaza__color {
    background-image: url("assets/plaza-3072.webp");
  }
}

.plaza__base {
  filter: grayscale(1) brightness(1.08) contrast(0.94);
}

.plaza__color {
  -webkit-mask-image: radial-gradient(circle at var(--cx) var(--cy), #000 calc(var(--r) - 9%), transparent var(--r));
  mask-image: radial-gradient(circle at var(--cx) var(--cy), #000 calc(var(--r) - 9%), transparent var(--r));
}

.plaza__ring,
.plaza__glow,
.plaza__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.plaza__ring {
  background: radial-gradient(
    circle at var(--cx) var(--cy),
    transparent calc(var(--r) - 8%),
    rgba(255, 214, 150, 0.5) calc(var(--r) - 3.5%),
    rgba(255, 236, 206, 0.22) calc(var(--r) - 1%),
    transparent var(--r)
  );
  mix-blend-mode: screen;
  opacity: var(--ring-o);
}

.plaza__glow {
  background: radial-gradient(circle at var(--cx) var(--cy), rgba(212, 124, 49, 0.28), transparent 46%);
  mix-blend-mode: screen;
  opacity: var(--glow-o);
}

/* 見出しパネル周りをわずかに沈めて、絵の情報量から文字を切り離す。 */
.plaza__veil {
  background:
    linear-gradient(105deg, rgba(8, 40, 29, 0.34) 0%, rgba(8, 40, 29, 0.12) 34%, transparent 58%),
    linear-gradient(180deg, transparent 58%, rgba(8, 40, 29, 0.24));
}

.hero__grid {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  min-height: max(620px, 100svh);
  margin: 0 auto;
}

/* 絵を隠さないよう最小限に。文字量から必要な幅だけ取る。 */
/* 光が外周へ届いてから浮き出る。起点は JS（script.js が .is-lit を付ける）。
   CSS の delay では動画の読み込み時間分だけ順序が逆転する。 */
.js .hero__panel,
.js .scroll-cue {
  opacity: 0;
}

.js .hero.is-lit .hero__panel {
  animation: panel-in 1.1s var(--ease-out) both;
}

.js .hero.is-lit .scroll-cue {
  animation: panel-in 0.9s var(--ease-out) 0.5s both;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.hero__panel {
  position: absolute;
  bottom: clamp(48px, 7vh, 92px);
  left: var(--page-x);
  width: min(44vw, 520px);
  padding: clamp(20px, 1.8vw, 28px) clamp(22px, 2vw, 32px) clamp(22px, 2vw, 30px);
  /* ぼかしは木の輪郭を消すので使わない（実測: blur18px でエッジ量 3.4 / blur0 で 24.2）。
     面の値は --panel-bg で SCROLL ボタンと共有する。 */
  background: var(--panel-bg);
}

.hero__eyebrow {
  /* 10px の小さな文字なので AA は 4.5 必要。透過パネル上では kitsurin では届かない（実測 4.1）。 */
  color: var(--deep);
  font-family: var(--font-en);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.22em;
}

.statement {
  margin-top: 12px;
  /* 透過パネル上で締まって見えるよう、緑を深い側へ。 */
  color: var(--deep);
  font-size: clamp(32px, 3.8vw, 58px);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: 0.012em;
}

.statement span {
  display: block;
}

.hero__mission {
  margin-top: clamp(14px, 1.4vw, 20px);
  padding-top: clamp(13px, 1.3vw, 18px);
  border-top: 1px solid var(--line);
  /* 透過パネル上なので ink-soft では AA を割る（実測 3.7）。ink を使う。 */
  color: var(--ink);
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.95;
}

.scroll-cue {
  position: absolute;
  right: var(--page-x);
  bottom: clamp(28px, 4vh, 44px);
  display: flex;
  min-height: 40px;
  padding: 0 16px;
  align-items: center;
  gap: 14px;
  color: var(--kitsurin);
  /* 見出しパネルと同じ面。2つが同じ素材として読めるように共有する。 */
  background: var(--panel-bg);
  font-family: var(--font-en);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: gap 0.35s var(--ease-out), color 0.25s ease;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  color: var(--deep);
  gap: 20px;
}

.scroll-cue:active {
  color: var(--ink);
}

.scroll-cue i {
  width: 44px;
  height: 1px;
  background: currentColor;
}

/* Origin — Hero から降りてすぐの、静かな 1 段落 */

/* Reality — 左に見出し、右に本文。代表メッセージと同じ組み方に揃える。 */
.reality {
  display: grid;
  align-items: start;
  column-gap: clamp(18px, 2vw, 32px);
  row-gap: clamp(24px, 2.4vw, 40px);
  background: var(--ivory);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.reality__head {
  align-self: start;
  grid-column: 1 / 5;
}

.reality__body {
  grid-column: 5 / 13;
  color: var(--ink-soft);
}

/* Business */
.business {
  display: grid;
  column-gap: clamp(18px, 2vw, 32px);
  row-gap: clamp(32px, 3vw, 52px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.business__heading {
  position: sticky;
  top: var(--sticky-top);
  align-self: start;
  grid-column: 1 / 5;
}

.product {
  align-self: start;
  grid-column: 5 / 13;
  border-top: 1px solid var(--line-dark);
}

.product__header {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-dark);
}

.product__header > p {
  display: flex;
  gap: 12px;
  color: rgba(250, 248, 242, 0.72);
  font-family: var(--font-en);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.product__header small {
  color: var(--sun);
}

.product__header h3 {
  font-size: 21px;
  letter-spacing: 0.08em;
}

/* 製品パネル。暗いセクションの中で、プロダクトだけが明るい面になる
   （Reality の「明るい面に濃色カード」の反転で、同じ視覚言語を保つ）。 */
.product__panel {
  display: grid;
  margin-top: 14px;
  padding: clamp(22px, 2.2vw, 34px);
  gap: clamp(24px, 2.6vw, 40px);
  align-items: center;
  color: var(--ink);
  background: var(--ivory-hi);
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.4fr);
}

.product__status {
  display: inline-block;
  padding: 5px 12px;
  color: var(--ivory-hi);
  background: var(--kitsurin);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.product__en {
  margin-top: 18px;
  color: var(--kitsurin);
  font-family: var(--font-en);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.product__desc {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: clamp(13.5px, 0.98vw, 15px);
  line-height: 1.95;
}

.product__device {
  display: grid;
  justify-items: center;
}

/* 画面イメージは置かない（実 UI との乖離を避けるため）。ロゴのみを製品の印として置く。 */
.product__device img {
  width: min(100%, 250px);
  height: auto;
}

/* 3ステップ。暗い面に戻すことで「製品 → 使い方」の切り替わりを作る。 */
.product__flow {
  position: relative;
  display: grid;
  margin-top: 18px;
  padding: 0;
  gap: clamp(18px, 2vw, 30px);
  list-style: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product__flow::before {
  position: absolute;
  top: 41px;
  right: 16%;
  left: 16%;
  height: 1px;
  content: "";
  background: rgba(250, 248, 242, 0.28);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease-out) 0.3s;
}

.product.is-aligned .product__flow::before {
  transform: scaleX(1);
}

.no-js .product__flow::before {
  transform: scaleX(1);
}

.product__flow li {
  padding-left: 0;
  text-align: center;
}

.product__step-no {
  display: block;
  margin-bottom: 8px;
  color: var(--sun);
  font-family: var(--font-en);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
}

.product__step-icon {
  position: relative;
  z-index: 1;
  display: flex;
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  align-items: center;
  justify-content: center;
  color: var(--ivory-hi);
  border: 1px solid rgba(250, 248, 242, 0.34);
  background: var(--deep);
  transition: border-color 0.35s ease, color 0.35s ease;
}

.product__step-icon svg {
  width: 24px;
  height: 24px;
}

.product__flow li:hover .product__step-icon {
  color: var(--sun);
  border-color: var(--sun);
}

.product__flow p {
  color: rgba(250, 248, 242, 0.86);
  /* 製品説明(.product__desc)と同じ寸法・同じ行間に揃える。 */
  font-size: clamp(13.5px, 0.98vw, 15px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.95;
}

/* text-link 自身が上下に罫線を持つため、ここで枠線を足すと横線が 3 本重なる。 */
.product__footer {
  margin-top: 10px;
}

/* 濃色セクション上の操作行。Hero ブロック差し替え時に定義を巻き込んで消していた。 */
.text-link {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.text-link i {
  font-style: normal;
  transition: transform 0.35s var(--ease-out);
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--sun);
  border-color: rgba(228, 207, 158, 0.7);
}

.text-link:hover i {
  transform: translate(2px, -2px);
}

.text-link:active {
  color: var(--ivory-hi);
  border-color: rgba(250, 248, 242, 0.7);
}

.product__footer .text-link {
  margin-top: 0;
}


/* Purpose — 3項目を横に並べる。縦積み+スティッキー写真は3画面を消費していた。 */
.purpose {
  background: var(--ivory);
}

.purpose__head {
  max-width: 62em;
}

.purpose__items {
  display: grid;
  margin-top: clamp(28px, 2.8vw, 44px);
  padding: 0;
  gap: clamp(24px, 2.6vw, 44px);
  list-style: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.purpose-item {
  padding-left: 0;
}

.purpose-item__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--mist);
}

.purpose-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.purpose-item:nth-child(2) .purpose-item__media img {
  object-position: 42% center;
}

.purpose-item__number {
  margin-top: 22px;
  color: var(--kitsurin);
  font-family: var(--font-en);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
}

.purpose-item h3 {
  margin-top: 12px;
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.6;
}

.purpose-item > p:last-child {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: clamp(13px, 1vw, 14px);
  line-height: 1.95;
}

/* Message — 1書体・1サイズ・1段幅で、上から下へ素直に流す。
   ブロックにも段組みにも分けない。差をつけるのは太さだけ。 */
.message {
  display: grid;
  padding-top: clamp(36px, 3vw, 44px);
  padding-bottom: clamp(36px, 3vw, 44px);
  column-gap: clamp(18px, 2vw, 32px);
  row-gap: clamp(14px, 1.4vw, 22px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  background:
    radial-gradient(circle at 82% 4%, rgba(228, 207, 158, 0.21), transparent 26%),
    var(--ivory-hi);
}

.message .section-title {
  font-size: clamp(28px, 2.8vw, 40px);
  white-space: nowrap;
}

/* 日本語の1行は 40字前後が読みやすい上限。 */
.message__head {
  align-self: start;
  grid-column: 1 / 5;
}

.message__body {
  grid-column: 5 / 13;
  color: var(--ink-soft);
}

.message__body p + p {
  margin-top: 1.6em;
}

/* 署名も本文と同じ書体・同じサイズ。太さだけで差をつける。 */
.signature {
  display: flex;
  margin-top: 2.4em !important;
  align-items: baseline;
  justify-content: flex-end;
  gap: 20px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.signature span {
  color: var(--ink-soft);
  font-weight: 400;
}

/* 氏名だけは見出しと同じ明朝。本文の書体統一に対する意図的な例外。 */
.signature em {
  font-family: var(--font-serif);
  font-size: 1.35em;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* Company */
.company {
  display: grid;
  column-gap: clamp(18px, 2vw, 32px);
  row-gap: clamp(24px, 2.4vw, 40px);
  border-top: 1px solid var(--line);
  background: #f8f7f1;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.company__head {
  grid-column: 1 / 5;
}

.company__data {
  grid-column: 5 / 13;
  border-top: 1px solid var(--ink);
}

.company__data {
  display: grid;
  column-gap: clamp(24px, 2.6vw, 48px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.company__data > div {
  display: grid;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 116px 1fr;
}

.company__data > div:last-child {
  grid-column: 1 / -1;
}

.company__data dt {
  color: var(--kitsurin);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.company__data dd {
  font-size: 15px;
  line-height: 1.95;
}

.company__data dd span {
  display: block;
}

.company__data dd span + span {
  margin-top: 7px;
}

/* Contact */
.contact {
  display: grid;
  column-gap: clamp(18px, 2vw, 32px);
  row-gap: clamp(24px, 2.6vw, 40px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.contact__intro {
  align-self: center;
  grid-column: 1 / 6;
}

.contact__intro h2 {
  margin-top: clamp(14px, 1.4vw, 20px);
  font-size: clamp(26px, 2.9vw, 42px);
  line-height: 1.42;
}

.contact__intro h2 span {
  display: block;
  white-space: nowrap;
}

/* 見出しに続く 2 段（思想 → 実務）。書体・サイズ・行間・色は 1 種で揃える。 */
.contact__intro > p:not(.chapter) {
  margin-top: 20px;
  color: rgba(250, 248, 242, 0.86);
  font-size: 14px;
}

.contact__panel {
  grid-column: 6 / 13;
  padding: clamp(26px, 2.8vw, 40px);
  color: var(--ink);
  background: var(--ivory-hi);
}

/* 入力欄は2つずつ並べ、本文欄のみ全幅にして縦を詰める。 */
.form-grid {
  display: grid;
  gap: 20px 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
}

.form-field label em,
.form-field label span {
  margin-left: 8px;
  font-size: var(--fs-caption);
  font-style: normal;
}

.form-field label em {
  color: var(--kitsurin);
  font-weight: 700;
}

.form-field label span {
  color: #6e766f;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid rgba(21, 33, 27, 0.34);
  border-radius: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  transition: border-color 0.25s ease;
}

.form-field textarea {
  min-height: 104px;
  resize: vertical;
}

.form-field select {
  appearance: none;
  /* 独自の caret と選択値が重ならないよう右側を空ける。 */
  padding-right: 26px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--kitsurin) 50%),
    linear-gradient(135deg, var(--kitsurin) 50%, transparent 50%);
  background-position:
    calc(100% - 7px) calc(50% - 2px),
    calc(100% - 2px) calc(50% - 2px);
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--kitsurin);
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--kitsurin);
  outline-offset: 4px;
}

.form-consent {
  display: flex;
  margin-top: 24px;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: var(--fs-caption);
}

.form-consent input {
  width: 17px;
  height: 17px;
  accent-color: var(--kitsurin);
}

.form-consent a {
  color: var(--kitsurin);
  border-bottom: 1px solid currentColor;
  transition: color 0.25s ease;
}

.form-consent a:hover,
.form-consent a:focus-visible {
  color: var(--deep);
}

.form-consent a:active {
  color: var(--ink);
}

.submit-button {
  display: flex;
  width: 100%;
  min-height: 52px;
  margin-top: 26px;
  padding: 0 22px;
  align-items: center;
  justify-content: space-between;
  color: var(--ivory-hi);
  border: 1px solid var(--kitsurin);
  background: var(--kitsurin);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.09em;
  transition: color 0.3s ease, background-color 0.3s ease, transform 0.12s ease;
}

.submit-button:hover {
  color: var(--kitsurin);
  background: transparent;
}

.submit-button:active {
  color: var(--ivory-hi);
  background: var(--deep);
  border-color: var(--deep);
  transform: translateY(1px);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.6;
  transform: none;
}

.submit-button i {
  font-size: 17px;
  font-style: normal;
  transition: transform 0.35s var(--ease-out);
}

.submit-button:hover i {
  transform: translateX(3px);
}

.form-status,
.form-error {
  margin-top: 14px;
  font-size: var(--fs-caption);
}

.form-status {
  color: var(--ink-soft);
}

.form-error {
  margin: 0 0 24px;
  padding: 13px 15px;
  color: #7b302d;
  border-left: 2px solid #9a4944;
  background: #f6eae8;
}

.form-success {
  min-height: 340px;
  place-content: center;
  text-align: center;
}

.form-success:not([hidden]) {
  display: grid;
}

.form-success p {
  color: var(--kitsurin);
  font-family: var(--font-serif);
  font-size: 28px;
}

.form-success span {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 13px;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
}

/* Footer */
.footer {
  padding: 44px var(--page-x) 28px;
  /* ナビリンクの既定色は 0.80 を下回らせない（hover でしか読めない状態を作らない）。 */
  color: rgba(250, 248, 242, 0.82);
  border-top: 1px solid rgba(250, 248, 242, 0.12);
  background: var(--deep-2);
}

.footer__main {
  display: flex;
  padding-bottom: 34px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(250, 248, 242, 0.14);
}

.footer__main img {
  width: clamp(164px, 15vw, 230px);
  filter: brightness(0) invert(1);
}

.footer__main a {
  display: flex;
  gap: 16px;
  align-items: center;
  font-family: var(--font-en);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s ease, gap 0.35s var(--ease-out);
}

.footer__main a:hover,
.footer__main a:focus-visible {
  color: var(--ivory-hi);
  gap: 22px;
}

.footer__main a:active {
  color: var(--sun);
}

.footer__main a i {
  font-style: normal;
}

.footer nav {
  display: flex;
  padding: 26px 0;
  flex-wrap: wrap;
  gap: 15px 34px;
  font-size: var(--fs-caption);
}

.footer nav a {
  transition: color 0.25s ease;
}

.footer nav a:hover,
.footer nav a:focus-visible {
  color: var(--ivory-hi);
}

.footer nav a:active {
  color: var(--sun);
}

.footer__bottom {
  display: flex;
  padding-top: 28px;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(250, 248, 242, 0.14);
}

.footer__copyright {
  font-family: var(--font-en);
  font-size: var(--fs-micro);
  letter-spacing: 0.11em;
}

/* Progressive enhancement */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 0.95s ease, transform 1.05s var(--ease-out);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

.no-js .purpose-item {
  opacity: 1;
}

/* Tablet */
@media (max-width: 1160px) {
  :root {
    --page-x: clamp(28px, 4.5vw, 54px);
  }

  .desktop-nav {
    gap: 19px;
  }

  .desktop-nav > a {
    font-size: 11px;
  }

  .nav-contact {
    min-width: 126px;
  }

  .reality,
  .business,
  .purpose,
  .message,
  .company,
  .contact {
    column-gap: 20px;
    row-gap: 70px;
  }

  .product__panel {
    gap: 26px;
  }
}

@media (max-width: 920px) {
  :root {
    --header-h: 66px;
    --section-y: 124px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .no-js .menu-button {
    display: none;
  }

  .no-js .nojs-nav {
    position: fixed;
    z-index: 190;
    top: var(--header-h);
    right: 0;
    left: 0;
    display: flex;
    min-height: 48px;
    padding: 0 24px;
    align-items: center;
    gap: 28px;
    overflow-x: auto;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    background: rgba(250, 248, 242, 0.96);
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
  }

  /* HealthCan ブロック撤去でコンテンツが約 500px になったため、
     固定 940px をやめて 1 画面ぴったりに収める。 */
  .hero {
    min-height: max(560px, 100svh);
  }

  .hero__grid {
    display: flex;
    min-height: max(560px, 100svh);
    padding: calc(var(--header-h) + 28px) var(--page-x) 30px;
    flex-direction: column;
    justify-content: flex-end;
  }

  .hero__panel {
    position: relative;
    inset: auto;
    width: auto;
  }

  /* パネルの真上に置く。上端に出すと「下へ」の意味を失う。 */
  .scroll-cue {
    position: relative;
    inset: auto;
    margin: 0 0 18px auto;
  }

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

  .reality__head,
  .reality__body {
    grid-column: auto;
  }

  .contact__intro,
  .contact__panel {
    grid-column: auto;
  }

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

  .business__heading,
  .product {
    grid-column: auto;
  }

  .business__heading {
    position: relative;
    top: auto;
  }

  .product__panel {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.5fr);
  }

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

  .purpose__content {
    grid-column: auto;
  }

  .message,
  .company,
  .contact {
    grid-template-columns: 1fr;
  }

  .message__head,
  .message__body {
    grid-column: auto;
  }

  .reality__head,
  .reality__body {
    grid-column: auto;
  }

  .company__data,
  .purpose__items {
    grid-template-columns: 1fr;
  }

  .company__data > div:last-child {
    grid-column: auto;
  }

  .company__head,
  .company__data,
  .contact__intro,
  .contact__panel {
    grid-column: auto;
  }

  .contact__intro h2 {
    margin-top: 82px;
  }
}

/* Mobile */
@media (max-width: 620px) {
  :root {
    --page-x: 24px;
    --section-y: 112px;
  }

  body {
    font-size: 15px;
    line-height: 1.95;
  }

  .site-header {
    padding: 0 18px 0 22px;
  }

  .brand {
    width: 148px;
  }

  /* nowrap 見出しは、字数から逆算した上限を併用して物理的に溢れないようにする。
     body の overflow-x: clip により、溢れてもスクロールバーが出ず無言で切れるため。
     除数 = 文字数 × (1 + letter-spacing)。 */
  .statement {
    font-size: min(clamp(34px, 11.8vw, 50px), calc((100vw - var(--page-x) * 2 - 2px) / 7.06));
    line-height: 1.28;
    letter-spacing: 0.008em;
  }

  .statement span:first-child {
    white-space: nowrap;
  }

  .hero {
    min-height: max(540px, 100svh);
  }

  .hero__grid {
    min-height: max(540px, 100svh);
    padding: 120px 24px 40px;
  }

  .hero__eyebrow {
    letter-spacing: 0.18em;
  }

  .hero__panel {
    padding: 24px 22px 26px;
  }

  .statement {
    margin-top: 16px;
    font-size: min(clamp(30px, 8.6vw, 44px), calc((100vw - var(--page-x) * 2 - 46px) / 7.09));
    line-height: 1.28;
  }

  /* 折り返し可でも、CJK の 1 文節は分割されないため min-content がカラム幅を押し広げる。
     最長文節(7字)基準の上限を併用して、極小幅でもグリッドを溢れさせない。 */
  /* 最長の分割不能語（「マーケティングの肥大化」= 実測 8.08 文字ぶん）から逆算。
     body の overflow-x: clip により、溢れてもスクロールバーが出ず無言で切れるため。 */
  .section-title {
    font-size: min(clamp(28px, 11.5vw, 52px), calc((100vw - var(--page-x) * 2 - 2px) / 8.15));
    line-height: 1.47;
  }

  .eyebrow {
    margin-top: 64px;
  }

  .chapter {
    width: 230px;
  }

  .product__header {
    min-height: 78px;
  }

  .product__panel {
    margin-top: 36px;
    padding: 30px 22px 34px;
    gap: 36px;
    grid-template-columns: 1fr;
  }

  .product__device {
    order: -1;
  }

  /* 縦 1 列では 3 連の連結線が意味を持たないので、縦の区切りに置き換える。 */
  .product__flow {
    margin-top: 44px;
    gap: 0;
    grid-template-columns: 1fr;
  }

  .product__flow::before {
    display: none;
  }

  .product__flow li {
    display: grid;
    padding: 20px 0;
    gap: 4px 18px;
    align-items: center;
    border-bottom: 1px solid var(--line-dark);
    text-align: left;
    grid-template-columns: 58px 1fr;
  }

  .product__flow li:first-child {
    border-top: 1px solid var(--line-dark);
  }

  .product__step-no {
    margin-bottom: 0;
    grid-column: 2;
  }

  .product__step-icon {
    margin: 0;
    grid-area: 1 / 1 / 3 / 2;
  }

  .product__footer {
    margin-top: 40px;
  }

  .purpose__head .section-title {
    font-size: clamp(34px, 11.5vw, 48px);
  }

  .purpose-item h3 {
    font-size: 29px;
  }

  /* blockquote は左右にパディングを持つため、その分も引いて字数から逆算する。
     引き忘れると 280-360px で溢れる。 */
  .signature span {
    display: block;
    margin-bottom: 5px;
  }

  .company__data > div {
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .contact__intro h2 {
    font-size: min(clamp(26px, 8.9vw, 35px), calc((100vw - var(--page-x) * 2 - 2px) / 9.23));
  }

  .contact__panel {
    margin: 0 -24px;
    padding: 40px 24px;
  }

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

  .form-field--full {
    grid-column: auto;
  }

  .footer {
    padding: 54px 24px 28px;
  }

  .footer__main {
    gap: 40px;
    flex-direction: column;
  }

  .footer nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__bottom {
    gap: 18px;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-height: 740px) and (min-width: 921px) {
  .hero {
    min-height: 780px;
  }

  .hero__grid {
    min-height: 780px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .plaza {
    --r: 150%;
    --ring-o: 0;
    --glow-o: 1;
  }

  .js .hero__panel,
  .js .scroll-cue {
    opacity: 1;
    animation: none;
  }
}

/* 印刷・PDF保存。reveal は IntersectionObserver でしか解除されないため、
   打ち消さないと Hero 以外の本文がすべて空白で出力される。 */
@media print {
  @page {
    margin: 14mm;
  }

  html,
  body {
    background: #fff;
    color: #000;
  }

  /* transition が残ると、印刷開始直後の中途半端な opacity のまま紙に落ちる。 */
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .site-header,
  .mobile-nav,
  .nojs-nav,
  .scroll-cue,
  .skip-link,
  .footer__bottom,
  .plaza {
    display: none !important;
  }

  .hero,
  .section--dark,
  .contact__panel,
  .footer {
    color: #000 !important;
    background: #fff !important;
  }

  .hero {
    min-height: 0;
  }

  .hero__grid {
    display: block;
    min-height: 0;
    padding: 0;
  }

  .hero__panel {
    position: static;
    width: auto;
    padding: 0;
    margin: 0 0 24px;
  }

  .statement,
  .section-title--light,
  .chapter--light,
  .eyebrow--light,
  .product__flow p,
  .footer nav a {
    color: #000 !important;
  }

  .section {
    padding: 24px 0;
    break-inside: avoid;
  }

  .purpose-item {
    padding: 12px 0;
    break-inside: avoid;
  }

  .reality,
  .business,
  .purpose,
  .message,
  .company,
  .contact {
    display: block;
  }

  /* 背景・グラデーションは既定で印刷されない。罫線に依存した表現は文字だけに落とす。 */
  .chapter i {
    display: none;
  }

  .contact-form,
  .product__flow::before {
    display: none;
  }

  /* 旧・画面イメージは印刷では落としていたが、ロゴは製品の識別なので残す。 */
  .product__device img {
    width: 160px;
  }

  .product__header > p {
    color: #000;
  }

  .product__panel {
    padding: 0;
    gap: 0;
    grid-template-columns: 1fr;
  }

  .product__flow {
    gap: 12px;
  }

  .product__step-icon {
    color: #000;
    border-color: #999;
    background: none;
  }

  a[href^="#"]::after {
    content: "";
  }
}

/* 強制配色モード。写真と rgba に依存した可読性が失われるため、面を単色へ落とす。 */
@media (forced-colors: active) {
  .plaza__base,
  .plaza__color,
  .plaza__ring,
  .plaza__glow,
  .plaza__veil {
    display: none;
  }

  .hero {
    background: Canvas;
  }

  .statement,
  .scroll-cue,
  .chapter--light,
  .eyebrow--light {
    color: CanvasText;
  }

  .chapter i,
  .scroll-cue i,
  .product__flow::before {
    forced-color-adjust: none;
    background: CanvasText;
  }

  .submit-button,
  .nav-contact {
    border: 1px solid ButtonBorder;
  }
}
