/* 株式会社ルーティンワークス 会社サイト
 * 設計メモは ../DESIGN_NOTES.md。
 * 2026-10-23: ダークテーマ。炭色の黒地 + シアン (青緑) のアクセント + 差し色に琥珀。角のないボタン + 格子の背景。
 * 変数名の lime / pink は歴史的な名前で、いまはシアン / 琥珀を指す。
 * 書体は 2026-10-23 に Web フォントをやめ、端末標準のゴシック (ヒラギノ / 游ゴシック / Helvetica Neue) に統一。
 * メルカリ・サイバーエージェント・U-NEXT と同じ考え方で、等幅や字間を広げた英ラベルは使わない。
 */
:root {
  --bg: #0b0c10;
  --bg-2: #101217;
  --surface: #15181f;
  --surface-2: #1b1f28;
  --ink: #f2f4f7;
  --ink-2: #c3c9d4;
  --muted: #8a93a3;
  --line: rgba(255, 255, 255, 0.13);
  --line-soft: rgba(255, 255, 255, 0.07);
  --lime: #2ee6d6;
  --lime-2: #6cf2e6;
  --lime-dim: rgba(46, 230, 214, 0.14);
  --pink: #f5a524;
  --pink-dim: rgba(245, 165, 36, 0.16);
  --sky: #7c6cff;

  --font-jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", YuGothic, Meiryo, "Helvetica Neue", Arial, sans-serif;
  --font-head: var(--font-jp);
  --font-en: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-mono: var(--font-en); /* 等幅はやめた。番号・英ラベルも同じサンセリフで */

  --wrap: 1140px;
  --gutter: 24px;
  --sec-y: 112px;
  --r: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
  position: relative;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; letter-spacing: 0; line-height: 1.4; }
.mono, .sec-en, .svc-no, .work-tag, .step-no, .strength-idx, .card-no, .ui-label, .nav-en, .contact-mail-label, .copy, .tl-item dt, .brand-text strong, .hero-status { font-family: var(--font-mono); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: 8px; top: -48px; z-index: 100;
  background: var(--lime); color: #06110f; padding: 8px 14px; border-radius: var(--r); text-decoration: none;
}
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.sp-br { display: none; }
main { position: relative; z-index: 1; }

