:root {
  --bg: #f7f3e8;
  --panel: #ffffff;
  --card: #ffffff;
  --card2: #fffdf7;
  --text: #23335c;
  --muted: #6b7a9c;
  --brand: #00a95e;
  --brand-dark: #008a4d;
  --brand-red: #e63946;
  --gold: #f5b301;
  --accent: #2ea8e0;
  --border: #e3dcc8;
  --shadow: 0 14px 40px -18px rgba(35, 51, 92, 0.35);
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --sans: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); min-height: 100vh; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section.wrap { padding-top: 64px; padding-bottom: 64px; }
.section { padding-top: 64px; }

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

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: 0.02em; white-space: nowrap; color: var(--text); }
.logo span { color: var(--brand-red); font-family: var(--mono); font-weight: 400; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #00c06a, #008a4d);
  display: grid; place-items: center; color: #fff; flex: none;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,0.25);
}
.logo-mark svg { width: 20px; height: 20px; }
.nav-links { display: flex; gap: 26px; flex: 1; justify-content: center; }
.nav-links a { font-size: 13.5px; font-weight: 600; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card2); border: 1px solid var(--border); color: var(--text);
  border-radius: 12px; padding: 9px 16px; cursor: pointer;
  font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  transition: border-color .2s, box-shadow .2s;
}
.cart-btn:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.cart-btn svg { width: 18px; height: 18px; }
.cart-count {
  background: var(--brand-red); color: #fff; width: 20px; height: 20px;
  border-radius: 50%; display: grid; place-items: center; font-size: 12px;
  font-family: var(--mono);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  padding-top: 72px !important; padding-bottom: 24px;
}
.hero .eyebrow, .section-head .eyebrow, .cta-panel .eyebrow {
  font-family: var(--mono); font-size: 12px; color: var(--brand-red); letter-spacing: 0.14em; margin-bottom: 14px; font-weight: 700;
}
.hero h1 { font-size: 54px; line-height: 1.04; letter-spacing: -0.02em; margin-bottom: 18px; font-weight: 800; color: var(--text); }
.hero h1 em { font-style: normal; color: var(--brand); }
.lead { color: var(--muted); font-size: 16.5px; line-height: 1.6; max-width: 520px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero-chips span { background: var(--card2); border: 1px dashed var(--border); border-radius: 999px; padding: 8px 14px; font-size: 12.5px; font-weight: 600; }

.go-badge {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(160deg, #ff6b3d, #e63946);
  color: #fff; font-family: var(--mono); font-weight: 800; font-size: 24px;
  box-shadow: 0 10px 26px -8px rgba(230, 57, 70, 0.6), inset 0 -4px 8px rgba(0,0,0,0.2);
  margin-bottom: 16px; letter-spacing: 0.02em;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 14.5px; font-weight: 700; padding: 13px 26px;
  border-radius: 12px; border: none; cursor: pointer; transition: all .2s;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: linear-gradient(160deg, #00c06a, #008a4d); color: #fff; box-shadow: 0 10px 26px -10px rgba(0, 169, 94, 0.7); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--brand); }

/* Hero visual */
.hero-visual { display: grid; place-items: center; }
.hero-frame {
  position: relative; width: 100%; max-width: 460px; aspect-ratio: 1 / 1.05;
  border-radius: 24px; overflow: hidden;
  border: 6px solid #fff; box-shadow: var(--shadow);
  background: var(--card);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-stamp {
  position: absolute; bottom: 14px; right: 14px;
  background: rgba(255,255,255,0.92); color: var(--text);
  font-family: var(--mono); font-weight: 800; font-size: 22px; line-height: 1;
  padding: 10px 14px; border-radius: 14px; text-align: center;
  border: 2px solid var(--gold);
  box-shadow: 0 8px 20px -8px rgba(0,0,0,0.4);
}
.hero-stamp small { display: block; font-size: 9px; letter-spacing: 0.14em; color: var(--muted); font-weight: 700; margin-top: 3px; }

/* ---------- TRUST BAR ---------- */
.trustbar { border-block: 1px solid var(--border); background: var(--panel); margin-top: 26px; }
.trust-inner { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; padding: 22px 24px; }
.trust-item { display: flex; gap: 12px; align-items: center; }
.trust-item svg { width: 24px; height: 24px; color: var(--brand); flex: none; }
.trust-item b { font-size: 13.5px; display: block; }
.trust-item span { font-size: 12px; color: var(--muted); }

/* ---------- SECTION HEADS ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-head h2 { font-size: 32px; letter-spacing: -0.02em; }

/* ---------- PARTNER CARDS ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.partner-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 26px 22px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.pc-pad {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 800; font-size: 20px; color: #fff; margin-bottom: 18px;
  box-shadow: inset 0 -4px 8px rgba(0,0,0,0.2);
}
.pc-pad.a { background: linear-gradient(160deg, #8b5cf6, #6d28d9); }
.pc-pad.b { background: linear-gradient(160deg, #2ea8e0, #1d6fb8); }
.pc-pad.c { background: linear-gradient(160deg, #f5b301, #e08a00); }
.pc-pad.d { background: linear-gradient(160deg, #00c06a, #00804a); }
.partner-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.partner-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ---------- PRODUCT GRID ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column; position: relative; --ac: #00a95e;
  box-shadow: var(--shadow); transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-5px); border-color: var(--ac); }
.thumb { height: 160px; position: relative; overflow: hidden; background: linear-gradient(135deg, #1f7a4d, #0d5c2b); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .thumb-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,26,16,0.55), transparent 55%); }
.thumb-label {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  background: rgba(255,255,255,0.94); color: var(--text);
  font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
  padding: 5px 10px; border-radius: 8px;
}
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  background: rgba(255,255,255,0.92); color: var(--brand-red);
  font-family: var(--mono); font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em;
  padding: 4px 10px; border-radius: 6px;
}
property-bar { display: block; }
.card-deed { display: block; height: 10px; background: var(--ac); }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-top-row { display: flex; justify-content: space-between; align-items: center; }
.cat-label { font-family: var(--mono); font-size: 10.5px; font-weight: 800; color: var(--ac); letter-spacing: 0.1em; text-transform: uppercase; }
.delivery-note { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.card h3 { font-size: 18px; letter-spacing: -0.01em; }
.tagline { color: var(--muted); font-size: 13.5px; line-height: 1.5; flex: 1; }
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price { font-family: var(--mono); font-size: 22px; font-weight: 700; }
.buy-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ac); color: #fff; border: none; border-radius: 12px;
  font-family: var(--sans); font-size: 14px; font-weight: 700; padding: 12px; cursor: pointer;
  transition: filter .2s;
}
.buy-btn svg { width: 16px; height: 16px; }
.buy-btn:hover { filter: brightness(1.1); }
.buy-btn:disabled { opacity: .6; cursor: default; }

/* ---------- STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.step-n {
  width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(160deg, #ff6b3d, #e63946); color: #fff;
  display: grid; place-items: center; font-family: var(--mono); font-weight: 800; font-size: 16px; margin-bottom: 16px;
}
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 13px; line-height: 1.55; }

/* ---------- CTA ---------- */
.cta-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(135deg, #0f7a4f, #0a5c39); color: #fff;
  border-radius: 22px; padding: 40px 44px; position: relative; overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(10, 92, 57, 0.7);
}
.cta-panel::after {
  content: "¥480k"; position: absolute; right: -10px; top: -18px; font-family: var(--mono);
  font-weight: 800; font-size: 92px; opacity: 0.12; letter-spacing: 0.02em;
}
.cta-panel h2 { font-size: 28px; margin-bottom: 8px; }
.cta-panel .muted { margin-bottom: 4px; color: rgba(255,255,255,0.8); }
.cta-panel .eyebrow { color: var(--gold); }
.cta-panel .btn-primary { background: var(--gold); color: #5c3a00; box-shadow: 0 10px 26px -10px rgba(245, 179, 1, 0.8); }
.cta-panel .go-badge { margin-bottom: 14px; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px;
  box-shadow: var(--shadow);
}
.faq-list summary { font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::after { content: "+"; font-family: var(--mono); color: var(--brand-red); font-size: 18px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 12px; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--border); background: var(--panel); margin-top: 20px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px;
  padding-top: 52px; padding-bottom: 44px;
}
.footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 14px; }
.footer-grid a { display: block; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.footer-grid a:hover { color: var(--text); }
.footer .muted { font-size: 13.5px; line-height: 1.6; margin-top: 14px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding: 22px 24px; font-size: 12.5px; color: var(--muted);
}
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

/* ---------- CART DRAWER ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(23, 32, 54, 0.5); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 90;
}
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: 400px; max-width: 92vw;
  background: var(--panel); border-left: 1px solid var(--border); z-index: 100;
  transform: translateX(105%); transition: transform .28s ease; display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { font-size: 15px; letter-spacing: 0.04em; }
.icon-btn { background: transparent; border: 1px solid var(--border); color: var(--muted); width: 34px; height: 34px; border-radius: 8px; cursor: pointer; }
.icon-btn:hover { color: var(--text); }
.drawer-items { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; }
.cart-empty { color: var(--muted); font-family: var(--mono); font-size: 13px; text-align: center; margin-top: 40px; line-height: 1.7; }
.cart-item { display: flex; gap: 12px; align-items: center; }
.ci-img { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; flex: none; overflow: hidden; }
.ci-img svg { width: 22px; height: 22px; }
.ci-img img { width: 100%; height: 100%; object-fit: cover; }
.ci-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ci-name { font-size: 13.5px; font-weight: 600; }
.ci-unit { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.ci-right { display: flex; align-items: center; gap: 10px; }
.qty { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty button { background: transparent; border: none; color: var(--text); width: 26px; height: 28px; cursor: pointer; font-size: 14px; }
.qty span { font-family: var(--mono); font-size: 12.5px; width: 22px; text-align: center; }
.ci-total { font-family: var(--mono); font-size: 13px; font-weight: 700; min-width: 52px; text-align: right; }
.ci-rm { background: transparent; border: none; color: var(--muted); cursor: pointer; font-size: 14px; }
.ci-rm:hover { color: var(--brand-red); }
.drawer-foot { border-top: 1px solid var(--border); padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.cart-details { display: flex; flex-direction: column; gap: 10px; }
.cfield { display: flex; flex-direction: column; gap: 4px; }
.cfield label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.cfield input {
  padding: 10px 12px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 13px; font-family: var(--sans); outline: none;
}
.cfield input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 169, 94, 0.15); }
.subtotal-row { display: flex; justify-content: space-between; font-size: 14px; letter-spacing: 0.04em; }
.subtotal-row strong { font-family: var(--mono); font-size: 18px; }
.btn.full { width: 100%; }

/* ---------- TOASTS ---------- */
.toast-wrap { position: fixed; bottom: 20px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 12px 18px; border-radius: 10px; font-size: 13px; font-weight: 600;
  background: var(--card2); border: 1px solid var(--border); border-left: 4px solid var(--brand); color: var(--text);
  animation: slideIn .3s ease;
}
.toast.err { border-left-color: var(--brand-red); }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 48px !important; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-chips { justify-content: center; }
  .hero-visual { order: -1; }
  .trust-inner { grid-template-columns: repeat(2,1fr); }
  .partner-grid { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 40px; }
  .steps { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .cta-panel { flex-direction: column; text-align: center; padding: 28px 22px; }
  .trust-inner { grid-template-columns: 1fr; }
}