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

:root {
  --color-primary: #1a1a1a;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-bg: #f8f8f6;
  --color-surface: #ffffff;
  --color-border: #e5e5e5;
  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-success: #16a34a;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== ヘッダー ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1a1a1a;
  border-bottom: 1px solid #333;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ナビゲーション */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* ハンバーガーボタン */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .hamburger-btn {
    display: flex;
    margin-left: auto;
  }
  .header-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #1a1a1a;
    flex-direction: column;
    padding: 8px 0;
    border-top: 1px solid #333;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
  .header-nav.is-open {
    display: flex;
  }
  .nav-link {
    padding: 12px 24px;
    font-size: 0.9rem;
    border-radius: 0;
  }
}

.logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
  transition: opacity 0.2s;
}
.cart-btn:hover { opacity: 0.7; }

/* カートアイコンの色（ヘッダーが黒なので白に） */
.cart-btn { color: #ffffff; }

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--color-accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== メイン ===== */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* グリッドアイテムのはみ出しを防ぐ */
.product-gallery,
.configurator {
  min-width: 0;
  width: 100%;
}

@media (max-width: 768px) {
  .product-page {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ===== ギャラリー ===== */
.product-gallery {
  position: sticky;
  top: 80px;
}

@media (max-width: 768px) {
  .product-gallery {
    position: relative;
    top: 0;
  }
}

.gallery-main {
  border-radius: 12px;
  overflow: hidden;
  background: #f0f0ee;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: background 0.3s;
  position: relative;
}

/* 実写画像表示モード */
.gallery-main-img {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-box[data-static="1"] .gallery-main-img { display: block; }
.preview-box[data-static="1"] .preview-text { display: none; }

.preview-text {
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #1a1a1a;
  word-break: break-all;
  text-align: center;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.15), 6px 6px 0 rgba(0,0,0,0.05);
  transition: color 0.2s, text-shadow 0.2s;
}

/* サムネイルカルーセル */
.thumbnail-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.thumbnail-track {
  display: flex;
  gap: 8px;
  overflow-x: hidden;
  flex: 1;
  scroll-behavior: smooth;
}

.thumb-item {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  border: 2px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  padding: 0;
  transition: border-color 0.2s;
}

.thumb-item--active {
  border-color: var(--color-accent);
}

.thumb-item:hover:not(.thumb-item--active) {
  border-color: #9ca3af;
}

.thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 600;
  color: #555;
  line-height: 1.3;
  text-align: center;
  padding: 4px;
}

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-arrow {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.thumb-arrow:hover {
  background: var(--color-text);
  color: white;
}

.preview-note {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ===== コンフィギュレーター ===== */
.product-title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
}

.product-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* 価格表示 */
.price-display {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.price-detail {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* 価格エリア・割引表示 */
.price-amount-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.price-original {
  font-size: 1rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.price-saving {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-success);
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 100px;
}

/* ボリュームディスカウント進捗バー */
.discount-progress {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.3s, background 0.3s;
}

.discount-progress[data-state="progress"] {
  border-color: #fb923c;
  background: #fff7ed;
}

.discount-progress[data-state="active"] {
  border-color: var(--color-success);
  background: #f0fdf4;
}

.discount-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.discount-progress-msg {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.discount-progress[data-state="progress"] .discount-progress-msg {
  color: #ea580c;
}

.discount-progress[data-state="active"] .discount-progress-msg {
  color: var(--color-success);
}

.discount-progress-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.discount-progress[data-state="active"] .discount-progress-count {
  color: var(--color-success);
}

.discount-bar-track {
  height: 6px;
  background: var(--color-border);
  border-radius: 100px;
  overflow: hidden;
}

.discount-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: #d1d5db;
  transition: width 0.35s ease, background 0.3s;
}

.discount-progress[data-state="progress"] .discount-bar-fill {
  background: #fb923c;
}

.discount-progress[data-state="active"] .discount-bar-fill {
  background: var(--color-success);
}

/* モバイル：バー非表示・インラインヒント表示 */
.discount-hint {
  display: none;
}

@media (max-width: 768px) {
  .discount-progress {
    display: none;
  }
  .discount-hint {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #ea580c;
    margin-top: 4px;
  }
  .discount-hint.is-active {
    color: var(--color-success);
  }
}

/* フォーム */
.config-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.selected-color-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: #888;
  margin-bottom: 0.4em;
}

.char-count {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color 0.2s;
  appearance: none;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.input-warning {
  font-size: 0.82rem;
  font-weight: 600;
  color: #dc2626;
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  border-radius: var(--radius);
  padding: 10px 14px;
  line-height: 1.5;
}

/* オプションカード */
.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.option-card {
  cursor: pointer;
}

.option-card input[type="radio"] {
  display: none;
}

.option-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
  background: var(--color-surface);
}

.option-card input[type="radio"]:checked + .option-content {
  border-color: var(--color-accent);
  background: #eff6ff;
}

.option-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.option-sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* カラーパレット */
.color-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.color-swatch-label {
  cursor: pointer;
}

.color-swatch-label input[type="radio"] {
  display: none;
}

.color-swatch {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}

.color-swatch--border {
  border: 3px solid var(--color-border);
}

.color-swatch-label input[type="radio"]:checked + .color-swatch {
  border-color: var(--color-accent);
  transform: scale(1.15);
}

.color-swatch:hover {
  transform: scale(1.1);
}

/* ボタン */
.btn-add-cart {
  width: 100%;
  padding: 16px;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.03em;
}

.btn-add-cart:hover:not(:disabled) {
  background: var(--color-accent-hover);
}

.btn-add-cart:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-add-cart:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

.cart-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: -12px;
}

/* 商品特徴 */
.features {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.feature-icon {
  color: var(--color-accent);
  font-size: 0.7rem;
}

/* ===== カートサイドバー ===== */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
}

.cart-overlay.active { display: block; }

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(400px, 100vw);
  background: var(--color-surface);
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  z-index: 210;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.cart-sidebar.active { transform: translateX(0); }

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

.cart-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 4px;
  transition: color 0.2s;
}
.cart-close:hover { color: var(--color-text); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-empty {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 40px;
}

/* カートアイテム */
.cart-item {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-item-title {
  font-weight: 700;
  font-size: 1rem;
  word-break: break-all;
}

.cart-item-meta {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.cart-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item-price {
  font-weight: 700;
  font-size: 1rem;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
  transition: color 0.2s;
}
.cart-item-remove:hover { color: #dc2626; }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.1rem;
}

.btn-checkout {
  width: 100%;
  padding: 16px;
  background: #635bff;
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.02em;
}

.btn-checkout:hover { background: #4f46e5; }

.checkout-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ===== 書体グリッド ===== */
/* モバイル追従プレビュー */
.preview-mini {
  display: none;
}

@media (max-width: 768px) {
  .preview-mini {
    display: flex;
    position: sticky;
    top: 60px;
    z-index: 50;
    background: #f0f0ee;
    align-items: center;
    justify-content: center;
    height: 64px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  }
}

.preview-mini-text {
  font-size: clamp(1.1rem, 4vw, 1.8rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #1a1a1a;
  word-break: break-all;
  text-align: center;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.12), 4px 4px 0 rgba(0,0,0,0.05);
  padding: 0 12px;
  transition: color 0.2s;
}

.font-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (max-width: 480px) {
  .font-grid { grid-template-columns: repeat(2, 1fr); }
}

.font-card { cursor: pointer; }
.font-card input[type="radio"] { display: none; }

.font-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
  min-height: 48px;
  justify-content: center;
}

.font-card input[type="radio"]:checked + .font-card-content {
  border-color: var(--color-accent);
  background: #eff6ff;
}

.font-card--logo .font-card-content {
  background: #faf5ff;
  border-color: #d8b4fe;
}
.font-card--logo input[type="radio"]:checked + .font-card-content {
  border-color: #7c3aed;
  background: #f5f3ff;
}

.font-sample {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
  display: none;
}

.font-sample-logo {
  font-size: 0.7rem;
  font-weight: 700;
  color: #7c3aed;
  line-height: 1.4;
  display: none;
}

.font-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: center;
  line-height: 1.3;
}

.font-desc {
  font-size: 0.62rem;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.3;
  overflow: hidden;
  display: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  width: 100%;
}

.font-type-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-accent);
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 100px;
}

.font-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 100px;
}
.font-badge--free {
  background: #dcfce7;
  color: var(--color-success);
  display: none;
}
.font-badge--paid {
  background: #f3e8ff;
  color: #7c3aed;
}

/* ===== カート内訳 ===== */
.cart-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 4px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.breakdown-discount .discount-amount {
  color: var(--color-success);
  font-weight: 600;
}

.breakdown-logo span:last-child {
  color: #7c3aed;
  font-weight: 600;
}

.breakdown-total {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  padding-top: 8px;
  border-top: 1px dashed var(--color-border);
  margin-top: 4px;
}

.minimum-warning {
  background: #fef2f2;
  color: #dc2626;
  font-size: 0.8rem;
  text-align: center;
  padding: 8px 12px;
  border-radius: var(--radius);
  margin-bottom: -4px;
}

/* ===== 商品情報リスト ===== */
.product-notes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0 0;
  border-top: 1px solid var(--color-border);
  margin-top: 4px;
}

