@charset "UTF-8";

/* =========================================================
   合同会社吉四六 — サイト共通スタイル
   ========================================================= */

:root {
  --ink: #161616;
  --ink-2: #474747;
  --ink-3: #6f6f6f;
  --line: #e4e4e0;
  --line-2: #c9c9c4;
  --bg: #ffffff;
  --bg-2: #f3f3f0;
  --yellow: #ffcf33;
  --yellow-2: #ffe27f;
  --dark: #161616;
  --on-dark: #ffffff;
  --on-dark-2: rgba(255, 255, 255, 0.72);
  --on-dark-3: rgba(255, 255, 255, 0.52);
  --on-dark-line: rgba(255, 255, 255, 0.16);

  --font: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;

  --container: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 64px;
  --radius: 6px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 1024px) {
  :root { --header-h: 84px; }
}

/* ---------- ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.04em;
  line-break: strict;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-menu-open { overflow: hidden; }

h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img, svg, canvas { display: block; }
button { font: inherit; letter-spacing: inherit; }
p { text-wrap: pretty; }

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

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

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

.sp-only { display: inline; }
.pc-only { display: none; }
@media (min-width: 768px) {
  .sp-only { display: none; }
  .pc-only { display: inline; }
}

/* 蛍光ペンのような下線 */
.marker {
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%);
  color: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- ロゴ ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-mark rect { fill: var(--yellow); }
.logo-mark path { stroke: var(--ink); }
.logo-name {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.logo-sub {
  display: grid;
  gap: 3px;
  padding-left: 12px;
  border-left: 1px solid var(--line-2);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  color: var(--ink-2);
}
.logo-sub [lang="en"] { letter-spacing: 0.1em; }
.logo-sub > span { white-space: nowrap; }
@media (max-width: 374.98px) {
  .site-header .logo-sub { display: none; }
}

/* ---------- ボタン・リンク ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 30px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--yellow); border-color: var(--ink); color: var(--ink); }
.btn .icon { flex: none; transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }

.btn--white { background: #fff; border-color: #fff; color: var(--ink); }
.btn--white:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

.btn--sm { min-height: 44px; padding: 0 22px; font-size: 0.875rem; }
.btn--lg { min-height: 64px; padding: 0 40px; font-size: 1rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 2px solid currentColor;
  font-weight: 700;
  text-decoration: none;
  transition: gap 0.25s var(--ease);
}
.text-link:hover { gap: 16px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled,
.is-menu-open .site-header { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.gnav { display: none; }

.menu-btn {
  flex: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  margin-right: -8px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.menu-btn-bars { position: relative; width: 22px; height: 12px; }
.menu-btn-bars::before,
.menu-btn-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: top 0.25s var(--ease), transform 0.25s var(--ease);
}
.menu-btn-bars::before { top: 0; }
.menu-btn-bars::after { top: 10px; }
.menu-btn[aria-expanded="true"] .menu-btn-bars::before { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-bars::after { top: 5px; transform: rotate(-45deg); }

@media (min-width: 1024px) {
  .menu-btn { display: none; }
  .gnav { display: flex; align-items: center; gap: 40px; }
  .gnav ul { display: flex; gap: 36px; }
  .gnav li a {
    position: relative;
    display: block;
    padding: 6px 0;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
  }
  .gnav li a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 3px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
  }
  .gnav li a:hover::after,
  .gnav li a[aria-current="page"]::after { transform: scaleX(1); }
}

/* モバイルメニュー */
.sp-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 49;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px var(--gutter) 40px;
  background: #fff;
}
.sp-menu[hidden] { display: none; }
.sp-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}
.sp-menu li a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.sp-menu .btn { width: 100%; margin-top: 32px; }
.sp-menu-note { margin-top: 28px; font-size: 0.8125rem; color: var(--ink-3); }

