@charset "UTF-8";

/*
Theme Name: hrms_dev
Description: A WordPress theme for your sites.
Version: 1.2.0
*/

:root {
  --color-bg: #ffffff;
  --color-text: #111827;
  --color-primary: #202b53;
  --color-primary-foreground: #ffffff;
  --color-border: #e5e7eb;
  --color-accent: #a92523;
  --color-muted: #6b7280;
  --wm-gold: #b8925a;
  --wm-silver: #b7bac2;

  /* fixed header + glass panel の高さぶん。body の余白とアンカースクロール時のオフセットで共有する */
  --header-offset: 9rem;

  --font-sans:
    "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

  --radius: 0.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  font-size: 118.75%; /* 16px -> 19px (about +3px) */
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* アンカーリンクの着地位置を固定ヘッダー分だけ下にずらす（対象は id を持つ要素全般） */
[id] {
  scroll-margin-top: var(--header-offset);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: linear-gradient(160deg, #ffffff 0%, #f7f8fb 45%, #eef0f6 100%);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.25;
  margin: 0 0 1rem 0;
}

p {
  margin: 0 0 1rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
}

.btn:hover {
  background: transparent;
  color: var(--color-primary);
}

/* Base layout (template-specific utility classes) */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: var(--color-bg);
}

header {
  border-bottom: 1px solid var(--color-border);
}

footer {
  padding-top: 2rem;
  padding-bottom: 1rem;
  margin-top: auto;
  background: var(--color-primary);
  color: #fff;
}

.main-content {
  flex: 1 1 auto;
}

.wrap {
  width: 100%;
}

.page-content {
  padding: 2.5rem 0;
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Header (PC first; mobile adjustments are planned later) */
body {
  padding-top: var(--header-offset);
}

/* front-page.php のヒーローはフルブリードで固定ヘッダーの下に潜り込ませる仕様のため、
   body側のヘッダー分オフセットを丸ごと無効化する(SPでの余白ズレの原因を根本的に断つ)。
   ヘッダー下へのテキストのクリアランスは .wm-hero__inner 側で individually 確保する。
   注意: WordPressの body_class() はフロントページに `front-page` ではなく `home` を付与するため、
   セレクタは body.home が正しい(body.front-page は一致せず無効化されていなかった) */
body.home {
  padding-top: 0;
}

.site-header {
  position: fixed;
  top: 1.25rem;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 0;
  background: transparent;
  font-size: 16px; /* keep header typography unchanged */
}

.site-header .uk-container.container {
  position: relative;
}

/* SERVICEセクションの `.wm-glass-card` と同系統のグラス（SVG歪みは使わない） */
.site-header__glass.wm-glass-card {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* `.wm-glass-card` の大きめpaddingはヘッダーでは不要 */
  padding: 0;
  border-radius: 1.5rem;
}

.site-header__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.75rem 1.25rem;
}

.site-header__logo img {
  width: auto;
  max-height: 2.75rem;
}

.site-header__nav {
  margin-left: auto;
}

.site-header__toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--color-text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0;
  cursor: pointer;
}

.site-header__toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
}

.site-header__toggle-line + .site-header__toggle-line {
  margin-top: 5px;
}

.site-header__menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
}

.site-header__menu-link {
  position: relative;
  display: inline-block;
  color: var(--color-text);
  font-size: 17px; /* preserve previous 1.05rem@16px */
  font-weight: 600;
  line-height: 1.8;
}

.site-header__menu-link::before,
.site-header__menu-link::after,
.site-header__dropdown-link::before,
.site-header__dropdown-link::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.5s;
}

.site-header__menu-link::before,
.site-header__dropdown-link::before {
  margin-left: auto;
}

.site-header__menu-link:hover::before,
.site-header__menu-link:hover::after,
.site-header__dropdown-link:hover::before,
.site-header__dropdown-link:hover::after {
  width: 100%;
}

.site-header a:hover {
  text-decoration: none;
  color: var(--color-primary);
}

.site-header__contact {
  --primary-color: var(--color-primary);
  --secondary-color: #fff;
  --hover-color: var(--color-accent);
  --arrow-width: 10px;
  --arrow-stroke: 2px;
  box-sizing: border-box;
  border: 0;
  border-radius: 6px;
  color: var(--secondary-color);
  padding: 0.95em 1.45em;
  background: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 700;
  transition: 0.2s background;
  line-height: 1;
}

.site-header__arrow-wrapper {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.site-header__arrow {
  margin-top: 1px;
  width: var(--arrow-width);
  background: var(--primary-color);
  height: var(--arrow-stroke);
  position: relative;
  transition: 0.2s;
}

.site-header__arrow::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  border: solid var(--secondary-color);
  border-width: 0 var(--arrow-stroke) var(--arrow-stroke) 0;
  display: inline-block;
  top: -3px;
  right: 3px;
  transition: 0.2s;
  padding: 3px;
  transform: rotate(-45deg);
}

.site-header__contact:hover {
  background-color: var(--hover-color);
  color: #ffffff !important;
}

.site-header__contact:hover .site-header__arrow {
  background: var(--secondary-color);
}

.site-header__contact:hover .site-header__arrow::before {
  right: 0;
}

/* Header dropdown (Service) */
.site-header__menu-item--has-dropdown {
  position: relative;
}

.site-header__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-family: inherit;
  font-size: 17px; /* match .site-header__menu-link */
  font-weight: 600;
  line-height: 1.8;
  cursor: pointer;
}

.site-header__dropdown-toggle:hover {
  color: var(--color-primary);
}

.site-header__dropdown-caret {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.15em) rotate(45deg);
  transition: transform 0.25s ease;
}

.site-header__menu-item--has-dropdown.is-open .site-header__dropdown-caret {
  transform: translateY(0.1em) rotate(-135deg);
}

.site-header__dropdown {
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 50%;
  min-width: 15rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 0.75rem;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(0.5rem);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  z-index: 20;
}

.site-header__menu-item--has-dropdown.is-open .site-header__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.site-header__dropdown > li {
  padding: 0.35rem 1.5rem;
}

.site-header__dropdown-link {
  position: relative;
  display: inline-block;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.8; /* match .site-header__menu-link */
  white-space: nowrap;
}

