/* AIパートナーズHP 共通スタイル（黒×赤。STRONG｜コーポレートを出発点に、構成は独自に組み直した） */
:root {
  --red: #cc222b;
  --ink: #1e1d25;
  --gray: #666373;
  --pale: #f8f4f4;
  --line: #e0e0e0;
  --white: #ffffff;
  --en: "Oswald", "Noto Sans JP", sans-serif;
  --ja: "Noto Sans JP", sans-serif;
  --wrap: 1440px;
  --io: ease-in-out;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--ja); color: var(--ink); background: var(--white); font-size: 14px; line-height: 1.8; letter-spacing: .1em; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
section { padding: 120px 0; }

/* ボタン */
.btn { display: inline-flex; align-items: center; gap: 14px; height: 48px; padding: 0 22px; border-radius: 4px; font-size: 14px; font-weight: 600; letter-spacing: .1em; transition: background .3s, color .3s, opacity .3s; white-space: nowrap; }
.btn::after { content: ""; width: 6px; height: 6px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform .3s; }
.btn:hover::after { transform: translateX(4px) rotate(45deg); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: #a91a22; }
.btn-pale { background: var(--pale); color: var(--red); }
.btn-pale:hover { background: #f1e6e6; }
.btn-white { background: var(--white); color: var(--red); }
.btn-white:hover { opacity: .85; }

/* 見出し */
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.head-en { font-family: var(--en); font-size: 16px; font-weight: 700; letter-spacing: .1em; color: var(--red); line-height: 1.5; }
.head-ja { font-size: 36px; font-weight: 700; letter-spacing: .1em; line-height: 1.6; margin-top: 4px; }

/* ヘッダー：全幅のバー。メニューは英字＋日本語の2段、お問い合わせは右端の赤いブロック */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); height: 78px; display: flex; align-items: center; justify-content: space-between; padding-left: 40px; transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 6px 24px rgba(30,29,37,.06); }
.logo img { height: 36px; width: auto; filter: brightness(0); }
.nav { display: flex; align-items: stretch; height: 100%; font-size: 13px; font-weight: 600; letter-spacing: .08em; line-height: 1.4; }
.nav > a { display: flex; flex-direction: column; justify-content: center; padding: 0 20px; transition: color .3s; }
.nav-en { font-family: var(--en); font-size: 11px; font-weight: 500; letter-spacing: .16em; color: var(--red); }
.nav > a:not(.nav-cta):hover, .nav > a.is-current { color: var(--red); }
.nav-cta { margin-left: 20px; padding: 0 36px !important; background: var(--red); color: var(--white); transition: background .3s; }
.nav-cta .nav-en { color: rgba(255,255,255,.7); }
.nav-cta:hover { background: #a91a22; }
.menu-btn { display: none; width: 64px; height: 64px; border: 0; background: var(--red); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 20px; right: 20px; height: 2px; background: var(--white); transition: transform .3s, opacity .3s; }
.menu-btn span:nth-child(1) { top: 26px; }
.menu-btn span:nth-child(2) { top: 36px; }
.menu-btn.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

/* ファーストビュー */
/* 左に文字・右に写真の2分割。写真は赤い幕が右へ引いて現れる */
.hero { position: relative; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); padding-top: 110px; background: var(--pale); overflow: hidden; }
.hero-body { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 40px 64px 72px max(40px, calc((100vw - var(--wrap)) / 2 + 40px)); }
.hero-label { display: flex; align-items: center; gap: 14px; font-family: var(--en); font-size: 14px; font-weight: 700; letter-spacing: .2em; color: var(--red); animation: fadeIn 1s var(--io) .2s both; }
.hero-label::before { content: ""; width: 40px; height: 2px; background: var(--red); }
.hero-main { margin-top: 28px; font-family: var(--en); font-size: clamp(48px, 5vw, 72px); font-weight: 700; letter-spacing: .04em; line-height: 1.08; white-space: nowrap; }
.hero-main .line > span { display: block; animation: lineUp 1s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(.35s + var(--i) * .12s); }
.hero-main em { font-style: normal; color: var(--red); }
.hero-sub { margin-top: 28px; font-size: 20px; font-weight: 700; letter-spacing: .12em; line-height: 1.6; animation: fadeIn 1s var(--io) .9s both; }
.hero-lead { margin-top: 24px; max-width: 480px; font-size: 16px; font-weight: 500; line-height: 1.9; animation: fadeIn 1s var(--io) 1s both; }
.hero-btns { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; animation: fadeIn 1s var(--io) 1.1s both; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #000; }
.hero-visual { position: relative; margin-bottom: 96px; }
.hero-visual::before { content: ""; position: absolute; left: -48px; bottom: -48px; width: 40%; height: 48%; background: var(--red); animation: slideL 1s var(--io) .9s both; }
.hero-photo { position: absolute; inset: 0; overflow: hidden; }
.hero-photo .img { position: absolute; inset: 0; background: url(img/photo/hero.jpg) center / cover; animation: heroZoom 2.4s var(--io) both; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: var(--red); transform-origin: right; animation: curtain 1.1s cubic-bezier(.77,0,.18,1) .15s both; }
@keyframes heroZoom { from { transform: scale(1.15); } }
@keyframes curtain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes lineUp { from { transform: translateY(105%); } }
@keyframes slideL { from { opacity: 0; transform: translateX(-50px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes scrollLine { from { background-position: 0 -40px; } to { background-position: 0 80px; } }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 480px 1fr; background: var(--pale); }
.about-img { position: relative; overflow: hidden; min-height: 420px; }
.about-img .img { position: absolute; inset: 0; background: url(img/photo/about.jpg) center / cover; }
.about-body { padding: 64px 72px; position: relative; overflow: hidden; background: linear-gradient(118deg, transparent 0 52%, rgba(255,255,255,.55) 52% 70%, transparent 70%), linear-gradient(62deg, transparent 0 64%, rgba(30,29,37,.025) 64%); }
.about-catch { font-size: 28px; font-weight: 700; letter-spacing: .1em; line-height: 1.6; margin-top: 4px; }
.about-text { margin-top: 28px; max-width: 620px; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.8; }
.about-text p + p { margin-top: 14px; }
.about-body .btn { margin-top: 32px; background: var(--white); color: var(--red); }

/* SERVICES */
.services-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--pale); }
.service-img .img { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform .6s var(--io); }
.service:hover .service-img .img { transform: scale(1.06); }
.service-label { font-family: var(--en); font-size: 14px; font-weight: 400; color: var(--red); letter-spacing: .1em; line-height: 1.6; margin-top: 20px; }
.service-name { font-size: 18px; font-weight: 600; letter-spacing: .1em; line-height: 1.6; margin-top: 2px; }
.service-text { color: var(--gray); font-size: 14px; font-weight: 400; line-height: 1.8; margin-top: 12px; }

/* 進め方：画像と文章を左右交互に並べる */
.approach { background: var(--pale); }
.approach-list { display: grid; gap: 80px; }
.approach-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; }
.approach-row:nth-child(even) .approach-img { order: 2; }
.approach-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.approach-img .img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.approach-no { font-family: var(--en); font-size: 120px; font-weight: 600; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--red); }
.approach-title { font-size: 26px; font-weight: 700; letter-spacing: .08em; line-height: 1.6; margin-top: 20px; }
.approach-text { max-width: 480px; color: var(--gray); font-size: 16px; font-weight: 500; line-height: 1.9; margin-top: 16px; }

