/* ================================================================
   BODY DECO - 共通CSS
   Color Me Shop Admin: デザイン管理 > 共通CSS
   ================================================================
   適用範囲: 全ページ共通 (ヘッダー・フッター・基本スタイル・特定商取引・お支払い方法 & 配送)
   このCSSは全ページで読み込まれます。
   ================================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Noto+Sans+JP:wght@400;500;700&family=Inter:wght@400;500;600;700&display=swap');


/* ── 1. DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* Brand palette */
  --color-bg:          #0a0a0a;
  --color-surface:     #111111;
  --color-surface-2:   #181818;
  --color-surface-3:   #222222;
  --color-border:      rgba(255,255,255,0.08);
  --color-white:       #ffffff;
  --color-off-white:   #e8e8e8;
  --color-muted:       #888888;
  --color-accent:      #c8a96e;
  --color-accent-dim:  #a08040;
  --color-accent-glow: rgba(200,169,110,0.18);
  --color-danger:      #e74c3c;

  /* Typography */
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body:    'Inter', 'Noto Sans JP', 'Hiragino Sans', sans-serif;

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

  /* Borders */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.4);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.7);
  --shadow-glow: 0 0 24px var(--color-accent-glow);

  /* Transitions */
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur-fast:    150ms;
  --dur-base:    250ms;
  --dur-slow:    400ms;

  /* Layout */
  --container-max: 1200px;
  --header-h:      56px;

  /* Product images &#8212; same frame everywhere (640×480 proportion = 4:3) */
  --product-media-aspect: 640 / 480;
}


/* ── Product image frames (640×480) &#8212; cards + detail main (#productMainImg) ── */
.product-card__media,
.product-detail__img-wrap {
  position: relative;
  aspect-ratio: var(--product-media-aspect, 640 / 480);
  background: #ffffff;
  overflow: hidden;
}
.product-card__media {
  flex-shrink: 0;
}
.product-detail__img-wrap {
  width: 100%;
  flex-shrink: 0;
}


/* ── 2. RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  /* Same as --color-bg: avoids visible mismatch when mobile browsers rubber-band past the page edge */
  background-color: #0a0a0a;
}

body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-off-white);
  background: linear-gradient(135deg, #1c1c1c 0%, #0f0f0f 60%, #0a0a0a 100%) fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Light theme: html bg matches body palette so overscroll bounce is not a dark strip */
html:has(body.theme-light) {
  background-color: #EDE5DB;
}

/*
 * Mobile Safari / Chrome: `background-attachment: fixed` + dynamic toolbar height often leaves a
 * wrong-colored gap at the bottom when scrolled to the end; `scroll` keeps the gradient tied to content.
 */
@media (max-width: 1023px) {
  body {
    background-attachment: scroll;
  }
}

img { display: block; max-width: 100% !important; height: auto !important; }
/* Override HTML width/height attrs or inline styles injected by CMS WYSIWYG editor */
img[width], img[height], img[style] { max-width: 100% !important; height: auto !important; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, select, button { font-family: inherit; font-size: inherit; }

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


/* ── Back to top (fixed) ─────────────────────────────────── */
.back-to-top {
  position: fixed;
  z-index: 2000;
  right: max(var(--sp-4), env(safe-area-inset-right));
  bottom: max(var(--sp-5), env(safe-area-inset-bottom));
  width: 48px;
  height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: var(--color-bg);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease),
              visibility var(--dur-base);
  -webkit-tap-highlight-color: transparent;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  filter: brightness(1.07);
  box-shadow: var(--shadow-lg);
}
.back-to-top:active {
  transform: translateY(1px) scale(0.98);
}
.back-to-top.is-visible:active {
  transform: translateY(1px) scale(0.98);
}
.back-to-top svg {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition-duration: 0.01ms !important;
  }
}

body.theme-light .back-to-top {
  border-color: rgba(100, 65, 30, 0.25);
  color: #1a1208;
}