@media screen and (max-width: 768px) {
  :root {
    --header-offset: 7.5rem;
  }

  .site-header {
    top: 0.75rem;
  }

  .site-header__inner {
    gap: 1rem;
    padding: 0.65rem 0.9rem;
  }

  .site-header__logo {
    margin-right: auto;
  }

  .site-header__logo img {
    max-height: 1.85rem;
  }

  .site-header__toggle {
    display: inline-flex;
  }

  .site-header__nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.6rem);
    left: -0.9rem;
    right: -0.9rem;
    margin-left: 0;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .site-header.is-open .site-header__nav {
    display: block;
  }

  .site-header__menu {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .site-header__menu > li {
    width: 100%;
  }

  .site-header__menu-link {
    display: block;
    width: 100%;
    padding: 0.35rem 0;
  }

  .site-header__contact {
    width: 100%;
    justify-content: center;
  }

  .site-header.is-open .site-header__toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.is-open .site-header__toggle-line:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-open .site-header__toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-header__dropdown-toggle {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 0.35rem 0;
  }

  .site-header__dropdown {
    position: static;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .site-header__menu-item--has-dropdown.is-open .site-header__dropdown {
    visibility: visible;
    pointer-events: auto;
    transform: none;
    max-height: 16rem;
  }

  .site-header__dropdown > li {
    padding: 0;
  }

  .site-header__dropdown-link {
    display: block;
    padding: 0.4rem 0 0.4rem 1rem;
    font-size: 16px;
    white-space: normal;
  }
}

/* Footer (PC first) */
.site-footer__inner {
  width: 100%;
  padding-inline: 3rem; /* 左右の余白を少し確保 */
  font-size: 16px; /* keep footer typography unchanged */
}

.site-footer__rows {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.site-footer__row {
  display: grid;
  align-items: center;
  --footer-row-gap: 2rem;
  column-gap: var(--footer-row-gap);
}

.site-footer__row--top {
  grid-template-columns: calc(60% - (var(--footer-row-gap) / 2)) calc(40% - (var(--footer-row-gap) / 2));
}

.site-footer__row--bottom {
  grid-template-columns: calc(70% - (var(--footer-row-gap) / 2)) calc(30% - (var(--footer-row-gap) / 2));
  /* メニューが縦に長いため、コピーライトを行の下端に揃えて最下部に表示する */
  align-items: end;
}

.site-footer__col--right {
  justify-self: end;
}

.site-footer__logo img {
  width: auto;
  max-height: 2.75rem;
}

.site-footer__permit {
  margin: 0;
  font-weight: 700;
}

.site-footer__menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: flex-start; /* サービスのサブメニューで高さが出るため上揃え */
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-footer__menu-item--has-children {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.site-footer__menu-label {
  font-size: 17px; /* match footer menu links */
  font-weight: 600;
  line-height: 1.8;
  color: #fff;
  cursor: default;
}

.site-footer__submenu {
  margin: 0;
  padding: 0 0 0 0.9rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-left: 2px solid rgba(255, 255, 255, 0.35);
}

.site-footer__copyright {
  margin: 0;
  text-align: right;
  font-weight: 600;
}

/* Footer menu: header-like hover (no text underline) */
.site-footer a {
  text-decoration: none;
  color: #fff;
}

.site-footer a:hover {
  text-decoration: none;
  color: #fff;
}

@media screen and (max-width: 768px) {
  .site-footer__inner {
    padding-inline: 2rem;
  }

  .site-footer__rows {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .site-footer__row {
    display: contents;
  }

  .site-footer__row--top,
  .site-footer__row--bottom {
    grid-template-columns: none;
  }

  .site-footer__block--logo {
    order: 1;
    text-align: center;
  }

  .site-footer__block--logo .site-footer__logo {
    display: inline-flex;
  }

  .site-footer__block--menu {
    order: 2;
    text-align: left;
  }

  .site-footer__block--permit {
    order: 3;
    text-align: right;
  }

  .site-footer__block--copyright {
    order: 4;
    text-align: right;
  }

  .site-footer__menu {
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
  }

  .site-footer__menu-label {
    /* 隣接リンク (.site-header__menu-link の SP 余白 0.35rem + 下線疑似要素 2px) と上端を揃える */
    padding-top: calc(0.35rem + 2px);
  }

  .site-footer__permit,
  .site-footer__copyright {
    font-size: 0.7rem;
  }
}

/* ================================
   Front Page (PC first)
================================ */

.wm-hero {
  min-height: 100vh;
  /* SPのアドレスバー分の誤差で背景動画の上下に余白が出るのを防ぐ(dvh対応ブラウザのみ上書き) */
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  text-align: center;
  background-color: transparent;
  /* body.home 側で padding-top を0にしているため、ヒーローは常に viewport 上端から始まる
       (以前の margin-top/padding-top での相殺は body 側の値とズレて余白が残る原因だったため廃止) */
}

/* アンカー遷移時に固定ヘッダーの下に隠れないよう、スクロール先の上部にマージンを確保 */
#wm-about {
  scroll-margin-top: 9rem;
}

@media screen and (max-width: 768px) {
  #wm-about {
    scroll-margin-top: 7.5rem;
  }
}

/* wm-lp-* ページ（service-partner / service-client 等）の
   構成図クリック → セクション遷移で固定ヘッダーに隠れないための共通クラス */
.wm-lp-anchor {
  scroll-margin-top: 9rem;
}

@media screen and (max-width: 768px) {
  .wm-lp-anchor {
    scroll-margin-top: 7.5rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ヒーロー下部のスクロールキュー(クリックで次セクションへ)
   背景(動画/写真)の明暗を問わず視認できるよう、既存ブランドカラー(紺+ゴールド)で
   不透明な chip にする(半透明白だと明るい背景に同化してしまうため) */
.wm-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  z-index: 2;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  background: var(--color-primary);
  border: 1px solid var(--wm-gold);
  box-shadow: 0 8px 24px rgba(32, 43, 83, 0.35);
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.wm-hero__scroll:hover,
.wm-hero__scroll:focus-visible {
  background: #2d3b70;
  border-color: var(--wm-gold);
  box-shadow: 0 8px 28px rgba(184, 146, 90, 0.45);
  outline: none;
}

.wm-hero__scroll-icon {
  display: inline-flex;
}

.wm-hero__scroll-icon svg {
  width: 22px;
  height: 22px;
}

@media (prefers-reduced-motion: no-preference) {
  .wm-hero__scroll-icon {
    animation: wmHeroScrollBounce 1.8s ease-in-out infinite;
  }
}

@keyframes wmHeroScrollBounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

/* ヒーロー背景動画(全面カバー、動きは動画のみ・演出アニメーションなし) */
.wm-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.wm-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wm-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.25) 45%,
    rgba(255, 255, 255, 0.55) 100%
  );
}

.wm-home {
  position: relative;
}

.main-content {
  position: relative;
  z-index: 1;
}

.site-footer {
  position: relative;
  z-index: 1;
}

.wm-bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.wm-home > section {
  position: relative;
  z-index: 1;
}

.wm-hero__inner {
  position: relative;
  z-index: 1;
  /* body側のヘッダー分オフセットを front-page では無効化したため、
       固定ヘッダーの下にテキストが隠れないようここで直接クリアランスを確保する
       (--header-offset は :root で定義、768px以下では 7.5rem に自動的に切り替わる) */
  padding-top: var(--header-offset);
}

/* Hero-specific container sizing (global .container を壊さないためスコープ) */
.wm-hero__inner.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media screen and (min-width: 481px) {
  .wm-hero__inner.container {
    max-width: 540px;
  }
}

@media screen and (min-width: 769px) {
  .wm-hero__inner.container {
    max-width: 720px;
  }
}

@media screen and (min-width: 981px) {
  .wm-hero__inner.container {
    max-width: 1200px;
  }
}

.wm-hero h1 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

@media screen and (min-width: 981px) {
  .wm-hero h1 {
    font-size: 56px;
  }
}

/* ================================
   Front Page Renewal (全ページ共通の背景として採用)
   docs/front-page-renewal-requirements.md 対応
   bg-video.php に代えて bg-static.php を全ページで読み込む想定
================================ */

/* 静的背景装飾: ゴールド/シルバーの極細ライン + サーキットパターン(動きなし) */
.wm-home__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.08;
  background-repeat: no-repeat, no-repeat, repeat;
  background-position:
    0 18%,
    0 68%,
    0 0;
  background-size:
    100% 1px,
    100% 1px,
    260px 260px;
  background-image:
    linear-gradient(90deg, transparent 8%, var(--wm-gold) 40%, var(--wm-gold) 60%, transparent 92%),
    linear-gradient(90deg, transparent 15%, var(--wm-silver) 45%, var(--wm-silver) 65%, transparent 88%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%23b8925a' stroke-width='1.2'%3E%3Cpath d='M20 30H110V70H210'/%3E%3Cpath d='M50 70V150H140V210'/%3E%3Cpath d='M170 30V110H220V190'/%3E%3C/g%3E%3Cg fill='%23b8925a'%3E%3Ccircle cx='110' cy='70' r='3.5'/%3E%3Ccircle cx='140' cy='150' r='3.5'/%3E%3Ccircle cx='170' cy='110' r='3.5'/%3E%3C/g%3E%3C/svg%3E");
}

/* 微細なノイズ/グレイン質感(フラットになりすぎないための質感付け) */
.wm-home__bg-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-repeat: repeat;
  background-size: 180px 180px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/rect%3E%3C/svg%3E");
}

