@charset "utf-8";
/* =========================================================
   Bee assist Inc.
   Palette and hexagon motif are taken straight from the
   company logo: honey #FFD71D + slate indigo #454567.
   Deliberately not a photo-hero site.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* brand — sampled from the supplied logo artwork */
  --honey:      #ffd71d;
  --honey-deep: #e8be00;
  --honey-pale: #fff3c4;
  --slate:      #454567;   /* the wordmark colour */
  --accent-red: #b3261e;   /* ヒーローの1文字だけに使う差し色 */

  /* neutrals pulled toward the brand indigo — not stock greys */
  --ink:      #2a2a42;
  --ink-deep: #1e1e32;
  --ink-2:    #4c4c6a;
  --ink-3:    #7b7b93;
  --paper:    #fcfcfd;
  --paper-2:  #f1f1f6;
  --line:     #e1e1ea;
  --line-ink: rgba(255, 255, 255, .16);

  --wrap:     1180px;
  --gutter:   clamp(20px, 5vw, 44px);
  --header-h: 78px;

  --font-en: "Lora", Georgia, "Times New Roman", serif;
  /* 見出し用。明朝体で誠実さ・信頼感を出す */
  --font-display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;

  /* flat-top hexagon — the same geometry as the logo mark */
  --hex: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: .02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.footer :focus-visible, .hero__comb :focus-visible, .callout--ink :focus-visible { outline-color: var(--honey); }

/* ---------- Layout ---------- */
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - var(--gutter) * 2, 840px); margin-inline: auto; }
.section { padding: clamp(68px, 9vw, 128px) 0; }
.section--paper2 { background: var(--paper-2); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Section heads ---------- */
.shead { margin-bottom: clamp(34px, 5vw, 60px); }
.shead__label {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-en); font-weight: 700; 
  font-size: 15px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2);
}
.shead__label::before {
  content: ""; width: 14px; height: 12px; flex: none;
  background: var(--honey); clip-path: var(--hex);
}
.shead__title {
  margin-top: 12px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.45; letter-spacing: .02em; text-wrap: balance;
}
.shead__lead { margin-top: 20px; max-width: 40em; color: var(--ink-2); font-size: clamp(15px, 1.7vw, 16.5px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 17px 34px;
  font-size: 15px; font-weight: 700; letter-spacing: .06em;
  border: 2px solid var(--ink); background: var(--ink); color: var(--paper);
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.btn__arrow { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(6px); }
.btn:hover { background: var(--honey); color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--honey); }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 130;
  height: var(--header-h); display: flex; align-items: center;
  /* ヒーロー右側は濃色パネルなので、ヘッダーは常に紙色を敷いて可読性を確保する */
  background: var(--paper);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.header--scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(42, 42, 66, .07); }
.header__inner {
  width: min(100% - var(--gutter) * 2, 1320px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

/* Logo lockup — the supplied artwork, vectorised.
   Three versions, because the brand yellow is also a page background:
   mono (slate) on honey, full colour on paper, light on ink. */
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 5px; }
/* .gnav is a child of .header, so the lockup needs its own layer to stay above the open menu */
.header .logo { position: relative; z-index: 120; }
.logo__svg { height: 30px; width: auto; }
.logo__jp {
  font-size: 9.5px; font-weight: 500; letter-spacing: .18em;
  color: var(--slate); padding-left: 2px;
}
/* ヘッダーは紙色地なのでフルカラー版。イエロー地になるのはスマホのメニュー展開時だけ */
.logo__svg--mono { display: none; }
.logo__svg--color { display: block; }
.is-navopen .header .logo__svg--mono { display: block; }
.is-navopen .header .logo__svg--color { display: none; }

.gnav__list { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 26px); }
.gnav__link { position: relative; padding: 8px 0; font-size: 13.5px; font-weight: 700; letter-spacing: .05em; isolation: isolate; }
.gnav__link::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 3px; height: 7px;
  background: var(--honey); z-index: -1;
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.gnav__link:hover::after, .gnav__link[aria-current="page"]::after { transform: scaleX(1); }
.gnav__cta {
  padding: 12px 24px; background: var(--ink); color: var(--honey);
  font-size: 13px; font-weight: 700; letter-spacing: .07em;
  transition: background .22s var(--ease), color .22s var(--ease);
}
.gnav__cta:hover { background: var(--honey); color: var(--ink); }