/* ── 3. LAYOUT UTILITIES ──────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

@media (min-width: 768px)  { .container { padding-inline: var(--sp-8);  } }
@media (min-width: 1280px) { .container { padding-inline: var(--sp-10); } }


/* ── 4. BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--dur-base) var(--ease),
              color var(--dur-base) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-base) var(--ease);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg);
  box-shadow: 0 0 0 0 var(--color-accent-glow);
}
.btn--primary:hover {
  background: #d9bb80;
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-1px);
}

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

.btn--sm { padding: var(--sp-2) var(--sp-4); font-size: 0.8125rem; }


/* ── 5. SECTION HEADINGS ──────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
}
.section-title--center { text-align: center; margin-inline: auto; }

.section-title-group { display: flex; flex-direction: column; gap: var(--sp-1); }

.section-title__ja {
  display: block;
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: 700;
  color: var(--color-white);
}
.section-title__en {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 2vw, 0.9375rem);
  letter-spacing: 0.25em;
  color: var(--color-accent);
}

.section-subtitle {
  color: var(--color-muted);
  font-size: 0.9375rem;
  margin-top: var(--sp-2);
}

.section-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease);
  flex-shrink: 0;
}
.section-link:hover { color: #d9bb80; }


/* ── 6. HEADER ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  overflow-anchor: none;
}

/* Utility Bar */
.header-utility {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--sp-2);
}
.header-utility .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--color-surface-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 3px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              box-shadow var(--dur-base) var(--ease);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.lang-btn:hover {
  color: var(--color-white);
  background: rgba(255,255,255,0.06);
}
.lang-btn--active {
  background: var(--color-accent);
  color: var(--color-bg) !important;
  box-shadow: 0 1px 6px rgba(200,169,110,0.4);
}
/* Flag emoji: fixed size reads clearer than em-relative to small .lang-btn text */
.lang-flag {
  font-size: 1.25rem;
  line-height: 1;
}
.lang-code { line-height: 1; font-size: 0.75rem; }

/* Google Translate: hide native widget UI + notification bar */
#google_translate_element { display: none; }
.goog-te-banner-frame.skiptranslate { display: none !important; }
div.skiptranslate { display: none !important; }
body { top: 0 !important; }

/* Utility Navigation */
.utility-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.utility-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--color-muted);
  transition: color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.utility-link:hover { color: var(--color-white); }
.utility-link svg { flex-shrink: 0; }
.utility-link--cart {
  padding: 6px 13px;
  background: var(--color-accent);
  color: var(--color-bg);
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.utility-link--cart:hover { background: #d9bb80; color: var(--color-bg); }

/* Main Header */
.header-main { padding-block: var(--sp-3); transition: padding var(--dur-fast) var(--ease); }
.header-main .container {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--sp-4);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-10);
  flex-shrink: 0;
}

.site-logo { flex-shrink: 0; width: 150px; min-width: 150px; }
.site-logo img {
  width: 150px !important;
  height: auto !important;
  max-width: 150px !important;
  object-fit: contain;
  object-position: left center;
  background: transparent;
}


/* Search Form */
.header-search { flex: 1; min-width: 0; max-width: 480px; }
.search-inner {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  color-scheme: light;
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.search-inner:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent-glow);
}
.search-category {
  flex-shrink: 0;
  padding: 0 var(--sp-3);
  background: #c8a96e;
  border: none;
  border-right: 1px solid rgba(0,0,0,0.15);
  color: #121212;
  -webkit-text-fill-color: #121212;
  font-size: 0.8125rem;
  line-height: 1.35;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-category:focus { outline: none; color: #000000; }
.search-input {
  flex: 1;
  min-width: 0;
  padding: var(--sp-3) var(--sp-4);
  background: transparent;
  border: none;
  color: #1a1a1a;
  font-size: 0.875rem;
}
.search-input::placeholder { color: #999999; }
.search-input:focus { outline: none; }
.search-submit {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--sp-4);
  background: #c8a96e;
  color: #1a1a1a;
  transition: background var(--dur-fast) var(--ease);
}
.search-submit:hover { background: #d9bb80; }
.search-submit svg { display: block; }

/* Mobile Actions */
.header-mobile-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.mobile-cart-btn {
  display: none;
  color: var(--color-off-white);
  padding: var(--sp-2);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--color-surface-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  padding: 8px;
  transition: background var(--dur-fast) var(--ease);
}
.nav-hamburger:hover { background: var(--color-surface-2); }
.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-off-white);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease),
              opacity var(--dur-base) var(--ease);
  transform-origin: center;
}
/* CSS-only: checkbox drives X animation */
.nav-check:checked ~ .site-header .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-check:checked ~ .site-header .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-check:checked ~ .site-header .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* CSS-only: hidden checkboxes for drawer + accordion */
.nav-check,
.nav-cat-check { display: none; }

