/* バトンリー株式会社（デモ） */
:root {
  --bg: #f4f3ee;
  --paper: #ffffff;
  --ink: #111418;
  --sub: #5d636c;
  --line: #dddbd3;
  --accent: #ff5a1f;
  --accent-deep: #e8470e;
  --accent-soft: #ffe7dc;
  --dark: #0f1215;
  --dark-2: #1a1e23;
  --en: 'Manrope', 'Zen Kaku Gothic New', sans-serif;
  --ja: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--ja); font-size: 16px; line-height: 1.9; letter-spacing: .03em; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
.wrap { width: min(1200px, 100% - 64px); margin-inline: auto; }
.sp { display: none; }

.demo-bar { background: #000; color: #b9bec6; font-size: 12px; line-height: 1.6; padding: 8px 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; position: relative; z-index: 60; }
.demo-bar a { color: var(--accent); }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 16px 30px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; letter-spacing: .06em; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); border: 1.5px solid transparent; }
.btn--sm { padding: 10px 20px; font-size: 13px; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); }
.btn--line { border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--accent); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #fff; color: var(--ink); }
.btn--ink-line { border-color: var(--ink); color: var(--ink); }
.btn--ink-line:hover { background: var(--ink); color: #fff; }
.btn__arrow { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.22); position: relative; flex: none; overflow: hidden; }
.btn--white .btn__arrow { background: var(--accent-soft); }
.btn__arrow::before, .btn__arrow::after { content: "→"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; line-height: 1; transition: transform .45s var(--ease); }
.btn__arrow::after { transform: translateX(-120%); }
.btn:hover .btn__arrow::before { transform: translateX(120%); }
.btn:hover .btn__arrow::after { transform: translateX(0); }