.navtoggle { display: none; position: relative; z-index: 140; width: 46px; height: 46px; padding: 0; background: none; border: 0; cursor: pointer; }
.navtoggle__bar { position: absolute; left: 12px; width: 22px; height: 2.5px; background: currentColor; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.navtoggle__bar:nth-child(1) { top: 16px; }
.navtoggle__bar:nth-child(2) { top: 22px; }
.navtoggle__bar:nth-child(3) { top: 28px; }
.is-navopen .navtoggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.is-navopen .navtoggle__bar:nth-child(2) { opacity: 0; }
.is-navopen .navtoggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1040px) {
  .navtoggle { display: block; }
  .gnav {
    position: fixed; inset: 0; z-index: 110;
    display: flex; align-items: center; justify-content: center;
    background: var(--honey); color: var(--ink);
    opacity: 0; visibility: hidden;
    transition: opacity .28s var(--ease), visibility .28s var(--ease);
  }
  .is-navopen .gnav { opacity: 1; visibility: visible; }
  /* the logo stays put on top of the open menu */
  .is-navopen .header { color: var(--ink); background: transparent; box-shadow: none; }
  .is-navopen .header .logo__jp { color: var(--ink); }
  .gnav__list { flex-direction: column; gap: 2px; width: min(100% - 48px, 400px); }
  .gnav__list > li { width: 100%; text-align: center; }
  .gnav__link { display: block; padding: 14px 0; font-size: 17px; }
  .gnav__link::after { display: none; }
  .gnav__cta { display: inline-block; margin-top: 20px; padding: 16px 42px; font-size: 15px; }
}

/* =========================================================
   Hero — honey panel + honeycomb photo cluster
   ========================================================= */
.hero { display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); min-height: 100svh; }
.hero__panel {
  background: var(--honey); color: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + clamp(40px, 6vw, 76px)) clamp(24px, 4.4vw, 68px) clamp(48px, 6vw, 76px);
}
.hero__mark { margin-bottom: clamp(26px, 3.4vw, 44px); }
.hero__mark .logo__svg { height: clamp(46px, 5.2vw, 66px); }
.hero__mark .logo__jp { font-size: 11px; opacity: .85; }

.hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(29px, 4.3vw, 52px); line-height: 1.45; letter-spacing: .02em;
}
/* 読み込み後ひと呼吸おいて、この1文字だけが赤に変わる */
.hero__title em {
  font-style: normal;
  color: var(--ink);
  animation: markRed .55s .75s var(--ease) forwards;
}
@keyframes markRed { to { color: var(--accent-red); } }

.hero__lead { margin-top: clamp(22px, 2.6vw, 30px); max-width: 30em; font-size: clamp(14.5px, 1.55vw, 16.5px); line-height: 2.1; color: #333350; }
.hero__meta {
  margin-top: clamp(26px, 3vw, 36px); padding-top: 20px;
  border-top: 2px solid rgba(42, 42, 66, .3);
  display: flex; flex-wrap: wrap; gap: 6px 24px;
  font-family: var(--font-en); font-weight: 700;
  font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase;
}
.hero__actions { margin-top: clamp(26px, 3.2vw, 38px); display: flex; flex-wrap: wrap; gap: 12px; }

.hero__comb {
  position: relative; background: var(--ink-deep);
  display: grid; place-items: center;
  padding: calc(var(--header-h) + 32px) clamp(20px, 3vw, 48px) clamp(44px, 5vw, 68px);
  overflow: hidden;
}
.hero__comb::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(58% 52% at 60% 42%, rgba(255, 215, 29, .18), transparent 72%);
}
.comb { position: relative; z-index: 1; width: min(100%, 560px); aspect-ratio: 1 / 1.04; }

/* 全セルを中心に置き、translate で六角形リング上に配置する。
   translate の % はセル自身のサイズ基準なので、リングの座標は
   横 ±75%（= コンテナ幅の30%）、縦 ±50% / ±100% で表せる。 */
.comb__cell {
  position: absolute; left: 50%; top: 50%;
  width: 40%; aspect-ratio: 1 / .866;
  clip-path: var(--hex); overflow: hidden;
  opacity: 0;
}
.comb__cell img { width: 100%; height: 100%; object-fit: cover; }
.comb__cell--honey { background: var(--honey); display: grid; place-items: center; }

/* 7つの位置を一巡する閉ループ。隣り合うマスだけを通り、中央も経路に含める。
   top → 右上 → 中央 → 右下 → 下 → 左下 → 左上 → top
   静止位置（動きを控える設定・アニメーション未対応環境ではこの配置で止まる） */
