/* Google Fonts は header.php で <link rel="preconnect"> + <link rel="stylesheet"> により読み込み（@import は直列読み込みで遅いため使用しない） */

/* HR BrEdge 社会保険労務士事務所 — base styles */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f5f6;
  --bg-soft: #fafafa;
  --bg-cream: #fffcf5;
  --bg-cream-deep: #e6dec9;
  --bg-deep: #0f1419;
  --bg-teal-deep: #0e3540;
  --bg-gray-deep: #f0f0f2;
  --ink: #0f1419;
  --ink-2: #3a4148;
  --ink-3: #767c83;
  --line: #e3e5e8;
  --line-2: #eef0f2;
  --accent: #26a4c0;
  --accent-deep: #1b8aa3;
  --accent-soft: #d4ecf1;
  --accent-ink: #0a3a48;
  --accent-sub: #323265;
  --warn: #c75d4f;
  --serif: "YakuHanJP", "Zen Kaku Gothic New", "Hiragino Mincho ProN", serif;
  --sans: "YakuHanJP", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  --mono: "Montserrat", "JetBrains Mono", monospace;
  --num: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --container: 1240px;
  --container-narrow: 920px;
  --pad-x: clamp(20px, 4vw, 56px);
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 24px;
  --bg-gray: #f9f9f9;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  line-height: 1.75;
  font-feature-settings: "palt";
  scroll-behavior: smooth;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.eyebrow {
  font-family: var(--num);
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
}

/* Big section header — display English label + Japanese title */
.section-header {
  margin-bottom: clamp(48px, 6vw, 88px);
}
.section-header-en {
  display: block;
  font-family: var(--num);
  font-size: clamp(68px, 10vw, 100px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--accent-sub);
  text-transform: capitalize;
  position: relative;
}
.section-header-en .num-tag {
  font-family: var(--num);
  font-size: 0.12em;
  letter-spacing: 0.3em;
  color: var(--accent-sub);
  vertical-align: super;
  margin-left: 12px;
  font-weight: 700;
}
.section-header-jp {
  margin-top: 32px;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.06em;
  display: block;
}
.section-header-jp::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  margin-right: 14px;
  vertical-align: middle;
}

.section-title {
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin: 12px 0 0;
  color: var(--ink);
}
.section-sub {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.95;
  max-width: 640px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.container-mid {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }

/* ============================================================
   スクロール フェードイン — 5種類
   遅延: style="--rd:200ms"
   ============================================================ */
.fade, .fade-up, .fade-down, .fade-left, .fade-right {
  opacity: 0;
  transition: opacity 2.0s ease, transform 2.0s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--rd, 100ms);
}
.fade-up    { transform: translateY(32px); }
.fade-down  { transform: translateY(-32px); }
.fade-left  { transform: translateX(-32px); }
.fade-right { transform: translateX(32px); }

.fade.in, .fade-up.in, .fade-down.in, .fade-left.in, .fade-right.in {
  opacity: 1;
  transform: translate(0, 0);
}

/* section-header の文字スタガー（.ch は .fade-up コンテナ内で使用） */
.fade-up .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.9s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--ci, 0) * 40ms);
}
.fade-up.in .ch { opacity: 1; transform: translateY(0); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(38, 164, 192, 0.55);
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(38, 164, 192, 0.7);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark {
  background: var(--accent-deep);
  color: #fff;
}
.btn-dark:hover { background: #000; transform: translateY(-2px); }

.btn .arrow {
  display: inline-block;
  width: 16px;
  height: 1px;
  background: currentColor;
  position: relative;
}
.btn .arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* Placeholder images */
.ph {
  position: relative;
  background: repeating-linear-gradient(
    135deg,
    #edeef0 0 8px,
    #e3e5e8 8px 16px
  );
  color: var(--ink-3);
  overflow: hidden;
}
.ph::after {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(1px);
}

/* Decorative tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--num);
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--accent);
}
.tag::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.flex { display: flex; }
.col { flex-direction: column; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* scrollbar subtle */
::selection { background: var(--accent); color: #fff; }

/* Nav — hamburger only */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad-x);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav.scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px) saturate(1.2);
  padding: 14px var(--pad-x);
  box-shadow: 0 1px 0 var(--line-2);
}

.brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 15px;
  width: 140px;
}
.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--num);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: linear-gradient(135deg, transparent 45%, rgba(255,255,255,0.18) 50%, transparent 55%);
}
.brand-text img{width: 100%;}

.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-tel-mini {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
  padding-right: 16px;
  border-right: 1px solid var(--line);
}
.nav-tel-mini .label { font-size: 10px; color: var(--ink-1); letter-spacing: 0.16em; }
.nav-tel-mini .num { font-family: var(--num); font-weight: 700; font-size: 24px; color: var(--ink); letter-spacing: 0.02em; }

.nav-cta-mini {
  background: var(--accent);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
}
.nav-cta-mini:hover { background: var(--accent-deep); transform: translateY(-2px); }

/* Hamburger */
.hamburger {
  position: relative;
  width: 56px; height: 56px;
  background: var(--ink);
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.25s, transform 0.3s;
  flex-shrink: 0;
}
.hamburger:hover { background: var(--accent); }
.hamburger.open { background: var(--accent); transform: rotate(90deg); }
.hamburger .bars { position: relative; width: 22px; height: 14px; }
.hamburger .bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: #fff;
  transition: transform 0.3s, opacity 0.2s, top 0.3s;
}
.hamburger .bars span:nth-child(1) { top: 0; }
.hamburger .bars span:nth-child(2) { top: 50%; transform: translateY(-50%); width: 70%; }
.hamburger .bars span:nth-child(3) { top: 100%; transform: translateY(-100%); }
.hamburger.open .bars span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger.open .bars span:nth-child(2) { opacity: 0; }
.hamburger.open .bars span:nth-child(3) { top: 50%; transform: translateY(-50%) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-tel-mini { display: none; }
  .nav-cta-mini { padding: 10px 14px; font-size: 11px; }
  .brand-text { width: 120px; }
}

/* Menu overlay — backdrop */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.menu-overlay::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(10, 20, 26, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.menu-overlay.open { pointer-events: auto; }
.menu-overlay.open::before { opacity: 1; }

/* Side panel */
.menu-left {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: clamp(280px, 38vw, 460px);
  background: #103340;
  color: #fff;
  padding: 56px clamp(24px, 4vw, 48px) 48px;
  display: flex; flex-direction: column;
  z-index: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
  box-shadow: -16px 0 64px rgba(0,0,0,0.28);
}
.menu-left::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(38,164,192,0.22), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(38,164,192,0.10), transparent 50%);
  pointer-events: none;
}
.menu-overlay.open .menu-left { transform: translateX(0); }

/* Close button inside panel */
.menu-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.25s;
  color: #fff;
  font-size: 18px;
  z-index: 2;
}
.menu-close:hover { background: rgba(255,255,255,0.18); }

.menu-eyebrow {
  font-family: var(--num);
  font-size: 11px; letter-spacing: 0.28em;
  color: var(--accent); font-weight: 600;
  margin-bottom: 36px;
  display: inline-flex; align-items: center; gap: 14px;
  position: relative; z-index: 1;
  margin-top: 8px;
}
.menu-eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--accent); }

.menu-list { display: flex; flex-direction: column; gap: 4px; position: relative; z-index: 1; flex: 1; }
.menu-link {
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 700; letter-spacing: 0.02em; line-height: 1.4;
  color: #fff;
  display: flex; align-items: center; gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s, padding-left 0.3s ease;
  opacity: 0; transform: translateX(-20px);
}
.menu-overlay.open .menu-link {
  opacity: 1; transform: translateX(0);
  transition: transform 0.55s cubic-bezier(.2,.7,.2,1), opacity 0.55s ease, color 0.2s, padding-left 0.25s ease;
}
.menu-overlay.open .menu-link:nth-child(1) { transition-delay: 0.12s; }
.menu-overlay.open .menu-link:nth-child(2) { transition-delay: 0.18s; }
.menu-overlay.open .menu-link:nth-child(3) { transition-delay: 0.24s; }
.menu-overlay.open .menu-link:nth-child(4) { transition-delay: 0.30s; }
.menu-overlay.open .menu-link:nth-child(5) { transition-delay: 0.36s; }
.menu-overlay.open .menu-link:nth-child(6) { transition-delay: 0.42s; }
.menu-overlay.open .menu-link:nth-child(7) { transition-delay: 0.48s; }
.menu-overlay.open .menu-link:nth-child(8) { transition-delay: 0.54s; }
.menu-link:hover { color: var(--accent); padding-left: 10px; }
.menu-link:last-child { border-bottom: 0; }
.menu-link .num {
  font-family: var(--num); font-size: 10.5px;
  letter-spacing: 0.2em; color: var(--accent);
  font-weight: 600; opacity: 0.85;
  min-width: 30px; flex-shrink: 0;
}
.menu-link .ja { display: inline-flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.menu-link .ja .en {
  font-family: var(--num); font-size: 11px;
  letter-spacing: 0.18em; color: rgba(255,255,255,0.35);
  font-weight: 500; text-transform: uppercase;
}

/* Contact card at bottom of panel */
.menu-contact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 24px 22px;
  border-radius: 6px;
  margin-top: 28px;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s ease 0.5s, transform 0.5s ease 0.5s;
  position: relative; z-index: 1;
}
.menu-overlay.open .menu-contact-card { opacity: 1; transform: translateY(0); }
.menu-contact-card h5 { margin: 0 0 12px; font-size: 11px; letter-spacing: 0.22em; font-family: var(--num); font-weight: 700; color: var(--accent); }
.menu-contact-card .tel-num { font-family: var(--num); font-size: 26px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.1; display: block; margin-bottom: 4px; }
.menu-contact-card .tel-hours { font-size: 11px; color: rgba(255,255,255,0.55); margin-bottom: 18px; display: block; }
.menu-contact-card .btn-overlay {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: var(--accent); color: #fff;
  padding: 14px 18px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; border-radius: 4px;
  transition: background 0.25s;
}
.menu-contact-card .btn-overlay:hover { background: #fff; color: var(--accent-deep); }
.menu-contact-card .btn-overlay + .btn-overlay { margin-top: 8px; background: transparent; border: 1px solid rgba(255,255,255,0.25); }
.menu-contact-card .btn-overlay + .btn-overlay:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }

/* Hide old .menu-right / .menu-foot on payroll page (they don't exist on index) */
.menu-right { display: none !important; }
.menu-foot { font-size: 11px; color: rgba(255,255,255,0.45); display: flex; flex-direction: column; gap: 6px; letter-spacing: 0.04em; margin-top: 16px; position: relative; z-index: 1; }
.menu-foot strong { color: rgba(255,255,255,0.8); font-weight: 600; }

/* 画面が低いノートPC等でもメニュー全項目が収まる/スクロールできるように調整 */
@media (max-height: 700px) {
  .menu-left, .menu-sub-panel { padding-top: 32px; padding-bottom: 28px; }
  .menu-eyebrow, .sub-panel-eyebrow { margin-bottom: 18px; }
  .menu-list { gap: 0; }
  .menu-link { font-size: clamp(12px, 1.4vw, 14px); padding: 7px 0; }
  .menu-contact-card { padding: 16px 16px; margin-top: 16px; }
  .menu-contact-card .tel-num { font-size: 20px; }
}

/* ============================================================
   サブメニュー — パネル内スライド切り替え
   ============================================================ */

/* メインコンテンツラッパー */
.menu-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), opacity 0.3s ease;
  position: relative;
  z-index: 1;
}
.menu-main.slid-out {
  transform: translateX(-30px);
  opacity: 0;
  pointer-events: none;
}

/* has-sub リンクのスタイル */
.menu-link.has-sub {
  cursor: pointer;
}
.menu-link.has-sub .sub-arrow {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 13px;
  line-height: 1;
  transition: background 0.25s, border-color 0.25s, transform 0.3s;
  color: rgba(255,255,255,0.5);
}
.menu-link.has-sub:hover .sub-arrow,
.menu-link.has-sub.sub-active .sub-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateX(2px);
}
.menu-link.has-sub.sub-active { color: var(--accent); }

/* サブパネル — パネル内で重ねて右からスライドイン */
.menu-sub-panel {
  position: absolute;
  inset: 0;
  background: #0c2a35;
  padding: 52px clamp(24px, 4vw, 48px) 40px;
  display: flex; flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), opacity 0.3s ease;
  z-index: 2;
}
.menu-sub-panel.visible {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* 戻るボタン */
.sub-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--num);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 28px;
  transition: opacity 0.2s, transform 0.2s;
}
.sub-back:hover { opacity: 0.7; transform: translateX(-3px); }

