/* ==========================================
   WMIA layout.css
   ヘッダー・フッター・共通スタイル
   全ページで読み込む
   ========================================== */

/* ---------- CSS変数 ---------- */
:root {
  --c-primary: #0A2E4D;
  --c-primary-light: #1A4A6E;
  --c-accent: #00A68C;
  --c-accent-light: #00C9A7;
  --c-accent-glow: rgba(0, 166, 140, 0.12);
  --c-bg: #FAFBFC;
  --c-bg-alt: #F0F3F6;
  --c-bg-dark: #0B1D2E;
  --c-text: #1A2B3C;
  --c-text-light: #6B7D8E;
  --c-white: #FFFFFF;
  --c-border: #E2E8F0;
  --f-display: 'Plus Jakarta Sans', sans-serif;
  --f-body: 'Noto Sans JP', 'Plus Jakarta Sans', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --section-pad: clamp(80px, 12vw, 160px);
  --side-pad: clamp(24px, 6vw, 120px);
}

/* ---------- リセット ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
  overflow-x: hidden;
}

body {
  font-family: var(--f-body);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.8;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  letter-spacing: 0.02em;
}

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

/* ---------- 共通ユーティリティ ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 40px;
  background: var(--c-accent);
  color: var(--c-white) !important;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  border-radius: 2px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.4s var(--ease-out);
  text-decoration: none;
  box-sizing: border-box;
}

.btn-primary:hover {
  background: var(--c-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0, 166, 140, 0.25);
}

.btn-primary .arrow {
  transition: transform 0.3s var(--ease-out);
  font-size: 16px;
}

.btn-primary:hover .arrow {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 40px;
  border: 1px solid var(--c-border);
  color: var(--c-text);
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  border-radius: 2px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.4s var(--ease-out);
  text-decoration: none;
  background: transparent;
  box-sizing: border-box;
}

.btn-secondary:hover {
  background: rgba(0, 166, 140, 0.05);
  border-color: var(--c-accent) !important;
  color: var(--c-accent) !important;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

.section-label {
  font-family: var(--f-display);
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-label::before {
  content: '';
  width: 48px;
  height: 1px;
  background: var(--c-accent);
}

.section-title {
  font-family: var(--f-display);
  font-size: clamp(38px, 5vw, 70px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.12em;
  color: var(--c-primary);
}

.section-title-jp {
  font-family: var(--f-body);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 500;
  color: var(--c-text-light);
  margin-top: 16px;
  letter-spacing: 0.06em;
}

/* ---------- Reveal アニメーション ---------- */
.reveal {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

/* ---------- ローダー ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

#loader .loader-logo-img {
  height: 78px;
  width: auto;
  opacity: 0;
  animation: loaderFadeIn 0.3s 0.1s forwards;
  filter: brightness(0) invert(1);
}

#loader .loader-bar {
  width: 100px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 28px;
  overflow: hidden;
}

#loader .loader-bar-fill {
  width: 0;
  height: 100%;
  background: var(--c-accent);
  animation: loaderProgress 0.6s 0.2s var(--ease-in-out) forwards;
}

@keyframes loaderFadeIn { to { opacity: 1; } }
@keyframes loaderProgress { to { width: 100%; } }

/* ---------- スクロール進捗・トップへ戻る ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--c-accent);
  z-index: 9998;
  width: 0;
  transition: width 0.1s linear;
}

.back-to-top {
  position: fixed;
  bottom: 36px;
  right: 36px;
  width: 44px;
  height: 44px;
  background: var(--c-primary);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent-light);
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.back-to-top svg { width: 18px; height: 18px; }

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--c-accent);
  color: var(--c-white);
  transform: translateY(-3px);
}

@media (max-width: 992px) {
  .back-to-top { right: 16px !important; bottom: 20px !important; }
}

/* ---------- ヘッダー ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 var(--side-pad);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--c-border);
  height: 64px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 1001;
  margin-right: max(4vw, 32px);
}

.header-logo-img {
  height: 56px;
  width: auto;
  transition: all 0.4s ease;
  filter: brightness(0) invert(1);
}

.header.scrolled .header-logo-img {
  filter: none;
  height: 44px;
}

/* ---------- PCナビ ---------- */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 40px);
}

.nav-desktop a {
  font-size: clamp(13.5px, 1.25vw, 18px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--c-accent);
  transition: width 0.4s var(--ease-out);
}

.nav-desktop a:hover::after { width: 100%; }
.nav-desktop a:hover { color: var(--c-white); }

.header.scrolled .nav-desktop a { color: var(--c-text-light); }
.header.scrolled .nav-desktop a:hover { color: var(--c-primary); }

