/* ============================================================
   ヒダカラ 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; }
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; }

/* ---------- スクロール出現 ---------- */
.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 {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.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; }
.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; } }
@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; }

/* ---------- お問い合わせ ---------- */
.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; }
.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; }
}

/* ---------- アクセシビリティ：動きを減らす ---------- */
@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;
  }
  .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; }
}
