/* トップページ（F-021）。オーナーが採用した案H（site/proposals/h/）を、tokens.css の値と docs/DESIGN.md の決まりに合わせて移したもの。
   既定（JSなし・静止画・動きを止めた時・動きを減らす設定）は完成した状態。動きは JS が .js と .in などを付けたときだけ。 */

.top h2 { font-size: var(--fs-h2); word-break: auto-phrase; overflow-wrap: normal; text-wrap: balance; }
.section-lead { margin-top: var(--s3); max-width: 38em; }
.lead-note { display: block; margin-top: var(--s1); font-size: var(--fs-note); color: var(--c-text-2); }
.more { margin-top: var(--s3); }
.more a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: var(--fw-sub); }

/* 節の英字の見出し（LITALICO の「SERVICE サービス」の形。飾りなので読み上げない）。頭の1字だけ主色 */
.sec-en { margin-bottom: var(--s2); font-family: var(--font-num); font-size: clamp(20px, 2vw, 26px); font-weight: var(--fw-head); line-height: 1; letter-spacing: .16em; color: var(--c-text-2); }
.sec-en span { color: var(--c-blue); }

/* 見えたときに下から浮かび上がる（.in は top.js が付ける。付く前も見えている＝完成した状態） */
.js:not(.no-motion) .rise.in { animation: rise-lg var(--dur-reveal) var(--ease) both; }
.js:not(.no-motion) .rise.in .sec-en span { display: inline-block; animation: en-in .9s var(--ease) .15s both; }
@keyframes rise-lg { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes en-in { from { opacity: 0; transform: translateY(-.4em) skewX(-12deg); } to { opacity: 1; transform: none; } }

/* ===== 最初の画面: 人物のいない場面の絵を全面に置き、7秒ごとに切り替える ===== */
.hero { position: relative; z-index: 2; overflow-x: clip; background: var(--c-paper); min-height: min(76vh, 720px); display: flex; flex-direction: column; justify-content: center; }
.slides { position: absolute; inset: 0; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity var(--dur-slide) ease, filter var(--dur-slide) ease; }
.slide.is-active { opacity: 1; }
.js:not(.no-motion) .slide:not(.is-active) { filter: blur(14px); }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.js:not(.no-motion) .slide.is-active img { animation: slow-zoom 9s linear both; }
@keyframes slow-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-copy { position: relative; width: 100%; padding-top: var(--s7); padding-bottom: calc(var(--s8) + 32px); }
/* 大きな言葉の上の所属の1行（障害福祉に特化しているのは生成AI事業部だと示す。オーナー指示 2026-10-31） */
.hero-unit { margin-bottom: var(--s3); font-size: var(--fs-hero-unit); font-weight: var(--fw-sub); color: var(--c-text-2); letter-spacing: .06em; text-shadow: 0 0 6px var(--c-paper), 0 0 14px var(--c-paper); }
.js:not(.no-motion) .hero-unit { animation: rise-lg .9s var(--ease) .3s both; }
.catch { --catch-ls: .1em; display: flex; flex-direction: column; font-size: var(--fs-catch); line-height: var(--lh-catch); letter-spacing: var(--catch-ls); }
.cl { display: block; white-space: nowrap; }
.hero-sub { margin-top: var(--s4); max-width: 25em; font-size: var(--fs-body); font-weight: var(--fw-sub); line-height: 1.8; }
.hero-cta { margin-top: var(--s5); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }
.hero-link { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: var(--fw-sub); color: var(--c-text); text-underline-offset: 5px; }
.hero-link:hover { color: var(--c-blue); }
.hero-terms { margin-top: var(--s3); font-size: var(--fs-small); font-weight: var(--fw-sub); color: var(--c-text-2); }
.js:not(.no-motion) .hero-terms { animation: rise-lg .9s var(--ease) 1.55s both; }
/* 開いたときの動き（LITALICO のように、白から絵が現れ、言葉が1行ずつ浮かぶ）。動きを止めた時・減らす設定では最初から完成した状態 */
.js:not(.no-motion) .hero .slides { animation: hero-in 1.6s var(--ease) both; }
.js:not(.no-motion) .catch .cl { animation: catch-in 1.1s var(--ease) both; animation-delay: calc(.55s + var(--i, 0) * .28s); }
.js:not(.no-motion) .hero-sub { animation: rise-lg .9s var(--ease) 1.2s both; }
.js:not(.no-motion) .hero-cta { animation: rise-lg .9s var(--ease) 1.4s both; }
@keyframes hero-in { from { filter: blur(18px); transform: scale(1.05); } to { filter: none; transform: none; } } /* 透明から始めない（最初の絵を早く表示として数えさせる） */
@keyframes catch-in { from { opacity: 0; transform: translateY(.45em); letter-spacing: .3em; } to { opacity: 1; transform: none; letter-spacing: var(--catch-ls); } }


/* ヒーローの右下: AIが会議録の下書きを1行ずつ書き、職員が確認の印を押す小さな書類（サクポートの仕事そのものを見せる動き）。
   広い画面だけ。既定は書き終えた状態で、top.js が見えている間だけ .play を付け直して繰り返す */
.hero-doc { position: absolute; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); bottom: 104px; z-index: 1; width: 390px; padding: var(--s3) var(--s4) var(--s3); background: var(--c-canvas); border-radius: var(--radius-figure); box-shadow: var(--shadow-doc); font-size: var(--fs-mock); }
.hd-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: var(--s2); border-bottom: 2px solid var(--c-text); font-weight: var(--fw-head); font-size: 13px; }
.hd-tag { padding: 1px 8px; border-radius: 999px; background: var(--c-blue-pale); color: var(--c-blue-dark); font-size: var(--fs-mock); }
.hd-lines { list-style: none; margin: 0; padding: 0; }
.hd-lines li { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: var(--s2); padding: var(--s2) 0; border-bottom: var(--rule-w) solid var(--c-rule); line-height: 1.6; }
.hd-lines b { color: var(--c-text-2); font-weight: var(--fw-sub); }
.hd-lines span { display: block; white-space: nowrap; overflow: hidden; }
.hd-check { position: relative; display: flex; align-items: center; gap: var(--s2); margin-top: var(--s2); color: var(--c-blue-dark); font-weight: var(--fw-head); }
.hd-check .stamp { position: absolute; right: 0; top: 50%; width: 44px; height: 44px; margin-top: -24px; font-size: 14px; border-width: 2px; }
.js:not(.no-motion) .hero-doc { animation: doc-in .9s var(--ease) 1.6s both; }
.hero-doc { --d0: .4s; }
.hero-doc.first { --d0: 2.2s; } /* 最初は用紙が現れて（1.6秒から）から書き始める */
.js:not(.no-motion) .hero-doc.play .hd-lines span { animation: type 1.1s linear both; animation-delay: calc(var(--d0) + var(--n) * 1.2s); }
.js:not(.no-motion) .hero-doc.play .hd-lines li { animation: writing 1.6s ease forwards; animation-delay: calc(var(--d0) + var(--n) * 1.2s); }
.js:not(.no-motion) .hero-doc.play .hd-check { animation: rise-lg .5s var(--ease) both; animation-delay: calc(var(--d0) + 3.8s); }
.js:not(.no-motion) .hero-doc.play .stamp { animation: stamp .45s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--d0) + 4.3s); }
@keyframes doc-in { from { opacity: 0; transform: translateY(24px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes stamp { from { opacity: 0; transform: rotate(-12deg) scale(1.8); } to { opacity: 1; transform: rotate(-12deg) scale(1); } }

/* 事例の数字: 見えたときに矢印が伸び、「約30分」が浮かび上がる */
.js:not(.no-motion) .ex-case.in .ex-arrow { animation: line-in .6s var(--ease) .3s both; transform-origin: left; }
.js:not(.no-motion) .ex-case.in dd > span:last-child { animation: pop .7s cubic-bezier(.3, 1.4, .5, 1) .8s both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }

/* ご相談できる業務の絵: 見えたときに少し傾いた所から置かれる */
.js:not(.no-motion) .work.in .work-art { animation: art-in .9s var(--ease) both; }
@keyframes art-in { from { opacity: 0; transform: translateY(28px) rotate(-4deg); } to { opacity: 1; transform: none; } }

/* 新着コラムのカード: 見えたときに1枚ずつ */
.js:not(.no-motion) .col-cards.in .col-card { animation: rise-lg .7s var(--ease) both; }
.js:not(.no-motion) .col-cards.in .col-card:nth-child(2) { animation-delay: .15s; }
.js:not(.no-motion) .col-cards.in .col-card:nth-child(3) { animation-delay: .3s; }

/* 文字の周りに紙の色のにじみを付け、絵の線から読みやすさを守る（グラデーションは使わない） */
.catch, .hero-sub, .hero-link, .hero-terms { text-shadow: 0 0 6px var(--c-paper), 0 0 14px var(--c-paper), 0 0 24px var(--c-paper); }
/* ヒーローの下端の帯: 左に新着の1件、右に絵の切り替えの印と止めるボタン */
.hero-bar { position: absolute; left: 0; right: 0; bottom: 0; background: var(--c-paper); border-top: var(--rule-w) solid var(--c-rule); }
.hero-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 64px; }
.hero-news { display: flex; align-items: center; gap: var(--s3); min-width: 0; font-size: var(--fs-small); }
.hn-label { flex: none; font-family: var(--font-num); font-weight: var(--fw-head); letter-spacing: .12em; color: var(--c-blue); }
.hero-news time { flex: none; font-family: var(--font-num); color: var(--c-text-2); }
.hn-cat { flex: none; padding: 0 var(--s2); font-size: var(--fs-note); color: var(--c-text-2); border: var(--rule-w) solid var(--c-rule); border-radius: 999px; }
.hero-news a { display: inline-flex; align-items: center; min-height: var(--tap); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c-text); font-weight: var(--fw-sub); }
.hero-news a:hover { color: var(--c-blue); }
.slide-ui { display: flex; flex: none; align-items: center; gap: var(--s3); }
.slide-dots { display: inline-flex; gap: var(--s2); }
.slide-dots i { display: block; width: 32px; height: 3px; background: var(--c-rule-strong); }
.slide-dots i.is-active { background: var(--c-text); }
.slide-toggle { min-height: var(--tap); padding: 0 var(--s2); font: inherit; font-size: var(--fs-note); color: var(--c-text-2); background: none; border: 0; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
@media (min-width: 1081px) {
  /* 言葉の塊を左にそろえ、絵の物を右へ寄せて文字と重ねない */
  .slide img { position: absolute; top: 0; right: 0; width: 112%; height: 100%; object-fit: cover; object-position: right center; }
}

/* ===== たとえば会議録では: 説明 → 事例の数字 → 下書きの見本 ===== */
.example { padding: var(--section-y) 0; background: var(--c-paper); border-top: var(--rule-w) solid var(--c-rule); }
.example-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); align-items: center; }
.example-text > p:first-of-type { margin-top: var(--s3); }
.example-text .note { margin-top: var(--s2); }

