/* 和創グローバル — Century Huaying 改良版系の技術演出を踏襲（テーマは既存配色に合わせる） */
:root {
  --waso-accent: #2d6a9f;
  --waso-accent-soft: #5a9bc4;
  --waso-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --waso-header-h: 72px;
}

@media (min-width: 768px) {
  :root {
    --waso-header-h: 80px;
  }
}

/* ページローダー（CH と同型：下部プログレスバー） */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  background: linear-gradient(135deg, #e8eef5 0%, #f4f6f9 45%, #dce6f0 100%);
  opacity: 1;
  transition: opacity 0.65s var(--waso-ease-out), visibility 0s linear 0.65s;
  visibility: visible;
}

#page-loader::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--waso-accent-soft), transparent);
  transform-origin: left;
  animation: waso-loader-bar 1.1s var(--waso-ease-out) infinite;
}

@keyframes waso-loader-bar {
  0% {
    transform: scaleX(0.15) translateX(-20%);
    opacity: 0.6;
  }
  50% {
    transform: scaleX(0.55) translateX(10%);
    opacity: 1;
  }
  100% {
    transform: scaleX(0.2) translateX(120%);
    opacity: 0.5;
  }
}

#page-loader.is-done {
  opacity: 0;
  visibility: hidden;
}

body {
  opacity: 0;
  transition: opacity 0.7s var(--waso-ease-out);
}

body.is-ready {
  opacity: 1;
}

/* ヒーロー視差レイヤー（JS が transform を付与） */
#hero-bg.hero-parallax-ch {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

/* モバイル：CH 同様フルスクリーン横スライド */
@media (max-width: 767px) {
  #mobile-menu {
    position: fixed;
    top: var(--waso-header-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100dvh - var(--waso-header-h));
    z-index: 998;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 2rem;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.45s var(--waso-ease-out), opacity 0.35s ease, visibility 0s linear 0.45s;
    box-shadow: 0 24px 64px rgba(15, 39, 68, 0.12);
  }

  #mobile-menu.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.45s var(--waso-ease-out), opacity 0.35s ease, visibility 0s linear 0s;
  }
}

@media (prefers-reduced-motion: reduce) {
  #page-loader::after {
    animation: none;
  }

  body {
    opacity: 1 !important;
    transition: none !important;
  }
}

/* —— 子ページ・法令一覧・CH 型フッター（Century Huaying 改良版に準拠） —— */
body.waso-subpage {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", YuGothic, Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  font-feature-settings: "palt" 1;
  color: #0c1220;
  background: #fafbfc;
  -webkit-font-smoothing: antialiased;
}

body.waso-subpage *,
body.waso-subpage *::before,
body.waso-subpage *::after {
  box-sizing: border-box;
}

.waso-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 28px);
}

body.waso-subpage {
  --waso-site-header-h: 76px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--waso-site-header-h);
  z-index: 999;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background 0.45s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.78);
  border-bottom-color: rgba(28, 35, 44, 0.08);
  box-shadow: 0 2px 12px rgba(22, 26, 31, 0.06);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--waso-site-header-h);
}

.site-header .logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.02rem;
  font-weight: 600;
  color: #1a2332;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.nav-list {
  display: flex;
  gap: clamp(16px, 2.2vw, 24px);
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item a {
  font-size: 0.88rem;
  font-weight: 500;
  color: #5c6570;
  padding: 6px 0;
  position: relative;
  text-decoration: none;
}

.nav-item a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, #2d6a9f, #5a9bc4);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--waso-ease-out);
}

.nav-item a:hover {
  color: #2d6a9f;
}

.nav-item a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.35rem;
  color: #1a2332;
  padding: 8px;
  border-radius: 10px;
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: none;
  border: 0;
}

.hamburger:hover {
  background: rgba(45, 106, 159, 0.08);
}

.page-section {
  padding: calc(var(--waso-site-header-h) + 48px) 0 clamp(72px, 12vw, 112px);
  position: relative;
}

.waso-ch-legal-title {
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 56px);
  color: #1a2332;
  letter-spacing: 0.12em;
  position: relative;
}

