/* ============================================================
   ヒダカラ AI推進室 LP
   コンセプト：ヒダカラの朱赤 × テックの墨
   白地に朱赤を主役、罫線と番号で構成する誌面的レイアウト
   ============================================================ */

:root {
  --paper: #fbf9f5;            /* 温かみのある白 */
  --paper-2: #f4efe7;          /* 一段深い生成り */
  --ink: #16181d;              /* 墨（青みの黒） */
  --ink-2: #20232b;
  --text: #2b2d33;
  --text-weak: #76746e;
  --red: #e0492e;              /* ヒダカラの朱赤 */
  --red-deep: #bd3820;         /* 白地で読ませる深い赤 */
  --red-wash: #f9e9e3;         /* 薄紅 */
  --red-ghost: rgba(224, 73, 46, .08);
  --line: rgba(22, 24, 29, .16);
  --line-strong: rgba(22, 24, 29, .65);
  --line-dark: rgba(251, 249, 245, .22);
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --sans: "IBM Plex Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --header-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
/* 管理画面から未設定の画像枠（<img data-img="..." hidden>）を確実に隠す */
img[hidden] { display: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
.pc-only { display: inline; }
.sp-only { display: none; }

.container { width: min(1080px, 90%); margin-inline: auto; }
.container-narrow { width: min(820px, 90%); margin-inline: auto; }

/* ---------- セクション共通 ---------- */
.section { padding: 110px 0; }

.section-eyebrow {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink);
  margin-bottom: 18px;
}
.section-eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--red);
  align-self: center;
  flex-shrink: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease) .25s;
}
.section-eyebrow.is-visible::before { transform: scaleX(1); }
.section-eyebrow span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--red-deep);
}

.section-title {
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .03em;
  color: var(--ink);
  margin-bottom: 30px;
}

.section-lead { color: var(--text-weak); margin-bottom: 64px; max-width: 680px; }

/* ---------- ボタン ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .14em;
  padding: 17px 42px;
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  overflow: hidden;
  transition: color .35s var(--ease), border-color .35s var(--ease);
  z-index: 0;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
  z-index: -1;
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }

.btn-fill { background: var(--ink); color: var(--paper); }
.btn-fill::before { background: var(--red); }
.btn-fill:hover { border-color: var(--red); }

.btn-line { background: transparent; color: var(--ink); }
.btn-line::before { background: var(--ink); }
.btn-line:hover { color: var(--paper); }

.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red::before { background: var(--paper); }
.btn-red:hover { color: var(--red-deep); }

.btn-nav { padding: 11px 24px; font-size: 12.5px; }

.btn.is-disabled { opacity: .45; pointer-events: none; }
/* .btn は display:inline-flex のため、hidden属性を効かせるには明示が必要 */
.btn[hidden] { display: none; }