.sub-panel-eyebrow {
  font-family: var(--num);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
  display: block;
}
.sub-panel-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.sub-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.22s ease;
}
.sub-link:last-child { border-bottom: 0; }
.sub-link:hover { color: #fff; padding-left: 5px; }
.sub-link:hover .sub-link-dot { background: var(--accent); }
.sub-link-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  flex-shrink: 0;
  margin-top: 7px;
  transition: background 0.22s;
}
.sub-link-name {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.sub-link-desc {
  display: block;
  font-size: 10.5px;
  color: rgba(255,255,255,0.38);
  margin-top: 3px;
  line-height: 1.5;
}


/* ===========================
   HERO — auto-scrolling images only
   =========================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}

.hero-marquee-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 0 30px;
}
.hero-row {
  display: flex;
  gap: 24px;
  width: max-content;
  height: 75vh;
  max-height: 720px;
  will-change: transform;
  animation: marquee-l 60s linear infinite;
}
@keyframes marquee-l {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.hero-frame {
  flex-shrink: 0;
  height: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}
.hero-frame .ph {
  width: 100%; height: 100%;
  animation: heroFrameZoom 14s ease-in-out infinite alternate;
}
@keyframes heroFrameZoom {
  from { transform: scale(1.0); }
  to   { transform: scale(1.08); }
}

/* Catch overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  padding: 100px clamp(40px, 6vw, 96px) 80px;
  display: flex;
  align-items: end;
  justify-content: space-between;
}
.hero-overlay > * { pointer-events: auto; }

.hero-catch {
  margin: 0;
  font-size: clamp(3.25rem, 2.614rem + 3.18vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--ink);
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.hero-catch .ln {
  display: inline-block;
  background: #fff;
  padding: 4px 28px 12px;
  overflow: hidden;
  align-self: flex-start;
  box-shadow: 0 18px 60px -28px rgba(0,0,0,0.35);
}
.hero-catch .ln > span {
  display: inline-block;
  transform: translateY(110%);
  animation: heroRise 1.1s cubic-bezier(.2,.8,.2,1) both;
}
.hero-catch .ln:nth-child(1) > span { animation-delay: 0.25s; }
.hero-catch .ln:nth-child(2) > span { animation-delay: 0.42s; }
.hero-catch .ln:nth-child(3) > span { animation-delay: 0.59s; }
.hero-catch .accent { color: var(--accent); font-style: normal; }
@keyframes heroRise { to { transform: translateY(0); } }

/* Sub-catch — vertical, top-right */
.hero-sub-v {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  position: absolute;
  top: 110px;
  right: clamp(28px, 4vw, 64px);
  z-index: 6;
  font-size: 25px;
  line-height: 2.5;
  color: var(--ink);
  font-weight: 500;
  opacity: 0;
  animation: fadeIn 1.2s ease 0.8s forwards;
}
.hero-sub-v span{
  background: #fff;
  padding: 10px;
  max-height: 60vh;
  box-shadow: 0 18px 60px -28px rgba(0,0,0,0.35);
}

.hero-sub-v strong { color: var(--accent); font-weight: 700; }
@keyframes fadeIn { to { opacity: 1; } }

/* Hero bottom corner — scroll prompt + brand mini */
.hero-foot {
  position: absolute;
  bottom: 28px;
  left: 0; right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(40px, 6vw, 96px);
  pointer-events: none;
}
.hero-foot > * { pointer-events: auto; }
.hero-scroll {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--num); font-size: 10.5px; letter-spacing: 0.32em;
  font-weight: 600; color: var(--ink-2);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  padding: 12px 18px;
}
.hero-scroll .arr {
  font-size: 14px;
  color: var(--accent);
  animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
@keyframes hero-marker-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.hero-marker {
  font-family: var(--num); font-size: 1.6rem; line-height: 1.2;
  color: #EC7E88; font-weight: 800;
  background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, #EC7E88 0%, #F3A87B 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border: 4px solid transparent;
  width: 100px; height: 100px;
  border-radius: 100%;
  box-shadow: 0 6px 24px rgba(38,164,192,0.3), 0 2px 8px rgba(0,0,0,0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: hero-marker-float 2.2s ease-in-out infinite;
}

@media (max-width: 900px) {
  .hero{height: 780px;}
  .hero-row{height: 600px;}
  .hero-catch { font-size: clamp(40px, 11vw, 72px); }
  .hero-overlay { padding: 100px 24px 80px; }
  .hero-sub-v { font-size: 18px; right: 16px; }
  .hero-frame { width: 600px; min-width: 600px; }
  .hero-foot { padding: 0 24px; }
}

/* Concerns / お悩み訴求 — warm cream */
.concerns {
  background: var(--bg-alt);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.concerns::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(38,164,192,0.08), transparent 50%),
    radial-gradient(circle at 5% 90%, rgba(255,255,255,0.3), transparent 50%);
  pointer-events: none;
}
.concerns .container { position: relative; z-index: 1; }
.concerns .eyebrow { color: var(--accent); }
.concerns .section-title { color: var(--ink); }
.concerns .section-sub { color: var(--ink-2); }

.concerns-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}
@media (max-width: 900px) {
  .concerns-head { grid-template-columns: 1fr; gap: 24px; }
}

.concern-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .concern-list { grid-template-columns: 1fr; } }

.concern {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.9);
  padding: 32px 28px 30px;
  position: relative;
  transition: all 0.4s ease;
  cursor: default;
}
.concern:hover {
  background: #fff;
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -28px rgba(0,0,0,0.2);
}
.concern .num {
  font-family: var(--num);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
}
.concern h4 {
  margin: 14px 0 14px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
}
.concern p {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-2);
}
.concern .arr {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(15,20,25,0.2);
  display: grid; place-items: center;
  font-size: 11px;
  transition: all 0.3s;
}
.concern:hover .arr { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }

/* ---------- Concerns stage (3-column: card | image | card) ---------- */
/* フルブリード marquee（画面端まで）*/
.concerns-marquee-strip {
  margin-bottom: 48px;
}
.concerns-marquee-strip::before {
  background: linear-gradient(90deg, var(--bg-alt), transparent);
}
.concerns-marquee-strip::after {
  background: linear-gradient(270deg, var(--bg-alt), transparent);
}

.concerns-stage {
  display: grid;
  grid-template-columns: 1fr 300px 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}
.concerns-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
  align-self: stretch;
}

/* Center column: teacher portrait */
.concerns-center-col {
  border-radius: var(--r-lg);
  overflow: hidden;
}
.concerns-teacher-frame {
  position: relative;
  overflow: hidden;
  background: none;
  min-height: 420px;
  flex: 1;
}
.concerns-img-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.concerns-teacher-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  display: block;
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 1s ease-in-out;
}
.concerns-teacher-img.prev {
  opacity: 1;
  z-index: 1;
  transition: none;
}
.concerns-teacher-img.active {
  opacity: 1;
  z-index: 2;
}

/* Concern bubble cards (left / right) */
.concern-bubble {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.95);
  border-radius: var(--r-lg);
  padding: 40px 36px;
  position: relative;
  backdrop-filter: blur(8px);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s, transform 0.4s;
}
.concern-bubble:hover {
  background: #fff;
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 28px 48px -20px rgba(0,0,0,0.18);
}

.concern-bubble--flex .concern-bubble{border: 1px solid var(--accent);}

.concern-bubble .num {
  font-family: var(--num);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
  display: block;
}
.concern-bubble h4 {
  margin: 16px 0 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
}
.concern-bubble p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-2);
}
/* Pointer arrows pointing toward center image */
.concern-bubble--left::after,
.concern-bubble--right::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
}
.concern-bubble--left::after {
  right: -16px;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent rgba(255,255,255,0.82);
}
.concern-bubble--right::before {
  left: -16px;
  border-width: 10px 16px 10px 0;
  border-color: transparent rgba(255,255,255,0.82) transparent transparent;
}
.concern-bubble--flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 960px) {
  .concerns-stage {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
  .concerns-center-col { order: -1; }
  .concerns-col { align-self: auto; }
  .concern-bubble--left::after,
  .concern-bubble--right::before { display: none; }
  .concern-bubble--flex {grid-template-columns: 1fr;}
}

.concerns-cta {
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 40px;
  background: linear-gradient(95deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.concerns-cta h5 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  position: relative;
  z-index: 1;
}
.concerns-cta p {
  margin: 6px 0 0;
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  position: relative;
  z-index: 1;
}
.concerns-cta .btn {
  background: #fff;
  color: var(--accent-deep);
  position: relative;
  z-index: 1;
}
.concerns-cta .btn:hover { background: var(--ink); color: #fff; }
@media (max-width: 720px) {
  .concerns-cta { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
}

/* お困りごとマーキー (hashtag chips) */
.concerns-marquee {
  margin-top: 64px;
  position: relative;
}
.concerns-marquee-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 24px;
  flex-wrap: wrap;
}
.concerns-marquee-head h4 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.concerns-marquee-head .lead {
  font-size: 13px;
  color: var(--ink-2);
  max-width: 540px;
  line-height: 1.85;
}
.marquee-track-wrap {
  position: relative;
  overflow: hidden;
  margin: 0 calc(-1 * var(--pad-x));
  padding: 8px 0;
}
.marquee-track-wrap::before,
.marquee-track-wrap::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee-track-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg-alt), transparent); }
.marquee-track-wrap::after { right: 0; background: linear-gradient(270deg, var(--bg-alt), transparent); }
.marquee-row {
  display: flex;
  gap: 14px;
  width: max-content;
  will-change: transform;
  line-height: 1.2;
}
.marquee-row.r1 { animation: marquee-l-slow 260s linear infinite; }
.marquee-row.r2 { animation: marquee-r-slow 260s linear infinite; margin-top: 14px; }
.marquee-row.r3 { animation: marquee-l-slow 260s linear infinite; margin-top: 14px; animation-delay: -86s; }
@keyframes marquee-l-slow {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@keyframes marquee-r-slow {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transition: all 0.25s;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
}
.chip:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip .hash {
  font-family: var(--num);
  color: var(--accent);
  font-weight: 700;
}
.chip:hover .hash { color: #fff; }

/* Services */
.services { background: var(--bg); }

.svc-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
}

.services h3 .accent { color: var(--accent); font-style: normal; }


@media (max-width: 900px) { .svc-head { grid-template-columns: 1fr; gap: 24px; } }

.svc-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line-2);
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
}
@media (max-width: 900px) { .svc-main { grid-template-columns: 1fr; } }

.svc-main .img {
  position: relative;
  aspect-ratio: 5 / 4;
  background: var(--bg-alt);
}
.svc-main .img .ph { width: 100%; height: 100%; }
.svc-main .img .badge {
  position: absolute;
  top: 24px; left: 24px;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  font-family: var(--num);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 700;
}
.svc-main .body {
  padding: 56px 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.svc-main h3 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.svc-main h3 .en {
  display: block;
  font-family: var(--num);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.svc-main p {
  margin: 22px 0 28px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.95;
}
.svc-main ul {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.svc-main ul li {
  font-size: 13px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.svc-main ul li::before {
  content: "";
  width: 14px; height: 1px; background: var(--accent);
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}
@media (max-width: 1100px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }

.svc-item {
  background: #fff;
  padding: 32px 24px 28px;
  position: relative;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  cursor: default;
}
.svc-item:hover {
  background: var(--bg-deep);
  color: #fff;
}
.svc-item .no {
  font-family: var(--num);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  font-weight: 600;
}
.svc-item:hover .no { color: var(--accent); }
.svc-item h4 {
  margin: 14px 0 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.01em;
}
.svc-item p {
  margin: 0 0 auto;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-3);
}
.svc-item:hover p { color: rgba(255,255,255,0.7); }
.svc-item .more {
  margin-top: 20px;
  font-family: var(--num);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.svc-item:hover .more { color: var(--accent); }
.svc-item .more::after {
  content: "→";
  font-size: 11px;
  transition: transform 0.3s;
}
.svc-item:hover .more::after { transform: translateX(4px); }
.svc-item .icon {
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: var(--accent);
  transition: all 0.3s;
}
.svc-item:hover .icon { border-color: var(--accent); background: var(--accent); color: #fff; }

/* ---------- Services Bento layout ---------- */
.svc-bento {
  display: grid;
  grid-template-columns: 1fr;   /* 縦積み */
  gap: 48px;
  margin-top: 56px;
  padding: 56px 0; /* 画像の上下はみ出し分 */
}

/* Main cards: 横並び（画像左 or 右）上下交互 */
.svc-mc {
  display: flex;
  flex-direction: row;          /* デフォルト: 画像左 */
  align-items: stretch;
  min-height: 420px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: visible;
  position: relative;
  transition: box-shadow 0.35s;
}
.svc-mc:hover {
  box-shadow: 0 20px 52px -16px rgba(0,0,0,0.14);
}

/* 画像右バリアント */
.svc-mc--right {
  flex-direction: row-reverse;
}

/* 画像エリア: 上下 + 外側にはみ出す */
.svc-mc-img {
  position: relative;
  width: 46%;
  flex-shrink: 0;
  /* 上下56px + 左側へはみ出し */
  margin: -10px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-cream-deep);
  box-shadow: 0 24px 56px -10px rgba(0,0,0,0.28);
  z-index: 2;
}
/* 画像右の場合は右側へはみ出し */
.svc-mc--right .svc-mc-img {
  margin: -10px;
}

.svc-mc-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.svc-mc-badge {
  position: absolute;
  top: 20px;
  left: 14px;
  font-family: var(--num);
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 5px 12px;
  border-radius: 2px;
  z-index: 1;
}
/* 画像右の場合はバッジも右寄せ */
.svc-mc--right .svc-mc-badge {
  left: auto;
  right: 14px;
}
.svc-mc-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 60px;
  flex: 1;
}
.svc-mc-en {
  font-family: var(--num);
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
}
.svc-mc-title {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.svc-mc-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-2);
}
.svc-mc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.svc-mc-list li {
  font-size: 13px;
  color: var(--ink-2);
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}
.svc-mc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.svc-mc-btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Sub card strip */
.svc-sub-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.svc-sub-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 18px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
}
.svc-sub-card:hover {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 10px 28px -8px rgba(38,164,192,0.18);
  transform: translateY(-4px);
}
.svc-sub-no {
  font-family: var(--num);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 700;
}
.svc-sub-card h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  flex: 1;
}
.svc-sub-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-3);
}
.svc-sub-arr {
  font-family: var(--num);
  font-size: 13px;
  color: var(--accent);
  transition: transform 0.25s;
  display: inline-block;
}
.svc-sub-card:hover .svc-sub-arr { transform: translateX(4px); }

@media (max-width: 900px) {
  .svc-bento { padding: 36px 0; gap: 36px; }
  .svc-mc-img     { margin: -36px 0 -36px -24px; }
  .svc-mc--right .svc-mc-img { margin: -36px -24px -36px 0; }
  .svc-sub-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .svc-bento { padding: 0; gap: 20px; }
  .svc-mc,
  .svc-mc--right {
    flex-direction: column;
    overflow: hidden;
    min-height: auto;
  }
  .svc-mc-img,
  .svc-mc--right .svc-mc-img {
    width: 100%;
    margin: 0;
    aspect-ratio: 16 / 9;
    box-shadow: none;
    border-radius: 0;
  }
  .svc-mc--right .svc-mc-badge { left: 14px; right: auto; }
  .svc-mc-body { padding: 24px; }
  .svc-sub-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Stats */
.stats {
  background: var(--bg);
  position: relative;
}

/* Donut row */
.donut-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 72px;
}


.donut {
  padding: 30px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s;
}

.donut-svg {
  position: relative;
  display: grid;
  place-items: center;
  /* サイズをCSSで管理（インラインスタイル不要） */
  width: 220px;
  height: 220px;
}

/* ドーナツリング（細め・フラットデザイン） */
.donut-ring {
  width: 220px;
  height: 220px;
  position: relative;
  border-radius: 50%;
  background: #e0e0e0;
  /* マスクで中央を切り抜き → リング幅 約16px */
  -webkit-mask: radial-gradient(circle at center, transparent 94px, black 94px);
  mask:         radial-gradient(circle at center, transparent 94px, black 94px);
}

