/* =========================================================
   ヨクする株式会社 — Live Painting Remake
   「筆を塗り重ねるように、あなたのビジネスをヨクしていく。」
   スクロール=筆の塗り重ね。動と静のリズム。
   ========================================================= */

/* ===== 0. デザイントークン ===== */
:root {
  /* 基本3色(2026-06 グリーン系へ刷新。変数名は据え置きで値のみ変更) */
  --blue:   #12a085;   /* メイン: ティールグリーン */
  --lime:   #c9e000;   /* アクセント: ライムイエロー */
  --ink:    #17201e;   /* 墨(やや緑寄りの黒) */

  /* 派生色 */
  --blue-deep:  #0a7a64;
  --blue-pale:  #e0f3ee;
  --lime-pale:  #f4f9d8;
  --paper:      #ffffff;
  --paper-warm: #f8fbfa;
  --gray-line:  #e6ebe9;
  --gray-text:  #5f6b68;

  /* 黒(網点・反転セクション用) */
  --black:      #11181a;

  /* タイポ */
  --font-en:   "Anton", sans-serif;
  --font-head: "Zen Kaku Gothic New", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;

  /* 寸法 */
  --header-h: 76px;
  --section-gap: clamp(96px, 14vh, 180px);

  /* テープのギザギザ切り口 */
  --tape-zigzag: polygon(
    1.6% 0, 98.4% 0, 100% 11%, 98.2% 24%, 100% 37%, 98.4% 51%,
    100% 64%, 98.2% 77%, 100% 89%, 98.4% 100%, 1.6% 100%,
    0 89%, 1.8% 76%, 0 63%, 1.6% 50%, 0 37%, 1.8% 24%, 0 11%
  );
}

/* ===== 1. リセット・ベース ===== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.lenis { scroll-behavior: auto; height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: var(--lime); color: var(--ink); }

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

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.container {
  width: min(100% - 48px, 1160px);
  margin-inline: auto;
}
.container--narrow { max-width: 980px; }
.container--faq { max-width: 760px; }

.section { padding-block: var(--section-gap); }


/* ===== 2. セクション共通ヘッダー ===== */
.section-head { margin-bottom: clamp(40px, 7vh, 72px); }
.section-head--center { text-align: center; }

/* SP表示のみ有効な改行 */
.br-sp { display: none; }
@media (max-width: 640px) { .br-sp { display: inline; } }
.section-head--center .section-index { justify-content: center; }

.section-index {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  color: var(--gray-text);
  margin-bottom: 18px;
}
.section-index__dot {
  width: 10px;
  height: 10px;
  background: var(--blue);
  border-radius: 58% 42% 52% 48% / 50% 56% 44% 50%;
  flex: none;
}

.section-title {
  position: relative;
  display: inline-block;
  isolation: isolate;
  padding-inline: 0.1em;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
}
/* h2全面を覆う筆塗り(JSが注入。左→右に出現し文字は白へ) */
.h2-swipe {
  position: absolute;
  top: -0.14em;
  left: -0.12em;
  width: calc(100% + 0.24em);
  height: calc(100% + 0.3em);
  z-index: -1;
  fill: var(--blue);
  clip-path: inset(0 100% 0 0);
}
/* SP: 2行になる見出しは上下のペンキを大きく広げて文字全体を覆う */
@media (max-width: 640px) {
  .h2-swipe {
    top: -0.4em;
    height: calc(100% + 0.8em);
  }
}

.section-desc {
  margin-top: 20px;
  max-width: 36em;
  color: var(--gray-text);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
}

/* 強調語(ライムのマーカーが下に引かれる) */
.paint-word {
  position: relative;
  font-style: normal;
  display: inline-block;
}
.paint-word .pw-stroke {
  position: absolute;
  left: -0.08em;
  bottom: 0.02em;
  width: calc(100% + 0.16em);
  height: 0.34em;
  z-index: -1;
  overflow: visible;
}
.paint-word .pw-stroke path {
  fill: none;
  stroke: var(--lime);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

/* ===== 3. ボタン=ペンキ充填ホバー ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.btn > * { position: relative; z-index: 1; }

/* 液面(下から満ちる) */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  top: -18%;
  z-index: 0;
  transform: translateY(118%);
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
  border-radius: 46% 54% 0 0 / 16px 22px 0 0;
}
.btn:hover::after,
.btn:focus-visible::after { transform: translateY(0); }

.btn--sm { padding: 10px 22px; font-size: 0.88rem; }
.btn--lg { padding: 18px 38px; font-size: 1.02rem; }

