/* aibranche.jp: 自然でやさしい / 一本の枝が育つ
   色・文字・余白の基本は :root の変数にまとめています */
:root {
  --navy: #1F3F6E;
  --ink: #15283F;
  --sky: #9CC6E6;
  --leaf: #A9B8C6;
  --leaf-d: #8D9FB2;
  --olive: #6F7A5C;
  --paper: #F5F7F9;
  --band: #EAEFF4;
  --line: #D2DBE4;
  --sub: #43546A;
  --err: #A3362B;
  --mincho: "Shippori Mincho", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --gut: clamp(54px, 12vw, 176px);
  --pad-r: clamp(20px, 5vw, 72px);
  --sec: clamp(104px, 13vw, 184px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 16.5px;
  line-height: 1.95;
  letter-spacing: .02em;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 {
  font-family: var(--mincho);
  font-weight: 600;
  margin: 0;
  font-feature-settings: "palt";
  color: var(--ink);
}
.nb { display: inline-block; }
h1, h2, h3, .fv-lead, .worries-answer, .cta-text > p { word-break: auto-phrase; }
.sp { display: none; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 10;
  background: var(--navy);
  color: #fff;
  padding: 8px 14px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: var(--gut);
  padding-right: var(--pad-r);
}

/* header */
.site-header .header-inner {
  z-index: auto;
  display: flex;
  align-items: center;
  gap: 40px;
  height: 84px;
}
.logo img { width: auto; height: 38px; mix-blend-mode: multiply; }
.header-cta {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border: 1.5px solid var(--navy);
  padding: 9px 18px;
  border-radius: 3px;
  transition: background .25s, color .25s;
}
.header-cta:hover { background: var(--navy); color: #fff; }

/* buttons */
.btn {
  display: inline-block;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .05em;
  border-radius: 3px;
  transition: background .25s, box-shadow .25s;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  padding: 19px 32px;
  font-size: 16px;
}
.btn-primary:hover { background: var(--ink); }
.btn-text {
  color: var(--navy);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--sky);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
  transition: text-decoration-color .25s;
}
.btn-text:hover { text-decoration-color: var(--navy); }

/* the branch overlay */
main { position: relative; z-index: 0; display: block; background: var(--paper); }
.vine {
  position: absolute;
  top: 0; left: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.stem { fill: none; stroke: var(--olive); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.stem-fine { fill: none; stroke: var(--olive); stroke-width: 1; stroke-linecap: round; opacity: .42; }
.fv-stem.stem { stroke-width: 3.2; }
.fv-stem {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.3s cubic-bezier(.45, .05, .3, 1);
}
.vine.play .fv-stem { stroke-dashoffset: 0; }
.twig {
  fill: none;
  stroke: var(--olive);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset .9s cubic-bezier(.3, .2, .2, 1) var(--dl, 0ms);
}
.twig.on { stroke-dashoffset: 0; }
.leaf-a { fill: var(--leaf); }
.leaf-b { fill: var(--leaf-d); }
.rib { fill: none; stroke: var(--paper); stroke-width: .9; opacity: .6; stroke-linecap: round; }
.stalk { fill: none; stroke: var(--olive); stroke-width: 1.3; stroke-linecap: round; }
.ol-n { fill: var(--navy); }
.ol-s { fill: var(--sky); }
.node-ring { fill: var(--paper); stroke: var(--navy); stroke-width: 2.6; }
.node-dot { fill: var(--navy); }
.bud path { fill: var(--olive); }

/* each leaf unfolds from where it meets the stem */
.grow {
  opacity: 0;
  transform: rotate(var(--r0, -30deg)) scale(.12);
  transition:
    transform 1.25s cubic-bezier(.2, .85, .28, 1.1) var(--dl, 0ms),
    opacity .45s ease var(--dl, 0ms);
}
.on > .grow { opacity: 1; transform: none; }
.vine.instant *, .instant .step-no { transition: none !important; }

/* first view */
.fv-inner {
  min-height: clamp(620px, calc(100svh - 84px), 900px);
}
.fv-text {
  position: relative;
  z-index: 2;
  max-width: 34em;
  padding-top: clamp(40px, 9vh, 104px);
}
.fv h1 {
  font-size: clamp(34px, 4.7vw, 64px);
  line-height: 1.42;
  letter-spacing: .04em;
  font-weight: 600;
}
.fv-lead {
  margin-top: 28px;
  max-width: 29em;
  font-size: 17px;
  color: var(--sub);
}
.fv-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: 38px;
}
.fv-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.fv-labels {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}
.fl-name {
  display: block;
  font-family: var(--mincho);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.45;
  color: var(--navy);
}
.fl-sub { display: block; font-size: 13px; line-height: 1.6; color: var(--sub); }

.js .fv-labels { position: absolute; top: 0; left: 0; margin: 0; display: block; }
.js .fv-labels li {
  position: absolute;
  white-space: nowrap;
  padding: 4px 8px;
  text-shadow: 0 0 2px var(--paper), 0 0 4px var(--paper), 0 0 8px var(--paper);
  opacity: 0;
  transition: opacity .7s ease var(--dl, 0ms), translate .9s cubic-bezier(.2, .8, .2, 1) var(--dl, 0ms);
  translate: 0 8px;
}
.js .fv-labels li[data-side="up"] { transform: translate(-50%, -100%); text-align: center; }
.js .fv-labels li[data-side="left"] { transform: translate(-100%, -50%); text-align: right; }
.js .fv-labels li[data-side="down"] { transform: translate(-50%, 0); text-align: center; }
.js .fv-labels li.on { opacity: 1; translate: 0 0; }

/* sections */
.sec { padding-top: var(--sec); }
.sec h2 {
  font-size: clamp(26px, 3.1vw, 40px);
  line-height: 1.55;
  letter-spacing: .04em;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px clamp(32px, 6vw, 88px);
  align-items: start;
}

/* worries */
.worry-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.worry-list li {
  position: relative;
  padding: 20px 0 20px 36px;
  border-bottom: 1px solid var(--line);
}
.worry-list li::before,
.svc-main-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(20px + .98em);
  width: 20px;
  height: 9px;
  transform: translateY(-50%) rotate(-18deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 12'%3E%3Cpath d='M0 6C7 .5 19-2.6 31-1.4C37-.8 42 1.4 46 5.4C41 8.8 33 11.6 24 11.9C15 12.2 7 10 0 6Z' fill='%238D9FB2'/%3E%3C/svg%3E") no-repeat center / contain;
}
.worries-answer {
  margin-top: 44px;
  font-family: var(--mincho);
  font-weight: 500;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 2.05;
  color: var(--navy);
  max-width: 28em;
}

/* flow: the steps hang on the branch */
.steps { list-style: none; margin: 64px 0 0; padding: 0; }
.step { position: relative; padding-bottom: 76px; }
.step:last-child { padding-bottom: 0; }
.step-no {
  position: absolute;
  left: calc(var(--gut) * -.55 - 20px);
  top: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: var(--paper);
  color: var(--navy);
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  transition: background .6s ease, color .6s ease, transform .6s cubic-bezier(.2, .9, .3, 1.3);
}
.js .step:not(.on) .step-no { transform: scale(.82); }
.step.on .step-no { background: var(--navy); color: #fff; }
.step-body {
  display: grid;
  grid-template-columns: minmax(0, 15em) minmax(0, 1fr);
  gap: 8px clamp(24px, 4vw, 64px);
  align-items: start;
}
.step h3 { font-size: clamp(21px, 2vw, 26px); line-height: 1.55; padding-top: 1px; }
.step-text { max-width: 34em; }
.step-meta {
  display: inline-block;
  margin-top: 16px;
  padding: 3px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  background: var(--band);
  border-radius: 2px;
}

/* service */
.service {
  background: var(--band);
  padding-bottom: var(--sec);
  margin-top: var(--sec);
}
.service h2 { margin-bottom: 48px; }
.svc-main {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px clamp(32px, 5vw, 72px);
  padding: clamp(28px, 4.4vw, 60px);
  background: #fff;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
}
.svc-main h3 { font-size: clamp(23px, 2.3vw, 30px); line-height: 1.5; margin-bottom: 18px; }
.svc-main-text p { max-width: 30em; }
.more {
  display: inline-block;
  margin-top: 22px;
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  text-decoration: underline;
  text-decoration-color: var(--sky);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
  transition: text-decoration-color .25s;
}
a:hover .more { text-decoration-color: var(--navy); }
.svc-main-points { list-style: none; margin: 0; padding: 0; align-self: center; }
.svc-main-points li {
  position: relative;
  padding: 10px 0 10px 34px;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.svc-main-points li:last-child { border-bottom: 0; }
.svc-main-points li::before { top: calc(10px + .98em); }
.svc-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px clamp(32px, 5vw, 72px);
  margin-top: 56px;
}
.svc-sub-item {
  display: block;
  padding-top: 22px;
  border-top: 2px solid var(--navy);
  text-decoration: none;
  color: inherit;
}
.svc-sub-item h3 { font-size: 21px; line-height: 1.5; margin-bottom: 10px; }
.svc-sub-item p { font-size: 15.5px; color: var(--sub); max-width: 30em; }
.svc-sub-item .more { margin-top: 14px; }

/* works */
.works { padding-top: var(--sec); }
.work-list { list-style: none; margin: 52px 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.work {
  display: grid;
  grid-template-columns: 128px minmax(0, 13em) minmax(0, 1fr);
  gap: 8px clamp(24px, 4vw, 56px);
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.work h3 {
  font-size: 22px;
  line-height: 1.5;
  color: var(--navy);
}
.work p { color: var(--sub); font-size: 15.5px; max-width: 34em; }
.works-note { margin-top: 32px; font-size: 13px; color: var(--sub); }

/* faq */
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 22px 52px 22px 0;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.75;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--navy);
  transition: transform .35s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--navy); }
.faq details p { padding: 0 52px 26px 0; color: var(--sub); }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size .4s ease, content-visibility .4s allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}

/* cta: the branch ends here and bears fruit */
.cta { padding-bottom: 40px; }
.cta-inner { display: grid; }
.ph-cta, .cta-text { grid-area: 1 / 1; }
.ph-cta { margin-right: calc(var(--pad-r) * -1); }
.ph-cta .ph-frame { aspect-ratio: 16 / 9; min-height: 520px; border-radius: 4px 0 0 4px; background-color: #485867; }
.ph-cta img { object-position: 72% 50%; }
.cta-text {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(100%, 50%);
  min-width: 420px;
  padding: 56px 0 56px clamp(28px, 4.5vw, 64px);
}
.cta h2 { font-size: clamp(28px, 3.1vw, 42px); line-height: 1.55; color: #fff; }
.cta-text > p { margin-top: 26px; max-width: 24em; font-size: 17px; color: #E1E8EF; }
.cta .btn-primary { background: #fff; color: var(--navy); }
.cta .btn-primary:hover { background: var(--paper); }
.cta .btn-text { color: #fff; }
.cta .btn-text:hover { text-decoration-color: #fff; }
.cta :focus-visible { outline-color: #fff; }
.js .cta-text { opacity: 0; transition: opacity 1s ease .7s; }
.js .ph-cta.open + .cta-text { opacity: 1; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: 40px;
}
.cta-bloom { height: 190px; }


/* ---------- photographs ---------- */
.ph { margin: 0; }
.ph-frame {
  position: relative;
  overflow: hidden;
  background: var(--band);
  aspect-ratio: 3 / 2;
}
.ph-move { position: absolute; left: 0; right: 0; top: -7%; bottom: -7%; will-change: transform; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }

/* each photo opens out of an olive leaf */
.js .ph-frame {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath transform='rotate(-45 50 50)' d='M-15 50C8 22 72 18 115 50C74 82 9 79 -15 50Z'/%3E%3C/svg%3E") 50% 50% / 0% 0% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath transform='rotate(-45 50 50)' d='M-15 50C8 22 72 18 115 50C74 82 9 79 -15 50Z'/%3E%3C/svg%3E") 50% 50% / 0% 0% no-repeat;
  transition: -webkit-mask-size 1.7s cubic-bezier(.62, .03, .28, 1), mask-size 1.7s cubic-bezier(.62, .03, .28, 1);
}
.js .ph.open .ph-frame { -webkit-mask-size: 380% 380%; mask-size: 380% 380%; }
.js .ph.done .ph-frame { -webkit-mask: none; mask: none; }
.js .ph img { transform: scale(1.14); transition: transform 2.2s cubic-bezier(.2, .7, .2, 1); }
.js .ph.open img { transform: none; }

/* よくある状態: the desk under the heading */
.worries-head .ph-desk { margin-top: 44px; max-width: 440px; }
.ph-desk .ph-frame { aspect-ratio: 4 / 3; border-radius: 3px; }
.ph-desk img { object-position: 30% 50%; }

/* 支援の内容: the meeting table runs out to the right edge, the panel overlaps it */
.svc-head {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px 48px;
  align-items: start;
}
.service .svc-head h2 { margin-bottom: 0; }
.ph-meeting { margin-right: calc(var(--pad-r) * -1); }
.ph-meeting .ph-frame { aspect-ratio: 16 / 9; border-radius: 4px 0 0 4px; }
.svc-main { position: relative; margin-top: -96px; width: calc(100% - clamp(0px, 8vw, 120px)); }

/* これまでの支援: small square photos */
.ph-sm .ph-frame { aspect-ratio: 1; border-radius: 2px; }
.ph-sm img { filter: saturate(.72); }
.ph-sm .ph-move { top: 0; bottom: 0; }
.js .ph-sm .ph-frame { transition-duration: .95s; }
.js .ph-sm img { transform: scale(1.1); transition-duration: 1.2s; }

/* ---------- 木漏れ日 ---------- */
.fv { position: relative; }
.komorebi {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  overflow: hidden;
  pointer-events: none;
}
.komorebi span {
  position: absolute;
  background: url("img/komorebi.jpg") 50% 50% / cover no-repeat;
  mix-blend-mode: multiply;
  filter: brightness(1.55) contrast(1.9);
  -webkit-mask-image: radial-gradient(closest-side, #000 52%, transparent);
  mask-image: radial-gradient(closest-side, #000 52%, transparent);
  will-change: transform;
}
.komorebi .k1 {
  left: -6%; top: -18%;
  width: 82%; height: 130%;
  opacity: .16;
  animation: drift1 26s ease-in-out infinite alternate;
}
.komorebi .k2 {
  left: 40%; top: -26%;
  width: 66%; height: 100%;
  opacity: .07;
  animation: drift2 17s ease-in-out -6s infinite alternate;
}
@keyframes drift1 {
  0%   { transform: translate3d(-1.6%, -1%, 0) rotate(-1.4deg) scale(1.05); }
  30%  { transform: translate3d(.6%, .8%, 0) rotate(-.2deg) scale(1.08); }
  65%  { transform: translate3d(-.4%, 1.4%, 0) rotate(.9deg) scale(1.06); }
  100% { transform: translate3d(1.8%, -.4%, 0) rotate(1.6deg) scale(1.09); }
}
@keyframes drift2 {
  0%   { transform: scaleX(-1) translate3d(1.2%, 0, 0) rotate(1deg) scale(1.2); }
  45%  { transform: scaleX(-1) translate3d(-1%, 1.2%, 0) rotate(-.6deg) scale(1.24); }
  100% { transform: scaleX(-1) translate3d(.8%, -1%, 0) rotate(.4deg) scale(1.21); }
}
.fv.off .komorebi span { animation-play-state: paused; }

/* ---------- leaves in the breeze ---------- */
@keyframes sway {
  0%   { transform: rotate(0deg); }
  22%  { transform: rotate(var(--sa)); }
  51%  { transform: rotate(calc(var(--sa) * -.7)); }
  78%  { transform: rotate(calc(var(--sa) * .35)); }
  100% { transform: rotate(0deg); }
}
.vine.settled .sway { animation: sway var(--sd, 5s) ease-in-out var(--sdl, 0s) infinite; }
.vine.fv-off .sway { animation-play-state: paused; }

/* footer */
.site-footer {
  position: relative;
  background: var(--ink);
  color: #D5DEE8;
  padding: 72px 0 36px;
  font-size: 14.5px;
}
.site-footer :focus-visible { outline-color: var(--sky); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px 64px; flex-wrap: wrap; }
.footer-name { font-family: var(--mincho); font-weight: 600; font-size: 19px; color: #fff; margin-bottom: 10px; }
.footer-co a { color: #fff; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 48px; align-content: start; }
.footer-nav a { color: #fff; text-decoration: none; white-space: nowrap; }
.footer-nav a:hover { text-decoration: underline; text-decoration-color: var(--sky); text-underline-offset: 6px; }
.copy { margin-top: 48px; font-size: 12.5px; color: #AFBDCC; }

/* narrow */
@media (max-width: 960px) {
  .step-body { grid-template-columns: 1fr; }
  .svc-main { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .worries-head .ph-desk { margin-top: 28px; max-width: none; }
  .ph-desk .ph-frame { aspect-ratio: 3 / 2; }
  .svc-head { grid-template-columns: 1fr; }
  .svc-main { margin-top: -48px; width: calc(100% - 20px); }
  .komorebi .k1 { left: -20%; width: 130%; height: 75%; top: -10%; }
  .komorebi .k2 { display: none; }
  .fv-inner { min-height: 0; }
  .fv-stage { position: relative; inset: auto; height: 340px; margin-top: 8px; }
  .fv-labels { margin-top: 0; }
  .svc-sub { grid-template-columns: 1fr; }
  .work { grid-template-columns: 96px minmax(0, 1fr); align-items: start; }
  .work .ph-sm { grid-row: span 2; }
  .ph-cta, .cta-text { grid-area: auto; }
  .ph-cta .ph-frame { aspect-ratio: 4 / 3; min-height: 0; }
  .ph-cta img { object-position: 64% 50%; }
  .cta-text { padding: 36px 0 0; width: auto; min-width: 0; }
  .js .cta-text { opacity: 1; transition: none; }
  .cta h2 { color: var(--ink); }
  .cta-text > p { color: var(--sub); }
  .cta .btn-primary { background: var(--navy); color: #fff; }
  .cta .btn-primary:hover { background: var(--ink); }
  .cta .btn-text { color: var(--navy); }
  .cta .btn-text:hover { text-decoration-color: var(--navy); }
  .cta :focus-visible { outline-color: var(--navy); }
  .cta-bloom { height: 150px; }
}
@media (max-width: 560px) {
  :root { --gut: 54px; --pad-r: 18px; --sec: 96px; }
  body { font-size: 16px; }
  .sp { display: inline; }
  .site-header .header-inner { height: 68px; gap: 12px; }
  .logo img { height: 30px; }
  .header-cta { padding: 8px 12px; font-size: 13px; }
  .fv-text { padding-top: 28px; }
  .fv h1 { font-size: 32px; }
  .fv-lead { font-size: 16px; margin-top: 20px; }
  .btn-primary { padding: 17px 24px; font-size: 15.5px; }
  .fl-name { font-size: 15.5px; }
  .fl-sub { font-size: 11.5px; }
  .js .fv-labels li { padding: 2px 6px; }
  .step-no { width: 34px; height: 34px; font-size: 16px; left: calc(var(--gut) * -.55 - 17px); }
  .faq summary { font-size: 16px; padding-right: 40px; }
  .faq summary::before, .faq summary::after { right: 4px; }
  .faq details p { padding-right: 0; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 8px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .ph-frame { -webkit-mask: none; mask: none; }
  .js .ph img { transform: none; }
  .js .cta-text { opacity: 1; }
  .komorebi span, .vine.settled .sway { animation: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .grow { opacity: 1; transform: none; }
  .fv-stem, .twig { stroke-dashoffset: 0; }
  .js .fv-labels li { opacity: 1; translate: none; }
}

/* ================= site pages ================= */

/* header and menu */
.site-header { position: relative; z-index: 20; background: var(--paper); }
.gnav { margin-left: auto; }
.gnav-list { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.gnav a, .sub-btn {
  display: inline-block;
  padding: 6px 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}
.gnav a:hover, .sub-btn:hover,
.gnav a[aria-current="page"], .sub-btn.is-current {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--sky);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
.sub-btn::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform .25s ease;
}
.sub-btn[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.has-sub { position: relative; }
.sub {
  position: absolute;
  top: calc(100% + 12px);
  left: -22px;
  min-width: 15em;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.sub a { display: block; padding: 8px 22px; white-space: nowrap; }
.has-sub.open .sub,
.has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) {
  .has-sub:hover .sub { opacity: 1; visibility: visible; transform: none; }
}
.header-cta[aria-current="page"] { background: var(--navy); color: #fff; }
.header-cta, .menu-btn { flex: none; white-space: nowrap; }
.logo { flex: none; }
.menu-btn { display: none; }

/* breadcrumb */
.crumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  font-size: 13px;
  color: var(--sub);
}
.crumb li + li::before { content: "/"; margin-right: 10px; color: var(--leaf-d); }
.crumb a { color: var(--sub); text-decoration-color: var(--line); text-underline-offset: 4px; }
.crumb a:hover { color: var(--navy); text-decoration-color: var(--sky); }

/* page header: a smaller sprig grows across it */
.fv-sub .fv-inner { min-height: 0; padding-bottom: clamp(150px, 15vw, 200px); }
.fv-sub .fv-text { max-width: 32em; padding-top: clamp(32px, 6vh, 64px); }
.fv-sub h1 { font-size: clamp(32px, 4vw, 54px); }
.fv-sub .fv-lead { max-width: 30em; }
/* keep the light's soft edge inside the shorter page header */
.fv-sub .komorebi .k1 { top: -46%; height: 136%; width: 72%; left: -4%; }
.fv-sub .komorebi .k2 { top: -50%; height: 120%; }

/* every page ends with breathing room when there is no closing block */
main > .sec:last-child:not(.cta) { padding-bottom: var(--sec); }
.sec-more { margin-top: 30px; }
.band-sec { background: var(--band); margin-top: var(--sec); padding-bottom: var(--sec); }

/* lists of what we do */
.items { margin: 56px 0 0; border-top: 1px solid var(--line); }
.item {
  display: grid;
  grid-template-columns: minmax(0, 15em) minmax(0, 1fr);
  gap: 6px clamp(24px, 4vw, 64px);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.item dt {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.6;
  color: var(--navy);
}
.item dd { margin: 0; max-width: 36em; }
.prose-block { max-width: 36em; }
.prose-block p + p { margin-top: 1.1em; }
.prose-block .worries-answer { margin-top: 0; }

.grid4 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 72px);
  margin-top: 48px;
}
.g-item { padding: 26px 0 36px; border-top: 2px solid var(--navy); }
.g-item h3 { font-size: clamp(20px, 1.9vw, 23px); line-height: 1.55; margin-bottom: 10px; color: var(--navy); }
.g-item p { max-width: 30em; }

.work-list-lg .work { grid-template-columns: 200px minmax(0, 11em) minmax(0, 1fr); padding: 30px 0; }
.work .more { margin-top: 10px; }

/* company */
.info-table { margin: 0; border-top: 1px solid var(--line); }
.info-table > div {
  display: grid;
  grid-template-columns: 7em minmax(0, 1fr);
  gap: 6px 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.info-table dt { font-size: 15px; font-weight: 500; color: var(--sub); }
.info-table dd { margin: 0; }
.info-table .more { margin-top: 8px; }
.dd-list { margin: 0; padding-left: 1.2em; }
.dd-list li + li { margin-top: .4em; }

/* privacy */
.prose { max-width: 40em; }
.prose p + p { margin-top: 1em; }
.sec .prose h2 { font-size: clamp(19px, 1.9vw, 23px); line-height: 1.6; margin: 2.2em 0 .5em; }
.prose-sign { margin-top: 3em !important; color: var(--sub); }

/* form */
.form-intro { margin-top: 18px; color: var(--sub); max-width: 22em; }
.cform {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: clamp(24px, 4vw, 48px);
  background: #fff;
  border-radius: 6px;
}
.cform .full { grid-column: 1 / -1; }
.fld > label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 500; }
.req {
  display: inline-block;
  margin-left: 10px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.75;
  color: #fff;
  background: var(--navy);
  border-radius: 2px;
  vertical-align: 2px;
}
.cform input[type="text"], .cform input[type="email"], .cform input[type="tel"],
.cform select, .cform textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #AEBCCB;
  border-radius: 3px;
}
.cform textarea { min-height: 180px; resize: vertical; }
.cform :is(input, select, textarea):focus-visible { outline-offset: 1px; border-color: var(--navy); }
.cform [aria-invalid="true"] { border-color: var(--err); }
.err { margin-top: 6px; font-size: 14px; color: var(--err); }
.err:empty, .form-status:empty { display: none; }
.agree { display: flex; align-items: flex-start; gap: 12px; }
.agree input { flex: none; width: 20px; height: 20px; margin: 5px 0 0; accent-color: var(--navy); }
.agree label { font-size: 15.5px; }
.agree a { color: var(--navy); text-decoration-color: var(--sky); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-send .btn { min-width: 12em; }
.form-send .btn[disabled] { opacity: .6; cursor: progress; }
.form-status { padding: 14px 18px; font-size: 15px; color: var(--err); background: #FBEFED; border-radius: 3px; }
.form-done {
  padding: clamp(28px, 4vw, 48px);
  background: #fff;
  border-radius: 6px;
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.9;
  color: var(--navy);
}

@media (max-width: 960px) {
  .site-header .wrap { padding-left: var(--pad-r); }
  .header-cta { margin-left: auto; }
  .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 2px;
    font: inherit;
    font-size: 13px;
    color: var(--navy);
    background: none;
    border: 0;
    cursor: pointer;
  }
  .menu-bars { position: relative; width: 20px; height: 12px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transition: border-color .2s; }
  .menu-bars::before, .menu-bars::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 1.5px;
    margin-top: -.75px;
    background: currentColor;
    transition: transform .25s ease;
  }
  .menu-btn[aria-expanded="true"] .menu-bars { border-color: transparent; }
  .menu-btn[aria-expanded="true"] .menu-bars::before { transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-bars::after { transform: rotate(-45deg); }
  .gnav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    padding: 0 var(--pad-r) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .gnav.open { display: block; }
  .gnav-list { flex-direction: column; align-items: stretch; gap: 0; font-size: 16px; }
  .gnav-list > li { border-top: 1px solid var(--line); }
  .gnav a, .sub-btn { display: block; width: 100%; padding: 14px 0; text-align: left; }
  .sub-btn { cursor: default; color: var(--sub); font-size: 14px; padding-bottom: 4px; }
  .sub-btn::after { display: none; }
  .sub, .has-sub:hover .sub {
    position: static;
    min-width: 0;
    padding: 0 0 8px 14px;
    background: none;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .sub::before { display: none; }
  .sub a { padding: 10px 0; }
  html:not(.js) .header-inner { flex-wrap: wrap; height: auto; padding-top: 14px; padding-bottom: 14px; }
  html:not(.js) .menu-btn { display: none; }
  html:not(.js) .gnav { display: block; position: static; width: 100%; order: 3; border: 0; padding: 0; }
  .item { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .fv-sub .fv-inner { padding-bottom: 0; }
  .fv-sub .komorebi .k1 { left: -20%; width: 130%; top: -20%; height: 80%; }
  .fv-sub .fv-stage { height: 190px; }
  .grid4 { grid-template-columns: 1fr; }
  .cform { grid-template-columns: 1fr; }
  .work-list-lg .work { grid-template-columns: 112px minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .site-header .wrap { padding-left: 16px; padding-right: 16px; }
  .site-header .header-inner { gap: 10px; }
  .logo img { height: 28px; }
  .header-cta { padding: 7px 10px; font-size: 12.5px; letter-spacing: 0; }
  .fv-sub h1 { font-size: 30px; }
  .cform { padding: 22px 18px; }
  .info-table > div { grid-template-columns: 1fr; gap: 2px; }
  .work-list-lg .work { grid-template-columns: 96px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .sub { transition: none; }
}