.comb__cell:nth-child(1) { transform: translate(-50%, -50%) translate(0, -100%); }
.comb__cell:nth-child(2) { transform: translate(-50%, -50%) translate(75%, -50%); }
.comb__cell:nth-child(3) { transform: translate(-50%, -50%); }
.comb__cell:nth-child(4) { transform: translate(-50%, -50%) translate(75%, 50%); }
.comb__cell:nth-child(5) { transform: translate(-50%, -50%) translate(0, 100%); }
.comb__cell:nth-child(6) { transform: translate(-50%, -50%) translate(-75%, 50%); }
.comb__cell:nth-child(7) { transform: translate(-50%, -50%) translate(-75%, -50%); }

@keyframes combFade { from { opacity: 0; } to { opacity: 1; } }

/* 1周28秒＝1コマ4秒。うち約2.6秒は静止し、約1.4秒かけて隣へ移動する */
@keyframes orbit {
  0%,      9.29% { transform: translate(-50%, -50%) translate(0, -100%); }
  14.29%, 23.57% { transform: translate(-50%, -50%) translate(75%, -50%); }
  28.57%, 37.86% { transform: translate(-50%, -50%); }
  42.86%, 52.14% { transform: translate(-50%, -50%) translate(75%, 50%); }
  57.14%, 66.43% { transform: translate(-50%, -50%) translate(0, 100%); }
  71.43%, 80.71% { transform: translate(-50%, -50%) translate(-75%, 50%); }
  85.71%, 95%    { transform: translate(-50%, -50%) translate(-75%, -50%); }
  100%           { transform: translate(-50%, -50%) translate(0, -100%); }
}
.comb__cell {
  animation: combFade .6s var(--ease) forwards,
             orbit 28s cubic-bezier(.5, 0, .5, 1) infinite;
}
.comb__cell:nth-child(1) { animation-delay: .05s,   0s; }
.comb__cell:nth-child(2) { animation-delay: .13s,  -4s; }
.comb__cell:nth-child(3) { animation-delay: .21s,  -8s; }
.comb__cell:nth-child(4) { animation-delay: .29s, -12s; }
.comb__cell:nth-child(5) { animation-delay: .37s, -16s; }
.comb__cell:nth-child(6) { animation-delay: .45s, -20s; }
.comb__cell:nth-child(7) { animation-delay: .53s, -24s; }

/* リンクを押そうとしたら止まる（キーボード操作でも止まる） */
.comb:hover .comb__cell,
.comb:focus-within .comb__cell { animation-play-state: paused; }

.comb__word {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(13px, 1.6vw, 20px); letter-spacing: .03em;
  color: var(--ink); text-align: center; line-height: 1.35;
}
.comb__word em {
  display: block; margin-top: 5px;
  font-family: var(--font-en); font-weight: 700;
  font-size: clamp(9.5px, 1vw, 12px); letter-spacing: .1em; text-transform: uppercase;
  opacity: .62;
}
/* 事業へのリンクになっている3枚 */
a.comb__cell { text-decoration: none; }
a.comb__cell--honey { transition: background .28s var(--ease), color .28s var(--ease); }
a.comb__cell--honey:hover { background: var(--paper); }
a.comb__cell--honey:hover .comb__word { color: var(--ink); }
a.comb__cell--honey:focus-visible { outline: 3px solid var(--paper); outline-offset: -6px; }
.hero__scroll {
  position: absolute; left: clamp(20px, 3vw, 48px); bottom: 26px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-en); font-size: 12px;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(252, 252, 253, .7);
}
.hero__scroll::after {
  content: ""; width: 54px; height: 1px; background: var(--honey);
  transform-origin: left; animation: scrollCue 2.4s var(--ease) infinite;
}
@keyframes scrollCue { 0%, 100% { transform: scaleX(.2); } 50% { transform: scaleX(1); } }

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__panel { padding-top: calc(var(--header-h) + 44px); }
  .hero__comb { padding: clamp(36px, 8vw, 56px) var(--gutter) clamp(52px, 9vw, 72px); }
  .comb { width: min(100%, 420px); }
  .hero__scroll { display: none; }
}

/* =========================================================
   Page hero (lower pages) — honey band, no photo
   ========================================================= */