/* ====== ABOUT (HOW IT WORKS: HRマネージドサービス=プラットフォームの概要説明) ====== */
.wm-about {
  padding: 5rem 0;
}

.wm-about__card {
  position: relative;
  overflow: hidden;
}

/* 背景アニメーション: 柔らかいアンビエントブロブがゆっくり明滅・移動する。
   本文は不透明度0.72のグラスカード上にあるため可読性は保たれる */
.wm-about__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.wm-about__bg::before,
.wm-about__bg::after {
  content: "";
  position: absolute;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
}

.wm-about__bg::before {
  top: -18%;
  left: -12%;
  background: radial-gradient(circle, rgba(184, 146, 90, 0.08), transparent 70%);
}

.wm-about__bg::after {
  bottom: -22%;
  right: -10%;
  background: radial-gradient(circle, rgba(32, 43, 83, 0.07), transparent 70%);
}

@media (prefers-reduced-motion: no-preference) {
  .wm-about__bg::before {
    animation: wmAboutBlobFloat1 18s ease-in-out infinite;
  }

  .wm-about__bg::after {
    animation: wmAboutBlobFloat2 22s ease-in-out infinite;
  }
}

@keyframes wmAboutBlobFloat1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(6%, 8%) scale(1.12);
  }
}

@keyframes wmAboutBlobFloat2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-6%, -6%) scale(1.15);
  }
}

.wm-about__body {
  position: relative;
  z-index: 1;
}

.wm-about__text {
  max-width: 88ch;
  margin: 0 auto 3rem;
  text-align: center;
}

.wm-about__catch {
  margin: 0 0 1rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
}

.wm-about__desc {
  margin: 0;
  color: var(--color-muted);
  font-weight: 600;
  line-height: 2;
}

/* 派遣先企業 - HRマネージドサービス(プラットフォーム) - 派遣元企業 の関係性図 */
.wm-about__diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.wm-about__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 140px;
  padding: 1.1rem 1.25rem;
  border-radius: 0.9rem;
}

.wm-about__node--side {
  min-width: 180px;
  padding: 1.5rem 1.75rem;
  background: rgba(32, 43, 83, 0.06);
  border: 1px solid rgba(32, 43, 83, 0.14);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.05rem;
}

.wm-about__node--hub {
  background: linear-gradient(155deg, #202b53 0%, #2d3b70 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 28px rgba(32, 43, 83, 0.25);
  color: #fff;
}

.wm-about__node--hub .wm-about__node-label {
  font-weight: 800;
  font-size: 1rem;
}

.wm-about__node-sublabel {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--wm-gold);
}

.wm-about__connector {
  position: relative;
  flex: 1 1 70px;
  max-width: 110px;
  height: 2px;
  background: linear-gradient(90deg, var(--wm-silver), var(--wm-gold));
}

.wm-about__dot {
  position: absolute;
  top: 0;
  left: 0%;
  width: 8px;
  height: 8px;
  margin-top: -3px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--wm-gold);
  box-shadow: 0 0 0 4px rgba(184, 146, 90, 0.18);
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .wm-about__dot {
    animation: wmAboutFlow 2.6s ease-in-out infinite;
  }

  /* 右側(パトナビ側)のドットは逆再生し、両側とも中央のHRマネージドサービスへ向かって流れるようにする */
  .wm-about__connector--right .wm-about__dot {
    animation-direction: reverse;
    animation-delay: 1.3s;
  }
}

@keyframes wmAboutFlow {
  0% {
    left: 0%;
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

@media screen and (max-width: 640px) {
  .wm-about__diagram {
    flex-direction: column;
  }

  .wm-about__node {
    width: 100%;
    max-width: 220px;
  }

  .wm-about__connector {
    width: 2px;
    height: 2.5rem;
    max-width: none;
    background: linear-gradient(180deg, var(--wm-silver), var(--wm-gold));
  }

  .wm-about__dot {
    top: 0%;
    left: 50%;
    margin-top: -4px;
    margin-left: -4px;
  }
}

@media screen and (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .wm-about__dot {
    animation-name: wmAboutFlowVertical;
  }
}

@keyframes wmAboutFlowVertical {
  0% {
    top: 0%;
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

/* ====== FLOW (SERVICE: lapi-staff.com の homeServiceChart を参考に構成) ====== */
.wm-flow__layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: stretch;
}

/* 左側: 背景装飾+2アイコンのビジュアルパネル(右側の白いグラスカードと質感を変え、チャートらしい視覚的重みを持たせる) */
.wm-flow__visual {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: linear-gradient(155deg, #202b53 0%, #2d3b70 100%);
  padding: 3.5rem 2.5rem;
  display: flex;
  align-items: center;
  min-height: 380px;
}

.wm-flow__visual-bg {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
  background-repeat: repeat;
  background-size: 220px 220px;
  background-position: 0 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%23b7bac2' stroke-width='1.1'%3E%3Cpath d='M15 25h80v40h100'/%3E%3Cpath d='M45 65v70h90v60'/%3E%3C/g%3E%3Cg fill='%23b7bac2'%3E%3Ccircle cx='95' cy='65' r='3'/%3E%3Ccircle cx='135' cy='135' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

/* 背景パターンがゆっくり漂うように動く。background-position を1タイル分ずらすことで
   (transformでの移動と異なり)パネルの高さに関わらず途切れずに無限ループする */
@media (prefers-reduced-motion: no-preference) {
  .wm-flow__visual-bg {
    animation: wmFlowBgDrift 36s linear infinite;
  }
}

@keyframes wmFlowBgDrift {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 220px 220px;
  }
}

.wm-flow__visual-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wm-flow__badge {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  max-width: 340px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

/* 派手めの演出: ゴールドの光彩が明滅し、光の帯が周期的に横切る */
@media (prefers-reduced-motion: no-preference) {
  .wm-flow__badge {
    animation: wmBadgeGlow 3.2s ease-in-out infinite;
  }

  .wm-flow__badge:nth-of-type(2) {
    animation-delay: 1.6s;
  }
}

@keyframes wmBadgeGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(184, 146, 90, 0);
  }

  50% {
    box-shadow: 0 0 28px 6px rgba(184, 146, 90, 0.3);
  }
}

.wm-flow__badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .wm-flow__badge::before {
    animation: wmBadgeShine 3.6s ease-in-out infinite;
  }

  .wm-flow__badge:nth-of-type(2)::before {
    animation-delay: 1.8s;
  }
}

@keyframes wmBadgeShine {
  0% {
    left: -60%;
  }

  45%,
  100% {
    left: 140%;
  }
}

/* JS(IntersectionObserver)がスクロール進入時に .is-visible を付与するまでの初期状態。
   `.js`(main.jsが即時に付与するフラグ)が無い場合=JS未実行時は初期非表示を適用せず、
   常にコンテンツが見える状態を保つ(プログレッシブエンハンスメント) */
@media (prefers-reduced-motion: no-preference) {
  .js .wm-flow__badge[data-wm-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
      background-color 0.25s ease,
      border-color 0.25s ease;
  }

  .js .wm-flow__badge[data-wm-reveal]:nth-of-type(2) {
    transition-delay: 0.12s;
  }

  .js .wm-flow__badge[data-wm-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

.wm-flow__badge:hover,
.wm-flow__badge:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--wm-gold);
  transform: translateY(-2px);
  outline: none;
}

.wm-flow__badge:active {
  transform: translateY(0) scale(0.98);
}

.wm-flow__badge-main {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex: 1 1 auto;
  min-width: 0;
}

/* SPでは名称が縦一文字ずつ折り返され読みにくくなるため、アイコン+名称を縦積みにし、
   矢印アイコンはその横に配置する(PCの横並びレイアウトはそのまま維持) */
@media screen and (max-width: 640px) {
  .wm-flow__badge-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }
}

.wm-flow__badge-icon {
  flex: 0 0 auto;
  display: inline-flex;
  color: var(--wm-gold);
  transition: transform 0.3s ease;
}

.wm-flow__badge:hover .wm-flow__badge-icon {
  transform: scale(1.1);
}

.wm-flow__badge-icon svg {
  width: 36px;
  height: 36px;
}

.wm-flow__badge-label {
  flex: 1 1 auto;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
}

.wm-flow__badge-arrow {
  flex: 0 0 auto;
  display: inline-flex;
  color: rgba(255, 255, 255, 0.6);
  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.wm-flow__badge-arrow svg {
  width: 22px;
  height: 22px;
}

.wm-flow__badge:hover .wm-flow__badge-arrow,
.wm-flow__badge:focus-visible .wm-flow__badge-arrow {
  color: var(--wm-gold);
  transform: translateX(4px);
}

.wm-flow__visual-link {
  position: relative;
  width: 1px;
  height: 3.5rem;
  margin: 0.5rem 0;
  background: linear-gradient(180deg, var(--wm-gold), var(--wm-silver));
}

.wm-flow__visual-node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--wm-gold);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
}

