/* =============================================================
   Leapcom Site CSS — v3（P920・2026-09-28）
   全ページ共通: 基本・レイアウト・ヘッダー・フッター・部品
   トークンは tokens.css。ページ固有は pages/*.css。
   クラス名は lc- で始める（00002 の既存 Tailwind と衝突させないため）
   ============================================================= */

/* ---------- 1. 基本 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--lc-header-h) + 16px);
}

body {
  margin: 0;
  background: var(--lc-white);
  color: var(--lc-ink);
  font-family: var(--lc-font-ja);
  font-size: var(--lc-fs-body);
  line-height: var(--lc-lh-body);
  letter-spacing: var(--lc-ls-body);
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--lc-blue-600);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

strong {
  font-weight: 700;
  color: var(--lc-ink);
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--lc-blue-500);
  outline-offset: 3px;
  border-radius: 2px;
}

.lc-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--lc-radius-s);
  background: var(--lc-navy-800);
  color: #fff;
  font-weight: 700;
}

.lc-skip:focus {
  top: 12px;
}

.lc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lc-en {
  font-family: var(--lc-font-en);
  letter-spacing: 0;
}

/* 見出しは、語の途中で改行しない（日本語の文節で折り返す）＋行の長さをそろえる */
h1,
h2,
h3,
.lc-balance {
  word-break: auto-phrase;
  overflow-wrap: anywhere; /* 1 行に入りきらない長い語だけは、途中で折る */
  text-wrap: balance;
}

/* 2〜3 行の短い文は、文節で折り返す（1 文字だけ次の行に落ちるのを防ぐ） */
.lc-lead,
.lc-phrase {
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

.lc-nowrap {
  white-space: nowrap;
}

/* 改行を PC だけ／スマホだけで入れる */
@media (max-width: 767px) {
  .lc-br-pc {
    display: none;
  }
}

@media (min-width: 768px) {
  .lc-br-sp {
    display: none;
  }
}

/* ---------- 2. レイアウト ---------- */
.lc-container {
  width: 100%;
  max-width: calc(var(--lc-container) + var(--lc-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--lc-gutter);
}

.lc-container--wide {
  max-width: calc(var(--lc-container-wide) + var(--lc-gutter) * 2);
}

.lc-section {
  padding-block: var(--lc-section-y);
  position: relative;
}

.lc-section--tint {
  background: var(--lc-steel-50);
}

.lc-section--blue {
  background: var(--lc-blue-50);
}

/* ---------- 3. セクションの頭（図番ラベル＋見出し＋リード） ---------- */
.lc-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  color: var(--lc-steel-500);
  font-family: var(--lc-font-en);
  font-size: var(--lc-fs-label);
  font-weight: 600;
  letter-spacing: var(--lc-ls-label);
  text-transform: uppercase;
  line-height: 1.5;
}

.lc-label__no {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 22px;
  padding-inline: 6px;
  border: 1px solid var(--lc-steel-300);
  color: var(--lc-navy-800);
  letter-spacing: 0.06em;
}

.lc-label__rule {
  width: 48px;
  height: 1px;
  background: var(--lc-steel-300);
}

.lc-label--light {
  color: rgba(255, 255, 255, 0.78);
}

.lc-label--light .lc-label__no {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.lc-label--light .lc-label__rule {
  background: rgba(255, 255, 255, 0.5);
}

.lc-h2 {
  font-size: var(--lc-fs-h2);
  font-weight: 700;
  line-height: var(--lc-lh-heading);
  letter-spacing: var(--lc-ls-heading);
  color: var(--lc-ink);
}

.lc-h3 {
  font-size: var(--lc-fs-h3);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--lc-ink);
}

.lc-lead {
  margin-top: 20px;
  max-width: 44em;
  font-size: var(--lc-fs-lead);
  font-weight: 500;
  line-height: 2;
  color: var(--lc-steel-700);
}

.lc-head {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.lc-head--center {
  text-align: center;
}

.lc-head--center .lc-label {
  justify-content: center;
}

.lc-head--center .lc-lead {
  margin-inline: auto;
}

.lc-note {
  font-size: var(--lc-fs-note);
  line-height: 1.8;
  color: var(--lc-steel-500);
}

/* ---------- 4. ボタン・リンク ---------- */
.lc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: var(--lc-radius-s);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.lc-btn:hover {
  text-decoration: none;
}

.lc-btn__arrow {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.25s var(--lc-ease);
}

.lc-btn:hover .lc-btn__arrow {
  transform: translateX(4px);
}

.lc-btn--primary {
  background: var(--lc-navy-800);
  color: #fff;
}

.lc-btn--primary:hover {
  background: var(--lc-navy-700);
}

.lc-btn--outline {
  background: #fff;
  border-color: var(--lc-navy-800);
  color: var(--lc-navy-800);
}

.lc-btn--outline:hover {
  background: var(--lc-blue-50);
}

.lc-btn--white {
  background: #fff;
  color: var(--lc-navy-800);
}

.lc-btn--white:hover {
  background: var(--lc-blue-50);
}

.lc-btn--ghost-light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
  backdrop-filter: blur(2px);
}

.lc-btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lc-btn--small {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.875rem;
}

.lc-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--lc-blue-600);
  letter-spacing: 0.04em;
}

