/* promptkami — Kyoto craft aesthetic: wabi-sabi restraint, no frameworks, no build step */

:root {
  --bg: #121110;          /* warm sumi ink */
  --bg-soft: #171512;
  --panel: #1a1712;
  --panel-2: #211c15;
  --border: #383026;      /* hairline, warm */
  --text: #f1ece1;        /* ivory / bone */
  --muted: #a89e8b;
  --vermillion: #c8402a;  /* shu-iro 朱色 */
  --vermillion-deep: #96291a;
  --gold: #b9975b;        /* muted brushed gold */
  --radius: 10px;
  --maxw: 1080px;
  --serif: "Cormorant Garamond", "Noto Serif JP", "Songti SC", "Hiragino Mincho ProN", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* subtle washi-paper grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: 0.045em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.85rem 1.5rem;
  background: rgba(18, 17, 16, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  font-family: var(--serif); font-weight: 600; font-size: 1.2rem;
  letter-spacing: 0.1em; white-space: nowrap; color: var(--text);
  display: inline-flex; align-items: center; gap: 0.55rem;
}

/* hanko seal mark — meaningful character only */
.seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.7em; height: 1.7em; border-radius: 4px;
  background: var(--vermillion); color: #f7f2e6;
  font-family: "Noto Serif JP", "Songti SC", serif; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0; line-height: 1;
}

.site-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.site-nav a { color: var(--muted); font-size: 0.92rem; letter-spacing: 0.04em; transition: color 0.15s ease; }
.site-nav a:hover { color: var(--text); }

.lang-wrap { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--muted); }
.lang-wrap select {
  background: var(--panel); color: var(--text);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 0.35rem 0.5rem; font-size: 0.85rem; cursor: pointer;
  font-family: var(--sans);
}

/* ---------- layout ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4.5rem 0 1rem; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 { font-size: 2.1rem; }
.section-head h2::after {
  content: ""; display: block; width: 44px; height: 2px; margin: 0.9rem auto 0;
  background: var(--vermillion);
}
.section-head p { color: var(--muted); margin-top: 0.9rem; }
.kicker {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--vermillion); margin-bottom: 0.9rem;
  font-weight: 600;
}
.effect { font-size: 1.12rem; color: var(--text); font-family: var(--serif); letter-spacing: 0.03em; }

/* ---------- hero ---------- */
.hero { position: relative; text-align: center; padding: 4.5rem 0 4rem; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; }
.hero-logo {
  width: min(300px, 62vw); height: auto; border-radius: 12px;
  margin-bottom: 1.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.pill {
  display: inline-block; padding: 0.32rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--panel);
  font-size: 0.82rem; letter-spacing: 0.14em; color: var(--gold); margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.25;
  max-width: 22ch; margin: 0 auto; font-weight: 500;
}
.lede { color: var(--muted); max-width: 56ch; margin: 1.4rem auto 0; font-size: 1.05rem; }
.hero-ctas { display: flex; gap: 0.9rem; justify-content: center; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 380px; z-index: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(200, 64, 42, 0.10), transparent 62%);
  pointer-events: none;
}

/* anchored sections clear the sticky header on jump */
section[id] { scroll-margin-top: 88px; }

/* ---------- today's free capture strip ---------- */
.free-strip {
  margin: 0 -1.5rem; /* full-bleed inside main's padding */
  padding: 2.1rem 1.5rem;
  background: var(--bg-soft);
  border-top: 2px solid var(--vermillion);
  border-bottom: 2px solid var(--vermillion);
}
.free-strip-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap;
}
/* larger hanko seal for the strip */
.seal-lg { width: 3.1em; height: 3.1em; font-size: 1.05rem; border-radius: 6px; flex: none; }
.free-head { flex: 1 1 220px; }
.free-head h2 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.5rem; }
.free-head h2 .seal { flex: none; }
.free-head p { color: var(--muted); margin-top: 0.35rem; font-size: 0.98rem; }
.free-strip-cta { flex: 1 1 300px; max-width: 560px; }
.free-strip-cta .fine { margin-top: 0.55rem; }

