/* =========================================================
   Secret Garden — Sabikan Recruitment LP
   Vanilla CSS. Mobile-first. Design tokens from PRD §4.
   Contrast notes (verified against #FAF6EF cream / white):
   - green-deep #2F5233 text on cream = 8.2:1 (AA/AAA) -> headings, body-dark
   - ink #2B2B26 on cream = ~11:1 -> body text
   - leaf-green #6A994E on cream = 3.1:1 -> LARGE/decorative only (never body)
   - terracotta #C1554D white text = ~4.5:1 -> large/bold button labels only
   - terracotta-deep #A8433C white text = 5.9:1 -> small pill badges (AA small)
   - line-green #06C755 with DARK ink text = 6.3:1 (white text would be 2.3, fails)
   ========================================================= */

@font-face {
  font-family: "Noto Sans JP";
  src: url("assets/fonts/noto-sans-jp-400-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Zen Maru Gothic";
  src: url("assets/fonts/zen-maru-gothic-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --green-deep: #2F5233;
  --green-leaf: #6A994E;
  --cream: #FAF6EF;
  --bread: #D4A24E;
  --terracotta: #C1554D;
  --terracotta-deep: #A8433C; /* darker variant for small text/badges (AA small) */
  --line-green: #06C755;
  --ink: #2B2B26;

  --card-bg: #FFFFFF;
  --panel-bg: #EFE7D6;
  --radius: 16px;
  --radius-lg: 20px;
  --maxw: 1080px;
  --maxw-narrow: 760px;

  --font-head: "Zen Maru Gothic", "Noto Sans JP", system-ui, sans-serif;
  --font-body: "Noto Sans JP", system-ui, sans-serif;
}

* { box-sizing: border-box; }

/* Author display rules must never override native progressive-enhancement states. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

/* Keep anchored sections clear of the sticky header. */
[id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.4; color: var(--green-deep); }

p { margin: 0 0 1em; }

a { color: var(--green-deep); }

img, svg { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: var(--maxw-narrow); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .12s ease, background-color .12s ease, color .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 56px; font-size: 18px; padding: 14px 26px; }
.btn-block { width: 100%; }

/* LINE button: brand green with DARK ink text (white would fail AA). */
.btn-line {
  background: var(--line-green);
  color: #06381d;
  border-color: #06381d;
}
.btn-line::before {
  content: "";
  width: 22px; height: 22px;
  background: #06381d;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 3C6.5 3 2 6.6 2 11c0 3.9 3.5 7.2 8.3 7.9.3.07.75.22.86.5.1.26.06.66.03.92l-.14.83c-.04.25-.2.98.86.53s5.7-3.36 7.78-5.75C20.8 14.9 22 13.1 22 11c0-4.4-4.5-8-10-8z"/></svg>') center/contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 3C6.5 3 2 6.6 2 11c0 3.9 3.5 7.2 8.3 7.9.3.07.75.22.86.5.1.26.06.66.03.92l-.14.83c-.04.25-.2.98.86.53s5.7-3.36 7.78-5.75C20.8 14.9 22 13.1 22 11c0-4.4-4.5-8-10-8z"/></svg>') center/contain no-repeat;
}
.btn-line:hover { background: #05b34c; }
.btn-line.is-disabled {
  background: #cfcfcf;
  color: #4a4a4a;
  border-color: #4a4a4a;
  cursor: default;
  pointer-events: none;
}
.btn-line.is-disabled::before { background: #4a4a4a; }

/* Terracotta filled CTA: large/bold white label (~4.5:1). */
.btn-terra {
  background: var(--terracotta-deep);
  color: #fff;
  border-color: var(--terracotta-deep);
}
.btn-terra:hover { background: #8f3933; border-color: #8f3933; }

/* Terracotta outline that inverts on hover. */
.btn-terra-outline {
  background: transparent;
  color: var(--terracotta-deep);
  border-color: var(--terracotta);
}
.btn-terra-outline:hover { background: var(--terracotta-deep); border-color: var(--terracotta-deep); color: #fff; }

/* Compact header button. */
.btn-header {
  background: var(--terracotta-deep);
  color: #fff;
  min-height: 40px;
  padding: 8px 18px;
  font-size: 15px;
}
.btn-header:hover { background: #8f3933; }

/* Visible focus states. */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--green-deep);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.95);
  backdrop-filter: saturate(1.1) blur(4px);
  border-bottom: 1px solid #e6ddca;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--green-deep); }
.brand-tag { font-size: 11px; color: var(--green-deep); opacity: .85; }

/* ---------- Hero ---------- */
.hero { padding: 34px 0 18px; }
.hero-inner { display: grid; gap: 26px; text-align: center; }
.hero-copy { width: min(820px, 100%); margin-inline: auto; }
.hero-art { margin: 0; text-align: center; }
.hero-art picture { display: block; }
.hero-art img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  margin-inline: auto;
  border: 1px solid #e0d5bd;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(47, 82, 51, .14);
}
.hero-invitation {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .06em;
  color: var(--green-deep);
}
.eyebrow {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  color: var(--green-deep);
  margin: 0 0 .4em;
}
h1 { font-size: clamp(28px, 6vw, 44px); margin: 0 0 .5em; }
.lead { max-width: 760px; margin-inline: auto; font-size: 18px; }
.cta-row { display: flex; flex-direction: column; gap: 12px; width: min(720px, 100%); margin: 20px auto 16px; }
.chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  background: var(--panel-bg);
  color: var(--green-deep);
  border: 1px solid #e0d5bd;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Sections ---------- */
.section { padding: 44px 0; }
.section:nth-of-type(even) { }
h2 {
  font-size: clamp(22px, 5vw, 30px);
  margin: 0 0 .8em;
  display: flex;
  align-items: center;
  gap: 12px;
}
h2.center { justify-content: center; }
.marker {
  display: inline-block;
  width: 10px; height: 26px;
  border-radius: 6px;
  background: var(--green-leaf);
  flex: 0 0 auto;
}
.section-note { color: var(--ink); opacity: .9; margin-top: -.4em; }

/* Story */
.story { background: #fff; }
.story-emph {
  margin-top: 1.2em;
  padding: 18px 20px;
  background: var(--panel-bg);
  border-left: 6px solid var(--bread);
  border-radius: 0 12px 12px 0;
  font-weight: 700;
  color: var(--green-deep);
}

/* Pain-point empathy block (§5.3b) — muted card on cream */
.pain-card {
  background: var(--panel-bg);
  border: 1px solid #e0d5bd;
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.pain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pain-item { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); }
.pain-leaf { flex: 0 0 auto; width: 26px; height: 26px; margin-top: 3px; }
.pain-leaf svg { width: 100%; height: 100%; }
.pain-pivot {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid #d8ceb8;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--green-deep);
}

/* Promises cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
.card {
  background: var(--card-bg);
  border: 1px solid #ece3d0;
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: 0 2px 10px rgba(47, 82, 51, 0.05);
}
.card-icon { width: 56px; height: 56px; margin-bottom: 10px; }
.card h3 { font-size: 20px; margin: 0 0 .4em; color: var(--green-deep); }
.card p { margin: 0; }

/* Requirements */
.req-list { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid #ece3d0; }
.req-row { display: flex; flex-direction: column; border-bottom: 1px solid #ece3d0; background: #fff; }
.req-row:last-child { border-bottom: 0; }
.req-row dt {
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  background: var(--green-deep);
  padding: 10px 16px;
}
.req-row dd { margin: 0; padding: 12px 16px; }

/* Self-checker */
.selfcheck { background: #fff; }
.checker { display: grid; gap: 18px; margin-top: 8px; }
.q { border: 1px solid #ece3d0; border-radius: var(--radius); padding: 16px 18px; margin: 0; }
.q legend { font-family: var(--font-head); font-weight: 700; color: var(--green-deep); padding: 0 4px; }
.opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 0;
  cursor: pointer;
}
.opt input { width: 22px; height: 22px; accent-color: var(--green-leaf); flex: 0 0 auto; }
.check-result {
  margin-top: 20px;
  padding: 20px;
  border-radius: var(--radius);
  border: 2px solid var(--green-leaf);
  background: var(--panel-bg);
}
.check-result p { margin: 0 0 14px; font-weight: 700; color: var(--green-deep); }
.check-result .verdict-ctas { display: flex; flex-direction: column; gap: 10px; margin: 0; }

/* FAQ */
.faq-item {
  border: 1px solid #ece3d0;
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 48px 16px 18px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--green-deep);
  position: relative;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--green-leaf);
}
.faq-item[open] summary::after { content: "−"; }
.faq-a { padding: 0 18px 16px; }
.faq-a p { margin: 0; }

/* Contact */
.contact { background: var(--panel-bg); }
.line-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #e6ddca;
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
}
.line-qr img { border-radius: 12px; background: var(--cream); border: 1px solid #e6ddca; }
.line-cta { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.line-caption { margin: 0; font-size: 15px; color: var(--ink); }

.or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--green-deep);
  font-weight: 700;
}
.or-divider::before, .or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d8ceb8;
}

.contact-form {
  background: #fff;
  border: 1px solid #e6ddca;
  border-radius: var(--radius-lg);
  padding: 22px;
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 6px; margin: 0; border: 0; padding: 0; }
.field > label, .field legend {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--green-deep);
  padding: 0;
}
.contact-methods { border: 1px solid #ece3d0; border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 12px; }
.contact-methods legend { padding: 0 4px; }
.sub-field { display: grid; gap: 6px; }
.sub-field label { font-family: var(--font-body); font-weight: 500; font-size: 15px; color: var(--ink); }
input[type="text"], input[type="tel"], input[type="email"], textarea {
  font-family: var(--font-body);
  font-size: 17px;
  padding: 12px 14px;
  border: 2px solid #d8ceb8;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
textarea { resize: vertical; }
input.invalid, textarea.invalid { border-color: var(--terracotta-deep); }
.contact-methods.invalid { border-color: var(--terracotta-deep); }

.req-badge {
  display: inline-block;
  background: var(--terracotta-deep);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 8px;
  vertical-align: middle;
  margin-left: 4px;
}
.field-error { margin: 0; color: var(--terracotta-deep); font-weight: 700; font-size: 15px; }

.consent { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-family: var(--font-body); font-weight: 500; color: var(--ink); }
.consent input { width: 22px; height: 22px; margin-top: 4px; accent-color: var(--green-leaf); flex: 0 0 auto; }

/* Honeypot: visually + a11y hidden, still submitted if a bot fills it. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status { padding: 16px 18px; border-radius: 12px; font-weight: 700; }
.form-status.pending { background: #f4eedf; border: 2px solid var(--bread); color: var(--green-deep); }
.form-status.success { background: #e7f2df; border: 2px solid var(--green-leaf); color: var(--green-deep); }
.form-status.error { background: #fbe9e7; border: 2px solid var(--terracotta-deep); color: var(--terracotta-deep); }
.form-status .status-line { display: block; margin-bottom: 8px; }
.form-status .status-line:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-deep);
  color: #f3efe6;
  padding: 36px 0;
  margin-top: 8px;
}
.site-footer a { color: #fff; }
.footer-info { margin: 0 0 18px; display: grid; gap: 10px; }
.footer-info > div { display: grid; gap: 2px; }
.footer-info dt { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: #F2D59C; }
.footer-info dd { margin: 0; }
.privacy { border-top: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); padding: 8px 0; margin-bottom: 16px; }
.privacy summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.privacy-body { padding: 4px 0 10px; font-size: 15px; }
.copyright { margin: 0; font-size: 14px; opacity: .85; }

/* ---------- Responsive ---------- */
@media (min-width: 600px) {
  .hero-art img { aspect-ratio: 1440 / 712; }
}

@media (min-width: 768px) {
  body { font-size: 17px; }
  .cta-row { flex-direction: row; }
  .cta-row .btn { flex: 1 1 auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .req-row { flex-direction: row; }
  .req-row dt { flex: 0 0 180px; }
  .req-row dd { flex: 1 1 auto; }
  .line-panel { flex-direction: row; text-align: left; justify-content: center; }
  .line-cta { align-items: flex-start; }
}

/* Keep the hero centered at every width so the garden illustration remains prominent. */
@media (min-width: 960px) {
  h1 { font-size: 44px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