/* ---------- セクション共通 ---------- */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section--gray { background: var(--bg-2); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark :focus-visible { outline-color: #fff; }

.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: clamp(36px, 4.5vw, 64px);
}
.sec-title {
  font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.625rem);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.03em;
}
.sec-title .en {
  display: block;
  margin-top: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.section--dark .sec-title .en { color: var(--on-dark-3); }

.h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

/* =========================================================
   トップページ
   ========================================================= */
.hero { display: grid; align-items: center; padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); }
.hero-inner { display: grid; gap: clamp(40px, 6vw, 56px); align-items: center; }
@media (min-width: 1080px) {
  .hero { min-height: min(calc(100svh - var(--header-h)), 820px); padding-block: 40px 64px; }
}
.hero-copy { container-type: inline-size; }
.hero-title {
  font-size: clamp(2.125rem, 1.2rem + 4.6vw, 4.5rem);
  font-size: min(4.75rem, 11.6cqi);
  font-weight: 900;
  line-height: 1.34;
  letter-spacing: -0.04em;
}
.hero-title .line { display: block; white-space: nowrap; }
.hero-title .marker { padding-inline: 0.04em; }
.hero-lead {
  max-width: 30em;
  margin-top: clamp(24px, 3vw, 36px);
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
  line-height: 2;
  color: var(--ink-2);
  word-break: auto-phrase;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3.5vw, 44px); }
@media (max-width: 559.98px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

.hero-visual {
  position: relative;
  padding: clamp(28px, 4.5vw, 48px) clamp(24px, 4vw, 44px) clamp(56px, 6vw, 72px);
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--ink);
}
.hero-visual-cap {
  position: absolute;
  left: clamp(24px, 4vw, 44px);
  right: clamp(24px, 4vw, 44px);
  bottom: clamp(18px, 2.4vw, 26px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.tally { width: 100%; height: auto; overflow: visible; }
.tally--sp { display: none; }
@media (max-width: 1079.98px) {
  .tally--pc { display: none; }
  .tally--sp { display: block; }
}
.tally path { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .tally path {
    stroke-dashoffset: 1;
    animation: tally-draw 0.16s ease-out forwards;
    animation-delay: calc(0.5s + var(--i) * 26ms);
  }
}
@keyframes tally-draw { to { stroke-dashoffset: 0; } }

@media (min-width: 1080px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) clamp(380px, 36vw, 460px); gap: clamp(48px, 6vw, 96px); }
}

/* 事業（トップ） */
.biz-rows { border-top: 2px solid var(--ink); }
.biz-row > a {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 28px 52px 28px 0;
  border-bottom: 1px solid var(--line-2);
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.biz-row-name {
  font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.875rem);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0;
}
.biz-row-name .en {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.biz-row-text { color: var(--ink-2); word-break: auto-phrase; }
.biz-row-tag {
  display: inline-block;
  margin-left: 0.4em;
  padding: 1px 8px;
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: 0.12em;
}
.biz-row-arrow {
  position: absolute;
  right: 0;
  top: 28px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.biz-row > a:hover .biz-row-arrow { background: var(--ink); color: #fff; }

@media (min-width: 840px) {
  .biz-row > a {
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.4fr);
    align-items: center;
    gap: 40px;
    padding: 40px 88px 40px 24px;
    margin-inline: -24px;
  }
  .biz-row-arrow { right: 24px; top: 50%; margin-top: -20px; }
  .biz-row > a:hover { background: var(--yellow); }
  .biz-row > a:hover .biz-row-text,
  .biz-row > a:hover .en { color: var(--ink); }
}

/* 理念（トップ） */
.top-philo { display: grid; gap: 40px; }
.top-philo-quote {
  font-size: clamp(1.625rem, 1.1rem + 2.1vw, 2.875rem);
  font-weight: 900;
  line-height: 1.6;
  letter-spacing: -0.02em;
  word-break: auto-phrase;
}
.top-philo-text { margin-top: 28px; max-width: 34em; color: var(--on-dark-2); line-height: 2.1; word-break: auto-phrase; }
.top-philo-quote + .top-philo-text + .btn,
.top-philo .btn { margin-top: 40px; }

@media (min-width: 960px) {
  .top-philo { grid-template-columns: minmax(200px, 0.6fr) minmax(0, 1.6fr); gap: 64px; }
}

/* 会社情報（トップ） */
.top-company { display: grid; gap: 36px; }
.top-company .text-link { margin-top: 32px; }
@media (min-width: 960px) {
  .top-company { grid-template-columns: minmax(200px, 0.6fr) minmax(0, 1.6fr); gap: 64px; }
}

/* ---------- 会社概要テーブル ---------- */
.profile { border-top: 2px solid var(--ink); }
.profile-row {
  display: grid;
  gap: 2px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-2);
  line-height: 1.9rem;
}
.profile dt { font-size: 0.875rem; font-weight: 700; color: var(--ink-3); letter-spacing: 0.08em; }
.profile dd { min-width: 0; }
.profile dd canvas { max-width: 100%; }
.profile .en { margin-left: 1em; font-size: 0.875rem; color: var(--ink-3); letter-spacing: 0.08em; }
.profile-list li { position: relative; padding-left: 1.1em; }
.profile-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.5em;
  height: 2px;
  background: var(--ink);
}
.profile-list a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.profile-list a:hover { text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }

