@charset "utf-8";

/* ==========================================================================
   ChapterSun LLC — Site Stylesheet
   D案「目次型」: 左に目次、本文は右。区切りは1pxの罫線と隙間だけ
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700;900&family=Space+Grotesk:wght@400;500;700&display=swap");


/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --paper:         #f2f1ec;
  --paper-alt:     #eae8e0;
  --paper-hi:      #faf9f5;
  --ink:           #171714;
  --surface-dark:  #17352e;   /* 暗いセクションの面。--ink はテキスト・線用 */
  --ink-body:      #4a4941;
  --ink-muted:     #6b6a62;
  --ink-muted-alt: #57564d;   /* --paper-alt の上ではこちらを使う */
  --accent:        #27544a;
  --accent-deep:   #17352e;
  --accent-on-ink: #7fb5a4;
  --accent-on-ink-mid:  rgba(127, 181, 164, 0.45);
  --accent-on-ink-soft: rgba(127, 181, 164, 0.30);
  --hairline:      rgba(23, 23, 20, 0.14);
  --hairline-mid:  rgba(23, 23, 20, 0.18);
  --hairline-strong: rgba(23, 23, 20, 0.28);
  --on-ink:        #f2f1ec;
  --on-ink-soft:   rgba(242, 241, 236, 0.78);
  --on-ink-line:   rgba(242, 241, 236, 0.20);
  --on-ink-dim:    rgba(242, 241, 236, 0.50);
  --on-ink-faint:  rgba(242, 241, 236, 0.34);
  --on-ink-veil:   rgba(242, 241, 236, 0.09);
  --warn:          #a8391f;

  --font-jp:   "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en:   "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  --index-w:   268px;
  --gutter:    72px;
  --section-y: 88px;
}

@media (max-width: 999px) {
  :root {
    --gutter: 24px;
    --section-y: 48px;
  }
}


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

html {
  scroll-behavior: smooth;
  /* 目次から飛んだとき、上部バーの下に見出しが隠れないように */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body.is-menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; border: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

a { color: var(--accent); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent-deep); }

::selection { background: var(--ink); color: var(--paper); }

.en {
  font-family: var(--font-en);
  font-weight: 500;
  letter-spacing: 0.18em;
}


/* ==========================================================================
   Shell — 左の目次 + 本文
   ========================================================================== */
.shell {
  display: grid;
  grid-template-columns: var(--index-w) minmax(0, 1fr);
}

/* --- 左の目次（デスクトップのみ） --- */
.site-index {
  border-right: 1px solid var(--hairline);
  padding: 40px 32px;
  align-self: start;
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.site-index__logo { width: 132px; }

.site-index__label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.site-index__list { display: flex; flex-direction: column; }

.site-index__list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
  color: var(--ink-muted);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.site-index__list li:last-child a { border-bottom: 1px solid var(--hairline); }

.site-index__list a::before {
  content: attr(data-n);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  width: 20px;
  flex-shrink: 0;
}

.site-index__list a:hover,
.site-index__list a.is-current {
  color: var(--ink);
  font-weight: 700;
}
.site-index__list a.is-current::before { color: var(--accent); }

.site-index__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}

.site-index__others { display: flex; flex-direction: column; gap: 8px; }
.site-index__others a { font-size: 13px; color: var(--ink-muted); }
.site-index__others a:hover { color: var(--ink); }


/* --- 上部バー（1000px未満） --- */
.topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 40;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}

.topbar > a { display: inline-flex; align-items: center; min-height: 44px; }
.topbar__logo { height: 30px; width: auto; }

.hamburger {
  width: 44px;
  height: 44px;
  border: 1px solid var(--hairline-strong);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 8px;
}
.hamburger span { display: block; height: 1.5px; background: var(--ink); }


/* --- 全画面メニュー（1000px未満） --- */
.drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--surface-dark);
  color: var(--on-ink);
  flex-direction: column;
  overflow-y: auto;
}
.drawer.is-open { display: flex; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  flex-shrink: 0;
}
.drawer__head img { height: 30px; width: auto; filter: brightness(0) invert(1); }

.drawer__close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--on-ink-faint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer__body { padding: 24px var(--gutter) 0; flex-grow: 1; }

.drawer__list a {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  border-top: 1px solid var(--on-ink-line);
  color: var(--on-ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.drawer__list li:last-child a { border-bottom: 1px solid var(--on-ink-line); }
.drawer__list a::before {
  content: attr(data-n);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-on-ink);
  width: 22px;
}

.drawer__sub { margin-top: 24px; display: flex; flex-direction: column; gap: 4px; }
.drawer__sub .en { font-size: 11px; letter-spacing: 0.2em; color: var(--on-ink-dim); margin-bottom: 8px; }
.drawer__sub a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  color: var(--on-ink-soft);
}

