/* ==========================================================================
   KireiLens — Landing page styles
   Tone: clean, travel-friendly, high-contrast so the reader can scan in a
   hurry. Type pairing: Inter for Latin, Noto Sans JP as CJK fallback.
   ========================================================================== */

:root {
  --ink: #0f1a2a;
  --ink-soft: #3d4b5e;
  --muted: #6b7888;
  --paper: #fdfdfb;
  --surface: #f5f3ee;
  --brand: #1b4b7a;
  --brand-soft: #dbe8f3;
  --accent: #f26a3a;
  --line: #e6e1d7;
  --max: 1040px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-top: 3rem; }
h3 { font-size: 1.15rem; margin-top: 1.5rem; }

p { margin: 0.5em 0 1em; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

/* ---- Header ---------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(253, 253, 251, 0.92);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 24px;
}

.site-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover { color: var(--brand); text-decoration: none; }

/* ---- Language switcher ---------------------------------------------- */

.lang-switcher {
  position: relative;
  font-size: 0.9rem;
}

.lang-switcher summary {
  list-style: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.lang-switcher summary::-webkit-details-marker { display: none; }

.lang-caret { font-size: 0.7rem; color: var(--muted); }

.lang-list {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 28px -12px rgba(15, 26, 42, 0.25);
  min-width: 160px;
}

.lang-list li a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--ink);
}

.lang-list li a:hover {
  background: var(--surface);
  text-decoration: none;
}

/* ---- Hero ------------------------------------------------------------ */

.hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 80px);
  background: linear-gradient(180deg, #f4f9fd 0%, var(--paper) 80%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

@media (max-width: 780px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.hero h1 { margin-top: 14px; margin-bottom: 18px; }
.hero .hero-sub { font-size: 1.12rem; color: var(--ink-soft); max-width: 32em; }

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 12px;
  margin-top: 28px;
  font-size: 1rem;
}

.hero-cta:hover { background: var(--brand); color: #fff; text-decoration: none; }

.hero-note {
  display: block;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 24px 48px -24px rgba(15, 26, 42, 0.22);
  aspect-ratio: 9 / 16;
  max-width: 320px;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  color: var(--muted);
  text-align: center;
}

.hero-mock .mock-panel {
  width: 80%;
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, #eef2f5 0%, #dde6ec 100%);
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
}

.hero-mock .mock-btn {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #d9dfe4;
  font-size: 0.7rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.hero-mock .mock-btn.hit {
  border-color: var(--accent);
  background: #fff6f1;
  color: var(--accent);
  font-weight: 600;
}

/* ---- Section shell -------------------------------------------------- */

section.band { padding: clamp(48px, 7vw, 96px) 0; }
section.band + section.band { border-top: 1px solid var(--line); }

.section-intro { max-width: 40em; margin-bottom: 32px; }
.section-intro p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---- Feature grid --------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 24px;
}

.feature h3 { margin: 0 0 6px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---- How-steps ------------------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border-radius: 14px;
  padding: 22px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
  opacity: 0.25;
  font-family: "Inter", sans-serif;
}

.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---- FAQ ------------------------------------------------------------ */

.faq {
  display: grid;
  gap: 8px;
  max-width: 720px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
}

.faq details[open] { background: var(--surface); }

.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 400;
  font-size: 1.4rem;
  transition: transform 0.2s;
}

.faq details[open] summary::after { content: "–"; }

.faq .answer { color: var(--ink-soft); padding-top: 10px; }

/* ---- CTA band ------------------------------------------------------- */

.cta-band {
  background: var(--ink);
  color: var(--paper);
  border-radius: 20px;
  padding: 40px clamp(24px, 4vw, 48px);
  text-align: center;
}

.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: rgba(255, 255, 255, 0.75); margin-bottom: 24px; }

.cta-band .hero-cta { background: var(--accent); }
.cta-band .hero-cta:hover { background: #ff8558; color: #fff; }

/* ---- Prose (legal / support pages) ---------------------------------- */

.prose {
  max-width: 720px;
  padding: clamp(40px, 6vw, 72px) 24px clamp(60px, 8vw, 100px);
}

.prose h1 { margin-top: 0; }
.prose h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.05rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Footer --------------------------------------------------------- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 40px 0 32px;
  margin-top: 60px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

@media (max-width: 600px) {
  .site-footer-grid { grid-template-columns: 1fr; }
}

.footer-brand { font-weight: 700; color: var(--ink); margin: 0; }
.footer-tag { margin: 4px 0 0; color: var(--muted); font-size: 0.85rem; }

.footer-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}

.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--brand); }

.footer-copy {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-disclaimer {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.6;
}

/* ==========================================================================
   Toilet button guide section (long-form, SEO)
   ========================================================================== */

.guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 1.5rem;
}

.guide-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 24px;
}

.guide-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--brand);
}

.guide-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.guide-note {
  margin: 2rem 0 0;
  padding: 16px 20px;
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.95rem;
}