/* WORKS：大きい1件＋小さい2件 */
.works-list { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto 1fr; gap: 40px 56px; align-items: start; }
.work:first-child { grid-row: span 2; }
.work:not(:first-child) { display: grid; grid-template-columns: 220px 1fr; grid-template-rows: auto auto auto 1fr; column-gap: 24px; }
.work:not(:first-child) .work-img { grid-row: 1 / -1; aspect-ratio: 4 / 3; }
.work:not(:first-child) .work-tags { margin-top: 0; }
.work:last-child { padding-top: 40px; border-top: 1px solid var(--line); }
.work-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--pale); }
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--io); }
.work:hover .work-img img { transform: scale(1.06); }
.work:hover .work-title { color: var(--red); }
.work-tags { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.work-tags span { font-size: 12px; font-weight: 600; color: var(--red); letter-spacing: .05em; line-height: 1.4; }
.work-tags span::before { content: "# "; }
.work-client { font-size: 13px; color: var(--gray); margin-top: 8px; }
.work-title { font-size: 18px; font-weight: 600; letter-spacing: .08em; line-height: 1.6; margin-top: 2px; transition: color .3s; }
.work:first-child .work-title { font-size: 22px; }

/* NEWS：見出しを左に、一覧を右に */
.news { background: var(--pale); }
.news-layout { display: grid; grid-template-columns: 300px 1fr; gap: 64px; }
.news-head .btn { margin-top: 32px; }
.news-list { border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 20px; padding: 26px 0; border-bottom: 1px solid var(--line); transition: color .3s; }
.news-item:hover { color: var(--red); }
.news-date { font-family: var(--en); color: var(--gray); font-size: 14px; font-weight: 400; letter-spacing: .1em; line-height: 1.6; }
.news-cat { justify-self: start; color: var(--red); font-size: 12px; font-weight: 600; line-height: 1.2; padding-left: 10px; border-left: 2px solid var(--red); letter-spacing: .05em; }
.news-title { grid-column: 1 / -1; font-size: 16px; font-weight: 500; line-height: 1.8; }

/* お問い合わせ・採用（写真つきパネルを半分ずつ横並び。暗さは左から右へ薄くする） */
.panels { display: grid; grid-template-columns: 1fr 1fr; }
.panel { position: relative; overflow: hidden; color: var(--white); padding: 64px 72px; min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; }
.panel .img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .8s var(--io); }
.panel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,29,37,.88) 0%, rgba(30,29,37,.55) 55%, rgba(30,29,37,.2) 100%); z-index: 1; transition: opacity .4s; }
.panel-recruit::before { background: linear-gradient(90deg, rgba(30,29,37,.85) 0%, rgba(30,29,37,.45) 100%); }
.panel:hover::before { opacity: .85; }
.panel:hover .img { transform: scale(1.05); }
.panel > *:not(.img) { position: relative; z-index: 2; }
.panel-en { font-family: var(--en); font-size: 64px; font-weight: 600; letter-spacing: .04em; line-height: 1; }
.panel-recruit .panel-en { font-size: 48px; color: transparent; -webkit-text-stroke: 1.5px var(--white); }
.panel-title { font-size: 24px; font-weight: 700; letter-spacing: .05em; line-height: 1.5; margin-top: 20px; }
.panel-recruit .panel-title { font-size: 20px; }
.panel-more { margin-top: 32px; display: inline-flex; align-items: center; gap: 16px; font-size: 15px; font-weight: 600; letter-spacing: .1em; }
.panel-more i { position: relative; width: 52px; height: 52px; border-radius: 50%; background: var(--red); transition: transform .3s; }
.panel-recruit .panel-more i { background: transparent; border: 1.5px solid var(--white); }
.panel-more i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; border-top: 2px solid var(--white); border-right: 2px solid var(--white); transform: translate(-70%, -50%) rotate(45deg); }
.panel:hover .panel-more i { transform: translateX(6px); }