/* ---------- スクロール出現 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }

/* ---------- スクロール進捗（朱の罫線） ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 130;
  pointer-events: none;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(251, 249, 245, .92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.header-inner {
  width: min(1240px, 94%);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%; height: 100%;
  display: block;
  border-radius: 9px;
}
.brand-text { line-height: 1.3; }
.brand-name { display: block; font-weight: 700; font-size: 16px; color: var(--ink); letter-spacing: .06em; }
.brand-sub { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--text-weak); }

.global-nav { display: flex; align-items: center; gap: 30px; }
.global-nav ul { display: flex; gap: 26px; }
.global-nav ul a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.global-nav ul a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.global-nav ul a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 50px) 0 90px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
/* 管理画面から差し替えるヒーロー背景写真（未設定時は hidden で非表示） */
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 濃さは変数で持つ。フェードイン後もこの値を保つため、専用キーフレームで終値に使う
     （共通の heroFade は opacity:1 で終わるため、写真に使うと濃さの指定が打ち消される） */
  --hero-photo-opacity: .26;
  opacity: var(--hero-photo-opacity);
  /* 見出し・本文が乗る左側へ向けてフェードさせ、文字の可読性を保つ */
  -webkit-mask-image: linear-gradient(100deg, transparent 0 26%, rgba(0, 0, 0, .45) 56%, #000 86%);
  mask-image: linear-gradient(100deg, transparent 0 26%, rgba(0, 0, 0, .45) 56%, #000 86%);
  animation: heroPhotoFade 1.6s var(--ease) .2s both;
}
/* ---- ヒーローの見せ方（管理画面から data-hero-* 属性で切り替え） ---- */

/* 写真の中で見せたい位置（人物が隠れないように寄せる） */
.hero[data-hero-focus="top"] .hero-photo { object-position: 50% 0; }
.hero[data-hero-focus="bottom"] .hero-photo { object-position: 50% 100%; }
.hero[data-hero-focus="left"] .hero-photo { object-position: 0 50%; }
.hero[data-hero-focus="right"] .hero-photo { object-position: 100% 50%; }
.hero[data-hero-focus="top-left"] .hero-photo { object-position: 0 0; }
.hero[data-hero-focus="top-right"] .hero-photo { object-position: 100% 0; }
.hero[data-hero-focus="bottom-left"] .hero-photo { object-position: 0 100%; }
.hero[data-hero-focus="bottom-right"] .hero-photo { object-position: 100% 100%; }

/* 写真の濃さ */
.hero[data-hero-tone="light"] .hero-photo { --hero-photo-opacity: .16; }
.hero[data-hero-tone="strong"] .hero-photo { --hero-photo-opacity: .4; }

/* 文言の位置（写真を全面に敷いているときのみ有効。分割表示では自動配置） */
.hero[data-hero-align="center"] .hero-inner { text-align: center; }
.hero[data-hero-align="center"] .hero-inner > * { width: fit-content; margin-inline: auto; }
.hero[data-hero-align="right"] .hero-inner { text-align: right; }
.hero[data-hero-align="right"] .hero-inner > * { width: fit-content; margin-left: auto; }
/* 文字がある側から写真をフェードさせ、可読性を保つ */
.hero[data-hero-align="right"] .hero-photo {
  -webkit-mask-image: linear-gradient(-100deg, transparent 0 26%, rgba(0, 0, 0, .45) 56%, #000 86%);
  mask-image: linear-gradient(-100deg, transparent 0 26%, rgba(0, 0, 0, .45) 56%, #000 86%);
}
.hero[data-hero-align="center"] .hero-photo {
  -webkit-mask-image: radial-gradient(ellipse 74% 62% at 50% 50%, transparent 0 34%, rgba(0, 0, 0, .5) 72%, #000 100%);
  mask-image: radial-gradient(ellipse 74% 62% at 50% 50%, transparent 0 34%, rgba(0, 0, 0, .5) 72%, #000 100%);
}
/* 右寄せのときは縦書きコピーを左へ逃がす */
.hero[data-hero-align="right"] .hero-vertical { right: auto; left: clamp(14px, 3vw, 44px); }

/* 写真を左右どちらかの半分に大きく見せる（文字と重ならないレイアウト） */
.hero[data-hero-fit="right"] .hero-photo,
.hero[data-hero-fit="left"] .hero-photo {
  width: 46%;
  --hero-photo-opacity: 1;
}
.hero[data-hero-fit="right"] .hero-photo {
  left: auto;
  right: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}
.hero[data-hero-fit="left"] .hero-photo {
  right: auto;
  left: 0;
  -webkit-mask-image: linear-gradient(-90deg, transparent 0, #000 22%);
  mask-image: linear-gradient(-90deg, transparent 0, #000 22%);
}
/* 分割時は文言を写真の反対側へ寄せ、幅を制限して重なりを防ぐ */
.hero[data-hero-fit="right"] .hero-inner,
.hero[data-hero-fit="left"] .hero-inner { text-align: left; }
.hero[data-hero-fit="right"] .hero-inner > *,
.hero[data-hero-fit="left"] .hero-inner > * {
  width: auto;
  max-width: min(100%, 560px);
}
/* 文字の幅が半分になるため、見出しを段組みに合わせて縮める */
.hero[data-hero-fit="right"] .hero-title,
.hero[data-hero-fit="left"] .hero-title { font-size: clamp(30px, 4.1vw, 52px); }
.hero[data-hero-fit="right"] .hero-lead,
.hero[data-hero-fit="left"] .hero-lead { font-size: 14px; }
.hero[data-hero-fit="right"] .hero-inner > * { margin-left: 0; margin-right: auto; }
.hero[data-hero-fit="left"] .hero-inner > * { margin-left: auto; margin-right: 0; }
.hero[data-hero-fit="left"] .hero-vertical { right: auto; left: clamp(14px, 3vw, 44px); }
/* 分割時は装飾が写真と競合するため控えめに */
.hero[data-hero-fit="right"] .hero-watermark,
.hero[data-hero-fit="left"] .hero-watermark { opacity: .35; }
.hero[data-hero-fit="right"] .hero-ring,
.hero[data-hero-fit="left"] .hero-ring { display: none; }

/* スマホは文字が画面幅いっぱいに乗るため、さらに薄く敷く（分割表示も全面に戻す） */
@media (max-width: 860px) {
  .hero-photo,
  .hero[data-hero-fit="right"] .hero-photo,
  .hero[data-hero-fit="left"] .hero-photo {
    left: 0;
    right: 0;
    width: 100%;
    --hero-photo-opacity: .15;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .3) 0 40%, #000 100%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .3) 0 40%, #000 100%);
  }
  .hero[data-hero-tone="light"] .hero-photo { --hero-photo-opacity: .1; }
  .hero[data-hero-tone="strong"] .hero-photo { --hero-photo-opacity: .24; }
  .hero[data-hero-fit="right"] .hero-inner > *,
  .hero[data-hero-fit="left"] .hero-inner > * { max-width: 100%; margin-inline: 0; }
  .hero[data-hero-fit="left"] .hero-inner { text-align: left; }
  .hero[data-hero-fit="right"] .hero-ring,
  .hero[data-hero-fit="left"] .hero-ring { display: block; }

  /* ---- スマホでの写真の見せ方（管理画面 data-hero-sp） ---- */

  /* 写真を上に大きく：写真は画面上部、文言はその下へ */
  .hero[data-hero-sp="above"] { padding-top: calc(var(--header-h) + 40vh); justify-content: flex-start; }
  .hero[data-hero-sp="above"] .hero-photo {
    height: 44vh;
    bottom: auto;
    --hero-photo-opacity: 1;
    -webkit-mask-image: linear-gradient(180deg, #000 0 68%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0 68%, transparent 100%);
  }
  /* 写真を下に大きく：文言が先、写真は画面下部へ */
  .hero[data-hero-sp="below"] { padding-bottom: 42vh; }
  .hero[data-hero-sp="below"] .hero-photo {
    height: 44vh;
    top: auto;
    bottom: 0;
    --hero-photo-opacity: 1;
    -webkit-mask-image: linear-gradient(0deg, #000 0 68%, transparent 100%);
    mask-image: linear-gradient(0deg, #000 0 68%, transparent 100%);
  }
  /* スマホでは写真を出さない */
  .hero[data-hero-sp="none"] .hero-photo { display: none; }
  /* 写真を大きく見せるときは、重なる装飾を抑える */
  .hero[data-hero-sp="above"] .hero-watermark,
  .hero[data-hero-sp="below"] .hero-watermark { opacity: .3; }
  .hero[data-hero-sp="above"] .hero-vertical,
  .hero[data-hero-sp="below"] .hero-vertical { display: none; }
  .hero[data-hero-sp="above"] .hero-foot,
  .hero[data-hero-sp="below"] .hero-foot { display: none; }
}
.hero-watermark {
  position: absolute;
  top: 4%;
  right: -3%;
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(150px, 26vw, 380px);
  line-height: .9;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(224, 73, 46, .22);
  animation:
    heroFade 1.6s var(--ease) .9s both,
    wmDrift 18s ease-in-out 3s infinite;
}
.hero-ring {
  position: absolute;
  width: clamp(340px, 44vw, 640px);
  height: clamp(340px, 44vw, 640px);
  right: -8%;
  bottom: -22%;
  border: 1px solid rgba(224, 73, 46, .35);
  border-radius: 50%;
  /* ロゴの「開いたリング」を抽象化：上部を欠けさせる */
  mask-image: conic-gradient(from -50deg, transparent 0 40deg, #000 60deg 360deg);
  -webkit-mask-image: conic-gradient(from -50deg, transparent 0 40deg, #000 60deg 360deg);
  animation:
    ringDraw 2s var(--ease) .7s both,
    ringBreathe 9s ease-in-out 3s infinite;
}
.hero-cross {
  position: absolute;
  font-family: var(--mono);
  font-size: 18px;
  color: rgba(224, 73, 46, .5);
  animation:
    heroFade 1.2s var(--ease) 1.3s both,
    crossPulse 5.5s ease-in-out 4s infinite;
}
.hero-cross-1 { top: 22%; left: 46%; }
.hero-cross-2 { top: 68%; left: 8%; }
.hero-cross-3 { top: 38%; right: 6%; }

.hero-vertical {
  position: absolute;
  top: 50%;
  right: clamp(14px, 3vw, 44px);
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 13.5px;
  letter-spacing: .42em;
  color: var(--ink);
  animation: heroFade 1.4s var(--ease) 1.5s both;
}
.hero-vertical::before {
  content: "";
  display: block;
  width: 1px; height: 56px;
  background: var(--red);
  margin: 0 auto 18px;
}

.hero-inner { position: relative; width: min(1080px, 90%); margin-inline: auto; }
.hero-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .32em;
  color: var(--red-deep);
  margin-bottom: 34px;
  animation: heroFade 1s var(--ease) .15s both;
}
.hero-kicker span {
  display: block;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: .14em;
  color: var(--text-weak);
  margin-top: 8px;
}
.hero-title {
  font-size: clamp(38px, 7vw, 78px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: .02em;
  color: var(--ink);
  margin-bottom: 34px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line i {
  display: block;
  font-style: normal;
  transform: translateY(110%);
  animation: lineUp 1s var(--ease) forwards;
}
/* 2行目の始め括弧をぶら下げて視覚的に行頭を揃える */
.hero-title .line:nth-child(2) i { text-indent: -.5em; }
.hero-title .line:nth-child(1) i { animation-delay: .25s; }
.hero-title .line:nth-child(2) i { animation-delay: .42s; }
.hero-title em { font-style: normal; color: var(--red); }

.hero-lead {
  color: var(--text-weak);
  font-size: clamp(14.5px, 1.5vw, 16.5px);
  margin-bottom: 48px;
  animation: heroFade 1.1s var(--ease) .85s both;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; animation: heroFade 1.1s var(--ease) 1.05s both; }

.hero-foot {
  position: absolute;
  left: 5%;
  bottom: 34px;
  animation: heroFade 1s var(--ease) 1.6s both;
}
.hero-scroll {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .4em;
  color: var(--text-weak);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero-scroll::after {
  content: "";
  width: 64px; height: 1px;
  background: var(--line-strong);
  display: block;
  transform-origin: left;
  animation: scrollPulse 2.4s var(--ease) infinite;
}

@keyframes lineUp { to { transform: translateY(0); } }
@keyframes heroFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* 写真用：終値を指定どおりの濃さにする（heroFadeだと必ず不透明になってしまう） */
@keyframes heroPhotoFade { from { opacity: 0; } to { opacity: var(--hero-photo-opacity); } }
@keyframes ringDraw { from { opacity: 0; transform: rotate(-40deg); } to { opacity: 1; transform: rotate(0); } }
@keyframes scrollPulse { 0% { transform: scaleX(0); } 55%, 100% { transform: scaleX(1); } }
/* 環境モーション（起動後にゆっくり呼吸する背景） */
@keyframes wmDrift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes ringBreathe { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(0) scale(1.03); } }
@keyframes crossPulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes pulseSweep { 0% { left: 0; opacity: 1; } 100% { left: calc(100% - 72px); opacity: 0; } }
@keyframes regionDrift { from { transform: translateX(0); } to { transform: translateX(-36px); } }
@keyframes missionDrift { from { transform: translateY(-50%) translateX(0); } to { transform: translateY(-50%) translateX(-28px); } }

/* ---------- 数字 ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat { padding: 36px 26px 32px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num {
  font-family: var(--mono);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 600;
  line-height: 1;
  color: var(--red-deep);
  margin-bottom: 12px;
}
.stat-num small { font-size: .38em; font-family: var(--sans); font-weight: 600; color: var(--ink); margin-left: 4px; }
.stat-label { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.7; }
.stat-label span { display: block; font-weight: 400; font-size: 11.5px; color: var(--text-weak); }

/* ---------- 課題提起 ---------- */
.problem-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 70px;
  align-items: start;
}
.problem-head { position: sticky; top: calc(var(--header-h) + 40px); }
.problem-head .section-title { margin-bottom: 40px; }
.problem-answer {
  font-size: 16px;
  line-height: 2.1;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
  max-width: 360px;
}
.problem-answer strong {
  color: var(--red-deep);
  font-weight: 700;
}
.problem-list { border-top: 1px solid var(--line); }
.problem-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 34px 4px;
  border-bottom: 1px solid var(--line);
}
.problem-no {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--red);
  padding-top: 5px;
}
.problem-item h3 { font-size: 17.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; letter-spacing: .02em; }
.problem-item p { font-size: 14px; color: var(--text-weak); }

/* ---------- AI推進室とは ---------- */
.about-lead { max-width: 720px; margin-bottom: 90px; }
.about-lead strong { color: var(--ink); font-weight: 700; }

.mission {
  background: var(--ink);
  color: var(--paper);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.mission::before {
  content: "MISSION";
  position: absolute;
  top: 50%; right: -2%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(90px, 16vw, 230px);
  letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(251, 249, 245, .1);
  pointer-events: none;
  animation: missionDrift 20s ease-in-out infinite alternate;
}
.mission::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 3px;
  background: var(--red);
}
.mission-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .4em;
  color: var(--red);
  margin-bottom: 26px;
}
.mission-text {
  font-family: var(--serif);
  font-size: clamp(22px, 3.4vw, 36px);
  font-weight: 600;
  line-height: 2;
  letter-spacing: .06em;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 90px;
}
.about-col { padding: 8px 34px 0; border-left: 1px solid var(--line); }
.about-col:first-child { border-left: none; padding-left: 4px; }
.about-no {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  display: block;
  margin-bottom: 14px;
}
.about-col h3 { font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 12px; letter-spacing: .04em; }
.about-col p { font-size: 13.5px; color: var(--text-weak); }

/* ---------- サービス ---------- */
.services { background: var(--paper-2); }

.service-index { border-top: 1px solid var(--line-strong); margin-bottom: 110px; }
.index-row {
  display: grid;
  grid-template-columns: 70px minmax(220px, 3fr) 5fr 40px;
  align-items: baseline;
  gap: 18px;
  padding: 26px 6px;
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, padding-left .3s var(--ease);
}
/* reveal併用時にopacity/transformのトランジションが上書きされないよう統合 */
.index-row.reveal {
  transition:
    opacity .9s var(--ease), transform .9s var(--ease),
    background .3s ease, padding-left .3s var(--ease);
}
.index-row:hover { background: var(--red-ghost); padding-left: 18px; }
.index-no { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--red); }
.index-name { font-size: clamp(19px, 2.3vw, 25px); font-weight: 700; color: var(--ink); letter-spacing: .03em; }
.index-copy { font-size: 13px; color: var(--text-weak); }
.index-arrow {
  font-family: var(--mono);
  color: var(--red);
  text-align: right;
  transition: transform .3s var(--ease);
}
.index-row:hover .index-arrow { transform: translateY(4px); }

.pillar { padding-top: 30px; margin-bottom: 110px; scroll-margin-top: calc(var(--header-h) + 20px); }
.pillar:last-child { margin-bottom: 0; }
.pillar-head {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  align-items: start;
  padding-top: 26px;
  border-top: 2px solid var(--ink);
  margin-bottom: 56px;
}
/* 表示時、上罫を朱のパルスが一度だけ走る */
.pillar-head::after {
  content: "";
  position: absolute;
  top: -2px; left: 0;
  width: 72px; height: 2px;
  background: var(--red);
  opacity: 0;
  pointer-events: none;
}
.pillar-head.is-visible::after { animation: pulseSweep 1.5s var(--ease) .3s 1 forwards; }
.pillar-no { font-family: var(--mono); font-size: 17px; font-weight: 600; color: var(--red); padding-top: 8px; }
.pillar-head h3 { font-size: clamp(23px, 3vw, 32px); font-weight: 700; color: var(--ink); letter-spacing: .03em; margin-bottom: 14px; }
.pillar-head p { font-size: 14px; color: var(--text-weak); max-width: 700px; }
.pillar-note {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-weak);
  margin-top: 34px;
  text-align: right;
}

/* HP制作：3プラン */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.plan {
  position: relative;
  padding: 38px 30px 34px;
  border-left: 1px solid var(--line);
}
.plan:first-child { border-left: none; padding-left: 6px; }
.plan-featured { background: var(--paper); border-top: 3px solid var(--red); margin-top: -2px; }
.plan-badge {
  position: absolute;
  top: 16px; right: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--red-deep);
  border: 1px solid var(--red);
  padding: 3px 10px;
}
.plan-name { font-size: 16.5px; font-weight: 700; color: var(--ink); }
.plan-copy { font-size: 12px; color: var(--text-weak); margin: 4px 0 22px; }
.plan-price {
  font-family: var(--mono);
  font-size: 33px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -.02em;
}
.plan-price small { font-size: 13px; font-family: var(--sans); font-weight: 600; margin-left: 2px; }
.plan-sub {
  font-size: 11.5px;
  color: var(--text-weak);
  margin: 10px 0 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.plan-points li {
  position: relative;
  font-size: 13px;
  padding-left: 18px;
  margin-bottom: 7px;
  line-height: 1.8;
}
.plan-points li::before {
  content: "";
  position: absolute;
  left: 0; top: .8em;
  width: 7px; height: 1.5px;
  background: var(--red);
}
.btn-plan { width: 100%; margin-top: 24px; padding: 14px 10px; font-size: 13px; letter-spacing: .1em; }
.btn-step { margin-top: 20px; padding: 12px 30px; font-size: 12.5px; }

/* DX・AI導入：ステップ行 */
.step-list { border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 110px 1fr 170px;
  gap: 26px;
  align-items: start;
  padding: 38px 6px;
  border-bottom: 1px solid var(--line);
}
.step-no {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--red);
  padding-top: 6px;
}
.step-body h4 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .02em;
  margin-bottom: 10px;
}
.step-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--text-weak);
  border: 1px solid var(--line-strong);
  padding: 2px 10px;
}
.step-body p { font-size: 13.5px; color: var(--text-weak); max-width: 640px; }
.step-price {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  line-height: 1.2;
  padding-top: 2px;
}
.step-price small { font-size: 13px; font-family: var(--sans); font-weight: 600; }
.step-price-text { font-size: 15px; font-family: var(--sans); font-weight: 600; padding-top: 10px; }
.step-featured { background: linear-gradient(90deg, var(--red-ghost), transparent 70%); }
.step-featured .step-no { color: var(--red-deep); }
.step-dx { border-top: 1px dashed var(--line-strong); margin-top: -1px; }

/* サービス開発 */
.dev-feature {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(44px, 6vw, 72px) clamp(28px, 5vw, 64px);
  margin-bottom: 56px;
  overflow: hidden;
}
.dev-feature::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease) .2s;
}
.dev-feature.is-visible::before { transform: scaleX(1); }
.dev-feature::after {
  content: "REGION";
  position: absolute;
  right: -2%; bottom: -10%;
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(70px, 11vw, 150px);
  letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(251, 249, 245, .1);
  pointer-events: none;
  animation: regionDrift 16s ease-in-out infinite alternate;
}
.dev-feature-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--red);
  margin-bottom: 20px;
}
.dev-feature h4 {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.5;
  margin-bottom: 22px;
}
.dev-feature h4 i {
  font-style: normal;
  font-family: var(--mono);
  color: var(--red);
  font-size: .7em;
  margin: 0 .1em;
}
.dev-feature p { font-size: 14.5px; color: rgba(251, 249, 245, .72); max-width: 640px; position: relative; }

