/* ==========================================================================
   BizLab — first draft
   Pure white base, neutral greys, near-black text, restrained gold accent.
   ========================================================================== */

:root {
  --bg: #ffffff;          /* page */
  --bg-alt: #ffffff;      /* cards, form */
  --bg-band: #f6f6f6;     /* alternating section bands */
  --bg-deep: #ededed;     /* panels, image placeholders */
  --ink: #141414;         /* near-black text */
  --ink-2: #333333;       /* body copy */
  --ink-3: #666666;       /* secondary */
  --line: #e3e3e3;
  --gold: #b8975a;        /* rules, accents (non-text) */
  --gold-text: #86672d;   /* gold used for small text — 4.5:1+ on --bg */
  --gold-deep: #a5834a;   /* gold button hover */
  --error: #a3261b;
  --black: #000000;       /* matches the supplied white-on-black logo */

  --font-ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo UI", Meiryo,
             "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic UI", sans-serif;
  --font-en: "Helvetica Neue", Helvetica, "Segoe UI", Arial, var(--font-ja);  /* Segoe UI matches Meiryo UI's Latin on Windows */
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;

  --container: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(56px, 10vw, 128px);
  --header-h: 72px;
}
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .brand-logo { width: 100px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  word-break: auto-phrase;          /* natural Japanese line breaks where supported */
  overflow-wrap: anywhere;
}

h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

