/* ============================================================
   EDIサポート＆ビジネス トップページ刷新 (refs #501)
   コンセプト: 連続伝票 (EIAJ標準納品書) メタファー
   紙白 × 罫線藍 × 検印朱
   ============================================================ */

:root {
  --paper: #F5F3EC;
  --paper-deep: #ECE9DE;
  --ink: #17223B;      /* 本文の墨藍 */
  --rule: #24468F;     /* 伝票の罫線藍 */
  --rule-soft: #24468F33;
  --shu: #C43A22;      /* 検印朱 */
  --steel: #66707F;    /* キャプション鉛色 */
  --night: #101A30;    /* 24/365 夜帯 */
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --gothic: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --rail-w: 56px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* ページ端を超えるフリックのバウンスで固定バーが動くのを防ぐ */
  overscroll-behavior-y: none;
}

body {
  overscroll-behavior-y: none;
  font-family: var(--gothic);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  font-size: 16px;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--rule); }

/* ---------- 送り穴レール（連続伝票のトラクターフィード） ---------- */
.sprocket-rail {
  position: fixed;
  top: 0; bottom: 0;
  width: var(--rail-w);
  z-index: 40;
  pointer-events: none;
  background:
    radial-gradient(circle 7px at 50% 24px, transparent 6px, var(--rule-soft) 6.5px, transparent 7.5px);
  background-size: var(--rail-w) 48px;
  background-repeat: repeat-y;
}
.sprocket-rail.left  { left: 0;  border-right: 1px dashed var(--rule-soft); }
.sprocket-rail.right { right: 0; border-left: 1px dashed var(--rule-soft); }

/* スクロール進捗で穴が「パンチ」されていく */
.sprocket-rail .punched {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: calc(var(--scroll-progress, 0) * 100%);
  background: radial-gradient(circle 6px at 50% 24px, var(--rule) 5.5px, transparent 6.5px);
  background-size: var(--rail-w) 48px;
  background-repeat: repeat-y;
  opacity: .55;
  transition: height .1s linear;
}

/* ---------- ヘッダー（濃紺の帯） ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 3px solid var(--shu);
  padding: 12px var(--rail-w) 0;
}
.site-header .bar {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.site-header .logo {
  display: block;
  background: var(--paper);
  padding: 5px 12px;
  border-radius: 2px;
}
.site-header .logo img { height: 34px; width: auto; display: block; }
.site-header .c-name {
  font-size: 12px;
  color: #9AA8C6;
  letter-spacing: .1em;
}
.member-links {
  margin-left: auto;
  display: flex;
  gap: 8px;
  list-style: none;
}
.member-links a {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  padding: 7px 14px;
  border: 1.5px solid #4A5C85;
  border-radius: 5px;
  color: #E8ECF5;
  background: transparent;
  transition: background .18s, color .18s, border-color .18s,
              transform .16s cubic-bezier(.34,1.3,.64,1), box-shadow .16s;
}
.member-links a:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
}
.member-links a.primary { background: var(--shu); border-color: var(--shu); color: #FFF; }
.member-links a.primary:hover {
  background: #E14B2E;
  border-color: #E14B2E;
  color: #FFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
}
.member-links a:active {
  transform: translateY(1px);
  box-shadow: none;
  transition-duration: .06s;
}
/* ログイン中の社名ラベル（ボタンではなくテキスト表示） */
.member-links .member-name {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #FFFFFF;
  padding: 7px 12px 7px 22px;
  position: relative;
}
.member-links .member-name::before {
  content: "";
  position: absolute;
  left: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #5CB85C;              /* ログイン中を示す緑ドット */
  box-shadow: 0 0 0 2px rgba(92,184,92,.3);
}

.global-nav ul {
  max-width: 1080px;
  margin: 10px auto 0;
  display: flex;
  gap: 4px 22px;
  list-style: none;
  flex-wrap: wrap;
}
.global-nav a {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .12em;
  text-decoration: none;
  color: #C7D0E2;
  padding: 4px 0 10px;
  border-bottom: 3px solid transparent;
  transition: border-color .2s, color .2s;
}
.global-nav a:hover { color: #FFF; border-bottom-color: #4A5C85; }
.global-nav a[aria-current="page"] { color: #FFF; border-bottom-color: var(--shu); }

/* ハンバーガー（900px以下でのみ表示） */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-left: auto;
  background: transparent;
  border: 1.5px solid #4A5C85;
  border-radius: 6px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: #E8ECF5;
  border-radius: 1px;
  transition: transform .25s, opacity .2s;
}
.site-header.open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 共通レイアウト ---------- */
.sheet {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 88px 0; position: relative; }

/* ミシン目（セクション区切り） */
.perforation {
  max-width: 1080px;
  margin: 0 auto;
  border: none;
  border-top: 2px dashed var(--rule-soft);
  position: relative;
}
.perforation::before, .perforation::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--paper-deep);
  border: 1.5px solid var(--rule-soft);
}
.perforation::before { left: 24px; }
.perforation::after  { right: 24px; }

