
/* =========================================================
   Front Hero Section
   汎用スターターテーマ用。案件ごとの調整はCustom CSSまたは追加CSSで上書き。
========================================================= */
:root {
  --front-hero-bg: #faf8f4;
  --front-hero-surface: #ffffff;
  --front-hero-border: #e8e5df;
  --front-hero-text: #1f1f1f;
  --front-hero-muted: #8a877f;
  --front-hero-subtle: #e3e0d9;
  --front-hero-accent: #1a1a1a;
  --front-hero-accent-dark: #1a1a1a;
  --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(250, 248, 244, 0.12);
  border-bottom: 1px solid rgba(26, 26, 26, 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(250, 248, 244, 0.88) !important;
  border-color: rgba(26, 26, 26, 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(250, 248, 244, 0.18);
}

.front-hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--front-hero-bg);
}

/*
  切り替えの考え方:
  - 不透明度は 1.8s でクロスフェード
  - 拡大縮小(Ken Burns)は animation ではなく transition で行い、
    退場側(.is-leaving)にも同じ transform 目標値を持たせて途中で戻らないようにする
  - 入場側を上(z-index 2)、退場側を下(1)に置く
*/
.front-hero__slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transform: scale(1.06) translateZ(0);
  transition: opacity 1.8s ease;
  will-change: opacity, transform;
  backface-visibility: hidden;
  pointer-events: none;
}

.front-hero__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.front-hero__slide.is-active {
  z-index: 2;
  opacity: 1;
  transform: scale(1) translateZ(0);
  transition: opacity 1.8s ease, transform 9s linear;
}

.front-hero__slide.is-leaving {
  z-index: 1;
  opacity: 0;
  transform: scale(1) translateZ(0);
  transition: opacity 1.8s ease, transform 9s linear;
}

@media (prefers-reduced-motion: reduce) {
  .front-hero__slide,
  .front-hero__slide.is-active,
  .front-hero__slide.is-leaving {
    transform: none;
    transition: opacity 0.6s ease;
  }
}

.front-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(250, 248, 244, 0.68) 0%, rgba(250, 248, 244, 0.34) 42%, rgba(250, 248, 244, 0.08) 100%),
    linear-gradient(to top, rgba(250, 248, 244, 0.46) 0%, rgba(250, 248, 244, 0.08) 48%, rgba(250, 248, 244, 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(255, 255, 255, 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: #222222;
  text-shadow: 0 4px 28px rgba(255, 255, 255, 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(30, 30, 30, 0.74);
  text-shadow: 0 2px 20px rgba(255, 255, 255, 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(26, 26, 26, 0.34);
  color: rgba(26, 26, 26, 0.72);
  background: transparent;
}

.front-hero__button--outline:hover {
  border-color: rgba(26, 26, 26, 0.82);
  color: #1a1a1a;
}

.front-hero__button--fill {
  border: 1px solid var(--front-hero-accent);
  background: var(--front-hero-accent);
  color: #faf8f4;
  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(26, 26, 26, 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(26, 26, 26, 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(26, 26, 26, 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(26, 26, 26, 0.52);
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.03);
}

.front-hero__scroll-line::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 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(26, 26, 26, 0.54);
  border-bottom: 1px solid rgba(26, 26, 26, 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;
  }
}

/* =========================================================
   Hero: dark overlay variant（2026-09-15）
   白幕 → 黒幕。文字・ボタン・ヘッダー（スクロール前）を白系に。
   元に戻すときはこのブロックごと削除する。
========================================================= */
.front-hero::before {
  background: rgba(15, 15, 15, 0.18);
}

.front-hero__overlay {
  background:
    linear-gradient(to right, rgba(15, 15, 15, 0.70) 0%, rgba(15, 15, 15, 0.38) 42%, rgba(15, 15, 15, 0.10) 100%),
    linear-gradient(to top, rgba(15, 15, 15, 0.52) 0%, rgba(15, 15, 15, 0.10) 48%, rgba(15, 15, 15, 0.26) 100%);
}

.front-hero__eyebrow {
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.front-hero__title {
  color: #ffffff;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.55);
}

.front-hero__sub {
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.front-hero__button--outline {
  border-color: rgba(255, 255, 255, 0.42);
  color: rgba(255, 255, 255, 0.88);
}

.front-hero__button--outline:hover {
  border-color: #ffffff;
  color: #ffffff;
}

.front-hero__button--fill {
  background: #ffffff;
  border-color: #ffffff;
  color: #1a1a1a;
}

.front-hero__button--fill:hover {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(255, 255, 255, 0.86);
}

.front-hero__vertical-line {
  background: rgba(255, 255, 255, 0.14);
}

.front-hero__meta,
.front-hero__ref {
  color: rgba(255, 255, 255, 0.42);
}

.front-hero__scroll-line::before {
  background: rgba(255, 255, 255, 0.92);
}

.front-hero__scroll-line::after {
  border-right-color: rgba(255, 255, 255, 0.62);
  border-bottom-color: rgba(255, 255, 255, 0.62);
}

/* ヘッダー：ヒーロー上（スクロール前・ドロワー閉）は白系で載せる */
.home .site-header:not(.is-scrolled):not(.is-animation) {
  background: rgba(15, 15, 15, 0.08);
  border-bottom-color: rgba(255, 255, 255, 0.10);
}

.home .site-header:not(.is-scrolled):not(.is-animation) .site-header__menu a {
  color: rgba(255, 255, 255, 0.90);
}

.home .site-header:not(.is-scrolled):not(.is-animation) .site-header__logo .custom-logo {
  filter: invert(1) brightness(1.08);
}

.home .site-header:not(.is-scrolled):not(.is-animation) .site-menu-button {
  color: #ffffff;
}

/* ドロワーを開いたら通常配色に戻す（ドロワー背景が白のため） */
body.is-drawer-open .site-header .site-header__logo .custom-logo {
  filter: none;
}

body.is-drawer-open .site-header .site-menu-button {
  color: #1a1a1a;
}

.front-hero__scroll-line {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

/* =========================================================
   Hero: logo variant（2026-09-15）
   文字コピーの代わりにヘッダーと同じ筆記体ロゴを表示。
   カスタマイザー「ロゴ画像URL」を空欄にすると文字コピーに戻る。
   ========================================================= */
.front-hero__logo {
  margin: 0 0 44px;
  width: min(100%, 540px);
  opacity: 0;
  transform: translateY(18px);
  animation: frontHeroFadeUp 1s var(--front-hero-ease) 0.5s forwards;
}

.front-hero__logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 28px rgba(0, 0, 0, 0.40));
}

@media (max-width: 768px) {
  .front-hero__logo {
    width: min(100%, 340px);
    margin-bottom: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .front-hero__logo {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* =========================================================
   Hero: centered layout ＋ header logo hidden before scroll（2026-09-15）
   ヒーロー中央ロゴと WORKS／SHOP を左右センターに。
   トップではスクロール前のヘッダーロゴを非表示にし、
   白ヘッダーに切り替わったとき（is-scrolled）だけ表示する。
   ========================================================= */
.front-hero__content {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.front-hero__logo {
  margin-left: auto;
  margin-right: auto;
}

.front-hero__buttons {
  justify-content: center;
}

@media (max-width: 768px) {
  .front-hero__content {
    margin: 0 auto;
  }

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

.home .site-header .site-header__logo {
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.home .site-header:not(.is-scrolled):not(.is-animation) .site-header__logo {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.is-drawer-open .site-header .site-header__logo {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