/* ---------- 全面の背景 (格子 + 光) ---------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg-grid {
  position: absolute; inset: -48px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridmove 30s linear infinite;
}
@keyframes gridmove { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(48px, 48px, 0); } }
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.9; will-change: transform;
  animation: drift 26s ease-in-out infinite alternate;
}
.blob-1 { width: 54vw; height: 54vw; max-width: 760px; max-height: 760px; right: -16%; top: -26%;
  background: radial-gradient(closest-side, rgba(46, 230, 214, 0.2), rgba(46, 230, 214, 0)); }
.blob-2 { width: 44vw; height: 44vw; max-width: 620px; max-height: 620px; left: -18%; top: 30%;
  background: radial-gradient(closest-side, rgba(124, 108, 255, 0.22), rgba(124, 108, 255, 0));
  animation-duration: 32s; animation-delay: -10s; }
.blob-3 { width: 40vw; height: 40vw; max-width: 560px; max-height: 560px; left: 45%; bottom: -30%;
  background: radial-gradient(closest-side, rgba(245, 165, 36, 0.14), rgba(245, 165, 36, 0));
  animation-duration: 38s; animation-delay: -20s; }
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-8vw, 6vh, 0) scale(1.15); }
  100% { transform: translate3d(6vw, -5vh, 0) scale(0.95); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-weight: 700; font-size: 0.9rem; line-height: 1; letter-spacing: 0.02em;
  padding: 13px 20px; border-radius: var(--r); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; font-family: var(--font-jp);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn .arw { font-weight: 700; transition: transform 0.25s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--lime); color: #06110f; }
.btn-solid:hover { background: var(--lime-2); box-shadow: 0 0 0 4px var(--lime-dim); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--lime); color: var(--lime); }
.btn-lg { padding: 17px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 12, 16, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-head.is-scrolled { border-bottom-color: var(--line-soft); }
.head-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { color: var(--lime); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1rem; letter-spacing: 0.02em; font-weight: 700; }
.brand-text span { font-size: 0.7rem; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 28px; }
.nav a { font-size: 0.88rem; font-weight: 500; text-decoration: none; color: var(--ink-2); position: relative; padding: 6px 0; display: inline-flex; flex-direction: column; line-height: 1.2; }
.nav-en { font-size: 0.64rem; letter-spacing: 0.04em; color: var(--lime); margin-bottom: 2px; opacity: 0.85; font-weight: 700; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.nav .nav-contact { display: none; }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: var(--r);
}
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--lime); transition: transform 0.3s var(--ease), opacity 0.3s; }
.menu-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: clamp(72px, 10vw, 128px) 0 clamp(64px, 8vw, 96px); position: relative; }
.hero-status {
  display: inline-flex; align-items: center; gap: 10px; font-size: 0.78rem; letter-spacing: 0.02em;
  color: var(--ink-2); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; background: rgba(11, 12, 16, 0.5); font-weight: 500;
}
.hero-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px var(--lime-dim); animation: blink 2.2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero h1 {
  margin-top: 30px;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem); line-height: 1.38; letter-spacing: -0.01em; font-weight: 700;
}
/* 参考サイトの「見出しの背後に蛍光色のブロック」を取り入れた */
.hero h1 .hl { display: inline; color: var(--ink); }
.hero h1 .hl:last-child {
  background: linear-gradient(92deg, var(--lime) 0%, #7cf0ff 45%, var(--sky) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin-top: 30px; font-size: clamp(1rem, 1.6vw, 1.12rem); color: var(--ink-2); max-width: 40em; }
.hero-actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.tags { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li, .svc-sub {
  font-size: 0.78rem; font-weight: 700; color: var(--lime);
  padding: 5px 12px; border: 1px solid rgba(46, 230, 214, 0.4); border-radius: 999px; background: rgba(46, 230, 214, 0.06);
}

/* ---------- sections ---------- */
.sec { padding: var(--sec-y) 0; position: relative; }
.sec-band { background: rgba(16, 18, 23, 0.75); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
/* 参考サイトの斜めの区切りを取り入れた */
.sec-slant {
  background: var(--surface);
  clip-path: polygon(0 0, 100% 3.5vw, 100% 100%, 0 calc(100% - 3.5vw));
  padding: calc(var(--sec-y) + 3.5vw) 0;
}
.sec-head { max-width: 46em; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-en { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; color: var(--lime); }
.sec-head h2, .contact-copy h2 { margin-top: 14px; font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -0.01em; font-weight: 700; }
.sec-head h3 { margin-top: 12px; font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 700; }
.sec-lead { margin-top: 16px; color: var(--muted); font-size: 0.96rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 32px 28px; position: relative;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover, .work:hover { transform: translateY(-3px); border-color: rgba(46, 230, 214, 0.5); box-shadow: 0 20px 50px -30px rgba(46, 230, 214, 0.35); }
.card-no { font-size: 0.78rem; color: var(--lime); letter-spacing: 0.04em; font-weight: 700; }
.card h3 { font-size: 1.05rem; margin-top: 12px; }
.card p { margin-top: 10px; font-size: 0.9rem; color: var(--muted); }

/* ---------- service ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.svc {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 44px 40px; position: relative; overflow: hidden;
}
.svc::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(46, 230, 214, 0.12), transparent); pointer-events: none;
}
.svc-no { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; color: var(--lime); }
.svc h3 { margin-top: 12px; font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 700; }
.svc-sub { display: inline-block; margin-top: 12px; }
.svc-body { margin-top: 20px; color: var(--ink-2); font-size: 0.95rem; }
.check { margin-top: 24px; display: grid; gap: 10px; }
.check li { position: relative; padding-left: 26px; font-size: 0.9rem; color: var(--ink-2); }
.check li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 12px; height: 2px; background: var(--lime); }
.check li::after { content: ""; position: absolute; left: 5px; top: 0.45em; width: 2px; height: 12px; background: var(--lime); }

.flow { margin-top: 0; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps li { padding: 32px 26px 32px 0; position: relative; }
.steps li + li { padding-left: 26px; border-left: 1px solid var(--line-soft); }
.step-no { font-size: 1.6rem; font-weight: 700; color: var(--lime); letter-spacing: 0; line-height: 1; }
.steps h4 { margin-top: 16px; font-size: 1rem; }
.steps p { margin-top: 8px; font-size: 0.86rem; color: var(--muted); line-height: 1.75; }

/* ---------- strength ---------- */
.strengths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.strength {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 36px 34px;
}
.strength-idx { font-size: 2.4rem; font-weight: 700; color: var(--lime); letter-spacing: 0; line-height: 1; }
.strength h3 { font-size: 1.2rem; }
.strength p { margin-top: 12px; color: var(--muted); font-size: 0.92rem; }

/* ---------- works & profile ---------- */
.works-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.work {
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 26px 24px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.work-tag { font-size: 0.74rem; letter-spacing: 0.02em; color: var(--lime); font-weight: 700; }
.work h3 { margin-top: 12px; font-size: 0.98rem; line-height: 1.5; }
.work p { margin-top: 10px; font-size: 0.84rem; color: var(--muted); line-height: 1.75; }

.profile { margin-top: 80px; padding-top: 56px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr); gap: 40px; }
.profile-name { margin-top: 14px; font-size: 1.9rem; font-weight: 700; }
.profile-name span { display: block; font-family: var(--font-en); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; color: var(--muted); margin-top: 8px; }
.profile-role { margin-top: 10px; font-size: 0.84rem; color: var(--ink-2); }
.profile-intro { font-size: 1rem; color: var(--ink); }
.timeline { margin-top: 28px; }
.tl-item { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.tl-item dt { font-weight: 700; font-size: 0.86rem; color: var(--lime); letter-spacing: 0; padding-top: 2px; }
.tl-item dd { font-size: 0.9rem; color: var(--ink-2); }
.profile-note { margin-top: 20px; font-size: 0.8rem; color: var(--muted); }

/* ---------- company ---------- */
.company-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr); gap: 48px; align-items: start; }
.company { border-top: 1px solid var(--line); }
.company > div { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.company dt { color: var(--muted); font-weight: 500; font-size: 0.92rem; }
.company dd { font-size: 0.96rem; color: var(--ink); }
.company .en { font-family: var(--font-en); font-size: 0.82rem; color: var(--muted); letter-spacing: 0.02em; }
.dd-note { display: block; font-size: 0.8rem; color: var(--muted); }
.plain { display: grid; gap: 4px; }
.plain li { position: relative; padding-left: 16px; font-size: 0.92rem; }
.plain li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 6px; height: 2px; background: var(--lime); }

/* ---------- contact ---------- */
.sec-contact { background: rgba(16, 18, 23, 0.75); border-top: 1px solid var(--line-soft); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.contact-text { margin-top: 18px; color: var(--ink-2); font-size: 0.96rem; }
.contact-mail-label { margin-top: 32px; font-size: 0.76rem; color: var(--lime); letter-spacing: 0.04em; font-weight: 700; }
.contact-mail { display: inline-block; font-family: var(--font-en); font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--lime); line-height: 1.4; margin-top: 6px; transition: color 0.2s; }
.contact-mail:hover { color: var(--lime); }
.contact-note { margin-top: 22px; font-size: 0.8rem; color: var(--muted); }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 36px 32px; display: grid; gap: 18px; position: relative; }
.contact-form::before {
  content: ""; position: absolute; left: -1px; top: -1px; width: 18px; height: 18px;
  border-top: 2px solid var(--lime); border-left: 2px solid var(--lime);
}
.field { display: grid; gap: 6px; }
.field label { font-size: 0.86rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.req { font-size: 0.66rem; font-weight: 700; color: var(--pink); border: 1px solid var(--pink); padding: 1px 6px; letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.95rem; color: var(--ink); width: 100%;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s; color-scheme: dark;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-dim); }
.form-error { font-size: 0.84rem; color: var(--pink); font-weight: 700; }
.form-note { font-size: 0.76rem; color: var(--muted); text-align: center; }


/* ---------- hero: 特長の行 ---------- */
.trust { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line-soft); }
.trust li { display: flex; flex-direction: column; padding: 16px 28px 0 0; margin-right: 28px; border-right: 1px solid var(--line-soft); }
.trust li:last-child { border-right: 0; margin-right: 0; }
.trust strong { font-size: 1rem; color: var(--ink); }
.trust span { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

/* ---------- use cases ---------- */
.uc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.uc {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 28px 26px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.uc:hover { transform: translateY(-3px); border-color: rgba(46, 230, 214, 0.5); box-shadow: 0 20px 50px -30px rgba(46, 230, 214, 0.35); }
.uc h3 { font-size: 1.08rem; }
.uc-ai, .uc-human { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; margin-top: 14px; font-size: 0.88rem; color: var(--ink-2); line-height: 1.7; }
.uc-human { margin-top: 8px; color: var(--muted); }
.uc-ai span, .uc-human span {
  display: inline-grid; place-items: center; height: 24px; font-size: 0.7rem; font-weight: 700; border-radius: 3px; margin-top: 2px;
}
.uc-ai span { background: var(--lime); color: #06110f; }
.uc-human span { border: 1px solid var(--line); color: var(--ink-2); }

/* ---------- why us ---------- */
.reasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.reason { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 30px 26px; position: relative; overflow: hidden; }
.reason::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(46, 230, 214, 0.12), transparent); pointer-events: none;
}
.reason-idx { font-family: var(--font-en); font-size: 1.6rem; font-weight: 700; color: var(--lime); line-height: 1; }
.reason h3 { margin-top: 14px; font-size: 1.12rem; }
.reason p { margin-top: 10px; font-size: 0.88rem; color: var(--muted); }

/* ---------- faq ---------- */
.faq-wrap { max-width: 860px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 44px 20px 0; font-weight: 700; font-size: 1rem; position: relative; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%;
  color: var(--lime); font-weight: 700; transition: transform 0.25s var(--ease), background-color 0.25s;
}
.faq details[open] summary::after { content: "−"; background: var(--lime-dim); }
.faq details p { padding: 0 0 22px; font-size: 0.92rem; color: var(--ink-2); max-width: 46em; }


/* ---------- 線画アイコンと説明図 ---------- */
.ico { width: 40px; height: 40px; color: var(--ink); display: block; }
.ico-wrap { width: 56px; height: 56px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-soft); display: grid; place-items: center; margin-bottom: 16px; }
.uc .ico-wrap { margin-bottom: 16px; }
.reason-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.reason-top .ico-wrap { margin-bottom: 0; }
.step-top { display: flex; align-items: center; gap: 12px; }
.step-top .ico { width: 34px; height: 34px; color: var(--ink-2); }
.diagram { margin: 56px auto 0; max-width: 1000px; }
.diagram svg { width: 100%; height: auto; display: block; font-family: var(--font-jp); }
.diagram figcaption { margin-top: 14px; text-align: center; font-size: 0.88rem; color: var(--muted); }
.diagram-mobile { display: none; }
@media (max-width: 860px) {
  .diagram { margin-top: 36px; }
  .diagram svg { display: none; }
  .diagram-mobile { display: grid; gap: 0; }
  .diagram-mobile li { position: relative; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255,255,255,0.03); }
  .diagram-mobile li + li { margin-top: 28px; }
  .diagram-mobile li + li::before { content: "↓"; position: absolute; top: -26px; left: 50%; transform: translateX(-50%); color: var(--lime); font-weight: 700; }
  .diagram-mobile .dm-ai { border-color: var(--lime); background: rgba(46, 230, 214, 0.08); }
  .dm-label { display: block; font-size: 0.74rem; font-weight: 700; color: var(--muted); }
  .dm-ai .dm-label { color: var(--lime); }
  .diagram-mobile strong { display: block; margin-top: 4px; font-size: 0.98rem; }
  .diagram-mobile small { display: block; margin-top: 4px; font-size: 0.8rem; color: var(--muted); }
}

/* ---------- hero art (生成画像) ---------- */
.hero-art { position: relative; margin-top: clamp(40px, 5vw, 64px); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 120px -40px rgba(46, 230, 214, 0.35), 0 0 0 1px rgba(46,230,214,0.08); }
.hero-art img { display: block; width: 100%; height: auto; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,12,16,0) 55%, rgba(11,12,16,0.85) 100%); pointer-events: none; }
.hero-art-notes { position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art-notes li { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; color: var(--ink-2); background: rgba(11,12,16,0.72); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px 8px 8px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-art-notes li span { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.hero-art-notes li.on { color: var(--ink); border-color: rgba(46,230,214,0.5); }
.hero-art-notes li.on span { background: var(--lime); color: #06110f; border-color: var(--lime); }
@media (max-width: 860px) {
  .hero-art { border-radius: 12px; }
  .hero-art-notes { position: static; margin-top: 0; padding: 12px; flex-direction: column; gap: 8px; background: var(--surface); }
  .hero-art::after { display: none; }
  .hero-art-notes li { font-size: 0.8rem; }
}

/* ---------- service art (生成画像) ---------- */
.svc { padding-top: 0; }
.svc-art { display: block; margin: 0 -40px 28px; border-bottom: 1px solid var(--line-soft); position: relative; }
.svc-art img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.svc-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,24,31,0) 60%, rgba(21,24,31,0.9) 100%); pointer-events: none; }
@media (max-width: 860px) { .svc-art { margin: 0 -24px 22px; } }

/* ---------- use-case art (生成画像) ---------- */
.uc { padding-top: 0; overflow: hidden; }
.uc-art { display: block; margin: 0 -26px 20px; position: relative; }
.uc-art img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.uc-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,24,31,0) 65%, rgba(21,24,31,0.9) 100%); pointer-events: none; }
.pc-br { display: inline; }
.nw { white-space: nowrap; }
@media (max-width: 860px) { .uc-art { margin: 0 -24px 18px; } .pc-br { display: none; } }