@media (min-width: 640px) {
  .profile-row { grid-template-columns: 11rem minmax(0, 1fr); gap: 24px; padding: 26px 0; }
  .profile dt { font-size: 0.9375rem; }
}

/* ---------- お問い合わせ帯 ---------- */
.cta { padding-block: clamp(64px, 8vw, 104px); background: var(--yellow); }
.cta-inner { display: grid; gap: 32px; align-items: center; }
.cta-title {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.875rem);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -0.02em;
}
.cta-text { margin-top: 16px; line-height: 2; word-break: auto-phrase; }
.cta .btn:hover { background: #fff; color: var(--ink); }
@media (min-width: 960px) {
  .cta-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 64px; }
}

/* ---------- フッター ---------- */
.site-footer { padding: clamp(56px, 7vw, 88px) 0 28px; background: var(--dark); color: var(--on-dark-2); font-size: 0.875rem; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-main { display: grid; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--on-dark-line); }
.site-footer .logo { color: #fff; }
.site-footer .logo-sub { color: var(--on-dark-2); border-left-color: var(--on-dark-line); }
.footer-motto { margin-top: 20px; font-weight: 700; letter-spacing: 0.08em; color: #fff; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.footer-nav-title { margin-bottom: 10px; font-weight: 700; letter-spacing: 0.08em; }
.footer-nav-title a { color: #fff; }
.footer-nav a { text-decoration: none; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--yellow); }
.footer-nav li + li { margin-top: 6px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  font-size: 0.75rem;
  color: var(--on-dark-3);
}
.footer-bottom a { color: var(--on-dark-2); text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
.footer-bottom small { font-size: inherit; letter-spacing: 0.06em; }

@media (min-width: 840px) {
  .footer-main { grid-template-columns: minmax(0, 1fr) auto; gap: 64px; }
  .footer-nav { grid-template-columns: repeat(4, auto); gap: 32px 56px; }
}

/* =========================================================
   下層ページ
   ========================================================= */
.page-head { padding: clamp(28px, 4vw, 44px) 0 clamp(56px, 7vw, 96px); background: var(--bg-2); }
.breadcrumb ol { display: flex; flex-wrap: wrap; font-size: 0.8125rem; line-height: 1.6; color: var(--ink-3); }
.breadcrumb li + li::before { content: "/"; margin-inline: 0.8em; color: var(--line-2); }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-title {
  margin-top: clamp(36px, 5vw, 64px);
  font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.page-title .en {
  display: block;
  margin-top: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.page-lead {
  max-width: 38em;
  margin-top: clamp(20px, 3vw, 32px);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 2;
  color: var(--ink-2);
  word-break: auto-phrase;
}

/* ページ内ナビ */
.local-nav { border-bottom: 1px solid var(--line); }
.local-nav ul { display: flex; flex-wrap: wrap; gap: 8px 10px; padding-block: 20px; }
.local-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.local-nav a:hover { background: var(--yellow); border-color: var(--yellow); }

/* ---------- 事業内容 ---------- */
.biz { padding-block: clamp(72px, 9vw, 120px); }
.biz + .biz { border-top: 1px solid var(--line); }
.biz-head { display: grid; gap: 28px; }
.biz-title {
  font-size: clamp(1.875rem, 1.45rem + 1.4vw, 2.625rem);
  word-break: auto-phrase;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.biz-title .en {
  display: block;
  margin-top: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.biz-catch {
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  font-weight: 900;
  line-height: 1.6;
  letter-spacing: 0;
  word-break: auto-phrase;
}
.biz-text { margin-top: 20px; max-width: 40em; color: var(--ink-2); line-height: 2.05; }
.points { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 28px; }
.points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 3px;
  background: var(--bg-2);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
}
.points li::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='7' fill='%23ffcf33'/%3E%3Cpath d='M3.8 7.2 6 9.3l4.3-4.6' fill='none' stroke='%23161616' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (min-width: 1120px) {
  .biz-head { grid-template-columns: minmax(340px, 0.8fr) minmax(0, 1.5fr); gap: 56px; }
}

/* 図解 */
.figure {
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.figure-cap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(20px, 3vw, 32px);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}
.figure-cap::before { content: ""; width: 18px; height: 2px; background: var(--ink); }
.figure-note { margin-top: 20px; font-size: 0.75rem; color: var(--ink-3); }

.node {
  position: relative;
  padding: 20px 22px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
}
.node--key { background: var(--yellow); }
.node--dark { background: var(--ink); color: #fff; }
.node-label { font-size: 1.0625rem; font-weight: 900; line-height: 1.5; letter-spacing: 0.04em; }
.node-text { margin-top: 6px; font-size: 0.875rem; line-height: 1.8; color: var(--ink-2); word-break: auto-phrase; }
.node--key .node-text { color: var(--ink); }
.node--dark .node-text { color: var(--on-dark-2); }
.node-step { display: block; margin-bottom: 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-3); }
.node--key .node-step { color: var(--ink); }

/* 矢印つきの流れ */
.flow { display: grid; gap: 40px; }
.flow > li { position: relative; }
.flow > li + li::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -30px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}
@media (min-width: 840px) {
  .flow { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 44px; align-items: stretch; }
  .flow > li { display: grid; }
  .flow > li + li::before { left: -30px; top: 50%; margin: -7px 0 0; transform: rotate(-45deg); }
}

/* 潜在層→顕在層 */
.funnel { display: grid; gap: 40px; justify-items: center; }
.funnel > * { position: relative; width: 100%; }
.funnel > * + *::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -30px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}
.pyramid { display: grid; gap: 6px; justify-items: center; max-width: 420px; }
.pyramid span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  border-radius: 3px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.pyramid .lv1 { width: 46%; background: var(--ink); color: #fff; }
.pyramid .lv2 { width: 73%; background: #cfcfc9; }
.pyramid .lv3 { width: 100%; background: #e3e3dd; }
.pyramid .lv2 svg { flex: none; }

@media (min-width: 900px) {
  .funnel {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 1.15fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 0 56px;
  }
  .funnel > * + *::before { content: none; }
  .funnel-in { align-self: end; }
  .funnel-out { align-self: start; }
  .funnel-in::after,
  .funnel-out::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: rotate(-45deg);
  }
  .funnel-in::after { right: -36px; }
  .funnel-out::before { left: -36px; }
  .pyramid { width: 100%; max-width: none; align-self: center; }
}

/* KGI・KPIツリー */
.tree { display: grid; justify-items: center; }
.tree-root { width: min(100%, 420px); text-align: center; }
.tree-stem { width: 2px; height: 32px; background: var(--ink); }
.tree-branches { position: relative; display: grid; gap: 14px; width: 100%; padding-top: 0; }
.tree-branches > li { text-align: center; }
.tree-loop {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  margin-top: 28px;
  font-size: 0.875rem;
  font-weight: 700;
}
.tree-loop span { padding: 6px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); }
.tree-loop .is-key { background: var(--yellow); border-color: var(--yellow); }
.tree-loop i { font-style: normal; color: var(--ink-3); }

@media (min-width: 720px) {
  .tree-branches { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-top: 30px; }
  .tree-branches::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc(100% / 6);
    right: calc(100% / 6);
    height: 30px;
    border: 2px solid var(--ink);
    border-bottom: 0;
  }
  .tree-branches > li { position: relative; }
  .tree-branches > li:nth-child(2)::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -30px;
    width: 2px;
    height: 30px;
    margin-left: -1px;
    background: var(--ink);
  }
}

/* ---------- 企業理念 ---------- */
.statement {
  font-size: clamp(2.125rem, 1.3rem + 3.6vw, 4.25rem);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.04em;
}
.statement .line { display: block; }
.mission-list { margin-top: clamp(48px, 6vw, 80px); border-top: 2px solid var(--ink); }
.mission-list li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 8px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
  line-height: 2;
  word-break: auto-phrase;
}
.mission-list .tick { width: 30px; height: 30px; margin-top: 0.3em; }
.philo-grid { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .philo-grid { grid-template-columns: minmax(200px, 0.6fr) minmax(0, 1.6fr); gap: 64px; }
}

.message p {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.875rem);
  font-weight: 700;
  line-height: 1.9;
  letter-spacing: 0.01em;
  word-break: auto-phrase;
}
.message p + p { margin-top: 1.4em; }
.message strong { color: var(--yellow); font-weight: 900; }

.vision-list { border-top: 2px solid var(--ink); }
.vision-list li {
  display: grid;
  gap: 10px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-2);
}
.vision-title {
  font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.875rem);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0;
}
.vision-title .arw { display: inline-block; margin-inline: 0.25em; color: var(--ink-3); font-weight: 500; }
.vision-text { color: var(--ink-2); line-height: 2; word-break: auto-phrase; }
@media (min-width: 840px) {
  .vision-list li { padding: 36px 0; }
}