.pagehero {
  background: var(--honey); color: var(--ink); position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(52px, 7vw, 92px)) 0 clamp(44px, 6vw, 74px);
}
.pagehero::after {
  content: ""; position: absolute; right: -56px; top: 50%;
  width: 260px; height: 225px; transform: translateY(-50%);
  background: rgba(42, 42, 66, .08); clip-path: var(--hex);
}
.pagehero__inner { position: relative; z-index: 1; }
.pagehero__en {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-en); font-weight: 700; 
  font-size: clamp(15px, 1.8vw, 17px); letter-spacing: .1em; text-transform: uppercase;
}
.pagehero__en::before { content: ""; width: 14px; height: 12px; background: var(--ink); clip-path: var(--hex); }
.pagehero__jp { display: block; margin-top: 12px; font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 4.8vw, 46px); line-height: 1.35; letter-spacing: .02em; }

.breadcrumb { background: var(--paper); border-bottom: 1px solid var(--line); }
.breadcrumb__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 15px 0; font-size: 12.5px; color: var(--ink-3); }
.breadcrumb__list li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

/* =========================================================
   Intro
   ========================================================= */
.intro__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(34px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .intro__grid { grid-template-columns: 1fr; } }
.intro__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(23px, 3.4vw, 36px); line-height: 1.6; letter-spacing: .02em; text-wrap: balance; }
.intro__title span { background: linear-gradient(transparent 56%, var(--honey) 56%); }
.intro__body { margin-top: 26px; display: grid; gap: 1.2em; color: var(--ink-2); }
.intro__figure { position: relative; z-index: 0; }
.intro__figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.intro__figure::after {
  content: ""; position: absolute; left: -20px; bottom: -20px;
  width: 96px; height: 83px; background: var(--honey); clip-path: var(--hex); z-index: -1;
}

/* =========================================================
   Service — hairline rows, not cards
   ========================================================= */
.svc { border-top: 2px solid var(--ink); }
.svc__row {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1.3fr) 40px;
  gap: clamp(14px, 2.4vw, 32px); align-items: center;
  padding: clamp(22px, 2.8vw, 32px) clamp(8px, 1.6vw, 18px);
  border-bottom: 1px solid var(--line);
  transition: background .28s var(--ease), padding-left .28s var(--ease);
}
a.svc__row:hover { background: var(--honey); padding-left: clamp(16px, 2.4vw, 32px); }
.svc__hex { width: 56px; height: 48px; display: grid; place-items: center; background: var(--honey); clip-path: var(--hex); color: var(--ink); transition: background .28s var(--ease), color .28s var(--ease); }
a.svc__row:hover .svc__hex { background: var(--ink); color: var(--honey); }
.svc__hex svg { width: 24px; height: 24px; }
.svc__en { font-family: var(--font-en); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
a.svc__row:hover .svc__en { color: var(--ink-2); }
.svc__jp { margin-top: 2px; font-family: var(--font-display); font-weight: 800; font-size: clamp(17.5px, 2.2vw, 23px); letter-spacing: .03em; }
.svc__text { font-size: 14.5px; line-height: 1.95; color: var(--ink-2); }
a.svc__row:hover .svc__text { color: var(--ink); }
.svc__arrow { justify-self: end; font-size: 19px; transition: transform .3s var(--ease); }
a.svc__row:hover .svc__arrow { transform: translateX(6px); }
@media (max-width: 860px) {
  .svc__row { grid-template-columns: 56px minmax(0, 1fr); row-gap: 10px; }
  .svc__text { grid-column: 1 / -1; }
  .svc__arrow { display: none; }
}

/* =========================================================
   Service detail (lower pages)
   ========================================================= */
.lead-block__text { font-size: clamp(16px, 2vw, 19px); line-height: 2.1; color: var(--ink-2); max-width: 42em; }
.detail { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(34px, 4.6vw, 54px); }
.detail__item { background: var(--paper); display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: clamp(12px, 2.2vw, 24px); padding: clamp(24px, 3vw, 34px) clamp(20px, 2.6vw, 32px); }
.detail__hex { width: 26px; height: 23px; margin-top: .6em; background: var(--honey); clip-path: var(--hex); }
.detail__title { font-size: clamp(17px, 2.1vw, 20px); font-weight: 700; letter-spacing: .02em; }
.detail__text { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }

/* =========================================================
   Photo band — duotone, so photos read as brand, not stock
   ========================================================= */
.band { position: relative; overflow: hidden; background: var(--ink-deep); }
.band__img { width: 100%; height: clamp(220px, 32vw, 400px); object-fit: cover; filter: grayscale(1) contrast(1.05); opacity: .6; }
.band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(96deg, rgba(255, 215, 29, .34), rgba(30, 30, 50, .55));
  mix-blend-mode: multiply;
}
.band__caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(20px, 3vw, 32px) 0; }
.band__caption p {
  font-family: var(--font-en); font-weight: 700;
  font-size: clamp(15px, 2.2vw, 21px); letter-spacing: .06em; text-transform: uppercase; color: var(--paper);
}