.btn--blue { background: var(--blue); color: #fff; }
.btn--blue::after { background: var(--lime); }
.btn--blue:hover, .btn--blue:focus-visible { color: var(--ink); }

.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime::after { background: var(--blue); }
.btn--lime:hover, .btn--lime:focus-visible { color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn--outline::after { background: var(--blue); }
.btn--outline:hover, .btn--outline:focus-visible { color: #fff; box-shadow: inset 0 0 0 2px var(--blue); }

.btn--ink { background: var(--ink); color: #fff; }
.btn--ink::after { background: var(--blue-deep); }
.btn--ink:hover, .btn--ink:focus-visible { color: #fff; }

/* 白地＋アクセント枠線。ホバーで黒地(枠線はそのまま)。液面ホバーは無効 */
.btn--ghost {
  border-radius: 8px;            /* ヘッダーHUDボタンに合わせた角丸四角形 */
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 3px var(--lime);
  transition: background 0.35s cubic-bezier(0.65, 0, 0.35, 1), color 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.btn--ghost::after { display: none; }
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: var(--black);
  color: #fff;
  box-shadow: inset 0 0 0 3px var(--lime);
}

/* ===== 4b. ペンキ装飾(区間ごとの筆跡 + 壁にぶちまけたスプラッシュ) =====
   各セクション内で完結する装飾レイヤー。背景の上・コンテンツ(z:2)の下に置く */

/* コンテンツを装飾レイヤーより手前に出す */
.hero__inner,
.concept__inner,
.container,
.sv-card__inner,
.contact__inner,
.scroll-hint,
.site-footer__inner,
.site-footer__bottom {
  position: relative;
  z-index: 2;
}

.section { position: relative; }

.paint-decor {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* 壁にぶちまけたインクのスプラッシュ */
.ink-splat {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
}
.ink-splat use,
.ink-splat path,
.ink-splat circle { fill: currentColor; }

/* 区間ごとに描かれる筆跡(ドライブラシ風に2本重ね) */
.brush-streak {
  position: absolute;
  pointer-events: none;
  overflow: visible;
}
.brush-streak path {
  fill: none;
  stroke-linecap: round;
}

/* Serviceカード内: 背景の上・コンテンツの下(multiplyでパネルに馴染ませる) */
.sv-card__decor {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: multiply;
}

/* ===== 5. Header — ダーク基調。ヒーロー上は全幅、スクロールでアイランド ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: padding 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
.site-header.is-scrolled {
  padding: 12px clamp(14px, 3vw, 40px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  height: var(--header-h);
  padding-inline: clamp(20px, 3.4vw, 44px);
  margin-inline: auto;
  max-width: 100%;
  background: rgba(23, 32, 30, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  transition: max-width 0.45s cubic-bezier(0.65, 0, 0.35, 1),
              height 0.45s cubic-bezier(0.65, 0, 0.35, 1),
              border-radius 0.45s ease, box-shadow 0.45s ease;
}
.site-header.is-scrolled .site-header__inner {
  max-width: 1160px;
  height: 62px;
  border-radius: 16px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex: none;
}
.brand__logo {
  height: clamp(20px, 2.2vw, 26px);
  width: auto;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand:hover .brand__logo { transform: rotate(360deg); }
.brand__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: #fff;
}
/* 社名ロゴ画像（横長ワードマーク） */
.brand__name--img {
  height: clamp(20px, 2.2vw, 26px);
  width: auto;
  display: block;
}

.gnav { margin-inline: auto; }
.gnav__list {
  display: flex;
  gap: clamp(10px, 1.7vw, 26px);
}
/* ナビ=「番号 + ラベル」のシステム風。ホバーでスキャンライン下線 */
.gnav__link {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 6px 3px 9px;
  line-height: 1.2;
}
.gnav__idx {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.42);
  transition: color 0.25s ease;
}
.gnav__txt {
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.25s ease;
}
.gnav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}
.gnav__link:hover::after,
.gnav__link:focus-visible::after { transform: scaleX(1); }
.gnav__link:hover .gnav__idx,
.gnav__link:focus-visible .gnav__idx { color: var(--lime); }
.gnav__link:hover .gnav__txt,
.gnav__link:focus-visible .gnav__txt { color: #fff; }

.site-header__cta {
  display: flex;
  gap: 10px;
  flex: none;
}

/* HUD調テックボタン: 点滅インジケータ + ホバーでライムが横にスイープ */
.btn--hud {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 9px 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.22);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.3s ease, box-shadow 0.3s ease;
}
.btn--hud .btn__label { position: relative; z-index: 1; }
.btn--hud::after {            /* ホバーで満ちるライム(液面演出は無効化) */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--lime);
  transform: translateX(-101%);
  transition: transform 0.38s cubic-bezier(0.65, 0, 0.35, 1);
  border-radius: 0;
}
.btn--hud:hover,
.btn--hud:focus-visible { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--lime); }
.btn--hud:hover::after,
.btn--hud:focus-visible::after { transform: translateX(0); }
/* primary(モバイルCTA)= ライム地。ホバーで墨地+ライム文字に反転 */
.btn--hud-primary {
  background: var(--lime);
  color: var(--ink);
  box-shadow: none;
}
.btn--hud-primary::after { background: var(--ink); }
.btn--hud-primary:hover,
.btn--hud-primary:focus-visible { color: var(--lime); box-shadow: none; }

/* ハンバーガー(通常アイコン・右寄せ) */
.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  margin-left: auto;     /* ヘッダー右端へ */
  z-index: 1100;
}
.menu-toggle__bar {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.2s ease;
}
.menu-toggle__bar:nth-child(1) { top: 15px; }
.menu-toggle__bar:nth-child(2) { top: 21.5px; }
.menu-toggle__bar:nth-child(3) { top: 28px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* モバイルメニュー(ローラーで塗る展開) */
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: var(--paper);
  padding: 18px 24px 36px;
  box-shadow: 0 18px 40px rgba(35, 46, 56, 0.12);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.5s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s linear 0.5s;
  visibility: hidden;
}
.mobile-menu.is-open {
  clip-path: inset(0);
  visibility: visible;
  transition: clip-path 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.mobile-menu__list { display: grid; gap: 4px; }
.mobile-menu__link {
  display: block;
  padding: 14px 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  border-bottom: 1px solid var(--gray-line);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.mobile-menu__cta {
  margin-top: 18px;
  padding: 16px 24px;
  width: 100%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.mobile-menu.is-open .mobile-menu__link,
.mobile-menu.is-open .mobile-menu__cta {
  opacity: 1;
  transform: none;
}
.mobile-menu.is-open li:nth-child(1) > * { transition-delay: 0.12s; }
.mobile-menu.is-open li:nth-child(2) > * { transition-delay: 0.17s; }
.mobile-menu.is-open li:nth-child(3) > * { transition-delay: 0.22s; }
.mobile-menu.is-open li:nth-child(4) > * { transition-delay: 0.27s; }
.mobile-menu.is-open li:nth-child(5) > * { transition-delay: 0.32s; }
.mobile-menu.is-open li:nth-child(6) > * { transition-delay: 0.37s; }
.mobile-menu.is-open li:nth-child(7) > * { transition-delay: 0.42s; }

@media (max-width: 1024px) {
  .gnav, .site-header__cta { display: none; }
  .menu-toggle { display: block; }
  .mobile-menu { display: block; }
}

/* ===== 6. Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 4vh) 0 10vh;
  overflow: hidden;
}

/* ヒーロー背景: 業務データ/プロセスのネットワーク(常時アニメ・コンテンツ背面) */
/* ページ全体の固定パララックス背景。透明セクションの裏に見える(z:-1) */
.page-net {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.45s ease;
}
/* 可読性のため段階的に減光: 悩み・強み=0.7 / 流れ〜FAQ=0.4 */
.page-net.dim { opacity: 0.7; }
.page-net.dim-strong { opacity: 0.4; }

/* ロード時に青ベタで全画面(ヘッダー含む)を覆い、斜めブラシで塗って剥がす。
   z-indexはヘッダー(1000)より上。pointer-events:none で下のクリックは保つ。 */
.hero-cover {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  width: min(100% - 48px, 1160px);
  margin-inline: auto;
}

.hero__eyebrow {
  font-family: var(--font-en);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  letter-spacing: 0.34em;
  color: var(--blue);
  margin-bottom: clamp(18px, 3vh, 30px);
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 1.18;
  letter-spacing: 0.015em;
}
.h1-line { display: block; overflow: hidden; }
.h1-line__inner { display: inline-block; }
.h1-blue { color: var(--blue); }

/* ヨクする。— 青ストロークに塗られる */
.h1-paint {
  position: relative;
  isolation: isolate;
  padding-inline: 0.08em;
}
.h1-paint__swipe {
  position: absolute;
  inset: -0.06em -0.04em;
  width: calc(100% + 0.08em);
  height: calc(100% + 0.12em);
  z-index: -1;
  clip-path: inset(0 100% 0 0); /* JS/reduced-motionで解除 */
}
.h1-paint__swipe { fill: var(--lime); }
.h1-paint__text { position: relative; }
.h1-paint.is-painted .h1-paint__text { color: var(--ink); }

.hero__lead {
  max-width: 38em;
  margin-top: clamp(26px, 4vh, 42px);
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: clamp(30px, 5vh, 48px);
}

/* SCROLLヒント(筆先から一滴) */
.scroll-hint {
  position: absolute;
  right: clamp(18px, 3vw, 42px);
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.scroll-hint__label {
  writing-mode: vertical-rl;
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: var(--gray-text);
}
.scroll-hint__drop {
  width: 11px;
  height: 16px;
  fill: var(--blue);
  animation: drop-fall 2.4s cubic-bezier(0.55, 0, 0.8, 0.4) infinite;
}
@keyframes drop-fall {
  0%   { transform: translateY(0) scale(0.4); opacity: 0; }
  28%  { transform: translateY(2px) scale(1); opacity: 1; }
  72%  { transform: translateY(30px) scale(1); opacity: 1; }
  100% { transform: translateY(44px) scale(0.9); opacity: 0; }
}

/* ===== 7. セクション区切りエッジ ===== */
.edge {
  display: block;
  width: 100%;
  height: clamp(40px, 5vw, 70px);
  pointer-events: none;
}
.edge--pale { fill: var(--blue-pale); }
.edge--paper { fill: var(--paper); }
.edge--top {
  position: absolute;
  bottom: 100%;
  left: 0;
}
.edge--bottom {
  position: absolute;
  top: 100%;
  left: 0;
  transform: scaleY(-1);
}

/* ===== 8. Concept帯 ===== */
.concept {
  position: relative;
  background: var(--blue-pale);
  margin-block: calc(var(--section-gap) + clamp(40px, 5vw, 70px));
  padding-block: clamp(90px, 13vh, 150px);
}

.concept__marquee {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.concept__marquee-track {
  display: flex;
  flex: none;
  white-space: nowrap;
  font-family: var(--font-en);
  font-size: clamp(5rem, 12vw, 10rem);
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0.05;
  animation: marquee 60s linear infinite;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

.concept__inner {
  position: relative;
  width: min(100% - 48px, 980px);
  margin-inline: auto;
  text-align: center;
}

.concept__lead {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.5rem, 3.6vw, 2.7rem);
  line-height: 1.7;
  letter-spacing: 0.04em;
}
.concept__lead-line { display: block; }
.concept__lead .char { display: inline-block; }

.concept__sub {
  max-width: 36em;
  margin: clamp(28px, 4vh, 44px) auto 0;
  font-size: clamp(0.92rem, 1.3vw, 1.02rem);
  color: var(--ink);
}

/* ===== 9. 01 Strength — 独立しつつ繋がる 2×2 グリッド ===== */
.strength-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.6vw, 40px);
}
/* 中央を貫く十字の破線＝独立したサービスが繋がっている表現(隙間だけに見える) */
.strength-grid::before,
.strength-grid::after {
  content: "";
  position: absolute;
  z-index: 0;
  opacity: 0.5;
}
.strength-grid::before {
  left: 50%;
  top: 5%;
  bottom: 5%;
  width: 2px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(var(--blue) 0 6px, transparent 6px 13px);
}
.strength-grid::after {
  top: 50%;
  left: 5%;
  right: 5%;
  height: 2px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, var(--blue) 0 6px, transparent 6px 13px);
}
/* 中央の節点(ヨクするのロゴマーク) */
.strength-grid__hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 8px var(--paper), 0 6px 18px rgba(23, 32, 30, 0.12);
  z-index: 2;            /* カード(z:1)より前面 */
}
.strength-grid__hub img {
  width: 58px;
  height: 58px;
}
.strength-card {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border: 1px solid var(--gray-line);
  border-radius: 12px;
  padding: clamp(22px, 2.6vw, 34px);
  box-shadow: 0 2px 10px rgba(23, 32, 30, 0.04), 0 16px 36px rgba(23, 32, 30, 0.05);
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.strength-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--blue) 45%, transparent);
  box-shadow: 0 6px 16px rgba(23, 32, 30, 0.07), 0 26px 50px rgba(23, 32, 30, 0.12);
}
/* 番号ノード(回路の節点風・角丸スクエア) */
.strength-card__node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  font-family: var(--font-en);
  font-size: 1.5rem;
  color: #fff;
  background: var(--blue);
  border-radius: 14px;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--blue) 35%, transparent);
}
.strength-card__code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 6px;
}
.strength-card__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  line-height: 1.45;
}
.strength-card__text {
  margin-top: 12px;
  font-size: clamp(0.9rem, 1.3vw, 0.98rem);
  line-height: 1.9;
  color: var(--gray-text);
}
@media (max-width: 680px) {
  .strength-grid { grid-template-columns: 1fr; }
  .strength-grid::after,
  .strength-grid__hub { display: none; }
  .strength-grid::before { left: 26px; }
}