/* 2つのサービスが1つのプラットフォームで繋がっていることを示す、控えめな明滅 */
@media (prefers-reduced-motion: no-preference) {
  .wm-flow__visual-node {
    animation: wmFlowNodePulse 2.4s ease-in-out infinite;
  }
}

@keyframes wmFlowNodePulse {
  0%,
  100% {
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
  }

  50% {
    box-shadow: 0 0 0 11px rgba(184, 146, 90, 0.22);
  }
}

/* 右側: 各サービスの概要(圧縮)+ボタン */
.wm-flow__summaries {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
}

.wm-flow__summary {
  display: flex;
  flex-direction: column;
}

.wm-flow__summary + .wm-flow__summary {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(32, 43, 83, 0.12);
}

.wm-flow__summary-title {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary);
}

.wm-flow__summary-desc {
  margin: 0 0 1.15rem;
  max-width: 46ch;
  color: var(--color-muted);
  font-weight: 600;
  line-height: 1.8;
}

.wm-flow__summary-btn {
  align-self: flex-end;
  margin: 0;
}

@media screen and (max-width: 900px) {
  .wm-flow__layout {
    grid-template-columns: 1fr;
  }

  .wm-flow__visual {
    min-height: auto;
    padding: 2.5rem 1.75rem;
  }
}

/* ====== NEWS ====== */
.wm-news {
  padding: 6rem 0 4rem;
}

.wm-news__content {
  position: relative;
  padding-bottom: 0;
}

.wm-news__title {
  margin: 0 0 2rem 0;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.wm-news__items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.wm-news__item {
  --wm-news-primary-color: var(--color-text);
  --wm-news-hovered-color: var(--color-accent);
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
  color: var(--wm-news-primary-color);
}

.wm-news__item:hover {
  text-decoration: none;
}

.wm-news__item::after {
  position: absolute;
  content: "";
  width: 0;
  left: 0;
  bottom: 0;
  background: var(--wm-news-hovered-color);
  height: 2px;
  transition: 0.3s ease-out;
}

.wm-news__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.wm-news__item-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wm-news__date {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--wm-news-primary-color);
  transition: color 0.3s ease-out;
}

.wm-news__post-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--wm-news-primary-color);
  transition: color 0.3s ease-out;
}

.wm-news__arrow {
  margin-left: auto;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--wm-news-primary-color);
  transition:
    transform 0.2s ease-out,
    color 0.2s ease-out;
  transition-delay: 0.2s;
}

.wm-news__item:hover::after,
.wm-news__item:focus-visible::after {
  width: 100%;
}

.wm-news__item:hover .wm-news__date,
.wm-news__item:hover .wm-news__post-title,
.wm-news__item:focus-visible .wm-news__date,
.wm-news__item:focus-visible .wm-news__post-title {
  color: var(--wm-news-hovered-color);
}

.wm-news__item:hover .wm-news__arrow,
.wm-news__item:focus-visible .wm-news__arrow {
  transform: translateX(4px);
  color: var(--wm-news-hovered-color);
}

.wm-news__empty {
  margin: 0;
  color: var(--color-muted);
  font-weight: 700;
}

.wm-news__all {
  position: absolute;
  /* サービス等の `.wm-glass-card__actions` と同様、カード内パディング分だけ端から離す */
  right: 2.25rem;
  bottom: 2.5rem;
}

/* ====== Pagination (角丸四角 + 数字のシンプルなページ送り) ====== */
.wm-pagination {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.wm-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--color-text);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.wm-pagination a.page-numbers:hover,
.wm-pagination a.page-numbers:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.wm-pagination .page-numbers.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-primary-foreground);
}

.wm-pagination .page-numbers.dots {
  min-width: auto;
  border-color: transparent;
  background: transparent;
}

/* ====== Glass Card ====== */
.wm-flow,
.wm-company {
  padding: 5rem 0;
}

.wm-glass-card {
  /* 明るい背景でも文字コントラストを確保できる不透明度 */
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 1.5rem;
  box-shadow: 0 10px 40px rgba(32, 43, 83, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2.5rem 2.25rem;
  position: relative;
}

.wm-glass-card--news .wm-news__items {
  padding-bottom: 6rem; /* `wm-news__all` の絶対配置分の余白 */
}

.wm-glass-card__title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1.75rem;
  text-align: left;
}

.wm-service .wm-glass-card__title img {
  width: 50%;
  max-width: 100%;
  height: auto;
  display: block;
}

.wm-glass-card__body {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
}

.wm-company .wm-glass-card__body--company {
  grid-template-columns: 4fr 6fr;
}

.wm-glass-card__text {
  text-align: left;
}

