/* ============================================
   OYA PLANNING - Common Styles
   CSS Variables, Reset, Utilities, Animations
   ============================================ */

/* --- CSS Variables --- */
:root {
  --navy-deep: #0C1821;
  --navy: #152232;
  --navy-light: #1E3044;
  --gold: #B69D6A;
  --gold-light: #D4C09A;
  --gold-muted: rgba(182, 157, 106, 0.15);
  --cream: #FAF9F6;
  --cream-dark: #F0EDE7;
  --white: #FFFFFF;
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-muted: #7A7A7A;
  --text-on-dark: #E8E4DC;
  --border-light: #E0DCD4;
  --line-green: #06C755;
  --line-green-dark: #06A847;
  --font-display: 'Noto Serif JP', serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --font-serif-jp: 'Noto Serif JP', serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Base Overrides --- */
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--cream);
  line-height: 1.9;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* --- Utility --- */
.oya-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.section-label {
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-label--centered {
  justify-content: center;
}

.section-title-jp {
  font-family: var(--font-serif-jp);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--text-primary);
}

.section-title-jp.on-dark {
  color: var(--white);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(182, 157, 106, 0.3);
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

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

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.4s ease;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--navy-deep);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
}

.btn-secondary:hover {
  background: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(12, 24, 33, 0.2);
}

.btn-secondary svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.btn-secondary:hover svg {
  transform: translateX(4px);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Keyframes --- */
@keyframes heroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.12); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* --- Fix Buttons (トップに戻る / 目次) --- */
.p-fixBtnWrap .c-fixBtn {
  background: var(--navy-deep);
  border: 1px solid var(--gold);
  color: var(--gold);
  opacity: 0.85;
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(12, 24, 33, 0.15);
  transition: all 0.4s var(--ease-out-expo);
}

.p-fixBtnWrap .c-fixBtn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
  opacity: 1;
  box-shadow: 0 8px 30px rgba(182, 157, 106, 0.3);
  transform: translateY(-2px);
}

/* SWELLの .hov-bg-main:hover の !important を上書き */
.p-fixBtnWrap .c-fixBtn.hov-bg-main:hover {
  background-color: var(--gold) !important;
  color: var(--navy-deep) !important;
}

/* モバイル時、LINEフローティングボタンと重ならないようページトップ等を押し上げ */
@media (max-width: 991px) {
  .p-fixBtnWrap {
    bottom: 80px !important;
  }
}