/* =========================================================
   News
   ========================================================= */
.news { border-top: 2px solid var(--ink); }
.news__item { display: grid; grid-template-columns: 124px 88px minmax(0, 1fr); gap: 18px; align-items: center; padding: 20px 2px; border-bottom: 1px solid var(--line); }
.news__date { font-family: var(--font-en); font-weight: 700; font-size: 15px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.news__cat { justify-self: start; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; padding: 3px 11px; background: var(--honey); color: var(--ink); }
.news__title { font-size: 15.5px; }
@media (max-width: 640px) {
  .news__item { grid-template-columns: auto 1fr; gap: 6px 14px; }
  .news__title { grid-column: 1 / -1; }
}

/* =========================================================
   Company
   ========================================================= */
/* =========================================================
   会社概要
   ========================================================= */
.deflist { border-top: 2px solid var(--ink); }
.deflist__row { display: grid; grid-template-columns: 152px minmax(0, 1fr); gap: 18px; padding: 19px 2px; border-bottom: 1px solid var(--line); }
.deflist__row dt { font-size: 13.5px; font-weight: 700; letter-spacing: .08em; }
.deflist__row dd { font-size: 15px; color: var(--ink-2); }
.deflist__row dd ul { display: grid; gap: 2px; }
.deflist__row dd li { position: relative; padding-left: 18px; }
.deflist__row dd li::before { content: ""; position: absolute; left: 0; top: .85em; width: 9px; height: 8px; background: var(--honey); clip-path: var(--hex); }
@media (max-width: 560px) { .deflist__row { grid-template-columns: 1fr; gap: 2px; } }

/* =========================================================
   CTA — flat honey block
   ========================================================= */
.cta { background: var(--honey); color: var(--ink); position: relative; overflow: hidden; }
.cta::before, .cta::after { content: ""; position: absolute; background: rgba(42, 42, 66, .07); clip-path: var(--hex); }
.cta::before { width: 300px; height: 260px; left: -80px; top: -70px; }
.cta::after { width: 220px; height: 190px; right: -50px; bottom: -60px; }
.cta__inner { position: relative; z-index: 1; padding: clamp(64px, 9vw, 112px) 0; }
.cta__label { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-en); font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; }
.cta__label::before { content: ""; width: 14px; height: 12px; background: var(--ink); clip-path: var(--hex); }
.cta__title { margin-top: 14px; font-family: var(--font-display); font-weight: 800; font-size: clamp(23px, 3.7vw, 38px); line-height: 1.5; letter-spacing: .02em; }
.cta__lead { margin-top: 18px; max-width: 38em; font-size: 15px; color: #333350; }
.cta__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

/* =========================================================
   Contact form
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 22px; margin-top: clamp(28px, 4vw, 40px); }
.form__row { display: grid; gap: 9px; }
.form__label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: .05em; }
.form__req { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; padding: 3px 9px; background: var(--ink); color: var(--honey); }
.form__opt { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; padding: 3px 9px; background: var(--paper-2); color: var(--ink-3); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; padding: 15px 17px;
  font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 0;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form textarea { min-height: 190px; resize: vertical; line-height: 1.95; }
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--honey); }
.form__privacy { padding: 20px 24px; background: var(--paper-2); font-size: 13.5px; color: var(--ink-2); }
.form__actions { margin-top: 6px; }
.contact-aside { padding: clamp(26px, 3vw, 34px); background: var(--ink-deep); color: var(--paper); }
.contact-aside__title { font-family: var(--font-en); font-weight: 700; font-size: 20px; letter-spacing: .04em; color: var(--honey); }
.contact-aside__text { margin-top: 14px; font-size: 14px; line-height: 2; color: rgba(252, 252, 253, .8); }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--ink-deep); color: rgba(252, 252, 253, .72); padding: clamp(56px, 7vw, 84px) 0 0; }
.footer a:hover { color: var(--honey); }
.footer .logo__jp { color: rgba(252, 252, 253, .68); opacity: 1; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 64px); }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr; } }
.footer__addr { margin-top: 22px; font-size: 14px; line-height: 2.05; font-style: normal; }
.footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 32px; align-content: start; }
.footer__nav-title { grid-column: 1 / -1; margin-bottom: 6px; font-family: var(--font-en); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--honey); }
.footer__nav a { display: block; padding: 6px 0; font-size: 14.5px; }
.footer__bottom {
  margin-top: clamp(40px, 5vw, 60px); padding: 20px 0;
  border-top: 1px solid var(--line-ink);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: rgba(252, 252, 253, .5);
}

.totop {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 52px; height: 46px; display: grid; place-items: center;
  background: var(--honey); color: var(--ink); clip-path: var(--hex);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease), visibility .3s var(--ease), transform .3s var(--ease);
}
.totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.totop svg { width: 17px; height: 17px; }

/* =========================================================
   Reveal
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--d2 { transition-delay: .14s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .comb__cell { opacity: 1; animation: none; }
  .hero__title em { color: var(--accent-red); animation: none; }
}

@media print {
  .header, .gnav, .totop, .hero__comb, .cta { display: none !important; }
  body { color: #000; background: #fff; }
}

/* =========================================================
   Service rows — capability chips
   ========================================================= */
.svc__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.svc__tag {
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; line-height: 1.9;
  padding: 1px 10px; border: 1px solid var(--line); color: var(--ink-2);
  transition: border-color .28s var(--ease), color .28s var(--ease);
}
a.svc__row:hover .svc__tag { border-color: rgba(42, 42, 66, .35); color: var(--ink); }

/* =========================================================
   Grouped detail blocks (lower pages)
   ========================================================= */
.section--top0 { padding-top: 0; }
.grps { display: grid; gap: clamp(42px, 5.5vw, 72px); }
.grp__head { margin-bottom: clamp(18px, 2.4vw, 26px); }
.grp__en {
  font-family: var(--font-en); font-weight: 700;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.grp__jp {
  margin-top: 4px; display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(20px, 2.7vw, 27px); letter-spacing: .03em;
}
.grp__jp::before { content: ""; flex: none; width: 16px; height: 14px; background: var(--honey); clip-path: var(--hex); }
.grp__desc { margin-top: 12px; max-width: 44em; font-size: 14.5px; color: var(--ink-2); }
.grp__sub {
  display: flex; align-items: center; gap: 11px;
  margin: clamp(30px, 4vw, 44px) 0 14px;
  font-size: 16px; font-weight: 700; letter-spacing: .06em;
}
.grp__sub::before { content: ""; flex: none; width: 14px; height: 12px; background: var(--honey); clip-path: var(--hex); }

/* =========================================================
   Flow — a real sequence, so the numbering carries meaning
   ========================================================= */
.flow { border-top: 2px solid var(--ink); }
.flow__step {
  display: grid; grid-template-columns: 72px minmax(0, 1fr);
  gap: clamp(14px, 2.4vw, 30px); align-items: start;
  padding: clamp(20px, 2.6vw, 28px) 2px;
  border-bottom: 1px solid var(--line);
}
.flow__no {
  width: 62px; height: 54px; display: grid; place-items: center;
  background: var(--honey); color: var(--ink); clip-path: var(--hex);
  font-family: var(--font-en); font-weight: 700;
  font-size: 21px; letter-spacing: .02em; font-variant-numeric: tabular-nums;
}
.flow__title { font-size: clamp(16.5px, 2vw, 19px); font-weight: 700; letter-spacing: .02em; margin-top: 6px; }
.flow__text { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 560px) {
  .flow__step { grid-template-columns: 52px minmax(0, 1fr); }
  .flow__no { width: 52px; height: 45px; font-size: 18px; }
}

/* =========================================================
   Cases we take on
   ========================================================= */
.needs { border-top: 2px solid var(--ink); }
.needs li {
  position: relative; padding: 15px 0 15px 30px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(15px, 1.9vw, 16.5px); font-weight: 500;
}
.needs li::before {
  content: ""; position: absolute; left: 2px; top: 1.55em;
  width: 13px; height: 11px; background: var(--honey); clip-path: var(--hex);
}

/* =========================================================
   Callout
   ========================================================= */
.callout {
  position: relative; overflow: hidden;
  margin-top: clamp(26px, 3.4vw, 40px);
  padding: clamp(26px, 3.4vw, 44px);
  background: var(--honey-pale); color: var(--ink);
}
.callout::after {
  content: ""; position: absolute; right: -54px; top: 50%; transform: translateY(-50%);
  width: 240px; height: 208px; background: rgba(255, 215, 29, .5); clip-path: var(--hex);
}
.callout > * { position: relative; z-index: 1; }
.callout__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(19px, 2.6vw, 27px); line-height: 1.55; letter-spacing: .02em; text-wrap: balance; }
.callout__text { margin-top: 14px; max-width: 44em; font-size: 15px; color: var(--ink-2); }
.callout__list { margin-top: 22px; display: grid; gap: 15px; max-width: 46em; }
.callout__list li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink-2); }
.callout__list li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 12px; height: 10px; background: var(--honey-deep); clip-path: var(--hex);
}
.callout__list b { display: block; margin-bottom: 3px; font-size: 15.5px; font-weight: 700; color: var(--ink); }