/* ===== 10. 02 Service — 重ね塗りスタッキング ===== */
/* Serviceだけは不透明にして背景ネットワークを出さない(01からスタックを見せる) */
.service {
  position: relative;
  z-index: 1;
  background: var(--paper);
}
.service-stack { position: relative; }

/* stickyはz-index:autoでもスタッキングコンテキストを作るため、
   カード全体をペンキ線(z:1)より手前に置く(線はカードの裏を通る) */
.sv-card {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: visible;
  z-index: 2;
}
.sv-card--1 { background: var(--paper); }
.sv-card--2 { background: var(--blue-pale); }
.sv-card--3 { background: var(--lime-pale); }

/* 上端は「上から塗ってくる」ブラシエッジ */
.sv-card__edge {
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: clamp(36px, 4.4vw, 60px);
  pointer-events: none;
}
.sv-card--1 .sv-card__edge { fill: var(--paper); }
.sv-card--2 .sv-card__edge { fill: var(--blue-pale); }
.sv-card--3 .sv-card__edge { fill: var(--lime-pale); }
/* 1枚目は白地に白エッジで実質不可視のため非表示 */
.sv-card--1 .sv-card__edge { display: none; }

.sv-card__bignum {
  position: absolute;
  right: 1vw;
  top: 50%;
  z-index: 0;
  transform: translateY(-50%);
  font-family: var(--font-en);
  font-size: clamp(16rem, 36vw, 34rem);
  line-height: 1;
  color: var(--ink);
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
}