.dev-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.dev-col { padding: 34px 30px 6px; border-left: 1px solid var(--line); }
.dev-col:first-child { border-left: none; padding-left: 6px; }
.dev-col h4 { font-size: 17.5px; font-weight: 700; color: var(--ink); margin-bottom: 12px; letter-spacing: .03em; }
.dev-col p { font-size: 13.5px; color: var(--text-weak); }

/* ---------- 選ばれる理由（カード形式） ---------- */
.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.reason {
  background: #fff;
  border: 1px solid var(--line);
  padding: 30px 26px 26px;
  transition: border-color .3s ease, transform .3s var(--ease);
}
.reason:hover { border-color: var(--red); transform: translateY(-4px); }
.reason-no {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  display: block;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.reason h3 { font-size: 16.5px; font-weight: 700; color: var(--ink); margin-bottom: 10px; letter-spacing: .02em; }
.reason p { font-size: 13.5px; color: var(--text-weak); }

/* ---------- 導入の流れ ---------- */
.flow { background: var(--ink); color: var(--paper); }
.flow .section-eyebrow { color: var(--paper); }
.flow .section-eyebrow span { color: var(--red); }
.flow .section-title { color: var(--paper); }
.flow-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line-dark);
  counter-reset: flow;
}
.flow-step { padding: 34px 26px 6px; border-left: 1px solid var(--line-dark); position: relative; }
.flow-step:first-child { border-left: none; padding-left: 4px; }
.flow-step::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 1s var(--ease) .3s;
}
.flow-step.is-visible::before { width: 100%; }
.flow-no {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--red);
  display: block;
  margin-bottom: 16px;
}
.flow-step h3 { font-size: 16px; font-weight: 700; letter-spacing: .03em; margin-bottom: 10px; }
.flow-step h3 small {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--red);
  border: 1px solid rgba(224, 73, 46, .55);
  padding: 2px 8px;
  margin-left: 10px;
  vertical-align: 2px;
}
.flow-step p { font-size: 12.5px; color: rgba(251, 249, 245, .62); }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 54px 1fr 22px;
  align-items: baseline;
  gap: 12px;
  padding: 26px 4px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  transition: color .25s ease;
}
.faq-item summary:hover { color: var(--red-deep); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--red); }
.faq-icon { position: relative; width: 14px; height: 14px; align-self: center; }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--ink);
  transition: transform .3s var(--ease);
}
.faq-icon::before { width: 14px; height: 1px; }
.faq-icon::after { width: 1px; height: 14px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); }
.faq-body { padding: 0 4px 28px 66px; }
.faq-body p { font-size: 14px; color: var(--text-weak); }