.callout--ink { background: var(--ink-deep); color: var(--paper); }
.callout--ink::after { background: rgba(255, 215, 29, .1); }
.callout--ink .callout__text { color: rgba(252, 252, 253, .8); }
.callout--ink .callout__list li { color: rgba(252, 252, 253, .78); }
.callout--ink .callout__list li::before { background: var(--honey); }
.callout--ink .callout__list b { color: var(--honey); }

/* =========================================================
   Feature grid
   ========================================================= */
.feats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
@media (max-width: 900px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; } }
.feat { background: var(--paper); padding: clamp(22px, 2.6vw, 30px); }
.feat__title { display: flex; gap: 10px; font-size: 16px; font-weight: 700; letter-spacing: .02em; line-height: 1.6; }
.feat__title::before {
  content: ""; flex: none; width: 13px; height: 11px; margin-top: .55em;
  background: var(--honey); clip-path: var(--hex);
}
.feat__text { margin-top: 10px; font-size: 14px; color: var(--ink-2); }

/* =========================================================
   Timing-system credit — a compact strip under the relay panel
   ========================================================= */
.syscredit {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(16px, 2.6vw, 30px); align-items: center;
  padding: clamp(16px, 2.2vw, 22px) clamp(18px, 2.6vw, 28px);
  background: var(--paper); border: 1px solid var(--line); border-top: 0;
}
.callout + .syscredit { margin-top: 0; }
.syscredit__logo { width: clamp(80px, 9vw, 104px); height: auto; }
.syscredit__text { font-size: clamp(14.5px, 1.8vw, 16px); font-weight: 700; letter-spacing: .02em; }
.syscredit__text b { color: var(--slate); }
.syscredit__note { margin-top: 4px; font-size: 12.5px; line-height: 1.85; color: var(--ink-3); }
.syscredit__link {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-size: 13px; font-weight: 700;
  border-bottom: 2px solid var(--honey); padding-bottom: 2px;
}
.syscredit__link:hover { border-bottom-color: var(--ink); }
@media (max-width: 760px) {
  .syscredit { grid-template-columns: auto minmax(0, 1fr); }
  .syscredit__link { grid-column: 1 / -1; justify-self: start; }
}