.nav-cta {
  padding: 9px clamp(16px, 2vw, 28px);
  background: var(--c-accent);
  color: var(--c-white) !important;
  border-radius: 2px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(12px, 1.1vw, 16px);
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--c-accent-light);
  transform: translateY(-1px);
}

.nav-cta::after { display: none !important; }

/* ---------- ドロップダウン ---------- */
.nav-dropdown {
  position: relative;
  padding-bottom: 24px;
  margin-bottom: -24px;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--c-white);
  min-width: 200px;
  padding: 12px 0;
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(10, 46, 77, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-desktop .nav-dropdown-menu a,
.header.scrolled .nav-desktop .nav-dropdown-menu a {
  color: var(--c-text);
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s var(--ease-out);
  background: transparent;
  letter-spacing: 0.08em;
  box-sizing: border-box;
  width: 100%;
  white-space: nowrap;
}

.nav-dropdown-chevron {
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s ease;
  vertical-align: middle;
  color: inherit;
  margin-top: -2px;
}

.nav-dropdown-chevron svg { width: 10px; height: 8px; display: block; }
.nav-dropdown:hover .nav-dropdown-chevron { transform: translateY(2px); }

.nav-desktop .nav-dropdown-menu a::after,
.header.scrolled .nav-desktop .nav-dropdown-menu a::after { display: none; }

.nav-desktop .nav-dropdown-menu a:hover,
.header.scrolled .nav-desktop .nav-dropdown-menu a:hover {
  background: #f0f0f0;
  color: var(--c-text);
  padding-left: 28px;
}

.nav-desktop .nav-dropdown-menu a:active,
.header.scrolled .nav-desktop .nav-dropdown-menu a:active,
.nav-desktop .nav-dropdown-menu a.current,
.header.scrolled .nav-desktop .nav-dropdown-menu a.current {
  background: var(--c-accent);
  color: var(--c-white);
}

.nav-desktop .nav-dropdown-menu a .arrow,
.header.scrolled .nav-desktop .nav-dropdown-menu a .arrow {
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s var(--ease-out);
  font-family: var(--f-display);
  color: var(--c-accent);
  font-size: 16px;
}

.nav-desktop .nav-dropdown-menu a:hover .arrow,
.header.scrolled .nav-desktop .nav-dropdown-menu a:hover .arrow {
  opacity: 1;
  transform: translateX(0);
}

.nav-desktop .nav-dropdown-menu a:active .arrow,
.header.scrolled .nav-desktop .nav-dropdown-menu a:active .arrow,
.nav-desktop .nav-dropdown-menu a.current .arrow,
.header.scrolled .nav-desktop .nav-dropdown-menu a.current .arrow {
  color: var(--c-white);
}

/* ---------- ハンバーガーボタン ---------- */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
  padding: 8px;
}

.nav-mobile-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--c-white);
  transition: all 0.3s ease;
}

.header.scrolled .nav-mobile-toggle span { background: var(--c-primary); }

.nav-mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-mobile-toggle.active span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- モバイルナビ ---------- */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--c-primary);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  padding-top: 80px;
  padding-bottom: 40px;
  overflow-y: auto;
}

.nav-mobile.open { opacity: 1; visibility: visible; }