/* Scroll lock when drawer open */
body:has(.nav-check:checked) { overflow: hidden; }

/* ── NAV OVERLAY BACKDROP ── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 998;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.nav-check:checked ~ .nav-overlay { display: block; }

/* ── SIDE DRAWER ── */
.header-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--color-surface);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 999;
  transform: translateX(100%);
  transition: transform var(--dur-base) var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.nav-check:checked ~ .header-nav { transform: translateX(0); }

/* Drawer top bar */
.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
  width: 100%;
}
.nav-drawer-title {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
}
.nav-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-3);
  border: 1px solid var(--color-border);
  color: var(--color-off-white);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.nav-close-btn:hover { background: var(--color-surface-2); }

/* Nav list */
.nav-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: var(--sp-2) 0 var(--sp-6);
  flex: 1;
  width: 100%;
  max-width: 480px;
}
.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  width: 100%;
  padding: var(--sp-4) var(--sp-5);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  transition: color var(--dur-fast) var(--ease);
  cursor: pointer;
  background: none;
}
.nav-link:hover { color: var(--color-white); }
.nav-link--home { color: var(--color-accent); font-weight: 600; }
.nav-link--home:hover { color: #d9bb80; }

/* Category accordion &#8212; always expanded */
.nav-item--accordion { position: relative; }
.nav-accordion-toggle {
  border-bottom: 1px solid var(--color-border);
  cursor: default;
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
}
.nav-chevron { display: none; }
.nav-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  max-height: none;
  background: var(--color-bg);
}
.nav-category-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-5);
  font-size: 0.9375rem;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
  transition: color var(--dur-fast) var(--ease);
  text-align: center;
}
.nav-category-link:hover { color: var(--color-white); }

/* Two-level category nav accordion */
.nav-cat-item {
  display: flex;
  flex-direction: column;
}
.nav-cat-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--color-border);
}
.nav-cat-row .nav-category-link {
  flex: 1;
  border-bottom: none;
}
.nav-sub-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  flex-shrink: 0;
  background: none;
  border: none;
  border-left: 1px solid var(--color-border);
  color: var(--color-muted);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav-sub-toggle:hover {
  color: var(--color-white);
  background: var(--color-surface-2);
}
.nav-sub-toggle svg {
  transition: transform var(--dur-fast) var(--ease);
}
.nav-sub-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.nav-sub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--color-bg);
}
.nav-sub-link {
  display: block;
  padding: var(--sp-3) var(--sp-5) var(--sp-3) calc(var(--sp-5) + var(--sp-4));
  font-size: 0.8125rem;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  text-decoration: none;
}
.nav-sub-link::before {
  /* \2014 = em dash; escapes avoid UTF-8/HTML-entity breakage in admin pipelines */
  content: '\2014 ';
  color: var(--color-border);
}
.nav-sub-link:hover,
.nav-sub-link:focus-visible,
.nav-sub-link:active {
  color: var(--color-white);
  background: var(--color-surface-2);
  text-decoration: none;
}

/* Nav drawer shop info block */
.nav-shop-info {
  width: 100%;
  max-width: 480px;
  padding: var(--sp-5) var(--sp-5) var(--sp-8);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.nav-shop-info p {
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.6;
  text-align: center;
}
.nav-shop-info span {
  font-weight: 600;
  color: var(--color-off-white);
}
.nav-shop-info a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nav-shop-info a:hover {
  color: var(--color-white);
}


/* ── 15. FOOTER ───────────────────────────────────────────── */
.site-footer {
  margin-top: var(--sp-16);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}
.footer-main { padding-block: var(--sp-12) var(--sp-10); }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8) var(--sp-6);
}
.footer-col { display: flex; flex-direction: column; }

.footer-col__heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--sp-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--color-muted);
  transition: color var(--dur-fast) var(--ease),
              padding-left var(--dur-fast) var(--ease);
}
.footer-links a:hover { color: var(--color-white); padding-left: 4px; }

.footer-shop-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  padding: var(--sp-5);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.footer-shop-info p {
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.6;
}
.footer-shop-info span {
  font-weight: 600;
  color: var(--color-off-white);
}
.footer-shop-info a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-shop-info a:hover,
.footer-shop-info a:focus-visible {
  color: var(--color-white);
}

