/* ==========================================================================
   株式会社エガイテ コーポレートサイト
   ========================================================================== */

:root {
  /* ロゴの2色（#5d5755 / #b5b7b5）を基準にした無彩色のパレット */
  --ink: #5d5755;
  --soft: #7e7977;
  --faint: #a5a2a0;
  --logo-gray: #b5b7b5;
  --line: #e4e3e2;
  --line-strong: #b5b7b5;
  --bg: #f9f9f8;
  --surface: #fff;
  --tint: #f1f1f0;
  --accent: #5d5755;
  --accent-soft: #ededec;

  --font-jp: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, system-ui, sans-serif;
  --font-en: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --wrap: 1080px;
  --gutter: 24px;
  --radius: 6px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.9;
  font-feature-settings: "palt";
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
a:hover { color: var(--faint); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

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

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.nowrap { display: inline-block; }

/* Header
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 14px; font-weight: 500; text-decoration: none;
  padding-block: 6px; position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s;
}
.nav a:not(.btn):hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .ext::before { content: none; }

.ext-icon { width: 0.8em; height: 0.8em; margin-left: 0.35em; vertical-align: baseline; }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  border: 0; background: none; color: var(--ink); cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px; margin: 6px auto;
  background: currentColor; transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Buttons / links
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0 28px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: #fff;
  font: inherit; font-size: 15px; font-weight: 500; text-decoration: none;
  cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: #3f3a38; border-color: #3f3a38; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 20px; font-size: 14px; }
.btn--keikika { background: #fff; border-color: #fff; color: var(--ink); }
.btn--keikika:hover { background: var(--logo-gray); border-color: var(--logo-gray); color: #fff; }
.nav a.btn { padding-block: 0; color: #fff; }

.more {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-size: 15px; font-weight: 500; text-decoration: none;
  padding-bottom: 4px; border-bottom: 1px solid currentColor;
}
.more::after { content: "→"; font-family: var(--font-en); transition: transform 0.2s; }
.more:hover::after { transform: translateX(4px); }

/* Section basics
   ========================================================================== */

.section { padding-block: 104px; }
.section--tint { background: var(--tint); }
.section--tight { padding-block: 72px; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-en); font-size: 13px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--soft);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.heading {
  font-size: clamp(26px, 3.4vw, 36px); font-weight: 700;
  line-height: 1.5; letter-spacing: 0.06em;
}
.heading, .hero__lead, .lead, .cta__title, .cta__text, .keikika__title, .keikika__text,
.tree-detail__catch, .column__title, .page-hero h1 { word-break: auto-phrase; text-wrap: pretty; }
.cta__title, .cta__text { text-wrap: balance; }
.heading + .lead { margin-top: 24px; }
.lead { max-width: 44em; color: var(--soft); }

.section__head { margin-bottom: 56px; }
.section__head--row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}

sup.r { font-size: 0.55em; vertical-align: super; line-height: 0; margin-left: 0.05em; }

/* Hero
   ========================================================================== */