/* フッター */
.footer { background: var(--ink); color: var(--white); padding: 72px 0 32px; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; }
.footer .logo img { filter: none; height: 34px; }
.footer-info { margin-top: 24px; font-size: 14px; font-weight: 400; line-height: 1.8; }
.footer-nav { display: grid; grid-template-columns: repeat(4, auto); gap: 18px 48px; align-content: start; font-size: 14px; font-weight: 600; letter-spacing: .1em; line-height: 1.6; }
.footer-nav a:hover, .pagetop:hover { opacity: .6; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); }
.pagetop { font-family: var(--en); font-size: 13px; font-weight: 500; letter-spacing: .16em; display: inline-flex; align-items: center; gap: 8px; }
.pagetop::after { content: "↑"; font-family: var(--ja); }
.copy { font-family: var(--en); font-size: 12px; font-weight: 400; letter-spacing: .2em; }

/* スクロール表示：20px下からフェードアップ（0.6秒 ease-in-out） */
.up { opacity: 0; translate: 0 20px; transition: opacity .6s var(--io), translate .6s var(--io); transition-delay: var(--d, 0s); }
.up.is-in { opacity: 1; translate: 0 0; }
/* 横からスライド */
.from-l { opacity: 0; translate: -50px 0; transition: opacity 1s var(--io), translate 1s var(--io); transition-delay: var(--d, 0s); }
.from-r { opacity: 0; translate: 50px 0; transition: opacity .6s var(--io) .3s, translate .6s var(--io) .3s; }
.from-l.is-in, .from-r.is-in { opacity: 1; translate: 0 0; }
/* ぼかしから現れる */
.blur { opacity: 0; filter: blur(60px); transition: opacity 1s var(--io), filter 1s var(--io); transition-delay: var(--d, 0s); }
.blur.is-in { opacity: 1; filter: blur(0); }
/* 画像が1.1倍から縮む */
.zoom .img, .zoom > img { scale: 1.1; transition: scale .8s var(--io), transform .6s var(--io); }
.zoom.is-in .img, .zoom.is-in > img { scale: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .up, .from-l, .from-r, .blur { opacity: 1; translate: none; filter: none; }
  .zoom .img, .zoom > img { scale: 1; }
}

