/* ==========================================================================
   basic.css
   リセット / CSS変数 / ベーススタイル / タイポグラフィ / レイアウト
   ヘッダー / フッター / ユーティリティ
   ========================================================================== */

/* ==========================================================================
   0. CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
  /* Brand Colors */
  --bsg-black:       #0a0a0a;
  --bsg-dark:        #111111;
  --bsg-dark-gray:   #1a1a1a;
  --bsg-mid-gray:    #2a2a2a;
  --bsg-gray:        #444444;
  --bsg-light-gray:  #888888;
  --bsg-border:      #333333;
  --bsg-white:       #ffffff;
  --bsg-off-white:   #f0f0f0;
  --bsg-gold:        #b8960c;
  --bsg-gold-light:  #d4af37;

  /* Typography */
  --font-en:   'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-ja:   'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  --font-display: 'Bebas Neue', 'Montserrat', sans-serif;
  --font-size-base: 16px;
  --font-size-sm:   14px;
  --font-size-xs:   12px;
  --font-size-lg:   18px;
  --font-size-xl:   20px;
  --font-size-2xl:  24px;
  --font-size-3xl:  32px;
  --font-size-4xl:  40px;

  /* Spacing (px) */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

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

  /* Transitions */
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;

  /* Letter spacing */
  --tracking-wide:   0.1em;
  --tracking-wider:  0.2em;
  --tracking-widest: 0.3em;
}

/* ==========================================================================
   1. Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ja);
  font-size: var(--font-size-base);
  line-height: 1.8;
  color: #ffffff;  /* var(--bsg-white) に統一 */
  background-color: var(--bsg-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base), opacity var(--transition-base);
}

a:hover {
  opacity: 0.75;
}

ul, ol {
  list-style: none;
}

/* ==========================================================================
   2. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-en);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: var(--tracking-wide);
}

.section-heading {
  font-family: var(--font-display);
  font-size: 4rem;  /* font-size-sm(14px) → 16px */
  font-weight: 400;
  letter-spacing: 0.1em;  /* 0.3em → 0.1em */
  text-transform: uppercase;
  color: var(--bsg-light-gray);
  margin-bottom: var(--space-6);
}

.section-heading--gold {
  color: var(--bsg-gold-light);
}

.page-title-bar {
  position: relative;
  padding: 210px 0 150px;  /* var(--space-16) 0 var(--space-8) → 拡大 */
  text-align: center;
  overflow: hidden;
}

.page-title-bar__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  z-index: 0;
}

.page-title-bar__text {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 4.2rem;  /* font-size-3xl(32px) → 56px */
  font-weight: 400;  /* Bebas Neueは太めなのでregularでOK */
  letter-spacing: 0.2em; /* var(--tracking-widest);*/
  text-transform: uppercase;
  color: var(--bsg-white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.9), 0 0 40px rgba(0,0,0,0.7);
}

.page-title-bar__text--en {
  font-family: var(--font-display);  /* Bebas Neue */
  font-size: 7.2rem;
  letter-spacing: 0.5em;
}

.page-title-bar__text--ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 3.6rem;
  letter-spacing: 0.15em;
}

/* ==========================================================================
   3. Layout
   ========================================================================== */

#wrapper,
#container,
#content {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--wide {
  max-width: var(--container-wide);
}

/* single.php / home.php のレイアウト上書き */
.single #main,
.blog #main {
  max-width: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
}

/* ==========================================================================
   4. Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: transparent;
  transition: background-color var(--transition-base);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.site-header.is-scrolled {
  background-color: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-6);
  gap: var(--space-6);
  height: 100%;
}

/* ロゴ */
.site-header__logo a {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header__logo img,
.site-header__logo svg {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: opacity var(--transition-base);
}

.site-header__logo a:hover img,
.site-header__logo a:hover svg {
  opacity: 0.75;
}

/* Global Nav */
.global-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.global-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
  padding: 0;
  margin: 0;
}

.global-nav__item a {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  white-space: nowrap;
  position: relative;
  padding-bottom: 4px;
}

.global-nav__item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--bsg-white);
  transition: width 0.3s ease;
}

.global-nav__item a:hover {
  color: var(--bsg-white);
  opacity: 1;
}

.global-nav__item:not(.global-nav__item--has-dropdown) a:hover::after,
.global-nav__item.current-menu-item:not(.global-nav__item--has-dropdown) a::after {
    width: 100%;
}

.global-nav__item.current-menu-item a {
  color: var(--bsg-white);
  opacity: 1;
}