.sv-card__edge { z-index: 2; }

.sv-card__inner {
  position: relative;
  width: min(100% - 48px, 1160px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(48px, 8vh, 90px);
}

.sv-card__meta {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 22px;
}
.sv-card__num {
  font-family: var(--font-en);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1;
  color: var(--blue);
}
.sv-card__tag {
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  color: var(--gray-text);
}
.sv-card__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.45;
}
.sv-card__subtitle {
  margin-top: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--blue);
  letter-spacing: 0.02em;
}
.sv-card__text {
  margin-top: 18px;
  max-width: 32em;
  color: var(--ink);
  font-size: clamp(0.92rem, 1.3vw, 1rem);
}

.sv-card__link {
  position: relative;
  display: inline-block;
  margin-top: 30px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  padding-bottom: 10px;
}
.sv-card__link-stroke {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 10px;
  overflow: visible;
}
.sv-card__link-stroke path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}
.sv-card__link:hover .sv-card__link-stroke path,
.sv-card__link:focus-visible .sv-card__link-stroke path { stroke-dashoffset: 0; }

/* 画像SVGの透過部から背景のペンキ線が見えないよう、カードと同色で裏打ちする */
.sv-card__figure {
  position: relative;
}
.sv-card__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 768px) {
  .sv-card { min-height: 86vh; }
  .sv-card__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: clamp(40px, 7vh, 64px);
  }
  .sv-card__figure { order: 2; max-width: 420px; }
  .sv-card__bignum { font-size: clamp(11rem, 48vw, 18rem); top: auto; bottom: 4vh; transform: none; }
}

/* ===== お悩み(チェックリスト) ===== */
.worry { background: transparent; }