/* タブレット・スマホ */
@media (max-width: 1080px) {
  .header { padding-left: 24px; }
  .nav { display: none; position: fixed; top: 78px; left: 0; right: 0; height: auto; background: var(--white); flex-direction: column; padding: 8px 24px 24px; box-shadow: 0 12px 32px rgba(30,29,37,.12); }
  .nav.is-open { display: flex; }
  .nav > a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: 20px 0 0; padding: 16px 24px !important; border-bottom: 0 !important; align-items: center; }
  .menu-btn { display: block; height: 78px; width: 78px; }
  .menu-btn span { left: 27px; right: 27px; }
  .menu-btn span:nth-child(1) { top: 33px; }
  .menu-btn span:nth-child(2) { top: 43px; }
  .footer-nav { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 800px) {
  .wrap { padding: 0 20px; }
  section { padding: 80px 0; }
  .header { height: 64px; padding-left: 16px; }
  .nav { top: 64px; }
  .menu-btn { width: 64px; height: 64px; }
  .menu-btn span { left: 20px; right: 20px; }
  .menu-btn span:nth-child(1) { top: 26px; }
  .menu-btn span:nth-child(2) { top: 36px; }
  .logo img { height: 28px; }
  .hero { grid-template-columns: 1fr; padding-top: 90px; }
  .hero-body { padding: 32px 20px 56px; }
  .hero-main { font-size: 52px; }
  .hero-sub { font-size: 16px; margin-top: 20px; }
  .hero-lead { font-size: 14px; }
      .hero-visual { height: 300px; margin: 0 0 48px 20px; }
  .hero-visual::before { left: -20px; bottom: -20px; }
  .head-ja { font-size: 26px; }
  .about-catch { font-size: 22px; }
  .head { flex-direction: column; align-items: flex-start; margin-bottom: 36px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img { min-height: 260px; }
  .about-body { padding: 56px 24px; }
  .services-list, .works-list { grid-template-columns: 1fr; gap: 40px; }
  .work:first-child { grid-row: auto; }
  .work:not(:first-child) { grid-template-columns: 120px 1fr; column-gap: 16px; }
  .work:first-child .work-title { font-size: 18px; }
  .work-title { font-size: 15px; }
  .approach-list { gap: 56px; }
  .approach-row { grid-template-columns: 1fr; gap: 24px; }
  .approach-row:nth-child(even) .approach-img { order: 0; }
  .approach-no { font-size: 72px; }
  .approach-title { font-size: 20px; margin-top: 12px; }
  .approach-text { font-size: 14px; }
  .news-layout { grid-template-columns: 1fr; gap: 32px; }
  .news-head .btn { margin-top: 20px; }
  .news-item { padding: 20px 0; }
  .panels { grid-template-columns: 1fr; }
  .panel { padding: 48px 24px; min-height: 300px; }
  .panel-en { font-size: 44px; }
  .panel-recruit .panel-en { font-size: 40px; }
  .panel-title, .panel-recruit .panel-title { font-size: 19px; margin-top: 14px; }
  .panel-more { margin-top: 24px; }
  .panel-more i { width: 44px; height: 44px; }
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-bottom { margin-top: 48px; }
}

/* ===== 下層ページ（採用情報など） ===== */
.page-hero { padding: 170px 0 64px; background: var(--pale); }
.page-hero-body { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-bottom: 64px; }
.breadcrumb { display: flex; gap: 10px; font-size: 12px; color: var(--gray); margin-bottom: 28px; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span::before { content: "/"; margin-right: 10px; }
.page-title { margin-top: 16px; font-size: clamp(34px, 4.4vw, 64px); font-weight: 900; letter-spacing: .08em; line-height: 1.42; }
.page-title .line, .hero-main .line { display: block; overflow: hidden; }
.page-title .line > span { display: block; animation: lineUp 1s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(.35s + var(--i) * .12s); }
.page-title em { font-style: normal; color: var(--red); }
.page-lead { max-width: 440px; font-size: 16px; font-weight: 500; line-height: 1.9; animation: fadeIn 1s var(--io) .9s both; }
.page-visual { position: relative; height: 480px; margin-left: max(40px, calc((100vw - var(--wrap)) / 2 + 40px)); }
.page-visual::before { content: ""; position: absolute; left: -40px; bottom: -64px; width: 36%; height: 55%; background: var(--red); animation: slideL 1s var(--io) .9s both; }

/* メッセージ */
.message-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; }
.message-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.message-grid.is-reverse .message-img { order: 2; }
.message-img .img { position: absolute; inset: 0; background: none center 15% / cover; }
.message-catch { font-size: 36px; font-weight: 700; letter-spacing: .1em; line-height: 1.6; margin-top: 4px; }
.message-text { margin-top: 32px; display: grid; gap: 20px; font-size: 16px; font-weight: 500; line-height: 2; }
.message-sign { margin-top: 36px; text-align: right; font-size: 14px; font-weight: 600; letter-spacing: .1em; }
.message-sign b { margin-left: 16px; font-size: 22px; font-weight: 700; }

/* 求める人物像 */
.values { background: var(--pale); }
.values-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.value { border-top: 2px solid var(--ink); padding-top: 28px; }
.value-no { font-family: var(--en); font-size: 56px; font-weight: 600; color: var(--red); line-height: 1; }
.value-title { font-size: 20px; font-weight: 700; letter-spacing: .1em; line-height: 1.6; margin-top: 20px; }
.value-text { font-size: 14px; color: var(--gray); line-height: 1.9; margin-top: 12px; }

/* 働き方 */
.workstyle { background: var(--ink); color: var(--white); }
.workstyle .head-ja { color: var(--white); }
.workstyle-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.2); }
.workstyle-item { display: grid; grid-template-columns: 64px 1fr; gap: 0 24px; padding: 40px 40px 40px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.workstyle-item:nth-child(even) { padding-left: 40px; border-left: 1px solid rgba(255,255,255,.2); }
.workstyle-no { grid-row: span 2; font-family: var(--en); font-size: 16px; font-weight: 700; color: var(--red); letter-spacing: .1em; line-height: 1.8; }
.workstyle-title { font-size: 18px; font-weight: 600; letter-spacing: .1em; line-height: 1.6; }
.workstyle-text { font-size: 14px; line-height: 1.9; margin-top: 8px; opacity: .8; }

/* 募集職種 */
.jobs { display: grid; gap: 16px; }
.job { border: 1px solid var(--line); }
.job summary { list-style: none; display: grid; grid-template-columns: 260px 1fr auto; align-items: center; gap: 24px; padding: 28px 32px; cursor: pointer; transition: background .3s; }
.job summary::-webkit-details-marker { display: none; }
.job summary:hover { background: var(--pale); }
.job-en { font-family: var(--en); font-size: 14px; font-weight: 700; letter-spacing: .1em; color: var(--red); }
.job-name { font-size: 20px; font-weight: 700; letter-spacing: .1em; line-height: 1.6; }
.job-toggle { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--red); }
.job-toggle::before, .job-toggle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; background: var(--white); translate: -50% -50%; transition: rotate .3s; }
.job-toggle::after { rotate: 90deg; }
.job[open] .job-toggle::after { rotate: 0deg; }
.job dl { display: grid; grid-template-columns: 180px 1fr; margin: 0 32px; border-top: 1px solid var(--line); }
.job dt, .job dd { padding: 22px 0; border-bottom: 1px solid var(--line); line-height: 1.9; }
.job dt { font-weight: 700; }
.job dd:last-of-type, .job dt:last-of-type { border-bottom: 0; }
.job dd ul { padding-left: 1.2em; }

