/**
 * SOKSON — Hero Section CSS
 * Moving Silence / Pattern A
 * 
 * 配置先：子テーマ/css/hero.css
 * 
 * 背景は初期CSSアニメーション。
 * 映像差替時は .hero-bg 関連を調整（ガイド参照）
 */

/* ========================================
   CSS CUSTOM PROPERTIES
   ======================================== */
:root {
  --c-bg: #0a0a0a;
  --c-bg-sub: #111111;
  --c-bg-card: #0e0e0e;
  --c-gold: #c9a96e;
  --c-gold-40: rgba(201, 169, 110, 0.4);
  --c-gold-15: rgba(201, 169, 110, 0.15);
  --c-gold-08: rgba(201, 169, 110, 0.08);
  --c-gold-04: rgba(201, 169, 110, 0.04);
  --c-text: #e8e4dd;
  --c-text-50: rgba(232, 228, 221, 0.50);
  --c-text-30: rgba(232, 228, 221, 0.30);
  --c-text-15: rgba(232, 228, 221, 0.15);
  --f-serif: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  --f-sans: 'Noto Sans JP', -apple-system, 'Hiragino Kaku Gothic ProN', sans-serif;
  --f-en: 'Cormorant Garamond', 'Times New Roman', serif;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
}


/* ========================================
   PAGE RESET (front-page only)
   ======================================== */
.page-front {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-sans);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Lightning テーマの標準要素を非表示（トップページのみ） */
.page-front .site-header,
.page-front .site-footer,
.page-front .vk-mobile-nav,
.page-front .vk-mobile-nav-menu-btn,
.page-front #masthead,
.page-front #colophon,
.page-front .breadcrumb,
.page-front .entry-header,
.page-front .site-body-container,
.page-front .vk-footer,
.page-front .vk-copyright,
.page-front .vk-page-header,
.page-front .global-nav {
  display: none !important;
}

/* SP line break helper */
.sp-only { display: none; }
@media (max-width: 520px) { .sp-only { display: inline; } }


/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 640px;
  max-height: 1200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}


/* ========================================
   BACKGROUND — CSS ANIMATION LAYER
   Replace with <video> later
   ======================================== */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Ambient gradient */
.hero-bg__gradient {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 650px 400px at 25% 35%, rgba(201, 169, 110, 0.055) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 75% 55%, rgba(201, 169, 110, 0.035) 0%, transparent 65%),
    radial-gradient(ellipse 900px 350px at 50% 85%, rgba(100, 75, 35, 0.04) 0%, transparent 50%);
  animation: ambientShift 24s ease-in-out infinite alternate;
  filter: blur(70px);
  will-change: transform;
}

@keyframes ambientShift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-3%, 2%) scale(1.06); }
  66%  { transform: translate(2%, -1.5%) scale(1.03); }
  100% { transform: translate(-1%, 3%) scale(1.08); }
}

/* Particles */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.particle-1 {
  width: 2px; height: 2px;
  background: rgba(201, 169, 110, 0.35);
  box-shadow: 0 0 24px 6px rgba(201, 169, 110, 0.08);
  top: 22%; left: 18%;
  animation: pFloat1 16s ease-in-out infinite;
}

.particle-2 {
  width: 1.5px; height: 1.5px;
  background: rgba(201, 169, 110, 0.2);
  box-shadow: 0 0 18px 4px rgba(201, 169, 110, 0.06);
  top: 58%; left: 78%;
  animation: pFloat2 20s ease-in-out infinite;
}

.particle-3 {
  width: 1px; height: 1px;
  background: rgba(232, 228, 221, 0.12);
  box-shadow: 0 0 14px 3px rgba(232, 228, 221, 0.04);
  top: 42%; left: 52%;
  animation: pFloat3 25s ease-in-out infinite;
}

.particle-4 {
  width: 1.5px; height: 1.5px;
  background: rgba(201, 169, 110, 0.15);
  box-shadow: 0 0 16px 3px rgba(201, 169, 110, 0.05);
  top: 70%; left: 30%;
  animation: pFloat4 18s ease-in-out infinite;
}

/* Light streaks */
.streak {
  position: absolute;
  height: 1px;
  border-radius: 0;
  pointer-events: none;
  z-index: 1;
}

.streak-1 {
  width: 140px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.07), transparent);
  top: 32%; left: 8%;
  transform: rotate(-6deg);
  animation: streakMove1 14s ease-in-out infinite;
}

.streak-2 {
  width: 90px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.04), transparent);
  top: 68%; left: 55%;
  transform: rotate(10deg);
  animation: streakMove2 18s ease-in-out infinite;
}

@keyframes pFloat1 {
  0%, 100% { transform: translate(0, 0); opacity: 0.3; }
  30% { transform: translate(35px, -25px); opacity: 0.7; }
  60% { transform: translate(-15px, 30px); opacity: 0.2; }
  80% { transform: translate(20px, 8px); opacity: 0.5; }
}

@keyframes pFloat2 {
  0%, 100% { transform: translate(0, 0); opacity: 0.2; }
  40% { transform: translate(-45px, 25px); opacity: 0.45; }
  70% { transform: translate(25px, -35px); opacity: 0.15; }
}

