:root {
  --color-brand-blue: #2353c9;
  --color-brand-blue-strong: #1c3f9e;
  --color-brand-blue-soft: #eef3fc;
  --color-brand-blue-mist: #ffffff;
  --color-marker-yellow: #ffe564;
  --color-text-strong: #1f2733;
  --color-text-muted: #5b6b80;
  --color-line-soft: #e4e9f0;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  overflow-x: hidden;
  background: var(--color-brand-blue-mist);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line-soft);
  box-shadow: 0 1px 0 rgba(20, 36, 60, 0.02);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.8rem 0;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: #1f2733;
  flex-shrink: 0;
}

.site-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #1c3f9e;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
}

.site-brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-brand-text {
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #1f2733;
}

.site-brand-sub {
  margin-top: 0.16rem;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: #5b6b80;
  font-weight: 600;
}

.site-header-nav {
  align-items: center;
  gap: 2rem;
  display: flex;
}

.site-header-nav a {
  color: #5b6b80;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.site-header-nav a:hover {
  color: #1c3f9e;
}

.site-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
  text-decoration: none;
  color: #ffffff;
  background: #1c3f9e;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid #1c3f9e;
  transition: all 0.2s ease;
}

.site-header-cta:hover {
  background: #15306f;
  border-color: #15306f;
}

.site-menu-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: auto;
  height: auto;
  padding: 11px 16px;
  border: none;
  border-radius: 16px;
  background: var(--color-brand-blue);
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
  box-shadow: 0 12px 26px rgba(35, 83, 201, 0.32);
  transition: background 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.site-menu-button.is-open {
  background: var(--color-brand-blue-strong);
}

.site-menu-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 30px;
  height: 17px;
}

.site-menu-bar {
  display: block;
  width: 100%;
  height: 2.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.site-menu-button.is-open .site-menu-bars {
  position: relative;
}

.site-menu-button.is-open .site-menu-bar:first-child {
  transform: translateY(4.8px) rotate(45deg);
}

.site-menu-button.is-open .site-menu-bar:last-child {
  transform: translateY(-4.8px) rotate(-45deg);
}

.site-menu-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  color: currentColor;
}

.site-menu-button:active {
  transform: scale(0.96);
}

/* =========================================
   PC: サービス メガメニュー（ホバーで展開）
   ========================================= */
.site-nav-has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.site-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.site-nav-caret {
  width: 12px;
  height: 12px;
  transition: transform 0.25s ease;
  opacity: 0.7;
}

.site-nav-has-dropdown.is-open .site-nav-caret {
  transform: rotate(180deg);
}

.site-mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 10px);
  margin-top: 14px;
  width: max-content;
  max-width: min(960px, calc(100vw - 40px));
  background: #ffffff;
  border: 1px solid var(--color-line-soft);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(28, 63, 158, 0.16);
  padding: 30px 34px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 40;
}

/* ホバー判定が途切れないよう、トリガーとパネルの隙間を埋める */
.site-mega::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 18px;
}

.site-nav-has-dropdown.is-open .site-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.site-mega-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 20px 28px;
}

.site-mega-col {
  min-width: 0;
}

.site-mega-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-brand-blue);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--color-line-soft);
}

.site-mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-mega-list a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--color-text-strong);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
  word-break: normal;
  overflow-wrap: anywhere;
  transition: background 0.18s ease, color 0.18s ease;
}

.site-mega-list a::before {
  content: "→";
  color: var(--color-brand-blue);
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.site-mega-list a:hover {
  background: var(--color-brand-blue-soft);
  color: var(--color-brand-blue-strong);
}

.site-mega-list a:hover::before {
  transform: translateX(2px);
}

.site-mega-cta-col {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--color-line-soft);
}

.site-mega-cta-lead {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--color-text-strong);
  line-height: 1.5;
}

.site-mega-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 9999px;
  background: var(--color-brand-blue);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s ease;
}

.site-mega-cta:hover {
  background: var(--color-brand-blue-strong);
}

/* =========================================
   SP: ベイジ風 全画面ドロワー
   ========================================= */
.site-mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 999;
  background: #ffffff;
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 60%, #e4edff 100%);
  opacity: 1;
  visibility: visible;
  overflow-y: auto;
  padding: 5rem 0 2.5rem;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.site-mobile-nav.is-open {
  display: block;
  animation: slideDown 0.28s ease;
}

.site-mobile-close {
  position: absolute;
  top: 1.1rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--color-line-soft);
  border-radius: 12px;
  background: #ffffff;
  color: var(--color-brand-blue-strong);
  cursor: pointer;
  z-index: 2;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.site-mobile-close svg {
  width: 24px;
  height: 24px;
}

.site-mobile-close:active {
  background: var(--color-brand-blue-soft);
  border-color: var(--color-brand-blue);
}

/* メニュー展開中は祖先のクリップを解除して全画面表示を保証 */
body.mobile-menu-open .hero-shell,
body.mobile-menu-open .site-header {
  overflow: visible !important;
}

.site-mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem;
}

.site-mobile-item {
  border-bottom: 1px solid var(--color-line-soft);
}

