/* =====================================================================
   JAPAN TREASURE FINDER — STYLESHEET
   Design tokens are declared once below. Edit colors, type, and spacing
   from this single block to restyle the whole page.
   ===================================================================== */

:root {
  /* --- Color tokens ------------------------------------------------- */
  --bg:        #F7F3EC;   /* washi cream — page background        */
  --bg-alt:    #F1ECE1;   /* slightly deeper cream for alt sections */
  --ink:       #232220;   /* sumi black — primary text             */
  --ink-soft:  #5B5650;   /* warm grey — secondary text             */
  --indigo:    #1F3A5F;   /* kon-iro deep indigo — primary accent   */
  --indigo-dk: #15293F;   /* hover/pressed state                    */
  --gold:      #A9824C;   /* aged brass — quiet highlight            */
  --moss:      #6B7B5E;   /* tea green — secondary accent            */
  --seal:      #9B3A2E;   /* hanko vermilion — stamp motif only      */
  --line:      #DDD4C2;   /* hairline borders                        */
  --white:     #FFFFFF;

  /* --- Type tokens ---------------------------------------------------- */
  --font-display: "Iowan Old Style", "Palatino Linotype", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --font-body: -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Helvetica, Arial, sans-serif;

  /* --- Layout tokens --------------------------------------------------- */
  --container: 1140px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 8px 28px rgba(35, 34, 32, 0.06);
  --section-pad: clamp(64px, 9vw, 120px);
}

/* --------------------------------------------------------------------- */
/* Reset                                                                  */
/* --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------- */
/* Hanko / seal motif — the page's signature element                     */
/* --------------------------------------------------------------------- */
.hanko-ring {
  fill: none;
  stroke: var(--seal);
  stroke-width: 3.5;
}
.hanko-ring-outer { stroke-width: 2; opacity: 0.55; }
.hanko-glyph {
  font-family: var(--font-display);
  fill: var(--seal);
  text-anchor: middle;
  font-size: 38px;
}
.hanko-glyph-large { font-size: 78px; }
.hanko-glyph-small { font-size: 30px; }

.brand-mark {
  width: 44px;
  height: auto;
  display: block;
}
.hanko-large { width: clamp(160px, 22vw, 240px); height: auto; }
.hanko-step { width: 56px; height: 56px; flex-shrink: 0; }
.hanko-final { width: 64px; height: 64px; margin: 0 auto 20px; }

/* --------------------------------------------------------------------- */
/* Header                                                                 */
/* --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
}
.site-nav a { text-decoration: none; color: var(--ink-soft); }
.site-nav a:hover { color: var(--indigo); }
.nav-cta {
  background: var(--indigo);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--indigo-dk); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { width: 100%; height: 2px; background: var(--ink); display: block; }

/* --------------------------------------------------------------------- */
/* Buttons                                                                */
/* --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--indigo); color: var(--white); }
.btn-primary:hover { background: var(--indigo-dk); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); }
.btn-large { padding: 16px 38px; font-size: 1.05rem; }
.btn-wide { width: 100%; padding: 16px 28px; }

/* --------------------------------------------------------------------- */
/* Eyebrow / section headings                                            */
/* --------------------------------------------------------------------- */
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  font-weight: 600;
}
.eyebrow-center { text-align: center; }
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: 18px;
}
.section-title-center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 640px;
}
.eyebrow-center + .section-title-center,
.section-title-center + .section-lead { margin-left: auto; margin-right: auto; }
section .container > .section-lead.section-lead { text-align: left; }
.problem .section-lead,
.how .section-lead,
.pricing .section-lead,
.best-for .section-lead,
.request .section-lead,
.faq .section-lead {
  text-align: center;
  margin: 0 auto 56px;
}

/* --------------------------------------------------------------------- */
/* Hero                                                                   */
/* --------------------------------------------------------------------- */
.hero {
  padding: clamp(72px, 12vw, 130px) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(circle at 88% 18%, rgba(31, 58, 95, 0.06), transparent 55%),
    var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.18;
  margin: 0 0 22px;
}
.hero-emphasis { color: var(--indigo); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-note {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--moss);
}
.hero-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  text-align: center;
  gap: 14px;
}
.hero-seal-caption {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------- */
/* Problem section                                                        */
/* --------------------------------------------------------------------- */
.problem { padding: var(--section-pad) 0; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.problem-item {
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.problem-mark {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.problem-item h3 { font-size: 1.08rem; margin-bottom: 8px; }
.problem-item p { color: var(--ink-soft); font-size: 0.96rem; }

/* --------------------------------------------------------------------- */
/* Service section                                                        */
/* --------------------------------------------------------------------- */
.service { padding: var(--section-pad) 0; background: var(--bg-alt); }
.service-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.source-list { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.source-list li {
  padding-left: 22px;
  position: relative;
  color: var(--ink-soft);
}
.source-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 1px;
  background: var(--gold);
}
.categories-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.category-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.category-tags span {
  display: inline-block;
  padding: 9px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--ink);
}

/* --------------------------------------------------------------------- */
/* How it works                                                           */
/* --------------------------------------------------------------------- */
.how { padding: var(--section-pad) 0; }
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
}
.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); }