@keyframes pFloat3 {
  0%, 100% { transform: translate(0, 0); opacity: 0.12; }
  50% { transform: translate(55px, -45px); opacity: 0.3; }
}

@keyframes pFloat4 {
  0%, 100% { transform: translate(0, 0); opacity: 0.15; }
  35% { transform: translate(-25px, -20px); opacity: 0.35; }
  65% { transform: translate(30px, 15px); opacity: 0.1; }
}

@keyframes streakMove1 {
  0%   { transform: rotate(-6deg) translateX(-60px); opacity: 0; }
  15%  { opacity: 0.8; }
  50%  { transform: rotate(-6deg) translateX(250px); opacity: 0.6; }
  85%  { opacity: 0; }
  100% { transform: rotate(-6deg) translateX(450px); opacity: 0; }
}

@keyframes streakMove2 {
  0%   { transform: rotate(10deg) translateX(-40px); opacity: 0; }
  20%  { opacity: 0.5; }
  50%  { transform: rotate(10deg) translateX(180px); }
  80%  { opacity: 0; }
  100% { transform: rotate(10deg) translateX(350px); opacity: 0; }
}

/* Noise texture */
.hero-bg__noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Vignette */
.hero-bg__vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(10, 10, 10, 0.5) 100%);
  pointer-events: none;
}

/* Video (for future use) */
.hero-bg__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}


/* ========================================
   HEADER
   ======================================== */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 48px;
  animation: headerEnter 1s var(--ease-expo) 0.6s both;
}

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

.logo {
  font-family: var(--f-en);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: var(--c-text);
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.4s ease;
}

.logo:hover {
  color: var(--c-gold);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-expo);
}

.nav-toggle:hover {
  transform: scale(1.05);
}

.nav-toggle__line {
  height: 1px;
  background: var(--c-text);
  transition: all 0.4s var(--ease-expo);
}

.nav-toggle__line:nth-child(1) { width: 28px; }
.nav-toggle__line:nth-child(2) { width: 18px; margin-left: auto; }

.nav-toggle:hover .nav-toggle__line {
  background: var(--c-gold);
}

.nav-toggle:hover .nav-toggle__line:nth-child(2) {
  width: 28px;
}


/* ========================================
   HERO CONTENT
   ======================================== */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 28px;
  max-width: 740px;
  width: 100%;
}

.hero-tagline {
  font-family: var(--f-en);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-text-30);
  margin-bottom: 44px;
  animation: contentFadeUp 1s var(--ease-expo) 1.0s both;
}

.hero-heading {
  font-family: var(--f-serif);
  font-size: clamp(28px, 5.5vw, 50px);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.1em;
  color: var(--c-text);
  margin-bottom: 24px;
  animation: contentFadeUp 1s var(--ease-expo) 1.3s both;
}

.hero-heading em {
  font-style: normal;
  color: var(--c-gold);
}

.hero-sub {
  font-family: var(--f-serif);
  font-size: clamp(14px, 2vw, 17px);
  font-weight: 300;
  letter-spacing: 0.14em;
  color: var(--c-text-50);
  margin-bottom: 8px;
  animation: contentFadeUp 1s var(--ease-expo) 1.55s both;
}

.hero-credit {
  font-family: var(--f-en);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.22em;
  color: var(--c-text-30);
  text-transform: uppercase;
  margin-bottom: 44px;
  animation: contentFadeUp 1s var(--ease-expo) 1.7s both;
}

.hero-desc {
  font-family: var(--f-sans);
  font-size: clamp(12.5px, 1.6vw, 14.5px);
  font-weight: 300;
  line-height: 2.1;
  letter-spacing: 0.04em;
  color: var(--c-text-50);
  max-width: 500px;
  margin: 0 auto 44px;
  animation: contentFadeUp 1s var(--ease-expo) 1.9s both;
}


/* ========================================
   CTA
   ======================================== */
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: contentFadeUp 1s var(--ease-expo) 2.15s both;
}

.btn-ghost {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--c-gold);
  text-decoration: none;
  border: 1px solid var(--c-gold-40);
  padding: 15px 52px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-expo);
}

.btn-ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-expo);
  z-index: -1;
}

.btn-ghost:hover {
  color: var(--c-bg);
  border-color: var(--c-gold);
}

.btn-ghost:hover::before {
  transform: scaleX(1);
}

.link-subtle {
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--c-text-30);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: all 0.4s ease;
}

.link-subtle:hover {
  color: var(--c-gold);
  border-bottom-color: var(--c-gold-40);
}

.link-subtle .arrow {
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.3s var(--ease-expo);
}

.link-subtle:hover .arrow {
  transform: translateX(5px);
}


/* ========================================
   SCROLL INDICATOR
   ======================================== */
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: contentFadeUp 1s var(--ease-expo) 2.8s both;
}

.scroll-cue__label {
  font-family: var(--f-en);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-text-30);
}

