@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;500;600&family=Noto+Sans+JP:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #f8f5f0;
  --bg-alt: #efe8de;
  --card: #ffffff;
  --text: #2a2521;
  --text-muted: #8a8078;
  --accent: #b17a5e;
  --accent-dark: #8f5f47;
  --line: #e4dcd0;
  --line-strong: #d3c7b7;
  --danger: #c15b4a;
  --success: #6b8f6a;
  --radius: 2px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  margin: 0 0 .6em;
  letter-spacing: .02em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
.center { text-align: center; }
.muted { color: var(--text-muted); }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 34px;
  border: 1px solid var(--text);
  background: var(--text);
  color: #fff;
  font-size: .85rem;
  letter-spacing: .1em;
  border-radius: var(--radius);
  transition: opacity .2s ease, transform .15s ease;
}
.btn:hover { opacity: .82; }
.btn:active { transform: translateY(1px); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-outline:hover { background: var(--text); color: #fff; opacity: 1; }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: .75rem; }
.btn[disabled] { opacity: .35; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,245,240,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; max-width: var(--maxw); margin: 0 auto;
}
.logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  letter-spacing: .06em;
  font-weight: 600;
}
.nav-main { display: none; gap: 34px; }
.nav-main a {
  font-size: .82rem; letter-spacing: .08em;
  padding: 4px 0; border-bottom: 1px solid transparent;
}
.nav-main a:hover, .nav-main a.active { border-color: var(--accent); color: var(--accent-dark); }
.header-icons { display: flex; align-items: center; gap: 18px; }
.icon-btn { position: relative; font-size: 1.05rem; line-height: 1; }
.badge {
  position: absolute; top: -8px; right: -10px;
  background: var(--accent); color: #fff;
  font-size: .6rem; font-weight: 600;
  min-width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}
.hamburger { display: flex; flex-direction: column; gap: 4px; background: none; border: none; padding: 6px; }
.hamburger span { width: 20px; height: 1.5px; background: var(--text); display: block; }

.mobile-nav {
  display: none;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  padding: 8px 24px 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9rem; letter-spacing: .05em; }

@media (min-width: 860px) {
  .nav-main { display: flex; }
  .hamburger { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 20%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,16,12,.55) 0%, rgba(20,16,12,.05) 55%);
}
.hero-content {
  position: relative; z-index: 2; color: #fff;
  padding: 0 24px 64px; max-width: var(--maxw); margin: 0 auto; width: 100%;
}
.hero-content .eyebrow { color: #f0d9c8; }
.hero-content h1 { font-size: clamp(2rem, 5vw, 3.4rem); color: #fff; max-width: 640px; }
.hero-content p { max-width: 460px; color: #f1ece4; margin-bottom: 28px; }

/* ---------- Product grid ---------- */
.grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 36px 26px; } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.product-card { display: block; }
.product-thumb {
  position: relative; overflow: hidden; background: var(--bg-alt);
  aspect-ratio: 3/4; margin-bottom: 14px;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent); color: #fff;
  font-size: .65rem; letter-spacing: .08em;
  padding: 4px 9px; border-radius: var(--radius);
}
.fav-btn {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--text-muted);
}
.fav-btn.active, .fav-btn:hover { color: var(--danger); }
.product-name { font-size: .88rem; margin-bottom: 4px; }
.product-price { font-size: .88rem; color: var(--accent-dark); font-weight: 600; }
.product-colors { display: flex; gap: 5px; margin-top: 8px; }
.swatch-dot {
  width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12);
}

/* ---------- Section headers ---------- */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 36px; gap: 20px; flex-wrap: wrap;
}
.section-head h2 { margin: 0; font-size: 1.7rem; }

