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

:root {
  --cream: #f7f1e3;
  --cream-deep: #efe6d2;
  --washi: #faf6ec;
  --navy: #1a2744;
  --navy-soft: #2a3d66;
  --gold: #c9a227;
  --gold-bright: #e0bc4a;
  --gold-dim: #8a7020;
  --vermilion: #c23b22;
  --vermilion-soft: #e04a30;
  --ink: #1a1a1f;
  --muted: #5c5a55;
  --line: rgba(26,39,68,.14);
  --card: #fffdf8;
  --shadow: 0 10px 30px rgba(26,39,68,.12);
  --radius: 14px;
  --font: 'Noto Sans', system-ui, sans-serif;
  --font-jp: 'Noto Serif JP', serif;
  --font-brand: 'Cinzel', 'Noto Serif JP', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink);
  background:
    url('/img/sakura-tl.webp') left top / 180px no-repeat,
    url('/img/sakura-tr.webp') right top / 180px no-repeat,
    linear-gradient(180deg, var(--washi), var(--cream) 30%, var(--cream-deep));
  min-height: 100vh; line-height: 1.55;
}
a { color: var(--navy-soft); text-decoration: none; font-weight: 600; }
a:hover { color: var(--vermilion); }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; position: relative; z-index: 1; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(250,246,236,.9);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; padding: .65rem 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--navy); }
.brand img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-brand); letter-spacing: .05em; color: var(--navy); font-size: 1.05rem; }
.brand-text strong .gold-a { color: var(--gold); }
.brand-text span { font-family: var(--font-jp); font-size: .72rem; color: var(--vermilion); }
.nav { display: flex; flex-wrap: wrap; gap: .35rem .85rem; margin-left: auto; align-items: center; }
.nav a { color: var(--navy-soft); font-size: .9rem; font-weight: 600; }
.nav a:hover, .nav a.active { color: var(--vermilion); }
.ig-link { color: var(--vermilion) !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 1px solid var(--navy); background: var(--navy); color: #fff;
  padding: .55rem 1rem; border-radius: 999px; font-weight: 700; cursor: pointer; font-size: .9rem;
  transition: .2s ease;
}
.btn:hover { background: var(--navy-soft); color: #fff; transform: translateY(-1px); }
.btn-primary { background: var(--vermilion); border-color: #9a2e1a; color: #fff; }
.btn-primary:hover { background: var(--vermilion-soft); color: #fff; }
.btn-gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); border-color: var(--gold-dim); color: var(--navy); }
.btn-wa { background: #128C7E; border-color: #0e6b60; color: #fff; }
.btn-tg { background: #229ED9; border-color: #1a7eae; color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }

.hero { padding: 1.5rem 0 1rem; }
.hero-panel {
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  background: var(--card); box-shadow: var(--shadow);
}
.hero-top {
  display: grid; gap: 1.2rem; grid-template-columns: 1.2fr .8fr; align-items: center;
  padding: 1.6rem 1.6rem 1rem; position: relative;
}
.hero h1 {
  font-family: var(--font-brand); font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  margin: 0 0 .35rem; color: var(--navy); letter-spacing: .03em;
}
.hero .jp { font-family: var(--font-jp); color: var(--vermilion); font-size: 1.05rem; margin-bottom: .4rem; }
.hero .slogan { color: var(--muted); margin: 0 0 .4rem; font-weight: 600; }
.hero .tagline-jp { font-family: var(--font-jp); color: var(--navy-soft); margin: 0 0 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.hero-visual { justify-self: center; }
.hero-visual img { width: min(240px, 70vw); margin: 0 auto; border-radius: 12px; }
.hero-strip img { width: 100%; height: auto; display: block; }

.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin: 1.2rem 0;
}
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: .9rem .8rem; text-align: center; box-shadow: var(--shadow);
}
.feature strong { display: block; color: var(--navy); font-size: .92rem; margin-bottom: .2rem; }
.feature span { color: var(--muted); font-size: .78rem; }
.feature .ico { font-size: 1.4rem; margin-bottom: .25rem; }

.cat-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 1.2rem 0; }
.cat-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1rem;
  background: var(--card); text-align: center; color: var(--ink);
  transition: .2s ease; box-shadow: var(--shadow);
}
.cat-card:hover { border-color: var(--vermilion); transform: translateY(-2px); }
.cat-card strong { display: block; font-family: var(--font-jp); color: var(--navy); margin-bottom: .25rem; }
.cat-card span { color: var(--muted); font-size: .85rem; }

