/* paimen enhance: splash / nav dropdown / reveal / division pages */

/* ---------- splash（Canvasパーティクル演出＋CSSフェイルセーフ） ---------- */
html[data-pm-splash]::before {
  content: "";
  position: fixed; inset: 0; z-index: 9998;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 46%, rgba(72, 215, 255, .16), transparent 30rem),
    #020814;
  animation: pm-cover-out .65s ease 2.8s forwards; /* JS不達時の保険 */
}
@keyframes pm-cover-out { to { opacity: 0; visibility: hidden; } }
#pm-splash-c {
  position: fixed; inset: 0; z-index: 10000;
  background:
    radial-gradient(circle at 50% 46%, rgba(60, 190, 255, .14), transparent 34rem),
    radial-gradient(circle at 50% 120%, rgba(10, 40, 90, .55), transparent 60rem),
    #020814;
  opacity: 1; transition: opacity .45s ease;
  cursor: pointer;
}
#pm-splash-c.pm-out { opacity: 0; pointer-events: none; }
#pm-splash-c canvas { display: block; width: 100%; height: 100%; }

/* ---------- nav dropdown ---------- */
.pm-dd { position: relative; }
.pm-dd-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 220px; padding: 8px;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 68, 138, .1); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(2, 8, 20, .16), 0 2px 8px rgba(2, 8, 20, .08);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.pm-dd:hover .pm-dd-menu, .pm-dd:focus-within .pm-dd-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.pm-dd-menu a {
  display: block; padding: 10px 14px; border-radius: 9px;
  font-size: 13px; font-weight: 500; color: #374151; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.pm-dd-menu a:hover { background: rgba(59, 130, 246, .08); color: #2563eb; }
.pm-dd-menu a small { display: block; font-size: 10.5px; color: #9ca3af; font-weight: 400; margin-top: 1px; }
.pm-dd-caret { display: inline-block; margin-left: 4px; font-size: 9px; transform: translateY(-1px); opacity: .6; }

/* ---------- scroll reveal ---------- */
.pm-reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.pm-reveal.pm-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .pm-reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- 実績タブ（/case および事業別ページ） ---------- */
.pm-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 40px; }
.pm-tab {
  display: inline-block; padding: 9px 20px; border-radius: 999px;
  border: 1px solid #e5e7eb; background: #fff; color: #4b5563;
  font-size: 13px; font-weight: 500; transition: all .2s ease;
}
.pm-tab:hover { border-color: #3b82f6; color: #2563eb; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(59,130,246,.15); }
.pm-tab-active { background: #3b82f6; border-color: #3b82f6; color: #fff; }
.pm-tab-active:hover { color: #fff; }

/* ---------- 事業別ページ部品 ---------- */
.pm-stats { margin-bottom: 8px; }
.pm-stat { padding: 28px 20px; text-align: center; }
.pm-stat-num { font-family: var(--font-heading, Lato, sans-serif); font-size: 40px; font-weight: 700; color: #2563eb; line-height: 1.1; }
.pm-stat-num span { font-size: 18px; margin-left: 2px; }
.pm-stat-label { margin-top: 10px; font-size: 12.5px; color: #6b7280; line-height: 1.5; }
.pm-note { text-align: right; font-size: 11px; color: #9ca3af; margin: 8px 0 0; }
.pm-h2 { font-size: 20px; font-weight: 700; color: #1f2937; margin: 56px 0 24px; padding-left: 14px; border-left: 4px solid #3b82f6; }
.pm-faq-wrap { display: grid; gap: 12px; max-width: 780px; margin: 0 auto; }
.pm-faq { border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; padding: 0; overflow: hidden; }
.pm-faq summary {
  cursor: pointer; list-style: none; padding: 16px 20px;
  font-size: 14px; font-weight: 600; color: #1f2937; position: relative;
}
.pm-faq summary::-webkit-details-marker { display: none; }
.pm-faq summary::before { content: "Q."; color: #2563eb; font-weight: 700; margin-right: 8px; }
.pm-faq summary::after { content: "＋"; position: absolute; right: 18px; color: #9ca3af; transition: transform .2s; }
.pm-faq[open] summary::after { transform: rotate(45deg); }
.pm-faq p { margin: 0; padding: 0 20px 16px 44px; font-size: 13.5px; line-height: 1.8; color: #4b5563; }

/* ---------- 静的ページ用ヘッダー調整 ---------- */
body[data-pm-static] header { background: rgba(255, 255, 255, .92) !important; backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(15, 68, 138, .08); }
body[data-pm-static] #pm-mobile-menu {
  position: fixed; top: 60px; left: 0; right: 0; z-index: 40;
  background: rgba(255,255,255,.98); border-bottom: 1px solid #e5e7eb;
  padding: 12px 24px 18px; display: none;
}
body[data-pm-static] #pm-mobile-menu.pm-open { display: block; }
body[data-pm-static] #pm-mobile-menu a { display: block; padding: 10px 4px; font-size: 14px; color: #374151; border-bottom: 1px solid #f3f4f6; }