/* --------------------------------------------------------------------- */
/* Pricing                                                                 */
/* --------------------------------------------------------------------- */
.pricing { padding: var(--section-pad) 0; background: var(--bg-alt); }
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 920px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
}
.pricing-card h3 { font-size: 1.15rem; margin-bottom: 18px; }
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  padding-left: 26px;
  position: relative;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--moss);
  font-weight: 700;
}
.fee-list { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.fee-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.fee-row dt { color: var(--ink-soft); font-size: 0.95rem; }
.fee-row dd { margin: 0; text-align: right; }
.fee-note { margin-top: 20px; font-size: 0.82rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------- */
/* Trust                                                                   */
/* --------------------------------------------------------------------- */
.trust { padding: var(--section-pad) 0; }
.trust-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.trust-list { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.trust-list li { display: flex; align-items: flex-start; gap: 12px; }
.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--moss);
  color: var(--white);
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.trust-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  justify-self: center;
  text-align: center;
}

/* --------------------------------------------------------------------- */
/* Best for                                                                */
/* --------------------------------------------------------------------- */
.best-for { padding: var(--section-pad) 0; background: var(--bg-alt); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.audience-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.audience-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.audience-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--indigo); }
.audience-card p { color: var(--ink-soft); font-size: 0.94rem; }

/* --------------------------------------------------------------------- */
/* Request form                                                           */
/* --------------------------------------------------------------------- */
.request { padding: var(--section-pad) 0; }
.request-form {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-soft);
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row-full { grid-column: 1 / -1; }
label { font-size: 0.88rem; color: var(--ink-soft); }
input, textarea, select {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  resize: vertical;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--indigo);
  outline: none;
}

/* --------------------------------------------------------------------- */
/* FAQ                                                                     */
/* --------------------------------------------------------------------- */
.faq { padding: var(--section-pad) 0; background: var(--bg-alt); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--gold);
  font-size: 1.2rem;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 12px; color: var(--ink-soft); }

/* --------------------------------------------------------------------- */
/* Final CTA                                                              */
/* --------------------------------------------------------------------- */
.final-cta {
  padding: clamp(72px, 10vw, 120px) 0;
  background: var(--indigo);
  color: var(--white);
  text-align: center;
}
.final-cta .hanko-ring { stroke: var(--white); opacity: 0.85; }
.final-cta .hanko-glyph { fill: var(--white); }
.final-cta h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta .btn-primary { background: var(--white); color: var(--indigo); }
.final-cta .btn-primary:hover { background: var(--bg); }

/* --------------------------------------------------------------------- */
/* Footer                                                                  */
/* --------------------------------------------------------------------- */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer-logo { width: 130px; height: auto; margin: 0 auto 4px; opacity: 0.92; }
.footer-inner { text-align: center; color: var(--ink-soft); font-size: 0.85rem; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.footer-note { font-size: 0.78rem; opacity: 0.8; }

/* --------------------------------------------------------------------- */
/* Toast                                                                   */
/* --------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 16px);
  background: var(--ink);
  color: var(--white);
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
  max-width: 90vw;
  text-align: center;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------- */
/* Reveal-on-scroll                                                        */
/* --------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------- */
/* Legal pages (Terms, Privacy, Refund, Shipping)                          */
/* --------------------------------------------------------------------- */
.legal-hero {
  padding: clamp(56px, 8vw, 88px) 0 40px;
  border-bottom: 1px solid var(--line);
}
.legal-hero .eyebrow { margin-bottom: 10px; }
.legal-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 10px;
}
.legal-updated {
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.legal-main {
  padding: var(--section-pad) 0;
}
.legal-content {
  max-width: 720px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 44px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.legal-content ul {
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-content ul li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
}
.legal-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 1px;
  background: var(--gold);
}
.legal-content a { color: var(--indigo); text-decoration: underline; text-decoration-color: var(--line); }
.legal-content a:hover { text-decoration-color: var(--indigo); }
.legal-content strong { color: var(--ink); }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 28px;
}
.legal-back:hover { color: var(--indigo); }

/* Footer legal links */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 4px 0;
  font-size: 0.85rem;
}
.footer-links a { text-decoration: none; color: var(--ink-soft); }
.footer-links a:hover { color: var(--indigo); }


@media (max-width: 880px) {
  .hero-inner,
  .service-inner,
  .trust-inner {
    grid-template-columns: 1fr;
  }
  .hero-seal,
  .trust-seal { order: -1; margin-bottom: 8px; }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; width: 100%; }
  .nav-cta { width: 100%; text-align: center; margin-top: 8px; }
  .nav-toggle { display: flex; }
  .request-form { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