/* ---------- free modal: email gate -> instant prompt ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 8, 6, 0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative; width: 100%; max-width: 520px;
  max-height: 88vh; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem 1.75rem;
}
.modal-x {
  position: absolute; top: 0.6rem; right: 0.9rem;
  background: none; border: none; color: var(--muted);
  font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 0.2rem;
}
.modal-x:hover { color: var(--text); }
.modal h3 { font-size: 1.3rem; margin-bottom: 0.5rem; padding-right: 1.5rem; }
.modal p { color: var(--muted); font-size: 0.95rem; }
.modal form { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1.1rem; }
.modal input[type="email"] {
  width: 100%; padding: 0.8rem 1rem; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 1rem; font-family: var(--sans);
}
.modal input[type="email"]::placeholder { color: var(--muted); }
.modal input[type="email"]:focus { outline: none; border-color: var(--vermillion); }
.modal form .btn { width: 100%; }
.modal .fine { margin-top: 0.9rem; text-align: center; }
.prompt-box {
  margin: 1.1rem 0; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); padding: 1rem 1.1rem;
  max-height: 300px; overflow-y: auto;
}
.prompt-box pre {
  white-space: pre-wrap; word-break: break-word;
  font-size: 0.85rem; line-height: 1.65; color: var(--text);
  font-family: inherit; margin: 0;
}
#copyPromptBtn { width: 100%; }
.btn-free { width: 100%; font-size: 1.05rem; padding: 0.95rem 1.8rem; }

/* email capture form */
.free-form { display: flex; gap: 0.6rem; }
.free-form input[type="email"] {
  flex: 1 1 200px; min-width: 0;
  padding: 0.8rem 1rem; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 1rem; font-family: var(--sans);
}
.free-form input[type="email"]::placeholder { color: var(--muted); }
.free-form input[type="email"]:focus { outline: none; border-color: var(--vermillion); }
.free-form .btn { flex: none; white-space: nowrap; }
.free-note { margin-top: 0.6rem; font-size: 0.92rem; color: var(--muted); }
.free-done { margin-top: 0.6rem; font-size: 0.95rem; color: var(--gold); }

/* free preview visual */
.free-visual {
  position: relative; flex: 0 0 230px; max-width: 260px;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
}
.free-img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.free-visual .preview-tag { position: absolute; left: 0.7rem; bottom: 0.7rem; }
.free-badge {
  position: absolute; top: 0.7rem; right: 0.7rem;
  background: var(--vermillion); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  padding: 0.35rem 0.7rem; border-radius: 6px;
}
.modal-upsell { margin-top: 0.7rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 0.8rem 1.8rem; border-radius: 8px;
  font-weight: 600; font-size: 0.98rem; letter-spacing: 0.03em;
  cursor: pointer; border: 1px solid transparent; font-family: var(--sans);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--vermillion); color: #faf6ec; }