.donut-ring-arc {
  --pct: 0;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* 赤 → オレンジ → 黄 → 緑 → 水色（12時方向スタート） */
  background: conic-gradient(
    from 0deg,
    #ff3b30                             0deg,
    #ff9500   calc(var(--pct) *  90deg),
    #ffcc00   calc(var(--pct) * 180deg),
    #34c759   calc(var(--pct) * 270deg),
    #5ac8fa   calc(var(--pct) * 360deg),
    transparent calc(var(--pct) * 360deg)
  );
}

.donut-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.donut-val {
  font-family: var(--num);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
}
.donut-val i { font-style: normal; font-size: 18px; color: var(--ink-2); margin-left: 2px; font-weight: 600; }
.donut-sub {
  font-family: var(--num);
  font-size: 15px;
  color: var(--ink-2);
  font-weight: 600;
  text-transform: uppercase;
}
.donut-label {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 900px) {
  .donut-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  /* 3個目を中央寄せ */
  .donut-row .donut:nth-child(3) { grid-column: 1 / 3; justify-self: center; width: 50%; }
}

@media (max-width: 600px) {
  .donut-row { gap: 10px; }
  .donut { padding: 20px 10px 18px; gap: 14px; }
  /* リング・コンテナを 220→130px に縮小（マスク半径: 94→56px） */
  .donut-svg { width: 130px; height: 130px; }
  .donut-ring {
    width: 130px;
    height: 130px;
    -webkit-mask: radial-gradient(circle at center, transparent 56px, black 56px);
    mask:         radial-gradient(circle at center, transparent 56px, black 56px);
  }
  .donut-val { font-size: 32px; }
  .donut-val i { font-size: 12px; }
  .donut-sub { font-size: 10px; }
  .donut-label { font-size: 14px; }
}

/* Stat row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  margin-top: 24px;
}
@media (max-width: 900px) { .stat-row { grid-template-columns: 1fr 1fr; } }

.stat-row-item {
  background: var(--bg);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.srl { font-size: 12.5px; color: var(--ink-3); letter-spacing: 0.04em; font-weight: 500; }
.srv {
  font-family: var(--num);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.srv .u { font-style: normal; font-family: var(--sans); font-size: 14px; color: var(--ink-2); font-weight: 500; margin-left: 2px; }
.srv .pre { font-style: normal; font-family: var(--sans); font-size: 14px; color: var(--ink-3); font-weight: 500; margin-right: 2px; }
.srd { font-size: 11.5px; color: var(--ink-3); line-height: 1.8; margin-top: 6px; }

/* Industry pie */
.industry-pie-wrap {
  margin-top: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  padding: 56px clamp(28px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .industry-pie-wrap { grid-template-columns: 1fr; gap: 32px; } }

.pie-side h4 { margin: 8px 0 8px; font-size: 22px; font-weight: 700; }
.pie-side .sub { font-size: 13px; color: var(--ink-3); line-height: 1.85; margin-bottom: 24px; }

.pie-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; max-width: 360px; }
.pie-legend li {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line-2);
  font-size: 13.5px;
}
.pie-legend li:last-child { border-bottom: 1px solid var(--line-2); }
.pie-legend .dot { width: 12px; height: 12px; border-radius: 2px; }
.pie-legend .nm { color: var(--ink-2); }
.pie-legend .pc { font-family: var(--num); font-weight: 700; color: var(--ink); }

.pie-chart {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
}
.pie-chart svg { display: block; max-width: 100%; }
.pie-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.pc-n {
  font-family: var(--num);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.pc-l {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 4px;
  font-weight: 500;
}
.pc-d {
  margin-top: 12px;
  font-family: var(--num);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  line-height: 1.5;
}

/* Voices / お客様の声 */
.voices { background: var(--bg); }
.voices-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}
@media (max-width: 900px) { .voices-head { grid-template-columns: 1fr; gap: 24px; } }

.voice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1000px) { .voice-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .voice-grid { grid-template-columns: 1fr; } }

.voice {
  background: #fff;
  border: 1px solid var(--line-2);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.35s ease;
}
.voice:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(0,0,0,0.25); }
.voice .quote {
  font-family: var(--num);
  font-size: 64px;
  line-height: 0.8;
  color: var(--accent-soft);
  margin-bottom: 14px;
  font-weight: 700;
}
.voice .tag-line {
  font-family: var(--num);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.voice h4 {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
}
.voice p {
  margin: 0 0 28px;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--ink-2);
}
.voice .meta {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  gap: 14px;
}
.voice .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: grid; place-items: center;
  font-family: var(--num);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-3);
  border: 1px solid var(--line-2);
}
.voice .meta-text { line-height: 1.3; }
.voice .meta-text .co { font-size: 13px; font-weight: 600; }
.voice .meta-text .role { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* FAQ */
.faq { background: var(--bg-alt); }
.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  margin-top: 24px;
}
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; gap: 32px; } }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line-2);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.faq-item {
  background: var(--bg);
  padding: 0;
  transition: background 0.3s;
}
.faq-item.open { background: #fff; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 28px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.02em;
}
.faq-q .q-mark {
  font-family: var(--num);
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
  width: 26px;
}
.faq-q .q-text { flex: 1; }
.faq-q .toggle {
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  position: relative;
  transition: all 0.3s;
}
.faq-q .toggle::before, .faq-q .toggle::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.3s, background 0.3s;
}
.faq-q .toggle::before { width: 11px; height: 1px; }
.faq-q .toggle::after { width: 1px; height: 11px; }
.faq-item.open .faq-q .toggle { background: var(--accent); border-color: var(--accent); }
.faq-item.open .faq-q .toggle::before { background: #fff; }
.faq-item.open .faq-q .toggle::after { transform: scaleY(0); background: #fff; }

.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner {
  display: flex;
  gap: 20px;
  padding: 0 28px 28px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-2);
}
.faq-a-inner .a-mark {
  font-family: var(--num);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink-3);
  width: 26px;
  flex-shrink: 0;
}

.faq-aside h3 { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.5; margin: 12px 0 16px; }
.faq-aside p { font-size: 16px; line-height: 1.8; margin-bottom: 28px; }

/* Recruit */
.recruit {
  background: #fff;
  position: relative;
  overflow: hidden;
}


/* Final CTA */
.cta-final {
  background: var(--bg);
  padding-top:clamp(30px, 4vw, 60px);
}
.cta-card {
  background: linear-gradient(135deg, #1b8aa3 0%, #26a4c0 55%, #4cc0d4 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(48px, 7vw, 80px) clamp(32px, 6vw, 88px);
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.18), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08), transparent 50%);
}


.cta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; gap: 40px; } }

.cta-grid .eyebrow { color: rgba(255,255,255,0.9); }
.cta-grid h2 {
  margin: 14px 0 22px;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.cta-grid p { font-size: 14.5px; line-height: 1.95; color: rgba(255,255,255,0.9); max-width: 500px; }

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cta-actions .btn-white {
  background: #fff;
  color: var(--accent-deep);
  padding: 24px 28px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 4px;
  justify-content: space-between;
  min-width: 320px;
}
.cta-actions .btn-white:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}
.cta-actions .btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
  padding: 24px 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 4px;
  justify-content: space-between;
}
.cta-actions .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.cta-actions .tel-block {
  margin-top: 8px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
}
.cta-actions .tel-block .label {
  font-family: var(--num);
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 600;
  opacity: 0.8;
}
.cta-actions .tel-block .num {
  font-family: var(--num);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: block;
  line-height: 1.2;
  margin-top: 4px;
}
.cta-actions .tel-block .hours {
  font-size: 11.5px;
  opacity: 0.8;
  margin-top: 2px;
}

/* ── High-CV CTA: primary orange button ── */
.cta-actions .btn-cta-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  padding: 26px 32px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(234, 88, 12, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: ctaPulse 2.8s ease-in-out infinite;
  text-decoration: none;
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(234, 88, 12, 0.55); }
  50%       { box-shadow: 0 8px 52px rgba(234, 88, 12, 0.82); }
}
.cta-actions .btn-cta-primary:hover {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  transform: translateY(-3px);
  box-shadow: 0 18px 52px rgba(234, 88, 12, 0.68);
}
.cta-actions .btn-cta-primary .cta-arr {
  font-size: 22px;
  margin-left: 16px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.cta-actions .btn-cta-primary:hover .cta-arr { transform: translateX(5px); }

/* Credibility micro-copy */
.cta-micro {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.06em;
  margin: -4px 0 2px;
  padding-left: 4px;
}

/* CTA eyebrow */
.cta-eyebrow {
  font-family: var(--num);
  font-size: 10px;
  letter-spacing: 0.24em;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  margin: 0 0 14px;
  display: block;
}

/* H2 underline accent */
.cta-h2-hl {
  font-style: normal;
  display: inline-block;
  position: relative;
}
.cta-h2-hl::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 2px;
}

/* Tel as clickable link */
.cta-actions .tel-block a.num {
  font-family: var(--num);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  display: block;
  line-height: 1.2;
  margin-top: 4px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.cta-actions .tel-block a.num:hover { opacity: 0.72; }

/* Sticky CTA: primary pill orange to match */
.sticky-cta .pill:not(.tel) { background: #f97316; }
.sticky-cta .pill:not(.tel):hover { background: #ea580c; }

/* Footer */
.footer {
  background: var(--bg);
  padding: 80px 0 140px;
  border-top: 1px solid var(--line-2);
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-2);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

.footer-brand .brand-mark { width: 44px; height: 44px; font-size: 16px; }
.footer-brand .brand-text .en { font-size: 18px; }
.footer-brand .addr {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-3);
}
.footer-brand .addr strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 4px; font-size: 13px; }

.footer-col h5 {
  margin: 0 0 18px;
  font-family: var(--num);
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--accent);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; color: var(--ink-2); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}
.footer-bottom .legal { display: flex; gap: 20px; }
.footer-bottom .legal a:hover { color: var(--ink); }

/* Sticky CTA (mobile) */
.sticky-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.sticky-cta.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sticky-cta .pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 30px -10px rgba(38,164,192,0.7);
  transition: all 0.25s ease;
}
.sticky-cta .pill:hover { background: var(--accent-deep); transform: translateY(-2px); }
.sticky-cta .pill.tel { background: var(--ink); }
.sticky-cta .pill.tel:hover { background: #000; }
@media (max-width: 700px) {
  .sticky-cta { left: 12px; right: 12px; bottom: 12px; flex-direction: row; }
  .sticky-cta .pill { flex: 1; justify-content: center; padding: 14px 16px; }
}

/* ============================================================
   styles-extras.css — Intro statement, Image breaks, Project Story, News
   ============================================================ */

/* ---------- 提携企業ロゴスライダー ---------- */
.partners-strip {
  width: 100%;
  overflow: hidden;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0 24px;
  position: relative;
}
.partners-strip::before,
.partners-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 160px;
  z-index: 2;
  pointer-events: none;
}
.partners-strip::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-soft) 30%, transparent);
}
.partners-strip::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-soft) 30%, transparent);
}
.partners-label {
  display: block;
  text-align: center;
  font-size: 10px;
  font-family: var(--num);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 18px;
  text-decoration: none;
}
.partners-label:hover { color: var(--accent); }
.partners-track-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.partner-row {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  will-change: transform;
}
.partner-row.pr1 {
  animation: partner-l 36s linear infinite;
}
.partner-row.pr2 {
  animation: partner-r 42s linear infinite;
}
@keyframes partner-l {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@keyframes partner-r {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}
.partners-strip:hover .partner-row {
  animation-play-state: paused;
}
.partner-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px 0 10px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.partner-logo:hover {
  border-color: var(--accent-soft);
  box-shadow: 0 2px 8px rgba(38,164,192,.08);
}
.plm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-family: var(--num);
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.plm--teal { background: var(--accent); }
.plm--navy { background: var(--accent-sub); }
.pln {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
@media (max-width: 767px) {
  .partners-strip::before,
  .partners-strip::after { width: 60px; }
  .partner-logo { height: 42px; padding: 0 14px 0 8px; gap: 8px; }
  .plm { width: 24px; height: 24px; font-size: 11px; }
  .pln { font-size: 12px; }
}

/* ---------- Intro statement (after hero) ---------- */
.intro-statement {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--bg);
  position: relative;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; } }

.intro-eyebrow {
  font-family: var(--num);
  font-size: 11px;
  letter-spacing: 0.32em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.intro-eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--accent); }