.link-arrow { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; text-decoration: none; padding-bottom: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; transition: background-size .45s var(--ease); }
.link-arrow::after { content: "→"; color: var(--accent); transition: transform .4s var(--ease); }
.link-arrow:hover { background-size: 0 1.5px; background-position: 100% 100%; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ロゴ：2本のバトンが重なる印 */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 30px; height: 30px; position: relative; flex: none; }
.logo__mark i { position: absolute; width: 22px; height: 9px; border-radius: 5px; top: 50%; }
.logo__mark i:first-child { left: 0; background: var(--ink); transform: translateY(-80%) rotate(-28deg); }
.logo__mark i:last-child { right: 0; background: var(--accent); transform: translateY(-20%) rotate(-28deg); }
.logo__text { font-family: var(--en); font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.logo--light .logo__mark i:first-child { background: #fff; }
.logo--light { color: #fff; }

/* ヘッダー：デモ帯の下に置き、スクロールしたら上に貼りつく */
.header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 14px 32px; background: rgba(244, 243, 238, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.header.is-scrolled { border-bottom-color: var(--line); }
.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: 26px; }
.gnav a { font-family: var(--en); font-weight: 700; font-size: 14px; text-decoration: none; position: relative; padding: 4px 0; }
.gnav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.gnav a:hover::after, .gnav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.menu-btn { display: none; }
.drawer[hidden] { display: none; }

/* ラベル・見出し */
.label { font-family: var(--en); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 10px; }
.label::before { content: ""; width: 18px; height: 6px; border-radius: 3px; background: currentColor; transform: rotate(-28deg); }
.label--light { color: #fff; }
.sec-head { margin-bottom: 56px; }
.sec-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.sec-title { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.4; font-weight: 700; margin-top: 14px; letter-spacing: .02em; }
.sec-head--light .sec-title { color: #fff; }

/* ファーストビュー */
.hero { position: relative; padding: 64px 0 0; overflow: hidden; }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%); opacity: .7; pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 620px; height: 620px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 90, 31, .22), rgba(255, 90, 31, 0) 65%); pointer-events: none; }
.hero__inner { position: relative; z-index: 1; width: min(1280px, 100% - 64px); margin-inline: auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; min-height: min(640px, calc(100vh - 220px)); }
.hero__eyebrow { font-family: var(--en); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.6); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255,90,31,.5); }
.motion .dot { animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,90,31,.5); } 80%, 100% { box-shadow: 0 0 0 10px rgba(255,90,31,0); } }
.hero__title { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.28; font-weight: 900; letter-spacing: .01em; margin: 28px 0 28px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; }
.motion .hero__title .line > span { transform: translateY(110%); animation: up 1s var(--ease) forwards; }
.motion .hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.motion .hero__title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes up { to { transform: none; } }
.hero__title em { font-style: normal; color: var(--accent); position: relative; }
.hero__lead { color: var(--sub); font-size: 16px; line-height: 2; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.motion .hero__lead, .motion .hero__actions, .motion .hero__eyebrow { opacity: 0; animation: fade .9s var(--ease) .5s forwards; }
.motion .hero__eyebrow { animation-delay: 0s; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* コンソール */
.console { position: relative; background: var(--dark); color: #e9ebee; border-radius: 22px; padding: 18px; box-shadow: 0 40px 80px -30px rgba(17, 20, 24, .45), 0 0 0 1px rgba(255,255,255,.04) inset; font-size: 14px; }
.motion .console { opacity: 0; animation: fade 1s var(--ease) .35s forwards; }
.console__bar { display: flex; align-items: center; gap: 12px; padding: 0 4px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.console__dots { display: flex; gap: 6px; }
.console__dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3f46; }
.console__name { font-family: var(--en); font-weight: 700; font-size: 13px; color: #9aa1aa; }
.console__live { margin-left: auto; font-family: var(--en); font-weight: 800; font-size: 11px; letter-spacing: .12em; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.console__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.motion .console__live i { animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.console__task { padding: 16px 6px; }
.console__label { font-size: 11px; font-weight: 700; color: #8b929b; letter-spacing: .12em; }
.console__prompt { margin-top: 6px; font-size: 15px; line-height: 1.75; min-height: 3.5em; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--accent); vertical-align: -.18em; margin-left: 2px; }
.motion .caret { animation: blink .9s steps(1) infinite; }
.relay { display: grid; gap: 8px; position: relative; }
.relay__row { position: relative; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; background: var(--dark-2); border-radius: 14px; border: 1px solid rgba(255,255,255,.05); overflow: hidden; transition: border-color .4s, background .4s; }
.relay__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #272c33; font-weight: 700; color: #aab0b8; transition: background .4s, color .4s; }
.relay__body b { display: block; font-size: 14px; font-weight: 700; line-height: 1.5; }
.relay__msg { display: block; color: #8b929b; font-size: 12px; line-height: 1.5; }
.relay__state { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #272c33; color: #8b929b; white-space: nowrap; transition: background .3s, color .3s; }
.relay__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; }
.relay__bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.relay__row.is-active { border-color: rgba(255, 90, 31, .55); background: #22201f; }
.relay__row.is-active .relay__icon { background: var(--accent); color: #fff; }
.relay__row.is-active .relay__state { background: var(--accent); color: #fff; }
.relay__row.is-active .relay__bar i { transform: scaleX(1); transition: transform var(--dur, 1.6s) linear; }
.relay__row.is-done .relay__icon { background: #2c3a2f; color: #8fe3a5; }
.relay__row.is-done .relay__state { background: #2c3a2f; color: #8fe3a5; }
.relay__row--human.is-active .relay__icon, .relay__row--human.is-done .relay__icon { background: #fff; color: var(--ink); }
/* アイコンをつなぐ線：仕事が引き継がれるたびにオレンジが伸びる */
.relay::before, .relay::after { content: ""; position: absolute; left: var(--lx, 34px); top: var(--lt, 0); width: 2px; margin-left: -1px; border-radius: 1px; z-index: 1; pointer-events: none; }
.relay::before { height: var(--lh, 0); background: #30353c; }
.relay::after { height: var(--lh, 0); background: var(--accent); box-shadow: 0 0 10px rgba(255, 90, 31, .6); transform: scaleY(var(--lp, 0)); transform-origin: top; transition: transform .55s var(--ease); }
.relay.is-resetting::after { transition: none; }
.relay__icon { position: relative; z-index: 2; }
.console__foot { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; padding: 12px 6px 2px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: #8b929b; }
.console__foot > b { font-family: var(--en); font-size: 18px; color: #fff; font-variant-numeric: tabular-nums; }
.console__saved { margin-left: auto; }
.console__saved b { color: #fff; margin-left: 4px; }

.hero__stats { position: relative; z-index: 1; width: min(1280px, 100% - 64px); margin: 56px auto 0; border-top: 1px solid var(--line); }
.hero__stats dl { display: grid; grid-template-columns: repeat(3, 1fr); }
.hero__stats dl > div { padding: 26px 0 30px; display: flex; flex-direction: column; gap: 4px; }
.hero__stats dl > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.hero__stats dt { font-size: 13px; color: var(--sub); }
.hero__stats dd { font-weight: 700; font-size: 16px; }
.hero__stats dd b { font-family: var(--en); font-weight: 800; font-size: clamp(36px, 4vw, 52px); line-height: 1.1; margin-right: 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* 導入企業 */
.clients { background: var(--paper); padding: 40px 0; border-block: 1px solid var(--line); }
.clients__title { text-align: center; font-size: 13px; color: var(--sub); margin-bottom: 20px; }
.clients__marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.clients__track { display: flex; width: max-content; }
.clients__track li { padding: 0 44px; font-family: var(--en); font-weight: 800; font-size: 22px; color: #b5b2a8; white-space: nowrap; letter-spacing: .02em; }
.clients__track li:nth-child(even) { font-family: var(--ja); font-weight: 900; }
.motion .clients__track { animation: slide 40s linear infinite; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ミッション */
.mission { padding: 160px 0 150px; }
.mission__title { margin-top: 30px; font-size: clamp(26px, 3.4vw, 46px); line-height: 1.75; font-weight: 700; letter-spacing: .02em; }
.js-fill .ch { color: #c9c6bc; transition: color .2s; }
.js-fill .ch.is-on { color: var(--ink); }
.js-fill .ch.is-key.is-on { color: var(--accent); }
.mission__foot { margin-top: 56px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; max-width: 980px; margin-left: auto; padding-top: 32px; border-top: 1px solid var(--line); color: var(--sub); }

/* サービス */
.service { padding: 130px 0 140px; background: var(--paper); }
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc__item { position: relative; background: var(--bg); border-radius: 24px; padding: 30px 30px 34px; display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s; }
.svc__item:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(17,20,24,.3); }
.svc__no { font-family: var(--en); font-weight: 800; font-size: 14px; color: var(--accent); }
.svc__name { font-family: var(--en); font-weight: 800; font-size: 24px; line-height: 1.3; margin-top: 22px; }
.svc__name small { display: block; font-family: var(--ja); font-weight: 700; font-size: 14px; color: var(--sub); margin-top: 6px; }
.svc__desc { margin-top: 14px; font-size: 15px; color: var(--sub); }
.svc__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 22px; }
.svc__tags li { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
/* サービスごとの小さな図 */
.svc__visual { margin-top: 18px; height: 150px; border-radius: 16px; background: var(--dark); position: relative; overflow: hidden; }
.svc__visual--agents i { position: absolute; width: 38px; height: 38px; border-radius: 12px; background: #2a2f36; top: 50%; margin-top: -19px; }
.svc__visual--agents i:nth-child(1) { left: 12%; }
.svc__visual--agents i:nth-child(2) { left: 34%; }
.svc__visual--agents i:nth-child(3) { left: 56%; }
.svc__visual--agents i:nth-child(4) { left: 78%; background: #fff; }
.svc__visual--agents::before { content: ""; position: absolute; left: 14%; right: 14%; top: 50%; border-top: 2px dashed #3a3f46; }
.svc__visual--agents::after { content: ""; position: absolute; top: 50%; left: 14%; width: 20px; height: 8px; margin-top: -4px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 14px rgba(255,90,31,.8); transform: rotate(-28deg); }
.motion .svc__visual--agents::after { animation: run 3.2s var(--ease) infinite; }
@keyframes run { 0% { left: 14%; } 25% { left: 36%; } 50% { left: 58%; } 75%, 100% { left: 80%; } }
.motion .svc__visual--agents i { animation: lit 3.2s infinite; }
.motion .svc__visual--agents i:nth-child(2) { animation-delay: .8s; }
.motion .svc__visual--agents i:nth-child(3) { animation-delay: 1.6s; }
.motion .svc__visual--agents i:nth-child(4) { animation: none; }
@keyframes lit { 0%, 18% { background: var(--accent); } 30%, 100% { background: #2a2f36; } }
.svc__visual--desk { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.svc__visual--desk i { display: block; height: 26px; border-radius: 13px; background: #2a2f36; width: 60%; }
.svc__visual--desk i:nth-child(2) { align-self: flex-end; background: var(--accent); width: 70%; }
.svc__visual--desk i:nth-child(3) { width: 45%; }
.motion .svc__visual--desk i { opacity: 0; animation: bubble 4.5s infinite; }
.motion .svc__visual--desk i:nth-child(2) { animation-delay: .6s; }
.motion .svc__visual--desk i:nth-child(3) { animation-delay: 1.2s; }
@keyframes bubble { 0% { opacity: 0; transform: translateY(8px); } 12%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }
.svc__visual--academy { display: flex; align-items: flex-end; justify-content: center; gap: 14px; padding: 26px; }
.svc__visual--academy i { width: 34px; border-radius: 8px 8px 0 0; background: #2a2f36; height: 30%; }
.svc__visual--academy i:nth-child(2) { height: 58%; }
.svc__visual--academy i:nth-child(3) { height: 92%; background: var(--accent); }
.motion .svc__item.is-in .svc__visual--academy i { animation: grow 1.4s var(--ease) both; }
.motion .svc__item.is-in .svc__visual--academy i:nth-child(2) { animation-delay: .15s; }
.motion .svc__item.is-in .svc__visual--academy i:nth-child(3) { animation-delay: .3s; }
@keyframes grow { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }

.flow { margin-top: 90px; }
.flow__title { font-weight: 700; font-size: 20px; margin-bottom: 26px; }
.flow__list { display: grid; grid-template-columns: repeat(3, 1fr); counter-reset: f; border-top: 2px solid var(--ink); }
.flow__list li { padding: 28px 30px 0 0; position: relative; }
.flow__list li + li { padding-left: 30px; border-left: 1px solid var(--line); }
.flow__no { font-family: var(--en); font-weight: 800; font-size: 13px; color: var(--accent); display: block; }
.flow__list b { display: block; font-size: 26px; font-weight: 900; margin: 6px 0 10px; }
.flow__list p { color: var(--sub); font-size: 15px; }

/* エージェント紹介 */
.agents { background: var(--dark); color: #fff; padding: 130px 0 140px; }
.agents__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.astep { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; opacity: .3; transition: opacity .5s; }
.astep:first-child { min-height: 56vh; justify-content: flex-start; padding-top: 40px; }
.astep:last-child { min-height: 60vh; }
.astep.is-active { opacity: 1; }
.astep__dept { font-family: var(--en); font-weight: 800; font-size: 13px; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; }
.astep__name { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.45; font-weight: 700; margin-top: 10px; }
.astep__desc { margin-top: 16px; color: #aab0b8; max-width: 30em; }
.astep__effect { margin-top: 22px; display: inline-flex; align-items: baseline; gap: 10px; align-self: flex-start; padding: 10px 18px; border-radius: 12px; background: var(--dark-2); color: #aab0b8; font-size: 13px; }
.astep__effect b { color: #fff; font-size: 18px; }
.agents__stage { position: sticky; top: 15vh; height: 70vh; align-self: start; display: flex; align-items: center; }
.agents__screen { width: 100%; background: var(--dark-2); border-radius: 24px; border: 1px solid rgba(255,255,255,.07); padding: 18px; min-height: 380px; position: relative; overflow: hidden; }
.agents__screen::before { content: ""; position: absolute; width: 360px; height: 360px; right: -140px; bottom: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(255,90,31,.28), transparent 65%); }
.agents__screenbar { display: flex; gap: 6px; align-items: center; padding: 0 4px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.agents__screenbar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3f46; }
.agents__screenbar span { margin-left: auto; font-family: var(--en); font-weight: 700; font-size: 12px; color: #8b929b; }
.agents__mocks { position: relative; display: grid; }
.agents__mocks .amock { grid-area: 1 / 1; opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .6s var(--ease); }
.agents__mocks .amock.is-active { opacity: 1; transform: none; }
/* チャット風の画面 */
.amock { position: relative; padding: 20px 4px 4px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.75; }
.astep .amock { display: none; }
.amock__head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.amock__head i { font-style: normal; font-size: 11px; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #fff; }
.amock__msg { background: #262b31; padding: 12px 16px; border-radius: 4px 16px 16px 16px; max-width: 88%; color: #e3e6ea; }
.amock__msg--me { align-self: flex-end; background: #fff; color: var(--ink); border-radius: 16px 4px 16px 16px; }
.amock__msg--alert { background: rgba(255,90,31,.15); color: #ffc6b0; border: 1px solid rgba(255,90,31,.4); }
.amock__file { align-self: flex-start; padding: 10px 14px; border-radius: 10px; border: 1px dashed #4a5058; color: #cfd3d8; font-size: 13px; }
.amock__chips { display: flex; gap: 8px; }
.amock__chips span { font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 999px; border: 1px solid #4a5058; }
.amock__chips span:first-child { background: var(--accent); border-color: var(--accent); }
.amock__cal { display: grid; gap: 6px; }
.amock__cal li { background: #262b31; border-radius: 10px; padding: 8px 14px; font-size: 13px; color: #cfd3d8; display: flex; gap: 14px; }
.amock__cal b { color: #fff; font-family: var(--en); }

/* 導入事例 */
.case { padding: 140px 0; }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cases__item a { text-decoration: none; display: block; }
.cases__img { aspect-ratio: 3 / 2; border-radius: 20px; overflow: hidden; }
.cases__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cases__item a:hover .cases__img img { transform: scale(1.05); }
.cases__cat { margin-top: 18px; font-size: 12px; color: var(--sub); font-weight: 700; }
.cases__title { font-size: 18px; line-height: 1.65; font-weight: 700; margin-top: 6px; transition: color .3s; }
.cases__item a:hover .cases__title { color: var(--accent); }
.cases__co { margin-top: 10px; font-size: 13px; color: var(--sub); }
/* 画像がまだないときの仮の背景 */
.ph { background: linear-gradient(135deg, #e7e4da, #d6d2c5); position: relative; }
.ph.is-missing img { display: none; }
.ph.is-missing::after { content: "画像準備中"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: #8f8b7f; font-weight: 700; }

/* 会社情報 */
.company { padding: 140px 0; background: var(--paper); }
.message { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.message__photo { aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; }
.message__photo img { width: 100%; height: 100%; object-fit: cover; }
.message__label { font-family: var(--en); font-weight: 800; font-size: 13px; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; }
.message__lead { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.6; font-weight: 700; margin: 14px 0 28px; }
.message__body > p:not([class]) { color: var(--sub); }
.message__sign { margin-top: 30px; font-size: 13px; color: var(--sub); }
.message__sign b { display: block; font-size: 22px; color: var(--ink); margin-top: 2px; letter-spacing: .12em; }
.profile { margin-top: 100px; border-top: 2px solid var(--ink); }
.profile > div { display: grid; grid-template-columns: 200px 1fr; padding: 20px 0; border-bottom: 1px solid var(--line); }
.profile dt { font-weight: 700; }
.profile dd { color: var(--sub); }

/* お知らせ */
.news { padding: 140px 0; }
.news__inner { display: grid; grid-template-columns: 320px 1fr; gap: 48px; }
.news__list { border-top: 1px solid var(--line); }
.news__list li { border-bottom: 1px solid var(--line); }
.news__list a { display: grid; grid-template-columns: 110px 120px 1fr; gap: 20px; align-items: center; padding: 26px 8px; text-decoration: none; position: relative; transition: padding .4s var(--ease), background .4s; }
.news__list a:hover { padding-left: 20px; background: var(--paper); }
.news__list time { font-family: var(--en); font-weight: 700; font-size: 14px; color: var(--sub); }
.news__tag { justify-self: start; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); }
.news__tag--event { background: #e3e8f0; color: #344257; }
.news__list p { font-weight: 500; }

/* 採用 */
.recruit { position: relative; min-height: 640px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--dark); }
.recruit__img { position: absolute; inset: 0; background: linear-gradient(135deg, #2a2f36, #15181c); }
.recruit__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--rz, 1.12)); }
.recruit__img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,12,15,.92), rgba(10,12,15,.78) 35%, rgba(10,12,15,.15) 70%), linear-gradient(0deg, rgba(10,12,15,.6), rgba(10,12,15,0) 50%); z-index: 1; }
@media (max-width: 640px) { .recruit__img::before { background: linear-gradient(0deg, rgba(10,12,15,.92) 30%, rgba(10,12,15,.2) 85%); } .recruit__img img { object-position: 60% 50%; } }
.recruit__img.is-missing::after { color: #6a7078; }
.recruit__body { position: relative; z-index: 2; width: min(1200px, 100% - 64px); margin: 0 auto; padding: 0 0 80px; }
.recruit__title { font-family: var(--en); font-weight: 800; font-size: clamp(56px, 9vw, 140px); line-height: .95; letter-spacing: -.03em; margin: 18px 0 24px; }
.recruit__title span { display: block; }
.recruit__title span:last-child { color: var(--accent); }
.recruit__body p { margin-bottom: 30px; }

/* お問い合わせ */
.contact { background: var(--accent); color: var(--ink); padding: 0 0 130px; overflow: hidden; position: relative; }
.contact__loop { display: flex; width: max-content; padding: 26px 0; font-family: var(--en); font-weight: 800; font-size: clamp(40px, 6vw, 90px); line-height: 1; letter-spacing: -.02em; color: rgba(255,255,255,.3); white-space: nowrap; border-bottom: 1px solid rgba(17,20,24,.15); }
.contact__loop span { padding-right: .3em; }
.motion .contact__loop { animation: slide 30s linear infinite; }
.contact__inner { padding-top: 90px; text-align: center; }
.contact__title { font-size: clamp(34px, 5vw, 68px); line-height: 1.35; font-weight: 900; }
.contact__inner > p { margin-top: 24px; font-weight: 500; }
.contact__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.contact .btn--ink .btn__arrow { background: rgba(255,255,255,.18); }

/* フッター */
.footer { background: var(--dark); color: #aab0b8; padding: 80px 0 36px; font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__addr { margin-top: 20px; line-height: 1.9; }
.footer__nav { display: grid; grid-template-columns: repeat(4, auto); gap: 14px 48px; }
.footer__nav a { font-family: var(--en); font-weight: 700; color: #fff; text-decoration: none; }
.footer__nav a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }
.footer__bottom ul { display: flex; gap: 24px; }
.footer__bottom a { text-decoration: none; }

/* スクロールで現れる */
.motion [data-r] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.motion [data-r].is-in { opacity: 1; transform: none; }
.motion .svc__item[data-r]:nth-child(2), .motion .cases__item[data-r]:nth-child(2), .motion .flow__list [data-r]:nth-child(2) { transition-delay: .12s; }
.motion .svc__item[data-r]:nth-child(3), .motion .cases__item[data-r]:nth-child(3), .motion .flow__list [data-r]:nth-child(3) { transition-delay: .24s; }
.motion .svc__item[data-r].is-in:hover { transform: translateY(-6px); transition-delay: 0s; }

/* タブレット */
@media (max-width: 1080px) {
  .gnav { display: none; }
  .header__cta { margin-left: auto; }
  .menu-btn { display: grid; place-items: center; gap: 6px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer; padding: 0; align-content: center; }
  .menu-btn span { display: block; width: 18px; height: 2px; background: #fff; transition: transform .35s var(--ease); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .drawer { position: fixed; inset: 0; z-index: 45; background: var(--bg); padding: 120px 32px 40px; display: flex; flex-direction: column; gap: 32px; overflow-y: auto; }
  .drawer a:not(.btn) { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--en); font-weight: 800; font-size: 26px; }
  .drawer small { font-family: var(--ja); font-size: 13px; color: var(--sub); font-weight: 500; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; min-height: 0; }
  .svc { grid-template-columns: 1fr; max-width: 640px; }
  .cases { grid-template-columns: 1fr 1fr; }
  .news__inner { grid-template-columns: 1fr; gap: 0; }
}

/* スマホ */
@media (max-width: 900px) {
  .agents__layout { grid-template-columns: 1fr; gap: 0; }
  .agents__stage { display: none; }
  .astep, .astep:first-child, .astep:last-child { min-height: 0; opacity: 1; padding: 0 0 64px; }
  .astep .amock { display: flex; margin-top: 24px; background: var(--dark-2); border-radius: 18px; padding: 18px; border: 1px solid rgba(255,255,255,.07); }
  .message { grid-template-columns: 1fr; gap: 40px; }
  .message__photo { max-width: 420px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap, .hero__inner, .hero__stats, .recruit__body { width: calc(100% - 40px); }
  .sp { display: inline; }
  .pc { display: none; }
  .demo-bar { padding: 8px 16px; }
  .header { padding: 10px 16px; gap: 12px; }
  .header__cta { padding: 9px 14px; font-size: 12px; }
  .logo__text { font-size: 20px; }
  .drawer { padding: 100px 20px 32px; }
  .hero { padding-top: 40px; }
  .hero__title { font-size: 38px; margin: 22px 0; }
  .hero__lead { font-size: 15px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .console { padding: 14px; border-radius: 18px; font-size: 13px; }
  .console__prompt { font-size: 14px; min-height: 5.3em; }
  .relay__row { grid-template-columns: 34px 1fr auto; gap: 10px; padding: 10px 12px; }
  .relay__icon { width: 34px; height: 34px; border-radius: 10px; font-size: 13px; }
  .relay__body b { font-size: 13px; }
  .console__saved { display: none; }
  .hero__stats { margin-top: 40px; }
  .hero__stats dl { grid-template-columns: 1fr; }
  .hero__stats dl > div { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .hero__stats dl > div + div { padding-left: 0; border-left: 0; }
  .hero__stats dd b { font-size: 34px; }
  .clients__track li { padding: 0 26px; font-size: 18px; }
  .mission { padding: 100px 0; }
  .mission__title { font-size: 23px; line-height: 1.85; }
  .mission__foot { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
  .sec-head { margin-bottom: 40px; }
  .sec-head--row { flex-direction: column; align-items: flex-start; }
  .sec-title { font-size: 27px; }
  .service, .agents, .case, .company, .news { padding: 96px 0; }
  .svc__item { padding: 24px 22px 28px; }
  .flow { margin-top: 64px; }
  .flow__list { grid-template-columns: 1fr; }
  .flow__list li, .flow__list li + li { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .flow__list b { font-size: 22px; }
  .cases { grid-template-columns: 1fr; gap: 40px; }
  .profile { margin-top: 64px; }
  .profile > div { grid-template-columns: 1fr; gap: 2px; padding: 16px 0; }
  .news__list a { grid-template-columns: auto 1fr; gap: 6px 14px; padding: 20px 4px; }
  .news__list p { grid-column: 1 / -1; }
  .recruit { min-height: 560px; }
  .recruit__body { padding-bottom: 56px; }
  .contact { padding-bottom: 96px; }
  .contact__inner { padding-top: 64px; }
  .contact__title { font-size: 32px; }
  .contact__actions .btn { flex: 1 1 100%; }
  .footer__nav { grid-template-columns: repeat(2, auto); gap: 12px 40px; }
}
