/* =========================================================
   レモネード株式会社 - style.css
   Palette: white base + black for tension + yellow accent only
   ========================================================= */

:root {
  --c-bg: #ffffff;
  --c-bg-soft: #faf9f4;
  --c-ink: #1a1a1a;
  --c-ink-soft: #4a4a4a;
  --c-line: #e7e5dc;
  --c-yellow: #f4c20d;
  --c-yellow-soft: #ffd83d;
  --c-yellow-wash: #fff8e1;

  --maxw: 1180px;
  --pad: clamp(20px, 3.5vw, 40px);
  --header-h: 80px;
  --radius: 14px;
  /* shared reading measures: prose vs narrow (lists/forms). Hero (840) is the
     only exception, being heading-led. All sections share the same left edge. */
  --measure-prose: 760px;
  --measure-narrow: 660px;

  --font: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--c-line);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
}
/* the header may use a little more width than the page content */
.site-header .container { max-width: 1280px; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand img { height: 42px; width: auto; }

.site-nav { display: flex; align-items: center; }
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-ink-soft);
  transition: color .2s ease;
}
.nav-menu a:hover { color: var(--c-ink); }
.nav-cta {
  background: var(--c-ink);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
}
.nav-cta:hover { background: #000; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--c-ink);
  transition: transform .25s ease, opacity .2s ease;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--c-yellow);
  color: var(--c-ink);
}
.btn-primary:hover { background: var(--c-yellow-soft); }
.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.btn-ghost:hover { background: var(--c-ink); color: #fff; }

/* ---------- Hero (typography-led, no illustration) ---------- */
/* Only a soft, near-white cream light bleeding from the top-right adds a little
   warmth and depth. No shapes - the copy stays the focus, the left stays white. */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 60vh;
  padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 104px);
  background:
    linear-gradient(222deg, rgba(255, 246, 210, 0.5) 0%, rgba(255, 248, 225, 0.22) 30%, transparent 55%),
    radial-gradient(85% 80% at 94% 2%, var(--c-yellow-wash) 0%, transparent 58%),
    var(--c-bg);
}
/* interactive ambient light (injected by JS on fine-pointer devices only).
   An elongated beam, tilted so it reads as light pouring in from the top-right
   toward the center. It lazily follows the cursor and gently breathes when
   idle. Composited via transform/opacity only - no repaints, no shapes. */
.hero-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: min(540px, 46vw);
  aspect-ratio: 0.58;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    rgba(255, 235, 168, 0.45) 0%,
    rgba(255, 245, 215, 0.22) 45%,
    transparent 72%);
  transform: translate(-50%, -50%) rotate(35deg);
  will-change: transform, opacity;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
}
@media (prefers-reduced-motion: reduce) { .hero-glow { display: none; } }
.hero-inner { position: relative; z-index: 1; max-width: 840px; width: 100%; }
.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-ink-soft);
  margin: 0 0 20px;
}
.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--c-yellow);
  vertical-align: middle;
  margin-right: 10px;
}
.hero-title {
  font-size: clamp(30px, 4.8vw, 48px);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 26px;
}
.hero-lead {
  font-size: clamp(15px, 1.9vw, 19px);
  color: var(--c-ink-soft);
  line-height: 1.95;
  margin: 0 0 36px;
  font-weight: 500;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 6.5vw, 88px) 0; }
.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-yellow);
  margin: 0 0 14px;
}
.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--c-yellow);
  vertical-align: middle;
  margin-right: 10px;
}
.section-heading {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  margin: 0 0 28px;
}

/* About - supplements the Hero message; left-aligned, quote as a supporting
   element under the heading (not an isolated centered pull-quote) */