.site-mobile-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  text-decoration: none;
  color: var(--color-text-strong);
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--color-line-soft);
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition: color 0.2s ease;
}

.site-mobile-item-group .site-mobile-link {
  border-bottom: none;
}

.site-mobile-en {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-brand-blue);
  min-width: 84px;
  flex-shrink: 0;
}

.site-mobile-ja {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-text-muted);
  min-width: 0;
  line-height: 1.4;
}

/* Tailwind等の継承色に負けて白文字化するのを確実に防ぐ */
.site-mobile-nav .site-mobile-link,
.site-mobile-nav .site-mobile-sub-link {
  color: var(--color-text-strong) !important;
}

.site-mobile-nav .site-mobile-en {
  color: var(--color-brand-blue) !important;
}

.site-mobile-nav .site-mobile-ja {
  color: var(--color-text-muted) !important;
}

.site-mobile-nav .site-mobile-sub-heading {
  color: var(--color-brand-blue) !important;
}

.site-mobile-link:active {
  color: var(--color-brand-blue-strong);
}

/* サービスのアコーディオン開閉ボタン */
.site-mobile-group-toggle {
  justify-content: flex-start;
  align-items: center;
}

.site-mobile-plus {
  width: 20px;
  height: 20px;
  margin-left: auto;
  color: var(--color-brand-blue);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.site-mobile-item-group.is-open .site-mobile-plus {
  transform: rotate(45deg);
}

/* サブメニュー本体（アコーディオン） */
.site-mobile-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.site-mobile-item-group.is-open .site-mobile-sub {
  max-height: 1200px;
}

.site-mobile-sub-group {
  padding: 0.35rem 0 0.85rem 0.4rem;
}

.site-mobile-sub-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-brand-blue);
  margin: 0.6rem 0 0.3rem;
}

.site-mobile-sub-link {
  display: block;
  text-decoration: none;
  color: var(--color-text-strong);
  font-size: 0.9rem;
  padding: 0.6rem 0 0.6rem 0.8rem;
  border-left: 2px solid var(--color-brand-blue-soft);
  margin-left: 0.2rem;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.site-mobile-sub-link:active {
  color: var(--color-brand-blue-strong);
  border-left-color: var(--color-brand-blue);
}

.site-mobile-cta {
  margin: 1.75rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.05rem 0;
  border-radius: 9999px;
  text-decoration: none;
  background: var(--color-brand-blue);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(35, 83, 201, 0.28);
  transition: background 0.2s ease;
}

.site-mobile-cta:active {
  background: var(--color-brand-blue-strong);
}


/* ============================================================
   WordPress theme additions
   (Tailwindユーティリティの代替。ヘッダーはTailwind無しでも成立させる)
   ============================================================ */

.site-header,
.foot {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

.site-header-inner {
  padding: 0.8rem 1.5rem;
}
@media (min-width: 768px) {
  .site-header-inner { padding-left: 2.5rem; padding-right: 2.5rem; }
}
@media (min-width: 1024px) {
  .site-header-inner { padding-left: 3.5rem; padding-right: 3.5rem; }
}

/* PCナビ・CTA: モバイルでは隠す (= hidden lg:flex 相当) */
.site-header-nav,
.site-header-cta-wrap { display: none; }
@media (min-width: 1024px) {
  .site-header-nav { display: flex; }
  .site-header-cta-wrap { display: flex; }
  .site-menu-button { display: none !important; }
  .site-mobile-nav { display: none !important; }
}

/* ============================================================
   共通フッター（ネイビー3カラム / 下層ページの .foot を採用）
   ============================================================ */
.foot{background:#1c3f9e;color:#cdd6e6;padding:56px 0 28px;line-height:1.85}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:36px;max-width:1080px;margin:0 auto;padding:0 24px}
.foot-brand{font-weight:800;font-size:19px;color:#fff;letter-spacing:.02em}
.foot-brand span{color:#9dc0ff}
.foot-brand-lead{color:#cdd9f3;font-size:13.5px;font-weight:400;margin-top:12px;line-height:1.8;max-width:300px}
.foot h4{font-size:12px;letter-spacing:.1em;color:#a9bce6;text-transform:uppercase;margin:0 0 14px;font-weight:700}
.foot ul{list-style:none;margin:0;padding:0}
.foot li{margin-bottom:10px}
.foot a{color:#cdd6e6;font-size:14px;text-decoration:none;transition:.15s}
.foot a:hover{color:#fff}
.foot .other{color:#cdd9f3;font-size:13px;line-height:1.7;margin:16px 0 0}
.foot-bottom{max-width:1080px;margin:40px auto 0;padding:20px 24px 0;border-top:1px solid rgba(255,255,255,.18);font-size:12.5px;color:#b9c8ea}
@media(max-width:760px){.foot-grid{grid-template-columns:1fr;gap:30px}}

/* ============================================================
   スクロールフェードイン（Framer Motion Reveal の代替）
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 1s cubic-bezier(.22, 1, .36, 1),
    transform 1s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--rd, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
/* JSが無効・未実行でも消えたままにしない保険 */
.no-js .reveal { opacity: 1; transform: none; }
