/* ===================================
   雪丘工房 - Global Stylesheet
   キャンプ・ランタンテーマ
   =================================== */

/* --- リセット & ベース --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-deep:      #151510;
  --bg-dark:      #1e1d17;
  --bg-card:      #272620;
  --bg-card-alt:  #2f2e27;
  --amber:        #d4820a;
  --amber-light:  #f0a832;
  --amber-glow:   #ffcc66;
  --cream:        #f0ead8;
  --cream-dim:    #b8b09a;
  --text:         #e8e0cc;
  --text-dim:     #9a9280;
  --border:       #3a3830;
  --border-amber: #6b4410;
  --red:          #c04040;
  --green:        #4a8040;

  --font-main: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', Meiryo, sans-serif;
  --font-en:   Georgia, 'Times New Roman', serif;

  --radius: 6px;
  --shadow: 0 4px 20px rgba(0,0,0,0.6);
  --glow:   0 0 20px rgba(212,130,10,0.25);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.75;
  min-height: 100vh;
}

a {
  color: var(--amber-light);
  text-decoration: none;
}
a:hover {
  color: var(--amber-glow);
  text-decoration: underline;
}

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

/* --- ヘッダー --- */
.site-header {
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--border-amber);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.7);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-ja {
  font-size: 18px;
  font-weight: 700;
  color: var(--amber-glow);
  letter-spacing: 0.1em;
}

.logo-en {
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--cream-dim);
  letter-spacing: 0.05em;
}

/* --- ナビゲーション --- */
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--cream-dim);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(212,130,10,0.15);
  color: var(--amber-light);
  text-decoration: none;
}

/* ハンバーガーメニュー（モバイル用） */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--amber-light);
  transition: all 0.3s;
}

/* --- メインコンテンツ --- */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* --- ヒーロー --- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0e0d09 0%, #2a2015 40%, #1a1408 100%);
  border-bottom: 1px solid var(--border-amber);
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,130,10,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-icon {
  font-size: 64px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 20px rgba(212,130,10,0.5));
}

.hero-title {
  font-family: var(--font-en);
  font-size: clamp(28px, 5vw, 52px);
  color: var(--amber-glow);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-shadow: 0 0 30px rgba(240,168,50,0.4);
}

.hero-subtitle {
  font-size: clamp(14px, 2vw, 18px);
  color: var(--cream-dim);
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 14px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.9;
}

/* --- セクション --- */
.section {
  margin-bottom: 60px;
}

.section-title {
  font-size: 20px;
  color: var(--amber-light);
  border-left: 3px solid var(--amber);
  padding-left: 12px;
  margin-bottom: 28px;
  letter-spacing: 0.05em;
}

/* --- 商品グリッド --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow), var(--shadow);
  border-color: var(--border-amber);
  text-decoration: none;
  color: inherit;
}

.product-card-img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--bg-card-alt);
}

.product-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: var(--bg-card-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--border-amber);
}

.product-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--cream);
}

.product-card-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  flex: 1;
}

.product-card-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--amber-light);
  margin-top: 8px;
}

.product-card-price small {
  font-size: 12px;
  font-weight: normal;
  color: var(--text-dim);
}

/* --- 商品詳細ページ --- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.product-images {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-main-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.product-thumb-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s;
}

.product-thumb:hover {
  border-color: var(--amber);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.product-name {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--cream);
  font-weight: 700;
}

.product-name-en {
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 4px;
}

.product-tagline {
  font-size: 14px;
  color: var(--amber-light);
  background: rgba(212,130,10,0.1);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius);
  padding: 10px 14px;
  line-height: 1.7;
}

.product-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.9;
}

/* --- スペックテーブル --- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.spec-table th {
  background: var(--bg-card-alt);
  color: var(--cream-dim);
  font-weight: normal;
  width: 40%;
}

.spec-table td {
  color: var(--text);
}

/* --- 価格表示 --- */
.price-box {
  background: var(--bg-card);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius);
  padding: 20px;
}

.price-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.price-main {
  font-size: 28px;
  font-weight: 700;
  color: var(--amber-glow);
}

.price-tax {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.price-notax {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* 複数バリエーションの価格 */
.price-variants {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-variant {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.price-variant-name {
  font-size: 13px;
  color: var(--cream-dim);
  margin-bottom: 6px;
}

.price-variant-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--amber-light);
}

.price-variant-tax {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* --- 注文ボタン --- */
.order-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--amber);
  color: #100e08;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s, box-shadow 0.2s;
  letter-spacing: 0.05em;
}

.order-btn:hover {
  background: var(--amber-light);
  box-shadow: 0 0 16px rgba(212,130,10,0.4);
  text-decoration: none;
  color: #100e08;
}

.order-note {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 8px;
}

/* --- アクセサリーテーブル内 商品名+画像セル --- */
.acc-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.acc-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}

/* --- アクセサリー一覧 --- */
.accessory-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
}

.accessory-table thead {
  background: var(--bg-card-alt);
}