.section { margin: 2rem 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-head h2 {
  margin: 0; font-family: var(--font-jp); font-size: 1.35rem; color: var(--navy);
  display: flex; align-items: center; gap: .5rem;
}
.section-head h2::before { content: '◆'; color: var(--vermilion); font-size: .7rem; }
.divider-ink {
  height: 28px; margin: 1.2rem 0; opacity: .9;
  background: center / contain no-repeat url('/img/brush-accent.webp');
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .2s ease; position: relative; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.card:hover { border-color: var(--gold); transform: translateY(-3px); }
.card-media { aspect-ratio: 63/88; background: #111; position: relative; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: .75rem .8rem 1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.card-title { font-weight: 700; font-size: .95rem; color: var(--navy); line-height: 1.25; }
.card-meta { color: var(--muted); font-size: .78rem; }
.card-price { color: var(--vermilion); font-weight: 800; font-size: 1.05rem; margin-top: auto; }
.badge {
  display: inline-flex; align-items: center; padding: .15rem .45rem; border-radius: 6px;
  font-size: .7rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
}
.badge-nm, .badge-mint { background: #e5f6ea; color: #1d6b38; }
.badge-ex { background: #fff3d6; color: #8a6410; }
.badge-gd, .badge-good { background: #ffe8d6; color: #9a4a12; }
.badge-pl, .badge-played { background: #ffe0e0; color: #a12222; }
.badge-grade { background: #1a2744; color: var(--gold-bright); }
.badge-ganga { background: var(--vermilion); color: #fff; position: absolute; top: .5rem; left: .5rem; z-index: 2; }
.badge-auction { background: var(--navy); color: #9ec5ff; position: absolute; top: .5rem; right: .5rem; z-index: 2; }
.fav-btn {
  position: absolute; top: .45rem; right: .45rem; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,253,248,.9); color: var(--navy); cursor: pointer; font-size: 1rem;
}
.fav-btn.on { color: var(--vermilion); border-color: var(--vermilion); }
.countdown { font-variant-numeric: tabular-nums; color: var(--vermilion); font-weight: 700; font-size: .85rem; }

.filters {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem; margin-bottom: 1.2rem; box-shadow: var(--shadow);
}
.filters label, .form label { display: flex; flex-direction: column; gap: .25rem; font-size: .75rem; color: var(--muted); font-weight: 600; }
.filters input, .filters select, .form input, .form textarea, .form select {
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  border-radius: 10px; padding: .55rem .7rem; font: inherit;
}
.filters input:focus, .form input:focus, .form textarea:focus, .form select:focus {
  outline: 2px solid rgba(194,59,34,.35); border-color: var(--vermilion);
}

.detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.5rem; margin: 1.5rem 0 3rem; }
.detail-gallery {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; position: relative; box-shadow: var(--shadow);
}
.zoom-wrap { position: relative; overflow: hidden; border-radius: 10px; background: #111; cursor: crosshair; }
.zoom-wrap img.main { width: 100%; display: block; }
.zoom-lens {
  position: absolute; width: 140px; height: 140px; border: 2px solid var(--gold);
  border-radius: 50%; pointer-events: none; display: none;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.28); background-repeat: no-repeat;
}
.zoom-pane {
  display: none; position: absolute; top: 1rem; left: calc(100% + 12px); width: 320px; height: 320px;
  border: 1px solid var(--gold); border-radius: 12px; background: #000 no-repeat;
  z-index: 5; box-shadow: var(--shadow);
}
.thumbs { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.thumbs button { border: 1px solid var(--line); padding: 0; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; width: 64px; height: 88px; }
.thumbs button.active { border-color: var(--vermilion); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { margin: 0 0 .4rem; font-size: 1.7rem; color: var(--navy); }
.seller-box {
  margin-top: 1.2rem; padding: 1rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--cream);
}
.contact-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.price-lg { font-size: 1.8rem; color: var(--vermilion); font-weight: 800; }

.form { display: grid; gap: .8rem; max-width: 480px; }
.form-wide { max-width: 720px; }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; margin: 1rem 0; box-shadow: var(--shadow);
}
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: .55rem .4rem; border-bottom: 1px solid var(--line); text-align: left; }
.muted { color: var(--muted); }
.flash { padding: .7rem 1rem; border-radius: 10px; margin: .8rem 0; }
.flash-ok { background: #e5f6ea; color: #1d6b38; }
.flash-err { background: #ffe0e0; color: #a12222; }
.flash-info { background: #e8eef8; color: var(--navy); }

.trust {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 1rem 0;
}
.trust span {
  background: var(--navy); color: #fff; padding: .4rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
}

.footer {
  margin-top: 3rem; border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem;
  color: var(--muted); font-size: .85rem; text-align: center;
  background: linear-gradient(180deg, transparent, rgba(26,39,68,.04));
}
.footer .jp { font-family: var(--font-jp); color: var(--vermilion); font-size: 1rem; }
.footer .brandline { color: var(--navy); font-weight: 700; margin: .3rem 0; }

.sakura { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.petal {
  position: absolute; top: -20px; width: 10px; height: 10px; border-radius: 10px 0;
  background: radial-gradient(circle at 30% 30%, #ffb7c5, #e85a8c);
  opacity: .28; animation: fall linear infinite;
}
@keyframes fall { to { transform: translateY(110vh) rotate(360deg); } }

.lightbox {
  position: fixed; inset: 0; background: rgba(10,15,30,.88); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; max-width: 92vw; border-radius: 8px; box-shadow: var(--shadow); }

@media (max-width: 900px) {
  .hero-top, .detail, .features { grid-template-columns: 1fr; }
  .cat-nav { grid-template-columns: 1fr; }
  .zoom-pane { display: none !important; }
  body { background-image: none; background-color: var(--cream); }
}