.lc-link-arrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  box-shadow: none;
  transition: width 0.25s var(--lc-ease);
}

.lc-link-arrow:hover {
  text-decoration: none;
}

.lc-link-arrow:hover::after {
  width: 30px;
}

/* ---------- 5. ヘッダー ---------- */
.lc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--lc-header-h);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--lc-steel-200);
  transition: box-shadow 0.25s;
}

.lc-header.is-scrolled {
  box-shadow: 0 6px 20px rgba(15, 44, 76, 0.08);
}

.lc-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.lc-header__brand {
  display: flex;
  align-items: center;
  flex: none;
}

.lc-header__brand img {
  width: auto;
  height: 30px;
}

.lc-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lc-nav__group {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 12px;
  margin-right: 8px;
  border-right: 1px solid var(--lc-steel-200);
}

.lc-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 14px;
  color: var(--lc-ink);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-decoration: none;
}

.lc-nav__link:hover {
  color: var(--lc-blue-600);
  text-decoration: none;
}

.lc-nav__no {
  font-family: var(--lc-font-en);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--lc-steel-500);
}

.lc-nav__link[aria-current="page"] {
  color: var(--lc-navy-800);
}

.lc-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -2px;
  height: 2px;
  background: var(--lc-navy-800);
}

.lc-nav__cta {
  margin-left: 12px;
}

.lc-menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--lc-steel-200);
  border-radius: var(--lc-radius-s);
  background: #fff;
  color: var(--lc-ink);
  cursor: pointer;
}

.lc-menu-button svg {
  width: 22px;
  height: 22px;
}

.lc-mobile-menu {
  display: none;
}

@media (max-width: 1023px) {
  .lc-nav {
    display: none;
  }

  .lc-menu-button {
    display: inline-flex;
  }

  .lc-header__brand img {
    height: 26px;
  }

  .lc-mobile-menu {
    position: fixed;
    inset: var(--lc-header-h) 0 0 0;
    z-index: 49;
    display: block;
    padding: 24px var(--lc-gutter) 40px;
    background: #fff;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }

  .lc-mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .lc-mobile-menu__label {
    margin: 8px 0 4px;
    font-family: var(--lc-font-en);
    font-size: var(--lc-fs-label);
    font-weight: 600;
    letter-spacing: var(--lc-ls-label);
    color: var(--lc-steel-500);
  }

  .lc-mobile-menu a {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 16px 4px;
    border-bottom: 1px solid var(--lc-steel-100);
    color: var(--lc-ink);
    font-size: 1.0625rem;
    font-weight: 500;
    text-decoration: none;
  }

  .lc-mobile-menu a .lc-nav__no {
    min-width: 22px;
  }

  .lc-mobile-menu .lc-btn {
    width: 100%;
    margin-top: 28px;
    border-bottom: none;
    color: #fff;
    justify-content: center;
  }
}

body.is-menu-open {
  overflow: hidden;
}

/* ---------- 6. フッター ---------- */
.lc-footer {
  background: var(--lc-steel-50);
  border-top: 1px solid var(--lc-steel-200);
  color: var(--lc-steel-700);
  font-size: var(--lc-fs-small);
}

.lc-footer__top {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 48px;
  padding-block: 64px 48px;
}

.lc-footer__brand img {
  width: auto;
  height: 30px;
}

.lc-footer__tagline {
  margin-top: 18px;
  font-weight: 700;
  color: var(--lc-ink);
  letter-spacing: 0.08em;
}

.lc-footer__address {
  margin-top: 10px;
  font-style: normal;
  line-height: 1.8;
  color: var(--lc-steel-700);
}

.lc-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.lc-footer__heading {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--lc-steel-200);
  font-family: var(--lc-font-en);
  font-size: var(--lc-fs-label);
  font-weight: 600;
  letter-spacing: var(--lc-ls-label);
  color: var(--lc-steel-500);
}

.lc-footer__nav li + li {
  margin-top: 8px;
}