.wm-glass-card__catch {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.wm-glass-card__desc {
  margin: 0;
  font-size: 1rem;
  color: var(--color-muted);
  font-weight: 600;
  line-height: 2;
}

.wm-glass-card__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.wm-company .wm-glass-card__image--company {
  justify-self: start;
}

.wm-company .wm-glass-card__image--company img {
  max-width: 100%;
}

.wm-glass-card__actions {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
}

/* ====== Common CTA Button ====== */
.cta {
  display: flex;
  padding: 11px 33px;
  text-decoration: none;
  font-size: 25px;
  color: white;
  background: #202b53;
  transition: 1s;
  box-shadow: 6px 6px 0 black;
  transform: skewX(-15deg);
  border: none;
  cursor: pointer;
}

.cta:focus {
  outline: none;
}

.cta:hover {
  transition: 0.5s;
  box-shadow: 10px 10px 0 #a92523;
  text-decoration: none;
  color: #fff;
}

.cta .second {
  transition: 0.5s;
  margin-right: 0px;
}

.cta:hover .second {
  transition: 0.5s;
  margin-right: 0px;
}

.cta .span {
  transform: skewX(15deg);
}

.cta .second {
  width: auto;
  margin-left: 18px;
  position: relative;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta svg {
  width: 50px;
  height: 20px;
  flex: 0 0 auto;
  display: block;
  transition: 0.2s;
}

.cta:hover svg {
  transform: translateX(4px);
}

.cta .one {
  transition: 0.4s;
  transform: translateX(-60%);
}

.cta .two {
  transition: 0.5s;
  transform: translateX(-30%);
}

.cta:hover .three {
  animation: color_anim 1s infinite 0.2s;
}

.cta:hover .one {
  transform: translateX(0%);
  animation: color_anim 1s infinite 0.6s;
}

.cta:hover .two {
  transform: translateX(0%);
  animation: color_anim 1s infinite 0.4s;
}

@keyframes color_anim {
  0% {
    fill: white;
  }

  50% {
    fill: #a92523;
  }

  100% {
    fill: white;
  }
}

/* ====== Simple Button (front-page service) ====== */
.wm-btn {
  display: inline-block;
  border-radius: 4px;
  background-color: #3d405b;
  border: none;
  color: #ffffff;
  text-align: center;
  font-size: 17px;
  padding: 16px;
  white-space: nowrap;
  transition: all 0.5s;
  cursor: pointer;
  margin: 5px;
  text-decoration: none;
}

.wm-btn span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.5s;
}

.wm-btn span:after {
  content: "»";
  position: absolute;
  opacity: 0;
  top: 0;
  right: -15px;
  transition: 0.5s;
}

.wm-btn:hover {
  color: #ffffff;
}

.wm-btn:hover span {
  padding-right: 15px;
}

.wm-btn:hover span:after {
  opacity: 1;
  right: 0;
}

/* ====== Contact CTA ====== */
.wm-cta {
  padding: 5rem 0;
}

.wm-contact-cta {
  display: block;
  margin: 0 auto;
  padding: 1.4rem 1.6rem;
  border-radius: 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: color 250ms ease;
}

.wm-contact-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  border-radius: inherit;
  z-index: -1;
  background: var(--color-accent);
  transition: width 250ms ease;
}

.wm-contact-cta:hover,
.wm-contact-cta:focus-visible {
  color: #e8e8e8;
  text-decoration: none;
}

.wm-contact-cta:hover::before,
.wm-contact-cta:focus-visible::before {
  width: 100%;
}

.wm-contact-cta__title {
  display: block;
  margin: 0;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.wm-contact-cta__desc {
  display: block;
  margin-top: 0.55rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .wm-cta {
    padding: 3.5rem 0;
  }

  .wm-contact-cta {
    padding: 1.15rem 1rem;
    border-radius: 0.9rem;
  }

  .wm-contact-cta__title {
    font-size: 1.2rem;
  }

  .wm-contact-cta__desc {
    margin-top: 0.45rem;
    font-size: 0.8rem;
    line-height: 1.7;
  }
}

/* ====== Page Top Button ====== */
.page-top-button {
  --page-top-bottom: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgb(20, 20, 20);
  border: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(180, 160, 255, 0.253);
  cursor: pointer;
  transition:
    width 0.3s,
    border-radius 0.3s,
    background-color 0.3s,
    opacity 0.3s,
    transform 0.3s,
    bottom 0.3s;
  overflow: hidden;
  position: fixed;
  right: clamp(1rem, calc((100vw - 1100px) / 2 + 1rem), 2.5rem);
  bottom: var(--page-top-bottom);
  z-index: 30;
  opacity: 0;
  pointer-events: none;
}

.page-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.page-top-button__icon {
  width: 12px;
  transition: transform 0.3s;
}

.page-top-button__icon path {
  fill: #fff;
}

.page-top-button:hover {
  width: 140px;
  border-radius: 50px;
  background-color: var(--color-primary);
}

.page-top-button:hover .page-top-button__icon {
  transform: translateY(-200%);
}

.page-top-button::before {
  position: absolute;
  bottom: -20px;
  content: "Back to Top";
  color: #fff;
  font-size: 0;
}

.page-top-button:hover::before {
  font-size: 13px;
  opacity: 1;
  bottom: unset;
  transition-duration: 0.3s;
}

.page-top-button.is-raised {
  bottom: var(--page-top-raised-bottom, var(--page-top-bottom));
}

@media screen and (max-width: 768px) {
  .cta {
    font-size: 1rem;
  }

  /* SPでは .wm-btn を横並びではなく縦並びに(幅いっぱい・長文は折り返し可) */
  .wm-btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .wm-btn {
    white-space: normal;
  }

  .wm-news__item {
    gap: 0.75rem;
    align-items: center;
  }

  .wm-service .wm-glass-card__body {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .wm-service .wm-glass-card__image {
    order: 1;
  }

  .wm-service .wm-glass-card__text {
    order: 2;
  }

  .wm-service .wm-glass-card__title img {
    width: 100%;
  }

  .wm-service .wm-glass-card__catch {
    font-size: 1rem;
  }

  .wm-service .wm-glass-card__desc {
    font-size: 0.8rem;
  }

  .wm-company .wm-glass-card__body--company {
    grid-template-columns: 1fr;
  }

  .wm-company .wm-glass-card__catch {
    font-size: 0.8rem;
    line-height: 1.9;
  }

  .wm-news__post-title {
    font-size: 1.125rem;
  }

  .wm-news__arrow {
    margin-top: 0;
  }

  .page-top-button {
    --page-top-bottom: 1rem;
    right: 1rem;
  }
}

/* 404 */
.notfound-page {
  padding: 4rem 0;
}

.notfound-page__inner {
  width: min(680px, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.75rem;
}

.notfound-page__lead img {
  width: min(320px, 70vw);
  height: auto;
  display: block;
  margin-inline: auto;
}

.notfound-page__lead h1 {
  margin: 1rem 0 0;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: 0.06em;
}

.notfound-page__message {
  margin: 0;
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 500;
}

.notfound-home-button {
  background: #a92523;
  color: #fff;
  font-family: inherit;
  padding: 0.35em;
  padding-left: 3.3em;
  padding-right: 1.2em;
  font-size: 17px;
  font-weight: 500;
  border-radius: 0.9em;
  border: none;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 1.6em -0.6em #a92523;
  overflow: hidden;
  position: relative;
  height: 2.8em;
  cursor: pointer;
  text-decoration: none;
}

.notfound-home-button .icon {
  background: #fff;
  margin-right: 1em;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.2em;
  width: 2.2em;
  border-radius: 0.7em;
  box-shadow: 0.1em 0.1em 0.6em 0.2em #a92523;
  left: 0.3em;
  transition: all 0.3s;
}

.notfound-home-button:hover .icon {
  width: calc(100% - 0.6em);
}

.notfound-home-button .icon svg {
  width: 1.1em;
  transition: transform 0.3s;
  color: #a92523;
}

.notfound-home-button:hover .icon svg {
  transform: translateX(-0.1em);
}

.notfound-home-button:active .icon {
  transform: scale(0.95);
}

/* hover しても文字色は変えない */
.notfound-home-button:hover {
  color: #fff;
}

/* ====== Contact Hub (お問い合わせ分岐) ====== */
/* front-page と同じく背景動画(.wm-bg-video)を敷き、その上に glass-card の
   backdrop blur を重ねる。背景は動画を透かすため透明にする。 */
.wm-contact-hub {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  /* body の fixed header offset (padding-top: 9rem) を打ち消し、背景を画面上端まで広げる */
  margin-top: -9rem;
  padding: 9rem 0 5rem;
}

.wm-contact-hub__inner {
  position: relative;
  z-index: 1;
}

/* recruit など、中央寄せ(flex)を使わず本文を上から流したいページ向けのバリエーション。
   背景・装飾・余白・SP対応は .wm-contact-hub をそのまま流用し、レイアウトだけ解除する。 */
.wm-contact-hub--plain {
  display: block;
  /* 本文が短い場合に下方向へ大きな余白ができないよう、画面全高(min-height:100vh)を解除し
       内容に応じた高さにする。背景動画(.wm-bg-video)は position:fixed のため途切れない。 */
  min-height: auto;
}

.wm-contact-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.wm-contact-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-radius: 0.5rem;
  background-color: #3d405b;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.4s ease;
}

.wm-contact-btn:hover {
  background-color: #202b53;
  color: #ffffff;
  transform: translateX(6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.wm-contact-btn__arrow {
  flex: 0 0 auto;
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.4s ease;
}

.wm-contact-btn:hover .wm-contact-btn__arrow {
  transform: translateX(6px);
}

@media screen and (max-width: 768px) {
  .wm-contact-hub {
    /* SP では body の header offset が 7.5rem 相当のため合わせる */
    margin-top: -7.5rem;
    padding: 7.5rem 0 3rem;
  }

  .wm-contact-btn {
    padding: 0.95rem 1.2rem;
    font-size: 0.95rem;
  }
}

/* =========================================================
   Company Page  ―  会社概要 / 企業理念
   contact (.wm-contact-hub) の背景・グラスカードを流用し、
   理念ブロックと会社概要テーブルを上から流して表示する。
   ========================================================= */

/* 企業理念（フィロソフィー） */
.wm-company-page__philosophy {
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--color-primary);
}

/* MISSION / VISION */
.wm-company-page__statements {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.wm-company-page__statement {
  padding: 1.75rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.wm-company-page__statement-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.wm-company-page__statement-title {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.5;
}

.wm-company-page__statement-desc {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.9;
  color: var(--color-muted);
}

/* コア・バリュー */
.wm-company-page__values {
  margin-top: 2.5rem;
}

.wm-company-page__values-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.wm-company-page__values-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wm-company-page__value {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem;
  border-radius: 0.75rem;
  background: rgba(32, 43, 83, 0.04);
  border: 1px solid rgba(32, 43, 83, 0.08);
}

.wm-company-page__value-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary);
}

.wm-company-page__value-desc {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.8;
  color: var(--color-muted);
}

/* 会社概要 見出し */
.wm-company-page__heading {
  margin: 3rem 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-primary);
}

/* 会社概要テーブル（定義リスト） */
.wm-company-profile {
  margin: 0;
}

.wm-company-profile__row {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1.5rem;
  padding: 1.25rem 0.25rem;
  border-bottom: 1px solid rgba(32, 43, 83, 0.12);
}

.wm-company-profile__row:first-child {
  border-top: 1px solid rgba(32, 43, 83, 0.12);
}

.wm-company-profile__label {
  margin: 0;
  font-weight: 800;
  color: var(--color-primary);
}

.wm-company-profile__value {
  margin: 0;
  font-weight: 600;
  line-height: 1.9;
  color: var(--color-text);
}

.wm-company-profile__biz + .wm-company-profile__biz {
  margin-top: 1rem;
}

.wm-company-profile__biz-category {
  margin: 0 0 0.4rem;
  font-weight: 800;
  color: var(--color-primary);
}

.wm-company-profile__list {
  margin: 0;
  padding-left: 1.2rem;
}

.wm-company-profile__list li {
  margin-bottom: 0.3rem;
}

.wm-company-profile__list li:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 768px) {
  .wm-company-page__philosophy {
    font-size: 1.15rem;
  }

  .wm-company-page__statements,
  .wm-company-page__values-list {
    grid-template-columns: 1fr;
  }

  .wm-company-page__heading {
    font-size: 1.25rem;
  }

  .wm-company-profile__row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 1rem 0.25rem;
  }
}