.btn-primary:hover { background: var(--vermillion-deep); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-small {
  padding: 0.5rem 1.15rem; font-size: 0.88rem;
  background: transparent; border: 1px solid var(--border); color: var(--text);
}
.btn-small:hover { border-color: var(--vermillion); color: var(--text); }
.btn-block { display: block; text-align: center; margin-top: 1.25rem; }

/* ---------- today's drop ---------- */
.drop-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.25rem;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; align-items: center;
}
.drop-info h3 { margin: 1.4rem 0 0.7rem; font-size: 1.15rem; }
.check-list { list-style: none; display: grid; gap: 0.55rem; color: var(--muted); }
.check-list li::before { content: "✓ "; color: var(--vermillion); font-weight: 700; }
.drop-buy { margin-top: 1.6rem; display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.drop-price .price { font-size: 1.9rem; font-weight: 600; font-family: var(--serif); color: var(--text); }
.per { color: var(--muted); font-size: 0.88rem; margin-left: 0.35rem; }
.fine { color: var(--muted); font-size: 0.84rem; width: 100%; }

/* preview placeholders — swap these divs for real <img> later */
.preview {
  border-radius: 8px; min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); position: relative; overflow: hidden;
  background: var(--panel);
}
.preview-tag {
  font-size: 0.76rem; letter-spacing: 0.26em; color: rgba(241, 236, 225, 0.8);
  background: rgba(0, 0, 0, 0.5); padding: 0.55rem 1.1rem; border-radius: 6px;
  border: 1px solid rgba(241, 236, 225, 0.16);
}
.preview img, .preview video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ---------- archive cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pack-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.pack-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.pack-card .preview { min-height: 190px; border: none; border-radius: 0; }
.pack-body { padding: 1.35rem; }
.pack-body h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.pack-body p { color: var(--muted); font-size: 0.92rem; min-height: 2.9em; }
.pack-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1.1rem; }
.price { font-weight: 600; font-size: 1.25rem; font-family: var(--serif); }

/* ---------- pricing tiers ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.tier {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.9rem; position: relative;
  display: flex; flex-direction: column;
}
.tier h3 { font-size: 1.3rem; }
.tier-desc { color: var(--muted); font-size: 0.94rem; margin: 0.3rem 0 1.1rem; }
.tier-price { margin-bottom: 1.3rem; }
.tier-price .price { font-size: 2.2rem; color: var(--vermillion); }
.tier .check-list { flex: 1; }
.tier-highlight { border: 1px solid var(--vermillion); }
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--vermillion); color: #faf6ec;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em;
  padding: 0.32rem 0.95rem; border-radius: 4px; white-space: nowrap;
}

/* ---------- faq ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 0.9rem; }
.faq-list details {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.15rem 1.45rem;
}
.faq-list summary { cursor: pointer; font-weight: 600; list-style: none; font-family: var(--serif); font-size: 1.06rem; letter-spacing: 0.03em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--vermillion); font-size: 1.35rem; line-height: 1; font-family: var(--sans); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { color: var(--muted); margin-top: 0.7rem; }

/* ---------- footer ---------- */
.site-footer {
  text-align: center; padding: 3.5rem 1.5rem 2.5rem;
  border-top: 1px solid var(--border); margin-top: 4rem; color: var(--muted);
}
.site-footer .brand { font-size: 1rem; justify-content: center; }
.site-footer p { margin-top: 0.6rem; font-size: 0.92rem; }
.site-footer .fine { font-size: 0.82rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .drop-card { grid-template-columns: 1fr; }
  .card-grid, .tier-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .lang-label { display: none; }
  .section { padding: 3rem 0 0.5rem; }
  .hero { padding: 1.75rem 0 1.4rem; }
  .hero-logo { width: min(112px, 30vw); margin-bottom: 0.9rem; }
  .pill { margin-bottom: 0.85rem; }
  .hero h1 { font-size: 1.62rem; }
  .lede { margin-top: 0.7rem; font-size: 0.95rem; }
  .hero-ctas { margin-top: 1.3rem; }
  .hero-ctas .btn { padding: 0.8rem 1.25rem; font-size: 0.95rem; }
  .free-strip { padding: 1.25rem 1.25rem; }
  .free-strip-inner { flex-direction: column; align-items: stretch; text-align: center; gap: 0.9rem; }
  .free-visual { order: 1; flex: none; width: 100%; max-width: 100%; }
  .free-img { aspect-ratio: 16 / 9; }
  .free-head { order: 2; flex: none; }
  .free-head h2 { justify-content: center; font-size: 1.32rem; }
  .free-head p { font-size: 0.88rem; margin-top: 0.25rem; }
  .free-strip-cta { order: 3; flex: none; max-width: none; width: 100%; }
  .free-form { flex-direction: column; }
  .free-form .btn { width: 100%; }
  .free-strip-cta .btn { width: 100%; }
}