.global-nav__item--sep {
  width: 1px;
  height: 12px;
  background-color: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

/* ドロップダウン */
.global-nav__item--has-dropdown {
  position: relative;
}

.global-nav__dropdown {
  display: none;
  position: absolute;
  top: 100%; /* calc(100% + 16px) → 100% に変更 */
  padding-top: var(--space-6); /* 隙間の代わりに内側で余白を確保 */
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  background-color: rgba(10, 10, 10, 0.96);
  border: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-3) 0;
  list-style: none;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.global-nav__item--has-dropdown > a::after,
.global-nav__item--has-dropdown > a:hover::after,
.global-nav__item--has-dropdown.current-menu-item > a::after {
    width: 0 !important;
}

.global-nav__item--has-dropdown:hover .global-nav__dropdown {
  display: block;
}

.global-nav__dropdown li a {
  display: block;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  padding: var(--space-3) var(--space-6);
  white-space: nowrap;
  transition: color var(--transition-base), background var(--transition-base);
}

.global-nav__dropdown li a:hover {
  color: var(--bsg-white);
  background-color: rgba(255,255,255,0.05);
  opacity: 1;
}

.global-nav__dropdown-label {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--bsg-gold-light);
  padding: var(--space-3) var(--space-6) var(--space-1);
  text-transform: uppercase;
}

/* モバイルナビ サブメニュー */
.mobile-nav__sub {
  display: none; /* 初期は非表示 */
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  list-style: none;
  padding: var(--space-3) 0 0;
  margin: 0;
}

.mobile-nav__sub.is-open {
  display: flex;
}

.mobile-nav__item {
  text-align: center; /* 追加 */
}

.mobile-nav__sub li a {
  font-family: var(--font-en);
  font-size: var(--font-size-sm);
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-base);
}

.mobile-nav__sub li a:hover {
  color: var(--bsg-white);
  opacity: 1;
}

/* SNS */
.header-sns {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

.header-sns__link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition-base);
}

.header-sns__link:hover {
  color: var(--bsg-white);
  opacity: 1;
}

.header-sns__link img {
  border-radius: 50%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.hamburger__line {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--bsg-white);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: rgba(10, 10, 10, 0.97);
  overflow-y: auto;
}

.mobile-nav.is-open {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav__item a {
  font-family: var(--font-en);
  font-size: var(--font-size-xl);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--bsg-white);
}

.mobile-nav__sns {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.mobile-nav__sns a {
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
}

.mobile-nav__sns img {
  border-radius: 50%;
  padding: 4px;
}

/* ==========================================================================
   5. Footer
   ========================================================================== */

.site-footer {
  background-color: var(--bsg-dark);
  border-top: 1px solid var(--bsg-border);
  padding: var(--space-12) 0 var(--space-6);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;  /* ブランド情報を広く・ナビを狭く */
  gap: var(--space-12);
  align-items: start;
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--bsg-border);
}

.site-footer__logo img,
.site-footer__logo svg {
  height: 40px;
  width: auto;
  opacity: 0.8;
  filter: brightness(0) invert(1);
  margin-bottom: 5px;
}

.site-footer__tagline {
  font-size: var(--font-size-xs);
  color: #aaaaaa;
  line-height: 1.7;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 0.8fr;  /* PAGES広め・WHERE TO BUY広め・FOLLOW US狭め */
  gap: var(--space-4);
}

.footer-nav__heading {
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: var(--space-4);
}

.footer-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-nav__list li a {
  font-size: var(--font-size-xs);
  color: #aaaaaa;
  transition: color var(--transition-base);
}

.footer-nav__list li a:hover {
  color: var(--bsg-white);
  opacity: 1;
}

.footer-nav__item a {
  font-size: var(--font-size-xs);
  color: #999999;  /* var(--bsg-gray) → 明るく */
  transition: color var(--transition-base);
}

.footer-nav__item a:hover {
  color: var(--bsg-white);
  opacity: 1;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-5);
}

.site-footer__copyright {
  font-family: var(--font-en);
  font-size: var(--font-size-xs);
  color: #cccccc;
  letter-spacing: 0.05em;
}

.site-footer__legal {
  display: flex;
  align-items: center;
}

.site-footer__legal ul {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__legal ul li a {
  font-family: var(--font-en);
  font-size: var(--font-size-xs);
  color: #999999;
  padding-inline: 16px;
  border-right: 1px solid var(--bsg-border);
  display: block;
}

.site-footer__legal ul li:last-child a {
  border-right: none;
  padding-right: 0;
}

.site-footer__legal ul li:first-child a {
  padding-left: 0;
}

.site-footer__legal ul li a:hover {
  color: var(--bsg-white);
  opacity: 1;
}

.youtube-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-en);
  font-size: var(--font-size-xs);
  letter-spacing: 0.05em;
  color: #dddddd;
  border: 1px solid var(--bsg-border);
  padding: var(--space-2) var(--space-4);
  margin-top: var(--space-6);
  transition: background var(--transition-base), color var(--transition-base);
}

.youtube-link:hover {
  background-color: #ff0000;
  border-color: #ff0000;
  color: var(--bsg-white);
  opacity: 1;
}

/* ==========================================================================
   6. Utility
   ========================================================================== */

.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.mt-auto      { margin-top: auto; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.section-divider {
  height: 1px;
  background-color: var(--bsg-border);
  margin: 0;
}

.rounded-img {
  border-radius: 4px;
}