.worry-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(28px, 4vw, 56px);
  row-gap: 0;
}
/* 大きな番号が主役。枠線は使わず、細い区切り線のみ */
.worry-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 22px);
  padding: clamp(18px, 2.4vw, 26px) 4px;
  border-top: 1px solid var(--gray-line);
}
/* 上2件は上線を消す(各列の先頭) */
.worry-item:nth-child(1),
.worry-item:nth-child(2) { border-top: 0; }
.worry-item__no {
  flex: none;
  font-family: var(--font-en);
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  line-height: 0.9;
  color: var(--blue);
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}
.worry-item:hover .worry-item__no { color: var(--lime); }
.worry-item__text {
  font-size: clamp(0.92rem, 1.3vw, 1rem);
  font-weight: 500;
  line-height: 1.7;
}
.worry-lead {
  margin-top: clamp(32px, 5vh, 48px);
  padding: clamp(22px, 3vw, 30px) clamp(24px, 4vw, 40px);
  text-align: center;
  background: var(--blue-pale);
  border-radius: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.9;
}

@media (max-width: 640px) {
  .worry-list { grid-template-columns: 1fr; }
  /* 1列時は先頭のみ上線を消す */
  .worry-item:nth-child(2) { border-top: 1px solid var(--gray-line); }
}

/* ===== ご相談から導入・改善までの流れ ===== */
.flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(28px, 4vw, 44px);
}
.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: clamp(58px, 8vw, 92px) 1fr;
  gap: clamp(20px, 3vw, 36px);
}
/* 縦のつながり線(破線のテクノロジー線) */
.flow-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: clamp(28px, 4vw, 45px);
  top: clamp(60px, 8vw, 94px);
  bottom: calc(-1 * clamp(28px, 4vw, 44px));
  width: 2px;
  transform: translateX(-1px);
  background: repeating-linear-gradient(var(--blue) 0 6px, transparent 6px 13px);
  opacity: 0.5;
}
/* 番号ノード(回路の節点風・角丸スクエア) */
.flow-step__num {
  position: relative;
  z-index: 1;
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(58px, 8vw, 92px);
  height: clamp(58px, 8vw, 92px);
  font-family: var(--font-en);
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  color: #fff;
  background: var(--blue);
  border-radius: 18px;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--blue) 35%, transparent);
}
.flow-step__body {
  padding-top: clamp(6px, 1vw, 14px);
  padding-bottom: clamp(20px, 3vw, 30px);
  border-bottom: 1px solid var(--gray-line);
}
.flow-step:last-child .flow-step__body { border-bottom: 0; }
.flow-step__label {
  display: block;
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--gray-text);
  margin-bottom: 6px;
}
.flow-step__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  line-height: 1.4;
}
.flow-step__text {
  margin-top: 14px;
  color: var(--ink);
  font-size: clamp(0.92rem, 1.3vw, 1rem);
}
.flow-step__tasks {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 22px;
}
.flow-step__tasks li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--gray-text);
}
.flow-step__tasks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 58% 42% 52% 48% / 50% 56% 44% 50%;
}

@media (max-width: 640px) {
  .flow-step__tasks { grid-template-columns: 1fr; }
}

/* ===== 11. 03 News — マスキングテープラベル ===== */
.news {
  position: relative;
  background: transparent;
}

.news-list { border-top: 1px solid var(--gray-line); }

.news-item { border-bottom: 1px solid var(--gray-line); }

.news-item__link {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  padding: clamp(20px, 3vh, 30px) clamp(8px, 1.4vw, 18px);
  isolation: isolate;
}
/* hover: 薄ライムのストロークが左→右へ走る */
.news-item__link::before {
  content: "";
  position: absolute;
  inset: 6px 0;
  background: var(--lime-pale);
  clip-path: polygon(0 18%, 4% 4%, 96% 0, 100% 32%, 99% 74%, 95% 100%, 5% 96%, 1% 70%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: -1;
}
.news-item__link:hover::before,
.news-item__link:focus-visible::before { transform: scaleX(1); }

.news-item__date {
  font-family: var(--font-en);
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  color: var(--gray-text);
  min-width: 6.4em;
}

/* マスキングテープ */
.tape {
  display: inline-block;
  padding: 5px 18px;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
  clip-path: var(--tape-zigzag);
  opacity: 0.92;
  filter: drop-shadow(0 2px 2px rgba(35, 46, 56, 0.14));
}
.tape--lime { background: var(--lime); color: var(--ink); }
.tape--paper {
  background: var(--paper-warm);
  color: var(--gray-text);
  box-shadow: inset 0 0 0 1px var(--gray-line);
}
.tape--r1 { transform: rotate(-2deg); }
.tape--r2 { transform: rotate(1.5deg); }
.tape--r3 { transform: rotate(-1deg); }

.news-item__title {
  font-size: clamp(0.92rem, 1.3vw, 1rem);
  font-weight: 500;
  line-height: 1.7;
}

.news-item__arrow {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--blue);
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.news-item__link:hover .news-item__arrow,
.news-item__link:focus-visible .news-item__arrow {
  transform: translate(4px, -2px) rotate(6deg);
}

.news-more {
  margin-top: 34px;
  text-align: right;
}
.news-more__link {
  position: relative;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.96rem;
  padding: 6px 2px;
}
.news-more__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 6px;
  background: var(--lime);
  clip-path: polygon(0 42%, 8% 12%, 30% 30%, 55% 6%, 78% 34%, 100% 16%, 97% 70%, 72% 92%, 48% 68%, 22% 96%, 4% 76%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: -1;
}
.news-more__link:hover::after,
.news-more__link:focus-visible::after { transform: scaleX(1); }

@media (max-width: 768px) {
  .news-item__link {
    grid-template-columns: auto auto 1fr;
    grid-template-areas:
      "date tape arrow"
      "title title title";
    row-gap: 8px;
  }
  .news-item__date { grid-area: date; }
  .tape { grid-area: tape; justify-self: start; }
  .news-item__title { grid-area: title; }
  .news-item__arrow { grid-area: arrow; justify-self: end; }
}

/* ===== 12. 04 FAQ — テープ剥がしアコーディオン ===== */
.faq { background: transparent; }

.faq-list { display: grid; gap: 18px; }

/* 初期状態は3つともまっすぐ(開いたときだけめくれる) */
.faq-item { perspective: 900px; }

.faq-item__q { font-size: inherit; font-weight: inherit; }

/* 質問バー=ライムイエローのマスキングテープ */
.faq-item__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  text-align: left;
  padding: 18px 24px;
  background:
    repeating-linear-gradient(90deg,
      rgba(35, 46, 56, 0.045) 0 10px,
      rgba(35, 46, 56, 0) 10px 20px),
    var(--lime);
  clip-path: var(--tape-zigzag);
  filter: drop-shadow(0 2px 3px rgba(35, 46, 56, 0.16));
  transform-origin: left center;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.25s cubic-bezier(0.65, 0, 0.35, 1), filter 0.25s ease;
}
.faq-item__btn:focus-visible { outline-color: var(--blue); }
.faq-item.is-open .faq-item__btn {
  transform: rotate(var(--tilt, 0deg)) rotateX(16deg) skewY(-1.8deg);
  filter: drop-shadow(0 9px 12px rgba(35, 46, 56, 0.24));
}