/* ---------- 左右交互の配置 (2026-10-26) ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.hero-side .hero-art { margin-top: 0; }
.hero-side .hero-art::after { display: none; }
.hero-side .hero-art-notes { position: static; margin-top: 14px; flex-direction: column; gap: 8px; }
.hero-side .hero-art-notes li { font-size: 0.84rem; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
.svc-rows { display: grid; gap: 40px; }
.svc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; }
.svc-row.rev .svc-media { order: 2; }
.svc-media { display: block; align-self: stretch; }
.svc-media img { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.svc-text { padding: 40px 44px 40px 0; }
.svc-row.rev .svc-text { padding: 40px 0 40px 44px; }
.svc-text h3 { margin-top: 12px; font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 700; }
.step-rows { display: grid; gap: 28px; }
.step-row { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: center; border: 1px solid var(--line-soft); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.step-row.rev { grid-template-columns: minmax(0, 1fr) 280px; }
.step-row.rev .step-media { order: 2; }
.step-media { display: block; align-self: stretch; }
.step-media img { display: block; width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.step-text { padding: 28px 36px 28px 0; }
.step-row.rev .step-text { padding: 28px 0 28px 36px; }
.step-text h4 { margin-top: 10px; font-size: 1.2rem; }
.step-text p { margin-top: 8px; font-size: 0.92rem; color: var(--muted); }
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-side { max-width: 640px; }
}
@media (max-width: 860px) {
  .svc-row, .svc-row.rev, .step-row, .step-row.rev { grid-template-columns: 1fr; gap: 0; }
  .svc-row.rev .svc-media, .step-row.rev .step-media { order: 0; }
  .svc-media img { min-height: 0; aspect-ratio: 16 / 9; }
  .step-media img { min-height: 0; aspect-ratio: 16 / 9; }
  .svc-text, .svc-row.rev .svc-text { padding: 24px 22px 28px; }
  .step-text, .step-row.rev .step-text { padding: 20px 22px 24px; }
}
/* ---------- footer ---------- */
.site-foot { position: relative; z-index: 1; background: #07080b; color: var(--muted); padding: 48px 0; font-size: 0.82rem; border-top: 1px solid var(--line-soft); }
.foot-inner { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: center; }
.foot-brand { display: flex; flex-direction: column; color: var(--ink); }
.foot-logo { width: 220px; height: auto; margin-bottom: 10px; }
.foot-brand strong { letter-spacing: 0.02em; font-weight: 700; }
.foot-brand span { color: var(--muted); font-size: 0.76rem; margin-top: 4px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-nav a { color: var(--muted); text-decoration: none; }
.foot-nav a:hover { color: var(--lime); }
.copy { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 0.76rem; letter-spacing: 0.02em; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob, .bg-grid, .hero-status .dot { animation: none; }
  .card, .work, .btn, .btn .arw { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .uc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li { padding: 26px 20px 26px 0; }
  .steps li + li { padding-left: 20px; }
  .steps li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .steps li:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile, .company-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 860px) {
  :root { --sec-y: 72px; --gutter: 20px; }
  .head-inner { height: 64px; gap: 12px; }
  .head-cta { display: none; }
  .menu-btn { display: flex; }
  .nav {
    position: fixed; inset: 0; top: 0; z-index: 30;
    background: var(--bg); flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 96px var(--gutter) 40px; gap: 10px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav a { font-size: 1.5rem; font-weight: 700; padding: 8px 0; color: var(--ink); }
  .nav-en { font-size: 0.68rem; }
  .nav a::after { display: none; }
  .nav .nav-contact { display: inline-flex; flex-direction: row; gap: 10px; align-items: center; margin-top: 20px; font-size: 1rem; background: var(--lime); color: #06110f; padding: 14px 22px; border-radius: var(--r); }
  /* backdrop-filter はヘッダーを fixed の基準にしてしまうので、メニューを開いている間は外す */
  .menu-open .site-head { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .grid-3, .svc-grid, .strengths, .uc-grid, .reasons { grid-template-columns: 1fr; }
  .trust { flex-direction: column; gap: 0; }
  .trust li { flex-direction: row; align-items: baseline; gap: 10px; padding: 10px 0; margin: 0; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .trust li:last-child { border-bottom: 0; }
  .svc { padding: 32px 24px; }
  .sp-br { display: inline; }
  .strength { grid-template-columns: 1fr; gap: 10px; padding: 28px 24px; }
  .sec-slant { clip-path: polygon(0 0, 100% 24px, 100% 100%, 0 calc(100% - 24px)); padding: calc(var(--sec-y) + 24px) 0; }
  .works-grid { grid-template-columns: 1fr; }
  .company > div { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .company dt { font-size: 0.8rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-form { padding: 28px 20px; }
  .foot-inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 22px 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line-soft); }
  .tl-item { grid-template-columns: 1fr; gap: 2px; }
  .hero-actions .btn { width: 100%; }
  .hero h1 { font-size: clamp(1.35rem, 5.6vw, 2rem); }
  .brand-text span { display: none; }
}