/* 見本の動き: 下書きの行を1行ずつ光らせ、職員の確認と印を押し直す */
.js:not(.no-motion) .demo-window .draft-lines li.w { animation: writing 0.9s var(--ease) both; }
.js:not(.no-motion) .demo-window .draft-lines li.w::before { animation: mark 0.9s var(--ease) both; }
.js:not(.no-motion) .demo-window .checked { opacity: 0.3; transition: opacity 0.4s; }
.js:not(.no-motion) .demo-window.s3 .checked { opacity: 1; }
.js:not(.no-motion) .demo-window .stamp { opacity: 0; transform: rotate(-12deg) scale(1.7); transition: opacity 0.15s 0.5s, transform 0.3s cubic-bezier(0.3, 1.5, 0.5, 1) 0.5s; }
.js:not(.no-motion) .demo-window.s3 .stamp { opacity: 1; transform: rotate(-12deg) scale(1); }

/* ===== ご相談できる業務: 絵と文を左右交互に（白いカードを並べない） ===== */
.works { padding: var(--section-y) 0; background: var(--c-canvas); border-top: var(--rule-w) solid var(--c-rule); }
.work-list { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; gap: var(--s6); }
.work { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: var(--s6); align-items: center; }
.work:nth-child(even) { grid-template-columns: minmax(0, 1fr) 320px; }
.work:nth-child(even) .work-art { order: 2; }
.work-art { width: 320px; height: 320px; }
.work h3 { font-size: var(--fs-small); color: var(--c-text-2); }
.voice { margin-top: var(--s2); font-size: clamp(22px, 2.4vw, 28px); font-weight: var(--fw-head); line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; }
.voice-label { display: block; font-size: 13px; color: var(--c-text-2); }
.dir { margin-top: var(--s3); font-size: 17px; font-weight: var(--fw-head); color: var(--c-blue); }
.dir-label { display: inline-block; margin-right: var(--s3); font-size: 13px; color: var(--c-text-2); }
.js:not(.no-motion) .work.in .mini-to { animation: mini-in 0.6s var(--ease) 0.5s both; }
.js:not(.no-motion) .work.in .mt-b td:last-child { animation: cell-in 0.3s var(--ease) both; }
.js:not(.no-motion) .work.in .mt-b tr:nth-child(1) td:last-child { animation-delay: 0.5s; }
.js:not(.no-motion) .work.in .mt-b tr:nth-child(2) td:last-child { animation-delay: 0.7s; }
.js:not(.no-motion) .work.in .mt-b tr:nth-child(3) td:last-child { animation-delay: 0.9s; }
.js:not(.no-motion) .work.in .blank { animation: mini-in 0.5s var(--ease) 1.1s both; }
.js:not(.no-motion) .work.in .mini-arrow { animation: line-in 0.4s var(--ease) 0.2s both; transform-origin: left; }