/* ---------- 会社概要 ---------- */
.company { background: var(--paper-2); }
.company-table { border-top: 1px solid var(--line-strong); }
.company-table > div {
  display: grid;
  grid-template-columns: 170px 1fr;
  border-bottom: 1px solid var(--line);
}
.company-table dt {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--red-deep);
  padding: 20px 4px;
}
.company-table dd { padding: 20px 0; font-size: 14px; }
.company-table dd a { color: var(--red-deep); border-bottom: 1px solid currentColor; }

/* ---------- 下層ページ共通 ---------- */
.subpage-header { border-bottom: 1px solid var(--line); }
.subpage-header .header-inner { height: var(--header-h); }
.subpage-body .reveal { opacity: 1; transform: none; }
.subpage-back { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--red-deep); }
.subpage-back:hover { text-decoration: underline; }
.tokushoho-note { font-size: 12.5px; color: var(--text-weak); margin-top: 30px; line-height: 2; }
.crumb { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--text-weak); padding-top: 18px; }
.crumb a { color: var(--text-weak); }
.crumb a:hover { color: var(--red-deep); }

/* ---------- プラン詳細ページ ---------- */
.plan-detail-head { padding: 80px 0 54px; }
.plan-detail-copy { color: var(--text-weak); max-width: 640px; margin-bottom: 40px; }
.plan-detail-price {
  font-family: var(--mono);
  font-size: clamp(38px, 6vw, 54px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -.02em;
}
.plan-detail-price small { font-size: 14px; font-family: var(--sans); font-weight: 600; margin-left: 4px; }
.plan-detail-terms { font-size: 12.5px; color: var(--text-weak); margin-top: 14px; }
.detail-section { padding: 54px 0; border-top: 1px solid var(--line); }
.detail-title { display: flex; align-items: baseline; gap: 12px; font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: .03em; margin-bottom: 24px; }
.detail-title .num { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--red); }
.detail-note { font-size: 12.5px; color: var(--text-weak); margin-top: 16px; }
.detail-flow { counter-reset: dflow; border-top: 1px solid var(--line); }
.detail-flow li { position: relative; padding: 18px 4px 18px 64px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--text-weak); }
.detail-flow li::before {
  counter-increment: dflow;
  content: "0" counter(dflow);
  position: absolute;
  left: 4px; top: 20px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
}
.detail-flow li strong { display: block; font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.plan-cta-box {
  margin-top: 70px;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(36px, 5vw, 56px) clamp(20px, 4vw, 48px);
  text-align: center;
  position: relative;
}
.plan-cta-box::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--red); }
.plan-cta-lead { font-size: 16px; font-weight: 700; letter-spacing: .05em; margin-bottom: 24px; }
.plan-cta-box .btn { min-width: min(380px, 100%); }
.plan-cta-note { font-family: var(--mono); font-size: 11px; color: rgba(251, 249, 245, .5); margin-top: 20px; line-height: 2.1; }
.plan-cta-note a { color: rgba(251, 249, 245, .8); border-bottom: 1px solid currentColor; }
.plan-other { margin-top: 44px; font-size: 13.5px; color: var(--text-weak); text-align: center; }
.plan-other a { color: var(--red-deep); border-bottom: 1px solid currentColor; }