.product-notes li {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  padding-left: 1.1em;
  position: relative;
  line-height: 1.5;
}

.product-notes li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--color-text-muted);
}

.notes-link {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ===== 成功・キャンセルページ ===== */
.result-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 40px 24px;
  gap: 16px;
}

.result-icon { font-size: 4rem; }
.result-title { font-size: 1.8rem; font-weight: 700; }
.result-message { color: var(--color-text-muted); max-width: 400px; }
.result-link {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 28px;
  background: var(--color-accent);
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.2s;
}
.result-link:hover { background: var(--color-accent-hover); }

/* ===== クーポン ===== */
.coupon-section {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.coupon-input-row {
  display: flex;
  gap: 8px;
}

.coupon-input {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.coupon-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.btn-coupon {
  padding: 9px 14px;
  background: var(--color-text);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.btn-coupon:hover:not(:disabled) { opacity: 0.8; }
.btn-coupon:disabled { opacity: 0.5; cursor: not-allowed; }

.coupon-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 8px 12px;
}

.coupon-applied-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-success);
}

.coupon-remove {
  background: none;
  border: none;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
}
.coupon-remove:hover { color: #dc2626; }

.coupon-error {
  font-size: 0.8rem;
  color: #dc2626;
  font-weight: 500;
}

.coupon-condition-warn {
  font-size: 0.8rem;
  color: #c2410c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 4px;
  padding: 6px 10px;
  font-weight: 500;
}

.breakdown-coupon .discount-amount {
  color: var(--color-success);
  font-weight: 600;
}

/* ===== フッター ===== */
.footer {
  background: #1a1a1a;
  color: rgba(255,255,255,0.85);
  margin-top: 80px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

@media (max-width: 600px) {
  .footer-nav { align-items: flex-start; }
}

.footer-nav-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-nav-link:hover { color: #fff; }

.footer-payments {
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-payments-title {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.payment-logos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.payment-badge--stripe {
  background: #635bff;
  border-color: #635bff;
  color: white;
}

.payment-badge--bank {
  background: #0e7490;
  border-color: #0e7490;
  color: white;
}

.footer-bottom {
  padding-top: 8px;
}

.footer-copyright {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* ===== トースト通知 ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1a1a1a;
  color: white;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 300;
  transition: transform 0.3s ease;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ===== 画像プレースホルダー ===== */
.img-placeholder {
  width: 100%;
  background: #e8e8e4;
  border: 2px dashed #ccc;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.85rem;
  gap: 8px;
}
.img-placeholder::before {
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23bbb' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ===== コンテンツページ共通 ===== */
.page-banner {
  background: #1a1a1a;
  padding: 56px 24px 48px;
  text-align: center;
}
.page-banner-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  margin: 0 0 12px;
}
.page-banner-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
}
.content-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.content-section {
  margin-bottom: 64px;
}
.content-section:last-child {
  margin-bottom: 0;
}
.content-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  border-left: 3px solid #1a1a1a;
  padding-left: 14px;
  margin: 0 0 24px;
}
.content-lead {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #444;
  margin: 0 0 24px;
}

/* ===== HOME: ヒーロースライダー ===== */
.home-hero {
  position: relative;
  overflow: hidden;
  height: clamp(480px, 65vh, 700px);
  background: #1a1a1a;
}

/* 動画背景 */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* 暗幕 */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.28) 55%, rgba(0,0,0,0.06) 100%);
  z-index: 1;
}

/* テキストパネル */
.hero-text-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 80px;
  max-width: 680px;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
  z-index: 2;
}
.hero-text-panel--active {
  opacity: 1;
  pointer-events: auto;
}