/* ===== 進め方（部品は samples.css） ===== */
.steps { padding: var(--section-y) 0; background: var(--c-paper); border-top: var(--rule-w) solid var(--c-rule); }

/* ===== 事業部長の言葉 ===== */
.message { padding: var(--section-y) 0; background: var(--c-canvas); border-top: var(--rule-w) solid var(--c-rule); }
.message-inner { max-width: 820px; }
.message-to { font-family: var(--font-letter); font-size: clamp(24px, 2.6vw, 32px); }
.message-body { margin-top: var(--s5); font-family: var(--font-letter); font-size: var(--fs-body); line-height: 2.1; font-weight: 500; }
.message-body p + p { margin-top: var(--s3); }
.message-sign { margin-top: var(--s5); display: flex; flex-direction: column; align-items: flex-end; font-family: var(--font-letter); }
.message-sign span { font-size: var(--fs-note); color: var(--c-text-2); }
.message-sign b { font-size: 22px; font-weight: var(--fw-head); letter-spacing: 0.08em; }

/* ===== 新着コラム（WordPress では新しい投稿6件をここに並べる） ===== */
.columns { padding: var(--section-y) 0; background: var(--c-canvas); border-top: var(--rule-w) solid var(--c-rule); }
.columns-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s4); }
.column-list { list-style: none; margin: var(--s4) 0 0; padding: 0; border-top: var(--rule-w) solid var(--c-rule); }
.column-list li { border-bottom: var(--rule-w) solid var(--c-rule); }
.column-slot { padding: var(--s4) 0; color: var(--c-text-2); font-size: var(--fs-small); }
/* WordPress（front-page.php）で新着の投稿を出す行。column.css の .col-item と同じ形（題名は主題と副題に分ける） */
.column-list .col-item { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: var(--s4); align-items: baseline; padding: var(--s3) 0; }
.column-list .col-item time { font-family: var(--font-num); font-size: var(--fs-small); color: var(--c-text-2); }
.column-list .col-item a { display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: var(--tap); font-weight: var(--fw-sub); color: var(--c-text); text-decoration: none; word-break: auto-phrase; }
.column-list .col-item a:hover { color: var(--c-blue); text-decoration: underline; }
.column-list .ttl-main, .column-list .ttl-sub { display: block; }
.column-list .ttl-sub { font-weight: var(--fw-body); color: var(--c-text-2); }
@media (max-width: 600px) { .column-list .col-item { grid-template-columns: 1fr; gap: 0; } }


