:root {
  /* Espresso & cream palette (refined) */
  --bg: #FAF5EC;
  --bg-warm: #EFE3D0;
  --ink: #2A1C12;
  --ink-soft: #5B4636;
  --ink-muted: #8C7560;
  --line: #E7D8C2;
  --accent: #6E4A30;       /* coffee */
  --accent-deep: #3A2618;  /* espresso */
  --highlight: #C97B3C;    /* caramel orange */
  --gold: #C9A567;         /* elegant gold (badges/dividers) */
  --cream: #F6ECDA;
  --danger: #B23636;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Noto Sans JP", -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.mono { font-family: "DM Mono", monospace; }

/* Display helpers (elegant serif / script-like italic) */
.display { font-family: "Noto Sans JP", sans-serif; font-weight: 700; letter-spacing: -0.01em; }
.display.italic, .script { font-family: "Noto Sans JP", sans-serif; font-style: italic; font-weight: 400; }

/* Header */
header.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.header-top { background: var(--accent-deep); color: var(--cream); padding: 8px 40px; font-size: 11px; letter-spacing: 0.1em; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
/* ロゴ+ナビ(左寄せ)/ アクション(右) */
.header-inner { padding: 14px 40px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.header-left { display: flex; align-items: center; gap: 40px; }
@media (max-width: 960px) { .header-left { gap: 24px; } }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo-img { height: 46px; width: auto; display: block; }
.logo-icon { width: 36px; height: 36px; flex-shrink: 0; }
.logo-text-group { line-height: 1.1; }
.logo-text-en { font-family: "Noto Sans JP", sans-serif; font-weight: 500; font-size: 13px; color: var(--ink-muted); letter-spacing: 0.02em; }
.logo-text-jp { font-family: "Noto Sans JP", sans-serif; font-weight: 500; font-size: 16px; letter-spacing: -0.01em; color: var(--ink); margin-top: 2px; }
.header-nav { display: flex; gap: 30px; font-size: 13px; font-weight: 500; }
.header-nav a { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: all 0.2s; white-space: nowrap; }
.header-nav a.active { border-bottom-color: var(--highlight); color: var(--ink); }
.header-nav a:hover { color: var(--accent); }
.header-right { display: flex; align-items: center; gap: 18px; }
.header-actions { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.header-actions a, .header-actions button { color: var(--ink-soft); text-decoration: none; display: flex; align-items: center; gap: 6px; background: none; border: none; font-family: inherit; font-size: inherit; cursor: pointer; padding: 0; }
.header-actions a:hover, .header-actions button:hover { color: var(--accent); }
.cart-badge { background: var(--highlight); color: var(--bg); font-size: 10px; border-radius: 50%; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.cart-badge.hidden { display: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--ink); padding: 6px; align-items: center; }
.mobile-menu { display: none; }
/* --- スマホ向けヘッダー --- */
@media (max-width: 860px) {
  .header-top { padding: 6px 14px; font-size: 10px; letter-spacing: 0.04em; justify-content: center; }
  .header-top .ht-notice { display: none; }
  .header-inner { gap: 10px; padding: 12px 16px; }
  .header-nav { display: none; }
  .logo-img { height: 40px; }
  .logo-text-jp { font-size: 14px; }
  .header-right { gap: 18px; }
  .header-actions { gap: 20px; }
  .header-actions .lbl { display: none; }
  .header-actions a, .header-actions button { padding: 4px; }
  .header-actions svg { width: 26px; height: 26px; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu.open { display: block; border-top: 1px solid var(--line); background: var(--bg); padding: 8px 16px 22px; }
  .mm-nav { display: flex; flex-direction: column; }
  .mm-nav a { display: flex; align-items: center; gap: 12px; padding: 16px 4px; font-size: 16px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
  .mm-nav a.active { font-weight: 700; }
  .mm-nav a svg { width: 22px; height: 22px; }
  .mm-heading { font-size: 12px; color: var(--ink-muted); letter-spacing: 0.06em; margin: 16px 4px 10px; }
  .mm-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .mm-cats a { display: block; text-align: center; padding: 15px 8px; font-size: 14px; color: var(--ink-soft); text-decoration: none; background: var(--cream); border: 1px solid var(--line); border-radius: 8px; }
  .mm-cats a:active { background: var(--bg-warm); }
}

/* はみ出し防止(スマホでの横スクロール崩れ対策) */
img, video, svg { max-width: 100%; }

/* --- スマホ向け 全体レイアウト調整 --- */
@media (max-width: 640px) {
  .page-wrap { padding-left: 18px !important; padding-right: 18px !important; }
  /* 2カラム系は1カラムに */
  .cart-layout, .co-layout { grid-template-columns: 1fr !important; }
  /* 広いテーブルは横スクロール可能に */
  .page-wrap table, .rec-table, .items-table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* sticky なサマリーはスマホでは通常配置に */
  .summary, .shop-sidebar { position: static !important; top: auto !important; }
}

/* Footer */
footer.site-footer { background: var(--accent-deep); color: var(--cream); padding: 56px 40px 28px; margin-top: 88px; }
@media (max-width: 640px) { footer.site-footer { padding: 40px 22px 24px; margin-top: 56px; } }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; padding-bottom: 32px; border-bottom: 1px solid rgba(246, 236, 218, 0.14); margin-bottom: 24px; }
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand-en { font-family: "Noto Sans JP", sans-serif; font-size: 13px; color: rgba(246, 236, 218, 0.6); margin-bottom: 4px; letter-spacing: 0.02em; }
.footer-brand { font-family: "Noto Sans JP", sans-serif; font-weight: 500; font-size: 18px; margin-bottom: 12px; }
.footer-tag { font-size: 12px; color: rgba(246, 236, 218, 0.6); line-height: 1.8; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(246, 236, 218, 0.5); margin: 0 0 16px; font-weight: 500; }
.footer-col a { display: block; color: var(--cream); text-decoration: none; font-size: 13px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold); }
.footer-copyright { max-width: 1280px; margin: 0 auto; text-align: center; font-size: 11px; color: rgba(246, 236, 218, 0.4); }

/* Drip divider (控えめ・上品): place at the top of a darker block; fill = upper section color */
.drip { display: block; width: 100%; height: 24px; line-height: 0; background-repeat: repeat-x; background-position: center top; background-size: 84px 24px; pointer-events: none; }
.drip-cream { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='24' viewBox='0 0 84 24'%3E%3Cg fill='%23FAF5EC'%3E%3Crect width='84' height='6'/%3E%3Ccircle cx='14' cy='15' r='5.5'/%3E%3Crect x='10.5' y='5' width='7' height='10'/%3E%3Ccircle cx='42' cy='18' r='6.5'/%3E%3Crect x='37.5' y='5' width='9' height='13'/%3E%3Ccircle cx='68' cy='13' r='5'/%3E%3Crect x='64.5' y='5' width='7' height='8'/%3E%3C/g%3E%3C/svg%3E"); }
.drip-espresso { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='24' viewBox='0 0 84 24'%3E%3Cg fill='%233A2618'%3E%3Crect width='84' height='6'/%3E%3Ccircle cx='14' cy='15' r='5.5'/%3E%3Crect x='10.5' y='5' width='7' height='10'/%3E%3Ccircle cx='42' cy='18' r='6.5'/%3E%3Crect x='37.5' y='5' width='9' height='13'/%3E%3Ccircle cx='68' cy='13' r='5'/%3E%3Crect x='64.5' y='5' width='7' height='8'/%3E%3C/g%3E%3C/svg%3E"); }

/* Frosted glass card (hero headline / soft callouts) */
.frost-card {
  background: rgba(255, 250, 243, 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 24px 60px rgba(58, 38, 24, 0.18);
  border-radius: 34px;
}
.frost-card.cloud { border-radius: 120px 120px 120px 120px / 78px 78px 78px 78px; }

/* Scallop / double-ring emblem (Tradition / Quality … 風のアイコン枠) */
.scallop-badge {
  width: 84px; height: 84px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold); color: var(--accent);
  position: relative; background: var(--cream); flex-shrink: 0;
}
.scallop-badge::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px dashed rgba(201, 165, 103, 0.65); }
.scallop-badge svg, .scallop-badge .ic { position: relative; z-index: 1; }

/* Eyebrow (section kicker) */
.eyebrow-gold { font-family: "DM Mono", monospace; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--highlight); }

/* Alerts */
.alert { display: none; margin-bottom: 20px; padding: 12px 14px; border-radius: 10px; font-size: 13px; line-height: 1.6; }
.alert.show { display: block; }
.alert-error { background: #FCEBEB; color: var(--danger); border: 1px solid #F5C6C6; }
.alert-success { background: #EEF3E9; color: #4B6B2E; border: 1px solid #D6E2C5; }
.alert-info { background: var(--cream); color: var(--ink-soft); border: 1px solid var(--line); }

/* Buttons (落ち着いた角丸長方形・影なし) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  background: var(--accent);
  color: var(--cream);
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-primary:hover:not(:disabled) { background: var(--accent-deep); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-secondary:hover { background: var(--accent); color: var(--cream); border-color: var(--accent); }