/* =========================================================
   Service Landing Pages (派遣先 / 派遣元)  ―  wm-lp-*
   front-page のグラスモーフィズムを踏襲した下層ページ用
   ========================================================= */

/* セクション共通 */
.wm-lp-section {
  padding: 4.5rem 0;
}

.wm-lp-sec-head {
  text-align: center;
  max-width: 980px;
  margin: 0 auto 2.75rem;
}

.wm-lp-sec-head__label {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}

.wm-lp-sec-head__title {
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.4;
  margin: 0 0 0.9rem;
  color: var(--color-primary);
}

.wm-lp-sec-head__lead {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 2;
  color: var(--color-text);
}

/* 共通カード（glass を少し濃く＝可読性確保） */
.wm-lp-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 1.25rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---- 実績: 全国対応マップ ---- */
.wm-lp-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem;
}

.wm-lp-map__image img {
  display: block;
  width: 100%;
  height: auto;
}

.wm-lp-map__lead {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary);
}

.wm-lp-map__desc {
  margin: 0 0 1.5rem;
  color: var(--color-muted);
  font-weight: 600;
  line-height: 1.9;
}

.wm-lp-map__legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.wm-lp-map__legend-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--color-text);
}

.wm-lp-map__legend-dot {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* 紺色 = 派遣元企業(地図上の紺色の円と対応) */
.wm-lp-map__legend-dot--partner {
  background: var(--color-primary);
}

/* 赤色 = 派遣先企業(地図上の赤色の円と対応) */
.wm-lp-map__legend-dot--client {
  background: var(--color-accent);
}

@media screen and (max-width: 768px) {
  .wm-lp-map {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }
}

/* ---- フローのコンテナ幅(下部「フロー（ステップ）」の .wm-lp-flow と共有) ---- */
.wm-lp-flow {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ---- ページヒーロー ---- */
.wm-lp-hero {
  padding: 3rem 2.5rem;
  text-align: center;
}

.wm-lp-hero__label {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.wm-lp-hero__title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.45;
  margin: 0 0 1.2rem;
  color: var(--color-primary);
}

.wm-lp-hero__title .accent {
  color: var(--color-accent);
}

.wm-lp-hero__lead {
  max-width: 720px;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 2;
  color: var(--color-text);
}

.wm-lp-hero__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wm-lp-hero__tags li {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(32, 43, 83, 0.18);
  border-radius: 999px;
  padding: 0.4rem 1rem;
}

/* ---- 課題（吹き出し）---- */
.wm-lp-problems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.wm-lp-problem {
  padding: 1.6rem 1.4rem;
  text-align: center;
}

.wm-lp-problem__icon {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.wm-lp-problem__title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

.wm-lp-problem__note {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.8;
  color: var(--color-muted);
}

/* ---- ソリューション本文 ---- */
.wm-lp-solution {
  padding: 2.5rem 2.25rem;
}

.wm-lp-solution__text {
  font-size: 1rem;
  font-weight: 600;
  line-height: 2;
  color: var(--color-text);
  margin: 0;
}

/* 3本柱（人・システム・ネットワーク） */
.wm-lp-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.wm-lp-pillar {
  padding: 1.6rem 1.4rem;
  text-align: center;
}

.wm-lp-pillar__icon {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.wm-lp-pillar__title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
}

.wm-lp-pillar__text {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.8;
  color: var(--color-muted);
  margin: 0;
}

/* ---- 数値効果（before→after）---- */
.wm-lp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.wm-lp-stat {
  padding: 1.8rem 1.6rem;
  text-align: center;
}

.wm-lp-stat__label {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0 0 1.2rem;
  line-height: 1.6;
}

.wm-lp-stat__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.wm-lp-stat__before,
.wm-lp-stat__after {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.wm-lp-stat__cap {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-muted);
  margin-bottom: 0.2rem;
}

.wm-lp-stat__before strong {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(169, 37, 35, 0.5);
}

.wm-lp-stat__arrow {
  color: var(--color-accent);
  font-size: 1.4rem;
  font-weight: 900;
}

.wm-lp-stat__after strong {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--color-primary);
}

.wm-lp-stat__badge {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  background: var(--color-accent);
  border-radius: 999px;
  padding: 0.3rem 1.1rem;
}

/* ---- 機能グリッド ---- */
.wm-lp-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.wm-lp-feature {
  padding: 1.6rem 1.5rem;
}

.wm-lp-feature__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--color-primary);
  margin: 0 0 0.6rem;
}