/* =========================================================
   選ばれる理由 — 実績と体制を、アイコンで手早く伝える
   ========================================================= */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 26px); }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }
.why__item { padding: clamp(26px, 3vw, 36px); background: var(--paper); border: 1px solid var(--line); }
.why__icon {
  width: 74px; height: 64px; display: grid; place-items: center;
  background: var(--honey); clip-path: var(--hex); color: var(--ink);
}
.why__icon svg { width: 32px; height: 32px; }
.why__title { margin-top: 20px; font-family: var(--font-display); font-weight: 800; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; letter-spacing: .02em; }
.why__text { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); }

/* =========================================================
   工程図 — 大会ができるまでの流れ
   ========================================================= */
.processwrap { overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.process {
  position: relative; display: grid; grid-template-columns: repeat(7, minmax(112px, 1fr));
  gap: clamp(6px, 1vw, 14px); min-width: 820px; padding-top: 4px;
}
.process::before {
  content: ""; position: absolute; left: 7%; right: 7%; top: 31px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink-3) 0 7px, transparent 7px 14px);
  opacity: .45;
}
.step { position: relative; text-align: center; }
.step__icon {
  width: 62px; height: 54px; margin: 0 auto; display: grid; place-items: center;
  background: var(--honey); clip-path: var(--hex); color: var(--ink);
}
.step__icon svg { width: 25px; height: 25px; }
.step__label { margin-top: 13px; font-size: 13.5px; font-weight: 700; letter-spacing: .02em; line-height: 1.6; }
.step__text { margin-top: 5px; font-size: 12px; color: var(--ink-3); line-height: 1.75; }
.processnote { margin-top: clamp(20px, 2.6vw, 28px); font-size: 14px; color: var(--ink-2); }
.processnote b { font-weight: 700; color: var(--ink); }