/* 伝票見出し: 欄名ラベル + 大見出し */
.slip-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--paper);
  background: var(--rule);
  padding: 4px 12px 3px;
  margin-bottom: 18px;
}
h2.slip-title {
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.slip-lede { color: var(--steel); max-width: 640px; font-size: 15px; }

/* 罫線が引かれるアニメーション用 */
.rule-line {
  height: 2px;
  background: var(--rule);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s cubic-bezier(.22,1,.36,1) .15s;
  margin: 26px 0 0;
}
.is-in .rule-line { transform: scaleX(1); }

/* ---------- reveal (スクロール連動) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .22s; }
.reveal[data-delay="3"] { transition-delay: .34s; }
.reveal[data-delay="4"] { transition-delay: .46s; }

/* ---------- HERO（クロスフェード背景+重ねタイトル） ---------- */
.hero {
  position: relative;
  padding: 110px 0 120px;
  min-height: min(74vh, 780px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-slides, .hero-shade {
  position: absolute;
  inset: 0;
}
.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.8s ease-in-out, transform 7s linear;
}
.hero-slides img.is-active {
  opacity: 1;
  transform: scale(1.08); /* ゆっくり寄るケンバーンズ効果 */
}
.hero-shade { /* 文字を読ませる墨藍のかぶせ */
  background:
    linear-gradient(100deg, rgba(13, 20, 40, .86) 0%, rgba(13, 20, 40, .62) 48%, rgba(13, 20, 40, .28) 100%),
    linear-gradient(to top, rgba(13, 20, 40, .55) 0%, transparent 30%);
}
.hero-content { position: relative; width: 100%; }
.hero .form-head {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: #A9B4CC;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(233, 236, 245, .25);
  padding-bottom: 10px;
  margin-bottom: 48px;
}
.hero h1 {
  font-size: clamp(34px, 6.4vw, 72px);
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: .03em;
  color: #F7F5F0;
  text-shadow: 0 2px 24px rgba(13, 20, 40, .45);
}
.hero h1 .shu { color: #E85A3C; }
.hero .hero-sub {
  margin-top: 26px;
  font-size: clamp(14px, 1.8vw, 17px);
  color: #C7D0E2;
  max-width: 620px;
}
.hero .hero-sub strong { color: #FFF; font-weight: 700; }
.hero .btn.fill {
  background: var(--shu);
  border-color: var(--shu);
}
.hero .btn.fill:hover { background: #E14B2E; border-color: #E14B2E; }
.hero .btn.ghost {
  color: #F7F5F0;
  border-color: #F7F5F0;
}
.hero .btn.ghost:hover { background: #F7F5F0; color: var(--ink); }
.hero .stamp { border-color: #E85A3C; color: #E85A3C; }
.hero-cta {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
/* ボタン: シンプルな角丸。ホバーで浮き+→スライド、クリックで沈む */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 15px 30px;
  border: 2px solid var(--rule);
  border-radius: 6px;
  transition: transform .16s cubic-bezier(.34,1.3,.64,1), box-shadow .16s, background .2s, color .2s;
}
.btn::after { /* ホバーで滑り込む矢印 */
  content: "→";
  display: inline-block;
  font-family: var(--mono);
  max-width: 0;
  overflow: hidden;
  vertical-align: bottom;
  opacity: 0;
  transform: translateX(-6px);
  transition: max-width .22s, opacity .18s, transform .22s, margin-left .22s;
}
.btn:hover::after, .btn:focus-visible::after {
  max-width: 1.4em;
  margin-left: .55em;
  opacity: 1;
  transform: none;
}
.btn.fill { background: var(--rule); color: var(--paper); }
.btn.fill:hover {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(23, 34, 59, .22);
}
.btn.ghost { color: var(--rule); background: transparent; }
.btn.ghost:hover {
  background: var(--rule);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(23, 34, 59, .22);
}
.btn:active {
  transform: translateY(2px) !important;
  box-shadow: none !important;
  transition-duration: .06s;
}

/* ヒーロー右下のスタンプ */
.hero-stamp-wrap { position: relative; }
.stamp {
  width: 108px; height: 108px;
  border: 3px solid var(--shu);
  border-radius: 50%;
  color: var(--shu);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: .1em;
  transform: rotate(-8deg) scale(1.6);
  opacity: 0;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .25s;
  user-select: none;
}
.stamp .small { font-size: 10.5px; font-weight: 700; }
.stamp .big { font-size: 20px; }
.stamp.is-in { opacity: .92; transform: rotate(-8deg) scale(1); }
.hero .stamp { position: absolute; right: 8px; bottom: -8px; }

/* ---------- 図版（技術マニュアル風） ---------- */
figure.fig { margin: 0; }
figure.fig img {
  display: block;
  width: 100%;
  border: 2px solid var(--rule);
  background: var(--paper);
}
figure.fig .figno {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--steel);
  padding-top: 8px;
}
.hero-visual { margin-top: 54px; }
.hero-visual img { border-width: 2.5px; }

/* ---------- お知らせ ---------- */
.news dl {
  border-top: 1px solid var(--rule-soft);
  max-width: 820px;
}
.news .row {
  display: flex;
  gap: 22px;
  padding: 15px 6px;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
}
.news dt {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--steel);
  min-width: 96px;
}
.news dd { font-size: 14.5px; }
.newicon {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--shu);
  border: 1px solid var(--shu);
  padding: 0 6px;
  margin-left: 10px;
  letter-spacing: .15em;
}

/* ---------- サービス台帳（明細行） ---------- */
.ledger { border-top: 2px solid var(--rule); margin-top: 42px; }
.ledger-row {
  display: grid;
  grid-template-columns: 110px 230px 1fr 170px;
  gap: 26px;
  padding: 34px 6px;
  border-bottom: 1px solid var(--rule-soft);
  align-items: start;
}
.ledger-row .thumb img { border-width: 1.5px; }
.ledger-row .code {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--rule);
  letter-spacing: .1em;
  line-height: 1.6;
}
.ledger-row .code .no { display: block; font-size: 26px; }
.ledger-row h3 {
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 900;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.ledger-row h3 a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.ledger-row h3 a:hover { color: var(--rule); border-bottom-color: var(--shu); }
.ledger-row p { font-size: 14.5px; color: var(--steel); max-width: 560px; }
.ledger-row .ledger-more {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--rule);
  text-decoration: none;
  transition: color .2s;
}
.ledger-row .ledger-more:hover { color: var(--shu); }
a.thumb-link { display: block; }
a.thumb-link .fig img { transition: opacity .2s; }
a.thumb-link:hover .fig img { opacity: .88; }
.ledger-row .partner {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--steel);
  text-decoration: none;
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  background: #FFFFFF;
  padding: 10px 14px;
  justify-self: end;
  text-align: right;
  line-height: 1.7;
  transition: border-color .18s, transform .16s cubic-bezier(.34,1.3,.64,1), box-shadow .16s;
}
a.partner:hover {
  border-color: var(--rule);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(23, 34, 59, .16);
}
a.partner:active {
  transform: translateY(1px);
  box-shadow: none;
  transition-duration: .06s;
}
.ledger-row .partner b { color: var(--rule); }
.ledger-row .partner img {
  display: block;
  width: 138px;
  height: auto;
  margin: 8px 0 2px auto;
}

/* ---------- 24/365 夜帯 (SHINKO) ---------- */
.night-band {
  background: var(--night);
  color: #E8ECF5;
  padding: 96px 0;
}
.night-band .slip-label { background: var(--shu); }
.night-band h2 {
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 900;
  line-height: 1.4;
}
.night-band .clockline {
  font-family: var(--mono);
  font-size: clamp(34px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: .04em;
  color: #FFFFFF;
  margin: 20px 0 10px;
  font-variant-numeric: tabular-nums;
}
.night-band .clockline .unit { font-size: .38em; color: #8FA3C8; }
.night-band .clockline .sep { color: var(--shu); }
.night-band p { color: #A9B4CC; max-width: 620px; font-size: 15px; }
.night-band .partner-note {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: #8FA3C8;
}
.night-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.night-fig img { border-color: #2E4470; }
.night-fig .figno { color: #8FA3C8; }

/* ---------- 製造業向け / 建築系 2枚組 ---------- */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 42px;
}
.spec-card {
  border: 2px solid var(--rule);
  background: #FBFAF5;
  padding: 34px 30px;
  position: relative;
}
.spec-card .card-fig { margin: 14px 0 20px; }
.spec-card .card-fig img { border-width: 1.5px; }
.spec-card .corner {
  position: absolute;
  top: 10px; right: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--steel);
}
.spec-card h3 {
  font-size: 21px;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: .04em;
}
.spec-card p { font-size: 14.5px; color: var(--steel); }
.spec-card .fact {
  margin-top: 18px;
  font-size: 13.5px;
  border-top: 1px dashed var(--rule-soft);
  padding-top: 14px;
  line-height: 2;
}
.spec-card .fact b { color: var(--rule); }
.chips {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.chips li {
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid var(--rule-soft);
  color: var(--ink);
  padding: 6px 13px;
  background: var(--paper);
}

/* ---------- 用紙販売（既存事業） ---------- */
.paper-biz { background: var(--paper-deep); }
.paper-biz .inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.paper-biz .fig { margin-bottom: 20px; }
.paper-biz .order-links { list-style: none; margin-top: 24px; display: grid; gap: 10px; }
.paper-biz .order-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--rule-soft);
  padding: 15px 20px;
  transition: border-color .2s, transform .15s;
}
.paper-biz .order-links a:hover { border-color: var(--rule); transform: translateX(4px); }
.paper-biz .order-links .arrow { font-family: var(--mono); color: var(--rule); }
.paper-biz .future-note {
  margin-top: 22px;
  font-size: 13px;
  color: var(--steel);
  border-left: 3px solid var(--shu);
  padding-left: 14px;
}

/* ---------- 会社概要 ---------- */
.nowrap { white-space: nowrap; }
.company table, .info-table {
  width: 100%;
  max-width: 780px;
  border-collapse: collapse;
  margin-top: 36px;
  font-size: 14.5px;
}
.company th, .company td, .info-table th, .info-table td {
  text-align: left;
  padding: 15px 10px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
.company th, .info-table th {
  width: 150px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--rule);
  white-space: nowrap;
}
@media (max-width: 900px) {
  /* 見出し列を上に積んで値を全幅に */
  .company th, .info-table th {
    display: block;
    width: auto;
    padding: 14px 4px 0;
    border-bottom: none;
  }
  .company td, .info-table td {
    display: block;
    padding: 4px 4px 14px;
  }
}

/* ---------- CONTACT ---------- */
.contact { text-align: center; padding: 110px 0 130px; }
.contact h2 {
  font-size: clamp(26px, 4.6vw, 44px);
  font-weight: 900;
  line-height: 1.4;
}
.contact .tel {
  font-family: var(--mono);
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  margin: 18px 0 6px;
}
.contact .tel-note { font-size: 13px; color: var(--steel); }
.contact .hero-cta { justify-content: center; }
.contact .stamp-area {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

/* ---------- フッター（濃紺の帯） ---------- */
.site-footer {
  background: var(--ink);
  border-top: 3px solid var(--shu);
  padding: 44px var(--rail-w) 48px;
  text-align: center;
  position: relative;
  z-index: 45; /* 送り穴レールより手前 */
}
.site-footer .f-nav {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 18px;
}
.site-footer .f-nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: #9AA8C6;
  text-decoration: none;
  transition: color .2s;
}
.site-footer .f-nav a:hover { color: #FFF; }
.site-footer .copy { font-family: var(--mono); font-size: 11.5px; color: #66748F; letter-spacing: .08em; }

/* ---------- サブページ共通 ---------- */
.page-hero { padding: 64px 0 48px; }
.page-hero .crumb {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--steel);
  margin-bottom: 22px;
}
.page-hero .crumb a { color: var(--steel); text-decoration: none; }
.page-hero .crumb a:hover { color: var(--rule); }
.page-hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .04em;
}
.page-hero .lede { margin-top: 16px; color: var(--steel); max-width: 640px; font-size: 15px; }

h3.rule-head {
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 900;
  letter-spacing: .05em;
  border-left: 5px solid var(--shu);
  padding-left: 14px;
  margin: 64px 0 8px;
}
h3.rule-head .en {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--steel);
}

/* 用紙カタログ（SERVICE） */
.catalog { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 24px; }
.catalog a.item {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  background: #FBFAF5;
  border: 1.5px solid var(--rule-soft);
  padding: 18px;
  transition: border-color .2s, transform .15s;
}
.catalog a.item:hover { border-color: var(--rule); transform: translateY(-3px); }
.catalog .item img { border: 1px solid var(--rule-soft); background: #fff; width: 100%; }
.catalog .item h4 { font-size: 14.5px; font-weight: 700; line-height: 1.7; }
.catalog .item .code {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--rule);
  letter-spacing: .12em;
  display: block;
  margin-bottom: 4px;
}
.catalog .item .more { font-family: var(--mono); font-size: 11px; color: var(--shu); letter-spacing: .12em; }

/* 製品紹介（PRODUCTS / IT導入支援） */
.product-sheet {
  border: 2px solid var(--rule);
  background: #FBFAF5;
  padding: 36px 34px;
  margin-top: 30px;
}
.product-sheet .maker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--steel);
  margin-bottom: 6px;
}
.product-sheet h3 { font-size: clamp(20px, 3vw, 26px); font-weight: 900; margin-bottom: 12px; }
.product-sheet p { font-size: 14.5px; color: var(--ink); max-width: 720px; }
.product-sheet .note { color: var(--steel); font-size: 13px; margin-top: 10px; }
.product-sheet .figs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.product-sheet .figs img { border: 1px solid var(--rule-soft); background: #fff; width: 100%; }
.product-sheet video { width: 100%; max-width: 560px; border: 1px solid var(--rule-soft); background: #000; margin-top: 18px; }
.product-sheet .dl {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
  font-size: 14px;
  color: var(--rule);
  border: 1.5px solid var(--rule);
  border-radius: 6px;
  text-decoration: none;
  padding: 10px 20px;
  background: var(--paper);
  transition: background .18s, color .18s, transform .16s cubic-bezier(.34,1.3,.64,1), box-shadow .16s;
}
.product-sheet .dl:hover {
  background: var(--rule);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(23, 34, 59, .2);
}
.product-sheet .dl:active {
  transform: translateY(1px);
  box-shadow: none;
  transition-duration: .06s;
}
/* 背景写真付き製品カード（IT導入支援） */
.product-sheet.bg-card {
  background-image:
    linear-gradient(90deg, rgba(251, 250, 245, .97) 0%, rgba(251, 250, 245, .9) 52%, rgba(251, 250, 245, .35) 78%, rgba(251, 250, 245, .08) 100%),
    var(--card-bg);
  background-size: cover;
  background-position: center;
}
@media (max-width: 900px) {
  .product-sheet.bg-card {
    background-image:
      linear-gradient(rgba(251, 250, 245, .95), rgba(251, 250, 245, .9)),
      var(--card-bg);
  }
}

.badge-row { margin-top: 48px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.badge-row img { display: block; }
.badge-row p { font-size: 12.5px; color: var(--steel); line-height: 1.9; }

/* フォーム（CONTACT） */
.contact-form { max-width: 720px; margin-top: 30px; }
.contact-form table { width: 100%; border-collapse: collapse; }
.contact-form th, .contact-form td {
  text-align: left;
  padding: 16px 10px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
  font-size: 14.5px;
}
.contact-form th {
  width: 170px;
  font-weight: 700;
  white-space: nowrap;
  padding-top: 24px;
}
.contact-form .req {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--paper);
  background: var(--shu);
  padding: 1px 6px;
  margin-left: 8px;
  letter-spacing: .1em;
}
.contact-form input[type="text"], .contact-form textarea {
  width: 100%;
  font-family: var(--gothic);
  font-size: 15px;
  color: var(--ink);
  background: #FFFFFF;
  border: 1.5px solid var(--rule-soft);
  padding: 12px 14px;
}
.contact-form input[type="text"]:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--rule);
}
.contact-form .actions { margin-top: 28px; display: flex; gap: 14px; }
.contact-form input[type="submit"], .contact-form input[type="reset"] {
  font-family: var(--gothic);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 34px;
  cursor: pointer;
  border: 2px solid var(--rule);
  border-radius: 6px;
  transition: background .18s, color .18s, border-color .18s,
              transform .16s cubic-bezier(.34,1.3,.64,1), box-shadow .16s;
}
.contact-form input[type="submit"] { background: var(--rule); color: var(--paper); }
.contact-form input[type="submit"]:hover {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(23, 34, 59, .22);
}
.contact-form input[type="reset"] { background: transparent; color: var(--rule); }
.contact-form input[type="reset"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(23, 34, 59, .18);
}
.contact-form input[type="submit"]:active, .contact-form input[type="reset"]:active {
  transform: translateY(2px);
  box-shadow: none;
  transition-duration: .06s;
}

/* ---------- 製品LP ---------- */
.lp-hero {
  position: relative;
  padding: 96px 0 104px;
  min-height: min(62vh, 640px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.lp-hero .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.lp-hero .shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(13, 20, 40, .88) 0%, rgba(13, 20, 40, .6) 50%, rgba(13, 20, 40, .25) 100%),
    linear-gradient(to top, rgba(13, 20, 40, .5) 0%, transparent 30%);
}
.lp-hero .sheet { position: relative; width: 100%; }
.lp-hero .maker-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: #A9B4CC;
  margin-bottom: 16px;
}
.lp-hero h1 {
  font-size: clamp(30px, 5.4vw, 58px);
  font-weight: 900;
  line-height: 1.35;
  color: #F7F5F0;
  text-shadow: 0 2px 24px rgba(13, 20, 40, .45);
}
.lp-hero h1 .en { display: block; font-size: .5em; color: #C7D0E2; }
.lp-hero .lp-lede { margin-top: 20px; color: #C7D0E2; max-width: 640px; font-size: 15.5px; }
.lp-hero .hero-cta { margin-top: 34px; }
.lp-hero .btn.fill { background: var(--shu); border-color: var(--shu); }
.lp-hero .btn.fill:hover { background: #E14B2E; border-color: #E14B2E; }
.lp-hero .btn.ghost { color: #F7F5F0; border-color: #F7F5F0; }
.lp-hero .btn.ghost:hover { background: #F7F5F0; color: var(--ink); }

/* お困りごとチェックリスト */
.trouble-list {
  list-style: none;
  max-width: 720px;
  margin-top: 28px;
  display: grid;
  gap: 10px;
}
.trouble-list li {
  background: #FBFAF5;
  border: 1.5px solid var(--rule-soft);
  border-left: 4px solid var(--shu);
  padding: 14px 18px;
  font-size: 14.5px;
  font-weight: 500;
}
.trouble-list li::before {
  content: "☐";
  font-family: var(--mono);
  color: var(--shu);
  margin-right: 10px;
  font-weight: 600;
}

/* 特長カード（番号付き） */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 30px;
  counter-reset: feat;
}
.feature-grid .feat {
  counter-increment: feat;
  background: #FBFAF5;
  border: 2px solid var(--rule);
  padding: 26px 24px;
}
.feature-grid .feat::before {
  content: "FEATURE " counter(feat, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--shu);
  display: block;
  margin-bottom: 8px;
}
.feature-grid h4 { font-size: 17.5px; font-weight: 900; margin-bottom: 8px; letter-spacing: .03em; }
.feature-grid p { font-size: 14px; color: var(--steel); }

/* 機能チップ */
.func-chips { margin-top: 24px; }

/* CTA帯 */
.lp-cta-band {
  background: var(--night);
  color: #E8ECF5;
  text-align: center;
  padding: 72px 0;
}
.lp-cta-band h2 { font-size: clamp(22px, 3.4vw, 34px); font-weight: 900; line-height: 1.5; }
.lp-cta-band p { color: #A9B4CC; font-size: 14.5px; margin-top: 12px; }
.lp-cta-band .hero-cta { justify-content: center; margin-top: 28px; }
.lp-cta-band .btn.fill { background: var(--shu); border-color: var(--shu); }
.lp-cta-band .btn.fill:hover { background: #E14B2E; border-color: #E14B2E; }
.lp-cta-band .btn.ghost { color: #F7F5F0; border-color: #F7F5F0; }
.lp-cta-band .btn.ghost:hover { background: #F7F5F0; color: var(--ink); }

.subsidy-note {
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--steel);
  border-top: 1px dashed var(--rule-soft);
  padding-top: 14px;
}

@media (max-width: 900px) {
  .lp-hero { min-height: min(54vh, 520px); padding: 72px 0 84px; }
  .feature-grid { grid-template-columns: 1fr; }
}

/* ========== 製品インデックス（見出しページ） ========== */
.product-index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 30px;
}
.prod-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  background: #FBFAF5;
  border: 2px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .18s cubic-bezier(.34,1.2,.64,1), box-shadow .18s;
}
.prod-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(23, 34, 59, .18);
}
.prod-card .pc-banner {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  border-bottom: 2px solid var(--rule);
}
.prod-card .pc-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.prod-card .pc-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--shu);
  margin-bottom: 6px;
}
.prod-card h3 { font-size: 23px; font-weight: 900; letter-spacing: .03em; margin-bottom: 10px; }
.prod-card p { font-size: 14px; color: var(--steel); line-height: 1.85; flex: 1; }
.prod-card .pc-more {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--rule);
  transition: transform .18s;
}
.prod-card:hover .pc-more { color: var(--shu); }
@media (max-width: 820px) {
  .product-index { grid-template-columns: 1fr; gap: 20px; }
}

/* ========== LP図解コンポーネント（HTML/CSS） ========== */

/* 横方向フローダイアグラム（□→□→□） */
.flow-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin-top: 30px;
}
.flow-diagram .node {
  flex: 1 1 0;
  min-width: 132px;
  background: #FBFAF5;
  border: 2px solid var(--rule);
  border-radius: 8px;
  padding: 18px 14px;
  text-align: center;
  position: relative;
}
.flow-diagram .node .n-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--shu);
  display: block;
  margin-bottom: 6px;
}
.flow-diagram .node .n-title { font-weight: 900; font-size: 15px; letter-spacing: .02em; }
.flow-diagram .node .n-sub { font-size: 12px; color: var(--steel); margin-top: 5px; line-height: 1.6; }
.flow-diagram .arrow {
  align-self: center;
  font-family: var(--mono);
  color: var(--rule);
  font-size: 20px;
  flex: 0 0 auto;
}
@media (max-width: 700px) {
  .flow-diagram { flex-direction: column; }
  .flow-diagram .arrow { transform: rotate(90deg); align-self: center; }
}