.intro-statement h2 {
  margin: 0;
  font-size: clamp(38px, 4.8vw, 58px);
  font-weight: 700;
  line-height: 1.5;
}
.intro-statement h2 .accent, .concerns h3 .accent { color: var(--accent); font-style: normal; }
.intro-statement h2 .hl {
  background: linear-gradient(transparent 60%, #d4ecf1 60%);
  padding: 0 4px;
}
.intro-statement p {
  margin: 32px 0 0;
  line-height: 2.05;
  color: var(--ink-2);
  max-width: 540px;
}

.intro-visual {
  position: relative;
  width: 100%;
}
.intro-visual .ph { width: 90%;}
.intro-visual .ph.tiny {
  position: relative;
  left: 10%;
}

/* ---------- Image break band ---------- */
.image-break {
  position: relative;
  height: clamp(280px, 36vw, 520px);
  width: 100vw;
  overflow: hidden;
  background: var(--bg-alt);
}
.image-break .ph { width: 100%; height: 100%; }
.image-break .ph::after { background: rgba(255,255,255,0.2); }
.image-break-cap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(40px, 6vw, 96px);
  color: #fff;
  background: linear-gradient(90deg, rgba(15,20,25,0.65) 0%, rgba(15,20,25,0.2) 70%, transparent 100%);
}
.image-break-cap .eyebrow { color: rgba(255,255,255,0.85); }
.image-break-cap h3 {
  margin: 14px 0 16px;
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  max-width: 720px;
}
.image-break-cap p {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
}
.image-break-cap .meta {
  margin-top: 18px;
  font-family: var(--num);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Project Story / 導入事例 ---------- */
.projects { background: var(--bg-soft); }

.project-feature {
  background: #fff;
  border: 1px solid var(--line-2);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  margin-bottom: 24px;
  overflow: hidden;
  transition: all 0.4s ease;
}
.project-feature:hover { border-color: var(--accent); box-shadow: 0 28px 48px -28px rgba(0,0,0,0.18); }
@media (max-width: 900px) { .project-feature { grid-template-columns: 1fr; } }

.project-feature .pf-img {
  position: relative;
  aspect-ratio: 5 / 4;
}
.project-feature .pf-img .ph { width: 100%; height: 100%; }
.project-feature .pf-img .tag-pos {
  position: absolute;
  top: 24px; left: 24px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  font-family: var(--num);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  font-weight: 700;
}
.project-feature .pf-img .industry {
  position: absolute;
  bottom: 24px; left: 24px;
  background: rgba(15,20,25,0.85);
  color: #fff;
  padding: 8px 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.project-feature .pf-body {
  padding: 56px 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project-feature .pf-co {
  font-family: var(--num);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  font-weight: 700;
}
.project-feature h3 {
  margin: 12px 0 28px;
  font-size: clamp(20px, 2.3vw, 28px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.02em;
}
.project-feature .pf-cmps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin-bottom: 32px;
}
.project-feature .pf-cmp {
  padding: 16px 20px;
  background: var(--bg-soft);
  border-left: 2px solid var(--accent);
}
.project-feature .pf-cmp .k {
  font-family: var(--num);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--accent);
  font-weight: 700;
}
.project-feature .pf-cmp .v {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.55;
}

/* Compact project list */
.project-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}
@media (max-width: 1000px) { .project-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .project-list { grid-template-columns: 1fr; } }

.proj-card {
  background: #fff;
  border: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.35s ease;
  cursor: pointer;
}
.proj-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 24px 40px -28px rgba(0,0,0,0.2); }
.proj-card .pc-img { aspect-ratio: 16 / 11; position: relative; overflow: hidden; }
.proj-card .pc-img .ph { width: 100%; height: 100%; }
.proj-card .pc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-card .pc-img .industry {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.proj-card .pc-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.proj-card .pc-co {
  font-family: var(--num);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  font-weight: 700;
}
.proj-card h4 {
  margin: 10px 0 18px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.01em;
  flex: 1;
}
.proj-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.proj-card .tag-sm {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 5px 10px;
}

/* ---------- News / お知らせ ---------- */
.news {
  background: var(--bg);
  position: relative;
}
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; gap: 32px; } }

.news-side .lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 24px 0 32px;
}
.news-side .cats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.news-side .cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: all 0.25s;
  font-size: 13px;
  font-weight: 600;
}
.news-side .cat:hover { border-color: var(--accent); color: var(--accent); }
.news-side .cat .cnt { font-family: var(--num); font-size: 11px; color: var(--ink-3); font-weight: 600; }
.news-side .cat:hover .cnt { color: var(--accent); }

.news-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-2);
}
.news-item {
  display: grid;
  grid-template-columns: 80px 100px 1fr 32px;
  align-items: center;
  gap: 24px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line-2);
  cursor: pointer;
  transition: all 0.25s;
}

.news-item2{ grid-template-columns: 80px 1fr 32px;}
.news-item:hover { background: var(--bg-soft); }
.news-item .date {
  font-family: var(--num);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.news-item .cat-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--ink);
  padding: 5px 10px;
  text-align: center;
  white-space: nowrap;
}
.news-item .cat-tag.law { background: var(--accent); }
.news-item .cat-tag.seminar { background: var(--accent-deep); }
.news-item .cat-tag.notice { background: #3a4148; }
.news-item .title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.news-item2 .title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink3);
}
.news-item:hover .title { color: var(--accent); }
.news-item .ar {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 10px;
  color: var(--ink-3);
  transition: all 0.25s;
}
.news-item:hover .ar { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }

.news-foot {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 700px) {
  .news-item {
    grid-template-columns: auto 1fr 28px;
    grid-template-rows: auto auto;
    gap: 6px 10px;
    padding: 16px 4px;
  }
  /* 1行目: 日付 | カテゴリ | 矢印(縦結合) */
  .news-item .date    { grid-row: 1; grid-column: 1; white-space: nowrap; }
  .news-item .cat-tag { grid-row: 1; grid-column: 2; justify-self: start; align-self: center; }
  .news-item .ar      { grid-row: 1 / 3; grid-column: 3; align-self: center; }
  /* 2行目: タイトル全幅 */
  .news-item .title   { grid-row: 2; grid-column: 1 / 3; font-size: 13px; }
}

/* ---------- Flow / ご契約までの流れ ---------- */
.flow {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.flow::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 5% 20%, rgba(38,164,192,0.04), transparent 50%);
  pointer-events: none;
}
.flow .container { position: relative; z-index: 1; }

.flow-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.flow-list::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 5%; right: 5%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 14px);
  z-index: 0;
}
@media (max-width: 900px) {
  .flow-list { grid-template-columns: 1fr; }
  .flow-list::before { display: none; }
}

.flow-step {
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.flow-step + .flow-step { padding-left: 24px; }
@media (max-width: 900px) {
  .flow-step { padding: 24px 0; border-top: 1px solid var(--line-2); }
  .flow-step:first-child { border-top: 0; }
  .flow-step + .flow-step { padding-left: 0; }
}

.flow-step-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.fs-num {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  background: var(--accent);
  color: #fff;
  font-family: var(--num);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  box-shadow: 0 14px 28px -10px rgba(38,164,192,0.55);
}
.fs-num::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.25;
}
.fs-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.flow-step-body h4 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.flow-step-body p {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-2);
}
.flow-step-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
}
.flow-step-body ul li {
  font-size: 12px;
  color: var(--ink-2);
  padding-left: 20px;
  position: relative;
  line-height: 1.8;
}
.flow-step-body ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 8px; height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ============================================================
   styles-payroll.css — 給与計算BPR顧問ページ
   ============================================================ */

/* ============================================================
   Payroll BPR (給与計算BPR顧問) — subpage styles
   ============================================================ */

/* Page hero — full-bleed image with overlays */
.page-hero {
  position: relative;
  padding: 92px 0 0;
  background: var(--bg);
}
.page-hero .container-mid { position: relative; z-index: 2; }

.ph-stage {
  position: relative;
  width: 100%;
  height: clamp(420px, 64vh, 720px);
  background: var(--bg-gray);
  overflow: hidden;
}
.ph-stage > .ph,
.ph-stage > image-slot.ph-stage-img,
.ph-stage > image-slot {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
  border-radius: 0;
  animation: heroFrameZoom 22s ease-in-out infinite alternate;
}
.ph-stage > .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  display: block;
}
@keyframes heroFrameZoom {
  from { transform: scale(1.0); }
  to   { transform: scale(1.06); }
}

/* ── 初回表示カーテンリビール ── */
.ph-curtain {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: #fff;
  pointer-events: none;
  animation: phCurtainLift 1.1s cubic-bezier(0.76, 0, 0.24, 1) 0.15s both;
}
@keyframes phCurtainLift {
  from { transform: translateY(0); }
  to   { transform: translateY(-100%); }
}

/* eyebrow & title — カーテン後にスライドイン */
.ph-stage .ph-eyebrow {
  animation: phEyebrowIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.95s both;
}
@keyframes phEyebrowIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.ph-stage .ph-vtitle .vbox {
  animation: phTitleIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.15s both;
}
@keyframes phTitleIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Top-left eyebrow tag */
.ph-eyebrow {
  position: absolute;
  top: 28px;
  left: clamp(20px, 4vw, 56px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-family: var(--num);
  font-size: 11px;
  letter-spacing: 0.32em;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  padding: 10px 18px;
  border-radius: 999px;
}
.ph-eyebrow .ln {
  width: 56px; height: 1px;
  background: var(--ink);
}

/* Right-side vertical title in white boxes */
.ph-vtitle {
  position: absolute;
  top: 0; bottom: -2.5rem;
  left: clamp(20px, 4vw, 56px);
  z-index: 3;
  display: flex;
  align-items: end;
  gap: 12px;
}
.ph-vtitle .vbox {
  background: #fff;
  padding: 24px 18px;
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
  text-orientation: mixed;
  box-shadow: 0 24px 40px -24px rgba(0,0,0,0.25);
  border-radius: var(--r-md);
}
.ph-vtitle .vbox.accent { color: var(--accent); }

/* Bottom marker on image */
.ph-stage-foot {
  position: absolute;
  left: clamp(20px, 4vw, 56px);
  bottom: 24px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  padding: 14px 22px;
  border-radius: var(--r-md);
}
.ph-stage-foot .num {
  font-family: var(--num);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--accent);
  font-weight: 700;
}
.ph-stage-foot .en {
  font-family: var(--num);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}

@media (max-width: 720px) {
  .ph-stage { height: 70vh; min-height: 460px; }
  .ph-vtitle .vbox { font-size: clamp(24px, 7vw, 36px); padding: 18px 14px; }
}

/* Hero intro (below the image) */
.ph-intro {
  padding: clamp(56px, 7vw, 96px) 0 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--num);
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 40px;
}
.breadcrumb a { color: var(--ink-3); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--line); }
.breadcrumb .cur { color: var(--ink); }

.ph-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  margin-bottom: 4rem;
}
@media (max-width: 900px) {
  .ph-intro-grid { grid-template-columns: 1fr; gap: 0; }
}

.ph-intro-r {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
}
.ph-intro-r-img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 4 / 4;
  margin: 24px 0;
}
@media (max-width: 900px) {
  .ph-intro-r {
    margin-left: calc(-1 * var(--pad-x));
    margin-right: calc(-1 * var(--pad-x));
    border-radius: 0;
    min-height: 56vw;
    align-self: auto;
  }
}

.ph-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent-sub);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--num);
  font-size: 11px;
  letter-spacing: 0.24em;
  font-weight: 700;
  margin-bottom: 24px;
}
.ph-tag .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}
.ph-en {
  display: block;
  font-family: var(--num);
  font-size: clamp(48px, 6.5vw, 86px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 16px;
}
.ph-en .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: chRise 0.9s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: calc(var(--ci, 0) * 40ms + 0.2s);
}
@keyframes chRise { to { opacity: 1; transform: translateY(0); } }

.ph-intro-r .ph-jp, .ph-intro-l .ph-jp {
  margin: 0 0 24px;
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.ph-intro-r .ph-jp .accent,.ph-intro-l .ph-jp .accent { color: var(--accent); font-style: normal; }
.ph-intro-r .ph-sub, .ph-intro-l .ph-sub {
  margin: 0 0 32px;
  font-size: 16px;
  line-height: 2;
  color: var(--ink-2);
}
.ph-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.ph-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.ph-pill .ico { color: var(--accent); }
.ph-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Concerns / Problems list (subpage) */
.pp-section { padding: clamp(80px, 10vw, 140px) 0; background: var(--bg); position: relative; }
.pp-section.cream { background: var(--bg-gray); }
.pp-section.soft { background: var(--bg-soft); }
.pp-section.deep { background: var(--bg-gray-deep); color: var(--ink); }

.pp-section.deep h3 { color: var(--ink); }
.pp-section.deep p { color: var(--ink-2); }

.problems-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: transparent;
  border: 0;
}
@media (max-width: 800px) { .problems-list { grid-template-columns: 1fr; } }
.problem {
  background: var(--bg);
  padding: 36px 36px 32px;
  position: relative;
  transition: all 0.3s;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
}
.problem:hover {
  background: #fff;
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -28px rgba(0,0,0,0.16);
}
.problem .pn {
  position: absolute;
  top: 28px; right: 28px;
  font-family: var(--num);
  font-size: 64px;
  font-weight: 700;
  color: var(--line);
  line-height: 1;
  letter-spacing: -0.03em;
}
.problem h4 {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  padding-right: 80px;
}
.problem h4 .accent { color: var(--accent); font-style: normal; }
.problem p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--ink-2);
}

/* Principles (3 large feature cards) */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 1000px) { .principles { grid-template-columns: 1fr; } }
.principles-2col{grid-template-columns: repeat(2, 1fr);}

.principle {
  background: #fff;
  border: 1px solid var(--line-2);
  padding: 48px 36px 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
  border-radius: var(--r-lg);
}
.principle:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-6px);
}
.principle .pi-n {
  font-family: var(--num);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
}
.principle .pi-key {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin: 0 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-2);
}
.principle:hover .pi-key { border-bottom-color: rgba(255,255,255,0.25); }
.principle:hover .pi-n { color: rgba(255,255,255,0.85); }
.principle:hover .pi-key .ac { color: #fff; }
.principle .pi-key .ac { color: var(--accent); font-style: normal; }
.principle p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-2);
}
.principle:hover p { color: rgba(255,255,255,0.82); }
.principle .pi-icon {
  position: absolute;
  top: 36px; right: 32px;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--accent);
  font-family: var(--num);
  font-size: 18px;
  font-weight: 700;
  transition: all 0.3s;
}
.principle:hover .pi-icon { background: #fff; color: var(--accent); border-color: #fff; }

/* Comparison table */
.compare-wrap { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 24px 48px -32px rgba(0,0,0,0.12); }
.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line-2);
  font-size: 16px;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.compare thead th {
  text-align: left;
  padding: 22px 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-3);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-2);
}
.compare thead th.us {
  background: var(--accent);
  color: #fff;
}
.compare thead th.us .lbl {
  font-family: var(--num);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  display: block;
}
.compare thead th.them { background: var(--bg-soft); }
.compare thead th.them .lbl {
  font-family: var(--num);
  font-size: 10.5px;
  color: var(--ink-3);
  display: block;
  margin-bottom: 4px;
}
.compare tbody td {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
  line-height: 1.5;
}
.compare tbody td:first-child {
  font-weight: 700;
  color: var(--ink);
  width: 26%;
  background: #fff;
}
.compare tbody td.us {
  background: rgba(38,164,192,0.05);
  color: var(--ink);
  border-left: 1px solid var(--accent-soft);
  border-right: 1px solid var(--accent-soft);
}
.compare tbody td.them {
  background: #fff;
  color: var(--ink-2);
}
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tr.highlight-us td.us { background: rgba(38,164,192,0.08); }

/* check / cross アイコン */
.cmp-check,
.cmp-cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-right: 10px;
}
.cmp-check {
  background: var(--accent);
  color: #fff;
}
.cmp-cross {
  background: #f0e4e2;
  color: #c75d4f;
}