/* 速報サイトの機能グリッドにアイコンを添える */
.feat__icon {
  width: 46px; height: 40px; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--honey); clip-path: var(--hex); color: var(--ink);
}
.feat__icon svg { width: 21px; height: 21px; }

/* =========================================================
   運営大会へのリンク（マラソンフェスティバルシリーズ）
   ビーアシストの六角形と、先方の3本バーのマークを組み合わせている
   ========================================================= */
.racelink {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(14px, 2vw, 22px); align-items: center;
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.4vw, 26px);
  background: var(--ink-deep); color: var(--paper);
  border: 2px solid var(--ink-deep);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.racelink::after {
  content: ""; position: absolute; right: -34px; top: 50%;
  width: 150px; height: 130px; transform: translateY(-50%);
  background: rgba(255, 215, 29, .09); clip-path: var(--hex);
  transition: transform .4s var(--ease), background .26s var(--ease);
}
.racelink:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(30, 30, 50, .28); }
.racelink:hover::after { transform: translateY(-50%) translateX(-10px); background: rgba(255, 215, 29, .16); }
.racelink > * { position: relative; z-index: 1; }

/* 先方サイトのロゴと同じ3本バー */
.racelink__mark {
  display: grid; gap: 3px; flex: none;
  width: 46px; height: 46px; align-content: center; justify-items: start;
  padding-left: 9px;
  background: var(--honey); clip-path: var(--hex);
}
.racelink__mark i { display: block; width: 22px; height: 4px; border-radius: 2px; background: #e8452b; }
.racelink__mark i:nth-child(2) { background: var(--ink-deep); }
.racelink__mark i:nth-child(3) { width: 13px; }

.racelink__label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; color: var(--honey);
}
.racelink__dot {
  width: 11px; height: 11px; flex: none;
  background: var(--honey); clip-path: var(--hex);
  transition: transform .4s var(--ease);
}
.racelink:hover .racelink__dot { transform: rotate(90deg); }
.racelink__en {
  font-family: var(--font-en); font-weight: 700; font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(252, 252, 253, .58);
  padding-left: 9px; border-left: 1px solid rgba(255, 255, 255, .2);
}
.racelink__name { display: block; margin-top: 3px; font-size: clamp(15px, 1.9vw, 17.5px); font-weight: 700; letter-spacing: .02em; }
.racelink__note { display: block; margin-top: 4px; font-size: 12.5px; color: rgba(252, 252, 253, .66); }
.racelink__arrow {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3);
  font-size: 15px; color: var(--honey);
  transition: background .26s var(--ease), color .26s var(--ease), border-color .26s var(--ease), transform .26s var(--ease);
}
.racelink:hover .racelink__arrow { background: var(--honey); color: var(--ink-deep); border-color: var(--honey); transform: translate(3px, -3px); }

/* ヒーロー内（イエロー地の上）に置くとき */
.racelink--hero { margin-top: clamp(16px, 2.2vw, 22px); max-width: 30em; }

/* 下層ページで幅いっぱいに置くとき */
.racelink--wide { padding: clamp(22px, 3vw, 32px) clamp(24px, 3vw, 34px); }
.racelink--wide .racelink__mark { width: 60px; height: 60px; padding-left: 12px; }
.racelink--wide .racelink__mark i { width: 28px; height: 5px; }
.racelink--wide .racelink__mark i:nth-child(3) { width: 17px; }
.racelink--wide .racelink__label { font-size: 13.5px; }
.racelink--wide .racelink__dot { width: 13px; height: 13px; }
.racelink--wide .racelink__name { font-size: clamp(18px, 2.4vw, 23px); }
.racelink--wide .racelink__note { font-size: 13.5px; }
.racelink--wide .racelink__arrow { width: 46px; height: 46px; font-size: 17px; }

@media (max-width: 560px) {
  .racelink { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .racelink__mark { margin-top: 2px; }
  .racelink__arrow { grid-column: 2; justify-self: end; margin-top: 10px; }
  .racelink::after { right: -60px; }
  .racelink--wide .racelink__mark { width: 46px; height: 46px; padding-left: 9px; }
  .racelink--wide .racelink__mark i { width: 22px; height: 4px; }
  .racelink--wide .racelink__mark i:nth-child(3) { width: 13px; }
  .racelink--wide .racelink__arrow { width: 40px; height: 40px; font-size: 15px; }
}