/* ---------- ガイド記事 ---------- */
.guide-list { border-top: 1px solid var(--line-strong); }
.guide-item {
  display: block;
  padding: 30px 6px;
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, padding-left .3s var(--ease);
}
.guide-item:hover { background: var(--red-ghost); padding-left: 18px; }
.guide-item-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.guide-cat {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--red-deep);
  border: 1px solid var(--red);
  padding: 2px 10px;
}
.guide-date { font-family: var(--mono); font-size: 11px; color: var(--text-weak); }
.guide-item h3 { font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: .02em; margin-bottom: 8px; }
.guide-item p { font-size: 13.5px; color: var(--text-weak); }

.article-head { padding: 60px 0 44px; border-bottom: 1px solid var(--line-strong); }
.article-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.article-title {
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--ink);
  margin-bottom: 20px;
}
.article-lead { color: var(--text-weak); font-size: 14.5px; }
.article-body { padding: 24px 0 30px; }
.article-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .03em;
  line-height: 1.6;
  margin: 54px 0 20px;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--red);
}
.article-body h3 { font-size: 16.5px; font-weight: 700; color: var(--ink); margin: 34px 0 12px; }
.article-body p { font-size: 14.5px; margin-bottom: 22px; }
.article-body ul, .article-body ol { margin: 0 0 24px; }
.article-body li { position: relative; font-size: 14px; padding-left: 18px; margin-bottom: 8px; line-height: 1.9; }
.article-body li::before {
  content: "";
  position: absolute;
  left: 0; top: .85em;
  width: 7px; height: 1.5px;
  background: var(--red);
}
.article-box {
  background: var(--paper-2);
  border-left: 3px solid var(--red);
  padding: 22px 26px;
  font-size: 13.5px;
  margin: 0 0 24px;
}
.article-box strong { color: var(--ink); }
.article-body a { color: var(--red-deep); border-bottom: 1px solid currentColor; }
.article-body strong { color: var(--ink); font-weight: 700; }
/* 記事本文に差し込んだ画像 */
.article-figure { margin: 0 0 26px; }
.article-figure img { width: 100%; border: 1px solid var(--line); border-radius: 4px; }
.article-figure figcaption {
  font-size: 12px;
  color: var(--text-weak);
  margin-top: 8px;
  line-height: 1.8;
}

