/* モニサポ FAX分割 ランディングページ（2026-09-27）
   アクセントは製品ロゴの青 1 色。背景の紙の動画が白地のため、ライト表示のみ。 */

:root {
  color-scheme: light;
  --header-h: 64px;

  --ink: #17202c;
  --ink-2: #3a4658;
  --ink-3: #5a6578;
  --line: #e2e7ee;
  --line-2: #cbd4df;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --bg-deep: #131a24;

  --accent: #2c63ad;
  --accent-deep: #1f4f94;
  --accent-soft: #edf3fa;
  --accent-mist: #c4d6ee;

  /* 分けたファイルの色分け（青 1 色の濃淡と、送付状のグレー） */
  --g1: #b4bdc9;
  --g2: #1f4f94;
  --g3: #3a73c0;
  --g4: #6f9ad3;
  --g5: #a2bfe6;

  --memo: #b4462f;

  /* 作業時間の横棒: 同じ青の 2 段階（dataviz の配色チェック済み。薄い側は数値を必ず併記） */
  --chart-before: #6b9be0;
  --chart-after: #1f4f94;

  --radius: 16px;
  --radius-lg: 28px;
  --shadow: 0 30px 60px -36px rgba(20, 40, 72, 0.32), 0 2px 6px -2px rgba(20, 40, 72, 0.06);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font: "Geist", "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3 {
  word-break: auto-phrase;
  text-wrap: balance;
}

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

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.num {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 40;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  background: var(--accent-deep);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-sm {
  min-height: 38px;
  padding: 6px 18px;
  font-size: 14px;
}

.btn-lg {
  min-height: 56px;
  padding-inline: 32px;
  font-size: 17px;
}

.btn-arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.link-line {
  display: inline-block;
  padding-block: 8px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent-mist);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.25s;
}

.link-line:hover {
  text-decoration-color: var(--accent);
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-row {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
}

.brand-mark path {
  fill: none;
  stroke: #316bb8;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark circle {
  fill: #205096;
}

.brand-mark .brand-dot {
  fill: #5897e6;
}

.brand-name {
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
}

.brand-tag {
  white-space: nowrap;
  padding: 1px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
}

.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--accent);
}

/* ---------- ヒーロー（紙のスクロール演出） ---------- */
.hero.scroll-film {
  --film-min-height: 580px;
  --film-height: max(calc(100svh - var(--header-h)), var(--film-min-height));
  --film-fade: 180px;
  position: relative;
  background: #fff;
}

.scroll-film-scene {
  position: relative;
  min-height: var(--film-height);
  display: flex;
  align-items: center;
  isolation: isolate;
  background: #fff;
}

.scroll-film-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.scroll-film-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent calc(100% - var(--film-fade)), #fff 100%),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(255, 255, 255, 0.93) 34%,
      rgba(255, 255, 255, 0.6) 56%,
      rgba(255, 255, 255, 0.16) 80%,
      rgba(255, 255, 255, 0.04) 100%
    );
}

#scroll-film {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: 40px 96px;
}

.hero-copy {
  max-width: 40rem;
}

.hero-copy > * {
  animation: rise 1s var(--ease) both;
  animation-delay: calc(var(--d, 0) * 1ms + 150ms);
}

/* 上から順に浮かび上がる（遅れは ms。インラインの style を使わないよう、ここで指定する） */
.hero-copy > :nth-child(2) {
  --d: 120;
}

.hero-copy > :nth-child(3) {
  --d: 320;
}

.hero-copy > :nth-child(4) {
  --d: 480;
}

.hero-copy > :nth-child(5) {
  --d: 640;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.hero-title {
  margin-top: 20px;
  font-size: clamp(34px, 4.7vw, 60px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.03em;
}

.hero-title .line {
  display: block;
  white-space: nowrap;
}

.hero-title .line-accent {
  color: var(--accent-deep);
}

.hero-lead {
  margin-top: 24px;
  max-width: 31em;
  color: var(--ink-2);
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  margin-top: 36px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
}

.hero-meta li + li {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--line-2);
}

.scroll-film-hint {
  position: absolute;
  z-index: 1;
  bottom: 24px;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 12px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  text-shadow: 0 1px 8px #fff;
  transform: translateX(-50%);
}

.hint-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(var(--ink-3), transparent);
  transform-origin: top;
  animation: hint 2.2s var(--ease) infinite;
}

.scroll-film-error {
  position: absolute;
  z-index: 1;
  bottom: 16px;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  transform: translateX(-50%);
}

.scroll-film-hint[hidden],
.scroll-film-error[hidden] {
  display: none;
}

/* ---------- 共通セクション ---------- */
.section {
  padding-block: clamp(88px, 11vw, 144px);
}

.section-head {
  max-width: 44rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.section-head h2 {
  margin-top: 16px;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.lead {
  margin-top: 20px;
  max-width: 36em;
  color: var(--ink-2);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* 画面外の常時アニメーションは止めておく（子要素の ::before・::after も） */
[data-live]:not(.is-live) *,
[data-live]:not(.is-live) *::before,
[data-live]:not(.is-live) *::after,
[data-live]:not(.is-live)::before,
[data-live]:not(.is-live)::after,
.scroll-film-scene.is-away .hint-line {
  animation-play-state: paused !important;
}

/* ---------- キーフレーム ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes hint {
  0% {
    transform: scaleY(0);
    opacity: 1;
  }
  60% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes breathe {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(44, 99, 173, 0.35);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(44, 99, 173, 0);
  }
}

@media (max-width: 1080px) {
  .site-nav {
    gap: 18px;
  }
}

@media (max-width: 960px) {
  .site-nav {
    display: none;
  }

  .header-row {
    justify-content: space-between;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 56px;
  }

  .brand-tag {
    font-size: 12px;
  }

  .btn-sm {
    min-height: 44px;
  }

  .hero.scroll-film {
    --film-min-height: 520px;
    --film-fade: 120px;
  }

  .scroll-film-media::after {
    background:
      linear-gradient(to bottom, transparent calc(100% - var(--film-fade)), #fff 100%),
      linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82));
  }

  .hero-inner {
    padding-block: 24px 88px;
  }

  .hero-title {
    font-size: clamp(29px, 8.2vw, 40px);
  }

  .hero-meta {
    margin-top: 28px;
    font-size: 12px;
  }

  .hero-meta li + li {
    margin-left: 10px;
    padding-left: 10px;
  }
}

/* 幅 320〜380px の小さいスマートフォンでも、ヘッダーが 1 行に収まるよう詰める */
@media (max-width: 380px) {
  .header-row {
    gap: 8px;
  }

  .brand {
    gap: 6px;
  }

  .brand-mark {
    width: 24px;
    height: 24px;
  }

  .brand-name {
    font-size: 15px;
  }

  .site-header .btn-sm {
    padding-inline: 12px;
    font-size: 13px;
  }
}

/* タブレットなど指で操作する端末では、画面幅にかかわらず押す場所を 44px 以上にする */
@media (pointer: coarse) {
  .btn-sm {
    min-height: 44px;
  }

  .site-nav a,
  .footer-nav a {
    display: inline-block;
    padding-block: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .scroll-film-hint {
    visibility: hidden;
  }
}