/* ハブ集約図（複数の入力 → 中央 → 出力） */
.hub-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}
.hub-diagram .col { display: grid; gap: 10px; }
.hub-diagram .box {
  background: #FBFAF5;
  border: 1.5px solid var(--rule-soft);
  border-radius: 7px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.hub-diagram .box.sub { font-weight: 400; color: var(--steel); font-size: 12px; }
.hub-diagram .core {
  background: var(--rule);
  color: var(--paper);
  border: 2px solid var(--rule);
  border-radius: 10px;
  padding: 26px 18px;
  text-align: center;
}
.hub-diagram .core .c-name { font-weight: 900; font-size: 19px; letter-spacing: .04em; }
.hub-diagram .core .c-sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: #C7D0E2; margin-top: 6px; display: block; }
.hub-diagram .to { font-family: var(--mono); color: var(--shu); font-size: 22px; text-align: center; }
@media (max-width: 820px) {
  .hub-diagram { grid-template-columns: 1fr; }
  .hub-diagram .to { transform: rotate(90deg); }
}

/* PDCA / ループサイクル図（4カード + 循環矢印） */
.cycle-diagram {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
  counter-reset: cyc;
  position: relative;
}
.cycle-diagram .stage {
  counter-increment: cyc;
  background: #FBFAF5;
  border: 2px solid var(--rule);
  border-radius: 10px;
  padding: 22px 22px 22px 58px;
  position: relative;
}
.cycle-diagram .stage::before {
  content: counter(cyc);
  position: absolute;
  left: 16px; top: 20px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 600; font-size: 15px;
  color: var(--paper); background: var(--shu); border-radius: 50%;
}
.cycle-diagram .stage h4 { font-size: 16px; font-weight: 900; margin-bottom: 5px; }
.cycle-diagram .stage p { font-size: 13px; color: var(--steel); line-height: 1.7; }
@media (max-width: 700px) { .cycle-diagram { grid-template-columns: 1fr; } }

/* 連動リンク図（中央から放射状に矛盾検出） */
.link-diagram {
  margin-top: 30px;
  background: var(--night);
  border-radius: 14px;
  padding: 38px 30px;
  color: #E8ECF5;
}
.link-diagram .center-line {
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: #8FA3C8;
  margin-bottom: 22px;
}
.link-diagram .plans {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.link-diagram .plan {
  background: rgba(255,255,255,.05);
  border: 1px solid #2E3F63;
  border-radius: 8px;
  padding: 16px 10px;
  text-align: center;
}
.link-diagram .plan .p-no { font-family: var(--mono); font-size: 11px; color: var(--shu); display: block; margin-bottom: 6px; }
.link-diagram .plan .p-name { font-weight: 700; font-size: 13.5px; }
.link-diagram .conflicts {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.link-diagram .conflict {
  font-size: 12.5px;
  font-weight: 700;
  color: #FFD9CF;
  background: rgba(196,58,34,.22);
  border: 1px solid var(--shu);
  border-radius: 20px;
  padding: 7px 16px;
}
.link-diagram .conflict::before { content: "⚠ "; }
@media (max-width: 700px) {
  .link-diagram .plans { grid-template-columns: 1fr 1fr; }
}

/* 3カラムのポイント図（アイコン風の丸番号） */
.point-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.point-row .point { text-align: center; padding: 10px; }
.point-row .point .badge {
  width: 60px; height: 60px;
  margin: 0 auto 14px;
  border: 2px solid var(--rule);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 600; font-size: 20px; color: var(--rule);
}
.point-row .point h4 { font-size: 15.5px; font-weight: 900; margin-bottom: 6px; }
.point-row .point p { font-size: 13px; color: var(--steel); }
@media (max-width: 760px) { .point-row { grid-template-columns: 1fr; } }

/* LP図解セクションの見出し補助 */
.diagram-caption { font-size: 12.5px; color: var(--steel); margin-top: 14px; text-align: center; }

/* LP中程のシーン写真（帯） */
.scene-band {
  position: relative;
  margin-top: 8px;
  border-radius: 14px;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
}
.scene-band .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.scene-band .shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,20,40,.82) 0%, rgba(13,20,40,.15) 60%, transparent 100%);
}
.scene-band .cap {
  position: relative;
  padding: 26px 28px;
  color: #F7F5F0;
}
.scene-band .cap .k { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: #C7D0E2; display: block; margin-bottom: 6px; }
.scene-band .cap .t { font-size: clamp(18px, 2.6vw, 24px); font-weight: 900; line-height: 1.5; }

/* 操作手順（番号付きステップ） */
.steps {
  list-style: none;
  counter-reset: step;
  max-width: 780px;
  margin-top: 28px;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 34px 74px;
}
.steps > li::before { /* 手順番号 */
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -4px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--rule);
  background: var(--paper);
  border: 2px solid var(--rule);
  border-radius: 50%;
}
.steps > li::after { /* 番号をつなぐ線 */
  content: "";
  position: absolute;
  left: 24px;
  top: 46px;
  bottom: 4px;
  border-left: 2px dashed var(--rule-soft);
}
.steps > li:last-child::after { display: none; }
.steps h4 { font-size: 16.5px; font-weight: 900; margin-bottom: 6px; letter-spacing: .03em; }
.steps p { font-size: 14.5px; color: var(--steel); }
.note-box {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ink);
  background: #FBFAF5;
  border: 1.5px solid var(--rule-soft);
  border-left: 4px solid var(--rule);
  padding: 12px 16px;
  line-height: 1.9;
}
.note-box b {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--paper);
  background: var(--rule);
  padding: 2px 8px;
  margin-right: 10px;
  vertical-align: 1px;
}
.note-box.important { border-left-color: var(--shu); }
.note-box.important b { background: var(--shu); }

