/* =====================================================
   SoftRoad 下層ページ共通スタイル
   ===================================================== */

/* Base */
body {
  font-family: "Noto Sans JP", "Inter", system-ui, sans-serif;
  color: #0F172A;
  font-feature-settings: "palt" 1, "pkna" 1;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { letter-spacing: 0.02em; }
.num-font { font-family: "Inter", "Noto Sans JP", system-ui, sans-serif; font-feature-settings: "tnum"; letter-spacing: 0; }

/* アンカーリンクでジャンプした際、固定ヘッダーに隠れないようオフセットを確保 */
[id] { scroll-margin-top: 74px; }
@media (min-width: 1024px) {
  [id] { scroll-margin-top: 90px; }
}

/* ===== ヘッダーナビ ドロップダウン ===== */
.nav-item { position: relative; }
/* 10/18: マウスオーバー時のオレンジバーを サービス〜SIerの方へ 全項目に表示
   (span 見出し・nav 直下の「SIerの方へ」リンクも対象) */
.nav-item > a, .nav-item > span,
nav[aria-label="グローバルナビゲーション"] > a { position: relative; }
/* 10/18: グロナビ項目(サービス〜SIerの方へ)をすべて太字に */
nav[aria-label="グローバルナビゲーション"] > .nav-item > a,
nav[aria-label="グローバルナビゲーション"] > .nav-item > span,
nav[aria-label="グローバルナビゲーション"] > a { font-weight: 700; }
.nav-item > a::after, .nav-item > span::after,
nav[aria-label="グローバルナビゲーション"] > a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 3px;
  background: #EA580C;
  transition: width 0.25s ease, left 0.25s ease;
}
.nav-item:hover > a::after,
.nav-item:has(:focus-visible) > a::after,
.nav-item.is-open > a::after,
.nav-item.is-open > span::after,
.nav-item:hover > span::after,
.nav-item:has(:focus-visible) > span::after,
nav[aria-label="グローバルナビゲーション"] > a:hover::after,
nav[aria-label="グローバルナビゲーション"] > a:focus-visible::after {
  width: 80%;
  left: 10%;
}
/* ===== グローバルナビ: メガメニュー(10/5 WF準拠) =====
   .nav-item は static にして、パネルは sticky ヘッダー基準で中央寄せ・コンテナ幅で展開 */