.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(to right, rgba(93, 87, 85, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(93, 87, 85, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center top;
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: 40px;
  min-height: min(640px, calc(100vh - var(--header-h)));
  padding-block: 72px;
}
.hero__tag {
  display: inline-block; margin-bottom: 28px; padding: 4px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg);
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em;
}
.hero__title {
  font-size: clamp(32px, 4.8vw, 60px); font-weight: 700;
  line-height: 1.4; letter-spacing: 0.08em;
}
.hero__title span { display: block; white-space: nowrap; }
.hero__lead { margin-top: 28px; max-width: 30em; color: var(--soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero__art svg { display: block; width: 100%; height: auto; }

.draw path, .draw line, .draw rect {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.1s cubic-bezier(0.6, 0, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 0.16s + 0.2s);
}
.draw .fade {
  opacity: 0; animation: fade 0.6s ease forwards;
  animation-delay: calc(var(--i, 0) * 0.16s + 0.7s);
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* Page hero (下層)
   ========================================================================== */

.page-hero {
  padding-block: 72px 64px; border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(to right, rgba(93, 87, 85, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(93, 87, 85, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.page-hero h1 {
  font-size: clamp(30px, 4.4vw, 46px); font-weight: 700;
  line-height: 1.45; letter-spacing: 0.08em;
}
.page-hero .lead { margin-top: 20px; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-size: 13px; color: var(--soft); }
.breadcrumb li + li::before { content: "／"; margin-right: 8px; color: var(--faint); }

/* About
   ========================================================================== */

.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.about__formula {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; letter-spacing: 0.08em; line-height: 1.5;
}
.about__formula .x { font-family: var(--font-en); font-weight: 400; color: var(--logo-gray); }
.about__body p + p { margin-top: 1.2em; }

/* Trees
   ========================================================================== */

.tree-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tree-card {
  display: flex; flex-direction: column;
  padding: 36px 32px 32px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.tree-card__no { font-family: var(--font-en); font-size: 13px; letter-spacing: 0.2em; color: var(--accent); }
.tree-card__title { margin-top: 6px; font-size: 26px; font-weight: 700; letter-spacing: 0.08em; line-height: 1.5; }
.tree-card__path { margin-top: 10px; font-size: 13px; color: var(--soft); }
.tree-card__figure {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  margin: 28px 0; padding: 24px 8px; background: var(--bg); border-radius: var(--radius);
}
.tree-card__text { color: var(--soft); font-size: 15px; }
.tree-card__foot { padding-top: 24px; }

.tm {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px;
  margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line-strong);
  font-size: 13px; color: var(--soft); line-height: 1.7;
}
.tm__badge {
  flex: none; padding: 1px 10px; border: 1px solid var(--accent); border-radius: 3px;
  color: var(--accent); font-size: 12px; font-weight: 500; letter-spacing: 0.1em;
}

/* Tree diagram */
.tree { --tree-line: var(--line-strong); --tree-gap: 22px; font-size: 13px; line-height: 1.4; letter-spacing: 0.02em; }
.tree ul { position: relative; display: flex; justify-content: center; }
.tree ul ul { padding-top: var(--tree-gap); }
.tree ul ul::before {
  content: ""; position: absolute; top: 0; left: 50%;
  height: var(--tree-gap); border-left: 1px solid var(--tree-line);
}
.tree li {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: var(--tree-gap) 5px 0;
}
.tree > ul > li { padding-top: 0; }
.tree li::before,
.tree li::after {
  content: ""; position: absolute; top: 0; width: 50%; height: var(--tree-gap);
  border-top: 1px solid var(--tree-line);
}
.tree li::before { right: 50%; }
.tree li::after { left: 50%; border-left: 1px solid var(--tree-line); }
.tree li:first-child::before,
.tree li:last-child::after { border-top: 0; }
.tree li:only-child::before { display: none; }
.tree > ul > li::before,
.tree > ul > li::after { display: none; }

.node {
  position: relative; z-index: 1;
  min-width: 88px; padding: 8px 12px;
  background: var(--surface); border: 1px solid var(--ink); border-radius: 4px;
  text-align: center;
}
.node__layer { display: block; font-size: 10.5px; color: var(--faint); letter-spacing: 0.12em; }
.node__name { display: block; font-weight: 700; }
.node__val { display: block; margin-top: 2px; font-size: 10.5px; color: var(--soft); }
.node--root { background: var(--ink); color: #fff; }
.node--root .node__layer { color: rgba(255, 255, 255, 0.65); }
.node--leaf { border-color: var(--logo-gray); background: var(--tint); }

.tree-caption { margin-top: 16px; text-align: center; font-size: 12px; color: var(--faint); }

/* Tree detail (ツリー解説ページ) */
.tree-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.tree-detail__figure {
  position: sticky; top: calc(var(--header-h) + 24px);
  padding: 40px 16px 28px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.tree-detail__no { font-family: var(--font-en); font-size: 13px; letter-spacing: 0.2em; color: var(--accent); }
.tree-detail__title { margin-top: 4px; font-size: clamp(28px, 3.6vw, 38px); font-weight: 700; letter-spacing: 0.08em; line-height: 1.5; }
.tree-detail__catch { margin-top: 16px; font-size: 18px; font-weight: 500; line-height: 1.8; }
.tree-detail__body { margin-top: 20px; color: var(--soft); }
.tree-detail__body p + p { margin-top: 1.2em; }

.layers { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.layers li {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
}
.layers li span { padding: 4px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); }
.layers li + li::before { content: "→"; font-family: var(--font-en); color: var(--faint); }

.points { margin-top: 28px; border-top: 1px solid var(--line); }
.points li {
  position: relative; padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.8;
}
.points li::before {
  content: ""; position: absolute; left: 4px; top: 1.55em;
  width: 10px; height: 1px; background: var(--logo-gray);
}

.tm-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); }
.tm-table th, .tm-table td { padding: 18px 20px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; line-height: 1.7; }
.tm-table thead th { background: var(--tint); font-size: 13px; font-weight: 500; color: var(--soft); letter-spacing: 0.1em; }
.tm-table tbody th { font-weight: 700; white-space: nowrap; }
.tm-table .num { font-family: var(--font-en); font-size: 16px; letter-spacing: 0.06em; }

.note { margin-top: 16px; font-size: 13px; color: var(--soft); line-height: 1.8; }

/* Column (代表コラム) */
.column {
  padding: 48px; background: var(--surface);
  border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: var(--radius);
}
.column__label { font-size: 13px; font-weight: 500; letter-spacing: 0.12em; color: var(--soft); }
.column__title { margin-top: 10px; font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; line-height: 1.6; letter-spacing: 0.06em; }
.column__sub { margin-top: 6px; color: var(--soft); font-size: 15px; }
.column__body { margin-top: 24px; max-width: 46em; }
.column__body p + p { margin-top: 1.2em; }
.column__sign { margin-top: 28px; font-size: 14px; color: var(--soft); }
.column__sign strong { margin-right: 0.8em; color: var(--ink); font-size: 16px; }

/* Services
   ========================================================================== */

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.service { padding: 32px 28px 8px 0; }
.service + .service { padding-left: 28px; border-left: 1px solid var(--line); }
.service__no { font-family: var(--font-en); font-size: 13px; letter-spacing: 0.2em; color: var(--accent); }
.service__title { margin-top: 8px; font-size: 20px; font-weight: 700; letter-spacing: 0.08em; }
.service__list { margin-top: 16px; font-size: 14.5px; color: var(--soft); line-height: 1.8; }
.service__list li { position: relative; padding-left: 1.1em; }
.service__list li + li { margin-top: 4px; }
.service__list li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 5px; height: 1px; background: var(--faint); }

/* Business
   ========================================================================== */

.biz { border-top: 1px solid var(--ink); }
.biz__row {
  display: grid; grid-template-columns: 3.5em minmax(0, 1fr) minmax(0, 1.5fr) auto;
  gap: 16px 32px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line);
}
.biz__no { font-family: var(--font-en); font-size: 14px; letter-spacing: 0.2em; color: var(--accent); padding-top: 4px; }
.biz__name { font-size: 20px; font-weight: 700; letter-spacing: 0.08em; line-height: 1.5; }
.biz__en { margin-top: 2px; font-family: var(--font-en); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.biz__text { font-size: 14.5px; color: var(--soft); line-height: 1.8; padding-top: 3px; }
.biz__link { padding-top: 3px; white-space: nowrap; }

.biz-index { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.biz-index a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 18px 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg);
  font-size: 14px; font-weight: 500; text-decoration: none; transition: border-color 0.2s, color 0.2s;
}
.biz-index a span { font-family: var(--font-en); font-size: 12px; letter-spacing: 0.15em; color: var(--accent); }
.biz-index a:hover { border-color: var(--ink); color: var(--ink); }

.biz-detail__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.biz-detail__no { font-family: var(--font-en); font-size: 14px; letter-spacing: 0.2em; color: var(--accent); }
.biz-detail__no span { margin-left: 0.6em; color: var(--faint); text-transform: uppercase; font-size: 12px; }
.biz-detail__title { margin-top: 6px; font-size: clamp(28px, 3.6vw, 38px); font-weight: 700; letter-spacing: 0.08em; line-height: 1.5; }
.biz-detail__catch { margin-top: 14px; font-size: 18px; font-weight: 500; line-height: 1.8; }
.biz-detail__body { margin-top: 18px; color: var(--soft); }
.biz-detail__body p + p { margin-top: 1.2em; }

.biz-aside {
  position: sticky; top: calc(var(--header-h) + 24px);
  padding: 36px 32px; background: var(--surface);
  border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: var(--radius);
}
.biz-aside__label { font-size: 13px; letter-spacing: 0.12em; color: var(--soft); }
.biz-aside__title { margin-top: 8px; font-size: 28px; font-weight: 700; letter-spacing: 0.1em; line-height: 1.4; }
.biz-aside__text { margin-top: 12px; font-size: 15px; color: var(--soft); }
.biz-aside .more { margin-top: 24px; }
.biz-aside--pending { border-top-color: var(--line-strong); background: var(--tint); }
.biz-aside--pending .biz-aside__title { color: var(--soft); }

/* Works
   ========================================================================== */

.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.work {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color 0.2s, transform 0.2s;
}
a.work:hover { color: inherit; border-color: var(--ink); transform: translateY(-2px); }
.work__thumb {
  display: grid; place-items: center; aspect-ratio: 16 / 9;
  background: var(--tint); color: var(--faint);
  font-family: var(--font-en); font-size: 12px; letter-spacing: 0.2em;
}
.work__thumb img { width: 100%; height: 100%; object-fit: cover; }
.work__body { padding: 24px 28px 28px; }
.work__name { font-size: 20px; font-weight: 700; letter-spacing: 0.08em; }
.work__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.work__tags li { padding: 1px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; color: var(--soft); }
.work__text { margin-top: 12px; font-size: 14.5px; color: var(--soft); line-height: 1.8; }

.case { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; padding-block: 56px; border-top: 1px solid var(--line); }
.case:last-child { border-bottom: 1px solid var(--line); }
.case__thumb { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--tint); border-radius: var(--radius); color: var(--faint); font-family: var(--font-en); font-size: 12px; letter-spacing: 0.2em; overflow: hidden; }
.case__thumb img { width: 100%; height: 100%; object-fit: cover; }
.case__no { font-family: var(--font-en); font-size: 13px; letter-spacing: 0.2em; color: var(--accent); }
.case__name { margin-top: 4px; font-size: clamp(24px, 3vw, 30px); font-weight: 700; letter-spacing: 0.08em; line-height: 1.5; }
.case__dl { margin-top: 24px; border-top: 1px solid var(--line); }
.case__dl > div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.case__dl dt { color: var(--soft); font-size: 13px; letter-spacing: 0.1em; padding-top: 2px; }
.pending { color: var(--faint); }

/* Keikika
   ========================================================================== */

.keikika { background: var(--ink); color: #fff; }
.keikika__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.keikika .eyebrow { color: var(--logo-gray); }
.keikika__name { font-size: 15px; font-weight: 500; letter-spacing: 0.12em; opacity: 0.85; }
.keikika__title { margin-top: 8px; font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; line-height: 1.55; letter-spacing: 0.06em; }
.keikika__text { margin-top: 20px; max-width: 36em; opacity: 0.9; }
.keikika__actions { margin-top: 32px; }
.steps { display: grid; gap: 12px; }
.steps li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; align-items: baseline;
  padding: 18px 22px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}
.steps__no { font-family: var(--font-en); font-size: 12px; letter-spacing: 0.2em; opacity: 0.7; }
.steps__name { font-size: 20px; font-weight: 700; letter-spacing: 0.1em; }
.steps__text { grid-column: 2; font-size: 14px; opacity: 0.85; line-height: 1.7; }

/* Profile
   ========================================================================== */

.profile { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 56px; align-items: start; }
.profile__photo { aspect-ratio: 4 / 3; background: var(--tint); border-radius: var(--radius); overflow: hidden; }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; }
.profile__role { font-size: 14px; color: var(--soft); }
.profile__name { margin-top: 6px; font-size: 30px; font-weight: 700; letter-spacing: 0.14em; line-height: 1.4; }
.profile__kana { margin-left: 1em; font-size: 13px; font-weight: 400; color: var(--soft); letter-spacing: 0.12em; }
.profile__text { margin-top: 20px; max-width: 44em; }

/* Company
   ========================================================================== */

.info { border-top: 1px solid var(--ink); }
.info > div { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.info dt { font-weight: 700; font-size: 15px; }
.info dd h3 { font-size: 15px; font-weight: 700; }
.info dd h3:not(:first-child) { margin-top: 16px; }
.info dd p { color: var(--soft); font-size: 15px; }
.info dd li { font-size: 15px; }

/* CTA
   ========================================================================== */

.cta { background: var(--tint); color: var(--ink); text-align: center; border-top: 1px solid var(--line); }
.cta .eyebrow { justify-content: center; color: var(--soft); }
.cta .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.cta__title { font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; line-height: 1.6; letter-spacing: 0.08em; }
.cta__text { margin: 20px auto 0; max-width: 36em; color: var(--soft); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* Form
   ========================================================================== */

.form { max-width: 720px; }
.field { margin-top: 28px; }
.field > label, .field > .label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 700; }
.req, .opt { margin-left: 10px; padding: 1px 8px; border-radius: 3px; font-size: 11px; font-weight: 500; letter-spacing: 0.1em; vertical-align: 2px; }
.req { background: var(--ink); color: #fff; }
.opt { background: var(--tint); color: var(--soft); }
.input, .textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface);
  font: inherit; font-size: 16px; color: var(--ink); line-height: 1.6;
}
.textarea { min-height: 200px; resize: vertical; }
.input:focus, .textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; }
.policy {
  margin-top: 40px; padding: 24px 28px; max-height: 240px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  font-size: 13.5px; color: var(--soft); line-height: 1.9;
}
.policy h3 { margin-bottom: 8px; font-size: 14px; color: var(--ink); }
.policy li { padding-left: 1.4em; text-indent: -1.4em; }
.form__agree { margin-top: 20px; }
.form__submit { margin-top: 36px; }
.form__msg { margin-top: 20px; padding: 14px 18px; border-radius: 4px; font-size: 15px; }
.form__msg[hidden] { display: none; }
.form__msg--ok { background: #eef5ee; color: #2f5d34; }
.form__msg--ng { background: var(--accent-soft); color: var(--ink); border: 1px solid var(--line-strong); }

.callout {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-bottom: 48px; padding: 20px 24px; max-width: 720px;
  background: var(--tint); border-radius: var(--radius);
  font-size: 14.5px; line-height: 1.8;
}
.callout a { color: var(--ink); font-weight: 700; }

/* Prose (プライバシーポリシー)
   ========================================================================== */

.prose { max-width: 760px; }
.prose h2 { margin-top: 48px; margin-bottom: 12px; font-size: 19px; font-weight: 700; letter-spacing: 0.06em; }
.prose p + p { margin-top: 1em; }
.prose ol { list-style: decimal; padding-left: 1.6em; }
.prose ul { list-style: disc; padding-left: 1.6em; }
.prose ol ol { list-style: lower-roman; margin-block: 6px; }
.prose li { margin-top: 6px; font-size: 15px; }
.prose p { font-size: 15px; }

/* Footer
   ========================================================================== */

.site-footer { padding-block: 64px 32px; background: var(--ink); color: rgba(255, 255, 255, 0.85); font-size: 14px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 56px; }
.site-footer .logo img { height: 44px; }
.site-footer__addr { margin-top: 20px; font-style: normal; line-height: 1.9; font-size: 13.5px; opacity: 0.85; }
.site-footer__title { margin-bottom: 12px; font-family: var(--font-en); font-size: 12px; letter-spacing: 0.2em; opacity: 0.6; }
.site-footer__nav li + li { margin-top: 6px; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px; opacity: 0.7; line-height: 1.8;
}

/* Reveal
   ========================================================================== */

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Responsive
   ========================================================================== */

@media (max-width: 900px) {
  :root { --header-h: 64px; --gutter: 20px; }
  .section { padding-block: 72px; }
  .section--tight { padding-block: 56px; }
  .section__head { margin-bottom: 40px; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav a:not(.btn)::after { display: none; }
  .nav a.btn { margin-top: 20px; min-height: 48px; }

  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 24px; min-height: 0; padding-block: 56px 40px; }
  .hero__title { font-size: clamp(34px, 9vw, 56px); }
  .hero__art { max-width: 440px; margin-inline: auto; width: 100%; }

  .about, .tree-detail, .keikika__inner, .case, .biz-detail__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .biz-aside { position: static; padding: 28px 24px; }
  .biz__row { grid-template-columns: 2.5em minmax(0, 1fr); gap: 10px 16px; padding: 24px 0; }
  .biz__text, .biz__link { grid-column: 2; padding-top: 0; }
  .tree-detail__figure { position: static; order: 2; }
  .tree-cards, .works { grid-template-columns: minmax(0, 1fr); }
  .services { grid-template-columns: minmax(0, 1fr); }
  .service, .service + .service { padding: 28px 0; border-left: 0; }
  .service + .service { border-top: 1px solid var(--line); }
  .profile { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .profile__photo { max-width: 100%; }
  .column { padding: 32px 24px; }
  .site-footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 24px; }
  .site-footer__brand { grid-column: 1 / -1; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .tree-card { padding: 28px 20px 24px; }
  .tree-card__figure { margin-inline: -8px; padding-inline: 0; }
  .tree { font-size: 11.5px; --tree-gap: 18px; }
  .tree li { padding-inline: 3px; }
  .node { min-width: 0; padding: 6px 8px; }
  .node__layer, .node__val { font-size: 9.5px; }
  .tree-detail__figure { padding: 28px 4px 20px; }
  .info > div { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 20px 0; }
  .case__dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tm-table thead { display: none; }
  .tm-table, .tm-table tbody, .tm-table tr, .tm-table th, .tm-table td { display: block; }
  .tm-table tr { padding: 16px 20px; border-bottom: 1px solid var(--line); }
  .tm-table th, .tm-table td { padding: 0; border: 0; }
  .tm-table td::before { content: attr(data-label) "："; color: var(--soft); font-size: 13px; font-family: var(--font-jp); }
  .btn { width: 100%; }
  .btn--sm { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .draw path, .draw line, .draw rect { animation: none; stroke-dashoffset: 0; }
  .draw .fade { animation: none; opacity: 1; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