.faq-item__q-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.7;
}

/* ペンキの十字 → 開で×へ */
.faq-item__icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex: none;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--blue);
}
.faq-item__icon::before {
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  transform: translateX(-50%);
  border-radius: 45% 55% 50% 50% / 14% 14% 12% 12%;
  background: var(--ink);
}
.faq-item__icon::after {
  top: 50%;
  left: 0;
  height: 4px;
  width: 100%;
  transform: translateY(-50%);
  border-radius: 14% 14% 12% 12% / 45% 55% 50% 50%;
  background: var(--ink);
}
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); }

.faq-item__a { overflow: hidden; }
.faq-item__a-text {
  padding: 20px 26px 14px;
  font-size: 0.94rem;
  color: var(--ink);
}

/* ===== 13. Contact CTA — ペンキが画面を満たす ===== */
.contact {
  position: relative;
  margin-top: var(--section-gap);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* 縦中央。align-itemsはstretchのまま(横潰れ防止) */
  padding: clamp(80px, 12vh, 140px) 24px;
  text-align: center;
  overflow: hidden;
  background: var(--paper);
}

/* 既定=塗られた最終状態(非JS・reduced-motionでも成立)。演出時はJSが下げてから満たす */
.contact__paint {
  position: absolute;
  inset: 0;
}
.contact__paint-wave {
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: clamp(50px, 6vw, 80px);
  margin-bottom: -2px;
}
.contact__paint-wave-path { fill: var(--blue); }
.contact__paint-body {
  position: absolute;
  inset: 0;
  background: var(--blue);
}

.contact__dropfall {
  position: absolute;
  left: 50%;
  top: 0;
  width: 16px;
  height: 22px;
  margin-left: -8px;
  fill: var(--blue);
  opacity: 0;
}

.contact__inner { position: relative; width: 100%; max-width: 760px; margin-inline: auto; }

.contact__eyebrow {
  font-family: var(--font-en);
  font-size: 0.92rem;
  letter-spacing: 0.34em;
  color: var(--lime);
}
.contact__title {
  margin-top: 18px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.8rem, 4.4vw, 3.2rem);
  line-height: 1.5;
  color: #fff;
}
.contact__desc {
  max-width: 34em;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.92rem, 1.3vw, 1.02rem);
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: clamp(30px, 5vh, 46px);
}

/* CTA上の白文字はペンキ到達前は透明(JSで制御。非JS時は見えるようCSS既定は表示) */

/* Contact→Footer は網点グラデーションで接続するためドリップは非表示 */
.contact__drips { display: none; }

/* ===== 14. Footer — ペンキ職人の作業台 ===== */
.site-footer {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding-top: clamp(90px, 12vh, 140px);
  overflow: hidden;
}

/* 作業台に刷り込まれた社名の刷毛跡(輪郭だけの巨大タイポ) */
.site-footer__watermark {
  position: absolute;
  left: 50%;
  bottom: -0.16em;
  transform: translateX(-50%);
  font-family: var(--font-en);
  font-size: clamp(6rem, 18vw, 17rem);
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.07);
  pointer-events: none;
  user-select: none;
}

/* 作業台に並ぶ色見本チップ */
.site-footer__swatches {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}
.site-footer__swatches span {
  width: 36px;
  height: 22px;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}