.nav-item { position: static; }
.nav-item > span { cursor: default; }
.nav-item:hover > a, .nav-item:has(:focus-visible) > a,
.nav-item:hover > span, .nav-item:has(:focus-visible) > span,
.nav-item.is-open > a, .nav-item.is-open > span { color: #1A3B7E; }
.nav-mega {
  position: absolute;
  top: 100%;
  left: 50%;
  width: min(1240px, calc(100vw - 32px));
  transform: translate(-50%, -6px);
  margin-top: 0;
  padding: 22px 32px 26px;
  background: #F1F4F8; /* 10/9 伊藤さんチェック: 白背景のページと区別するため薄いグレー */
  border: 1px solid #DCE3EC;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
  opacity: 0;
  visibility: hidden;
  /* 閉じる時は visibility を 0.25s 遅らせる: 狭い項目から斜めにパネルへ向かう途中でホバーが一瞬外れても、
     パネルが当たり判定を持ったままなので入り直せば開いたまま(ブリッジ要素は隣項目を塞ぐため使わない) */
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.25s;
  z-index: 50;
}
/* ナビ項目をヘッダーの高さ(80px)いっぱいのホバー領域にし、項目とパネルの間に隙間を作らない(ブリッジ要素は使わない) */
.nav-item > a, .nav-item > span,
nav[aria-label="グローバルナビゲーション"] > a { padding-top: 32px; padding-bottom: 32px; }
.nav-item > a::after, .nav-item > span::after,
nav[aria-label="グローバルナビゲーション"] > a::after { bottom: 26px; }
/* 10/18: .is-open はホバーで開いた後、メニュー内の項目かメニュー外をクリックするまで付いたまま(assets/js/site.js) */
.nav-item:hover > .nav-mega,
.nav-item:has(:focus-visible) > .nav-mega,
.nav-item.is-open > .nav-mega {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
  z-index: 51; /* 閉じかけの隣パネルより前面に */
}
/* メニュー内の項目をクリックした直後は、マウスがパネル上にあっても閉じる(マウスが離れたら解除) */
.nav-item.is-suppressed > .nav-mega {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.nav-mega-top, .nav-mega-cat {
  display: block;
  padding: 6px 0 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid #D5DCE6;
  font-size: 15px;
  font-weight: 900;
  color: #1A3B7E;
  transition: color 0.15s ease;
}
.nav-mega-cat { margin-top: 14px; }
/* 10/21 先方: 押せる項目は文字の右に丸囲みの→を付けて識別(ppc-master.jp 参照・矢印は気持ち大きめ)。
   10/22 先方: リンクのある中カテゴリはマウスオンで文字(とアイコン)をオレンジに */
a.nav-mega-top, a.nav-mega-cat { display: flex; align-items: center; gap: 8px; }
a.nav-mega-top:hover, a.nav-mega-cat:hover,
a.nav-mega-top:focus-visible, a.nav-mega-cat:focus-visible { color: #F97316; }
a.nav-mega-top::after, a.nav-mega-cat::after,
.nav-mega-grid a::after {
  content: '';
  flex: none;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: var(--nav-mega-arrow) center / contain no-repeat;
  mask: var(--nav-mega-arrow) center / contain no-repeat;
}
.nav-mega {
  --nav-mega-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='7'/%3E%3Cpath d='M4.75 8h6.5M8.5 5.25 11.25 8 8.5 10.75'/%3E%3C/svg%3E");
}
.nav-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px 20px;
}
/* 10/9 伊藤さんチェック/篠塚さん: 項目が2つ以下のメニュー(ブログ・FAQ等)はパネル中央に1つ飛ばしの間隔で配置 */
.nav-mega-grid--sparse { display: flex; justify-content: center; gap: 2px 80px; }
.nav-mega-grid--sparse > a { width: calc((100% - 60px) / 4); }
/* リンクの無いカテゴリ見出し(AI活用推進 など) */
span.nav-mega-top, span.nav-mega-cat { cursor: default; }
span.nav-mega-top:hover, span.nav-mega-cat:hover { color: #1A3B7E; }
.m-panel .m-cat span { display: block; padding: 10px 0 4px; font-size: 14.5px; font-weight: 700; color: rgba(255,255,255,.75); }
/* 10/9 伊藤さんチェック: 付加価値の実現(4項目) と 600名超/パターン一覧 の間に区切り線 */
.nav-mega-grid--sep { margin-top: 10px; padding-top: 10px; border-top: 1px solid #D5DCE6; }
.nav-mega-grid a {
  display: flex;
  align-items: center;
  padding: 9px 12px 9px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
  transition: background 0.15s ease, color 0.15s ease;
}
/* 10/21: 先頭の > はやめ、文字の右に丸囲みの→(上の ::after)。アイコンは紺、ホバー時はオレンジ */
.nav-mega-grid a { gap: 8px; }
.nav-mega-grid a::after { color: #1A3B7E; transition: color 0.15s ease; }
/* 10/13 先方: マウスオン時はネイビー背景＋白抜き文字 */
.nav-mega-grid a:hover, .nav-mega-grid a:focus-visible {
  background: #1A3B7E;
  color: #FFFFFF;
  text-decoration: none;
}
.nav-mega-grid a:hover::after, .nav-mega-grid a:focus-visible::after { color: #F97316; }
.nav-chevron { transition: transform 0.2s ease; }
.nav-item:hover .nav-chevron,
.nav-item:has(:focus-visible) .nav-chevron,
.nav-item.is-open .nav-chevron { transform: rotate(180deg); }

/* ===== Reveal アニメーション ===== */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal-left { transform: translateX(-44px); }
.reveal-right { transform: translateX(44px); }
.reveal.is-visible, .reveal-left.is-visible, .reveal-right.is-visible {
  opacity: 1;
  transform: none;
}

/* ===== CTA shadows ===== */
.shadow-cta { box-shadow: 0 4px 14px rgba(234, 88, 12, .35); }
.shadow-card { box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06); }

@media (prefers-reduced-motion: reduce) {
  .nav-mega { transition: opacity 0s, transform 0s, visibility 0s linear 0.25s; }
  .nav-chevron { transition: none; }
  .nav-item > a::after, .nav-item > span::after,
  nav[aria-label="グローバルナビゲーション"] > a::after { transition: none; }
  .reveal, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ===== Sub-nav 横スクロール時の薄いスクロールバー ===== */
.scrollbar-thin::-webkit-scrollbar { height: 4px; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 2px; }
.scrollbar-thin::-webkit-scrollbar-track { background: transparent; }
.scrollbar-thin { scrollbar-width: thin; scrollbar-color: #CBD5E1 transparent; }

/* ===== Sticky footer CTA safe area ===== */
@supports (padding: max(0px)) {
  .pb-safe { padding-bottom: max(env(safe-area-inset-bottom), 0px); }
}

/* ===== Customers Tag area ===== */
:root{
  /* ── ネイビー系：深く落ち着いた印象 */
  --navy:   #0F2A47;   /* メインネイビー  */
  --navy-2: #163558;   /* やや明るいネイビー */
  --navy-3: #1E4470;   /* カード背景等 */
  /* ── ブルー系 */
  --blue:   #1558A8;
  --blue-l: #2470CC;
  --blue-bg:#EBF3FB;
  /* ── ゴールドアクセント（大企業感・信頼感） */
  --gold:   #B8860B;
  --gold-l: #D4A017;
  --gold-bg:#FDF6E3;
  /* ── テキスト */
  --text:   #1C2A3A;
  --text-2: #2E4057;
  --text-3: #4A5C6E;
  /* ── グレー */
  --off:    #F4F6F9;
  --g100:   #E8EDF3;
  --g200:   #C8D0DB;
  --g400:   #8898A8;
  --g600:   #4A5C6E;
  --g800:   #1C2A3A;
  /* ── フォント */
  --ff-h:   'Syne','Noto Sans JP',sans-serif;
  --ff-n:   'Inter',sans-serif;   /* 数字・大見出し数値専用 */
  --ff-s:'Noto Sans JP',serif;      /* セリフ：格調 */
  --ff-b:   'Noto Sans JP',sans-serif;
  /* ── シャドウ */
  --shadow-xs: 0 1px 4px rgba(0,0,0,.06);
  --shadow-sm: 0 2px 10px rgba(0,0,0,.07);
  --shadow-md: 0 6px 24px rgba(0,0,0,.09);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.12);
  /* ── 角丸 */
  --r:  6px;
  --r2: 10px;
  --r3: 14px;
  /* 後方互換エイリアス */
  --accent:   var(--gold);
  --accent-h: var(--gold-l);
  --radius:   var(--r);
  --radius-lg:var(--r3);
  --navy-2-compat: var(--navy-2);
}
.ach-card {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
    border: 2px solid #0F2A47;
}
.ach-header
 {
    background: linear-gradient(90deg, #1558A8 0%, #1e4a8a 100%);
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.ach-header-inner {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.ach-num {
    font-family: var(--ff-n);
    font-size: 56px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.ach-lbl {
    font-family: var(--ff-s);
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, .9);
    letter-spacing: .01em;
    white-space: nowrap;
}

.ach-body {
    padding: 16px 20px;
}

.ach-company-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.ach-chip
 {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    background: rgba(255, 255, 255, .1);
    border: 1px solid #e3620f;
    color: #e3620f;
    padding: 3px 9px;
    border-radius: 100px;
    white-space: nowrap;
}

/* =====================================================
   モバイルメニュー：ハンバーガー + 全画面オーバーレイ
   ===================================================== */
.mobile-menu-btn {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid #E5E7EB; background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: #1A3B7E; cursor: pointer; flex-shrink: 0;
}
.mobile-menu-btn .burger { width: 18px; height: 13px; position: relative; }
.mobile-menu-btn .burger span {
  position: absolute; left: 0; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .2s ease, top .3s cubic-bezier(.22,1,.36,1);
}
.mobile-menu-btn .burger span:nth-child(1) { top: 0; }
.mobile-menu-btn .burger span:nth-child(2) { top: 5.5px; }
.mobile-menu-btn .burger span:nth-child(3) { top: 11px; }
.mobile-menu-btn[aria-expanded="true"] .burger span:nth-child(1) { top: 5.5px; transform: rotate(45deg); }
.mobile-menu-btn[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.mobile-menu-btn[aria-expanded="true"] .burger span:nth-child(3) { top: 5.5px; transform: rotate(-45deg); }

.mobile-overlay {
  position: fixed; inset: 0; z-index: 70;
  background: linear-gradient(165deg, #16305e, #1A3B7E 55%, #12234a);
  display: flex; flex-direction: column;
  opacity: 0; transform: scale(1.02); pointer-events: none;
  transition: opacity .38s cubic-bezier(.22,1,.36,1), transform .38s cubic-bezier(.22,1,.36,1);
}
.mobile-overlay.is-open { opacity: 1; transform: scale(1); pointer-events: auto; }

.mobile-overlay-head {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 10px;
}
.mobile-overlay-head .logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.mobile-overlay-head .logo-mark { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mobile-overlay-head .logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.mobile-overlay-head .logo-word { height: 24px; width: auto; }
.mobile-overlay-head .mobile-menu-btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.14); color: #fff; }

.mobile-overlay-body { flex: 1; overflow-y: auto; padding: 6px 20px 0; -webkit-overflow-scrolling: touch; }

.m-item { border-bottom: 1px solid rgba(255,255,255,.1); }
.m-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: none; border: none; text-align: left; cursor: pointer; font-family: inherit;
  padding: 16px 2px; font-size: 19px; font-weight: 900; color: #fff; letter-spacing: .01em;
}
.m-trigger .m-chev { width: 15px; height: 15px; color: rgba(255,255,255,.5); transition: transform .25s ease; flex: none; }
.m-item.is-open .m-trigger { color: #F97316; }
.m-item.is-open .m-trigger .m-chev { transform: rotate(180deg); color: #F97316; }

/* m-row: 第1階層のラベルはリンク（.m-link）、右端の三角だけがアコーディオン開閉（.m-toggle） */
.m-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.m-link {
  flex: 1; display: block; padding: 16px 2px; font-size: 19px; font-weight: 900; color: #fff;
  letter-spacing: .01em; text-decoration: none;
}
.m-toggle {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin: -8px -6px -8px 0;
  background: none; border: none; cursor: pointer;
}
.m-toggle .m-chev { width: 15px; height: 15px; color: rgba(255,255,255,.5); transition: transform .25s ease; flex: none; }
.m-item.is-open .m-link { color: #F97316; }
.m-item.is-open .m-toggle .m-chev { transform: rotate(180deg); color: #F97316; }
.m-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s cubic-bezier(.22,1,.36,1); }
.m-item.is-open .m-panel { grid-template-rows: 1fr; }
.m-panel-inner { overflow: hidden; }
.m-panel ul { list-style: none; margin: 0; padding: 0 0 14px 2px; display: flex; flex-direction: column; }
.m-panel a { display: flex; align-items: center; gap: 9px; padding: 8px 4px; font-size: 13.5px; color: rgba(255,255,255,.72); text-decoration: none; }
.m-panel a:active { color: #fff; }
.m-panel a::before { content: ""; width: 4px; height: 4px; border-radius: 1px; background: #F97316; transform: rotate(45deg); flex: none; }
.m-panel .m-cat { margin-top: 6px; }
.m-panel .m-cat a { font-size: 14.5px; font-weight: 700; color: #fff; }
.m-panel .m-cat a::before { width: 6px; height: 6px; }
.m-panel .m-cat ~ li:not(.m-cat) a { padding-left: 14px; }
.m-link.is-current { color: #F97316; }
span.m-link { cursor: default; }

.m-plain { display: block; padding: 16px 2px; font-size: 19px; font-weight: 900; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.1); }
.m-plain.is-current { color: #F97316; }

.mobile-overlay-foot { flex: none; padding: 16px 20px calc(18px + env(safe-area-inset-bottom, 0px)); }
.mobile-tel-row { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.mobile-tel-row svg { width: 17px; height: 17px; color: #F97316; flex: none; }
.mobile-tel-row .num-wrap { display: flex; flex-direction: column; line-height: 1.25; }
.mobile-tel-row .num-wrap b { font-size: 15px; }
.mobile-tel-row .num-wrap small { font-size: 10.5px; color: rgba(255,255,255,.55); font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .mobile-menu-btn .burger span, .mobile-overlay, .m-panel, .m-trigger .m-chev { transition: none; }
}
/* ===== ページトップへ戻るボタン(10/9 伊藤さんチェック) ===== */
.page-top {
  position: fixed; right: 16px; bottom: 96px; z-index: 45;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 9999px;
  background: #1A3B7E; color: #fff; border: 2px solid rgba(255,255,255,.85);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .25);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s, background .15s ease;
}
.page-top svg { width: 22px; height: 22px; }
.page-top.is-show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.page-top:hover { background: #EA580C; }
@media (min-width: 1024px) { .page-top { right: 24px; bottom: 110px; } }
/* フッター最下部にかかったらフェードを待たず即座に隠す(高速スクロール時にCopyrightと重ならないよう) */
.page-top.is-at-footer { opacity: 0; visibility: hidden; transition: none; }

/* 10/22 先方: フッターのメニューはマウスオンで下線 */
footer a:hover, footer a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* カード見出しをカード幅に合わせて縮小し、1行に収める（最長16文字想定）
   使い方: カードに .fit-title-card、見出しに .fit-title を付与
   16文字を超える見出しは style="--fit-chars: 文字数+0.6" で個別に調整 */
.fit-title-card { container-type: inline-size; }
.fit-title { font-size: min(1rem, calc((100cqi - 42px) / var(--fit-chars, 16.6))); white-space: nowrap; }