.drawer__foot { padding: 24px var(--gutter); flex-shrink: 0; }


@media (max-width: 999px) {
  .shell { display: block; }
  .site-index { display: none; }
  .topbar { display: flex; }
}


/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: var(--section-y) var(--gutter);
  border-bottom: 1px solid var(--hairline);
}
.section--alt { background: var(--paper-alt); }
.section--ink {
  background: var(--surface-dark);
  color: var(--on-ink);
  border-bottom: 0;
}
.section--ink a { color: var(--on-ink); }

.section__head {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 48px;
}
.section__head .en {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.section--ink .section__head .en { color: var(--accent-on-ink); }

.section__head h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 999px) {
  .section__head { gap: 16px; margin-bottom: 24px; }
  .section__head h2 { font-size: 25px; }
  .section__head .en { font-size: 11px; }
}


/* ==========================================================================
   Hero
   ========================================================================== */
/* ヒーローだけ墨地。左の目次カラムは紙のまま */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px var(--gutter) 104px;
  background: var(--surface-dark);
}

/* 軌道は背面へ。文字は前面に出す */
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.hero > :not(.hero__art) { position: relative; }

.hero__eyebrow {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent-on-ink);
  margin-bottom: 32px;
}

.hero h1 {
  font-size: 68px;
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--on-ink);
}