.footer-col__subheading {
  font-size: 0.8125rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: var(--sp-4);
}



/* FAQ in footer */
.footer-faq {
  margin-top: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.footer-faq__item {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--sp-5);
}

.footer-faq__q {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 var(--sp-3);
}

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

.footer-faq__a p {
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.75;
  margin: 0;
}

.footer-faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: 0;
  list-style: none;
}

.footer-faq__list li {
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.75;
  display: flex;
  gap: var(--sp-2);
  align-items: baseline;
}

.footer-faq__label {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 1px 6px;
  white-space: nowrap;
}

.footer-bottom {
  padding-block: var(--sp-5);
  border-top: 1px solid var(--color-border);
}
.footer-bottom .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  text-align: center;
}
.footer-copyright {
  font-size: 0.75rem;
  color: var(--color-muted);
  letter-spacing: 0.03em;
}
.footer-legal-nav { display: flex; gap: var(--sp-5); }
.footer-legal-nav a {
  font-size: 0.75rem;
  color: var(--color-muted);
  transition: color var(--dur-fast) var(--ease);
}
.footer-legal-nav a:hover { color: var(--color-white); }

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: none;
}

/* ── THEME TOGGLE BUTTON ──────────────────────────────────── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 14px;
  background: var(--color-surface-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.theme-toggle:hover {
  color: var(--color-white);
  border-color: var(--color-accent);
  background: var(--color-surface-2);
}
.theme-toggle__icon--light { display: none; }
.theme-toggle__icon--dark  { display: block; }

/* Utility bar: larger SVG icons (sun/moon, cart) &#8212; aligns with .lang-flag scale */
.header-utility .theme-toggle .theme-toggle__icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.header-utility .utility-link--cart svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* ── LIGHT THEME ──────────────────────────────────────────── */
body.theme-light {
  --color-bg:          #EDE5DB;
  --color-surface:     #E3D8CE;
  --color-surface-2:   #D0BDAC;
  --color-surface-3:   #BDAA98;
  --color-border:      rgba(100,65,30,0.18);
  --color-white:       #1E1008;
  --color-off-white:   #3D2515;
  --color-muted:       #7A6255;
  background: linear-gradient(135deg, #F8F2EC 0%, #EDE5DB 55%, #D0BDAC 100%) fixed;
}
body.theme-light body {
  background: transparent;
}
body.theme-light .page-content {
  background: transparent;
}
body.theme-light .site-header {
  background: rgba(237,229,219,0.96);
  border-bottom-color: rgba(100,65,30,0.2);
}
body.theme-light .header-utility {
  background: #E3D8CE;
  border-bottom-color: rgba(100,65,30,0.15);
}
body.theme-light .header-nav {
  background: #EDE5DB;
  color: #1E1008;
}
body.theme-light .nav-drawer-header,
body.theme-light .nav-list .nav-link,
body.theme-light .nav-category-link,
body.theme-light .nav-sub-link {
  color: #3D2515;
  border-bottom-color: rgba(100,65,30,0.15);
}
body.theme-light .nav-category-list,
body.theme-light .nav-sub-list {
  background: #F8F2EC;
}
body.theme-light .nav-cat-row { border-bottom-color: rgba(100,65,30,0.15); }
body.theme-light .nav-sub-toggle { border-left-color: rgba(100,65,30,0.15); color: #7A6255; }

/* Light theme: lang-switcher */
body.theme-light .lang-switcher {
  background: #F8F2EC;
  border-color: rgba(100,65,30,0.2);
}
body.theme-light .lang-btn:hover {
  background: rgba(100,65,30,0.08);
  color: #1E1008;
}

/* Footer: always keep dark-mode look regardless of theme */
body.theme-light .site-footer {
  --color-bg:        #0a0a0a;
  --color-surface:   #111111;
  --color-surface-2: #181818;
  --color-surface-3: #222222;
  --color-border:    rgba(255,255,255,0.08);
  --color-white:     #ffffff;
  --color-off-white: #e8e8e8;
  --color-muted:     #888888;
  --color-accent:    #c8a96e;
  --color-accent-dim:  #a08040;
  --color-accent-glow: rgba(200,169,110,0.18);
  background: var(--color-surface);
  border-top-color: var(--color-border);
  color: var(--color-off-white);
}

body.theme-light .theme-toggle__icon--light { display: block; }
body.theme-light .theme-toggle__icon--dark  { display: none; }
body.theme-light .theme-toggle__label { content: 'ダークモード'; }
body.theme-light .theme-toggle .theme-toggle__label::before { content: 'ダークモード'; }
body.theme-light .theme-toggle .theme-toggle__label { font-size: 0; }
body.theme-light .theme-toggle .theme-toggle__label::before { font-size: 0.75rem; }

body.theme-light .page-title__en {
  color: var(--color-muted);
}

/* ── PAGE CONTENT AREA (全ページ共通) ─────────────────────── */
.page-content {
  min-height: 60vh;
  padding-block: var(--sp-12) var(--sp-20);
  background: transparent;
}

.page-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--color-border);
}

