/* 知図LP 共通CSS。正は lp/index.html の <style>。値を変えるときはトップと同時に直す */

/* ---------- トークン ---------- */
:root {
  --ink: #102326;
  --ink-soft: rgba(16, 35, 38, 0.78);
  --ink-mid: rgba(16, 35, 38, 0.56);
  --ink-faint: rgba(16, 35, 38, 0.18);
  --ink-ghost: rgba(16, 35, 38, 0.07);
  --paper: #f7f4ec;
  --white: #ffffff;
  --rev: #ffffff;
  --rev-soft: rgba(255, 255, 255, 0.74);
  --rev-mid: rgba(255, 255, 255, 0.5);
  --rev-faint: rgba(255, 255, 255, 0.2);
  --max: 1200px;
  --pad: clamp(20px, 5vw, 56px);
  --jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --en: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--jp); font-size: 16px; line-height: 1.9;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; overflow-wrap: anywhere; }
h1, h2, h3 { word-break: auto-phrase; text-wrap: balance; }
.en { font-family: var(--en); }
.num { font-family: var(--en); font-variant-numeric: tabular-nums; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid currentColor; outline-offset: 3px;
}
.wrap { width: min(var(--max), 100% - var(--pad) * 2); margin-inline: auto; }
.nb { display: inline-block; }

/* ---------- リンク・ボタン ---------- */
.inline-link { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size 0.3s var(--ease); }
.inline-link:hover { background-size: 0 1px; background-position: 100% 100%; }
.button {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  min-height: 54px; padding: 0 26px; border: 1px solid currentColor;
  font-family: var(--jp); font-size: 15px; font-weight: 700; line-height: 1; letter-spacing: 0.02em;
  cursor: pointer; background: transparent; color: inherit; overflow: hidden;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.button .arrow { position: relative; width: 22px; height: 1px; background: currentColor; transition: width 0.3s var(--ease); }
.button .arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.button:hover .arrow { width: 34px; }
.button.dark { background: var(--ink); border-color: var(--ink); color: var(--rev); }
.button.dark:hover { background: transparent; color: var(--ink); }
.button.light { background: var(--rev); border-color: var(--rev); color: var(--ink); }
.button.light:hover { background: transparent; color: var(--rev); }
.button.ghost { color: var(--ink); }
.button.ghost:hover { background: var(--ink); color: var(--rev); }
.button.secondary { color: var(--ink); background: var(--white); }
.button.secondary:hover { background: var(--ink); color: var(--rev); }
.button:disabled { opacity: 0.5; cursor: wait; }

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--ink); }
.header-inner { width: min(var(--max), 100% - var(--pad) * 2); margin-inline: auto; min-height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark { width: 30px; height: 30px; }
.brand-text { display: grid; line-height: 1; }
.brand-name { font-size: 15px; font-weight: 900; letter-spacing: 0.04em; }
.brand-en { margin-top: 4px; font-family: var(--en); font-size: 7.5px; font-weight: 700; letter-spacing: 0.3em; color: var(--ink-mid); }
.nav { display: flex; gap: 26px; font-size: 13px; font-weight: 700; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.3s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-cta { display: inline-flex; align-items: center; min-height: 68px; margin-right: calc(var(--pad) * -1 + 0px); padding: 0 24px; background: var(--ink); color: var(--rev); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; transition: background-color 0.25s; }
.header-cta:hover { background: #22393c; }
.mobile-menu { display: none; }

/* ---------- セクション共通 ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 136px) 0; }
.section.alt { background: var(--paper); }
.section.deep { background: var(--ink); color: var(--rev); }
.section-grid { display: grid; grid-template-columns: minmax(180px, 3fr) 9fr; gap: 24px 56px; }
.section-grid > .full { grid-column: 1 / -1; }
.margin-note { padding-top: 10px; border-top: 1px solid var(--ink); align-self: start; position: sticky; top: 104px; }
.deep .margin-note { border-top-color: var(--rev); }
.note-no { display: block; font-family: var(--en); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
.note-label { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; }
.note-en { display: block; margin-top: 2px; font-family: var(--en); font-size: 10.5px; font-weight: 700; letter-spacing: 0.22em; color: var(--ink-mid); text-transform: uppercase; }
.deep .note-en { color: var(--rev-mid); }
.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 56px); }
.label { margin: 0 0 16px; font-size: 13px; font-weight: 700; }
.label-en { margin-left: 12px; font-family: var(--en); font-size: 10.5px; font-weight: 700; letter-spacing: 0.22em; color: var(--ink-mid); }
.deep .label-en { color: var(--rev-mid); }
h1 { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.28; font-weight: 900; letter-spacing: 0.01em; }
h2 { font-size: clamp(28px, 3.5vw, 44px); line-height: 1.38; font-weight: 900; letter-spacing: 0.01em; }
.lead { margin-top: 22px; max-width: 700px; color: var(--ink-soft); font-size: 16px; }
.deep .lead { color: var(--rev-soft); }
.body-copy p + p { margin-top: 18px; }
.body-copy p { color: var(--ink-soft); }

/* ---------- 下層ページ用: パンくず ---------- */
.breadcrumb { padding: 22px 0 0; font-size: 13px; color: var(--ink-mid); }
.breadcrumb a { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size 0.3s var(--ease); }
.breadcrumb a:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- フッター ---------- */
.footer { background: #0a1719; color: var(--rev-soft); padding: 64px 0 36px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--rev); }
.footer-brand img { width: 28px; height: 28px; }
.footer-brand .brand-name { font-size: 15px; }
.footer-brand .brand-en { color: var(--rev-mid); }
.footer address { margin-top: 18px; font-style: normal; line-height: 1.9; }
.footer-nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 40px; align-content: start; justify-content: end; }
.footer-nav a:hover { color: var(--rev); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rev-faint); font-family: var(--en); font-size: 11px; letter-spacing: 0.12em; color: var(--rev-mid); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu .bars { position: relative; width: 20px; height: 1.5px; background: var(--ink); }
  .mobile-menu .bars::before, .mobile-menu .bars::after { content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--ink); transition: transform 0.25s var(--ease); }
  .mobile-menu .bars::before { top: -6px; } .mobile-menu .bars::after { top: 6px; }
  .mobile-menu[open] .bars { background: transparent; }
  .mobile-menu[open] .bars::before { transform: translateY(6px) rotate(45deg); }
  .mobile-menu[open] .bars::after { transform: translateY(-6px) rotate(-45deg); }
  .mobile-menu nav { position: absolute; right: 0; top: calc(100% + 12px); min-width: 220px; display: grid; background: var(--white); border: 1px solid var(--ink); }
  .mobile-menu nav a { padding: 14px 20px; font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--ink-faint); }
  .mobile-menu nav a:last-child { border-bottom: 0; }
  .section-grid { grid-template-columns: 1fr; }
  .margin-note { position: static; display: flex; gap: 12px; align-items: baseline; }
  .note-label, .note-en { margin-top: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { justify-content: start; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .header-inner { min-height: 60px; gap: 10px; }
  .header-cta { min-height: 60px; padding: 0 16px; font-size: 12px; margin-right: calc(var(--pad) * -1); }
  h1 { font-size: clamp(26px, 7.2vw, 36px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