.accessory-table th {
  padding: 12px 16px;
  color: var(--cream-dim);
  font-weight: normal;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.accessory-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.accessory-table tr:last-child td {
  border-bottom: none;
}

.accessory-table .tax-col {
  text-align: right;
  color: var(--amber-light);
  font-weight: 700;
  white-space: nowrap;
}

.accessory-table .price-col {
  text-align: right;
  color: var(--text-dim);
  font-size: 12px;
  white-space: nowrap;
}

.accessory-table .cart-col {
  text-align: center;
  white-space: nowrap;
  padding: 8px 12px;
}

.cart-btn-sm {
  display: inline-block;
  background: var(--amber);
  color: #100e08;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.cart-btn-sm:hover {
  background: var(--amber-light);
}

/* --- 注意書きボックス --- */
.notice-box {
  background: rgba(192,64,64,0.1);
  border: 1px solid rgba(192,64,64,0.3);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 13px;
  color: #e8a0a0;
  line-height: 1.7;
}

.info-box {
  background: rgba(74,128,64,0.1);
  border: 1px solid rgba(74,128,64,0.3);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 13px;
  color: #a0c8a0;
  line-height: 1.7;
}

/* --- フッター --- */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 40px 20px 24px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand .logo-en {
  font-size: 20px;
  margin-bottom: 8px;
}

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

.footer-nav h4,
.footer-contact h4 {
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 8px;
}

.footer-nav a,
.footer-contact a {
  font-size: 13px;
  color: var(--text-dim);
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--amber-light);
}

.footer-contact p {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}

/* --- パンくずリスト --- */
.breadcrumb {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-dim);
}

.breadcrumb a:hover {
  color: var(--amber-light);
}

.breadcrumb span {
  margin: 0 6px;
}

/* --- 燃料ガイド --- */
.fuel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.fuel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.fuel-card h4 {
  font-size: 15px;
  color: var(--amber-light);
  margin-bottom: 8px;
}

.fuel-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
}

.fuel-card.danger {
  border-color: rgba(192,64,64,0.4);
}

.fuel-card.danger h4 {
  color: #e08080;
}

/* --- 特定商取引法ページ --- */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  padding: 14px 18px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--bg-card-alt);
  color: var(--cream-dim);
  font-weight: normal;
  width: 30%;
  white-space: nowrap;
}

.legal-table td {
  background: var(--bg-card);
  line-height: 1.8;
}

/* --- お問い合わせ --- */
.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.contact-card h3 {
  font-size: 14px;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.contact-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
}

.contact-card a {
  font-size: 16px;
  font-weight: 700;
  color: var(--amber-light);
}

/* --- バリエーションテーブル（注文列付き） --- */
.variant-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  max-width: 100%;
}
.variant-table {
  min-width: max-content;
  width: 100%;
}

.variant-table th {
  width: auto;
}

.variant-table .tax-col-v {
  text-align: right;
  color: var(--amber-light);
  font-weight: 700;
  white-space: nowrap;
}

.variant-table .price-col-v {
  text-align: right;
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
}

.variant-order-col {
  text-align: center;
  padding: 8px 10px;
  white-space: nowrap;
}

.variant-order-col form {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- バリアントオーダーカード（s6等） --- */
.variant-order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 4px;
}

.variant-order-card {
  background: var(--bg-card);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.variant-order-card .voc-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--amber-light);
}

.variant-order-card .voc-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: -6px;
}

.variant-order-card .voc-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--amber-glow);
  line-height: 1.2;
}

.variant-order-card .voc-price span {
  font-size: 13px;
  font-weight: normal;
  color: var(--text-dim);
}

.variant-order-card form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-amber);
    padding: 16px;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .site-nav a {
    padding: 12px 16px;
    font-size: 14px;
  }

  .hero {
    padding: 60px 20px;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .legal-table th {
    white-space: normal;
    width: 35%;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 24px 16px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .price-variants {
    gap: 8px;
  }

  .variant-order-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   スマートフォン最適化（600px以下）
   =================================== */
@media (max-width: 600px) {

  /* ---- アクセサリーテーブル → カードレイアウト ---- */
  .accessory-table          { display: block !important; background: transparent !important; border-radius: 0 !important; overflow: visible !important; }
  .accessory-table thead    { display: none !important; }
  .accessory-table tbody    { display: flex !important; flex-direction: column; gap: 10px; }
  .accessory-table tr       { display: flex !important; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; gap: 10px; }
  .accessory-table td       { display: block !important; padding: 0 !important; border-bottom: none !important; white-space: normal !important; width: 100%; box-sizing: border-box; }
  .accessory-table tr:last-child td { border-bottom: none !important; }

  /* 商品名セル: 名称を上・画像を下に縦並び */
  .acc-item {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 6px;
  }
  .acc-item img {
    width: 56px;
    height: 56px;
  }

  /* 価格セル */
  .accessory-table .tax-col { text-align: left !important; font-size: 18px !important; }

  /* カートセル */
  .accessory-table .cart-col { padding: 0 !important; white-space: normal !important; text-align: left !important; }
  .accessory-table .cart-col form { display: flex !important; align-items: center; gap: 10px; flex-wrap: wrap; }

  /* カートボタン（タッチターゲット 44px） */
  .cart-btn-sm { font-size: 14px !important; padding: 10px 18px !important; min-height: 44px; display: inline-flex !important; align-items: center; }

  /* ---- バリアントテーブル: モバイルはスクロール対応（iOS Safari互換） ---- */
  .variant-table-wrap { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  .variant-table .price-col-v { font-size: 11px !important; color: var(--text-dim) !important; opacity: 0.8; }

  /* ---- その他 ---- */
  .spec-table th, .spec-table td  { padding: 8px 10px; font-size: 13px; }
  .price-main                     { font-size: 24px; }
  .order-btn                      { min-height: 52px; font-size: 16px; }
  .section-title                  { font-size: 17px; }
  .product-thumb                  { width: 64px; height: 64px; }
  .variant-order-card .voc-price  { font-size: 20px; }
  .contact-card                   { padding: 16px; }
  .footer-inner                   { gap: 20px; }

  .main-content { padding: 24px 14px; }
}