/* ---------- 管理画面から差し込むページ内の写真 ---------- */
.section-photo { margin: 0; }
.section-photo img {
  width: 100%;
  margin-top: 42px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 4px;
}

/* ---------- HTMLサイトマップ ---------- */
.sitemap-list li {
  position: relative;
  font-size: 14.5px;
  padding-left: 18px;
  margin-bottom: 12px;
  line-height: 1.9;
}
.sitemap-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .85em;
  width: 7px; height: 1.5px;
  background: var(--red);
}
.sitemap-list a { border-bottom: 1px solid var(--line-strong); transition: color .2s ease, border-color .2s ease; }
.sitemap-list a:hover { color: var(--red-deep); border-bottom-color: currentColor; }
.sitemap-list li span { display: block; font-size: 12px; color: var(--text-weak); }

/* ---------- 最新のお知らせ（LP） ---------- */
.news { border-bottom: 1px solid var(--line); }
.news-inner {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 50px;
  align-items: start;
  padding: 30px 0 34px;
}
.news-head .section-eyebrow { margin-bottom: 0; }
.news-list { list-style: none; }
.news-item + .news-item { border-top: 1px solid var(--line); }
.news-item > a,
.news-item > div {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 13px 2px;
}
.news-item > a .news-item-title { transition: color .2s ease; }
.news-item > a:hover .news-item-title { color: var(--red-deep); }
.news-item.is-empty { padding: 13px 2px; font-size: 13.5px; color: var(--text-weak); }
.news-date {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--text-weak);
  white-space: nowrap;
}
.news-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 1px 10px;
  white-space: nowrap;
}
.news-tag.is-note { color: var(--red-deep); border-color: currentColor; }
.news-tag.is-post { color: var(--red-deep); border-color: currentColor; }
.news-item-title { font-size: 14px; color: var(--ink); }
.news-more { margin-top: 14px; text-align: right; }
.news-more a {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--text-weak);
  border-bottom: 1px solid var(--line-strong);
  transition: color .2s ease, border-color .2s ease;
}
.news-more a:hover { color: var(--red-deep); border-bottom-color: currentColor; }