/* ===== ご相談（部品は samples.css） ===== */
.consult { padding: var(--section-y) 0; background: var(--c-paper); border-top: var(--rule-w) solid var(--c-rule); }

/* ===== 幅ごとの並び ===== */
@media (max-width: 1080px) {
  /* パソコンと同じく、絵を最初の画面の背景にして言葉を重ねる（オーナー指示 2026-10-29「画像に文字が被ってくれるのが理想」）。
     絵の物は右へ寄せ、言葉の後ろには紙の色を薄く一面に敷いて読みやすさを守る（グラデーションは使わない） */
  .hero { min-height: 0; display: block; }
  .slide img { object-position: 80% center; }
  .slide-meeting img { object-position: right center; }
  .slides::after { content: ""; position: absolute; inset: 0; background: rgb(251 250 246 / .38); }
  .hero-copy { padding-top: var(--s7); padding-bottom: var(--s7); }
  .hero-bar { position: relative; } /* 絵の上に重ね、新着の帯は紙の地のまま見せる */
  .hero-doc { display: none; }
  .hero-bar-inner { flex-direction: column; align-items: flex-start; gap: 0; padding-top: var(--s2); padding-bottom: var(--s2); }
  .hero-news { flex-wrap: wrap; row-gap: 0; }
  .hero-news a { white-space: normal; }
  .example-grid { grid-template-columns: 1fr; gap: var(--s5); }
}
@media (max-width: 720px) {
  /* 「AIを使う職場から」（9字）が 320px でも1行に収まるよう、字間を詰める（COPY §26） */
  .catch { --catch-ls: .04em; font-size: clamp(34px, 10vw, 46px); }
  .hero-sub { font-size: var(--fs-small); }
  .work, .work:nth-child(even) { grid-template-columns: 1fr; gap: var(--s3); }
  .work:nth-child(even) .work-art { order: 0; }
  .work-art { width: 200px; height: 200px; }
}
@media (max-width: 600px) {
  .hero-cta .btn { width: 100%; }
}
/* 縦の短い画面では上の余白を詰め、最初の画面で相談ボタンが下で切れないようにする */
@media (max-width: 600px) and (max-height: 600px) {
  .hero-copy { padding-top: var(--s2); }
  .hero-unit { margin-bottom: var(--s1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero .slides, .hero-unit, .catch .cl, .hero-sub, .hero-cta, .hero-terms, .hero-doc, .hero-doc *, .ex-case *, .work-art, .col-card, .rise.in, .rise.in .sec-en span { animation: none !important; }
  .slide:not(.is-active) { filter: none !important; }
}

@media (min-width: 1281px) {
  .hero-sub { max-width: 30em; } /* 広い画面では4行に収める。机の絵の書類には重ならない幅 */
}
.column-list.col-cards { border-top: 0; }
.column-list.col-cards li { border-bottom: 0; }
@media (min-width: 1081px) {
  /* 図形を絵の椅子の縁から外し、ヒーローの右下の角に寄せる */
}

/* ===== ご相談できる業務の図: 「いま」と「見直したあと」を並べ、手間の長さを帯で見せる（オーナー指示 2026-10-28「効果が実感できるものに」） ===== */
.ba { margin: var(--s4) 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s3) var(--s5); max-width: 720px; }
.ba-col { position: relative; padding: var(--s3); border-radius: var(--radius-figure); background: var(--c-canvas); box-shadow: var(--shadow-doc); }
.ba-now { background: var(--c-subtle); box-shadow: none; }
.ba-after::before { content: ""; position: absolute; left: calc(var(--s5) / -2 - 9px); top: 50%; margin-top: -9px; border-left: 12px solid var(--c-blue); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.ba-h { font-size: var(--fs-note); font-weight: var(--fw-head); color: var(--c-text-2); letter-spacing: .08em; }
.ba-after .ba-h { color: var(--c-blue); }
.ba-steps { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; gap: 6px; min-height: 108px; align-content: start; }
.ba-steps li { padding: 6px var(--s2); border-radius: var(--radius-ui); background: var(--c-canvas); font-size: 14px; line-height: 1.45; color: var(--c-text-2); box-shadow: inset 0 0 0 1px var(--c-rule); }
.ba-after .ba-steps li { font-weight: var(--fw-sub); color: var(--c-text); }
.ba-after .ba-steps li.ai { background: var(--c-blue-pale); box-shadow: inset 0 0 0 1px var(--c-blue-mark); color: var(--c-blue-dark); }
.ba-after .ba-steps li.person::after { content: " ✓"; color: var(--c-blue); }
.ba-bar { margin-top: var(--s3); }
.ba-bar span { display: block; height: 10px; width: var(--w); border-radius: 999px; background: var(--c-rule-strong); transform-origin: left; }
.ba-after .ba-bar span { background: var(--c-blue); }
.ba-bar b { display: block; margin-top: var(--s1); font-size: var(--fs-small); font-weight: var(--fw-head); color: var(--c-text-2); }
.ba-after .ba-bar b { font-size: 18px; color: var(--c-blue-dark); }
.ba-note { grid-column: 1 / -1; font-size: var(--fs-mock); color: var(--c-text-2); }
/* 見えたとき: いまの手順が並ぶ → 帯が伸びる → 見直したあとの短い手順が現れ、短い帯が伸びる */
.js:not(.no-motion) .work.in .ba-now li { animation: rise .45s var(--ease) both; animation-delay: calc(.3s + var(--k) * .25s); }
.js:not(.no-motion) .work.in .ba-now .ba-bar span { animation: bar-in .8s var(--ease) 1.1s both; }
.js:not(.no-motion) .work.in .ba-after { animation: rise-lg .5s var(--ease) 1.3s both; }
.js:not(.no-motion) .work.in .ba-after li { animation: pop .5s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(1.45s + var(--k) * .25s); }
.js:not(.no-motion) .work.in .ba-after .ba-bar span { animation: bar-in .6s var(--ease) 2.1s both; }
.js:not(.no-motion) .work.in .ba-after .ba-bar b { animation: pop .6s cubic-bezier(.3, 1.4, .5, 1) 2.4s both; }
@keyframes bar-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 600px) {
  .ba { grid-template-columns: 1fr; gap: var(--s4); }
  .ba-after::before { left: 50%; top: calc(var(--s4) / -2 - 9px); margin: 0 0 0 -9px; border-top: 12px solid var(--c-blue); border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 0; }
  .ba-steps { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ba *, .ba-after { animation: none !important; }
}

/* ===== 会社のトップ: 来訪者が自分で選ぶ入口と、生成AI事業部の案内（2026-11-02 提案） ===== */
.more-pair { display: flex; flex-wrap: wrap; gap: 0 var(--s5); }
.dept { padding: var(--section-y) 0; background: var(--c-paper); border-top: var(--rule-w) solid var(--c-rule); }
.dept-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); align-items: start; }
.dept h2 { font-size: var(--fs-h2); }
.dept-body > p:first-child { margin-top: 0; max-width: var(--measure); }
.dept-body .note { margin-top: var(--s2); }
.dept-sign { margin-top: var(--s2); font-weight: var(--fw-sub); }
@media (max-width: 1080px) { .dept-inner { grid-template-columns: 1fr; gap: var(--s4); } }