.about { background: var(--c-bg-soft); }
.about-inner { max-width: var(--measure-prose); }
.about-title { margin: 0 0 22px; }
.about-quote {
  font-size: clamp(15px, 1.9vw, 18px);
  font-style: italic;
  color: var(--c-ink);
  line-height: 1.7;
  margin: 0 0 30px;
  padding-left: 18px;
  border-left: 2px solid var(--c-yellow);
}
.about-quote-ja {
  display: block;
  font-style: normal;
  font-size: clamp(13px, 1.6vw, 15px);
  color: var(--c-ink-soft);
  margin-top: 8px;
}
.about-body { font-size: clamp(15px, 1.9vw, 17px); }
.about-body p { margin: 0 0 18px; color: var(--c-ink-soft); line-height: 1.95; }
.about-body p:last-child { margin-bottom: 0; }

/* Service */
.service-body {
  font-size: clamp(15px, 2vw, 18px);
  max-width: var(--measure-prose);
  color: var(--c-ink-soft);
  line-height: 1.95;
}
/* scope of support: quiet hairline rows, same editorial tone as Works */
.service-scope-label {
  font-size: 15px;
  font-weight: 700;
  margin: 36px 0 0;
  padding-left: 12px;
  border-left: 3px solid var(--c-yellow);
}
.service-scope {
  margin: 16px 0 0;
  padding: 0;
  max-width: var(--measure-prose);
}
/* "how we work" is body copy under a subhead, not the section lead - so it
   takes the body size, and the same h3 gap as the scope list above it */
.service-note {
  font-size: clamp(15px, 1.9vw, 16px);
  max-width: var(--measure-prose);
  color: var(--c-ink-soft);
  line-height: 1.95;
  margin: 16px 0 0;
}
.scope-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 14px 2px;
  border-top: 1px solid var(--c-line);
}
.scope-row:last-child { border-bottom: 1px solid var(--c-line); }
.scope-row dt {
  color: var(--c-ink);
  font-size: 15px;
  font-weight: 700;
}
.scope-row dd {
  margin: 0;
  color: var(--c-ink-soft);
  font-size: 14px;
}
@media (max-width: 560px) {
  .scope-row { grid-template-columns: 1fr; gap: 3px; }
}

/* Works - quiet, editorial case studies (no cards, hairline rules) */
.works-list { display: flex; flex-direction: column; }
.case {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(30px, 4vw, 46px) 0;
  border-top: 1px solid var(--c-line);
}
.case:last-child { border-bottom: 1px solid var(--c-line); }

.case-index { padding-top: 4px; }
.case-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  margin-bottom: 4px;
}
.case-num {
  display: block;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--c-ink);
}
.case-num::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-yellow);
  margin-top: 12px;
}

.case-org { font-size: clamp(19px, 2.3vw, 23px); font-weight: 700; margin: 0 0 5px; }
.case-theme {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-ink-soft);
  margin: 0 0 20px;
}
.case-text { max-width: var(--measure-narrow); }
.case-text p { margin: 0 0 14px; color: var(--c-ink-soft); line-height: 1.95; }
.case-text p:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
  .case { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  .case-index {
    padding-top: 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
  }
  .case-label { margin-bottom: 0; }
  .case-num { font-size: 22px; }
  .case-num::after { display: none; }
}

/* Member */
.member { background: var(--c-bg-soft); }
.member-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.member-photo img {
  width: 100%;
  border-radius: var(--radius);
  background: #e9e7df;
  aspect-ratio: 1;
  object-fit: cover;
}
.member-name { font-size: clamp(22px, 3vw, 28px); font-weight: 700; margin: 0 0 4px; }
.member-name-en { font-size: 0.6em; color: var(--c-ink-soft); font-weight: 500; margin-left: 8px; }
.member-role { color: var(--c-yellow); font-weight: 700; margin: 0 0 24px; }
.member-subhead {
  font-size: 15px;
  font-weight: 700;
  margin: 24px 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--c-yellow);
}
.member-body p { margin: 0 0 14px; color: var(--c-ink-soft); line-height: 1.95; }
.member-body p:last-child { margin-bottom: 0; }