.scroll-cue__bar {
  width: 1px;
  height: 28px;
  position: relative;
  overflow: hidden;
}

.scroll-cue__bar::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--c-gold-40));
  animation: scrollBarSlide 2.2s ease-in-out infinite;
}

@keyframes scrollBarSlide {
  0%   { top: -100%; }
  50%  { top: 0%; }
  100% { top: 100%; }
}


/* ========================================
   ENTRANCE ANIMATION
   ======================================== */
@keyframes contentFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ========================================
   MENU OVERLAY
   ======================================== */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease-expo), visibility 0.6s;
}

.menu-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.menu-close {
  position: absolute;
  top: 32px;
  right: 48px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-close::before,
.menu-close::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 1px;
  background: var(--c-text);
  transition: background 0.3s ease;
}

.menu-close::before { transform: rotate(45deg); }
.menu-close::after  { transform: rotate(-45deg); }

.menu-close:hover::before,
.menu-close:hover::after {
  background: var(--c-gold);
}

.menu-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 0;
  margin: 0;
}

.menu-nav__link {
  font-family: var(--f-en);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-text-50);
  text-decoration: none;
  transition: color 0.4s ease;
  position: relative;
  padding-bottom: 4px;
}

.menu-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 1px;
  background: var(--c-gold);
  transition: transform 0.4s var(--ease-expo);
}

.menu-nav__link:hover {
  color: var(--c-gold);
}

.menu-nav__link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.menu-contact {
  margin-top: 60px;
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--c-text-30);
  text-decoration: none;
  border: 1px solid var(--c-text-15);
  padding: 12px 36px;
  transition: all 0.4s ease;
}

.menu-contact:hover {
  color: var(--c-gold);
  border-color: var(--c-gold-40);
}


/* ========================================
   SERVICES SECTION
   ======================================== */
.section-services {
  position: relative;
  background: var(--c-bg-sub);
  padding: 80px 48px;
  border-top: 1px solid var(--c-gold-08);
}

.section-services__label {
  font-family: var(--f-en);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-text-30);
  margin-bottom: 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 980px;
}

.cards--4col {
  grid-template-columns: repeat(4, 1fr);
  max-width: 1100px;
}

.card {
  display: block;
  border: 1px solid var(--c-text-15);
  background: var(--c-bg-card);
  padding: 36px 28px 28px;
  text-decoration: none;
  color: inherit;
  transition: all 0.5s var(--ease-expo);
}

.card:hover {
  border-color: var(--c-gold-40);
  background: rgba(201, 169, 110, 0.02);
  transform: translateY(-2px);
}

.card__icon {
  font-family: var(--f-en);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
  opacity: 0.5;
  margin-bottom: 16px;
}

.card__name {
  font-family: var(--f-en);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text);
  margin-bottom: 12px;
}

.card__desc {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--c-text-30);
  margin-bottom: 24px;
}

.card__arrow {
  font-family: var(--f-en);
  font-size: 18px;
  color: var(--c-gold-40);
  transition: all 0.3s ease;
  display: inline-block;
}

.card:hover .card__arrow {
  color: var(--c-gold);
  transform: translateX(4px);
}


/* ========================================
   RESPONSIVE — TABLET
   ======================================== */
@media (max-width: 960px) {
  .cards,
  .cards--4col {
    grid-template-columns: 1fr 1fr;
  }
}


/* ========================================
   RESPONSIVE — MOBILE
   ======================================== */
@media (max-width: 768px) {
  .header {
    padding: 22px 24px;
  }

  .logo {
    font-size: 15px;
    letter-spacing: 0.22em;
  }

  .nav-toggle__line:nth-child(1) { width: 24px; }
  .nav-toggle__line:nth-child(2) { width: 16px; }

  .hero-content {
    padding: 0 24px;
  }

  .hero-tagline {
    font-size: 9.5px;
    letter-spacing: 0.28em;
    margin-bottom: 32px;
  }

  .hero-heading {
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.7;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
  }

  .hero-sub {
    font-size: 14px;
    letter-spacing: 0.1em;
  }

  .hero-credit {
    margin-bottom: 32px;
  }

  .hero-desc {
    font-size: 13px;
    line-height: 2;
    margin-bottom: 36px;
  }

  .btn-ghost {
    padding: 14px 44px;
    font-size: 12px;
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .scroll-cue {
    bottom: 20px;
  }

  .menu-close {
    top: 22px;
    right: 24px;
  }

  .section-services {
    padding: 60px 24px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cards--4col {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .card {
    padding: 28px 24px 24px;
  }

  .cards--4col .card {
    padding: 24px 18px 20px;
  }

  .cards--4col .card__desc {
    font-size: 11px;
    line-height: 1.7;
  }

  .cards--4col .card__desc br {
    display: none;
  }

  /* スマホで映像OFF（将来用） */
  .hero-bg__video {
    display: none;
  }
}

@media (max-width: 375px) {
  .hero-heading {
    font-size: 22px;
    letter-spacing: 0.06em;
  }

  .hero-sub {
    font-size: 13px;
  }

  .hero-desc {
    font-size: 12px;
  }
}