.wm-lp-feature__title::before {
  content: "";
  width: 0.55rem;
  height: 1.4rem;
  background: var(--color-accent);
  border-radius: 2px;
  flex: 0 0 auto;
}

.wm-lp-feature__text {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.85;
  color: var(--color-muted);
}

/* ---- メリット（番号付き）---- */
.wm-lp-merits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.wm-lp-merit {
  padding: 1.7rem 1.6rem;
}

.wm-lp-merit__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.wm-lp-merit__title {
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
}

.wm-lp-merit__text {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.85;
  color: var(--color-muted);
}

/* ---- チェックリスト ---- */
.wm-lp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.wm-lp-list li {
  position: relative;
  padding-left: 2rem;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--color-text);
}

.wm-lp-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.4rem;
  height: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 900;
}

/* ---- 実績ファクト ---- */
.wm-lp-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  text-align: center;
}

.wm-lp-fact {
  padding: 1.8rem 1.2rem;
}

.wm-lp-fact__num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.1;
}

.wm-lp-fact__num small {
  font-size: 1.1rem;
  font-weight: 800;
}

.wm-lp-fact__label {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-muted);
}

.wm-lp-note {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-muted);
}

/* ---- フロー（ステップ）---- */
.wm-lp-flow {
  display: grid;
  gap: 1rem;
  counter-reset: lp-step;
}

.wm-lp-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.4rem 1.5rem;
}

.wm-lp-step__num {
  counter-increment: lp-step;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 900;
  flex: 0 0 auto;
}

.wm-lp-step__num::before {
  content: "0" counter(lp-step);
}

.wm-lp-step__body h3 {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--color-primary);
  margin: 0 0 0.35rem;
}

.wm-lp-step__body p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.8;
  color: var(--color-muted);
}

/* ---- OVERVIEW円形図の背景アニメーション ----
   HOW IT WORKS(.wm-about__connector / .wm-about__dot)の「線の上を点が移動する」
   演出を、円周上の目安線(.wm-lp-overview::before)に沿って移動する形に応用したもの。
   紺(--color-primary)と赤(--color-accent)の点が逆回りに周回する。
   .wm-lp-overview-runner は .wm-lp-overview-wrap(=円と同じボックス)いっぱいに広げ、
   offset-path の円をそのボックス基準(%)で解決させる。実際に見える点は
   ::before を runner自身の中心(=移動の基準点)に重ねて表現する。 */
.wm-lp-overview-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.wm-lp-overview-runner {
  position: absolute;
  inset: 0;
  pointer-events: none;
  offset-path: circle(36% at 50% 50%);
  offset-distance: 0%;
}

.wm-lp-overview-runner::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
}

.wm-lp-overview-runner--a::before {
  background: var(--color-primary);
  box-shadow: 0 0 0 5px rgba(32, 43, 83, 0.2);
}

.wm-lp-overview-runner--b::before {
  background: var(--color-accent);
  box-shadow: 0 0 0 5px rgba(169, 37, 35, 0.2);
}

@media (prefers-reduced-motion: no-preference) {
  .wm-lp-overview-runner--a {
    animation: wmOverviewRun 7s linear infinite;
  }

  .wm-lp-overview-runner--b {
    animation: wmOverviewRun 7s linear infinite reverse;
    animation-delay: -3.5s;
  }
}

@keyframes wmOverviewRun {
  from {
    offset-distance: 0%;
  }

  to {
    offset-distance: 100%;
  }
}

/* ---- ページ内構成図(OVERVIEW): クリックで該当セクションへスクロール ----
   画像+座標指定ではなく、円周上の各項目の位置をすべて%(中心からの相対位置)で
   指定したHTML/CSSボックスで組む。コンテナは aspect-ratio:1/1 で正方形を維持
   するため、リサイズ時も円形と各クリック領域(リンク)が同じ比率で連動し、
   ズレが生じない。 */
.wm-lp-overview {
  position: relative;
  width: 100%;
  height: 100%;
  list-style: none;
  padding: 0;
}

/* 円周の線(点が移動していく軌道) */
.wm-lp-overview::before {
  content: "";
  position: absolute;
  inset: 14%;
  border: 2px solid rgba(32, 43, 83, 0.16);
  border-radius: 50%;
}

.wm-lp-overview__item {
  position: absolute;
  width: 28%;
  transform: translate(-50%, -50%);
}

/* 6項目を12時位置から時計回りに60°刻みで円周配置 */
.wm-lp-overview__item:nth-child(1) {
  top: 12%;
  left: 50%;
}

.wm-lp-overview__item:nth-child(2) {
  top: 31%;
  left: 82.9%;
}

.wm-lp-overview__item:nth-child(3) {
  top: 69%;
  left: 82.9%;
}

.wm-lp-overview__item:nth-child(4) {
  top: 88%;
  left: 50%;
}

.wm-lp-overview__item:nth-child(5) {
  top: 69%;
  left: 17.1%;
}

.wm-lp-overview__item:nth-child(6) {
  top: 31%;
  left: 17.1%;
}

.wm-lp-overview__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
  padding: 0.9rem 0.5rem;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.wm-lp-overview__link:hover,
.wm-lp-overview__link:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.wm-lp-overview__icon {
  font-size: 1.3rem;
}

.wm-lp-overview__label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

.wm-lp-overview__title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.3;
}