/* cmp-check アニメーション（スクロール流入時） */
@keyframes checkPop {
  0%   { transform: scale(0.3) rotate(-15deg); opacity: 0; }
  65%  { transform: scale(1.25) rotate(5deg);  opacity: 1; }
  100% { transform: scale(1)   rotate(0deg);   opacity: 1; }
}
.compare-wrap.in .cmp-check {
  animation: checkPop 0.55s cubic-bezier(.34,1.56,.64,1) both;
}
.compare-wrap.in tbody tr:nth-child(1) .cmp-check { animation-delay: 0.45s; }
.compare-wrap.in tbody tr:nth-child(2) .cmp-check { animation-delay: 0.60s; }
.compare-wrap.in tbody tr:nth-child(3) .cmp-check { animation-delay: 0.75s; }
.compare-wrap.in tbody tr:nth-child(4) .cmp-check { animation-delay: 0.90s; }
.compare-wrap.in tbody tr:nth-child(5) .cmp-check { animation-delay: 1.05s; }
.compare-wrap.in tbody tr:nth-child(6) .cmp-check { animation-delay: 1.20s; }
.compare-wrap.in tbody tr:nth-child(7) .cmp-check { animation-delay: 1.35s; }
.compare-wrap.in tbody tr:nth-child(8) .cmp-check { animation-delay: 1.50s; }

/* タブレット: フォントサイズのみ調整 */
@media (max-width: 800px) {
  .compare { font-size: 13px; }
  .compare tbody td { padding: 16px 14px; }
  .compare thead th { padding: 16px 14px; font-size: 11px; }
  .compare tbody td:first-child { width: auto; }
}

/* スマホ: 縦積みカードレイアウト */
@media (max-width: 600px) {
  .compare-wrap {
    border-radius: 0;
    box-shadow: none;
    margin: 0 -16px;
  }

  /* テーブル要素をすべてブロック化 */
  .compare,
  .compare thead,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .compare { border: none; background: transparent; }
  .compare thead { display: none; }
  .compare tbody { display: flex; flex-direction: column; gap: 16px; }

  /* 各行 → カード */
  .compare tbody tr {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line-2);
    box-shadow: 0 4px 16px -4px rgba(0,0,0,0.10);
    background: #fff;
  }

  /* 比較項目ラベル（カードヘッダー） */
  .compare tbody td:first-child {
    background: var(--ink, #1a1a2e);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 11px 16px;
    border-bottom: none;
  }

  /* HR BrEdge 行 / 一般的な社労士 行
     → flex-wrap で「ラベル(::before)を1段目、アイコン+テキストを2段目」に並べる */
  .compare tbody td.us,
  .compare tbody td.them {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 16px;
    border-left: none;
    border-right: none;
  }

  /* ::before がラベル行（flex: 100%でその行を独占） */
  .compare tbody td.us::before,
  .compare tbody td.them::before {
    flex: 0 0 100%;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
  }
  .compare tbody td.us::before {
    content: "HR BrEdge";
    color: var(--accent);
  }
  .compare tbody td.them::before {
    content: "一般的な社労士";
    color: var(--ink-3, #888);
  }

  /* アイコン: flexアイテムとしてmargin-rightをリセット */
  .compare tbody td.us .cmp-check,
  .compare tbody td.them .cmp-cross {
    flex-shrink: 0;
    margin-right: 0;
    margin-top: 2px;
    vertical-align: unset;
  }

  /* テキスト（アイコンの隣、残り幅を使用） */
  .compare tbody td.us .cmp-text,
  .compare tbody td.them .cmp-text {
    flex: 1;
    min-width: 0;
    font-size: 13.5px;
    line-height: 1.55;
  }

  /* 境界線・ハイライト調整 */
  .compare tbody td.us { border-bottom: 1px solid var(--line-2); }
  .compare tbody td.them { border-bottom: none; }
  .compare tr.highlight-us td.us { background: rgba(38,164,192,0.10); }
  .compare tbody tr:last-child td { border-bottom: 0; }
}

/* Detail services (5 items) */
.detail-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.detail-svc {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  gap: 24px;
  padding: 36px 36px 32px;
  background: #fff;
  border: 1px solid var(--line-2);
  align-items: start;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
}
.detail-svc:hover {
  border-color: var(--accent);
  transform: translateX(8px);
  box-shadow: 0 24px 40px -24px rgba(0,0,0,0.18);
}
.detail-svc::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--accent);
  transition: width 0.3s;
}
.detail-svc:hover::before { width: 4px; }
.detail-svc .dn {
  font-family: var(--num);
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.detail-svc .dn::after {
  content: "";
  display: block;
  width: 24px; height: 2px;
  background: var(--accent);
  margin-top: 14px;
}
.detail-svc .dt {
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-2);
}
.detail-svc .dt h4 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.detail-svc .dt .achievement {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--bg-gray);
  border-left: 3px solid var(--accent);
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.detail-svc .dico {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: grid; place-items: center;
  color: var(--accent);
  justify-self: end;
}
@media (max-width: 700px) {
  .detail-svc { grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 20px; }
  .detail-svc .dico { display: none; }
}

/* Flow vertical (5 steps) — line extends with scroll */
.flow-v {
  position: relative;
  margin-top: 32px;
  padding-left: 4px;
}

.flow-v-track {
  position: absolute;
  left: 31px;
  top: 32px;
  bottom: 32px;
  width: 2px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  z-index: 0;
}
.flow-v-track i {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  transform-origin: top;
  transform: scaleY(0);
  border-radius: 999px;
}

.flow-v-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 32px;
  padding: 28px 0;
  position: relative;
  z-index: 1;
  align-items: start;
}
.flow-v-step + .flow-v-step { padding-top: 28px; }

.flow-v-step .fs-circle {
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  font-family: var(--num);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: -0.01em;
  transition: all 0.5s cubic-bezier(.2,.7,.2,1);
  position: relative;
  z-index: 2;
}
.flow-v-step.active .fs-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 14px 28px -10px rgba(38,164,192,0.55);
  transform: scale(1.06);
}
.flow-v-step.active .fs-circle::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.35;
  animation: ringPulse 1.6s ease-out infinite;
}
@keyframes ringPulse {
  from { transform: scale(1); opacity: 0.6; }
  to   { transform: scale(1.4); opacity: 0; }
}

.flow-v-body {
  padding: 20px 28px 24px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
.flow-v-step.active .flow-v-body {
  border-color: var(--accent);
  box-shadow: 0 24px 40px -28px rgba(0,0,0,0.18);
}

.flow-v-body .fs-text { flex: 1; min-width: 0; }
.flow-v-body .fs-step-tag {
  font-family: var(--num);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  color: var(--accent);
  font-weight: 700;
}
.flow-v-body h4 {
  margin: 6px 0 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.flow-v-body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-2);
}
.flow-v-body .fs-badge {
  flex-shrink: 0;
  width: 144px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px 16px;
  background: var(--cream, #f8f6f2);
  border-radius: var(--r-md);
  text-align: center;
  border: 1px solid var(--line-2);
}
.flow-v-step.active .fs-badge {
  background: rgba(38,164,192,0.06);
  border-color: rgba(38,164,192,0.25);
}
.fs-badge-label {
  font-family: var(--num);
  font-size: 9px;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--accent);
}
.fs-badge-val {
  font-family: var(--num);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}
.fs-badge-note {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.5;
}

@media (max-width: 800px) {
  .flow-v { padding-left: 0; }
  .flow-v-track { left: 23px; }
  .flow-v-step { grid-template-columns: 48px 1fr; gap: 16px; }
  .flow-v-step .fs-circle { width: 48px; height: 48px; font-size: 16px; }
  .flow-v-body { flex-direction: column; align-items: stretch; padding: 14px 18px 18px; gap: 16px; }
  .flow-v-body .fs-badge { width: 100%; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 16px; }
  .fs-badge-val { font-size: 17px; }
}

/* Parallax band */
.parallax-band {
  width: 100%;
  height: 680px;
  position: relative;
  overflow: hidden;
}
.parallax-band-img {
  position: absolute;
  width: 100%;
  height: 130%;
  top: -15%;
  left: 0;
  object-fit: cover;
  object-position: top;
  will-change: transform;
}
@media (max-width: 800px) {
  .parallax-band { height: 480px; }
  .parallax-band-img { height: 100%; top: 0; }
}

/* Support section */
.support-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .support-grid { grid-template-columns: 1fr; } }
.support-grid h3 {
  margin: 0 0 24px;
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.support-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}
.support-point {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.support-point:last-child { border-bottom: 1px solid var(--line); }
.support-point .si {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  display: grid; place-items: center;
  color: var(--accent);
  font-size: 14px;
}
.support-point h5 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.support-point p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-2);
}
.support-visual {
  position: relative;
  aspect-ratio: 4 / 4;
}
.support-visual .ph,
.support-visual image-slot { width: 100%; height: 100%; display: block; }
.support-visual .stamp {
  position: absolute;
  bottom: -24px; right: -24px;
  background: var(--accent);
  color: #fff;
  padding: 18px 22px;
  width: 180px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  z-index: 3;
}
.support-visual .stamp .label {
  display: block;
  font-family: var(--num);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 6px;
}
.support-img-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.support-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  transition: opacity 1s ease-in-out;
}
.support-slide.prev {
  opacity: 1;
  z-index: 1;
  transition: none;
}
.support-slide.active {
  opacity: 1;
  z-index: 2;
}

/* FAQ for subpage — reuse styling but lighter */
.faq-sp { background: var(--bg); }

/* Pricing table */
.pricing-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.pricing-wrap .note {
    margin-top: 8px;
    font-size: 11.5px;
    line-height: 1.75;
    color: var(--ink-2);
    padding-top: 14px;
    border-top: 1px solid rgba(15, 20, 25, 0.12);
}
@media (max-width: 1000px) { .pricing-wrap { grid-template-columns: 1fr; } }

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line-2);
  font-size: 13.5px;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.pricing-table thead th {
  background: var(--accent);
  color: #fff;
  text-align: left;
  padding: 20px 22px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.pricing-table thead th:first-child { width: 38%; }
.pricing-table tbody td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}
.pricing-table tbody tr:hover td { background: var(--bg-soft); }
.pricing-table tbody td:first-child {
  font-weight: 600;
  color: var(--ink);
}
.pricing-table tbody td.amount {
  font-family: var(--num);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.pricing-table tbody td.amount .yen { font-size: 12px; color: var(--ink-3); margin-left: 2px; font-weight: 500; }
.pricing-table tbody td.included {
  color: var(--accent);
  font-weight: 700;
  font-family: var(--num);
  letter-spacing: 0.04em;
}
.pricing-table tbody tr:last-child td { border-bottom: 0; }

.pricing-aside {
  background: var(--bg-gray);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: var(--r-lg);
}
.pricing-aside h5 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-family: var(--num);
}
.pricing-aside .opt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(15,20,25,0.15);
  font-size: 13px;
}
.pricing-aside .opt:last-of-type { border-bottom: 0; }
.pricing-aside .opt .v { font-family: var(--num); font-weight: 700; color: var(--ink); }
.pricing-aside .opt .v.zero { color: var(--accent); }
.pricing-aside .note {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--ink-2);
  padding-top: 14px;
  border-top: 1px solid rgba(15,20,25,0.12);
}


/* ============================================================
   グリッドシステム — 12カラム
   ============================================================ */

/* コンテナ */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.grid-gap-sm  { gap: 12px; }
.grid-gap-md  { gap: 24px; }
.grid-gap-lg  { gap: 40px; }
.grid-gap-xl  { gap: 64px; }
.grid-gap-0   { gap: 0; }