.lc-footer__nav a {
  color: var(--lc-ink);
}

.lc-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px 28px;
  border-top: 1px solid var(--lc-steel-200);
  font-size: var(--lc-fs-note);
  color: var(--lc-steel-500);
}

@media (max-width: 767px) {
  .lc-footer__top {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 48px 32px;
  }

  .lc-footer__nav {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .lc-footer__bottom {
    flex-direction: column;
    gap: 4px;
  }
}

/* ---------- 7. 部品 ---------- */

/* カード */
.lc-card {
  display: block;
  background: #fff;
  border: 1px solid var(--lc-steel-200);
  border-radius: var(--lc-radius-m);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--lc-ease);
}

a.lc-card:hover {
  border-color: var(--lc-blue-200);
  box-shadow: var(--lc-shadow-card);
  transform: translateY(-2px);
  text-decoration: none;
}

/* タグ */
.lc-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 2px;
  background: var(--lc-blue-100);
  color: var(--lc-navy-800);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.lc-tag--steel {
  background: var(--lc-steel-100);
  color: var(--lc-steel-700);
}

/* 図面の枠（四隅のトンボ） */
.lc-frame {
  position: relative;
  padding: clamp(24px, 4vw, 48px);
}

/* 下の 2 隅を描くための要素。グリッドやフレックスの 1 マスにならないよう、流れから外す */
.lc-frame > .lc-frame__corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lc-frame::before,
.lc-frame::after,
.lc-frame > .lc-frame__corners::before,
.lc-frame > .lc-frame__corners::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--lc-steel-300);
  border-style: solid;
  pointer-events: none;
}

.lc-frame::before {
  top: 0;
  left: 0;
  border-width: 1px 0 0 1px;
}

.lc-frame::after {
  top: 0;
  right: 0;
  border-width: 1px 1px 0 0;
}

.lc-frame > .lc-frame__corners::before {
  bottom: 0;
  left: 0;
  border-width: 0 0 1px 1px;
}

.lc-frame > .lc-frame__corners::after {
  bottom: 0;
  right: 0;
  border-width: 0 1px 1px 0;
}

/* 方眼の地 */
.lc-grid-paper {
  background-color: var(--lc-blue-50);
  background-image:
    linear-gradient(to right, rgba(30, 108, 176, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 108, 176, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ゴールの点（赤。ひと画面にひとつ） */
.lc-goal-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lc-red);
  box-shadow: 0 0 0 6px var(--lc-red-soft);
}

/* アイコン */
.lc-icon {
  width: 48px;
  height: 48px;
  flex: none;
  color: var(--lc-steel-700);
}

.lc-icon .accent {
  color: var(--lc-blue-600);
}

/* アイコンの中の「ゴール」の点（赤。ひと画面にひとつ） */
.lc-icon .goal {
  fill: var(--lc-red);
  stroke: none;
}

/* お問い合わせの帯（締め。ページの最後に 1 回だけ） */
.lc-cta {
  position: relative;
  overflow: hidden;
  background: var(--lc-navy-800);
  color: #fff;
}

.lc-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.lc-cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  align-items: center;
  gap: 40px;
  padding-block: clamp(64px, 8vw, 104px);
}

.lc-cta__title {
  font-size: clamp(1.625rem, 3vw, 2.375rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.lc-cta__text {
  margin-top: 18px;
  max-width: 34em;
  color: rgba(255, 255, 255, 0.86);
  line-height: 2;
}

.lc-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.lc-cta__note {
  font-size: var(--lc-fs-note);
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 767px) {
  .lc-cta__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .lc-cta__actions .lc-btn {
    width: 100%;
  }
}

/* ページの先頭へ（leapcom.js が作る。スクロールしたときだけ右下に出る） */
.lc-totop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--lc-steel-200);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--lc-shadow-card);
  color: var(--lc-navy-800);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.lc-totop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.lc-totop:hover {
  background: var(--lc-blue-50);
}

.lc-totop svg {
  width: 20px;
  height: 20px;
}

/* ---------- 8. 動き（スクロールでふわっと） ---------- */
.lc-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--lc-dur) var(--lc-ease), transform var(--lc-dur) var(--lc-ease);
}

.lc-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.lc-reveal.d1 {
  transition-delay: 0.08s;
}

.lc-reveal.d2 {
  transition-delay: 0.16s;
}

.lc-reveal.d3 {
  transition-delay: 0.24s;
}

.lc-reveal.d4 {
  transition-delay: 0.32s;
}

/* JS が動かない環境・確認用の ?static では、最初から見せる */
.no-js .lc-reveal,
.lc-static .lc-reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .lc-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