.page-title__en {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--color-accent);
  margin-bottom: var(--sp-2);
}


/* ── RESPONSIVE &#8212; TABLET (&#8805; 640px) ───────────────────────── */
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-col--calendar { grid-column: 1; grid-row: 1; }
  .footer-col--contact  { grid-column: 1; grid-row: 2; }
  .footer-col--info     { grid-column: 1; grid-row: 3; }
  .footer-col--support  { grid-column: 2; grid-row: 1 / span 3; }
}

/* ── RESPONSIVE &#8212; DESKTOP (&#8805; 1024px) ─────────────────────── */
@media (min-width: 1024px) {
  :root { --header-h: 64px; }

  .header-mobile-actions { display: none; }
  .header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-8);
  }
  .header-brand { flex-shrink: 0; }
  .header-search { flex: 0 1 400px; }
  .mobile-cart-btn { display: none; }
  .nav-hamburger   { display: none; }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: var(--sp-8) var(--sp-8);
  }
  .footer-col--calendar { grid-column: 1; grid-row: 1; }
  .footer-col--contact  { grid-column: 1; grid-row: 2; }
  .footer-col--info     { grid-column: 1; grid-row: 3; }
  .footer-col--support  { grid-column: 2; grid-row: 1 / span 3; }
  .footer-bottom .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ── RESPONSIVE &#8212; MOBILE (<1024px) ───────────────────────── */
@media (max-width: 1023px) {
  .mobile-cart-btn { display: flex; }
  .nav-hamburger   { display: flex; }

  /* Hide non-cart utility links (they live in the drawer) */
  .utility-nav .utility-link:not(.utility-link--cart) { display: none; }

  /* ── Icon-only: hide all text labels in header-utility ── */
  .lang-code            { display: none; }
  .theme-toggle__label  { display: none; }
  .utility-link--cart span { display: none; }

  /* Icon-only row: larger flags, comfortable tap targets */
  .lang-flag {
    font-size: 1.45rem;
  }
  .lang-btn {
    padding: 8px 6px;
  }
  .theme-toggle {
    padding: 8px 10px;
  }
  .utility-link--cart {
    padding: 8px 11px;
  }

  .header-utility .theme-toggle .theme-toggle__icon {
    width: 1.45rem;
    height: 1.45rem;
  }
  .header-utility .utility-link--cart svg {
    width: 1.45rem;
    height: 1.45rem;
  }

  .header-main {
    padding-top: var(--sp-2);
    padding-bottom: 0;
  }
  .header-main .container {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: var(--sp-3);
    row-gap: var(--sp-1);
  }
  .site-logo {
    width: 122px;
    min-width: 122px;
  }
  .site-logo img {
    width: 122px !important;
    max-width: 122px !important;
  }
  .header-brand { grid-column: 1; grid-row: 1; }
  .header-mobile-actions { grid-column: 2; grid-row: 1; }
  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    margin-bottom: 0;
  }
  #productSearchForm {
    margin-bottom: 0;
  }
  /* Compact search strip; category still needs a minimum box for native <select> text */
  .search-inner .search-category {
    padding-block: 6px;
    min-height: 2.25rem;
    line-height: 1.25;
    box-sizing: border-box;
  }
  .search-inner .search-input {
    padding-block: 6px;
    padding-inline: var(--sp-3);
    line-height: 1.25;
  }
  .search-inner .search-submit {
    padding: 6px var(--sp-3);
  }
  .search-inner .search-submit svg {
    width: 18px;
    height: 18px;
  }
}