/* カラム幅 */
.col-1  { grid-column: span 1; }
.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-9  { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

/* オフセット（左余白） */
.col-offset-1  { grid-column-start: 2; }
.col-offset-2  { grid-column-start: 3; }
.col-offset-3  { grid-column-start: 4; }
.col-offset-4  { grid-column-start: 5; }
.col-offset-5  { grid-column-start: 6; }
.col-offset-6  { grid-column-start: 7; }

/* 縦位置 */
.grid-align-start  { align-items: start; }
.grid-align-center { align-items: center; }
.grid-align-end    { align-items: end; }
.grid-align-stretch{ align-items: stretch; }

/* 横位置 */
.grid-justify-start  { justify-items: start; }
.grid-justify-center { justify-items: center; }
.grid-justify-end    { justify-items: end; }

/* ============================================================
   タブレット（〜1024px）
   ============================================================ */
@media (max-width: 1024px) {
  .col-md-1  { grid-column: span 1; }
  .col-md-2  { grid-column: span 2; }
  .col-md-3  { grid-column: span 3; }
  .col-md-4  { grid-column: span 4; }
  .col-md-5  { grid-column: span 5; }
  .col-md-6  { grid-column: span 6; }
  .col-md-7  { grid-column: span 7; }
  .col-md-8  { grid-column: span 8; }
  .col-md-9  { grid-column: span 9; }
  .col-md-10 { grid-column: span 10; }
  .col-md-11 { grid-column: span 11; }
  .col-md-12 { grid-column: span 12; }

  .col-md-offset-0 { grid-column-start: auto; }
  .col-md-offset-1 { grid-column-start: 2; }
  .col-md-offset-2 { grid-column-start: 3; }
  .col-md-offset-3 { grid-column-start: 4; }
}

/* ============================================================
   スマートフォン（〜767px）
   ============================================================ */
@media (max-width: 767px) {
  .grid {
    gap: 16px;
  }

  /* デフォルト：全カラムが12幅（1列）に */
  .col-1, .col-2, .col-3, .col-4,
  .col-5, .col-6, .col-7, .col-8,
  .col-9, .col-10, .col-11        { grid-column: span 12; }

  /* オフセットをリセット */
  [class*="col-offset-"] { grid-column-start: auto; }

  /* スマホ用カラム上書き */
  .col-sm-1  { grid-column: span 1; }
  .col-sm-2  { grid-column: span 2; }
  .col-sm-3  { grid-column: span 3; }
  .col-sm-4  { grid-column: span 4; }
  .col-sm-6  { grid-column: span 6; }
  .col-sm-12 { grid-column: span 12; }

  /* ============================================================
     リバース：画像とテキストの順序を入れ替え
     親に .grid-reverse-sm を付けると、
     偶数番目の子が上（視覚的に先）に来る
     ============================================================ */
  .grid-reverse-sm {
    /* 要素の表示順を反転 */
    direction: ltr; /* 念のためリセット */
  }
  .grid-reverse-sm > *:nth-child(1) { order: 2; }
  .grid-reverse-sm > *:nth-child(2) { order: 1; }
  .grid-reverse-sm > *:nth-child(3) { order: 4; }
  .grid-reverse-sm > *:nth-child(4) { order: 3; }
  .grid-reverse-sm > *:nth-child(5) { order: 6; }
  .grid-reverse-sm > *:nth-child(6) { order: 5; }

  /* 画像を常に先（上）に出したいとき: .grid-img-first-sm */
  .grid-img-first-sm .col-img  { order: -1; }
  .grid-img-first-sm .col-text { order: 0; }

  /* テキストを常に先（上）に出したいとき: .grid-text-first-sm */
  .grid-text-first-sm .col-text { order: -1; }
  .grid-text-first-sm .col-img  { order: 0; }
}

/* ============================================================
   よく使うレイアウトのショートカット
   ============================================================ */

/* 2カラム均等 */
.grid-2col > * { grid-column: span 6; }
@media (max-width: 767px) { .grid-2col > * { grid-column: span 12; } }

/* 3カラム均等 */
.grid-3col > * { grid-column: span 4; }
@media (max-width: 1024px) { .grid-3col > * { grid-column: span 6; } }
@media (max-width: 767px)  { .grid-3col > * { grid-column: span 12; } }

/* 4カラム均等 */
.grid-4col > * { grid-column: span 3; }
@media (max-width: 1024px) { .grid-4col > * { grid-column: span 6; } }
@media (max-width: 767px)  { .grid-4col > * { grid-column: span 12; } }

/* 左1/3 + 右2/3（画像左・テキスト右の典型レイアウト） */
.grid-img-text > .col-img  { grid-column: span 4; }
.grid-img-text > .col-text { grid-column: span 8; }
@media (max-width: 767px) {
  .grid-img-text > .col-img,
  .grid-img-text > .col-text { grid-column: span 12; }
  /* スマホでは画像を上に */
  .grid-img-text { }
  .grid-img-text > .col-img  { order: -1; }
}

/* 左2/3 + 右1/3（テキスト左・画像右の典型レイアウト） */
.grid-text-img > .col-text { grid-column: span 8; }
.grid-text-img > .col-img  { grid-column: span 4; }
@media (max-width: 767px) {
  .grid-text-img > .col-text,
  .grid-text-img > .col-img  { grid-column: span 12; }
  /* スマホでは画像を上に */
  .grid-text-img > .col-img  { order: -1; }
}

/* 左1/2 + 右1/2（画像左・テキスト右の均等） */
.grid-half-img-text > .col-img  { grid-column: span 6; }
.grid-half-img-text > .col-text { grid-column: span 6; }
@media (max-width: 767px) {
  .grid-half-img-text > .col-img,
  .grid-half-img-text > .col-text { grid-column: span 12; }
  .grid-half-img-text > .col-img  { order: -1; }
}


/* ============================================================
   Member Marquee Section
   ============================================================ */

/* セクション */
.mq-section { padding-bottom: 0 !important; overflow: hidden; }
.mq-section .section-sub { max-width: 600px; }

/* ラップ（横方向クリップ） */
.mq-wrap {
  overflow: hidden;
  width: 100%;
  margin-top: 56px;
}
.mq-wrap--sp { display: none; }
.mq-wrap--pc { display: block; }

/* トラック（無限スクロールコンテナ） */
@keyframes mq-left  { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes mq-right { from { transform: translateX(-50%); } to { transform: translateX(0); }    }

.mq-track {
  display: flex;
  width: max-content;
  animation: mq-left 70s linear infinite;
  will-change: transform;
}
.mq-track--rev { animation: mq-right 55s linear infinite; }

/* アクセシビリティ: モーション軽減 */
@media (prefers-reduced-motion: reduce) {
  .mq-track, .mq-track--rev { animation: none; }
}

/* ホバーで一時停止 */
.mq-wrap:hover .mq-track { animation-play-state: paused; }

/* メンバーカード */
.mq-card {
  position: relative;
  width: 180px;
  height: 280px;
  margin-right: 14px;
  flex-shrink: 0;
  cursor: default;
}

/* カラー背景ブロック */
.mq-card-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 238px;
  border-radius: 20px 20px 0 0;
  background: var(--mc, #4361EE);
  transition: filter 0.3s;
}
.mq-card:hover .mq-card-bg {
  filter: brightness(1.08);
}

/* 人物写真（背景透過PNG） */
.mq-card-photo {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
  user-select: none;
}
.mq-card:hover .mq-card-photo {
  transform: translateX(-50%) translateY(-6px);
}

/* スマホ */
@media (max-width: 768px) {
  .mq-wrap--pc { display: none; }
  .mq-wrap--sp { display: block; }
  .mq-wrap { margin-top: 36px; }
  .mq-track + .mq-track { margin-top: 12px; }

  .mq-card {
    width: 148px;
    height: 224px;
    margin-right: 10px;
  }
  .mq-card-bg {
    height: 192px;
    border-radius: 16px 16px 0 0;
  }

  .mq-track { animation-duration: 45s; }
  .mq-track--rev { animation-duration: 38s; }
}

/* ============================================================
   エキスパートコメント（顔写真 + 吹き出し）
   ============================================================ */
.expert-comment {
  padding: clamp(28px, 3.5vw, 48px) 0;
  background: linear-gradient(135deg, #e8f6f9 0%, #f2fafc 100%);
  border-top: 1px solid rgba(38, 164, 192, 0.16);
  border-bottom: 1px solid rgba(38, 164, 192, 0.16);
}

.ec-inner {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.5vw, 52px);
}

/* 左カラム：アバター ＋ 氏名 */
.ec-left {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  width: 96px;
}

.ec-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 4px 18px rgba(38, 164, 192, 0.22);
  background: var(--bg-gray);
}

.ec-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.06em;
  display: block;
  white-space: nowrap;
}

.ec-role {
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  line-height: 1.5;
  display: block;
}

/* 右カラム：吹き出し */
.ec-bubble {
  flex: 1;
  background: #fff;
  border-radius: 16px;
  padding: clamp(18px, 2.2vw, 28px) clamp(20px, 2.5vw, 32px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  position: relative;
}

/* 吹き出しの三角 */
.ec-bubble::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  border: 12px solid transparent;
  border-right: 12px solid #fff;
  border-left: none;
}

