/*
Theme Name: OKINAWA LIFE Design
Theme URI:
Author: OKINAWA LIFE Design
Author URI:
Description: 沖縄発、小規模ビジネス・個人事業主のためのウェブ制作サービスサイト
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
License: All Rights Reserved
*/

/* ================================================================
   Site-wide fixed header + mobile fullscreen navigation
================================================================ */
:root {
  --site-header-height: 72px;
}

html { scroll-behavior: smooth; }

/* Offset in-page anchors so they don't hide under the fixed header */
[id] {
  scroll-margin-top: calc(var(--site-header-height) + 16px);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom-color: rgba(10, 42, 53, 0.08);
  box-shadow: 0 4px 16px -8px rgba(10, 42, 53, 0.1);
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: var(--site-header-height);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__logo {
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  text-decoration: none;
  white-space: nowrap;
}
.site-header__logo span { color: #00A878; }

/* Desktop menu ------------------------------------------------ */
.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav__link {
  font-family: 'DM Sans', 'Noto Serif JP', system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 8px 0;
}
.site-nav__link:hover { color: #00A878; }

.site-nav__cta {
  display: inline-block;
  background: #00A878;
  color: #ffffff;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 10px 22px;
  border-radius: 9999px;   /* capsule */
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.site-nav__cta:hover {
  background: #008c66;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(0, 168, 120, 0.5);
}

/* Hamburger button (hidden on desktop) ----------------------- */
.site-header__burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 0;
  position: relative;
  cursor: pointer;
  z-index: 60;
}
.site-header__burger span {
  display: block;
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}
.site-header__burger span:nth-child(1) { top: 13px; }
.site-header__burger span:nth-child(2) { top: 19px; }
.site-header__burger span:nth-child(3) { top: 25px; }

body.nav-open .site-header__burger span:nth-child(1) {
  top: 19px; transform: rotate(45deg);
}
body.nav-open .site-header__burger span:nth-child(2) {
  opacity: 0;
}
body.nav-open .site-header__burger span:nth-child(3) {
  top: 19px; transform: rotate(-45deg);
}

/* Mobile layout ---------------------------------------------- */
@media (max-width: 768px) {
  .site-header__inner {
    padding: 0 20px;
  }
  .site-header__burger {
    display: block;
  }
  .site-nav {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 55;
  }
  body.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
  }
  body.nav-open {
    overflow: hidden;
  }
  .site-nav__list {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }
  .site-nav__link {
    font-family: 'Noto Serif JP', serif;
    font-size: 22px;
  }
  .site-nav__cta {
    font-size: 16px;
    padding: 14px 36px;
    margin-top: 8px;
  }
}

/* ================================================================
   Floating mobile CTA (LINE) — sitewide, mobile-only
================================================================ */
.floating-cta {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(12px);
  z-index: 60;
  display: none;                 /* shown only below the tablet bp */
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #06C755;
  color: #ffffff;
  font-family: 'DM Sans', 'Noto Serif JP', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 10px 28px -6px rgba(6, 199, 85, 0.45);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background-color 0.2s ease;
}
.floating-cta.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.floating-cta:hover { background: #05b74d; }

.floating-cta__icon { flex-shrink: 0; }

@media (max-width: 768px) {
  .floating-cta { display: inline-flex; }
}

/* ───────── 全ページ共通 固定背景動画 ───────── */
.global-bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
}

/* 動画の上に被せる暗めオーバーレイ（可読性確保） */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
  pointer-events: none;
}

/* 主要セクションは半透明の白背景でコンテンツを読みやすく */
section[id="サービス"],
section[id="実績"],
section[id="料金"],
section[id="お問い合わせ"],
.global-bg-section {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ───────── モバイル対応（768px以下） ───────── */
@media (max-width: 768px) {
  .global-bg-video {
    display: none;
  }

  body::before {
    background:
      linear-gradient(
        180deg,
        rgba(2, 68, 135, 0.55) 0%,
        rgba(0, 158, 170, 0.45) 45%,
        rgba(80, 210, 215, 0.35) 80%,
        rgba(175, 232, 212, 0.25) 100%
      ),
      linear-gradient(135deg, #02457a 0%, #018abe 45%, #97cadb 100%);
    z-index: -2;
  }
}
