/* ==== components/mega-menu.css ==== */
/* メガメニュー（簡易版。見た目の完成形はトップ制作時: 計画 §5-1） */
.mega-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #141414; border-top: 1px solid var(--color-header-line);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  color: var(--color-white);
}
.mega-menu[hidden] { display: none; }
.mega-menu__inner { width: min(calc(100% - 80px), 1240px); margin: 0 auto; padding: 36px 0 32px; }
.mega-menu__label { margin-bottom: 18px; font-size: 12px; color: var(--color-footer-sub); letter-spacing: 0.12em; }
.mega-menu__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.mega-menu__col-title { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.18); }
.mega-menu__col-link { font-size: 15px; font-weight: var(--fw-bold); text-decoration: none; }
.mega-menu__list { display: grid; gap: 4px; }
.mega-menu__link { display: inline-block; padding: 4px 0; font-size: 14px; color: #d6d6d6; text-decoration: none; }
.mega-menu__link:hover, .mega-menu__col-link:hover, .mega-menu__bpo-link:hover { color: var(--color-white); text-decoration: underline; }
.mega-menu__list--company { grid-template-columns: repeat(4, max-content); gap: 8px 40px; }
.mega-menu__bottom {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px;
  margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18);
}
.mega-menu__bpo-link { font-size: 14px; color: #d6d6d6; text-decoration: none; }
.mega-menu__diagnosis-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px;
  border-radius: 4px; background: var(--grad-brand); font-size: 14px; font-weight: var(--fw-bold); text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  .mega-menu:not([hidden]) { animation: mega-in 0.32s var(--motion-ease-out, ease-out); }
  .mega-menu:not([hidden]) .mega-menu__col,
  .mega-menu:not([hidden]) .mega-menu__bottom,
  .mega-menu:not([hidden]) .mega-menu__list--company > li { animation: mega-item 0.5s var(--motion-ease-out, ease-out) both; }
  .mega-menu__col:nth-child(2) { animation-delay: 0.05s !important; }
  .mega-menu__col:nth-child(3) { animation-delay: 0.1s !important; }
  .mega-menu__col:nth-child(4) { animation-delay: 0.15s !important; }
  .mega-menu__bottom { animation-delay: 0.2s !important; }
  .mega-menu__list--company > li:nth-child(2) { animation-delay: 0.05s !important; }
  .mega-menu__list--company > li:nth-child(3) { animation-delay: 0.1s !important; }
  .mega-menu__list--company > li:nth-child(4) { animation-delay: 0.15s !important; }
  @keyframes mega-in { from { opacity: 0; transform: translate3d(0, -12px, 0); } to { opacity: 1; transform: none; } }
  @keyframes mega-item { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: none; } }
}
.mega-menu__link { transition: color 0.2s ease, transform 0.25s ease; }
@media (hover: hover) { .mega-menu__link:hover { transform: translateX(4px); } }
/* オフィスデザイン（2026-10-13）: バナー枠をやめた文字リンク1行。BPO事業より控えめ（小さく・薄く） */
.mega-menu__office-link { font-size: 13px; color: #bdbdbd; text-decoration: none; }
.mega-menu__office-link:hover { color: var(--color-white); text-decoration: underline; }
/* 「メディア」パネル（2026-10-13）: 会社概要パネルと同じ並び・動き */
.mega-menu__list--media { grid-template-columns: repeat(4, max-content); gap: 8px 40px; }
@media (prefers-reduced-motion: no-preference) {
  .mega-menu:not([hidden]) .mega-menu__list--media > li { animation: mega-item 0.5s var(--motion-ease-out, ease-out) both; }
  .mega-menu__list--media > li:nth-child(2) { animation-delay: 0.05s !important; }
  .mega-menu__list--media > li:nth-child(3) { animation-delay: 0.1s !important; }
  .mega-menu__list--media > li:nth-child(4) { animation-delay: 0.15s !important; }
}

/* ==== components/drawer-menu.css ==== */
/* スマホのハンバーガーメニュー（07 §3-2 の5段） */
.drawer-menu {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0, 0, 0, 0.55);
}
.drawer-menu[hidden] { display: none; }
.drawer-menu__panel {
  position: absolute; inset: 0 0 0 auto; width: min(100%, 420px);
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--color-header-bg); color: var(--color-white);
  padding: 0 20px 40px;
}
.drawer-menu__head { display: flex; align-items: center; justify-content: space-between; height: 61px; border-bottom: 1px solid var(--color-header-line); margin: 0 -20px 8px; padding: 0 6px 0 20px; }
.drawer-menu__logo img { width: 140px; }
.drawer-menu__close { position: relative; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; }
.drawer-menu__close-icon::before, .drawer-menu__close-icon::after {
  content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 1px; background: var(--color-white);
}
.drawer-menu__close-icon::before { transform: rotate(45deg); }
.drawer-menu__close-icon::after { transform: rotate(-45deg); }
.drawer-menu__heading { margin: 20px 0 6px; font-family: var(--font-en); font-size: 12px; font-weight: 600; color: var(--color-footer-sub); letter-spacing: 0.14em; }
.drawer-menu__list { border-top: 1px solid var(--color-footer-line); }
.drawer-menu__list + .drawer-menu__list { margin-top: 20px; }
.drawer-menu__group { border-bottom: 1px solid var(--color-footer-line); }
.drawer-menu__summary, .drawer-menu__link, .drawer-menu__bpo {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px;
  font-size: 15px; font-weight: var(--fw-bold); text-decoration: none; cursor: pointer; list-style: none;
}
.drawer-menu__summary::-webkit-details-marker { display: none; }
.drawer-menu__summary::after { content: "+"; font-family: var(--font-en); font-size: 20px; font-weight: 500; }
.drawer-menu__details[open] > .drawer-menu__summary::after { content: "−"; }
.drawer-menu__bpo { font-size: 14px; font-weight: var(--fw-regular); color: #d6d6d6; }
.drawer-menu__sublist { padding: 0 0 12px 12px; }
.drawer-menu__sublink { display: flex; align-items: center; min-height: 44px; font-size: 14px; color: #d6d6d6; text-decoration: none; }
.drawer-menu .office-banner { margin-top: 24px; }
.drawer-menu__cta { display: grid; gap: 12px; margin-top: 24px; }
.drawer-menu__cta .c-btn { width: 100%; justify-content: center; }
.drawer-menu__tel { margin-top: 4px; text-align: center; font-size: 18px; font-weight: var(--fw-bold); }
.drawer-menu__tel a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.drawer-menu__hours { text-align: center; font-size: 13px; color: var(--color-footer-sub); }
.drawer-menu__services { margin-top: 24px; }
.drawer-menu__ext-list { display: grid; gap: 0; }
.drawer-menu__ext { display: flex; align-items: center; min-height: 44px; font-size: 14px; color: #d6d6d6; text-decoration: none; }
body.is-drawer-open { overflow: hidden; }

/* 開閉の動き（drawer.js が .is-open を付け外し。閉じる動きが終わってから hidden） */
@media (prefers-reduced-motion: no-preference) {
  .drawer-menu { transition: opacity 0.35s ease; }
  .drawer-menu__panel { transition: transform 0.45s var(--motion-ease-out, ease-out); }
  .drawer-menu:not(.is-open) { opacity: 0; }
  .drawer-menu:not(.is-open) .drawer-menu__panel { transform: translate3d(100%, 0, 0); }
  .drawer-menu__body > *, .drawer-menu .office-banner, .drawer-menu__cta, .drawer-menu__services {
    transition: opacity 0.5s ease, transform 0.6s var(--motion-ease-out, ease-out);
  }
  .drawer-menu:not(.is-open) .drawer-menu__body > *,
  .drawer-menu:not(.is-open) .office-banner,
  .drawer-menu:not(.is-open) .drawer-menu__cta,
  .drawer-menu:not(.is-open) .drawer-menu__services { opacity: 0; transform: translate3d(24px, 0, 0); }
  .drawer-menu.is-open .drawer-menu__body > :nth-child(2) { transition-delay: 0.08s; }
  .drawer-menu.is-open .drawer-menu__body > :nth-child(3) { transition-delay: 0.14s; }
  .drawer-menu.is-open .office-banner { transition-delay: 0.2s; }
  .drawer-menu.is-open .drawer-menu__cta { transition-delay: 0.26s; }
  .drawer-menu.is-open .drawer-menu__services { transition-delay: 0.32s; }
  .drawer-menu__summary::after { transition: transform 0.3s ease; }
  .site-header__burger-lines span { transition: transform 0.3s ease, opacity 0.3s ease; }
}
.drawer-menu__summary:active, .drawer-menu__link:active, .drawer-menu__sublink:active { background: rgba(255, 255, 255, 0.06); }
/* オフィスデザイン（2026-10-13）: バナー枠をやめた文字リンク1行。BPO事業と同じ形で、文字は控えめ */
.drawer-menu__office { display: flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: var(--fw-regular); color: #bdbdbd; text-decoration: none; }
/* 運営サービスのセキュリティチョイス2種はロゴのリンク（sc-logo。2026-10-13） */
.drawer-menu__ext-list .sc-logo-item { padding: 6px 0; }
.drawer-menu__sublist .sc-logo-item { padding: 6px 0; } /* 「メディア」の開閉の中のロゴ（2026-10-13 第2版） */

/* ==== components/sc-logo.css ==== */
/* セキュリティチョイスのロゴのリンク（sc-logo）。2026-10-13 ブラッシュアップ第2弾で共通部品に移した
   （元は pages/security.css・pages/company.css に同じ定義が2つ。中身は同じ）。ロゴは白文字なので濃い地のピル */
.sc-logo-row { margin-top: 12px; }
.sc-logo { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 16px; border-radius: 8px; background: #111111; vertical-align: middle; }
.sc-logo img { display: block; width: auto; height: 26px; }
.sc-logo:hover { background: #2a2a2a; }
.sc-logo:focus-visible { outline: 3px solid #111111; outline-offset: 2px; }
li.sc-logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
/* 濃い地（フッター・ドロワー）用: 地と同化しないよう細い枠。フォーカスの枠は白 */
.sc-logo--on-dark { border: 1px solid rgba(255, 255, 255, 0.28); background: transparent; }
.sc-logo--on-dark:hover { background: #1f1f1f; border-color: rgba(255, 255, 255, 0.5); }
.sc-logo--on-dark:focus-visible { outline-color: #ffffff; }
.sc-logo--on-dark img { height: 22px; }

/* ==== components/section-heading.css ==== */
/* 英字（飾り）＋日本語見出しの2段（現行・Figma の見せ方。英字は見出しタグにしない: 04 §6-3） */
.c-heading { margin-bottom: 44px; }
.c-heading--center { text-align: center; }
.c-heading__en {
  overflow: hidden; padding-bottom: 0.06em;
  font-family: var(--font-en); font-size: var(--fs-en-heading); font-weight: 600;
  line-height: 1.2; letter-spacing: 0.02em; color: var(--color-heading-en);
}
.c-heading__ja {
  margin-top: 10px; font-size: var(--fs-h2); font-weight: var(--fw-bold);
  line-height: var(--lh-heading); letter-spacing: var(--ls-heading);
}
.c-heading__ja::after {
  content: ""; display: block; width: 48px; height: 3px; margin-top: 14px; border-radius: 2px;
  background: var(--grad-brand); transform-origin: left center;
}
.c-heading--center .c-heading__ja::after { margin-inline: auto; transform-origin: center; }
@media (max-width: 767px) {
  .c-heading { margin-bottom: 28px; }
  .c-heading__ja { margin-top: 6px; }
}

/* ==== components/flow.css ==== */
.c-flow { display: grid; gap: 16px; counter-reset: flow; }
.c-flow__item {
  display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 32px;
  padding: 28px 40px; background: var(--color-white); border-radius: var(--radius-card); box-shadow: var(--shadow-card);
}
.c-flow__num {
  font-family: var(--font-en); font-size: 64px; font-weight: 600; line-height: 1;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.c-flow__title { font-size: var(--fs-h3); font-weight: var(--fw-bold); line-height: var(--lh-heading); margin-bottom: 6px; }
@media (max-width: 767px) {
  .c-flow__item { grid-template-columns: 56px 1fr; gap: 16px; padding: 20px; align-items: start; }
  .c-flow__num { font-size: 34px; padding-top: 2px; }
}

/* ==== components/faq.css ==== */
.c-faq { display: grid; gap: 12px; }
.c-faq__item { background: var(--color-white); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.c-faq__q {
  position: relative; display: flex; align-items: center; gap: 18px; min-height: 64px;
  padding: 18px 64px 18px 24px; cursor: pointer; list-style: none; font-weight: var(--fw-bold); line-height: 1.6;
}
.c-faq__q::-webkit-details-marker { display: none; }
.c-faq__q::after {
  content: ""; position: absolute; right: 28px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--color-navy); border-bottom: 2px solid var(--color-navy); transform: rotate(45deg); transition: transform 0.2s ease;
}
.c-faq__item[open] > .c-faq__q::after { transform: translateY(4px) rotate(-135deg); }
.c-faq__mark {
  flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad-brand); color: var(--color-white); font-family: var(--font-en); font-weight: 600; font-size: 16px;
}
.c-faq__mark--a { background: var(--color-white); color: var(--color-navy); border: 2px solid var(--color-navy); }
.c-faq__a { display: flex; gap: 18px; padding: 0 24px 24px; }
.c-faq__a-body { padding-top: 4px; }
.c-faq__a-body p + p { margin-top: 4px; }
@media (max-width: 767px) {
  .c-faq__q { gap: 12px; padding: 14px 48px 14px 16px; }
  .c-faq__q::after { right: 20px; }
  .c-faq__a { gap: 12px; padding: 0 16px 18px; }
  .c-faq__mark { width: 32px; height: 32px; font-size: 14px; }
}

/* ==== components/table.css ==== */
/* 比較表（現行 /bpo/ の比較表の配色: 列見出し BPO #0F659B・タイミー #F9D828、行見出しはグラデーション、セルは2色の交互） */
.c-table-wrap { width: 100%; }
.c-compare { width: calc(100% + 20px); margin: -10px; border-spacing: 10px; table-layout: fixed; }
.c-compare th, .c-compare td { padding: 22px 24px; border-radius: 4px; vertical-align: middle; line-height: 1.7; }
.c-compare__corner { width: 22%; background: none; }
.c-compare__col { text-align: center; font-size: 19px; font-weight: var(--fw-bold); }
.c-compare__col--bpo { background: var(--color-th-bpo); color: var(--color-white); }
.c-compare__col--timee { background: var(--color-th-timee); color: var(--color-text); }
.c-compare__row { background: var(--grad-row); color: var(--color-white); font-size: 17px; font-weight: var(--fw-bold); text-align: center; }
.c-compare tbody tr:nth-child(odd) td { background: var(--color-cell-1); }
.c-compare tbody tr:nth-child(even) td { background: var(--color-cell-2); }
.c-compare td { font-size: 16px; }

/* スマホ: 行見出しを上に横長で出し、その下に2列（横にはみ出さない: 計画 R5） */
@media (max-width: 767px) {
  .c-compare { margin: 0; width: 100%; border-spacing: 0; }
  .c-compare thead tr, .c-compare tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .c-compare thead tr { margin-bottom: 6px; }
  .c-compare__corner { display: none; }
  .c-compare tbody tr + tr { margin-top: 14px; }
  .c-compare__row { grid-column: 1 / -1; }
  .c-compare th, .c-compare td { padding: 12px 14px; font-size: 14.5px; }
  .c-compare__col { font-size: 15px; }
  .c-compare tbody tr:nth-child(even) td { background: var(--color-cell-1); }
}

/* ==== components/office-banner.css ==== */
/* オフィスデザインの文字バナー（写真なし: K-13） */
.office-banner {
  position: relative; display: grid; gap: 6px; overflow: hidden;
  padding: 40px 120px 40px 48px; border-radius: var(--radius-panel);
  background: var(--color-panel-1); color: var(--color-white); text-decoration: none;
}
.office-banner::before, .office-banner::after {
  content: ""; position: absolute; width: 40px; height: 220px; border-radius: 999px; transform: rotate(45deg); opacity: 0.35;
}
.office-banner::before { right: 120px; top: -70px; background: var(--color-panel-2); }
.office-banner::after { right: 40px; top: -20px; background: var(--color-aqua); }
.office-banner__en { font-family: var(--font-en); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: #9cc4e4; }
.office-banner__title { font-size: 24px; font-weight: var(--fw-bold); line-height: 1.5; }
.office-banner__text { font-size: 15px; line-height: 1.8; }
.office-banner__more { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; font-weight: var(--fw-bold); text-decoration: underline; text-underline-offset: 4px; }
.office-banner__arrow { position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--color-white); }
.office-banner__arrow::before { content: ""; position: absolute; inset: 0; margin: auto; width: 8px; height: 8px; border-top: 2px solid var(--color-panel-1); border-right: 2px solid var(--color-panel-1); transform: translateX(-2px) rotate(45deg); }
.office-banner:hover .office-banner__arrow { transform: translateX(4px); transition: transform 0.2s ease; }
.office-banner--compact { padding: 16px 70px 16px 24px; border-radius: 12px; }
.office-banner--compact .office-banner__title { font-size: 15px; }
.office-banner--compact .office-banner__text { font-size: 12.5px; }
.office-banner--compact .office-banner__en, .office-banner--compact .office-banner__more { display: none; }
.office-banner--drawer { padding: 24px 20px; border-radius: 14px; }
.office-banner--drawer .office-banner__title { font-size: 17px; }
.office-banner--drawer .office-banner__text { font-size: 13.5px; }
@media (max-width: 767px) {
  .office-banner { padding: 28px 22px; }
  .office-banner__title { font-size: 19px; }
  .office-banner::before { right: 40px; }
  .office-banner::after { right: -10px; }
}

/* ==== components/cta-block.css ==== */
/* ページ末尾の問い合わせ帯（現行: 写真＋紺の半透明の重ね・白文字中央・丸い白ボタン） */
.cta-block { position: relative; overflow: hidden; color: var(--color-white); text-align: center; background: var(--color-panel-1); }
.cta-block__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-block::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(135deg, rgba(15, 78, 139, 0.9), rgba(11, 102, 161, 0.82)); }
.cta-block__inner { position: relative; z-index: 2; width: min(calc(100% - var(--gutter) * 2), 960px); margin: 0 auto; padding: 110px 0; }
.cta-block__en { font-family: var(--font-en); font-size: var(--fs-en-heading); font-weight: 600; line-height: 1.2; }
.cta-block__title { margin-top: 10px; font-size: clamp(22px, 2.4vw, 32px); font-weight: var(--fw-bold); line-height: 1.5; letter-spacing: var(--ls-heading); }
.cta-block__text { margin: 24px auto 0; max-width: 720px; font-size: 16px; line-height: 2; }
.cta-block__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 24px; margin-top: 40px; }
.cta-block__btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 300px; min-height: 64px;
  padding: 0 10px 0 30px; border: 1px solid rgba(255, 255, 255, 0.8); border-radius: var(--radius-btn);
  color: var(--color-white); font-weight: var(--fw-bold); text-decoration: none; letter-spacing: 0.06em;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.cta-block__btn--primary { background: var(--color-white); color: var(--color-panel-1); }
.cta-block__btn:hover { background: rgba(255, 255, 255, 0.15); }
.cta-block__btn--primary:hover { background: #e8f0f8; }
.cta-block__btn-arrow { position: relative; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--color-white); }
.cta-block__btn--primary .cta-block__btn-arrow { background: var(--grad-brand); }
.cta-block__btn-arrow::before { content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border-top: 2px solid var(--color-panel-1); border-right: 2px solid var(--color-panel-1); transform: translateX(-2px) rotate(45deg); }
.cta-block__btn--primary .cta-block__btn-arrow::before { border-color: var(--color-white); }
.cta-block__info { margin-top: 28px; font-size: 16px; }
.cta-block__info a { display: inline-block; padding: 10px 0; color: inherit; }
@media (max-width: 767px) {
  .cta-block__inner { padding: 72px 0; }
  .cta-block__text { font-size: 16px; text-align: left; }
  .cta-block__btns { flex-direction: column; align-items: stretch; }
  .cta-block__btn { min-width: 0; min-height: 58px; padding-left: 22px; }
}

/* 写真なしの「光」の見た目（Figma /creative-branding/ の CONTACT US）。cta-block に cta_bg を渡さないとこちら */
.cta-block--glow { background: #111111; }
.cta-block--glow::before {
  inset: -20%; z-index: 1;
  background:
    radial-gradient(40% 50% at 70% 45%, rgba(53, 76, 255, 0.55), transparent 70%),
    radial-gradient(35% 45% at 45% 75%, rgba(0, 159, 207, 0.45), transparent 70%),
    radial-gradient(30% 40% at 85% 85%, rgba(185, 57, 128, 0.45), transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  .cta-block--glow.is-inview::before { animation: cta-glow-drift 4.5s var(--motion-ease-out) both; } /* 画面に入ると一度だけ光が動いて止まる */
  @keyframes cta-glow-drift { from { transform: translate3d(-4%, 2%, 0) rotate(0deg); } to { transform: translate3d(4%, -3%, 0) rotate(8deg); } }
}
@media (min-width: 1024px) {
  .cta-block--glow { text-align: left; }
  .cta-block--glow .cta-block__inner { width: min(calc(100% - 80px), 1200px); }
  .cta-block--glow .cta-block__text { margin-left: 0; }
  .cta-block--glow .cta-block__btns { justify-content: flex-start; }
}

/* ==== components/site-footer.css ==== */
/* 現行「STACK Original Footer」のデザインを引き継ぐ（値は現行のインライン CSS から） */
.site-footer { background: var(--color-footer-bg); color: var(--color-white); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer__inner {
  width: min(calc(100% - 80px), 1240px); margin: 0 auto; padding: 92px 0 78px;
  display: grid; grid-template-columns: 240px minmax(0, 1fr) 230px; gap: 40px; align-items: start;
}
.site-footer__logo-link { display: inline-flex; align-items: center; min-height: 48px; }
.site-footer__logo { width: 190px; }
.site-footer__company { margin-top: 34px; display: flex; flex-direction: column; gap: 5px; font-size: 13px; line-height: 1.8; letter-spacing: 0.03em; color: var(--color-footer-sub); }
.site-footer__company-name { margin-bottom: 4px; color: var(--color-white); font-weight: var(--fw-bold); }
.site-footer__company a { display: inline-flex; align-items: center; min-height: 44px; width: fit-content; color: var(--color-footer-sub); }
.site-footer__company a:hover { color: var(--color-white); }
.site-footer__dx { margin-top: 20px; font-size: 12px; line-height: 1.7; color: var(--color-footer-sub); }
.site-footer__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.site-footer__nav-title {
  margin: 0 0 24px; font-family: var(--font-ja); font-size: 14px; font-weight: var(--fw-bold);
  line-height: 1; letter-spacing: 0.13em; color: var(--color-footer-label);
}
.site-footer__nav-list { display: flex; flex-direction: column; gap: 6px; }
.site-footer__nav-list a {
  position: relative; display: inline-block; padding: 6px 0; font-size: 15px; font-weight: var(--fw-regular);
  line-height: 1.65; letter-spacing: 0.02em; color: var(--color-footer-text);
}
.site-footer__nav-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: #fff; transform: scaleX(0); transform-origin: left center; transition: transform 0.25s ease; }
.site-footer__nav-list a:hover { color: #fff; }
.site-footer__nav-list a:hover::after { transform: scaleX(1); }
.site-footer__nav-list--ext a { font-size: 14px; }
.site-footer__cta { border-top: 1px solid var(--color-footer-line); }
.site-footer__bottom { border-top: 1px solid var(--color-footer-line); }
.site-footer__cta-link { display: block; transition: background-color 0.3s ease; }
.site-footer__cta-link:hover { background: #151515; }
.site-footer__cta-inner { width: min(calc(100% - 80px), 1240px); min-height: 310px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.site-footer__cta-copy { display: flex; flex-direction: column; gap: 18px; }
.site-footer__cta-kicker { font-family: var(--font-en); font-size: clamp(76px, 8vw, 132px); font-weight: 600; line-height: 0.9; letter-spacing: 0.01em; }
.site-footer__cta-text { font-size: 18px; line-height: 1.8; letter-spacing: 0.04em; color: #d4d4d4; }
.site-footer__cta-arrow { position: relative; flex: 0 0 auto; width: 86px; height: 86px; border: 1px solid rgba(255, 255, 255, 0.42); border-radius: 50%; transition: background-color 0.3s ease, transform 0.3s ease; }
.site-footer__cta-arrow { display: grid; place-items: center; font-size: 38px; line-height: 1; }
.site-footer__cta-arrow::before { content: "↗"; }
.site-footer__cta-link:hover .site-footer__cta-arrow { background: #fff; color: #111; }
.site-footer__bottom-inner { width: min(calc(100% - 80px), 1240px); margin: 0 auto; min-height: 74px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.site-footer__copyright { font-size: 11px; line-height: 1.5; letter-spacing: 0.08em; color: var(--color-footer-label); }
.site-footer__copyright small { font-size: inherit; }

@media (max-width: 1023px) {
  .site-footer__bottom { padding-bottom: calc(var(--sp-cta-h) + env(safe-area-inset-bottom)); }
  .site-footer__inner, .site-footer__cta-inner, .site-footer__bottom-inner { width: min(calc(100% - 56px), 1240px); }
  .site-footer__inner { grid-template-columns: 1fr; gap: 56px; padding: 78px 0 68px; }
  .site-footer__cta-inner { min-height: 260px; }
}
@media (max-width: 767px) {
  .site-footer__inner, .site-footer__cta-inner, .site-footer__bottom-inner { width: calc(100% - 40px); }
  .site-footer__inner { gap: 48px; padding: 62px 0 54px; }
  .site-footer__logo { width: 158px; }
  .site-footer__company { margin-top: 27px; font-size: 12px; }
  .site-footer__nav { grid-template-columns: 1fr; gap: 42px; }
  .site-footer__nav-title { margin-bottom: 20px; font-size: 13px; }
  .site-footer__nav-list { gap: 0; border-top: 1px solid var(--color-footer-line); }
  .site-footer__nav-list li { border-bottom: 1px solid var(--color-footer-line); }
  .site-footer__nav-list a { width: 100%; display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 11px 0; font-size: 14px; line-height: 1.5; }
  .site-footer__nav-list a::before { content: "↗"; order: 2; margin-left: 18px; font-size: 15px; color: var(--color-footer-label); }
  .site-footer__nav-list a::after { display: none; }
  .site-footer__cta-inner { min-height: 220px; padding: 46px 0 42px; align-items: flex-end; gap: 20px; }
  .site-footer__cta-kicker { font-size: 40px; line-height: 0.88; }
  .site-footer__cta-text { font-size: 14px; line-height: 1.75; }
  .site-footer__cta-arrow { width: 56px; height: 56px; margin-bottom: 4px; }
  .site-footer__cta-arrow { font-size: 27px; }
  .site-footer__bottom-inner { min-height: 64px; padding: 12px 0; }
}
/* DX認定ロゴ（2026-10-13 青木さん決定）: 濃い地に「基本カラー文字白ヌキ」版。原寸（高さ160px）より小さく表示 */
.site-footer__dx { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.site-footer__dx-logo { display: block; width: auto; height: 36px; }
/* 運営サービスのセキュリティチョイス2種はロゴのリンク（sc-logo。2026-10-13）。文字リンクの下線・矢印は付けない */
.site-footer__nav-list a.sc-logo { display: inline-flex; width: auto; min-height: 48px; padding: 10px 16px; }
.site-footer__nav-list a.sc-logo::after, .site-footer__nav-list a.sc-logo::before { content: none; display: none; }
.site-footer__nav-list .sc-logo-item { padding: 4px 0; }
@media (max-width: 767px) {
  .site-footer__nav-list .sc-logo-item { padding: 12px 0; }
}

/* ==== components/motion.css ==== */
/* =========================================================
   動きの共通部品（14 §11「動きの実装ルール」）
   - 動かすのは transform / translate / scale / opacity だけ（CLS を出さない）
   - 初期状態を隠すのは <html class="js">（main.js が付ける）かつ reduced-motion でないときだけ
     → JS が無い・失敗しても全文が見える
   - FV の文字・LCP 画像は透明にしない（transform だけの登場）
   使い方は README「動きの部品」
   ========================================================= */
/* 変数（--motion-ease など）は motion-intro.css（HTML に埋め込み）で定義 */
html { -webkit-tap-highlight-color: transparent; }

@media (prefers-reduced-motion: no-preference) {
  /* ---- data-motion: スクロールで1回だけ現れる ---- */
  .js [data-motion] {
    transition: opacity var(--motion-dur) var(--motion-ease), transform var(--motion-dur) var(--motion-ease-out);
    transition-delay: calc(var(--motion-i, 0) * var(--motion-step) + var(--motion-delay, 0ms));
  }
  .js [data-motion]:not(.is-inview) { opacity: 0; }
  .js [data-motion="fade-up"]:not(.is-inview) { transform: translate3d(0, var(--motion-dist), 0); }
  .js [data-motion="slide-left"]:not(.is-inview) { transform: translate3d(-56px, 0, 0); }
  .js [data-motion="slide-right"]:not(.is-inview) { transform: translate3d(56px, 0, 0); }
  .js [data-motion="zoom"]:not(.is-inview) { transform: scale(0.94); }

  /* heading: 英字は下からせり上がる（マスク）、日本語は少し遅れて、下線が伸びる */
  .js [data-motion="heading"]:not(.is-inview) { opacity: 1; }
  .js [data-motion="heading"] .c-heading__en > span { display: inline-block; transition: transform 1s var(--motion-ease-out); }
  .js [data-motion="heading"]:not(.is-inview) .c-heading__en > span { transform: translate3d(0, 105%, 0); }
  .js [data-motion="heading"] .c-heading__ja { transition: opacity 0.8s var(--motion-ease) 0.25s, transform 0.8s var(--motion-ease-out) 0.25s; }
  .js [data-motion="heading"]:not(.is-inview) .c-heading__ja { opacity: 0; transform: translate3d(0, 16px, 0); }
  .js [data-motion="heading"] .c-heading__ja::after { transition: transform 0.9s var(--motion-ease-out) 0.45s; }
  .js [data-motion="heading"]:not(.is-inview) .c-heading__ja::after { transform: scaleX(0); }

  /* reveal: 画像の上の幕が引いて、画像が少し縮みながら現れる */
  .js [data-motion="reveal"]:not(.is-inview) { opacity: 1; }
  .js [data-motion="reveal"] { position: relative; overflow: hidden; }
  .js [data-motion="reveal"]::after {
    content: ""; position: absolute; inset: 0; z-index: 3; background: var(--color-aqua);
    transform-origin: right center; transition: transform 1.1s var(--motion-ease-out) 0.15s;
  }
  .js [data-motion="reveal"].is-inview::after { transform: scaleX(0); }
  .js [data-motion="reveal"] img { transition: transform 1.6s var(--motion-ease-out) 0.15s; }
  .js [data-motion="reveal"]:not(.is-inview) img { transform: scale(1.18); }


  /* ---- 流れる英字（aria-hidden の飾り）: 画面に入ると一度だけ流れて止まる（4.5 秒。WCAG 2.2.2 を止めるボタンなしで満たす） ---- */
  .c-marquee.is-inview .c-marquee__track { animation: motion-marquee 4.5s var(--motion-ease-out) both; }
  @keyframes motion-marquee {
    from { transform: translate3d(6%, 0, 0); }
    to { transform: translate3d(-22%, 0, 0); }
  }

  /* ---- スクロールに連動する飾り（対応ブラウザだけ。JS 不要） ---- */
  @supports (animation-timeline: view()) {
    [data-parallax] { animation: motion-parallax linear both; animation-timeline: view(); }
    [data-parallax="up"] { animation-name: motion-parallax-up; }
    @keyframes motion-parallax { from { translate: 0 -70px; } to { translate: 0 70px; } }
    @keyframes motion-parallax-up { from { translate: 0 90px; } to { translate: 0 -90px; } }
  }
  @supports (animation-timeline: scroll()) {
    .scroll-progress {
      display: block; animation: motion-progress linear both; animation-timeline: scroll(root);
    }
    @keyframes motion-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }

  /* ---- 背景写真のズーム（一度だけ） ---- */
  [data-play].is-inview .motion-kenburns { animation: motion-kenburns 4.5s var(--motion-ease-out) both; } /* 画面に入ると一度だけゆっくり寄って止まる */
  @keyframes motion-kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }

}


/* ---- 流れる英字の土台（動かないときも1行で表示） ---- */
.c-marquee { overflow: hidden; white-space: nowrap; }
.c-marquee__track { display: inline-flex; width: max-content; }
.c-marquee__group { flex: 0 0 auto; padding-right: 0.5em; }

/* ---- スクロール量のバー（ヘッダー下端。非対応ブラウザでは出ない） ---- */
.scroll-progress {
  display: none; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--grad-brand); transform-origin: left center; pointer-events: none;
}

/* ---- 押したときの反応（タップ・クリック。軽い transform だけ） ---- */
.c-btn:active, .cta-block__btn:active, .sp-fixed-cta__btn:active, .office-banner:active { transform: scale(0.97); }
.sp-fixed-cta__btn { transition: transform 0.15s ease, filter 0.15s ease; }
.sp-fixed-cta__btn:active { filter: brightness(0.92); }

/* ---- ホバー（マウスのある端末だけ） ---- */
@media (hover: hover) and (pointer: fine) {
  .c-btn .c-btn__arrow, .cta-block__btn-arrow, .office-banner__arrow { transition: transform 0.35s var(--motion-ease-out); }
  .c-btn:hover .c-btn__arrow, .cta-block__btn:hover .cta-block__btn-arrow { transform: translateX(6px); }
  .c-textlink::after { transition: transform 0.3s var(--motion-ease-out); }
  .c-textlink:hover::after { transform: translateX(5px) rotate(45deg); }
  /* 持ち上がり: 出現（transform）と別の translate を使い、出現の遅れ（stagger）を消さない */
  .motion-lift { transition: translate 0.45s var(--motion-ease-out), box-shadow 0.45s var(--motion-ease-out); }
  .js [data-motion].motion-lift {
    transition-property: opacity, transform, translate, box-shadow;
    transition-duration: var(--motion-dur), var(--motion-dur), 0.45s, 0.45s;
    transition-timing-function: var(--motion-ease), var(--motion-ease-out), var(--motion-ease-out), var(--motion-ease-out);
    transition-delay: calc(var(--motion-i, 0) * var(--motion-step)), calc(var(--motion-i, 0) * var(--motion-step)), 0s, 0s;
  }
  .motion-lift:hover { translate: 0 -6px; box-shadow: 0 22px 44px rgba(21, 74, 125, 0.16); }
  .motion-zoom-img img { transition: transform 1s var(--motion-ease-out); }
  .motion-zoom-img:hover img { transform: scale(1.06); }
}

/* ---- 開閉の動き（FAQ・ドロワーの開閉・メガメニュー） ---- */
@media (prefers-reduced-motion: no-preference) {
  details[open] > .motion-open { animation: motion-open 0.45s var(--motion-ease-out); }
  @keyframes motion-open { from { opacity: 0; transform: translate3d(0, -10px, 0); } to { opacity: 1; transform: none; } }
}

/* ==== components/form.css ==== */
/* =========================================================
   フォーム（c-form）: /recruit/ の応募・お問い合わせフォーム。/contact/ と共通にできる作り（2026-10-12 追加・承認待ち）
   - ページの pages.json の css に入れたページだけに入る（全ページの共通 CSS には入れていない＝既存ページは変わらない）
   - 色はモノトーン系の変数（.page-mono）。誤りの表示は赤字だけに頼らず、記号（!）＋文で示す（13 p2 §8）
   ========================================================= */
.c-form { padding: 40px 48px; }
.c-form__fields { display: grid; gap: 24px; }
.c-form__fields[hidden] { display: none; } /* 確認画面に切り替えたときに入力欄を隠す（display: grid が hidden 属性を上書きしていた。2026-10-18 修正） */
.c-form__field { margin: 0; padding: 0; border: 0; min-width: 0; }
.c-form__field[hidden] { display: none; }
.c-form__label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 16px; font-weight: var(--fw-bold); line-height: 1.6; color: var(--mono-ink); }
.c-form__req, .c-form__opt { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 13px; font-weight: var(--fw-bold); line-height: 1.6; } /* ラベルの印（14 §7 R2 のラベル扱い） */
.c-form__req { background: var(--mono-ink); color: var(--mono-white); }
.c-form__opt { border: 1px solid var(--mono-sub); color: var(--mono-sub); }
.c-form__control {
  display: block; width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--mono-sub); border-radius: 6px;
  background: var(--mono-white); color: var(--mono-ink); font: inherit; font-size: 16px; line-height: 1.6; /* 16px: iOS で入力時に拡大されない大きさ */
}
textarea.c-form__control { min-height: 120px; resize: vertical; }
.c-form__control:focus-visible { outline: 3px solid var(--mono-ink); outline-offset: 2px; }
.c-form__control[aria-invalid="true"] { border-color: #b3261e; border-width: 2px; }
.c-form__help { margin-top: 6px; font-size: 16px; line-height: 1.7; color: var(--mono-sub); }
.c-form__error { display: flex; gap: 8px; margin-top: 6px; font-size: 16px; font-weight: var(--fw-bold); line-height: 1.6; color: #b3261e; } /* #b3261e は白地で 6.5:1 */
.c-form__error::before { content: "!"; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: #b3261e; color: #fff; font-size: 14px; line-height: 22px; text-align: center; }
.c-form__error[hidden] { display: none; }
.c-form__check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; font-size: 16px; line-height: 1.7; cursor: pointer; }
.c-form__check a { display: inline-flex; align-items: center; min-height: 44px; } /* 同意の文の中のリンクも押せる高さ 44px（14 §7 R3） */
.c-form__check { align-items: center; }
.c-form__check input { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 3px; accent-color: var(--mono-ink); }
.c-form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.c-btn--mono-outline-dark { border: 2px solid var(--mono-ink); border-radius: var(--mono-btn-radius); padding: 0 24px; background: transparent; color: var(--mono-ink); }
.c-btn--mono-outline-dark:hover { background: var(--mono-hover); }
.c-form__confirm-title { margin-bottom: 16px; font-size: clamp(20px, 1.8vw, 24px); font-weight: var(--fw-bold); }
.c-form__confirm-list { display: grid; grid-template-columns: minmax(0, 30%) minmax(0, 1fr); border-top: 1px solid var(--mono-table-line); }
.c-form__confirm-list dt, .c-form__confirm-list dd { padding: 12px 8px; border-bottom: 1px solid var(--mono-table-line); font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-wrap; }
.c-form__confirm-list dt { font-weight: var(--fw-bold); }
.c-form__done:focus { outline: none; }
@media (max-width: 767px) {
  .c-form { padding: 26px 20px; }
  .c-form__actions .c-btn { width: 100%; justify-content: space-between; }
  .c-form__confirm-list { grid-template-columns: minmax(0, 1fr); }
  .c-form__confirm-title { font-size: 19px; } /* 確認画面の h3 は型の「囲みの中の h3」（PC 20〜24px・スマホ 19px。第2版） */
  .c-form__confirm-list dt { padding-bottom: 0; border-bottom: 0; }
}