.site-footer__swatches span:nth-child(1) { background: #0b6e5b; transform: rotate(-3deg); }
.site-footer__swatches span:nth-child(2) { background: #12a085; transform: rotate(2deg); }
.site-footer__swatches span:nth-child(3) { background: #4ec5ab; transform: rotate(-1deg); }
.site-footer__swatches span:nth-child(4) { background: #94e0cf; transform: rotate(2.5deg); }
.site-footer__swatches span:nth-child(5) { background: var(--lime); transform: rotate(-2deg); }

.site-footer__inner {
  width: min(100% - 48px, 1160px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: clamp(40px, 6vw, 90px);
  padding-bottom: clamp(50px, 8vh, 80px);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.12rem;
}
.site-footer__brand-logo {
  height: 26px;
  width: auto;
  display: block;
}
/* 住所=作業台に貼ったラベルテープ */
.site-footer__address {
  display: inline-block;
  margin-top: 22px;
  padding: 14px 24px;
  font-size: 0.88rem;
  line-height: 2.1;
  background: var(--paper-warm);
  color: var(--ink);
  clip-path: var(--tape-zigzag);
  transform: rotate(-1.2deg);
  opacity: 0.94;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.site-footer__nav--2 { grid-template-columns: repeat(2, 1fr); max-width: 460px; }
/* カラム見出し=色違いのマスキングテープ */
.site-footer__heading {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 4px 16px;
  margin-bottom: 18px;
  clip-path: var(--tape-zigzag);
  opacity: 0.94;
}
.site-footer__col:nth-child(1) .site-footer__heading {
  background: var(--lime);
  color: var(--ink);
  transform: rotate(-1.6deg);
}
.site-footer__col:nth-child(2) .site-footer__heading {
  background: var(--paper-warm);
  color: var(--ink);
  transform: rotate(1.2deg);
}
.site-footer__col:nth-child(3) .site-footer__heading {
  background: var(--blue);
  color: #fff;
  transform: rotate(-1deg);
}
.site-footer__col li + li { margin-top: 10px; }

.site-footer__link {
  position: relative;
  display: inline-block;
  padding-left: 0;
  font-size: 0.9rem;
  color: #fff;
  transition: color 0.3s ease, padding-left 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}
/* hover: ライムへ + 左にペンキ滴ドット */
.site-footer__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  background: var(--lime);
  border-radius: 58% 42% 52% 48% / 50% 56% 44% 50%;
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.5, 0.64, 1);
}
.site-footer__link:hover,
.site-footer__link:focus-visible { color: var(--lime); padding-left: 14px; }
.site-footer__link:hover::before,
.site-footer__link:focus-visible::before { opacity: 1; transform: scale(1); }

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  width: min(100% - 48px, 1160px);
  margin-inline: auto;
  padding-block: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.site-footer__copy {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}
.site-footer__brush {
  width: 20px;
  height: 20px;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.site-footer__copy:hover .site-footer__brush { transform: rotate(360deg); }

.site-footer__sublinks {
  display: flex;
  gap: 24px;
  font-size: 0.8rem;
}
.site-footer__sublinks .site-footer__link { color: rgba(255, 255, 255, 0.6); }
.site-footer__sublinks .site-footer__link:hover { color: var(--lime); }

@media (max-width: 768px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__nav { grid-template-columns: 1fr; }
  .site-footer__bottom { justify-content: center; text-align: center; }
}

/* ===== 15. カーソル筆+トレイル(JS生成要素) ===== */
.brush-trail {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
}

/* ===== 15b. 網点(ハーフトーン)テクスチャ — 印刷の網点風を要所に ===== */

/* Concept帯: 右端にインクの網点(印刷テクスチャ) */
.concept::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 34%;
  background-image: radial-gradient(circle, var(--ink) 1.3px, transparent 1.5px);
  background-size: 9px 9px;
  -webkit-mask-image: linear-gradient(to left, #000, transparent);
  mask-image: linear-gradient(to left, #000, transparent);
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

/* Contact CTA: 下端の黒い網点(サイズ可変・不透明)でフッターへグラデーション接続。
   実際のドットはJSがcanvasに描画(下ほど大きく→ベタ黒、上ほど小さく→ティールへ消える) */
.contact-halftone {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Hero: 右上隅に薄い網点(名刺の質感をさりげなく) */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 38%;
  height: 46%;
  background-image: radial-gradient(circle, var(--ink) 1.3px, transparent 1.5px);
  background-size: 10px 10px;
  -webkit-mask-image: radial-gradient(120% 120% at 100% 0%, #000 12%, transparent 58%);
  mask-image: radial-gradient(120% 120% at 100% 0%, #000 12%, transparent 58%);
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
}

/* ===== 16. Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.2s !important;
  }
  .concept__marquee, .scroll-hint__drop, .brush-trail { display: none !important; }
  .brush-streak path { stroke-dashoffset: 0 !important; }
  .h1-paint__swipe { clip-path: none; }
  .h1-paint .h1-paint__text { color: var(--ink); }
}

/* =========================================================
   下層ページ（WordPress化で追加）
   ========================================================= */
.subpage {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(44px, 8vh, 96px));
  padding-bottom: var(--section-gap);
  background: var(--paper);
}

/* 本文タイポグラフィ（固定ページ・お知らせ本文） */
.entry-content {
  max-width: 760px;
  margin-inline: auto;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 2;
  color: var(--ink);
}
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.5;
  margin-top: 2em;
  padding-left: 14px;
  border-left: 5px solid var(--blue);
}
.entry-content h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  margin-top: 1.8em;
}
.entry-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--blue-deep); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: 0.5em; }
.entry-content img { border-radius: 8px; }
.entry-content blockquote {
  margin-inline: 0;
  padding: 14px 20px;
  background: var(--blue-pale);
  border-radius: 8px;
}
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--gray-line); text-align: left; }
.entry-content th { background: var(--paper-warm); }

/* お知らせ個別 */
.news-single { max-width: 760px; margin-inline: auto; }
.news-single__head { margin-bottom: clamp(24px, 4vh, 40px); }
.news-single__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.news-single__title { font-size: clamp(1.5rem, 3vw, 2.2rem); display: inline-block; }
.news-single__thumb { margin: 0 0 clamp(24px, 4vh, 40px); }
.news-single__thumb img { width: 100%; border-radius: 10px; }
.news-single__nav {
  max-width: 760px;
  margin: clamp(40px, 6vh, 72px) auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-line);
  font-size: 0.88rem;
}
.news-single__nav a { color: var(--ink); }
.news-single__nav a:hover { color: var(--blue); }
.news-single__back {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--blue) !important;
}
.news-single__prev, .news-single__next { flex: 1; }
.news-single__next { text-align: right; }