.hero__lead {
  margin-top: 32px;
  max-width: 30em;
  font-size: 16px;
  line-height: 2.05;
  color: var(--on-ink-soft);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* 反転セクションのボタンと同じ扱い */
.hero .btn--primary { background: var(--accent-on-ink); color: var(--ink); }
.hero .btn--primary:hover { background: var(--on-ink); color: var(--ink); }
.hero .btn--ghost { border-color: var(--on-ink-faint); color: var(--on-ink); }
.hero .btn--ghost:hover { border-color: var(--on-ink); }

/* 軌道の線 */
.orbit ellipse { stroke: var(--on-ink-line); stroke-width: 1; }
.orbit--lit ellipse { stroke: var(--accent-on-ink); stroke-width: 1.6; }
.orbit-core { fill: var(--accent-on-ink); }

/* 楕円ごとのバウンディングボックスではなく、SVGの座標系を基準に回す */
.orbit {
  transform-box: view-box;
  transform-origin: 680px 280px;
  animation: orbit-spin linear infinite;
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }

/* 速度と向きを散らす。揃っていると回転板に見える */
.orbit:nth-child(1) { animation-duration: 140s; }
.orbit:nth-child(2) { animation-duration: 210s; animation-direction: reverse; }
.orbit:nth-child(3) { animation-duration: 96s; }
.orbit:nth-child(4) { animation-duration: 260s; animation-direction: reverse; }
.orbit:nth-child(5) { animation-duration: 168s; }
.orbit:nth-child(6) { animation-duration: 118s; animation-direction: reverse; }
.orbit:nth-child(7) { animation-duration: 232s; }
.orbit:nth-child(8) { animation-duration: 152s; animation-direction: reverse; }
.orbit:nth-child(9) { animation-duration: 190s; }

/* 動きを減らす設定のときは、ファイル末尾の指定でまとめて止める */

@media (max-width: 999px) {
  .hero { min-height: 440px; padding: 48px var(--gutter) 48px; }
  .hero h1 { font-size: 37px; line-height: 1.32; }
  .hero__eyebrow { font-size: 11px; letter-spacing: 0.18em; margin-bottom: 24px; }
  .hero__lead { margin-top: 24px; font-size: 15px; line-height: 1.95; }

  /* 幅が狭いと、この改行の手前に半端な行が残る。スマホでは自然に流す */
  .hero__lead br { display: none; }
  .hero__actions { flex-direction: column; gap: 8px; margin-top: 32px; }

  /* SVGの transform はGPU合成に乗らず、9本ぶんの再描画が回り続ける。
     スマホでは電池を削るだけなので静止させる */
  .orbit { animation: none; }

  /* 画面が狭いと slice の切り取りで軌道が中央に寄り、遮蔽が効かずに
     文字の上を横切る。線を落として背景の質感に留める */
  .orbit ellipse { stroke: var(--on-ink-veil); }
  .orbit--lit ellipse { stroke: var(--accent-on-ink-soft); stroke-width: 1.2; }
  .orbit-core { fill: var(--accent-on-ink-mid); }
}


/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn .en { font-weight: 500; letter-spacing: 0; }

.btn--primary { background: var(--accent); color: var(--on-ink); }
.btn--primary:hover { background: var(--accent-deep); color: var(--on-ink); }

.btn--ghost { border: 1px solid var(--hairline-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }


/* 反転セクションの中 */
.section--ink .btn--primary,
.drawer .btn--primary { background: var(--accent-on-ink); color: var(--ink); }
.section--ink .btn--primary:hover,
.drawer .btn--primary:hover { background: var(--on-ink); color: var(--ink); }
.section--ink .btn--ghost { border-color: var(--on-ink-faint); color: var(--on-ink); }
.section--ink .btn--ghost:hover { border-color: var(--on-ink); }

/* 目次とドロワーの中の LINE ボタンは幅いっぱい */
.btn--block {
  display: flex;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  font-size: 13px;
  letter-spacing: 0.06em;
}

@media (max-width: 999px) {
  .btn {
    justify-content: space-between;
    min-height: 52px;
    padding: 0 24px;
    font-size: 15px;
  }
  .btn--block { min-height: 52px; padding: 0 24px; font-size: 15px; }
}

/* SPヘッダーの常設CTA。PCではサイドバーが同じ役割を担う */
.topbar__right { display: flex; align-items: center; gap: 8px; }
.topbar__cta { min-height: 44px; padding: 0 16px; gap: 8px; font-size: 13px; letter-spacing: 0.06em; }


/* ==========================================================================
   SNS icons — Instagram / Facebook / note
   ========================================================================== */
.sns { display: flex; gap: 8px; }

.sns a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--hairline-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.sns a:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.sns svg { width: 16px; height: 16px; }

.section--ink .sns a,
.drawer .sns a {
  width: 44px;
  height: 44px;
  border-color: var(--on-ink-faint);
  color: var(--on-ink);
}
.section--ink .sns a:hover,
.drawer .sns a:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.section--ink .sns svg,
.drawer .sns svg { width: 18px; height: 18px; }

@media (max-width: 999px) {
  .sns { gap: 8px; }
  .sns a { width: 44px; height: 44px; }
  .sns svg { width: 18px; height: 18px; }
}


/* ==========================================================================
   Service cards — 1pxの隙間で罫線を作る
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { background: var(--paper); padding: 32px 32px 32px; }
.section--alt .card { background: var(--paper-alt); }

.card__label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 16px;
}
.card h3 { font-size: 18px; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 16px; }
.cards--3 .card h3 { font-size: 18px; line-height: 1.45; }
.card p { font-size: 15px; line-height: 1.95; color: var(--ink-body); }
.cards--3 .card p { font-size: 13px; }
.card__more { display: inline-block; margin-top: 24px; font-size: 13px; font-weight: 700; color: var(--accent); }

@media (max-width: 999px) {
  .cards, .cards--3 {
    grid-template-columns: 1fr;
    border-left: 0;
    border-right: 0;
  }
  .card { padding: 24px 0; }
  .card h3, .cards--3 .card h3 { font-size: 16px; }
  .card p, .cards--3 .card p { font-size: 13px; line-height: 1.95; }
  .card__more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; font-size: 13px; }
}


/* ==========================================================================
   Flow — 横5列（デスクトップ） / 縦（スマホ）
   ========================================================================== */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }

.flow li { border-top: 1px solid var(--hairline); padding-top: 16px; }
.flow li:first-child { border-top: 2px solid var(--ink); }

.flow__n {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.flow li:first-child .flow__n { color: var(--accent); }
.section--alt .flow__n { color: var(--ink-muted-alt); }

.flow__t { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.flow__d { font-size: 13px; line-height: 1.7; color: var(--ink-muted); }
.section--alt .flow__d { color: var(--ink-muted-alt); }

/* 詳細ページの縦並び（6段） */
.flow--rows { grid-template-columns: 1fr; gap: 0; }
.flow--rows li {
  display: grid;
  grid-template-columns: 60px 260px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 16px 0;
}
.flow--rows li:last-child { border-bottom: 1px solid var(--hairline); }
.flow--rows .flow__n { font-size: 18px; margin-bottom: 0; }
.flow--rows .flow__t { font-size: 16px; margin-bottom: 0; }
.flow--rows .flow__d { font-size: 15px; line-height: 1.7; color: var(--ink-body); }

@media (max-width: 999px) {
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow li,
  .flow--rows li {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 16px 0;
  }
  .flow li:last-child { border-bottom: 1px solid var(--hairline); }
  .flow__n { font-size: 16px; width: 26px; flex-shrink: 0; margin-bottom: 0; }
  .flow__body { flex: 1; }
  .flow__t { font-size: 15px; margin-bottom: 4px; }
  .flow__d { font-size: 13px; }
}


/* ==========================================================================
   Why us / 汎用の3列
   ========================================================================== */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.trio h3 { font-size: 18px; font-weight: 700; line-height: 1.45; margin-bottom: 16px; }
.trio p { font-size: 15px; line-height: 1.95; color: var(--ink-body); }

@media (max-width: 999px) {
  .trio { grid-template-columns: 1fr; gap: 24px; }
  .trio h3 { font-size: 16px; margin-bottom: 8px; }
  .trio p { font-size: 13px; line-height: 1.95; }
}


/* ==========================================================================
   Company
   ========================================================================== */
.company { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; }

.company__statement {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.company__text { font-size: 15px; line-height: 2.05; color: var(--ink-body); }
.company__sign { margin-top: 24px; font-size: 13px; color: var(--ink-muted); }

.facts { display: grid; grid-template-columns: 100px minmax(0, 1fr); align-self: start; }
.facts dt,
.facts dd { border-top: 1px solid var(--hairline); padding: 16px 0; }
.facts dt { font-family: var(--font-en); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; color: var(--ink-muted); }
.facts dd { font-size: 15px; }
.facts > :nth-last-child(-n + 2) { border-bottom: 1px solid var(--hairline); }

@media (max-width: 999px) {
  .company { grid-template-columns: 1fr; gap: 24px; }
  .company__statement { font-size: 18px; line-height: 1.7; margin-bottom: 16px; }
  .company__text { font-size: 13px; line-height: 1.95; }
  .facts { grid-template-columns: 92px minmax(0, 1fr); }
  .facts dt { font-size: 11px; letter-spacing: 0.1em; }
  .facts dt, .facts dd { padding: 16px 0; }
  .facts dd { font-size: 13px; line-height: 1.7; }
  /* 連絡先のリンクはタップ領域を確保する */
  .facts dd a { display: inline-flex; align-items: center; min-height: 44px; }
}


/* ==========================================================================
   Contact（墨地）
   ========================================================================== */
.contact__lead {
  max-width: 32em;
  font-size: 16px;
  line-height: 2.05;
  color: var(--on-ink-soft);
  margin-bottom: 40px;
}
.contact__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.colophon {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--on-ink-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--on-ink-dim);
}

@media (max-width: 999px) {
  .contact__lead { font-size: 15px; line-height: 1.95; margin-bottom: 24px; }
  .contact__actions { flex-direction: column; }
  .colophon { flex-direction: column; align-items: flex-start; margin-top: 32px; }
}


/* ==========================================================================
   下層ページのヒーローと本文
   ========================================================================== */
.page-hero { padding: 88px var(--gutter) 88px; border-bottom: 1px solid var(--hairline); }
.page-hero .en { display: block; font-size: 11px; letter-spacing: 0.2em; color: var(--accent); margin-bottom: 24px; }
.page-hero h1 { font-size: 52px; font-weight: 900; line-height: 1.38; letter-spacing: -0.01em; }
.page-hero__lead { margin-top: 32px; max-width: 32em; font-size: 16px; line-height: 2.05; color: var(--ink-body); }

.prose { max-width: 34em; font-size: 16px; line-height: 2.05; color: var(--ink-body); }
.note { margin-top: 32px; font-size: 15px; color: var(--ink-body); }
.section--alt .note { color: var(--ink-muted-alt); }

@media (max-width: 999px) {
  .page-hero { padding: 48px var(--gutter) 40px; }
  .page-hero h1 { font-size: 30px; line-height: 1.45; }
  .page-hero .en { font-size: 11px; margin-bottom: 16px; }
  .page-hero__lead { margin-top: 24px; font-size: 15px; line-height: 1.95; }
  .prose { font-size: 15px; line-height: 1.95; }
}


/* ==========================================================================
   Form
   ========================================================================== */
.field { margin-bottom: 40px; }
.field__label { display: flex; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.field__label span { font-size: 16px; font-weight: 700; letter-spacing: 0.04em; }
.field__req { font-family: var(--font-en); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; color: var(--accent); }

.field input[type="text"],
.field textarea {
  width: 100%;
  max-width: 640px;
  background: var(--paper-hi);
  border: 1px solid var(--hairline-strong);
  padding: 16px 16px;
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}
.field textarea { min-height: 190px; resize: vertical; }
.field input[type="text"]:focus,
.field textarea:focus { outline: 2px solid var(--accent); outline-offset: -2px; }

.field__error { margin-top: 8px; font-size: 13px; color: var(--warn); }

.form-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form-actions input[type="submit"],
.form-actions input[type="button"],
.form-actions input[type="reset"] {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 16px 32px;
  font-family: var(--font-jp);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.form-actions input[type="reset"] {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
}

.steps {
  display: flex;
  gap: 16px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin-bottom: 24px;
}
.steps .is-current { color: var(--accent); }

@media (max-width: 999px) {
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions input { min-height: 52px; }
}


/* ==========================================================================
   Scroll fade-in
   ========================================================================== */
/* JS が動いたときだけ隠す。読み込みに失敗しても本文は見える */
.js-fade .fadein {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2, .7, .2, 1);
}
.js-fade .fadein.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-fade .fadein { opacity: 1; transform: none; transition: none; }
  .orbit { animation: none; }
}
