/* ============================================================
   Quest 150 — site styles
   Warm editorial theme. Colors live as CSS variables in :root,
   so adjusting the palette is a one-place edit.
   ============================================================ */

:root {
  --bg: #F5F1E9;
  --bg-alt: #EDE7DA;
  --card: #FBFAF4;

  --ink: #23241F;
  --ink-soft: #4A4C44;
  --muted: #54564E;
  --faint: #8A8576;

  --border: #E4DFD3;
  --accent: #2E6E66;
  --accent-strong: #245A53;
  --accent-tint: rgba(46, 110, 102, 0.10);
  --accent-tint-border: rgba(46, 110, 102, 0.22);
  --dot: #C9C2B2;

  --dark-bg: #23241F;
  --dark-ink: #EDE9DF;
  --dark-muted: #9C988D;
  --dark-faint: #7C7A70;
  --dark-rule: #34352F;
  --dark-accent: #6FAFA6;

  --badge-bg: #EFE6D4;
  --badge-text: #7A6A3E;
  --badge-border: #E3D7BD;

  --headbar: rgba(245, 241, 233, 0.82);

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1080px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: var(--accent-tint); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
img { display: block; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}
.wrap--narrow { max-width: 760px; }
.wrap--mid { max-width: 840px; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.rule { height: 1px; background: var(--border); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 13px 24px;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, opacity .18s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-strong); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { background: var(--accent-tint); }
.btn--light { background: var(--dark-ink); color: var(--dark-bg); }
.btn--light:hover { opacity: 0.9; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--headbar);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand .logo { width: 26px; height: 26px; }
.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-link {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 7px 12px;
  border-radius: 7px;
  transition: background-color .15s ease;
}
.nav-link:hover { background: var(--accent-tint); }
.nav-cta {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 8px;
  margin-left: 6px;
  transition: background-color .15s ease;
}
.nav-cta:hover { background: var(--accent-strong); }

/* ---------- hero ---------- */
.hero { padding-top: 86px; padding-bottom: 80px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow-rule {
  width: 46px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 56px;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--ink);
}
.hero-lead {
  font-size: 19px;
  line-height: 1.62;
  color: var(--muted);
  max-width: 33em;
  margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { position: relative; }
.hero-art svg { display: block; overflow: visible; width: 100%; }
.hero-caption {
  position: absolute;
  right: 0; top: -10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

/* ---------- generic section ---------- */
.section { padding-top: 64px; padding-bottom: 80px; }
.section-head { margin-bottom: 34px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

/* ---------- product cards ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px;
  display: flex;
  flex-direction: column;
}
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}
.icon-tile {
  width: 60px; height: 60px;
  border-radius: 15px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.badge {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--badge-text);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.card-kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
  margin-bottom: 10px;
}
.card-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 27px;
  line-height: 1.12;
  margin: 0 0 18px;
  color: var(--ink);
}
.card-body {
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.62;
}
.card-cta-wrap { margin-top: auto; }
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--faint);
  background: var(--accent-tint);
  border: 1px solid var(--border);
  padding: 11px 20px;
  border-radius: 9px;
  cursor: not-allowed;
}
.card-cta small { font-size: 12px; font-weight: 500; }

/* ---------- philosophy ---------- */
.philosophy {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.philosophy .wrap { padding-top: 74px; padding-bottom: 74px; }
.block-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  color: var(--ink);
}
.block-lead {
  font-size: 19px;
  line-height: 1.66;
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 40em;
}
.block-lead--muted { color: var(--muted); margin: 0; }

/* ---------- contact ---------- */
.contact { background: var(--dark-bg); color: var(--dark-ink); }
.contact .wrap { padding-top: 72px; padding-bottom: 72px; }
.contact .eyebrow { color: var(--dark-accent); margin-bottom: 16px; }
.contact-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 34px;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: var(--dark-ink);
}
.contact-lead {
  font-size: 17px;
  color: var(--dark-muted);
  margin: 0 0 32px;
  max-width: 36em;
}

/* ---------- footer ---------- */
.site-footer { background: var(--dark-bg); color: var(--dark-muted); margin-top: auto; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.footer-brand-row { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer-brand-row .logo { width: 24px; height: 24px; }
.footer-brand-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--dark-ink);
}
.footer-tag { margin: 0 0 6px; font-size: 14.5px; line-height: 1.6; color: var(--dark-muted); max-width: 26em; }
.footer-meta { margin: 0; font-size: 13px; color: var(--dark-faint); }
.footer-col-title {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-faint);
  margin-bottom: 14px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { text-decoration: none; color: var(--dark-muted); font-size: 15px; transition: color .15s ease; }
.footer-links a:hover { color: var(--dark-ink); }
.footer-rule { height: 1px; background: var(--dark-rule); margin: 36px 0 22px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-bottom span { font-size: 13px; color: var(--dark-faint); }
.footer-bottom a { font-size: 13px; color: var(--dark-faint); text-decoration: none; transition: color .15s ease; }
.footer-bottom a:hover { color: var(--dark-ink); }

/* ---------- legal / privacy ---------- */
.legal-head { padding-top: 64px; padding-bottom: 16px; }
.back-link {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 18px;
}
.back-link:hover { color: var(--accent-strong); }
.legal-head .eyebrow { margin-bottom: 16px; }
.legal-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--ink);
}
.legal-date { color: var(--faint); font-size: 14px; margin: 0; }
.legal-body { padding-top: 24px; padding-bottom: 80px; }
.draft-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 40px;
}
.draft-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.draft-note p { margin: 0; color: var(--badge-text); font-size: 14px; line-height: 1.55; }
.legal-sections { display: flex; flex-direction: column; gap: 34px; }
.legal-sections h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 10px;
  color: var(--ink);
}
.legal-sections p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.66; }
.inline-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.inline-link:hover { text-decoration: underline; }

/* ---------- arc draw animation (一筆書き) ---------- */
@keyframes q-draw { to { stroke-dashoffset: 0; } }
@keyframes q-pop { from { opacity: 0; } to { opacity: 1; } }
@keyframes q-ring {
  0% { opacity: 0; transform: scale(0.4); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: scale(1); }
}
.q-arc-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: q-draw 1.7s cubic-bezier(.45, .05, .35, 1) .25s forwards;
}
.q-arc-dot { opacity: 0; animation: q-pop .45s ease-out forwards; }
.q-arc-ring {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: q-ring .6s ease-out 1.9s forwards;
}
@media (prefers-reduced-motion: reduce) {
  .q-arc-path { stroke-dashoffset: 0; animation: none; }
  .q-arc-dot { opacity: 1; animation: none; }
  .q-arc-ring { opacity: 1; transform: none; animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { display: none; }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero-title { font-size: 44px; }
  .block-title { font-size: 30px; }
}
@media (max-width: 520px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 38px; }
}