/* ---------- Category strip ---------- */
.cat-strip { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
@media (min-width: 700px) { .cat-strip { grid-template-columns: repeat(4,1fr); } }
.cat-card {
  position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--bg-alt);
  display: flex; align-items: flex-end; padding: 18px;
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-card::after { content:""; position:absolute; inset:0; background: linear-gradient(0deg, rgba(20,16,12,.6), transparent 60%); }
.cat-card span { position: relative; z-index: 2; color: #fff; font-family: 'Noto Serif JP', serif; letter-spacing: .04em; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .78rem; color: var(--text-muted); padding: 18px 0; }
.breadcrumb a:hover { color: var(--accent-dark); }

/* ---------- Product detail ---------- */
.pd-layout { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .pd-layout { grid-template-columns: 1.1fr .9fr; } }
.pd-gallery-main { aspect-ratio: 4/5; overflow: hidden; background: var(--bg-alt); margin-bottom: 12px; }
.pd-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; }
.pd-thumbs button { width: 72px; aspect-ratio: 4/5; padding: 0; border: 1px solid var(--line); background: none; overflow: hidden; opacity: .6; }
.pd-thumbs button.active { opacity: 1; border-color: var(--accent); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd-info h1 { font-size: 1.6rem; margin-bottom: 8px; }
.pd-price { font-size: 1.2rem; color: var(--accent-dark); font-weight: 600; margin-bottom: 18px; }
.pd-rating { font-size: .8rem; color: var(--text-muted); margin-bottom: 20px; }
.option-block { margin-bottom: 24px; }
.option-label { font-size: .78rem; letter-spacing: .05em; margin-bottom: 10px; display: flex; justify-content: space-between; }
.color-options { display: flex; gap: 10px; }
.color-dot {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent;
  box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer;
}
.color-dot.selected { border-color: var(--accent); }
.size-options { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn {
  min-width: 46px; height: 42px; padding: 0 10px; border: 1px solid var(--line-strong);
  background: #fff; font-size: .82rem;
}
.size-btn.selected { background: var(--text); color: #fff; border-color: var(--text); }
.size-btn[disabled] { color: var(--line-strong); text-decoration: line-through; cursor: not-allowed; }
.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.qty-stepper { display: flex; border: 1px solid var(--line-strong); }
.qty-stepper button { width: 38px; height: 42px; border: none; background: none; font-size: 1rem; }
.qty-stepper span { width: 40px; display: flex; align-items: center; justify-content: center; border-left: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); }
.pd-actions { display: flex; gap: 10px; margin-bottom: 28px; }
.pd-actions .btn { flex: 1; }
.pd-actions .fav-btn { position: static; width: 50px; height: 50px; border: 1px solid var(--line-strong); background: #fff; border-radius: var(--radius); }

.tabs { border-top: 1px solid var(--line); margin-top: 20px; }
.tab-heads { display: flex; gap: 24px; border-bottom: 1px solid var(--line); }
.tab-head { padding: 14px 0; font-size: .82rem; letter-spacing: .04em; color: var(--text-muted); border-bottom: 2px solid transparent; background: none; border-top: none; border-left: none; border-right: none; }
.tab-head.active { color: var(--text); border-color: var(--accent); }
.tab-panel { display: none; padding: 22px 0; font-size: .88rem; color: var(--text-muted); }
.tab-panel.active { display: block; }

/* ---------- Cart ---------- */
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item img { width: 84px; aspect-ratio: 4/5; object-fit: cover; }
.cart-item-name { font-size: .9rem; margin-bottom: 4px; }
.cart-item-meta { font-size: .76rem; color: var(--text-muted); margin-bottom: 8px; }
.cart-item-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.remove-link { font-size: .74rem; color: var(--text-muted); border-bottom: 1px solid var(--line-strong); }
.remove-link:hover { color: var(--danger); }

.summary-box { background: var(--card); border: 1px solid var(--line); padding: 26px; }
.summary-row { display: flex; justify-content: space-between; font-size: .86rem; padding: 8px 0; }
.summary-row.total { font-size: 1.05rem; font-weight: 600; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; }
.coupon-row { display: flex; gap: 8px; margin: 16px 0; }
.coupon-row input { flex: 1; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .78rem; letter-spacing: .04em; margin-bottom: 7px; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line-strong);
  background: #fff; border-radius: var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 1px solid var(--accent); border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--text-muted); }

.form-card { background: var(--card); border: 1px solid var(--line); padding: 32px; }
.card-icons { display: flex; gap: 8px; }
.card-icons span {
  font-size: .62rem; letter-spacing: .04em; border: 1px solid var(--line-strong);
  padding: 4px 8px; border-radius: 3px; color: var(--text-muted);
}

/* ---------- Steps ---------- */
.steps { display: flex; justify-content: center; gap: 8px; margin-bottom: 44px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--text-muted); }
.step-num { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-size: .72rem; }
.step.active { color: var(--text); }
.step.active .step-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.step-sep { width: 26px; height: 1px; background: var(--line-strong); }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.table th, .table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.table th { font-weight: 500; color: var(--text-muted); font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; }
.status-pill { display: inline-block; padding: 3px 11px; border-radius: 20px; font-size: .72rem; }
.status-shipped { background: #e6efe5; color: var(--success); }
.status-processing { background: #fbf1de; color: #a9762f; }
.status-cancelled { background: #f7e8e5; color: var(--danger); }

/* ---------- Auth / mypage tabs ---------- */
.auth-box { max-width: 420px; margin: 0 auto; }
.auth-toggle { display: flex; border: 1px solid var(--line-strong); margin-bottom: 32px; }
.auth-toggle button { flex: 1; padding: 14px; background: none; border: none; font-size: .85rem; letter-spacing: .05em; }
.auth-toggle button.active { background: var(--text); color: #fff; }
.auth-panel { display: none; }
.auth-panel.active { display: block; }

.mypage-layout { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .mypage-layout { grid-template-columns: 220px 1fr; } }
.mypage-side a { display: block; padding: 12px 0; font-size: .85rem; border-bottom: 1px solid var(--line); }
.mypage-side a.active { color: var(--accent-dark); font-weight: 600; }
.mypage-tab { display: none; }
.mypage-tab.active { display: block; }
.avatar-block { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.avatar-circle { width: 54px; height: 54px; border-radius: 50%; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; font-family: 'Noto Serif JP', serif; color: var(--accent-dark); font-size: 1.1rem; }

/* ---------- Admin ---------- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
  width: 224px; background: #211d19; color: #efe8de; flex-shrink: 0;
  padding: 24px 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: none;
}
.admin-side .logo { color: #fff; margin-bottom: 34px; display: block; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; font-size: .84rem;
  color: #cfc4b6; border-radius: var(--radius); margin-bottom: 2px;
}
.admin-nav a.active, .admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav .group-label { font-size: .68rem; letter-spacing: .1em; color: #8a7f70; margin: 18px 0 6px; text-transform: uppercase; }
.admin-main { flex: 1; padding: 28px 20px 60px; min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; flex-wrap: wrap; gap: 12px; }
.admin-topbar h1 { font-size: 1.3rem; margin: 0; }
.stat-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-bottom: 30px; }
@media (min-width: 760px) { .stat-cards { grid-template-columns: repeat(4,1fr); } }
.stat-card { background: var(--card); border: 1px solid var(--line); padding: 18px; }
.stat-card .label { font-size: .72rem; color: var(--text-muted); letter-spacing: .05em; margin-bottom: 8px; }
.stat-card .value { font-family: 'Noto Serif JP', serif; font-size: 1.5rem; }
.stat-card .delta { font-size: .74rem; color: var(--success); margin-top: 6px; }
.stat-card .delta.down { color: var(--danger); }
.panel { background: var(--card); border: 1px solid var(--line); padding: 22px; margin-bottom: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.panel-head h2 { font-size: 1rem; margin: 0; }
.stock-bar { width: 80px; height: 6px; background: var(--bg-alt); border-radius: 4px; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 8px; }
.stock-bar span { display: block; height: 100%; background: var(--success); }
.stock-bar.low span { background: var(--danger); }
.thumb-sm { width: 42px; height: 52px; object-fit: cover; }
@media (min-width: 900px) { .admin-side { display: block; } .admin-hamburger { display: none; } }

/* ---------- About ---------- */
.about-hero { position: relative; height: 56vh; min-height: 340px; overflow: hidden; }
.about-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.split img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.value-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 700px) { .value-grid { grid-template-columns: repeat(3,1fr); } }
.value-item .num { font-family: 'Noto Serif JP', serif; font-size: 1.6rem; color: var(--accent); margin-bottom: 10px; display: block; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--bg-alt); padding: 60px 24px; text-align: center; }
.newsletter-form { display: flex; max-width: 420px; margin: 24px auto 0; gap: 8px; }
.newsletter-form input { flex: 1; padding: 13px 14px; border: 1px solid var(--line-strong); }

/* ---------- Footer ---------- */
.site-footer { background: #211d19; color: #cfc4b6; padding: 64px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; margin-bottom: 46px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: .8rem; letter-spacing: .08em; margin-bottom: 16px; }
.footer-grid a, .footer-grid p { font-size: .82rem; color: #b3a798; display: block; margin-bottom: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-logo { color: #fff; font-family: 'Noto Serif JP', serif; font-size: 1.4rem; margin-bottom: 14px; display: block; }
.trust-badges { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.trust-badges span { border: 1px solid #443c33; font-size: .64rem; padding: 4px 9px; border-radius: 3px; color: #a89b8b; }
.footer-bottom { border-top: 1px solid #3a332b; padding-top: 22px; font-size: .74rem; color: #8a7f70; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--text); color: #fff; padding: 13px 26px; border-radius: var(--radius);
  font-size: .82rem; opacity: 0; pointer-events: none; transition: all .3s ease; z-index: 500;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); margin: 48px 0; }
.pill { display: inline-block; font-size: .7rem; letter-spacing: .05em; border: 1px solid var(--line-strong); padding: 5px 12px; border-radius: 20px; margin: 3px; }
.pill.active { background: var(--text); color: #fff; border-color: var(--text); }
.empty-state { text-align: center; padding: 90px 20px; }
.empty-state .icon { font-size: 2.4rem; margin-bottom: 16px; }