/* ---------- 関連ページ ---------- */
.related { display: grid; gap: 16px; }
.related a {
  position: relative;
  display: block;
  padding: 28px 72px 28px 28px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.related a:hover { background: var(--yellow); }
.related-title { font-size: 1.25rem; font-weight: 900; letter-spacing: 0.06em; }
.related-text { margin-top: 4px; font-size: 0.875rem; color: var(--ink-2); }
.related .icon { position: absolute; right: 28px; top: 50%; margin-top: -8px; transition: transform 0.25s var(--ease); }
.related a:hover .icon { transform: translateX(4px); }
@media (min-width: 720px) {
  .related { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

/* ---------- お問い合わせ ---------- */
.contact-grid { display: grid; gap: 56px; }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 72px; align-items: start; }
}
.mail-box {
  margin-top: 24px;
  padding: clamp(24px, 4vw, 40px);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}
.mail-label { font-size: 0.8125rem; font-weight: 700; color: var(--ink-3); letter-spacing: 0.08em; }
.mail-addr { margin-top: 6px; font-size: clamp(1.125rem, 0.9rem + 1vw, 1.625rem); font-weight: 700; line-height: 2.6rem; letter-spacing: 0.02em; }
.mail-addr canvas { max-width: 100%; }
.mail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.copy-status { min-height: 1.5em; font-size: 0.8125rem; font-weight: 700; }
.check-list { margin-top: 18px; border-top: 1px solid var(--line-2); }
.check-list li {
  position: relative;
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid var(--line-2);
  line-height: 1.8;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='7' fill='%23ffcf33'/%3E%3Cpath d='M3.8 7.2 6 9.3l4.3-4.6' fill='none' stroke='%23161616' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.check-list small { display: block; font-size: 0.8125rem; color: var(--ink-3); }

.steps { margin-top: 20px; counter-reset: step; }
.steps li { position: relative; padding: 0 0 28px 52px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 40px;
  bottom: 6px;
  width: 2px;
  background: var(--line-2);
}
.steps strong { display: block; font-size: 1.0625rem; line-height: 34px; }
.steps p { margin-top: 2px; font-size: 0.9375rem; color: var(--ink-2); }
.side-box { padding: clamp(24px, 3.5vw, 36px); border-radius: var(--radius); background: var(--bg-2); }
.note { margin-top: 28px; font-size: 0.875rem; color: var(--ink-2); }
.note a { text-underline-offset: 4px; }

/* ---------- 文章ページ（プライバシーポリシー） ---------- */
.prose { max-width: 46em; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 {
  margin-top: 2.6em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line-2);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.06em;
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose ol { padding-left: 1.6em; list-style: decimal; }
.prose ul { padding-left: 1.4em; list-style: disc; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--ink-3); }
.prose .meta { margin-top: 3em; color: var(--ink-3); font-size: 0.875rem; }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(72px, 12vw, 160px); }
.notfound-code { display: flex; align-items: center; gap: 20px; font-size: 0.875rem; font-weight: 700; color: var(--ink-3); letter-spacing: 0.1em; }
.notfound-code svg { width: 56px; height: 56px; }
.notfound .page-title { margin-top: 24px; }
.notfound .btn { margin-top: 40px; }

.gnav .btn[aria-current="page"] { background: var(--yellow); color: var(--ink); }