/* ブログ一覧：外部リンク（note）の印 */
.ext-mark { font-family: var(--mono); font-size: .85em; color: var(--red-deep); }

/* ブログ一覧：サムネイル付きカード */
.guide-item.has-thumb { display: grid; grid-template-columns: 148px 1fr; gap: 22px; align-items: start; }
.guide-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

/* ---------- お問い合わせ ---------- */
.contact { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.contact::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 3px;
  background: var(--red);
}
.contact-bg { position: absolute; inset: 0; pointer-events: none; }
.contact-bg span {
  position: absolute;
  bottom: -4%;
  left: -2%;
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(90px, 15vw, 210px);
  letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(251, 249, 245, .08);
}
.contact .section-eyebrow { color: var(--paper); }
.contact .section-eyebrow span { color: var(--red); }
.contact .section-title { color: var(--paper); }
.contact .section-lead { color: rgba(251, 249, 245, .62); margin-bottom: 56px; }

.contact-form { position: relative; }
.form-row { margin-bottom: 34px; }
.form-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.contact-form label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  color: rgba(251, 249, 245, .85);
  margin-bottom: 6px;
}
.req {
  display: inline-block;
  font-size: 10px;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 1px 8px;
  margin-left: 8px;
  vertical-align: 1px;
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(251, 249, 245, .35);
  border-radius: 0;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  padding: 10px 2px 12px;
  transition: border-color .3s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(251, 249, 245, .28); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--red);
}
.contact-form select { cursor: pointer; }
.contact-form select option { color: var(--text); background: var(--paper); }
.contact-form textarea { resize: vertical; }
.form-error { color: #ff9a86; font-size: 13.5px; font-weight: 600; margin-bottom: 18px; }
/* 送信完了メッセージ */
.form-done {
  color: rgba(251, 249, 245, .92);
  font-size: 13.5px;
  line-height: 2;
  background: rgba(251, 249, 245, .08);
  border-left: 3px solid var(--red);
  padding: 18px 22px;
  margin-bottom: 18px;
}
.form-done strong { color: #fff; }
/* 迷惑送信対策の入力欄（画面にも読み上げにも出さない） */
.form-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.btn-submit.is-sending { opacity: .6; pointer-events: none; }
.btn-submit { width: 100%; margin-top: 10px; padding: 20px; letter-spacing: .3em; }
.form-note { font-family: var(--mono); font-size: 11px; color: rgba(251, 249, 245, .45); margin-top: 22px; text-align: center; line-height: 2.1; }
.form-note a { color: rgba(251, 249, 245, .8); border-bottom: 1px solid currentColor; }

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: rgba(251, 249, 245, .65); border-top: 1px solid var(--line-dark); padding: 60px 0 36px; }
.footer-inner { display: flex; flex-direction: column; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-name { font-weight: 700; color: var(--paper); font-size: 16px; letter-spacing: .06em; }
.footer-sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: rgba(251, 249, 245, .45); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-nav a { font-size: 12.5px; transition: color .25s ease; }
.footer-nav a:hover { color: var(--red); }
.footer-copy { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: rgba(251, 249, 245, .35); border-top: 1px solid var(--line-dark); padding-top: 24px; }

/* ---------- 追従CTA（モバイル） ---------- */
.floating-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(22, 24, 29, .94);
  backdrop-filter: blur(8px);
  display: none;
  transform: translateY(110%);
  transition: transform .4s var(--ease);
}
.floating-cta.is-shown { transform: translateY(0); }
.floating-cta .btn { width: 100%; padding: 15px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1000px) {
  .problem-inner { grid-template-columns: 1fr; gap: 44px; }
  .problem-head { position: static; }
  .about-grid { grid-template-columns: 1fr; margin-top: 64px; border-top: 1px solid var(--line); }
  .about-col, .about-col:first-child { border-left: none; padding: 28px 4px 22px; border-bottom: 1px solid var(--line); }
  .plan-grid { grid-template-columns: 1fr; border-top: none; }
  .plan, .plan:first-child { border-left: none; border-top: 1px solid var(--line); padding: 30px 4px 28px; }
  .plan-featured { border-top: 3px solid var(--red); margin-top: 0; padding-left: 18px; padding-right: 18px; }
  .dev-grid { grid-template-columns: 1fr; border-top: none; }
  .dev-col, .dev-col:first-child { border-left: none; border-top: 1px solid var(--line); padding: 26px 4px 4px; }
  .reason-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-list { grid-template-columns: 1fr; border-top: none; }
  .flow-step, .flow-step:first-child { border-left: none; border-top: 1px solid var(--line-dark); padding: 26px 4px 20px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .step { grid-template-columns: 80px 1fr; }
  .step-price { grid-column: 2; text-align: left; padding-top: 6px; }
  .index-row { grid-template-columns: 54px 1fr 30px; }
  .index-copy { display: none; }
}

@media (max-width: 720px) {
  .pc-only { display: none; }
  .sp-only { display: inline; }
  .section { padding: 76px 0; }

  /* iOS Safariではbackdrop-filterがfixed子要素の基準を変え、
     メニューパネルがヘッダー高に切り詰められるため、モバイルでは不透明背景に切替 */
  .site-header.is-scrolled {
    backdrop-filter: none;
    background: rgba(251, 249, 245, .97);
  }
  /* メニュー展開中はヘッダーを暗幕に溶け込ませ、ブランド表記を白抜きに */
  body.nav-open .site-header {
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
  }
  body.nav-open .brand-name { color: var(--paper); }
  body.nav-open .brand-sub { color: rgba(251, 249, 245, .55); }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 46px; height: 46px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 110;
    padding: 10px;
  }
  .nav-toggle span { height: 1.5px; width: 100%; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }
  .nav-toggle.is-open span { background: var(--paper); }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

  .global-nav {
    position: fixed;
    inset: 0;
    background: rgba(22, 24, 29, .97);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
  }
  .global-nav.is-open { opacity: 1; visibility: visible; }
  .global-nav ul { flex-direction: column; align-items: center; gap: 24px; }
  .global-nav ul a { color: var(--paper); font-size: 16px; }
  .global-nav .btn-nav { border-color: var(--red); }

  .hero { min-height: auto; padding-bottom: 64px; }
  .hero-vertical { display: none; }
  .hero-foot { display: none; }
  .hero-kicker { font-size: 10.5px; letter-spacing: .22em; margin-bottom: 26px; }
  .hero-title {
    font-size: min(8.7vw, 34px);
    line-height: 1.46;
    margin-bottom: 28px;
  }
  .hero-lead { margin-bottom: 36px; }
  .hero-actions .btn { width: 100%; }
  .hero-watermark { font-size: 130px; top: 2%; }
  .hero-ring { right: -30%; bottom: -10%; }
  .mission { padding: 72px 0; }
  .mission-text { font-size: 19px; line-height: 2.1; }
  .section-title { font-size: clamp(25px, 7vw, 30px); }
  .stat { padding: 26px 18px 22px; }
  .btn { padding: 16px 30px; }

  .pillar-head { grid-template-columns: 1fr; gap: 6px; }
  .reason-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 10px; padding: 28px 4px; }
  .step-no { padding-top: 0; }
  .step-price { grid-column: 1; }
  .faq-item summary { grid-template-columns: 40px 1fr 18px; padding: 22px 2px; font-size: 14.5px; }
  .faq-body { padding-left: 52px; }
  .company-table > div { grid-template-columns: 1fr; }
  .company-table dt { padding: 16px 4px 0; }
  .company-table dd { padding: 2px 4px 16px; }
  .form-row-2col { grid-template-columns: 1fr; gap: 34px; }
  .floating-cta { display: block; }
  .site-footer { padding-bottom: 104px; }
  .plan-detail-head { padding: 48px 0 40px; }
  .detail-flow li { padding-left: 48px; }
  .news-inner { grid-template-columns: 1fr; gap: 14px; padding: 26px 0 30px; }
  .news-item > a,
  .news-item > div { flex-wrap: wrap; row-gap: 2px; }
  .news-item-title { width: 100%; }
}