/* 資料ダウンロード（資料なし） */
.download-empty {
  max-width: 620px;
  margin: clamp(20px, 4vh, 40px) auto 0;
  padding: clamp(40px, 7vw, 72px) 28px;
  text-align: center;
  background: var(--paper-warm);
  border: 1px dashed var(--gray-line);
  border-radius: 14px;
}
.download-empty__text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  color: var(--gray-text);
}

/* 空表示・404・補助テキスト */
.news-empty, .error404__text {
  text-align: center;
  color: var(--gray-text);
  padding: clamp(28px, 5vh, 48px) 0;
}

/* ページネーション */
.pager { margin-top: clamp(32px, 5vh, 52px); }
.pager .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.pager .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--gray-line);
  border-radius: 8px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.pager .page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.pager .page-numbers.current {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* Contact Form 7 */
.contact-form { max-width: 680px; margin: clamp(24px, 4vh, 44px) auto 0; }
.contact-form .wpcf7-form p { margin: 0 0 18px; }
.contact-form label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="url"],
.contact-form input[type="number"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--gray-line);
  border-radius: 8px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent);
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  background: var(--lime);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: filter 0.25s ease, transform 0.2s ease;
}
.contact-form .wpcf7-submit:hover { filter: brightness(1.05); transform: translateY(-2px); }
.contact-form .wpcf7-spinner { margin: 0 0 0 12px; }

/* --- CF7 マークアップ（.cf7-* 構造）専用 --- */
.cf7-form .cf7-row { margin: 0 0 22px; }
.cf7-form .cf7-row > label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cf7-req {
  display: inline-block;
  padding: 2px 9px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  transform: translateY(-1px);
}
.cf7-form select { appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--blue) 50%), linear-gradient(135deg, var(--blue) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 14px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
/* 同意チェック */
.cf7-privacy { font-size: 0.92rem; }
.cf7-privacy > label { display: inline; font-family: var(--font-body); font-weight: 400; }
.cf7-privacy .wpcf7-list-item { margin: 0; }
.cf7-privacy input[type="checkbox"] { width: 18px; height: 18px; margin-right: 8px; accent-color: var(--blue); vertical-align: -3px; }
.cf7-privacy a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.cf7-privacy a:hover { color: var(--blue-deep); }
/* 送信ボタン中央 */
.cf7-submit { text-align: center; margin-top: 30px !important; }
/* 補足／準備中メッセージ */
.contact-form__note {
  text-align: center;
  font-family: var(--font-mono);
  color: color-mix(in srgb, var(--ink) 60%, transparent);
  padding: 40px 0;
}
/* reCAPTCHA バッジを隠す代わりの必須クレジット表記 */
.grecaptcha-badge { visibility: hidden; }
.contact-form__recaptcha-note {
  margin-top: 22px;
  font-size: 0.78rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
}
.contact-form__recaptcha-note a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.contact-form__recaptcha-note a:hover { color: var(--blue-deep); }
/* CF7 バリデーション・応答メッセージ */
.contact-form .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: #d6394b;
}
.contact-form .wpcf7-not-valid { border-color: #d6394b !important; }
.contact-form .wpcf7-response-output {
  margin: 24px 0 0 !important;
  padding: 14px 18px !important;
  border-radius: 8px;
  border-width: 1.5px !important;
  font-size: 0.9rem;
}
.contact-form form.invalid .wpcf7-response-output,
.contact-form form.unaccepted .wpcf7-response-output { border-color: #d6394b !important; background: #fdecef; color: #a51d2d; }
.contact-form form.sent .wpcf7-response-output { border-color: var(--blue) !important; background: var(--blue-pale); color: var(--blue-deep); }

/* 下層ページでも背景ネットワークは薄めで固定 */
.subpage::after { content: none; }

/* =========================================================
   隠し要素: 「ヨ」を4回・「ク」を9回クリックでポップアップ
   ========================================================= */
.egg {
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.egg-popup {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 24, 26, 0.55);
  animation: egg-fade 0.2s ease both;
}
@keyframes egg-fade { from { opacity: 0; } to { opacity: 1; } }
.egg-popup__win {
  position: relative;
  max-width: 380px;
  width: 100%;
  padding: 30px 26px 26px;
  text-align: center;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 6px;
  box-shadow: 8px 8px 0 var(--lime), 8px 8px 0 3px var(--ink);
  transform: rotate(-1.2deg);
  animation: egg-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes egg-pop { from { transform: rotate(-1.2deg) scale(0.7); opacity: 0; } to { transform: rotate(-1.2deg) scale(1); opacity: 1; } }
.egg-popup__x {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
}
.egg-popup__star {
  font-size: 1.1rem;
  letter-spacing: 0.4em;
  color: var(--blue);
  animation: egg-blink 0.8s steps(1) infinite;
}
@keyframes egg-blink { 50% { opacity: 0.25; } }
.egg-popup__msg {
  margin-top: 10px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  color: var(--blue);
}
.egg-popup__sub {
  margin-top: 10px;
  font-size: 0.86rem;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
}
.egg-popup__ok {
  margin-top: 22px;
  padding: 10px 34px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.egg-popup__ok:hover { transform: translateY(-2px); }