main:focus,
section[tabindex="-1"]:focus { outline: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.br-sp { display: none; }
@media (max-width: 640px) {
  .br-sp { display: inline; }
  .br-pc { display: none; }
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 36px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.button:hover { background: #2c2a26; border-color: var(--gold); }
.button-ghost {
  background: transparent;
  color: var(--ink);
}
.button-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.button-small {
  min-height: 42px;
  padding: 0 22px;
  font-size: 14px;
}
.button[disabled] { opacity: .55; cursor: progress; }

.arrow-down {
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand { display: block; }
.brand-logo { width: 112px; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-list a:not(.button) {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 1px no-repeat;
  transition: background-size .25s;
}
.nav-list a:not(.button):hover { background-size: 100% 1px; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    margin-right: -12px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 24px; height: 1.5px;
    background: var(--ink);
    transition: transform .2s, background-color .2s;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before,
  .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -7px; }
  .nav-toggle-bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 28px;
  }
  .js .site-nav:not(.is-open) { display: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list li:last-child { border-bottom: 0; padding-top: 20px; }
  .nav-list a:not(.button) { display: block; padding: 16px 0; font-size: 15px; background: none; }
  .nav-list .button { width: 100%; min-height: 52px; }
}

/* ---------- Shared section typography ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-text);
  line-height: 1.6;
}
.eyebrow::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--gold);
}

.section { padding-block: var(--section-y); }
.section-issues,
.section-cases,
.section-contact { background: var(--bg-band); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
.section-head-center .eyebrow::before { display: none; }

.section-head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 80px); }
.section-title {
  margin-top: 18px;
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.section-catch {
  margin-top: 28px;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink);
}
.section-intro { margin-top: 20px; }

.sub-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.sub-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.sub-intro { margin: -12px 0 32px; }

/* ---------- Hero ----------
   Goal: eyebrow, headline, lead and both CTAs inside the first screen on
   common devices (1280×720 / 1366×768 laptops, iPhone SE 375×667 and up).
   Vertical spacing is tied to viewport height so short screens compress. */

.hero {
  /* First screen is all white: the hero fills at least the viewport below the header,
     so the grey band of the next section starts below the fold. Content sits a little
     above centre (more padding at the bottom than the top). */
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding-block: clamp(24px, 4svh, 56px) clamp(48px, 9svh, 112px);
}
.hero > .container { flex: 1; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.hero-main { position: relative; }
.hero-main::before {             /* thin gold vertical rule */
  content: "";
  position: absolute;
  left: calc(-1 * clamp(16px, 2.4vw, 32px));
  top: 6px;
  width: 1px;
  height: 104px;
  background: var(--gold);
}
.hero-title {
  margin-top: clamp(14px, 2.6svh, 24px);
  font-size: clamp(30px, min(5.4vw, 8.6svh), 64px);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 0.07em;
  color: var(--ink);
}
.hero-lead {
  max-width: 640px;
  margin-top: clamp(16px, 3.2svh, 32px);
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.95;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(20px, 4svh, 40px);
}

/* Hero visual — team-meeting photo in a gold offset frame.
   Desktop: square crop keeping all three faces. Mobile: wide crop that bleeds off the right edge. */
.hero-visual {
  position: relative;
  margin: 0 16px 16px 0;
  justify-self: end;
  width: clamp(280px, 31vw, 400px);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1px solid var(--gold);
  pointer-events: none;
}
.hero-visual img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 62% 50%;
  background: var(--bg-deep);
}
@media (min-width: 961px) {
  .hero-inner { align-items: start; }
  .hero-visual { margin-top: 4px; }
}
@media (min-width: 961px) and (max-height: 700px) {
  .hero-visual { width: clamp(260px, 29vw, 380px); }
}
@media (max-width: 960px) {
  /* Tablet & phone: the photo becomes a full-width band directly under the header,
     with the copy and CTAs below it — all inside the first screen. */
  .hero { align-items: stretch; padding-top: 0; }
  .hero > .container { display: flex; }
  .hero-inner { display: flex; flex-direction: column; align-items: stretch; flex: 1; gap: clamp(22px, 4svh, 40px); }
  .hero-main::before { display: none; }
  .hero-visual {
    --band-min: clamp(120px, 24svh, 260px);
    order: -1;
    align-self: stretch;
    flex: 1 1 0;                    /* takes whatever height the copy doesn't need */
    min-height: var(--band-min);
    max-height: 56svh;
    width: auto;
    margin: 0 calc(-1 * var(--gutter));
  }
  .hero-visual::before {            /* short gold bar on the band's bottom edge */
    inset: auto auto -1px var(--gutter);
    width: 64px; height: 3px;
    border: 0;
    background: var(--gold);
    z-index: 1;
  }
  .hero-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-position: 55% 30%;
  }
}


@media (max-width: 640px) {
  .hero { padding-block: 0 40px; }
  .hero-title { font-size: clamp(28px, 8.4vw, 34px); }
  .hero-lead { font-size: 15px; line-height: 1.9; }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .hero-actions .button {
    min-height: 52px;
    padding: 0 12px;
    font-size: 14px;
    letter-spacing: 0.06em;
  }
}

/* ---------- 支援内容: steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  margin-bottom: clamp(72px, 9vw, 112px);
  counter-reset: step;
}
.step {
  padding: 32px 28px 8px 0;
  position: relative;
}
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step-num {
  display: block;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold-text);
}
.step-title {
  margin: 10px 0 12px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.step p { font-size: 15px; line-height: 1.9; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {               /* compact 2×2 on phones */
  .steps { margin-bottom: 56px; }
  .step, .step + .step { padding: 18px 12px 14px 0; }
  .step:nth-child(even) { padding-left: 14px; }
  .step-title { margin: 4px 0 6px; font-size: 16px; }
  .step p { font-size: 13px; line-height: 1.8; }
}

/* ---------- 支援内容: structure diagram (root → three areas) ---------- */

.tree-root {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 360px);
  margin: 8px auto 0;
  padding: 18px 24px;
  background: var(--ink);
  color: #fff;
  text-align: center;
  position: relative;
}
.tree-root-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #d8c193;
}
.tree-root-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.6;
}
.tree-root::after {               /* trunk */
  content: "";
  position: absolute;
  left: 50%; top: 100%;
  width: 1px; height: 28px;
  background: var(--gold);
}
.tree-branches { position: relative; margin-top: 56px; }
.tree-branches::before {          /* horizontal bar across branch centres */
  content: "";
  position: absolute;
  top: -28px;
  left: calc((100% - 48px) / 6);
  right: calc((100% - 48px) / 6);
  height: 1px;
  background: var(--gold);
}
.tree-branches .area { position: relative; }
.tree-branches .area::before {    /* drop to each card */
  content: "";
  position: absolute;
  left: 50%; top: -29px;
  width: 1px; height: 27px;
  background: var(--gold);
}
@media (max-width: 860px) {
  .tree-root { width: 100%; }
  .tree-branches { margin-top: 28px; }
  .tree-branches::before { display: none; }
  .tree-root::after { height: 28px; }
  .tree-branches .area::before { left: 50%; top: -17px; height: 16px; }
  .tree-branches .area:first-child::before { display: none; }
}

