/*
Theme Name:   Bussan Custom
Theme URI:    https://example.com/bussan-custom
Description:  物販ECサイト用カスタムテーマ（Astra子テーマベース）
Author:       Custom
Template:     astra
Version:      1.0.0
Text Domain:  bussan-custom
*/

/* ===================================
   CSS Variables
=================================== */
:root {
  --color-bg:        #0a0a0a;
  --color-surface:   #141414;
  --color-surface2:  #1e1e1e;
  --color-border:    #2a2a2a;
  --color-text:      #f0f0f0;
  --color-text-sub:  #999999;
  --color-gold:      #c9a84c;
  --color-gold-light:#e8c96d;
  --color-gold-dark: #a07830;
  --color-white:     #ffffff;

  --font-base:   'Noto Sans JP', sans-serif;
  --font-accent: 'Cormorant Garamond', serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;

  --shadow-gold: 0 4px 24px rgba(201,168,76,0.15);
  --transition:  0.3s ease;

  --container-max: 1200px;
  --section-py:    80px;
}

/* ===================================
   Reset & Base
=================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-gold-light);
}

ul, ol {
  list-style: none;
}

/* ===================================
   Typography
=================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-accent);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-white);
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.section-subtitle {
  font-size: 14px;
  color: var(--color-gold);
  text-align: center;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-desc {
  text-align: center;
  color: var(--color-text-sub);
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ===================================
   Layout
=================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-py) 0;
}

.section--dark {
  background-color: var(--color-surface);
}

/* ===================================
   Buttons
=================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 40px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: #000;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  color: #000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
}

.btn-outline:hover {
  background: var(--color-gold);
  color: #000;
  transform: translateY(-2px);
}

.btn-large {
  padding: 20px 56px;
  font-size: 16px;
}

/* ===================================
   Header
=================================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  height: 72px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo {
  font-family: var(--font-accent);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.1em;
  text-decoration: none;
}

.site-logo:hover {
  color: var(--color-gold-light);
}

.global-nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}

.global-nav a {
  color: var(--color-text);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color var(--transition);
}

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

.header-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.cart-icon {
  position: relative;
  color: var(--color-text);
  font-size: 20px;
  display: flex;
  align-items: center;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--color-gold);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 999;
  padding: 40px 24px;
  overflow-y: auto;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav li {
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav a {
  display: block;
  padding: 18px 0;
  color: var(--color-text);
  font-size: 16px;
  text-decoration: none;
}

/* ===================================
   Footer
=================================== */
#site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .site-logo {
  font-size: 20px;
  display: block;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--color-text-sub);
  font-size: 14px;
  line-height: 1.8;
}

.footer-nav h4 {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 16px;
  font-family: var(--font-base);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: var(--color-text-sub);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: var(--color-text-sub);
  font-size: 13px;
}

/* ===================================
   Divider
=================================== */
.gold-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  margin: 16px auto 0;
}

/* ===================================
   Cards
=================================== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 8px;
}

.card-title {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--color-white);
}

.card-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-gold);
  font-family: var(--font-accent);
}

.card-price-sub {
  font-size: 12px;
  color: var(--color-text-sub);
  margin-left: 4px;
}

/* ===================================
   Grid layouts
=================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ===================================
   Badge
=================================== */
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.badge-gold {
  background: rgba(201,168,76,0.15);
  color: var(--color-gold);
  border: 1px solid rgba(201,168,76,0.3);
}

.badge-order {
  background: rgba(255,255,255,0.05);
  color: var(--color-text-sub);
  border: 1px solid var(--color-border);
}

/* ===================================
   Page Header
=================================== */
.page-header {
  padding: 120px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 12px;
}

.page-header .breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  color: var(--color-text-sub);
  font-size: 13px;
}

.page-header .breadcrumb a {
  color: var(--color-text-sub);
}

.page-header .breadcrumb a:hover {
  color: var(--color-gold);
}

.page-header .breadcrumb span {
  color: var(--color-border);
}

/* ===================================
   Main content offset for fixed header
=================================== */
.site-main {
  padding-top: 72px;
}

/* ===================================
   Responsive
=================================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-py: 56px; }

  .global-nav { display: none; }
  .header-cta .btn { display: none; }
  .hamburger { display: flex; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .btn-large { padding: 16px 32px; font-size: 15px; }
}