.waso-ch-legal-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, #2d6a9f, transparent);
  border-radius: 2px;
}

.legal-card-list {
  max-width: 720px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(28, 35, 44, 0.08);
  border-radius: 14px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(22, 26, 31, 0.06);
  transition: transform 0.45s var(--waso-ease-out), box-shadow 0.45s var(--waso-ease-out), border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
}

.legal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 64px rgba(22, 26, 31, 0.12);
  border-color: rgba(45, 106, 159, 0.15);
}

.legal-card-title {
  font-size: 1.08rem;
  font-weight: 600;
  color: #1a2332;
  letter-spacing: 0.05em;
}

.legal-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(28, 35, 44, 0.08);
  color: #2d6a9f;
  flex: 0 0 auto;
  transition: background 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-card:hover .legal-card-icon {
  background: rgba(45, 106, 159, 0.08);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: clamp(28px, 5vw, 44px);
  border-radius: 14px;
  border: 1px solid rgba(28, 35, 44, 0.08);
  box-shadow: 0 8px 32px rgba(22, 26, 31, 0.08);
}

.legal-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
}

.legal-content th,
.legal-content td {
  border: none;
  border-bottom: 1px solid rgba(28, 35, 44, 0.08);
  padding: 14px 16px;
  text-align: left;
}

.legal-content tr:last-child th,
.legal-content tr:last-child td {
  border-bottom: none;
}

.legal-content th {
  background: rgba(246, 245, 243, 0.98);
  font-weight: 600;
  width: 30%;
  color: #5c6570;
  font-size: 0.88rem;
}

.legal-content h3 {
  font-size: 1.08rem;
  margin-top: 28px;
  margin-bottom: 12px;
  color: #1a2332;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.legal-content h3:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content ul {
  margin-bottom: 14px;
  color: #0c1220;
}

.legal-content ul {
  padding-left: 1.35em;
  list-style: disc;
}

.legal-content ul.legal-list-numbered {
  list-style: decimal;
}

.legal-content ol {
  padding-left: 1.5em;
  list-style: decimal;
  margin-bottom: 14px;
}

.legal-content a {
  color: #2d6a9f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: #0f2744;
}

footer {
  background: linear-gradient(180deg, #141920 0%, #0d1015 100%);
  color: #9aa3ad;
  padding: 48px 0 40px;
  text-align: center;
}

footer .logo {
  color: #e8eaed;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.footer-copy {
  margin-top: 24px;
  font-size: 0.82rem;
  opacity: 0.85;
}

.footer-nav {
  margin-top: 24px;
}

.footer-nav-list {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
  list-style: none;
  padding: 0;
}

.footer-nav-list li {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-nav-list li:first-child {
  border-top: none;
}

.footer-nav-list a,
.footer-nav-divider span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  color: #e8eaed;
  font-size: 0.92rem;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.footer-nav-list a:hover {
  color: #fff;
  padding-left: 6px;
}

.footer-nav-list a::after {
  content: "›";
  opacity: 0.65;
  transition: transform 0.3s var(--waso-ease-out);
}

.footer-nav-list a:hover::after {
  transform: translateX(4px);
}

.footer-nav-divider span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.footer-nav-sub a {
  padding-left: 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
}

.footer-nav-sub a::after {
  content: "↗";
}

@media (max-width: 768px) {
  .nav-list {
    position: fixed;
    top: var(--waso-site-header-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100dvh - var(--waso-site-header-h));
    z-index: 998;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 48px;
    gap: 8px;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.45s var(--waso-ease-out), opacity 0.35s ease, visibility 0s linear 0.45s;
    box-shadow: 0 24px 64px rgba(22, 26, 31, 0.12);
  }

  .nav-list.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.45s var(--waso-ease-out), opacity 0.35s ease, visibility 0s linear 0s;
  }

  .nav-item a {
    font-size: 1rem;
    padding: 12px 24px;
  }

  .hamburger {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-card:hover,
  .footer-nav-list a:hover {
    transform: none;
    padding-left: 0;
  }

  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