.nav-mobile > a {
  font-family: var(--f-display);
  font-size: 26px;
  color: var(--c-white);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.nav-mobile > a {
  font-family: var(--f-display);
  font-size: 26px;
  color: var(--c-white);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.nav-mobile .nav-dropdown > a {
  font-family: var(--f-display);
  font-size: 26px;
  color: var(--c-white);
  font-weight: 600;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

@media (max-width: 992px) {
  .nav-mobile .nav-dropdown > a {
    font-size: 22px;
  }
  .nav-mobile .nav-dropdown > a:active {
    color: var(--c-accent);
  }
}
@media (max-width: 992px) and (hover: hover) {
  .nav-mobile .nav-dropdown > a:hover {
    color: var(--c-accent);
  }
}

/* モバイルナビ内ドロップダウン */
.nav-mobile .nav-dropdown {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.nav-mobile .nav-dropdown > a .nav-dropdown-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--c-white);
  pointer-events: none;
  transition: transform 0.3s ease;
  margin-left: 8px;
}

.nav-mobile .nav-dropdown-chevron svg { display: none; }

.nav-mobile .nav-dropdown-chevron::after {
  content: "∨";
  font-size: 16px;
  color: #fff;
  font-weight: normal;
  transform: scaleX(1.2);
  display: inline-block;
}

.nav-mobile .nav-dropdown.active .nav-dropdown-chevron { transform: rotate(180deg); }

.nav-mobile .nav-dropdown-menu {
  position: static !important;
  left: unset !important;
  transform: none !important;
  min-width: unset !important;
  width: 100% !important;
  margin: 0 !important;
  align-items: center !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  opacity: 1;
  visibility: visible;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.nav-mobile .nav-dropdown.active .nav-dropdown-menu {
  max-height: 400px;
  padding: 18px 0 14px;
}

.nav-mobile .nav-dropdown-menu a {
  width: 260px !important;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300 !important;  /* ← !important を追加 */
  font-family: var(--f-display);
}

.nav-mobile .nav-dropdown-menu a .arrow {
  color: var(--c-accent);
  font-size: 16px;
  margin-left: 4px;
}

.nav-mobile-close {
  position: absolute !important;
  right: 20px !important;
  left: auto !important;
  font-size: 34px !important;
  top: 20px !important;
  color: #ffffff !important;
  background: transparent !important;
  border: none !important;
  font-weight: 300 !important;
  z-index: 1002 !important;
  line-height: 1 !important;
}


@media (max-width: 992px) {
  .nav-mobile > a {
    font-size: 22px;
    transition: color 0.3s ease;
  }
  .nav-mobile > a:active { color: var(--c-accent); }
}
@media (max-width: 992px) and (hover: hover) {
  .nav-mobile > a:hover { color: var(--c-accent); }
}

@media (max-width: 960px) {
  .nav-desktop { display: none; }
  .nav-mobile-toggle { display: flex; }
}

/* ---------- フッター ---------- */
.footer {
  background: var(--c-bg-dark);
  padding: 88px 0 0;
  color: rgba(255, 255, 255, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand-img {
  height: 48px;
  margin-bottom: 24px;
  filter: brightness(0) invert(1);
}

.footer-brand-desc {
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.04em;
  font-weight: 300;
}

.footer-col-title {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-accent-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links a {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.04em;
  font-weight: 500;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--c-accent-light);
  padding-left: 8px;
}

.footer-bottom {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
}

.footer-bottom-links {
  display: flex;
  gap: 28px;
}

.footer-bottom-links a {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--c-accent-light);
}

.footer-bottom > span {
  font-size: 13px;
}

@media (max-width: 992px) {
  .footer-links { gap: 12px !important; }
  .footer-links a { font-size: 16px !important; }
  .footer-col-title { margin-bottom: 20px !important; }
  .footer-grid { gap: 40px !important; }
}

@media (max-width: 768px) {
  .footer-brand-img { height: 72px !important; width: auto !important; margin-bottom: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-bottom { flex-direction: column-reverse; gap: 12px; text-align: center; }
}

/* ---------- サブページ共通 ---------- */
/* ヘッダー下の余白（サブページ用） */
.page-top-offset {
  padding-top: 80px;
}

/* パンくずリスト */
.breadcrumb {
  padding: 20px var(--side-pad);
  font-size: 13px;
  color: var(--c-text-light);
  background: #fafafa;
  border-bottom: 1px solid var(--c-border);
}

.breadcrumb a { color: var(--c-text); transition: color 0.3s ease; }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb span { margin: 0 12px; opacity: 0.2; }

/* ---------- モバイル共通修正 ---------- */
@media (max-width: 768px) {
  .header { padding: 0 20px; align-items: flex-start; padding-top: 20px; }
  .header.scrolled { padding-top: 16px; }
  .header-logo { height: 48px; align-items: flex-start; }
  .header-logo-img { height: 48px !important; width: auto !important; }
  
  img, video, iframe {
    max-width: 100% !important;
    height: auto !important;
  }

  body { overflow-x: hidden; }

  .container {
    max-width: 100% !important;
    overflow-wrap: break-word;
  }

  * { box-sizing: border-box; }
}

.pc-br { display: inline; }
.sp-br { display: none; }
@media (max-width:768px) {
  .pc-br { display: none; }
  .sp-br { display: inline; }
}
.reveal {
  opacity: 0;
  transform: translateX(50px); /* ← 右に50pxずらす */
}
.reveal.visible {
  opacity: 1;
  transform: translateX(0);
}
.parallax-section {
  overflow: hidden; /* ← parallax-bgを収めるために必要だが… */
}

/* ---------- 電話番号リンク ---------- */
.tel-link {
  pointer-events: none;
  text-decoration: none;
  color: inherit;
}
.tel-link span {
  pointer-events: auto;
}
@media (max-width: 768px) {
  .tel-link {
    pointer-events: auto;
    text-decoration: underline;
  }
  .tel-link span {
    pointer-events: none;
  }
}