/* ---- ページ内CTAボタン群 ---- */
.wm-lp-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* ---- 対象別の相互リンク ---- */
.wm-lp-switch {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

.wm-lp-switch a {
  color: var(--color-accent);
  font-weight: 800;
  text-decoration: underline;
}

/* ---- パンくずリスト ---- */
.wm-breadcrumb {
  padding: 1.5rem 0 3rem;
  position: relative;
  z-index: 1;
}

.wm-breadcrumb__list {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.5rem 1.1rem;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.wm-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.wm-breadcrumb__item + .wm-breadcrumb__item::before {
  content: "›";
  color: var(--color-muted);
  font-weight: 900;
}

.wm-breadcrumb__link {
  color: var(--color-primary);
  text-decoration: none;
}

.wm-breadcrumb__link:hover {
  text-decoration: none;
  color: var(--color-accent);
}

.wm-breadcrumb__current {
  color: var(--color-muted);
}

/* =========================================================
   Single (投稿詳細 / NEWS 記事)
   背景動画 + .wm-glass-card は news 等と共通。パンくずは
   既存の .wm-breadcrumb を流用し、ここでは記事固有の
   カテゴリ・日付・本文タイポグラフィを補う。
   ========================================================= */

/* タイトル下の情報行（カテゴリ＋投稿日・更新日）。
   PC: 横並び（カテゴリ左・日付右寄せ） / SP: 縦並び。 */
.wm-single__head-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

/* カテゴリ */
.wm-single__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wm-single__cat {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* タイトル */
.wm-single__title {
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* 投稿日・更新日 */
.wm-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.wm-single__date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.wm-single__date-label {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: var(--radius);
  background: rgba(32, 43, 83, 0.08);
  color: var(--color-primary);
  font-size: 0.7rem;
  font-weight: 700;
}

/* アイキャッチ */
.wm-single__thumb {
  margin-bottom: 2rem;
  border-radius: 1rem;
  overflow: hidden;
}

.wm-single__thumb img {
  width: 100%;
}

/* 本文（the_content） */
.wm-single__content {
  line-height: 1.9;
}

.wm-single__content h2 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
}

.wm-single__content h3 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-top: 2rem;
}

.wm-single__content p {
  margin-bottom: 1.5rem;
}

.wm-single__content a {
  color: var(--color-accent);
  text-decoration: underline;
}

.wm-single__content ul,
.wm-single__content ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.wm-single__content li {
  margin-bottom: 0.5rem;
}

.wm-single__content img {
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}

.wm-single__content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--color-accent);
  background: rgba(32, 43, 83, 0.05);
  color: var(--color-muted);
}

/* 一覧へ戻る */
.wm-single__back {
  margin-top: 2rem;
  text-align: center;
}

/* ---- 前後記事ナビ（PC: 左右 / SP: 縦に 次・前） ---- */
.wm-single__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.wm-single__nav-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}

.wm-single__nav-item--prev {
  text-align: right;
  align-items: flex-end;
}

a.wm-single__nav-item:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--color-accent);
}

/* hover してもタイトルの文字色は変えない */
a.wm-single__nav-item:hover .wm-single__nav-title {
  color: var(--color-primary);
}

/* 記事が片側のみの場合の空きスロット（左右配置を維持） */
.wm-single__nav-item--empty {
  background: transparent;
  border: none;
  padding: 0;
}

.wm-single__nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-accent);
}

.wm-single__nav-date {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.wm-single__nav-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
}

/* ---- レスポンシブ ---- */
@media screen and (max-width: 768px) {
  .wm-lp-section {
    padding: 3rem 0;
  }

  .wm-lp-hero {
    padding: 2.2rem 1.4rem;
  }

  .wm-lp-hero__title {
    font-size: 1.5rem;
  }

  .wm-lp-sec-head__title {
    font-size: 1.45rem;
  }

  .wm-lp-solution {
    padding: 1.8rem 1.4rem;
  }

  .wm-lp-stat__after strong {
    font-size: 1.6rem;
  }

  .wm-lp-fact__num {
    font-size: 2rem;
  }

  /* SP: 各種カードのグリッドは横並びをやめ、縦1列に */
  .wm-lp-problems,
  .wm-lp-features,
  .wm-lp-merits,
  .wm-lp-pillars,
  .wm-lp-stats,
  .wm-lp-facts {
    grid-template-columns: 1fr;
  }

  /* SP: FLOWの左右paddingを外し、他のカード群と同じ横幅(container基準)に揃える */
  .wm-lp-flow {
    padding: 2rem 0;
  }

  /* SP: 構成図(OVERVIEW)はボックス同士が重なりやすいため、
       半径(円周上の位置)を広げボックス幅・文字サイズを縮小して余白を確保する。
       位置はPCと同じく%指定のみで、pxのズレは発生しない。 */
  .wm-lp-overview-wrap {
    max-width: 380px;
  }

  .wm-lp-overview::before {
    inset: 8%;
  }

  .wm-lp-overview-runner {
    offset-path: circle(42% at 50% 50%);
  }

  .wm-lp-overview__item {
    width: 24%;
  }

  .wm-lp-overview__item:nth-child(1) {
    top: 8%;
    left: 50%;
  }

  .wm-lp-overview__item:nth-child(2) {
    top: 29%;
    left: 86.4%;
  }

  .wm-lp-overview__item:nth-child(3) {
    top: 71%;
    left: 86.4%;
  }

  .wm-lp-overview__item:nth-child(4) {
    top: 92%;
    left: 50%;
  }

  .wm-lp-overview__item:nth-child(5) {
    top: 71%;
    left: 13.6%;
  }

  .wm-lp-overview__item:nth-child(6) {
    top: 29%;
    left: 13.6%;
  }

  .wm-lp-overview__link {
    padding: 0.7rem 0.4rem;
  }

  .wm-lp-overview__icon {
    font-size: 1.1rem;
  }

  .wm-lp-overview__label {
    font-size: 0.6rem;
  }

  .wm-lp-overview__title {
    font-size: 0.72rem;
  }

  /* SP: グリッド/フレックス内の要素はみ出しによる横スクロールを防止 */
  .wm-lp-card {
    min-width: 0;
  }

  .wm-home {
    overflow-x: hidden;
  }

  /* SP: PC向けの <br> 改行は無効化し、自然な折り返しに任せる */
  .wm-lp-section br {
    display: none;
  }

  /* SP: 前後記事ナビは縦並び（上から 次・前）。右寄せ・空きスロットは解除 */
  .wm-single__nav {
    grid-template-columns: 1fr;
  }

  .wm-single__nav-item--prev {
    text-align: left;
    align-items: flex-start;
  }

  .wm-single__nav-item--empty {
    display: none;
  }
}

/* ====== Contact Form 7 (お問い合わせフォーム) ======
   背景動画上の .wm-glass-card 内に表示される前提。
   必須マークは他ページと同じアクセント色(--color-accent 赤)、
   送信ボタンは主要色(--color-primary 紺青)に統一する。 */
.wpcf7 {
  margin-top: 1.5rem;
  text-align: left;
}

.wpcf7-form p {
  margin: 0 0 1.25rem 0;
}

.wpcf7-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 700;
}

/* 必須マーク（【必須】）— 他ページのアクセント色＝赤に統一 */
.wpcf7-form .required {
  margin-left: 0.25rem;
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 700;
}

/* 入力欄 — ページネーション等と同系統（白地・--color-border） */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.wpcf7-form textarea {
  min-height: 160px;
  resize: vertical;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(32, 43, 83, 0.15);
}

/* 送信ボタン — 主要色＝紺青に統一、ホバーでアクセント色 */
.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
  display: block;
  margin: 0.5rem auto 0;
  padding: 0.85rem 3rem;
  border: none;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover,
.wpcf7-form input[type="submit"]:focus-visible,
.wpcf7-form .wpcf7-submit:focus-visible {
  background: var(--color-accent);
  transform: translateY(-2px);
}

/* バリデーション／応答メッセージ — アクセント色に統一 */
.wpcf7-form .wpcf7-not-valid-tip {
  margin-top: 0.35rem;
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 700;
}

.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid {
  border-color: var(--color-accent);
}

.wpcf7 .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}