/* ---------- 支援内容: areas ---------- */

.areas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.area {
  padding: 36px 32px 32px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
}
.area-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 12px;
}
.area > p { font-size: 15px; line-height: 1.9; }
.area-list {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
}
.area-list li {
  position: relative;
  padding: 6px 0 6px 18px;
}
.area-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 18px;
  width: 8px; height: 1px;
  background: var(--gold);
}
@media (max-width: 860px) {
  .areas { grid-template-columns: 1fr; gap: 16px; }
  .area { padding: 28px 24px 24px; }
}

.outcome {
  margin-top: clamp(56px, 7vw, 80px);
  padding: clamp(32px, 4vw, 48px) clamp(24px, 4vw, 56px);
  background: var(--ink);
  color: #e2e2e2;
}
.outcome-title {
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 12px;
}
.outcome-title::before {
  content: "";
  display: block;
  width: 32px; height: 1px;
  margin-bottom: 20px;
  background: var(--gold);
}

/* ---------- 支援事例 ---------- */

.case {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 44px);
}
.case-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-en), var(--font-ja);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold-text);
}
.case-status {
  padding: 2px 10px;
  border: 1px solid var(--gold);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold-text);
  font-family: var(--font-ja);
}
.case-title {
  margin: 14px 0 24px;
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.case-meta {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-block: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
}
.case-meta div { display: grid; grid-template-columns: 4em 1fr; gap: 12px; }
.case-meta dt { color: var(--ink-3); }
.case-meta dd { color: var(--ink); }

.case-flow { margin-top: 8px; }
.case-flow li {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 16px;
  padding: 18px 0;
  font-size: 15px;
  line-height: 1.9;
}
.case-flow li + li { border-top: 1px dashed var(--line); }
.flow-label {
  position: relative;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  line-height: 1.9;
}
.case-flow li:not(:last-child) .flow-label::after {   /* 課題 → 支援内容 → 結果 */
  content: "→";
  margin-left: .5em;
  color: var(--gold);
  font-weight: 400;
}

/* Lead case */
.case-feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(32px, 5vw, 64px);
  border-top: 3px solid var(--gold);
  margin-bottom: 24px;
}
.case-feature .case-title { font-size: clamp(22px, 2.6vw, 28px); }
.case-feature .case-flow { margin-top: -18px; }
.case-feature .case-flow li { font-size: 16px; }

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 1100px) {
  .case-feature { grid-template-columns: 1fr; gap: 8px; }
  .case-feature .case-flow { margin-top: 8px; }
}
@media (max-width: 860px) {
  .case-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 560px) {
  .case-flow li { grid-template-columns: 1fr; gap: 4px; }
  .case-flow li:not(:last-child) .flow-label::after { content: none; }
}