/* 選考フロー */
.flow { background: var(--pale); }
.flow-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.flow-item { position: relative; background: var(--white); padding: 36px 28px 40px; }
.flow-item:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -22px; width: 10px; height: 10px; border-top: 2px solid var(--red); border-right: 2px solid var(--red); transform: translateY(-50%) rotate(45deg); }
.flow-step { font-family: var(--en); font-size: 14px; font-weight: 700; letter-spacing: .1em; color: var(--red); }
.flow-title { font-size: 18px; font-weight: 700; letter-spacing: .1em; line-height: 1.6; margin-top: 8px; }
.flow-text { font-size: 14px; color: var(--gray); line-height: 1.9; margin-top: 12px; }

/* エントリー */
.entry { position: relative; overflow: hidden; background: var(--red); color: var(--white); text-align: center; }
.entry .head-en { color: var(--white); }
.entry-title { font-size: 40px; font-weight: 900; letter-spacing: .1em; line-height: 1.5; margin-top: 8px; }
.entry-text { font-size: 16px; font-weight: 500; margin-top: 20px; }
.entry .btn { margin-top: 40px; height: 56px; padding: 0 40px; }

@media (max-width: 800px) {
  .page-hero { padding: 120px 0 32px; }
  .page-hero-body { flex-direction: column; align-items: flex-start; gap: 24px; padding-bottom: 48px; }
  .page-visual { height: 260px; margin-left: 20px; }
  .page-visual::before { left: -20px; bottom: -32px; }
  .message-grid { grid-template-columns: 1fr; gap: 40px; }
  .message-img { aspect-ratio: 4 / 3; }
  .message-grid.is-reverse .message-img { order: 0; }
  .message-catch { font-size: 22px; }
  .values-list, .workstyle-list, .flow-list { grid-template-columns: 1fr; }
  .workstyle-item, .workstyle-item:nth-child(even) { padding: 28px 0; border-left: 0; grid-template-columns: 48px 1fr; }
  .flow-item:not(:last-child)::after { top: auto; bottom: -22px; right: 50%; transform: translateX(50%) rotate(135deg); }
  .job summary { grid-template-columns: 1fr auto; gap: 4px 16px; padding: 22px 20px; }
  .job-en { grid-column: 1; }
  .job-name { grid-column: 1; font-size: 18px; }
  .job-toggle { grid-row: 1 / 3; grid-column: 2; }
  .job dl { grid-template-columns: 1fr; margin: 0 20px; }
  .job dt { padding-bottom: 0; border-bottom: 0; }
  .job dd { padding-top: 6px; }
  .entry-title { font-size: 24px; }
}