/* Company - readability first: light bg, dark text */
.company-table {
  width: 100%;
  max-width: var(--measure-prose);
  border-collapse: collapse;
}
.company-table th, .company-table td {
  text-align: left;
  padding: 16px 14px;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
  font-size: 15px;
}
.company-table th {
  width: 30%;
  white-space: nowrap;
  color: var(--c-ink-soft);
  font-weight: 700;
}

/* Contact */
.contact-lead { margin: 0 0 18px; color: var(--c-ink-soft); }
/* plain, non-clickable text (not a button/tag) */
.contact-topics {
  margin: 0 0 32px;
  max-width: var(--measure-narrow);
  font-size: 14px;
  color: var(--c-ink-soft);
  line-height: 1.9;
}
.contact-form { max-width: var(--measure-narrow); }
.form-row { margin-bottom: 22px; }
.form-row > label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}
.req {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #b4690e;
  background: var(--c-yellow-wash);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.opt {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--c-ink-soft);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  padding: 1px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--c-ink);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  padding: 13px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--c-yellow);
  box-shadow: 0 0 0 3px var(--c-yellow-wash);
}
.contact-form textarea { resize: vertical; }
.form-row.has-error input,
.form-row.has-error select,
.form-row.has-error textarea {
  border-color: #d64545;
  box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.1);
}
.error-text {
  color: #d64545;
  font-size: 13px;
  margin: 6px 0 0;
  min-height: 0;
}
.form-consent .consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
}
.form-consent input { width: auto; margin-top: 4px; }
.form-consent a { text-decoration: underline; }

/* honeypot - visually hidden but present */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.turnstile-slot:empty { display: none; }
.turnstile-slot { margin-bottom: 18px; }

.form-submit { margin-top: 6px; }
.form-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.form-status { margin: 14px 0 0; font-size: 14px; }
.form-status.is-error { color: #d64545; }
.form-status.is-info {
  color: var(--c-ink-soft);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  padding: 12px 14px;
}

.form-done {
  max-width: var(--measure-narrow);
  background: var(--c-yellow-wash);
  border: 1px solid var(--c-yellow-soft);
  border-radius: var(--radius);
  padding: 32px;
}
.form-done-title { font-weight: 700; font-size: 18px; margin: 0 0 8px; }
.form-done p { margin: 0; color: var(--c-ink-soft); }
/* 返信を約束しきらないための注記。読める大きさは保ちつつ本文より一段落とす */
.form-done .form-done-note { margin-top: 10px; font-size: 13px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-ink);
  color: #fff;
  padding: 56px 0 32px;
}
.footer-inner { display: grid; gap: 28px; }
.footer-brand img { height: 40px; width: auto; max-width: none; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { color: #cfcfcf; font-size: 14px; transition: color .2s ease; }
.footer-nav a:hover { color: var(--c-yellow-soft); }
.footer-copy { margin: 0; color: #8a8a8a; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  /* smaller header on mobile so it never feels cramped */
  :root { --header-h: 60px; }
  .brand img { height: 32px; }
  .site-header .container { max-width: var(--maxw); }

  /* on mobile the hero flows from the top; keep H1 + lead + CTA in the first screen */
  .hero {
    display: block;
    min-height: 0;
    padding-top: clamp(28px, 8vw, 48px);
    background:
      radial-gradient(120% 55% at 82% -8%, var(--c-yellow-wash) 0%, transparent 62%),
      var(--c-bg);
  }
  .hero-glow { display: none; }
  .member-inner { grid-template-columns: 1fr; }
  .member-photo { max-width: 280px; }

  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    padding: 8px 0 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-menu li { padding: 0 var(--pad); }
  .nav-menu a { display: block; padding: 14px 0; font-size: 16px; }
  .nav-cta { text-align: center; margin: 8px 0; }

  /* dim the page behind the open menu; click to close */
  .nav-backdrop {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(26, 26, 26, 0.32);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s;
    z-index: 40;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
}

/* lock background scroll while the mobile menu is open (no position jump) */
body.nav-open { overflow: hidden; }
.nav-backdrop { display: none; }
@media (max-width: 860px) { .nav-backdrop { display: block; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