.ec-label {
  font-family: var(--num);
  font-size: 9px;
  letter-spacing: 0.32em;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.ec-text {
  font-size: clamp(13.5px, 1.2vw, 15.5px);
  line-height: 1.9;
  color: var(--ink-2);
  margin: 0;
}

.ec-text strong {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 640px) {
  .ec-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .ec-left {
    flex-direction: row;
    width: auto;
    text-align: left;
    align-items: center;
    gap: 14px;
  }
  .ec-avatar { width: 60px; height: 60px; }
  .ec-bubble::before { display: none; }
}


/* ── 代表カード ── */
  .director-card {
    display: grid;
    grid-template-columns: 380px 1fr;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 56px rgba(0,0,0,0.07);
  }

  .director-photo {
    position: relative;
    background: var(--bg-gray);
    overflow: hidden;
    min-height: 480px;
  }

  .director-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.8s ease;
  }
  .director-portrait[data-active="false"] { opacity: 0; }
  .director-portrait[data-active="true"]  { opacity: 1; }

  .director-body {
    padding: clamp(32px, 4vw, 56px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .director-role-tag {
    font-family: var(--num);
    font-size: 11px;
    letter-spacing: 0.32em;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 16px;
  }

  .director-name-jp {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--ink);
    margin: 0 0 6px;
    line-height: 1.2;
  }

  .director-name-en {
    font-family: var(--num);
    font-size: 12px;
    letter-spacing: 0.26em;
    color: var(--ink-3);
    font-weight: 600;
    margin: 0 0 22px;
    display: block;
  }

  .director-quals {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
  }

  .qual-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: var(--accent-soft);
    color: var(--accent-deep);
    letter-spacing: 0.02em;
  }

  .director-message {
    font-size: clamp(14px, 1.3vw, 16px);
    line-height: 2;
    color: var(--ink-2);
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin: 0 0 28px;
    font-style: normal;
  }

  .career-label {
    font-family: var(--num);
    font-size: 10px;
    letter-spacing: 0.3em;
    font-weight: 700;
    color: var(--ink-3);
    text-transform: uppercase;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 14px;
    display: block;
  }

  .director-career {
    font-size: 14px;
    line-height: 1.95;
    color: var(--ink-2);
    margin: 0;
  }

  /* ── スタッフグリッド ── */
  .staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 2.5vw, 32px);
    margin-top: clamp(40px, 5vw, 64px);
  }

  .staff-card {
    background: #fff;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s ease;
  }

  .staff-card:hover {
    box-shadow: 0 14px 44px rgba(0,0,0,0.10);
  }

  .staff-photo {
    aspect-ratio: 1 / 1;
    background: var(--bg-gray);
    overflow: hidden;
    position: relative;
  }

  .staff-photo .ph {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .staff-body {
    padding: 22px 24px 28px;
  }

  .staff-role-tag {
    font-family: var(--num);
    font-size: 10px;
    letter-spacing: 0.3em;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
  }

  .staff-name-jp {
    font-size: clamp(18px, 1.8vw, 22px);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--ink);
    margin: 0 0 4px;
    line-height: 1.3;
  }

  .staff-name-en {
    font-family: var(--num);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--ink-3);
    font-weight: 600;
    margin: 0 0 14px;
    display: block;
  }

  .staff-quals {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
  }

  .staff-qual {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-weight: 600;
  }

  .staff-divider {
    height: 1px;
    background: var(--line);
    margin-bottom: 14px;
  }

  .staff-bio {
    font-size: 13px;
    line-height: 1.9;
    color: var(--ink-2);
    margin: 0 0 14px;
  }

  .staff-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .spec-tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--bg-gray);
    color: var(--ink-2);
    font-weight: 500;
  }

  /* ── 採用バナー ── */
  .recruit-band {
    background-image: url('../img/recruit-bg.jpg');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    padding: clamp(64px, 8vw, 100px) 30px;
    text-align: center;
    position: relative;
    z-index: 2;
    margin-top: clamp(30px, 4vw, 60px);
    border-radius: var(--r-lg);
  }

  .recruit-band:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, .5);
    z-index: -1;
    border-radius: var(--r-lg);
  }

  .recruit-band .eyebrow {
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
  }

  .recruit-band h2 {
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
    margin: 0 0 16px;
    line-height: 1.4;
  }

  .recruit-band p {
    font-size: 16px;
    color:#fff;
    line-height: 1.9;
    margin: 0 0 36px;
  }

  .recruit-btns {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
  }

  .recruit-btns .btn-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: #fff;
    color: var(--ink);
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
    transition: background 0.2s, transform 0.25s;
  }

  .recruit-btns .btn-white:hover {
    background: var(--accent-soft);
    transform: translateY(-2px);
  }

  .recruit-btns .btn-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.04em;
    transition: border-color 0.2s, background 0.2s;
  }

  .recruit-btns .btn-line:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.08);
  }

 /* ── 取引先グリッド ── */
  .clients-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(20px, 2.5vw, 32px);
    margin-top: clamp(40px, 5vw, 64px);
    width: 100%;
  }

  .clients-card {
    transition: transform 0.3s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s ease;
    text-align: center;
  }

  /* ── レスポンシブ ── */
  @media (max-width: 1024px) {
    .director-card { grid-template-columns: 300px 1fr; }
    .director-photo { min-height: 400px; }
  }

  @media (max-width: 900px) {
    .director-card { grid-template-columns: 1fr; }
    .director-photo { min-height: 0; aspect-ratio: 4 / 3; }
    .staff-grid{ grid-template-columns: repeat(2, 1fr); }
    .clients-grid { grid-template-columns: repeat(3, 1fr); }
  }

  @media (max-width: 580px) {
    .staff-grid { grid-template-columns: 1fr; }
    .staff-photo { aspect-ratio: 4 / 3; }
    .clients-grid {grid-template-columns: repeat(2, 1fr);}
  }

      /* ─── ページ基本 ─── */
    .ph-stage--title {
      height: auto;
      min-height: 0;
    }
    .ph-stage--title .ph-eyebrow {
      position: static;
      background: transparent;
      backdrop-filter: none;
      padding: 0;
      border-radius: 0;
      color: var(--accent);
      margin-bottom: 20px;
    }
    .ph-stage--title .ph-vtitle {
      position: static;
      bottom: auto;
    }
    .ph-stage--title .ph-vtitle .vbox {
      background: transparent;
      box-shadow: none;
      color: var(--ink);
      padding: 0;
      font-size: clamp(36px, 5vw, 64px);
      font-weight: 800;
      line-height: 1.15;
      animation: phTitleIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 2.1s both;
    }
    .ph-hero-inner {
      padding: clamp(48px, 7vh, 88px) clamp(20px, 6vw, 80px) clamp(48px, 7vh, 88px);
      border-bottom: 1px solid #e8edf0;
    }
    .ph-hero-inner .ph-eyebrow-line {
      display: flex;
      align-items: center;
      gap: 16px;
      font-family: var(--num);
      font-size: 11px;
      letter-spacing: 0.34em;
      font-weight: 700;
      color: var(--accent);
      margin-bottom: 28px;
      animation: phEyebrowIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 1.9s both;
    }
    .ph-hero-inner .ph-eyebrow-line::before {
      content: '';
      display: block;
      width: 32px;
      height: 2px;
      background: var(--accent);
      flex-shrink: 0;
    }

    /* ─── 紙芝居オープニング ─── */

    /* グローバルの phCurtainLift を無効化し、画面全体を覆う */
    .ph-stage--title .ph-curtain {
      position: fixed;
      inset: 0;
      z-index: 9999;
      background: transparent;
      animation: none;
      pointer-events: none;
    }

    /* 左右パネル共通 */
    .ph-crt-l,
    .ph-crt-r {
      position: absolute;
      top: 0;
      bottom: 0;
      width: calc(50% + 2px); /* 中央に隙間を作らない */
      background: #0f1419;
    }

    /* 上下のアクセントライン */
    .ph-crt-l::before, .ph-crt-r::before,
    .ph-crt-l::after,  .ph-crt-r::after {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      height: 2px;
      background: var(--accent, #26a4c0);
    }
    .ph-crt-l::before, .ph-crt-r::before { top: 0; }
    .ph-crt-l::after,  .ph-crt-r::after  { bottom: 0; }

    /* 左パネル：左へ退場 */
    .ph-crt-l {
      left: 0;
      animation: crtOpenL 1.0s cubic-bezier(0.76, 0, 0.24, 1) 0.8s both;
    }
    /* 右パネル：右へ退場 */
    .ph-crt-r {
      right: 0;
      animation: crtOpenR 1.0s cubic-bezier(0.76, 0, 0.24, 1) 0.8s both;
    }

    @keyframes crtOpenL {
      0%   { transform: translateX(0); box-shadow:  6px 0 40px rgba(0,0,0,.6); }
      100% { transform: translateX(-101%); box-shadow: none; }
    }
    @keyframes crtOpenR {
      0%   { transform: translateX(0); box-shadow: -6px 0 40px rgba(0,0,0,.6); }
      100% { transform: translateX(101%); box-shadow: none; }
    }

    /* 中央バッジ（サービス名プレビュー） */
    .ph-crt-badge {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      white-space: nowrap;
      animation: crtBadgeFade 0.45s ease 0.62s forwards;
    }
    @keyframes crtBadgeFade {
      to { opacity: 0; }
    }

    /* 装飾ライン */
    .ph-crt-rule {
      display: block;
      height: 1px;
      background: var(--accent, #26a4c0);
      animation: crtRuleIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
    }
    .ph-crt-rule:first-child { animation-delay: 0.05s; }
    .ph-crt-rule:last-child  { animation-delay: 0.1s; }
    @keyframes crtRuleIn {
      from { width: 0; opacity: 0; }
      to   { width: 56px; opacity: 1; }
    }

    /* 英語キャプション */
    .ph-crt-en {
      font-family: var(--num, 'Inter', sans-serif);
      font-size: 10px;
      letter-spacing: 0.42em;
      font-weight: 700;
      color: var(--accent, #26a4c0);
      animation: crtTextIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
    }

    /* 日本語タイトル */
    .ph-crt-ja {
      font-size: clamp(30px, 4.5vw, 56px);
      font-weight: 800;
      color: #fff;
      line-height: 1.15;
      text-align: center;
      letter-spacing: 0.06em;
      animation: crtTextIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
    }
    .ph-crt-ja em {
      font-style: normal;
      color: var(--accent, #26a4c0);
    }

    @keyframes crtTextIn {
      from { opacity: 0; transform: translateY(12px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* 中央の光るセパレーター（カーテンが開く瞬間に発光） */
    .ph-crt-seam {
      position: absolute;
      top: 0;
      bottom: 0;
      left: 50%;
      width: 2px;
      transform: translateX(-50%);
      background: linear-gradient(to bottom, transparent, var(--accent, #26a4c0) 40%, var(--accent, #26a4c0) 60%, transparent);
      opacity: 0;
      animation: crtSeamFlash 0.5s ease 0.72s both;
    }
    @keyframes crtSeamFlash {
      0%   { opacity: 0; }
      30%  { opacity: 1; }
      100% { opacity: 0; }
    }

        /* ジャンルタブ */
    .faq-genre-bar {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 40px;
    }
    .faq-genre-btn {
      padding: 9px 22px;
      border: 1.5px solid #d8d8d8;
      border-radius: 100px;
      background: #fff;
      font-size: 0.875rem;
      font-weight: 600;
      font-family: inherit;
      color: #666;
      cursor: pointer;
      transition: background 0.2s, color 0.2s, border-color 0.2s;
      line-height: 1;
    }
    .faq-genre-btn:hover,
    .faq-genre-btn.is-active {
      background: #26a4c0;
      border-color: #26a4c0;
      color: #fff;
    }

    /* スライダー本体 */
    .faq-slider-area {
      margin-top: 32px;
      position: relative;
    }
    #faq-view {
      min-height: 260px;
    }

    /* カードグリッド */
    .faq-cards-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      align-items: stretch;
    }
    @media (max-width: 1023px) {
      .faq-cards-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 639px) {
      .faq-cards-grid { grid-template-columns: 1fr; }
    }

    /* カード */
    .faq-slide-card {
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 2px 24px rgba(0,0,0,0.07);
      padding: 28px 28px 32px;
      display: flex;
      flex-direction: column;
      border-top: 3px solid #26a4c0;
      animation: faqCardIn 0.4s ease both;
    }
    .faq-slide-card:nth-child(2) { animation-delay: 0.07s; }
    .faq-slide-card:nth-child(3) { animation-delay: 0.14s; }
    @keyframes faqCardIn {
      from { opacity: 0; transform: translateY(14px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .faq-slide-genre {
      display: inline-block;
      padding: 4px 12px;
      background: #e6f5f9;
      color: #26a4c0;
      border-radius: 100px;
      font-size: 0.73rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      margin-bottom: 18px;
      width: fit-content;
    }

    .faq-slide-q {
      display: flex;
      gap: 10px;
      margin-bottom: 14px;
    }
    .faq-slide-q .fq-mark {
      font-size: 1.05rem;
      font-weight: 900;
      color: #26a4c0;
      flex-shrink: 0;
      line-height: 1.5;
    }
    .faq-slide-q p {
      font-size: 0.975rem;
      font-weight: 700;
      line-height: 1.55;
      color: #1a1a2e;
      margin: 0;
    }

    .faq-slide-divider {
      height: 1px;
      background: #ececec;
      margin: 0 0 14px;
    }

    .faq-slide-a {
      display: flex;
      gap: 10px;
      flex: 1;
    }
    .faq-slide-a .fa-mark {
      font-size: 1.05rem;
      font-weight: 900;
      color: #bbb;
      flex-shrink: 0;
      line-height: 1.5;
    }
    .faq-slide-a p {
      font-size: 0.875rem;
      line-height: 1.75;
      color: #555;
      margin: 0;
    }

    /* 空状態 */
    .faq-empty {
      text-align: center;
      padding: 64px 0;
      color: #aaa;
      font-size: 0.9rem;
    }

    /* コントロール */
    .faq-controls {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
      margin-top: 36px;
    }
    .faq-ctrl-btn {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      border: 1.5px solid #d4d4d4;
      background: #fff;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      color: #333;
      transition: background 0.2s, border-color 0.2s, color 0.2s;
      flex-shrink: 0;
    }
    .faq-ctrl-btn:hover:not(:disabled) {
      background: #26a4c0;
      border-color: #26a4c0;
      color: #fff;
    }
    .faq-ctrl-btn:disabled {
      opacity: 0.25;
      cursor: not-allowed;
    }
    .faq-dots-wrap {
      display: flex;
      gap: 6px;
      align-items: center;
    }
    .faq-dot-btn {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #d4d4d4;
      border: none;
      cursor: pointer;
      padding: 0;
      transition: width 0.2s, border-radius 0.2s, background 0.2s;
    }
    .faq-dot-btn.is-active {
      width: 24px;
      border-radius: 4px;
      background: #26a4c0;
    }
    .faq-page-count {
      font-size: 0.8rem;
      color: #aaa;
      letter-spacing: 0.06em;
      min-width: 40px;
      text-align: center;
    }

    /* セクション間隔（このページのみ） */
    .spm-section { padding: clamp(40px, 5vw, 72px) 0; }

    /* ---- Service Navigation Tabs ---- */
    .spm-tab-wrap {
      position: sticky;
      top: 64px;
      z-index: 90;
      background: #fff;
      border-bottom: 2px solid var(--line);
      box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    }
    .spm-tab-nav {
      display: flex;
      align-items: stretch;
      max-width: var(--container);
      margin: 0 auto;
      padding: 0 var(--pad-x);
    }
    .spm-tab-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 16px 20px;
      text-decoration: none;
      color: var(--ink-2);
      transition: color 0.2s, border-color 0.2s, background 0.2s;
      border-bottom: 3px solid transparent;
      margin-bottom: -2px;
      flex: 1;
      justify-content: center;
      line-height: 1.3;
    }
    .spm-tab-item:hover,
    .spm-tab-item.active {
      color: var(--accent);
      border-bottom-color: var(--accent);
      background: rgba(38,164,192,0.04);
    }
    .spm-tab-num {
      font-family: var(--num);
      font-size: 22px;
      font-weight: 900;
      color: var(--accent);
      line-height: 1;
      flex-shrink: 0;
    }
    .spm-tab-label {
      font-size: 13px;
      font-weight: 700;
    }
    @media (max-width: 640px) {
      .spm-tab-item { padding: 12px 10px; gap: 6px; }
      .spm-tab-num { font-size: 16px; }
      .spm-tab-label { font-size: 11px; }
    }

    /* ---- Service Intro Block ---- */
    .spm-svc-intro {
      text-align: center;
      max-width: 760px;
      margin: 0 auto;
    }
    .spm-svc-num {
      display: block;
      font-family: var(--num);
      font-size: clamp(64px, 12vw, 112px);
      font-weight: 900;
      color: var(--accent);
      opacity: 0.12;
      line-height: 1;
      margin-bottom: -12px;
      letter-spacing: -0.04em;
    }
    .spm-svc-title {
      font-size: clamp(24px, 3.5vw, 38px);
      font-weight: 800;
      letter-spacing: -0.02em;
      color: var(--ink);
      margin: 0 0 18px;
    }
    .spm-svc-hook {
      font-size: clamp(15px, 1.8vw, 18px);
      font-weight: 700;
      line-height: 1.7;
      color: var(--ink);
      margin-bottom: 14px;
    }
    .spm-svc-desc {
      font-size: 15px;
      line-height: 1.85;
      color: var(--ink-2);
      max-width: 640px;
      margin: 0 auto;
      text-align: left;
    }

    /* ---- Concerns Grid ---- */
    .spm-concerns {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 14px;
      margin-top: 28px;
    }

    /* ---- Simple Section Heading ---- */
    .spm-sec-h {
      font-size: clamp(17px, 2vw, 21px);
      font-weight: 800;
      color: var(--ink);
      margin: 0 0 28px;
      padding-bottom: 12px;
      border-bottom: 2px solid var(--line);
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .spm-sec-h::before {
      content: '';
      display: block;
      width: 4px;
      height: 1.1em;
      background: var(--accent);
      border-radius: 2px;
      flex-shrink: 0;
    }
    .spm-sec-h-sm {
      font-size: clamp(15px, 1.6vw, 17px);
      font-weight: 700;
      color: var(--ink);
      margin: 0 0 16px;
      padding-left: 10px;
      border-left: 3px solid var(--accent);
    }

    /* ---- Service section divider ---- */
    .spm-divider {
      border: none;
      border-top: 3px solid var(--line);
      margin: 0;
    }

/* ページネーション廃止にともなう上書き */
    #faq-view { min-height: 0; }
    /* nth-child固定のアニメーション遅延はJSのinline styleで制御するため無効化 */
    .faq-slide-card:nth-child(2),
    .faq-slide-card:nth-child(3) { animation-delay: unset; }

    /* ============================================================
   styles-article.css — Voice list + Column article templates
   Depends on styles.css (tokens / buttons / fade / ph)
   ============================================================ */

/* ---------- Nav (vanilla, hamburger) ---------- */
.ph-head-sub { margin: 24px 0 0; max-width: 640px; font-size: 16px; line-height: 2; color: var(--ink-2); }

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 0 0 clamp(40px, 5vw, 64px);
  background: var(--bg);
}
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 13px; font-weight: 600; color: var(--ink-2);
  cursor: pointer; transition: all .25s;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.filter-chip .cnt { font-family: var(--num); font-size: 11px; opacity: .7; }

/* ---------- Featured article ---------- */
.voice-section { padding: 0 0 clamp(80px,10vw,140px); background: var(--bg); }

.featured {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-xl);
  overflow: hidden; margin-bottom: 56px; transition: all .4s ease;
}
.featured:hover { border-color: var(--accent); box-shadow: 0 32px 56px -32px rgba(0,0,0,.18); }
.featured .f-img { position: relative; aspect-ratio: 16/11; }
.featured .f-img > image-slot, .featured .f-img > .ph { width: 100%; height: 100%; display: block; border-radius: 0; }
.featured .f-badge {
  position: absolute; top: 22px; left: 22px; background: var(--accent); color: #fff;
  padding: 8px 16px; font-family: var(--num); font-size: 10.5px; letter-spacing: .2em; font-weight: 700; border-radius: 999px;
}
.featured .f-body { padding: clamp(32px,4vw,56px); display: flex; flex-direction: column; justify-content: center; }
.featured .f-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.cat-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #fff; background: var(--ink); padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.cat-tag.c-payroll { background: var(--accent); }
.cat-tag.c-hr { background: var(--accent-deep); }
.cat-tag.c-audit { background: #3a4148; }
.cat-tag.c-dx { background: #4cc0d4; }
.cat-tag.c-grant { background: #6a8a3a; }
.post-date { font-family: var(--num); font-size: 12.5px; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; }
.featured h2 { margin: 0 0 18px; font-size: clamp(22px,2.6vw,34px); font-weight: 700; line-height: 1.5; letter-spacing: .02em; }
.featured p { margin: 0 0 28px; font-size: 14px; line-height: 1.95; color: var(--ink-2); }
.read-more { display: inline-flex; align-items: center; gap: 12px; font-family: var(--num); font-size: 12px; letter-spacing: .14em; font-weight: 700; color: var(--ink); }
.read-more .line { width: 28px; height: 1px; background: var(--accent); transition: width .3s; }
.featured:hover .read-more .line, .voice-card:hover .read-more .line { width: 44px; }
@media (max-width: 860px) { .featured { grid-template-columns: 1fr; } }

/* ---------- Article grid ---------- */
.voice-grid-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 1000px) { .voice-grid-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .voice-grid-list { grid-template-columns: 1fr; } }

.voice-card {
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: all .35s ease;
}
.voice-card.hide { display: none; }
.voice-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 28px 44px -30px rgba(0,0,0,.2); }
.voice-card .vc-img { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.voice-card .vc-img > image-slot, .voice-card .vc-img > .ph { width: 100%; height: 100%; display: block; border-radius: 0; transition: transform .6s ease; }
.voice-card:hover .vc-img > image-slot, .voice-card:hover .vc-img > .ph { transform: scale(1.05); }
.voice-card .vc-company {
  position: absolute; bottom: 14px; left: 14px; background: rgba(255,255,255,.92); backdrop-filter: blur(4px);
  padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--ink); letter-spacing: .03em;
}
.voice-card .vc-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.voice-card .vc-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.voice-card h3 { margin: 0 0 14px; font-size: 16px; font-weight: 700; line-height: 1.6; letter-spacing: .01em; }
.voice-card p { margin: 0 0 20px; font-size: 16px; line-height: 1.85; color: var(--ink-3); flex: 1; }
.voice-card .vc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-2); }
.voice-card .vc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-sm { font-size: 10.5px; font-weight: 600; color: var(--accent-deep); background: var(--accent-soft); padding: 4px 9px; border-radius: 999px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 64px; }
.pagination a, .pagination span {
  min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px;
  font-family: var(--num); font-size: 14px; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--line); background: #fff; transition: all .25s; padding: 0 6px;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .cur { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .dots { border: 0; background: transparent; }
.pagination .nav-arrow { gap: 8px; }

/* ============================================================
   Article (column) page
   ============================================================ */
.article-head { padding: 124px 0 0; background: var(--bg); }
.article-head .container-narrow { position: relative; }
.article-meta-top { display: flex; align-items: center; gap: 14px; margin: 28px 0 22px; flex-wrap: wrap; }
.article-title {
  font-size: clamp(26px, 3.6vw, 46px); font-weight: 700; line-height: 1.5;
  letter-spacing: .02em; margin: 0 0 28px; color: var(--ink); text-wrap: pretty;
}
.article-byline { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.article-author { display: flex; align-items: center; gap: 14px; }
.article-author .avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: var(--bg-gray); flex-shrink: 0; }
.article-author .avatar > image-slot, .article-author .avatar > .ph { width: 100%; height: 100%; display: block; border-radius: 50%; }
.article-author .who .name { font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.article-author .who .role { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.article-share { display: flex; align-items: center; gap: 8px; }
.article-share .s-label { font-family: var(--num); font-size: 10.5px; letter-spacing: .2em; font-weight: 700; color: var(--ink-3); margin-right: 4px; }
.share-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); transition: all .25s; }
.share-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.share-btn svg { width: 16px; height: 16px; }

.article-hero-img { margin: clamp(36px,5vw,56px) 0 0; }
.article-hero-img .frame { width: 100%; /*aspect-ratio: 16/8;*/ border-radius: var(--r-xl); overflow: hidden; }
.article-hero-img .frame > image-slot, .article-hero-img .frame > .ph { width: 100%; height: 100%; display: block; border-radius: 0; }
.article-hero-img .cap { margin-top: 12px; font-size: 11.5px; color: var(--ink-3); letter-spacing: .04em; }

/* Article body layout */
.article-wrap { padding: clamp(48px,6vw,80px) 0 clamp(80px,10vw,130px); background: var(--bg); }
.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: clamp(40px,5vw,72px); align-items: start; }
@media (max-width: 940px) { .article-layout { grid-template-columns: 1fr; } }

/* Sidebar */
.article-side { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 940px) { .article-side { position: static; } }
.toc-card { background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 26px 24px; }
.toc-card h4 { margin: 0 0 18px; font-family: var(--num); font-size: 11px; letter-spacing: .22em; font-weight: 700; color: var(--accent); display: flex; align-items: center; gap: 10px; }
.toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; counter-reset: toc; }
.toc-list a { display: flex; gap: 12px; padding: 9px 12px; border-radius: var(--r-sm); font-size: 12.5px; line-height: 1.6; color: var(--ink-2); transition: all .2s; border-left: 2px solid transparent; }
.toc-list a::before { counter-increment: toc; content: counter(toc,decimal-leading-zero); font-family: var(--num); font-size: 10px; font-weight: 700; color: var(--ink-3); padding-top: 2px; }
.toc-list a:hover { background: #fff; color: var(--accent); }
.toc-list a.active { background: #fff; color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.toc-list a.active::before { color: var(--accent); }

.side-cta { background: #f7f7f7; color: #333; border-radius: var(--r-lg); padding: 28px 24px; position: relative; overflow: hidden; }
.side-cta::before { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border: 1px solid rgba(38,164,192,.3); border-radius: 50%; }
.side-cta h4 { margin: 0 0 10px; font-size: 17px; font-weight: 700; line-height: 1.5; position: relative; }
.side-cta p { margin: 0 0 18px; font-size: 12px; line-height: 1.8; color: #333; position: relative; }
.side-cta .btn { width: 100%; justify-content: center; position: relative; }

/* Article typography */
.article-body { font-size: 15.5px; line-height: 2.05; color: var(--ink-2); max-width: 720px; }
.article-body > * + * { margin-top: 28px; }
.article-body .lead { font-size: 17px; line-height: 1.8; color: var(--ink); font-weight: 500; }
.article-body h2, .h2-title {
  font-size: clamp(21px,2.3vw,28px); font-weight: 700; line-height: 1.5; color: var(--ink);
  letter-spacing: .02em; margin-top: 60px; padding: 0 0 16px; border-bottom: 2px solid var(--line-2);
  position: relative; scroll-margin-top: 100px;
}
.article-body h2::after, .h2-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 2px; background: var(--accent); }
.article-body h3, .h3-title { font-size: clamp(17px,1.9vw,21px); font-weight: 700; line-height: 1.55; color: var(--ink); margin-top: 44px; letter-spacing: .02em; scroll-margin-top: 100px; padding-left: 16px; border-left: 4px solid var(--accent); }
.article-body p { margin-top: 22px; text-wrap: pretty; }
.article-body strong { font-weight: 700; color: var(--ink); }
.article-body a.inline { color: var(--accent-deep); border-bottom: 1px solid var(--accent-soft); font-weight: 600; }
.article-body a.inline:hover { border-bottom-color: var(--accent-deep); }
.article-body ul, .article-body ol { margin-top: 22px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.article-body ul li { position: relative; padding-left: 30px; line-height: 1.9; }
.article-body ul li::before { content: ""; position: absolute; left: 6px; top: 11px; width: 8px; height: 8px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.article-body ol { counter-reset: ol; }
.article-body ol > li { position: relative; padding-left: 42px; line-height: 1.9; counter-increment: ol; }
.article-body ol > li::before { content: counter(ol); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; background: var(--accent); color: #fff; border-radius: 50%; display: grid; place-items: center; font-family: var(--num); font-size: 12px; font-weight: 700; }
.article-body ol li ul { margin-top: 10px; gap: 8px; }
.article-body ol li ul li { padding-left: 18px; }
.article-body ol li ul li::before { content: "・"; position: absolute; left: 2px; top: 0; width: auto; height: auto; background: none; border: none; transform: none; border-radius: 0; display: inline; color: var(--ink-2); font-family: inherit; font-size: 16px; font-weight: 400; line-height: 1.9; }

.article-body figure { margin: 36px 0; }
.article-body figure .frame { width: 100%; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; }
.article-body figure .frame > image-slot, .article-body figure .frame > .ph { width: 100%; height: 100%; display: block; border-radius: 0; }
.article-body figure figcaption { margin-top: 12px; font-size: 12px; color: var(--ink-3); text-align: center; letter-spacing: .03em; }

.article-body blockquote {
  margin: 36px 0; padding: 28px 32px; background: var(--bg-soft);
  border-left: 4px solid var(--accent); border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 16px; line-height: 1.95; color: var(--ink); font-weight: 500; position: relative;
}
.article-body blockquote::before { content: "“"; font-family: var(--num); font-size: 56px; color: var(--accent-soft); position: absolute; top: 8px; right: 20px; line-height: 1; font-weight: 700; }

.callout {
  margin: 36px 0; padding: 28px 30px; background: var(--accent-soft);
  border-radius: var(--r-lg); position: relative;
}
.callout .c-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--num); font-size: 10.5px; letter-spacing: .2em; font-weight: 700; color: var(--accent-deep); margin-bottom: 12px; }
.callout p { margin: 0; font-size: 14px; line-height: 1.9; color: var(--accent-ink); }
.callout.warn { background: #fbeae7; }
.callout.warn .c-label { color: var(--warn); }
.callout.warn p { color: #6e2c23; }

.article-table-wrap { margin: 36px 0; overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line-2); }
.article-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; }
.article-table th { background: var(--ink); color: #fff; text-align: left; padding: 16px 18px; font-weight: 700; font-size: 12.5px; letter-spacing: .04em; }
.article-table td { padding: 15px 18px; border-bottom: 1px solid var(--line-2); }
.article-table tr:last-child td { border-bottom: 0; }
.article-table tr:nth-child(even) td { background: var(--bg-soft); }

/* Tags + author box + share footer */
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line-2); max-width: 720px; }
.article-tags .t { font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--bg-gray); padding: 8px 16px; border-radius: 999px; transition: all .25s; }
.article-tags .t:hover { background: var(--accent); color: #fff; }

.author-box { display: grid; grid-template-columns: 80px 1fr; gap: 24px; margin-top: 40px; padding: 32px; background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: var(--r-lg); max-width: 720px; align-items: start; }
.author-box .ab-avatar { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; background: var(--bg-gray); }
.author-box .ab-avatar > image-slot, .author-box .ab-avatar > .ph { width: 100%; height: 100%; display: block; border-radius: 50%; }
.author-box .ab-role { font-family: var(--num); font-size: 10.5px; letter-spacing: .2em; font-weight: 700; color: var(--accent); }
.author-box .ab-name { font-size: 18px; font-weight: 700; margin: 6px 0 12px; letter-spacing: .02em; }
.author-box .ab-bio { font-size: 13px; line-height: 1.9; color: var(--ink-2); margin: 0; }
@media (max-width: 540px) { .author-box { grid-template-columns: 1fr; } }

/* Related articles */
.related { padding: clamp(72px,9vw,120px) 0; background: var(--bg-soft); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
@media (max-width: 1000px) { .related-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr; } }

/* ---------- Shared CTA band ---------- */
.cta-band { padding: clamp(72px,9vw,120px) 0; background: var(--bg); }
.cta-band-card {
  background: linear-gradient(135deg, #1b8aa3 0%, #26a4c0 55%, #4cc0d4 100%);
  color: #fff; border-radius: var(--r-xl); padding: clamp(44px,6vw,72px) clamp(32px,5vw,72px);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
}
.cta-band-card::before { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.cta-band-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 30%, rgba(255,255,255,.16), transparent 50%); }
.cta-band-card > * { position: relative; z-index: 1; }
.cta-band-card .eyebrow { color: rgba(255,255,255,.9); }
.cta-band-card h2 { margin: 14px 0 16px; font-size: clamp(26px,3.4vw,40px); font-weight: 700; line-height: 1.4; letter-spacing: .02em; }
.cta-band-card p { margin: 0; font-size: 14px; line-height: 1.9; color: rgba(255,255,255,.9); }
.cta-band-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-band-actions .btn-white { background: #fff; color: var(--accent-deep); padding: 20px 26px; border-radius: var(--r-md); font-weight: 700; font-size: 15px; justify-content: space-between; }
.cta-band-actions .btn-white:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.cta-band-actions .tel { padding: 16px 22px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: var(--r-md); }
.cta-band-actions .tel .label { font-family: var(--num); font-size: 10px; letter-spacing: .22em; opacity: .85; }
.cta-band-actions .tel .num { font-family: var(--num); font-size: 26px; font-weight: 700; display: block; line-height: 1.2; }
@media (max-width: 800px) { .cta-band-card { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Footer ---------- */
.footer { background: var(--bg); padding: 80px 0 140px; border-top: 1px solid var(--line-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--line-2); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .addr { font-size: 12.5px; line-height: 1.95; color: var(--ink); }
.footer-brand .addr strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 4px; font-size: 13px; }
.footer-col h5 { margin: 0 0 18px; font-family: var(--num); font-size: 11px; letter-spacing: .22em; font-weight: 700; color: var(--accent); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; color: var(--ink-2); transition: color .2s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { padding-top: 28px; display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--ink-3); letter-spacing: .05em; gap: 16px; flex-wrap: wrap; }
.footer-bottom .legal { display: flex; gap: 20px; }
.footer-bottom .legal a:hover { color: var(--ink); }

/* Reading progress bar */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); width: 0; z-index: 101; transition: width .1s linear; }

/* ============================================================
   Voice detail page — お客様の声 詳細
   ============================================================ */

/* 会社情報バー */
.voice-client-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--r-md);
}
.voice-client-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

/* Q&A セクション */
.voice-qa { margin-top: 2.5rem; }

.qa-item {
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.qa-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.qa-q-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.qa-a-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.qa-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: #fff;
  font-family: var(--num);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1;
}
.qa-badge--q { background: var(--accent); }
.qa-badge--a { background: var(--ink-2); }

.qa-q-text {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.65;
  margin: 0;
  padding-top: .45rem;
  color: var(--ink);
}
.qa-a-body {
  flex: 1;
  padding-top: .45rem;
  font-size: 15px;
  line-height: 2;
  color: var(--ink-2);
}
.qa-a-body p { margin: 0; }
.qa-a-body p + p { margin-top: 1rem; }

/* ═══════════════════════════════════════════════
   会社情報ページ共通パーツ
   （company/concept.php, access.php, profile.php）
═══════════════════════════════════════════════ */

/* 11項目比較表 — 9〜11行目のチェックアニメーション遅延を追加 */
.compare-wrap.in tbody tr:nth-child(9)  .cmp-check { animation-delay: 1.65s; }
.compare-wrap.in tbody tr:nth-child(10) .cmp-check { animation-delay: 1.80s; }
.compare-wrap.in tbody tr:nth-child(11) .cmp-check { animation-delay: 1.95s; }

/* ブランドスローガン（centered pull line） */
.brand-slogan {
  text-align: center;
  max-width: 720px;
  margin: 48px auto 0;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  line-height: 1.6;
  position: relative;
  padding: 0 20px;
}

/* 著書紹介カード */
.book-card {
  display: flex;
  gap: clamp(28px, 4vw, 48px);
  align-items: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 40px);
}
.book-cover {
  flex: 0 0 auto;
  width: 160px;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 20px 40px -24px rgba(0,0,0,0.35);
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-body { flex: 1; min-width: 0; }
.book-tag {
  display: inline-block;
  font-family: var(--num);
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.book-title { font-size: clamp(17px, 2vw, 21px); font-weight: 700; line-height: 1.6; color: var(--ink); margin: 0 0 8px; }
.book-author { font-size: 13px; color: var(--ink-3); margin: 0 0 18px; }
.book-award {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 12px 16px;
  margin: 0 0 18px;
}
.book-award strong { color: var(--accent-deep); }
.book-note { font-size: 13.5px; line-height: 1.9; color: var(--ink-2); margin: 0; }
@media (max-width: 640px) {
  .book-card { flex-direction: column; }
  .book-cover { width: 120px; }
}

/* 地図埋め込み（アクセスページ） */
.map-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  aspect-ratio: 16 / 9;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 640px) {
  .map-frame { aspect-ratio: 4 / 3; }
}