/* Testimonials (template, currently commented out in index.html) */
.voices { margin-top: clamp(56px, 7vw, 88px); }
.voice {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.voice blockquote {
  font-size: 17px;
  line-height: 2;
  color: var(--ink);
}
.voice figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------- 代表・会社概要 ---------- */

.rep-photo {
  position: relative;
  margin: 0;
  align-self: start;
}
.rep-photo::before {              /* panel the cutout stands on */
  content: "";
  position: absolute;
  inset: 18% 0 0 0;
  background: var(--bg-deep);
  border-top: 2px solid var(--gold);
}
.rep-photo img {
  position: relative;
  width: 100%;
  height: auto;
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.profile-head {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gold);
}
.profile-role {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.profile-name {
  margin-top: 4px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--ink);
  line-height: 1.6;
}
.profile-body p { font-size: 15px; }
.profile-body p + p { margin-top: 1.1em; }

.about-grid .company {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(32px, 5vw, 64px);
}
.company {
  border-top: 1px solid var(--ink);
  font-size: 15px;
  line-height: 1.8;
}
.company div {
  display: grid;
  grid-template-columns: 6em 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.company dt { color: var(--ink-3); font-size: 14px; }
.company dd { color: var(--ink); }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .company { grid-template-columns: 1fr; }
  .rep-photo { max-width: 300px; }
}

/* ---------- お問い合わせ ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.contact-head { margin-bottom: 0; }
.contact-mail {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.9;
}
.contact-mail a {
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-underline-offset: 4px;
  text-decoration-color: var(--gold);
}

.contact-form {
  background: var(--bg-alt);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
}
.field + .field { margin-top: 28px; }
.field label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.req {
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.1em;
  color: var(--gold-text);
  border: 1px solid var(--gold);
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cccccc;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;      /* ≥16px avoids iOS zoom on focus */
  line-height: 1.7;
  letter-spacing: 0.02em;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 180px; }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.field [aria-invalid="true"] {
  border-color: var(--error);
  background: #fffafa;
}
.field-hint {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.7;
}
.field-error {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--error);
  line-height: 1.7;
}
.field-error:empty { display: none; }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-note {
  margin-top: 28px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.8;
}
.button-submit {
  width: 100%;
  margin-top: 20px;
  min-height: 60px;
  font-size: 16px;
}