/* ── REDUCED MOTION ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── FOCUS VISIBLE (Accessibility) ───────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* &#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;
   BUSINESS CALENDAR  .section-calendar
&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552; */
.section-calendar {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-block: var(--sp-8) var(--sp-10);
}

.calendar-inner {
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
}

.calendar-heading {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: var(--sp-2);
}

.calendar-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-5);
}

.calendar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}

.tbl_calendar {
  width: 100%;
  border: none !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  font-size: 0.78rem;
  background: var(--color-surface-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.tbl_calendar th,
.tbl_calendar td {
  padding: 4px !important;
  text-align: center !important;
  border-bottom: 1px solid var(--color-border) !important;
  color: var(--color-off-white);
  line-height: 1.4;
}
.tbl_calendar th {
  background: rgba(255,255,255,0.05);
  color: var(--color-muted);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}
/* Sunday (1st col) = holiday red, Saturday (last col) = blue */
.tbl_calendar tr th:first-child,
.tbl_calendar tr td:first-child { color: #bd0416; font-weight: 600; }
.tbl_calendar tr th:last-child,
.tbl_calendar tr td:last-child  { color: #60a5fa; }

/* Two calendars side by side on PC */
.side_cal {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: flex-start;
}
.side_cal .tbl_calendar {
  flex: 1;
  min-width: 160px;
}

/* Calendar closed-day legend */
.footer-calendar-legend {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  font-size: 0.75rem;
  color: var(--color-off-white);
}
.legend-holiday {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #bd0416;
  border-radius: 2px;
  flex-shrink: 0;
}

.side_cal_memo {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: var(--sp-3);
  line-height: 1.6;
}

/* Light theme: calendar on black footer */
body.theme-light .tbl_calendar {
  background: rgba(255,255,255,0.08);
}
body.theme-light .tbl_calendar th,
body.theme-light .tbl_calendar td {
  border-bottom-color: rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.85);
}
body.theme-light .tbl_calendar th {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
}
body.theme-light .tbl_calendar tr th:first-child,
body.theme-light .tbl_calendar tr td:first-child { color: #bd0416; }
body.theme-light .tbl_calendar tr th:last-child,
body.theme-light .tbl_calendar tr td:last-child  { color: #60a5fa; }

@media (max-width: 600px) {
  .side_cal { gap: var(--sp-3); }
  .tbl_calendar th,
  .tbl_calendar td {
    font-size: 0.7rem;
    padding: 3px 1px !important;
  }
}


/* ── Shared: sk-page / sk-card (特定商取引 & お支払い方法・配送) ── */
.sk-page { padding-block: var(--sp-12); }

.sk-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: var(--sp-8);
}

/* Jump navigation (お支払い方法と配送方法・送料について) */
.sk-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.sk-jump-link {
  display: inline-block;
  padding: var(--sp-2) var(--sp-5);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.sk-jump-link:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* Payment & Delivery sections */
.sk-method-section {
  margin-top: var(--sp-10);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--color-border);
}
.sk-method-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.sk-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.03em;
  margin: 0 0 var(--sp-5) 0;
}

.sk-method-item {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--sp-2);
}
.sk-method-item:last-child { margin-bottom: 0; }

.sk-method-title {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-off-white);
  border-left: 3px solid var(--color-accent);
}

.sk-method-body {
  padding: var(--sp-2) var(--sp-4);
  background: #fff;
  border-top: 1px solid var(--color-border);
  color: #1a1a1a;
}

/* Normalize all payment/delivery images to uniform height */
/* !important needed to override colormekit.css/index.css `height: auto !important` */
.sk-method-body img,
.sk-method-note img {
  height: 36px !important;
  width: auto !important;
  object-fit: contain;
  vertical-align: middle;
  margin-right: var(--sp-2);
  margin-bottom: var(--sp-1);
}

/* Credit card logos: lay out horizontally, strip CMS <br> tags */
.sk-method-cards {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
}
.sk-method-cards table { display: contents; }
.sk-method-cards td { display: contents; }

/* Suppress <br> tags injected by CMS anywhere in the payment/delivery page */
.sk-page br { display: none; }

.sk-method-note {
  font-size: 0.875rem;
  color: #1a1a1a;
  margin-top: var(--sp-2);
}

