
/* =========================================================
   Front Hero Section
   汎用スターターテーマ用。案件ごとの調整はCustom CSSまたは追加CSSで上書き。
========================================================= */
:root {
  --front-hero-bg: #0d0d0d;
  --front-hero-surface: #1a1a1a;
  --front-hero-border: #1e1e1e;
  --front-hero-text: #f0f0f0;
  --front-hero-muted: #444444;
  --front-hero-subtle: #252525;
  --front-hero-accent: #FFFFFF;
  --front-hero-accent-dark: #FFFFFF;
  --front-hero-font-ja: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  --front-hero-font-en: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --front-hero-font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --front-hero-nav-h: 78px;
  --front-hero-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 旧テーマの固定ヘッダー指定を、汎用ヘッダーとして再調整 */
.site-header {
  height: auto;
  min-height: 0;
  margin-top: 0;
  text-align: left;
  background: rgba(13, 13, 13, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-scrolled,
.site-header.is-animation {
  margin-top: 0;
  background: rgba(13, 13, 13, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.front-hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: var(--front-hero-bg);
  background-image: var(--front-hero-fallback);
  background-position: center center;
  background-size: cover;
  color: var(--front-hero-text);
  box-sizing: border-box;
}

.front-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(13, 13, 13, 0.18);
}

.front-hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.front-hero__video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  height: 56.25vw;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.82;
  filter: brightness(1.08) contrast(1.06) saturate(1.04);
  border: 0;
}

.front-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(13,13,13,0.68) 0%, rgba(13,13,13,0.34) 42%, rgba(13,13,13,0.08) 100%),
    linear-gradient(to top, rgba(13,13,13,0.46) 0%, rgba(13,13,13,0.08) 48%, rgba(13,13,13,0.18) 100%);
}

.front-hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 660px);
  margin-left: clamp(28px, 5vw, 64px);
  padding-top: var(--front-hero-nav-h);
  box-sizing: border-box;
}

.front-hero__eyebrow {
  margin: 0 0 24px;
  font-family: var(--front-hero-font-en);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.24em;
  color: var(--front-hero-accent);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(12px);
  animation: frontHeroFadeUp 0.9s var(--front-hero-ease) 0.3s forwards;
}

.front-hero__title {
  margin: 0 0 16px;
  font-family: var(--front-hero-font-ja);
  font-weight: 400;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.22;
  letter-spacing: 0.12em;
  color: #f5f5f5;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateY(18px);
  animation: frontHeroFadeUp 1s var(--front-hero-ease) 0.5s forwards;
}

.front-hero__sub {
  margin: 0 0 32px;
  font-family: var(--front-hero-font-en);
  font-style: normal;
  font-weight: 300;
  font-size: clamp(12px, 1.2vw, 14px);
  line-height: 1.8;
  letter-spacing: 0.12em;
  color: rgba(240, 240, 240, 0.74);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.58);
  opacity: 0;
  transform: translateY(14px);
  animation: frontHeroFadeUp 0.9s var(--front-hero-ease) 0.75s forwards;
}

.front-hero__rule {
  width: 36px;
  height: 1px;
  margin-bottom: 32px;
  background: var(--front-hero-accent);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  animation: frontHeroScaleIn 0.7s var(--front-hero-ease) 0.9s forwards;
}

.front-hero__buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(12px);
  animation: frontHeroFadeUp 0.9s var(--front-hero-ease) 1.1s forwards;
}

.front-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 11px 24px;
  font-family: var(--front-hero-font-ui);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-decoration: none;
  border-radius: 0;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.front-hero__button--outline {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
}

.front-hero__button--outline:hover {
  border-color: rgba(255, 255, 255, 0.82);
  color: #fff;
}

.front-hero__button--fill {
  border: 1px solid var(--front-hero-accent);
  background: var(--front-hero-accent);
  color: #0d0d0d;
  font-weight: 500;
}

.front-hero__button--fill:hover {
  background: var(--front-hero-accent-dark);
  border-color: var(--front-hero-accent-dark);
}

.front-hero__vertical-line {
  position: absolute;
  right: 28px;
  top: var(--front-hero-nav-h);
  bottom: 80px;
  z-index: 2;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.front-hero__meta {
  position: absolute;
  top: calc(var(--front-hero-nav-h) + 22px);
  right: 40px;
  z-index: 2;
  margin: 0;
  font-family: var(--front-hero-font-ui);
  font-size: 7px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.22);
  opacity: 0;
  animation: frontHeroFadeIn 1s ease 1.8s forwards;
}

.front-hero__ref {
  position: absolute;
  bottom: 18px;
  left: 40px;
  z-index: 2;
  margin: 0;
  font-family: var(--front-hero-font-ui);
  font-size: 7px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.22);
  font-variant-numeric: tabular-nums;
}

.front-hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: frontHeroFadeIn 1s ease 2s forwards;
}

 .front-hero__scroll-line {
  position: relative;
  width: 18px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.front-hero__scroll-line::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  transform: translateX(-50%);
  animation: frontHeroScrollDot 1.8s cubic-bezier(0.16, 1, 0.3, 1) 2s infinite;
}

.front-hero__scroll-line::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 7px;
  height: 7px;
  border-right: 1px solid rgba(255, 255, 255, 0.54);
  border-bottom: 1px solid rgba(255, 255, 255, 0.54);
  transform: translateX(-50%) rotate(45deg);
  animation: frontHeroScrollChevron 1.8s cubic-bezier(0.16, 1, 0.3, 1) 2s infinite;
}

.front-hero__scroll p {
  display: none;
}

@keyframes frontHeroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes frontHeroFadeIn {
  to { opacity: 1; }
}

@keyframes frontHeroScaleIn {
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes frontHeroScrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  25% { opacity: 1; }
  70% { opacity: 0.75; transform: translate(-50%, 12px); }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

@keyframes frontHeroScrollChevron {
  0% { opacity: 0.18; transform: translate(-50%, 0) rotate(45deg); }
  50% { opacity: 0.72; transform: translate(-50%, 4px) rotate(45deg); }
  100% { opacity: 0.18; transform: translate(-50%, 0) rotate(45deg); }
}

@media (max-width: 768px) {
  :root { --front-hero-nav-h: 68px; }

  .front-hero {
    min-height: 640px;
    align-items: center;
  }

  .front-hero__content {
    width: calc(100% - 56px);
    margin: 0 auto;
    padding-top: var(--front-hero-nav-h);
  }

  .front-hero__title {
    letter-spacing: 0.1em;
  }

  .front-hero__buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .front-hero__button {
    width: min(100%, 260px);
  }

  .front-hero__vertical-line,
  .front-hero__meta {
    display: none;
  }

  .front-hero__scroll {
    bottom: 20px;
  }
}