.form-summary,
.form-result {
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.8;
}
.form-summary:focus,
.form-result:focus { outline: none; }
.form-summary {
  margin-bottom: 28px;
  border: 1px solid var(--error);
  border-left-width: 4px;
  color: var(--error);
  background: #fffafa;
}
.form-summary ul { margin-top: 6px; padding-left: 1.2em; list-style: disc; }
.form-summary a { color: inherit; }
.form-result { margin-top: 24px; border: 1px solid var(--line); border-left: 4px solid var(--gold); background: var(--bg-band); color: var(--ink); }
.form-result strong { display: block; margin-bottom: 4px; font-size: 15px; }
.form-result.is-preview { border-left-color: #8a8a8a; border-style: dashed; border-left-style: solid; }
.form-result.is-error { border-left-color: var(--error); color: var(--error); }
.preview-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 0 8px;
  background: #4a4a4a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

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

.site-footer {
  background: var(--black);
  color: #a8a8a8;
  padding-block: 56px 36px;
  font-size: 13px;
  line-height: 1.9;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px 48px;
  align-items: start;
}
.footer-logo { width: 104px; margin-bottom: 16px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-nav a { color: #e6e6e6; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.footer-copy {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid #262626;
  font-size: 12px;
  letter-spacing: 0.08em;
}
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Active section in the header nav ---------- */

.nav-list a[aria-current="true"]:not(.button) { background-size: 100% 1px; color: var(--ink); }

/* ---------- こんな課題はありませんか ---------- */

.issues {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.issue {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.issue-num {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold-text);
}
.issues-note {
  max-width: 760px;
  margin: clamp(32px, 4vw, 48px) auto 0;
  text-align: center;
}
@media (max-width: 860px) {
  .issues { grid-template-columns: 1fr 1fr; gap: 10px; }
  .issue { padding: 18px 16px; font-size: 15px; gap: 6px; }
  .issues-note { text-align: left; font-size: 15px; }
}

/* ---------- 支援事例: headline figures ---------- */

.case-result {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gold);
}
.case-result-label {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.case-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 36px;
}
.stat dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  line-height: 1.6;
}
.stat dd {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.stat strong {
  font-family: var(--font-en);
  font-size: 34px;
  font-weight: 600;
  color: var(--gold-text);
  letter-spacing: 0;
  margin: 0 2px;
}
.stat-main strong { font-size: clamp(44px, 5vw, 56px); }
.case .case-meta { border-bottom: 0; }
.case-flow li:first-child { border-top: 1px solid var(--line); }
.case-scope { padding-top: 16px; border-top: 1px solid var(--line); }

.case-scope { margin-top: 0; padding-bottom: 16px; }
.case-scope-label { font-size: 12px; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 8px; }
.case-scope ul { display: flex; flex-wrap: wrap; gap: 8px; }
.case-scope li {
  padding: 4px 12px;
  border: 1px solid var(--gold);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
}

/* ---------- 代表: message & career ---------- */

.rep-message {
  margin: 0 0 32px;
  padding-left: 20px;
  border-left: 2px solid var(--gold);
  font-size: 16px;
  line-height: 2;
  color: var(--ink);
}
.rep-message p + p { margin-top: .8em; }
.profile-sub {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.career li {
  position: relative;
  padding: 10px 0 10px 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.8;
}
.career li::before {
  content: "";
  position: absolute;
  left: 0; top: 22px;
  width: 8px; height: 1px;
  background: var(--gold);
}

/* ---------- お問い合わせ: ご相談の流れ ---------- */

.flow-title {
  margin: 36px 0 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.contact-flow li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  line-height: 1.7;
}
.contact-flow li:last-child { border-bottom: 1px solid var(--line); }
.cf-num {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold-text);
  padding-top: 2px;
}
.contact-flow strong { display: block; font-size: 15px; color: var(--ink); }
.contact-flow span:not(.cf-num) { font-size: 13px; color: var(--ink-3); }

/* ---------- Phones: tighten the long middle of the page ---------- */

@media (max-width: 640px) {
  .section-head { margin-bottom: 32px; }
  .section-catch { margin-top: 16px; }
  .section-intro { margin-top: 12px; font-size: 15px; }
  .sub-title { margin-bottom: 20px; }
  .area > p { font-size: 13px; line-height: 1.8; margin-top: 2px; }
  .area { padding: 20px 18px; }
  .area-title { margin-bottom: 4px; font-size: 17px; }
  .area-list { margin-top: 8px; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 0 14px; }
  .area-list li { padding: 2px 0 2px 14px; font-size: 13px; }
  .area-list li::before { top: 13px; width: 6px; }
  .outcome { margin-top: 40px; }
  .case-flow li { padding: 12px 0; font-size: 14px; line-height: 1.85; }
  .case-feature .case-flow li { font-size: 14px; }
  .rep-message { font-size: 15px; }
  .step, .step + .step { padding-block: 14px 12px; }
  .contact-flow { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .contact-flow li { grid-template-columns: 28px 1fr; padding: 10px 0; }
  .contact-flow li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .contact-flow span:not(.cf-num) { display: block; font-size: 12px; line-height: 1.6; margin-top: 2px; }
  .flow-title { margin-top: 28px; }
  .career li { font-size: 13px; padding-block: 8px; }
  .issues-note { margin-top: 24px; }
}
@media (min-width: 1101px) {
  .case-feature .case-flow li:first-child { border-top: 0; }
}

/* ---------- Safari/Firefox: BudouX phrase breaks (see js/main.js) ---------- */

budoux-ja { word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- Line icons ---------- */

.icon {
  width: 40px; height: 40px;
  flex: none;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.25;
  stroke-linecap: square;
  stroke-linejoin: miter;
  overflow: visible;
}
symbol .g { stroke: var(--gold); }
.issue-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}
.area-icon { width: 40px; height: 40px; margin-bottom: 14px; }
@media (max-width: 860px) {
  .issue .icon { width: 30px; height: 30px; }
}
@media (max-width: 640px) {
  .area-icon { width: 32px; height: 32px; margin-bottom: 8px; }
}

/* ---------- 支援内容: header with image ---------- */

.service-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.service-head .section-head { margin-bottom: 0; }
.service-visual {
  position: relative;
  margin: 0 16px 16px 0;
}
.service-visual::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1px solid var(--gold);
  pointer-events: none;
}
.service-visual img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 60% 50%;
  background: var(--bg-deep);
}
@media (max-width: 860px) {
  .service-head { grid-template-columns: 1fr; gap: 28px; margin-bottom: 40px; }
  .service-visual img { aspect-ratio: 2 / 1; }
}

/* ---------- Hero: scroll cue (tall desktop screens only) ---------- */

.hero { position: relative; }
.scroll-cue { display: none; }
@media (min-width: 961px) and (min-height: 760px) {
  .scroll-cue {
    position: absolute;
    left: 50%; bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--font-en);
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink-3);
  }
  .scroll-cue::after {
    content: "";
    width: 1px; height: 40px;
    background: linear-gradient(var(--gold) 50%, var(--line) 50%) 0 0 / 1px 200%;
  }
}
@media (min-width: 961px) and (min-height: 760px) and (prefers-reduced-motion: no-preference) {
  .scroll-cue::after { animation: scroll-cue 2.4s ease-in-out infinite; }
  @keyframes scroll-cue { from { background-position: 0 100%; } to { background-position: 0 -100%; } }
}