/* ===== 下層ページ共通（about / service / works / news / contact / policy） ===== */
.nav > a.is-current { color: var(--red); }
.sub-hero { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); padding-top: 78px; min-height: 480px; background: var(--white); }
.sub-hero-body { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 64px 64px 64px max(40px, calc((100vw - var(--wrap)) / 2 + 40px)); background: var(--ink); color: var(--white); }
.sub-hero-body::after { content: ""; position: absolute; left: max(40px, calc((100vw - var(--wrap)) / 2 + 40px)); bottom: 0; width: 64px; height: 4px; background: var(--red); }
.sub-hero-body .head-en { animation: fadeIn 1s var(--io) .2s both; }
.sub-hero-title { margin-top: 8px; font-size: 36px; font-weight: 700; letter-spacing: .1em; line-height: 1.5; animation: slideL 1s var(--io) .35s both; }
.sub-hero-lead { margin-top: 20px; max-width: 460px; font-size: 14px; line-height: 1.9; opacity: .85; animation: fadeIn 1s var(--io) .6s both; }
.sub-hero-visual { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px 0 0; font-size: 12px; color: var(--gray); }
.crumbs a:hover { color: var(--red); }
.crumbs > *:not(:first-child)::before { content: "/"; margin-right: 10px; }
.sub-section { padding: 96px 0; }
.sub-section + .sub-section { padding-top: 0; }
.sub-section.values { padding-top: 96px; }
.detail { max-width: 1040px; }
.sec-title { margin: 72px 0 24px; padding-left: 16px; border-left: 4px solid var(--red); font-size: 24px; font-weight: 700; letter-spacing: .08em; line-height: 1.5; }
.detail > .sec-title:first-child, .detail-img + .sec-title, .detail-logo + .sec-title { margin-top: 56px; }
.sec-sub { margin-bottom: 20px; padding: 14px 20px; background: var(--pale); font-size: 16px; font-weight: 700; letter-spacing: .06em; }
.prose { font-size: 15px; line-height: 2; }
.sec-sub-next { margin-top: 40px; }
.prose > p + p, .prose > p + ul, .prose > ul + p, .prose > p + div, .prose > div + p { margin-top: 16px; }
.prose ul { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose h3 { margin: 32px 0 12px; font-size: 18px; font-weight: 700; letter-spacing: .06em; }
.prose a, .link { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.detail-img { position: relative; aspect-ratio: 16 / 8; overflow: hidden; }
.detail-img .img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.detail-cta { margin-top: 56px; text-align: center; }
.detail-title { font-size: 28px; font-weight: 700; letter-spacing: .06em; line-height: 1.6; }

/* サービス一覧 */
.svc-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.svc-card { display: flex; flex-direction: column; background: var(--pale); transition: box-shadow .3s; }
.svc-card:hover { box-shadow: 0 12px 32px rgba(30,29,37,.1); }
.svc-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.svc-img .img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s var(--io); }
.svc-card:hover .svc-img .img { transform: scale(1.06); }
.svc-body { display: flex; flex-direction: column; flex: 1; padding: 4px 28px 32px; }
.svc-body .service-text { flex: 1; }
.more { margin-top: 20px; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--red); }
.more::after { content: ""; width: 6px; height: 6px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform .3s; }
.svc-card:hover .more::after { transform: translateX(4px) rotate(45deg); }
.flow-list-sub { padding: 0; }
.flow-list-sub .flow-item { list-style: none; background: var(--pale); }
.others { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.other { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: center; padding: 12px; border: 1px solid var(--line); transition: border-color .3s; }
.other:hover { border-color: var(--red); }
.other-img { aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.other .service-label { margin-top: 0; }
.other-name { font-size: 15px; font-weight: 700; letter-spacing: .06em; line-height: 1.6; }

/* 導入実績 */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.tab { border: 1px solid var(--line); background: var(--white); border-radius: 50px; padding: 10px 20px; font-size: 13px; font-weight: 600; letter-spacing: .06em; line-height: 1; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.tab:hover { border-color: var(--ink); }
.tab.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.work-card.is-hidden { display: none; }
.work-card:hover .work-img img { transform: scale(1.06); }
.work-card .work-tags span, .work-tags-dark span { border-color: var(--ink); color: var(--ink); }
.work-card .work-client { color: var(--gray); opacity: 1; }
.work-card:hover .work-title { color: var(--red); }
.work-title { transition: color .3s; }
.work-head .work-tags { margin-top: 0; }
.work-date { margin-left: 16px; font-family: var(--en); letter-spacing: .1em; }
.work-head .detail-title { margin-top: 8px; }
.detail-logo { margin-top: 32px; display: flex; justify-content: center; align-items: center; height: 280px; border: 1px solid var(--line); }
.detail-logo img { max-height: 200px; max-width: 70%; object-fit: contain; }
.pager { margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; font-size: 14px; font-weight: 600; letter-spacing: .08em; }
.pager-next { justify-self: end; }
.pager a:not(.btn):hover { color: var(--red); }
.pager-prev::before { content: "← "; }
.pager-next::after { content: " →"; }

/* お知らせ */
.article-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.article { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.sign { text-align: right; font-weight: 600; }

/* 私たちについて */
.mission { max-width: 1040px; }
.mission-en { margin-top: 12px; font-family: var(--en); font-size: clamp(44px, 5vw, 72px); font-weight: 700; letter-spacing: .04em; line-height: 1.08; }
.mission-en em { font-style: normal; color: var(--red); }
.mission-ja { margin-top: 24px; font-size: 24px; font-weight: 700; letter-spacing: .1em; line-height: 1.6; }
.mission-text { margin-top: 28px; max-width: 760px; display: grid; gap: 16px; font-size: 16px; font-weight: 500; line-height: 2; }
.company { display: grid; grid-template-columns: 200px 1fr; border-top: 1px solid var(--line); }
.company dt, .company dd { padding: 24px 0; border-bottom: 1px solid var(--line); line-height: 1.9; }
.company dt { font-weight: 700; }
.company dd ul { padding-left: 1.2em; }
.map { aspect-ratio: 16 / 7; background: var(--pale); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* お問い合わせ */
.form-lead { text-align: center; font-size: 15px; line-height: 2; margin-bottom: 48px; }
.form { display: grid; gap: 28px; max-width: 880px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { display: grid; gap: 10px; border: 0; }
.field-label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.req { font-style: normal; background: var(--red); color: var(--white); font-size: 11px; line-height: 1; padding: 5px 8px; border-radius: 50px; letter-spacing: .05em; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 15px; padding: 14px 16px; border: 1px solid var(--line); background: var(--pale); border-radius: 4px; transition: border-color .3s, background .3s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
fieldset.field { padding: 0; margin: 0; }
fieldset.field legend { margin-bottom: 10px; }
.choice { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 1.8; cursor: pointer; }
.choice input { width: 18px; height: 18px; accent-color: var(--red); }
.consent { justify-content: center; margin-top: 8px; }
.form-submit { text-align: center; }
.form-submit .btn { height: 56px; padding: 0 56px; border: 0; cursor: pointer; }
.form-note { text-align: center; font-size: 14px; font-weight: 600; color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.policy-date { margin-top: 56px; text-align: right; font-size: 14px; color: var(--gray); }

@media (max-width: 1080px) {
  .svc-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .sub-hero { grid-template-columns: 1fr; padding-top: 64px; min-height: 0; }
  .sub-hero-body { padding: 48px 20px; }
  .sub-hero-body::after { left: 20px; }
  .sub-hero-title { font-size: 26px; }
  .sub-hero-visual { height: 220px; }
  .sub-section { padding: 64px 0; }
  .sub-section.values { padding-top: 64px; }
  .sec-title { margin-top: 56px; font-size: 20px; }
  .detail-title { font-size: 21px; }
  .detail-img { aspect-ratio: 16 / 10; }
  .svc-list, .works-grid, .others, .form-row { grid-template-columns: 1fr; }
  .other { grid-template-columns: 110px 1fr; }
  .company { grid-template-columns: 1fr; }
  .company dt { padding-bottom: 0; border-bottom: 0; }
  .company dd { padding-top: 6px; }
  .mission-ja { font-size: 19px; }
  .detail-logo { height: 200px; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager .btn { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .map { aspect-ratio: 4 / 3; }
}

/* ローカルLLM：作れるアプリ・構成プラン */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.app { padding: 28px 24px 30px; background: var(--pale); }
.app-no { font-family: var(--en); font-size: 28px; font-weight: 600; color: var(--red); line-height: 1; }
.app-name { margin-top: 14px; font-size: 16px; font-weight: 700; letter-spacing: .06em; line-height: 1.6; }
.app-text { margin-top: 8px; font-size: 14px; color: var(--gray); line-height: 1.9; }
.use-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0 28px; }
.use-label { margin-right: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.use { border: 1px solid var(--line); background: var(--white); border-radius: 50px; padding: 10px 18px; font-size: 13px; font-weight: 600; line-height: 1; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.use:hover { border-color: var(--ink); }
.use.is-active { background: var(--red); border-color: var(--red); color: var(--white); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; padding: 32px 28px; border: 1px solid var(--line); background: var(--white); transition: border-color .3s, box-shadow .3s, opacity .3s; }
.plan.is-reco { border-top: 4px solid var(--red); padding-top: 29px; }
.plan-badge { position: absolute; top: -14px; right: 20px; background: var(--red); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: .1em; line-height: 1; padding: 7px 12px; border-radius: 50px; }
.plans.is-picking .plan { opacity: .45; }
.plans.is-picking .plan.is-picked { opacity: 1; border-color: var(--red); box-shadow: 0 16px 40px rgba(204,34,43,.14); }
.plan-en { font-family: var(--en); font-size: 14px; font-weight: 700; letter-spacing: .14em; color: var(--red); }
.plan-name { margin-top: 2px; font-size: 20px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.plan-desc { margin-top: 10px; font-size: 13px; color: var(--gray); line-height: 1.9; min-height: 4.6em; }
.plan dl { margin-top: 20px; border-top: 1px solid var(--line); }
.plan dt { margin-top: 14px; font-size: 12px; font-weight: 700; color: var(--gray); letter-spacing: .06em; }
.plan dd { margin-top: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; line-height: 1.6; }
.plan dd:last-child { font-family: var(--ja); font-size: 18px; color: var(--ink); }
.note { margin-top: 20px; font-size: 12px; color: var(--gray); line-height: 1.8; }
@media (max-width: 800px) {
  .apps, .plans { grid-template-columns: 1fr; }
  .plan-desc { min-height: 0; }
}
