/**
 * site-chrome.css
 * 本体（Astro）と WordPress で共有するヘッダー・フッターのスタイル。
 * WordPress テーマの functions.php からこのファイルを読み込むことで、
 * 両サイトのナビゲーションが同じ見た目で表示される。
 *
 * 色・フォントはCSS変数を参照。変数の定義はここにも含める。
 */

:root {
  --sc-black: #0f0f0f;
  --sc-charcoal: #1a1a1a;
  --sc-dark-grey: #252525;
  --sc-mid-grey: #333333;
  --sc-grey: #a0a0a0;
  --sc-pale: #e0e0e0;
  --sc-white: #f5f5f5;
  --sc-gold: #c9a84c;
  --sc-gold-dark: #8b7230;
  --sc-gold-light: #dfc477;
  --sc-font: 'Tsukushi Old Mincho', 'Tsukushi A Old Mincho', 'Tsukushi Old Mincho Std', 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', 'Noto Serif JP', serif;
  --sc-font-gothic:
    'FOT-筑紫ゴシック Pro L', 'FOT-筑紫ゴシック Pro R', 'FOT-筑紫ゴシック Pro M', 'FOT-筑紫ゴシック Pro B',
    'FOT-筑紫ゴシック Pr5 L', 'FOT-筑紫ゴシック Pr5 R', 'FOT-筑紫ゴシック Pr5 M', 'FOT-筑紫ゴシック Pr5 B',
    '筑紫ゴシック Pro', '筑紫ゴシック Pr5 R', '筑紫ゴシック Pr5 M',
    'Tsukushi Gothic', 'Tsukushi A Gothic', 'Tsukushi B Gothic', 'Tsukushi Gothic R',
    'Hiragino Kaku Gothic ProN', 'Hiragino Kaku Gothic Pro', 'Hiragino Sans',
    'Yu Gothic UI', 'Yu Gothic', 'Noto Sans JP', sans-serif;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2.5rem;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(201, 168, 76, 0.42);
  transition: background-color 0.3s ease;
  font-family: var(--sc-font);
}

.site-header.scrolled {
  background: rgba(15, 15, 15, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 1000px;
  margin: 0 auto;
  height: 76px;
  min-height: 76px;
  width: 100%;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  max-width: min(100%, 420px);
  font-size: 1.0625rem;
  font-weight: 700;
  font-family: var(--sc-font-gothic);
  color: var(--sc-white);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.15s ease;
}

.header-logo-img {
  height: 48px;
  width: auto;
  max-width: 120px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.header-logo-text {
  line-height: 1.3;
  font-family: inherit;
}

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

.header-logo:hover .header-logo-img {
  opacity: 0.92;
}

.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 2rem;
  text-align: right;
}

.header-nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  min-height: 2.5rem;
}

.header-link {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--sc-grey);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.15s ease;
  position: relative;
}

.header-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sc-gold);
  transition: width 0.3s ease;
}

.header-link:hover {
  color: var(--sc-white);
}

.header-link:hover::after {
  width: 100%;
}

.header-link.active {
  color: var(--sc-gold);
}

.header-link.active::after {
  width: 100%;
}

.header-cta {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--sc-black);
  background: var(--sc-gold);
  padding: 0.625rem 1.5rem;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: background 0.15s ease, transform 0.15s ease;
}

.header-cta:hover {
  background: var(--sc-gold-light);
  transform: translateY(-1px);
}

.header-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header-menu-btn span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--sc-white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===== Footer ===== */
.site-footer {
  padding: 4rem 2.5rem 1.5rem;
  background: var(--sc-black);
  border-top: 1px solid var(--sc-dark-grey);
  font-family: var(--sc-font);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sc-white);
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.8125rem;
  color: var(--sc-grey);
  line-height: 1.9;
}

.footer-nav-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--sc-gold-dark);
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.footer-nav a {
  display: block;
  font-size: 0.8125rem;
  color: var(--sc-grey);
  text-decoration: none;
  line-height: 2.2;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: var(--sc-gold);
}

.footer-copy {
  text-align: center;
  font-size: 0.75rem;
  color: var(--sc-mid-grey);
  padding-top: 1.5rem;
  border-top: 1px solid var(--sc-dark-grey);
  letter-spacing: 0.05em;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .site-header {
    padding: 0 1.5rem;
  }

  .header-inner {
    min-height: 68px;
    height: auto;
    padding: 0.4rem 0;
  }

  .header-logo {
    max-width: calc(100vw - 5.5rem);
    gap: 0.5rem;
  }

  .header-logo-img {
    height: 40px;
    max-width: 96px;
  }

  .header-logo-text {
    font-size: 0.75rem;
    letter-spacing: 0.02em;
  }

  .header-menu-btn {
    display: flex;
    margin-left: auto;
  }

  .header-nav {
    margin-left: 0;
    position: fixed;
    top: 0;
    right: -100%;
    width: 70vw;
    max-width: 300px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    background: var(--sc-charcoal);
    transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
  }

  .header-nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .header-nav.open {
    right: 0;
  }

  .header-link {
    font-size: 0.9375rem;
  }

  .site-footer {
    padding: 3rem 1.5rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