/* ローディングオーバーレイ */
.hero-loader {
  position: absolute;
  inset: 0;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.6s ease;
}
.hero-loader.is-hidden { opacity: 0; }

.hero-loader-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: hero-spin 0.8s linear infinite;
}
@keyframes hero-spin {
  to { transform: rotate(360deg); }
}
.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  margin: 0 0 20px;
}
.hero-sub {
  font-size: clamp(0.88rem, 1.6vw, 1rem);
  line-height: 1.8;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
  margin: 0 0 32px;
}
.home-hero-cta {
  align-self: flex-start;
  display: inline-block;
  background: #fff;
  color: #1a1a1a;
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: opacity 0.2s;
}
.home-hero-cta:hover { opacity: 0.85; }
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.hero-arrow:hover { background: rgba(255,255,255,0.38); }
.hero-arrow--prev { left: 24px; }
.hero-arrow--next { right: 24px; }
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.hero-dot--active { background: #fff; transform: scale(1.3); }

/* ===== HOME: フィーチャー ===== */
.home-features {
  padding: 80px 24px;
  background: #fff;
}
.home-features-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.home-features-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 48px;
  color: #1a1a1a;
}
.home-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card { }
.feature-card-img { aspect-ratio: 4/3; margin-bottom: 20px; width: 100%; object-fit: cover; border-radius: 8px; display: block; }
.feature-card-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #888;
  margin: 0 0 8px;
}
.feature-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px;
  line-height: 1.5;
}
.feature-card-text {
  font-size: 0.88rem;
  line-height: 1.8;
  color: #555;
  margin: 0;
}
.home-cta-section {
  background: #1a1a1a;
  padding: 64px 24px;
  text-align: center;
}
.home-cta-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin: 0 0 28px;
}
.home-cta-btn {
  display: inline-block;
  background: #fff;
  color: #1a1a1a;
  padding: 16px 48px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: opacity 0.2s;
}
.home-cta-btn:hover { opacity: 0.85; }