/* 案1（COPY §25-2）: 大きな言葉の下の一行 */
.hero-lead { margin-top: var(--s3); font-size: var(--fs-hero-lead); font-weight: var(--fw-sub); letter-spacing: .08em; line-height: 1.5; text-shadow: 0 0 6px var(--c-paper), 0 0 14px var(--c-paper), 0 0 24px var(--c-paper); }
.js:not(.no-motion) .hero-lead { animation: rise-lg .9s var(--ease) 1.05s both; }
@media (prefers-reduced-motion: reduce) { .hero-lead { animation: none !important; } }
/* 縦の短い画面では一行を小さくし、相談ボタンを最初の画面に収める */
@media (max-width: 600px) and (max-height: 600px) {
  .hero-lead { margin-top: var(--s2); font-size: var(--fs-small); letter-spacing: 0; }
  .hero-sub { margin-top: var(--s3); line-height: 1.65; }
}

/* ヒーローの入口（オーナー指示 2026-11-04「下の今のお仕事に近いものからの部分をヒーローセクションに」） */
/* 一行は改行せずに書き切る（オーナー指示 2026-11-04）。狭い画面では、文字を小さくして1行に収める */
.hero-copy { container-type: inline-size; }
.hero-lead { white-space: nowrap; }
/* 「専念できます」を足して長くなったので（COPY §26）、狭い画面では「仕事に」のあとで改行する */
@media (max-width: 600px) { .hero-lead { white-space: normal; font-size: min(var(--fs-hero-lead), 5.7cqi); letter-spacing: 0; } }
/* 小さな見出しの「生成AIのはじめの一歩から、」（14字）が 320px でも1行に収まるよう、狭い画面では幅に合わせて小さくする */
@media (max-width: 600px) { .hero-unit { font-size: min(var(--fs-hero-unit), 7.2cqi); } }
.hero-paths { margin-top: var(--s4); max-width: 34em; }
.hero-paths ul { list-style: none; margin: 0; padding: 0; background: var(--c-canvas); border: var(--rule-w) solid var(--c-rule); border-radius: var(--radius-ui); box-shadow: var(--shadow-memo); }
.hero-paths li + li { border-top: var(--rule-w) solid var(--c-rule); }
.hero-paths a { position: relative; display: flex; flex-direction: column; min-height: var(--tap); padding: var(--s2) calc(var(--s4) + 1em) var(--s2) var(--s3); color: var(--c-text); text-decoration: none; }
.hero-paths a::after { content: "→"; position: absolute; right: var(--s3); top: 50%; transform: translateY(-50%); color: var(--c-blue); font-weight: var(--fw-head); }
.hero-paths a:hover, .hero-paths a:focus-visible { background: var(--c-blue-pale); }
.hero-paths a:hover .hp-main { color: var(--c-blue-dark); }
.hp-main { font-size: var(--fs-lead); font-weight: var(--fw-head); line-height: 1.4; }
.hp-sub { font-size: var(--fs-note); font-weight: var(--fw-sub); color: var(--c-text-2); line-height: 1.5; }
.js:not(.no-motion) .hero-paths { animation: rise-lg .9s var(--ease) 1.15s both; }
@media (prefers-reduced-motion: reduce) { .hero-paths { animation: none !important; } }
@media (max-width: 600px) {
  .hp-main { font-size: var(--fs-body); }
  .hero-paths a { padding-top: var(--s1); padding-bottom: var(--s1); }
}
/* 縦の短い画面（WordPress のプレビューの 320×480 など）では、入口の説明文を省き、3つとも下の帯より上に収める */
@media (max-width: 600px) and (max-height: 600px) {
  .hp-sub { display: none; }
  .hero-paths { margin-top: var(--s3); }
}
/* 並び（一行 → 相談 → 入口 → 説明）に合わせて、出てくる順番もそろえる */
.js:not(.no-motion) .hero-paths { animation-delay: 1.6s; }
.js:not(.no-motion) .hero-sub { animation: rise-lg .9s var(--ease) 1.75s both; }