/* ---------- 支援事例: お客様の声 (one per case) ---------- */

.case-voice {
  margin-top: 20px;
  padding: 20px 22px 18px 52px;
  position: relative;
  background: var(--bg-band);
  border-left: 2px solid var(--gold);
}
.case-voice::before {                 /* thin serif quote mark */
  content: "“";
  position: absolute;
  left: 18px; top: 8px;
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 1;
  color: var(--gold);
}
.case-voice blockquote { font-size: 15px; line-height: 1.9; color: var(--ink); }
.case-voice figcaption { margin-top: 8px; font-size: 12px; letter-spacing: 0.06em; color: var(--ink-3); }
@media (min-width: 1101px) {      /* lead case: [title+details | 課題・支援内容] / [結果 | お客様の声] */
  .case-feature {
    grid-template-areas: "head flow" "result voice";
    row-gap: 0;
  }
  .case-feature .case-head { grid-area: head; }
  .case-feature .case-flow { grid-area: flow; }
  .case-feature .case-result { grid-area: result; margin-top: 8px; }
  .case-feature .case-voice { grid-area: voice; align-self: end; margin-top: 8px; }
}

/* Placeholder state — visibly a slot, never mistaken for a real quote */
.case-voice.is-placeholder {
  background: transparent;
  border: 1px dashed #c9c9c9;
  border-left: 2px solid var(--gold);
}
.case-voice.is-placeholder blockquote { color: var(--ink-3); }
.voice-tag {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-text);
}
@media (max-width: 640px) {
  .case-voice { padding: 16px 16px 14px 44px; }
  .case-voice::before { left: 14px; font-size: 34px; }
  .case-voice blockquote { font-size: 14px; }
}

/* ---------- 事例02・03: shared rows so both cards line up (CSS subgrid) ----------
   Each card has 6 rows: label / title / details / 結果 or 支援範囲 / 課題・支援内容 / お客様の声.
   Subgrid makes row heights match across the two cards, so the voices sit on one line. */
@media (min-width: 861px) {
  @supports (grid-template-rows: subgrid) {
    .case-grid { grid-template-rows: repeat(6, auto); row-gap: 0; }
    .case-grid > .case {
      display: grid;
      grid-row: span 6;
      grid-template-rows: subgrid;
      align-content: start;
    }
    .case-grid > .case > .case-flow { align-self: start; }
    .case-grid > .case > .case-meta { align-content: start; }
    .case-grid > .case > .case-voice { align-self: end; }
  }
}

/* ---------- Phones with short screens (e.g. iPhone SE): keep the CTAs above the fold ---------- */
@media (max-width: 640px) and (max-height: 700px) {
  .hero-visual { --band-min: clamp(96px, 17svh, 200px); }
  .hero-inner { gap: 18px; }
  .hero-title { font-size: clamp(26px, 7.6vw, 32px); margin-top: 10px; }
  .hero-lead { font-size: 14px; line-height: 1.8; margin-top: 12px; }
  .hero-actions { margin-top: 18px; }
}
@media (min-width: 641px) and (max-width: 960px) {
  .hero-visual { --band-min: clamp(220px, 34svh, 420px); }
}

/* ---------- 支援事例: standardised figures (same size for every number) ---------- */