/* FAQ */
.faq-list { max-width: 780px; margin-top: 30px; }
.faq-list .qa { border: 1.5px solid var(--rule-soft); background: #FBFAF5; margin-bottom: 14px; padding: 22px 24px; }
.faq-list .q {
  font-weight: 900;
  font-size: 15.5px;
}
.faq-list .q::before {
  content: "Q";
  font-family: var(--mono);
  color: var(--rule);
  font-weight: 600;
  margin-right: 12px;
}
.faq-list .a { margin-top: 10px; font-size: 14.5px; color: var(--steel); }
.faq-list .a::before {
  content: "A";
  font-family: var(--mono);
  color: var(--shu);
  font-weight: 600;
  margin-right: 12px;
}

@media (max-width: 900px) {
  .catalog { grid-template-columns: 1fr; }
  .product-sheet { padding: 26px 20px; }
  .product-sheet .figs { grid-template-columns: 1fr; }
  .contact-form th { width: auto; display: block; border-bottom: none; padding-bottom: 0; }
  .contact-form td { display: block; padding-top: 8px; }
}

/* ---------- モバイル固定CTA（名刺QR流入向け） ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  border-top: 2px solid var(--shu);
  /* iPhoneホームバーと重ならないように */
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: var(--ink);
}
.mobile-cta a {
  flex: 1;
  text-align: center;
  padding: 15px 6px;
  font-weight: 900;
  font-size: 14px;
  text-decoration: none;
}
.mobile-cta .call { background: var(--ink); color: #E8ECF5; }
.mobile-cta .mail { background: var(--shu); color: #FFF; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1180px) {
  :root { --rail-w: 34px; }
}
@media (max-width: 900px) {
  .sprocket-rail { display: none; }

  /* ===== モバイルヘッダー: コンパクトバー + ハンバーガードロワー ===== */
  .site-header { padding: 10px 16px; }
  .site-header .bar { gap: 12px; flex-wrap: wrap; }
  .site-header .c-name { display: none; }
  .site-header .logo { padding: 4px 8px; }
  .site-header .logo img { height: 28px; }
  .menu-toggle { display: flex; }

  /* 閉じている間はメニューを隠す */
  .site-header .member-links, .site-header .global-nav { display: none; }

  /* 開いたらドロワーとして縦に展開 */
  .site-header.open .global-nav { display: block; animation: drawer-in .22s ease-out; }
  .site-header.open .global-nav ul {
    flex-direction: column;
    gap: 0;
    margin-top: 12px;
    border-top: 1px solid #2E3F63;
  }
  .site-header.open .global-nav a {
    display: block;
    font-size: 15px;
    padding: 14px 4px;
    border-bottom: 1px solid #2E3F63;
  }
  .site-header.open .global-nav a[aria-current="page"] { border-bottom: 1px solid #2E3F63; color: var(--shu); }
  .site-header.open .member-links {
    display: grid;
    order: 3;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 14px 0 6px;
    animation: drawer-in .22s ease-out;
  }
  .site-header.open .member-links a {
    display: block;
    text-align: center;
    font-size: 13.5px;
    padding: 12px 8px;
  }
  section { padding: 64px 0; }
  .sheet { padding: 0 22px; }
  /* 明細行はスマホでは縦積み（テキストを全幅に） */
  .ledger-row { grid-template-columns: 1fr; gap: 14px; padding: 28px 2px; }
  .ledger-row .code { display: flex; align-items: baseline; gap: 10px; }
  .ledger-row .code .no { display: inline; font-size: 22px; }
  .ledger-row .thumb { grid-column: auto; max-width: 340px; }
  .ledger-row .partner { grid-column: auto; justify-self: start; text-align: left; }
  .duo, .paper-biz .inner, .night-inner { grid-template-columns: 1fr; }
  .mobile-cta { display: flex; }
  .hero { padding: 64px 0 90px; }
  .hero .stamp { right: 0; bottom: -48px; }
  body { padding-bottom: 56px; }
  .site-footer { padding-bottom: 110px; }
}

@keyframes drawer-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .stamp, .rule-line { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .stamp { opacity: .92; transform: rotate(-8deg); }
  .rule-line { transform: scaleX(1); }
}

/* キーボードフォーカス */
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--shu);
  outline-offset: 2px;
}