/* ===== レターサイン: 素材・カラーセクション ===== */
.lettersign-info {
  background: #f7f7f5;
  padding: 72px 24px;
}
.lettersign-info-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.lettersign-info-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 32px;
  border-left: 3px solid #1a1a1a;
  padding-left: 14px;
}
.material-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
}
.material-card {
  background: #fff;
  border-radius: 8px;
  padding: 28px;
  border: 1px solid #e5e5e5;
}
.material-card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.material-card-badge--indoor {
  background: #e8f0ff;
  color: #2563eb;
}
.material-card-badge--outdoor {
  background: #e8f5e9;
  color: #1a7a35;
}
.material-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 10px;
}
.material-card-img { aspect-ratio: 16/9; margin-bottom: 16px; width: 100%; object-fit: cover; display: block; border-radius: 6px; }
.material-card-text {
  font-size: 0.88rem;
  line-height: 1.75;
  color: #555;
  margin: 0;
}
.color-desc-section { }
.color-desc-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 16px;
}
.color-desc-text {
  font-size: 0.88rem;
  line-height: 1.8;
  color: #555;
  margin: 0 0 20px;
}
.color-swatches-display {
  display: flex;
  gap: 16px;
}
.color-swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.color-swatch-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.color-swatch-circle--black { background: #1a1a1a; }
.color-swatch-circle--white { background: #fff; border: 1px solid #ddd; }
.color-swatch-circle--gray  { background: #888; }
.color-swatch-label-text {
  font-size: 0.78rem;
  color: #666;
}

/* ===== 制作例 ===== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.catalog-item { aspect-ratio: 4/3; }

/* ===== ショッピングガイド ===== */
.guide-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.guide-step {
  counter-increment: step;
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}
.guide-step:last-child { border-bottom: none; }
.guide-step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.guide-step-num::after { content: counter(step); }
.guide-step-body { }
.guide-step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 6px;
}
.guide-step-text {
  font-size: 0.88rem;
  line-height: 1.75;
  color: #555;
  margin: 0;
}
.guide-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.guide-info-table th, .guide-info-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
.guide-info-table th {
  width: 30%;
  font-weight: 600;
  color: #1a1a1a;
  background: #f7f7f5;
}
.guide-info-table td { color: #444; }

/* ===== Q&A ===== */
.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.faq-item {
  border-bottom: 1px solid #eee;
  padding: 28px 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-q {
  display: flex;
  gap: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 14px;
  line-height: 1.6;
}
.faq-q::before {
  content: 'Q';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-a {
  display: flex;
  gap: 14px;
  font-size: 0.88rem;
  line-height: 1.8;
  color: #555;
  margin: 0;
}
.faq-a::before {
  content: 'A';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: #e8e8e4;
  color: #1a1a1a;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== お問い合わせ ===== */
.inquiry-line-box {
  background: #06c755;
  border-radius: 12px;
  padding: 36px;
  text-align: center;
  margin-bottom: 24px;
}
.inquiry-line-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
}
.inquiry-line-btn {
  display: inline-block;
  background: #fff;
  color: #06c755;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 36px;
  border-radius: 100px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.inquiry-line-btn:hover { opacity: 0.85; }
.inquiry-line-qr {
  width: 120px;
  height: 120px;
  margin: 20px auto 0;
  display: block;
  border-radius: 8px;
}
.inquiry-line-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  margin: 16px 0 0;
}
.inquiry-coupon-note {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 0.88rem;
  color: #78350f;
  margin-bottom: 40px;
}
.inquiry-email-box {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 28px;
}
.inquiry-email-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px;
}
.inquiry-email-addr {
  font-size: 1rem;
  color: #1a1a1a;
  font-weight: 600;
  text-decoration: none;
}
.inquiry-email-addr:hover { text-decoration: underline; }

/* ===== 特定商取引法 ===== */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.legal-table th, .legal-table td {
  padding: 14px 18px;
  border: 1px solid #e5e5e5;
  vertical-align: top;
  line-height: 1.7;
}
.legal-table th {
  background: #f7f7f5;
  font-weight: 600;
  color: #1a1a1a;
  width: 30%;
  white-space: nowrap;
}
.legal-table td { color: #444; }

/* ===== プライバシーポリシー / サイトポリシー ===== */
.policy-section { margin-bottom: 48px; }
.policy-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 16px;
}
.policy-list {
  padding-left: 1.4em;
  margin: 0;
}
.policy-list li {
  font-size: 0.88rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 12px;
}
.policy-list li strong { color: #1a1a1a; }

/* ===== レスポンシブ（新ページ）===== */
@media (max-width: 768px) {
  .hero-slide-content { padding: 0 24px; max-width: 100%; }
  .hero-text-panel { padding: 0 24px; max-width: 100%; }
  .hero-arrow { display: none; }
  /* ヒーロー：モバイルは縦動画に備えて高さを画面いっぱいに */
  .home-hero { height: calc(100svh - 60px); min-height: 480px; max-height: 900px; }
  /* オーバーレイをモバイルで濃く（テキスト可読性） */
  .hero-slide-overlay { background: linear-gradient(160deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.50) 55%, rgba(0,0,0,0.20) 100%); }
  /* フィーチャーセクション：パディング縮小・横スクロール防止 */
  .home-features { padding: 48px 16px; }
  .home-features-inner { width: 100%; }
  .home-features-grid { grid-template-columns: 1fr; }
  .material-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .legal-table th { white-space: normal; width: 35%; }
}
