/* ============================================================
   style.css — Global Styles, Variables, Typography, Common Components
   ============================================================ */

/* ---- CSS カスタムプロパティ ---- */
:root {
  /* Colors */
  --color-bg-dark:         #0a0a0a;
  --color-bg-dark2:        #111111;
  --color-bg-light:        #f5f3ee;
  --color-text-light:      #ffffff;
  --color-text-dark:       #1a1a1a;
  --color-accent-gold:     #c9a961;
  --color-accent-gold-light: #e5cc8a;
  --color-muted:           #888888;
  --color-line-green:      #06C755;
  --color-line-green-dark: #05a648;

  /* Typography */
  --font-ja:   'Noto Serif JP', 'Shippori Mincho', serif;
  --font-en:   'Cormorant Garamond', 'Playfair Display', Georgia, serif;

  /* Spacing */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  32px;
  --space-lg:  64px;
  --space-xl:  96px;
  --space-2xl: 128px;

  /* Layout */
  --container-max: 1200px;
  --header-height: 80px;

  /* ワイプのピン留め開始位置。scroll-effects.js の start: 'top 60px' と対応している。
     100vhのままだとセクションがこのぶん下にずれ、下端が常に画面の外に出る。
     セクションの高さからこの値を引くことで、ピン留め中に画面とぴったり一致させる。
     （.about / .vision の height で使用） */
  --pin-offset: 60px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-gold:   cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Base ---- */
html {
}

body {
  font-family: var(--font-ja);
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--color-accent-gold);
  border-radius: 2px;
}

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: var(--font-ja);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.section-label {
  display: block;
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--color-accent-gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* ---- Gold Divider ---- */
.gold-line {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--color-accent-gold);
  margin: 24px 0;
}

/* ---- Buttons ---- */
.btn--line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--color-accent-gold);
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  font-family: var(--font-ja);
  font-weight: 400;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.3s var(--ease-smooth),
              transform  0.3s var(--ease-smooth),
              box-shadow 0.3s var(--ease-smooth);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn--line::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(201, 169, 97, 0.08);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn--line:hover::before {
  opacity: 1;
}

.btn--line:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201, 169, 97, 0.2);
}

/* Button sizes */
.btn--line-sm {
  padding: 8px 18px;
  font-size: 0.75rem;
  border-radius: 2px;
}

.btn--line-md {
  padding: 12px 28px;
  font-size: 0.875rem;
  border-radius: 2px;
}

.btn--line-lg {
  padding: 16px 40px;
  font-size: 1rem;
  border-radius: 2px;
}

.btn--line-xl {
  padding: 20px 60px;
  font-size: 1.1rem;
  border-radius: 2px;
  border-width: 2px;
}

/* LINE icon inside buttons */
.btn__line-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-line-green);
}

.btn--line-xl .btn__line-icon {
  width: 24px;
  height: 24px;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 0 60px;
  height: var(--header-height);
  transition: background-color 0.4s ease,
              border-color    0.4s ease,
              height          0.3s ease;
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  background-color: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(201, 169, 97, 0.2);
  height: 64px;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* ヘッダーロゴ：デフォルト非表示、スクロール後にフェードイン */
.header__logo {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.header.is-scrolled .header__logo {
  opacity: 1;
  visibility: visible;
}

.header__logo a {
  display: block;
  line-height: 0;
}

.header__logo img {
  height: 48px;
  width: auto;
  display: block;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header__nav-list {
  display: flex;
  gap: 36px;
}

.header__nav-list a {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color 0.3s ease;
  position: relative;
}

.header__nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent-gold);
  transition: width 0.3s ease;
}

.header__nav-list a:hover {
  color: var(--color-accent-gold);
}

.header__nav-list a:hover::after {
  width: 100%;
}

/* ---- Hamburger ---- */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  cursor: pointer;
  z-index: 10001;
}

.header__hamburger span {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--color-text-light);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.header__hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__hamburger.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.header__hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Mobile Menu ---- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.98);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu__close span {
  position: absolute;
  width: 28px;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  transition: background 0.3s ease;
}

.mobile-menu__close span:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-menu__close span:nth-child(2) {
  transform: rotate(-45deg);
}

.mobile-menu__close:hover span {
  background: var(--color-accent-gold);
}

.mobile-menu__nav {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.mobile-menu__nav ul {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.mobile-menu__nav ul a {
  font-family: var(--font-en);
  font-size: 1.5rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.3s ease;
}

.mobile-menu__nav ul a:hover {
  color: var(--color-accent-gold);
}

/* ---- Footer ---- */
.footer {
  background: var(--color-bg-dark);
  padding: 60px 60px 40px;
  text-align: center;
}

.footer__line-cta {
  margin-bottom: 40px;
}

.footer__gold-line {
  width: 200px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-accent-gold),
    transparent
  );
  margin: 0 auto 40px;
}

/* フッターロゴ */
.footer__logo {
  text-align: center;
  padding-top: 60px;
  margin-bottom: 0;
}

.footer__logo img {
  height: 90px;
  width: auto;
  display: inline-block;
}

.footer__copy {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--color-muted);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .header {
    padding: 0 40px;
  }
  .header__nav {
    gap: 24px;
  }
  .header__nav-list {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .header {
    padding: 0 24px;
  }

  .header__nav {
    display: none;
  }

  .header__hamburger {
    display: flex;
  }

  .header__logo img {
    height: 40px;
  }

  .footer {
    padding: 0 24px 32px;
  }

  .footer__logo {
    padding-top: 40px;
  }

  .footer__logo img {
    height: 70px;
  }
}