.case-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
  border-top: 0;
}
.stat {
  display: flex;
  flex-direction: column-reverse;        /* number on top, label underneath */
  justify-content: flex-end;
  gap: 4px;
  padding: 4px 16px 4px 0;
}
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat dd {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  white-space: nowrap;
}
.stat strong,
.stat-main strong {
  font-family: var(--font-en);
  font-size: clamp(34px, 3.2vw, 42px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--gold-text);
  margin: 0 2px;
}
.stat dt {
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

/* 結果 and 支援範囲 share one heading style and the same gold rule */
.case-result,
.case-grid .case-scope,
.case-scope {
  margin-top: 0;
  padding-top: 18px;
  padding-bottom: 18px;
  border-top: 1px solid var(--gold);
}
.case-result-label,
.case-scope-label {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.case-feature .case-result { margin-top: 8px; }

@media (max-width: 640px) {
  .case-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .stat strong, .stat-main strong { font-size: 32px; }
  .stat + .stat { padding-left: 14px; }
}


/* ==========================================================================
   Accent pass — gold used more deliberately (steps, card edges, form edge, CTA hover)
   ========================================================================== */

/* Primary CTAs: near-black at rest, gold on hover (dark text keeps contrast ≈ 7:1). */
.button:not(.button-ghost) { transition: background-color .25s, border-color .25s, color .25s; }
.button:not(.button-ghost):hover,
.button:not(.button-ghost):focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

/* 支援の進め方: large gold numerals */
.step-num {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--gold);
}
.step-title { margin-top: 14px; }
@media (max-width: 560px) { .step-num { font-size: 24px; } }

/* 課題 cards: thin gold top edge, like the 取り組む領域 cards */
.issue { border-top: 2px solid var(--gold); }

/* お問い合わせ: light band (as before); a thin gold edge on the form is the only accent */
.section-contact .contact-form { border-top: 2px solid var(--gold); }

/* ==========================================================================
   Life & personality — restrained motion, Mincho for human voices, small details
   ========================================================================== */

/* 7a. Gentle fade-up as sections enter (JS adds .motion to <html>; without it, everything is visible) */
@media (prefers-reduced-motion: no-preference) {
  .motion .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
  }
  .motion .reveal.is-visible { opacity: 1; transform: none; }

  /* 7b. Cards lift slightly on hover (pointer devices only) */
  @media (hover: hover) {
    .issue, .area {
      transition: transform .3s ease, box-shadow .3s ease;
    }
    .issue:hover, .area:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 28px rgba(20, 20, 20, .06);
    }
  }
}

/* 8. Mincho (Noto Serif JP) only for human voices: the representative's message and client quotes.
      Weights: 500 for longer paragraphs, 600 for short quotes. */
.rep-message,
.case-voice blockquote {
  font-family: var(--font-serif);
  letter-spacing: 0.04em;
}
.rep-message { font-size: 17px; line-height: 2.1; font-weight: 500; }
.case-voice blockquote { font-weight: 600; }
.case-voice.is-placeholder blockquote { font-weight: 500; }
@media (max-width: 640px) { .rep-message { font-size: 16px; } }
.case-voice .voice-tag { font-family: var(--font-ja); }

/* 9. Warmer line under the hero CTAs */
.hero-note {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
@media (max-width: 640px) { .hero-note { margin-top: 10px; font-size: 12px; } }

/* 10. Quiet 支援先の業界 row */
.industries {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin-top: 20px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.industries li { display: flex; align-items: center; }
.industries li + li:not(:nth-child(2))::before {
  content: "";
  width: 4px; height: 4px;
  margin: 0 14px;
  background: var(--gold);
  transform: rotate(45deg);
}
.industries-label { margin-right: 16px; color: var(--ink-3); font-size: 12px; }

/* 課題 cards: calmer statement type instead of heavy bold (less "slide bullet") */
.issue {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.issue-num { font-weight: 600; }
@media (max-width: 860px) { .issue { font-size: 15px; line-height: 1.8; } }

/* 課題 cards: body gothic at a medium weight, so they read as quick-scan items, not headlines */
.issue-text {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--ink);
}
@media (max-width: 860px) { .issue-text { font-size: 16px; } }