/* ---------- アクセシビリティ：動きを減らす ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-title .line i, .hero-kicker, .hero-lead, .hero-actions, .hero-foot,
  .hero-watermark, .hero-ring, .hero-cross, .hero-vertical {
    animation: none;
    transform: none;
    opacity: 1;
  }
  /* 背景写真は薄さ（opacity）が可読性の担保なので、アニメーションだけ止める */
  .hero-photo { animation: none; }
  .flow-step::before { transition: none; width: 100%; }
  .section-eyebrow::before { transform: none; transition: none; }
  .dev-feature::before { transform: none; transition: none; }
  .dev-feature::after, .mission::before { animation: none; }
  .pillar-head.is-visible::after { animation: none; }
  .scroll-progress { display: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- 印刷（営業資料・商談用） ---------- */
@media print {
  .site-header, .floating-cta, .hero-foot, .nav-toggle, .btn-submit, .hero-watermark, .scroll-progress { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-title .line i { transform: none; animation: none; }
  .hero-kicker, .hero-lead, .hero-actions, .hero-ring, .hero-cross, .hero-vertical { opacity: 1; animation: none; }
  .hero { min-height: auto; padding: 40px 0; }
  .section { padding: 36px 0; page-break-inside: avoid; }
  .mission, .flow, .contact, .stats { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { font-size: 12.5px; }
}
