/* サイト全体の見た目。値は tokens-*.css の変数だけを使う（ここに色や大きさの生の数字を足さない）。
   並び: 1 土台 / 2 文字 / 3 枠組み / 4 部品 / 5 ヘッダー・フッター / 6 セクション / 7 記事 / 8 動き */

/* ========== 1 土台 ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--sp-4)); }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  letter-spacing: var(--tracking-body);
  -webkit-font-smoothing: antialiased;
  /* 日本語の禁則を厳しめにし、長い英数字や URL は枠の中で折り返す（はみ出さない） */
  line-break: strict;
  overflow-wrap: anywhere;
  /* 改行は文節の切れ目（組み立て時に入れる <wbr>）だけで行う。iPhone の Safari は auto-phrase に対応していないため */
  word-break: keep-all;
}
img, video, svg, canvas, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
picture { display: contents; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--c-accent); color: var(--c-on-accent); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: var(--sp-4); top: -100px; z-index: 100; padding: var(--sp-2) var(--sp-4); background: var(--c-text); color: var(--c-bg); border-radius: var(--radius-sm); }
.skip-link:focus { top: var(--sp-4); }

/* ========== 2 文字 ========== */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-heading);
  font-feature-settings: "palt";   /* 見出しだけ約物を詰める */
  text-wrap: balance;
  word-break: keep-all;             /* 組み立て時の <wbr> だけで折り返す（Chrome の auto-phrase は Safari と切れ目が違うので使わない） */
}
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }
small, .note { font-size: var(--fs-xs); color: var(--c-text-muted); line-height: 1.7; }
.note { margin-top: var(--sp-5); }
.eyebrow {
  margin: 0 0 var(--sp-3);
  font-family: var(--font-latin);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-accent);
  line-height: 1.4;
}
.num { margin: 0 0 var(--sp-2); font-family: var(--font-latin); font-weight: 700; font-size: var(--fs-sm); letter-spacing: 0.08em; color: var(--c-accent); }
.card-title { font-size: var(--fs-h3); line-height: 1.5; margin-bottom: var(--gap-inner); }
.card-title a { text-decoration: none; }
pre, code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; letter-spacing: 0; }
pre {
  margin: 1.5em 0; padding: var(--sp-5);
  overflow-x: auto; white-space: pre; overflow-wrap: normal; word-break: normal; tab-size: 2;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  line-height: 1.7;
}
:not(pre) > code { padding: 0.1em 0.35em; background: var(--c-surface); border-radius: 4px; }

/* ========== 3 枠組み ========== */
.container, .container--wide, .container--narrow { width: 100%; margin-inline: auto; padding-inline: var(--gutter); }
.container { max-width: calc(var(--w-content) + var(--gutter) * 2); }
.container--wide { max-width: calc(var(--w-wide) + var(--gutter) * 2); }
.container--narrow { max-width: calc(var(--w-narrow) + var(--gutter) * 2); }
.container.container--narrow { max-width: calc(var(--w-narrow) + var(--gutter) * 2); }
.section { padding-block: var(--gap-section); }
.section + .section:not([class*="tone-"]) { padding-top: 0; }  /* 同じ地の色が続く時は間を二重にしない */
.tone-muted { background: var(--c-surface); }
.tone-inverse { background: var(--c-inverse-bg); color: var(--c-inverse-text); --c-text-muted: var(--c-inverse-muted); --c-line: rgb(255 255 255 / 0.14); }
.tone-accent { background: var(--c-accent); color: var(--c-on-accent); --c-text-muted: var(--c-on-accent); }
.tone-accent .eyebrow { color: inherit; }
.tone-inverse .eyebrow { color: inherit; opacity: 0.8; }

.section-head { margin-bottom: var(--gap-head); max-width: var(--measure); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title { font-size: var(--fs-h2); }
.section-lead { margin-top: var(--sp-5); font-size: var(--fs-lg); color: var(--c-text-muted); }

/* 2つ並び（文章と画像）。狭い画面では縦に積む */
.split { display: grid; gap: var(--gap-item) clamp(2rem, 1rem + 5vw, 6rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
  .split--single { grid-template-columns: minmax(0, var(--measure)); }
}
.split__media img, .split__media .placeholder { width: 100%; border-radius: var(--radius); object-fit: cover; }

/* カードの並び。部品の幅で列数が決まる（最小幅を下回ったら折り返す） */
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap-item); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }

/* ========== 4 部品 ========== */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 3.25rem; padding: 0.75rem 1.75rem;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font-weight: var(--fw-bold); font-size: var(--fs-base); line-height: 1.4; letter-spacing: 0.06em;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out), border-color var(--dur-1);
}
.button:active { transform: translateY(1px); }
.button--primary { background: var(--c-accent); color: var(--c-on-accent); }
.button--primary:hover { background: var(--c-accent-strong); }
.button--secondary { border-color: currentColor; background: transparent; }
.button--secondary:hover { background: var(--c-text); color: var(--c-bg); border-color: var(--c-text); }
.button--text { padding-inline: 0; min-height: 0; text-decoration: underline; }
.button--sm { min-height: 2.75rem; padding: 0.5rem 1.25rem; font-size: var(--fs-sm); }
.button--block { width: 100%; }
.tone-accent .button--primary { background: var(--c-on-accent); color: var(--c-accent); }
.tone-accent .button--primary:hover { background: var(--c-accent-soft); }
.tone-inverse .button--secondary:hover, .tone-accent .button--secondary:hover { background: var(--c-inverse-text); color: var(--c-inverse-bg); border-color: var(--c-inverse-text); }
.actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-7); }
.section-head--center + .actions, .cta .actions { justify-content: center; }

.card { display: flex; flex-direction: column; padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); background: var(--c-surface); border-radius: var(--radius); }
.tone-muted .card { background: var(--c-bg); box-shadow: var(--shadow); }
.card__media { margin: calc(clamp(1.5rem, 1.2rem + 1vw, 2.25rem) * -1) calc(clamp(1.5rem, 1.2rem + 1vw, 2.25rem) * -1) var(--sp-5); }
.card__media img, .card__media .placeholder { width: 100%; border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 3/2; object-fit: cover; }
.card--link { position: relative; transition: transform var(--dur-2) var(--ease-out); }
.card--link:hover { transform: translateY(-4px); }
.card--link .card-title a::after { content: ""; position: absolute; inset: 0; }
.card p { color: var(--c-text-muted); }
.card .link-arrow { margin-top: auto; padding-top: var(--sp-5); }

.tag { display: inline-block; padding: 0.1em 0.75em; border: 1px solid var(--c-line); border-radius: var(--radius-pill); font-size: var(--fs-xs); letter-spacing: 0.04em; color: var(--c-text-muted); }
.link-arrow { display: inline-flex; align-items: center; min-height: 2.75rem; gap: var(--sp-2); font-weight: var(--fw-bold); font-size: var(--fs-sm); text-decoration: none; color: var(--c-accent); }
.link-arrow::after { content: "→"; transition: transform var(--dur-1) var(--ease-out); }
.link-arrow:hover::after, .card--link:hover .link-arrow::after { transform: translateX(4px); }

.placeholder {
  display: grid; place-items: center; width: 100%; padding: var(--sp-5);
  background: repeating-linear-gradient(135deg, var(--c-accent-soft) 0 12px, var(--c-surface) 12px 24px);
  border: 1px dashed var(--c-text-muted); border-radius: var(--radius);
  color: var(--c-text-muted); font-size: var(--fs-sm); text-align: center; line-height: 1.6;
}

.info-table { margin: 0; border-top: 1px solid var(--c-line); }
.info-table > div { display: grid; gap: var(--sp-1) var(--sp-6); padding-block: var(--sp-5); border-bottom: 1px solid var(--c-line); }
@media (min-width: 640px) { .info-table > div { grid-template-columns: 10rem 1fr; } }
.info-table dt { font-weight: var(--fw-bold); }
.info-table dd { margin: 0; }
.info-table ul { margin: 0; padding-left: 1.2em; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.check-list li { position: relative; padding-left: 1.75em; }
.check-list li::before { content: ""; position: absolute; left: 0.2em; top: 0.55em; width: 0.9em; height: 0.5em; border-left: 2px solid var(--c-accent); border-bottom: 2px solid var(--c-accent); transform: rotate(-45deg); }

.empty { color: var(--c-text-muted); }

/* フォーム。スマホで拡大されないよう入力欄の文字は16px以上 */
.form { display: grid; gap: var(--sp-6); }
.field { display: grid; gap: var(--sp-2); margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: var(--fw-bold); font-size: var(--fs-sm); padding: 0; }
.req, .opt { display: inline-block; margin-left: var(--sp-2); padding: 0 0.5em; border-radius: 4px; font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.req { background: var(--c-accent); color: var(--c-on-accent); }
.opt { background: var(--c-surface); color: var(--c-text-muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 3.25rem; padding: 0.75rem 1rem;
  font-size: max(16px, var(--fs-base));
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  transition: border-color var(--dur-1);
}
.field textarea { resize: vertical; min-height: 10rem; }
.field select { appearance: auto; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--c-accent); outline: 2px solid var(--c-accent-soft); }
.field [aria-invalid="true"] { border-color: #c62828; }
.choices { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); }
.choice { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 2.75rem; cursor: pointer; font-weight: 400; }
.choice input { width: 1.25rem; height: 1.25rem; accent-color: var(--c-accent); }
.choice--agree { justify-self: center; }
.choice--agree a { display: inline-block; padding-block: 0.6rem; }
.form__notice { margin: 0; font-size: var(--fs-sm); color: var(--c-text-muted); }
.form__notice p { margin: 0; }
.form__hp { position: absolute; left: -9999px; }
.form__status { min-height: 1.5em; text-align: center; font-weight: var(--fw-bold); }
.form__status[data-state="error"] { color: #c62828; }
.form__alt { margin-top: var(--sp-7); text-align: center; color: var(--c-text-muted); }

/* ========== 5 ヘッダー・フッター ========== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--c-bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2), background-color var(--dur-2);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header[data-scrolled] { border-bottom-color: var(--c-line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); min-height: var(--header-h); }
.site-logo { display: inline-flex; align-items: center; min-height: 2.75rem; font-family: var(--font-latin); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.08em; text-decoration: none; flex-shrink: 0; }
.site-logo img { height: 2.25rem; width: auto; }
.site-nav { display: flex; align-items: center; gap: var(--sp-6); }
.site-nav__list { display: flex; gap: var(--sp-6); list-style: none; margin: 0; padding: 0; }
.site-nav__list a { display: block; padding-block: var(--sp-2); font-size: var(--fs-sm); font-weight: var(--fw-bold); text-decoration: none; letter-spacing: 0.06em; position: relative; }
.site-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-2) var(--ease-out); }
.site-nav__list a:hover::after, .site-nav__list a[aria-current]::after { transform: scaleX(1); }
.site-nav__actions { display: flex; align-items: center; gap: var(--sp-5); }
.lang-switch { display: flex; gap: var(--sp-1); list-style: none; margin: 0; padding: 0; font-family: var(--font-latin); font-size: var(--fs-xs); font-weight: 600; }
.lang-switch a { display: grid; place-items: center; min-width: 2.25rem; min-height: 2.25rem; text-decoration: none; color: var(--c-text-muted); border-radius: var(--radius-sm); }
.lang-switch a[aria-current] { color: var(--c-text); background: var(--c-surface); }
.menu-toggle { display: none; }

@media (max-width: 1239px) {
  :root { --header-h: 3.75rem; }
  .js .menu-toggle {
    display: grid; place-items: center; width: 3rem; height: 3rem; margin-right: calc(var(--sp-3) * -1);
    background: none; border: 0; cursor: pointer; position: relative; z-index: 2;
  }
  .menu-toggle__bar, .menu-toggle__bar::before, .menu-toggle__bar::after { display: block; width: 1.5rem; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1); }
  .menu-toggle__bar { position: relative; }
  .menu-toggle__bar::before, .menu-toggle__bar::after { content: ""; position: absolute; left: 0; }
  .menu-toggle__bar::before { top: -7px; }
  .menu-toggle__bar::after { top: 7px; }
  [aria-expanded="true"] .menu-toggle__bar { background: transparent; }
  [aria-expanded="true"] .menu-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
  [aria-expanded="true"] .menu-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }
  .js .site-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: var(--sp-8);
    padding: calc(var(--header-h) + env(safe-area-inset-top, 0px)) var(--gutter) calc(var(--sp-8) + env(safe-area-inset-bottom, 0px));
    background: var(--c-bg); overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity var(--dur-2) var(--ease-out), visibility var(--dur-2);
  }
  .js .site-header[data-open] .site-nav { opacity: 1; visibility: visible; }
  /* すりガラスの効果があると、メニューの面がヘッダーの高さに閉じ込められる（iPhone で上の項目が切れた。2026-10-22）。開いている間は外す */
  .js .site-header[data-open] { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--c-bg); }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a { padding-block: var(--sp-4); font-size: var(--fs-h3); border-bottom: 1px solid var(--c-line); }
  .site-nav__list a::after { display: none; }
  .site-nav__actions { flex-direction: column; align-items: stretch; }
  .site-nav__actions .button { min-height: 3.25rem; font-size: var(--fs-base); }
  .lang-switch { justify-content: center; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: var(--sp-3); }
  html:not(.js) .site-nav { width: 100%; flex-wrap: wrap; }
  html:not(.js) .site-nav__list { flex-direction: row; flex-wrap: wrap; gap: var(--sp-4); }
  html:not(.js) .site-nav__list a { font-size: var(--fs-sm); border: 0; padding-block: var(--sp-1); }
}
body[data-menu-open] { overflow: hidden; }

.site-footer { background: var(--c-inverse-bg); color: var(--c-inverse-text); padding-block: var(--sp-9) calc(var(--sp-6) + env(safe-area-inset-bottom, 0px)); font-size: var(--fs-sm); }
.site-footer__inner { display: grid; gap: var(--sp-7); }
@media (min-width: 900px) { .site-footer__inner { grid-template-columns: 1fr 1.4fr; } }
.site-footer__name { margin-top: var(--sp-4); font-weight: var(--fw-bold); }
.site-footer__meta { color: var(--c-inverse-muted); margin-top: var(--sp-1); }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: var(--sp-2) var(--sp-5); }
.site-footer__nav a { display: inline-block; padding-block: var(--sp-2); text-decoration: none; color: var(--c-inverse-muted); }
.site-footer__nav a:hover { color: var(--c-inverse-text); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-8); padding-top: var(--sp-5); border-top: 1px solid rgb(255 255 255 / 0.14); color: var(--c-inverse-muted); }
.site-footer__bottom small { color: inherit; }
.page-top { text-decoration: none; }

/* ========== 6 セクション ========== */
/* ブログの分類の切り替え（post-list.njk） */
.post-filter { display: flex; flex-wrap: wrap; gap: var(--sp-2); padding-top: var(--sp-6); }
.post-filter a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: var(--sp-4); border: 1px solid var(--c-line); border-radius: var(--radius-sm); font-size: var(--fs-sm); text-decoration: none; color: var(--c-text-muted); }
.post-filter a[aria-current="page"] { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-accent); font-weight: var(--fw-bold); }
/* メインビジュアル */
.hero { position: relative; display: grid; align-items: end; min-height: min(100svh - var(--header-h), 56rem); padding-block: var(--sp-9) var(--sp-10); overflow: hidden; isolation: isolate; }
.hero__content { position: relative; z-index: 1; }
.hero__title { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: 0.01em; max-width: 14em; }
.hero__lead { margin-top: var(--sp-6); font-size: var(--fs-lg); max-width: 32em; color: var(--c-text-muted); }
.hero__scene { position: absolute; inset: 0; z-index: 0; background: radial-gradient(60% 60% at 75% 40%, var(--scene-3), transparent 70%); }
.hero__scene canvas { width: 100%; height: 100%; }
.hero--three .hero__content { padding-bottom: var(--sp-6); }
@media (max-width: 899px) { .hero--three .hero__scene { opacity: 0.45; } }  /* スマホでは 3D が文字の下に来るので薄くして読みやすさを守る */
.hero--image, .hero--video { color: #fff; }
.hero--image .hero__media, .hero--video .hero__media { position: absolute; inset: 0; z-index: 0; }
.hero--image .hero__media::after, .hero--video .hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0.05) 30%, rgb(0 0 0 / 0.55)); }
.hero__media img, .hero__media video, .hero__media .placeholder { width: 100%; height: 100%; object-fit: cover; border-radius: 0; border: 0; }
.hero__media .placeholder { align-content: start; padding-top: calc(var(--header-h) + var(--sp-6)); }
.hero--image .hero__lead, .hero--video .hero__lead { color: rgb(255 255 255 / 0.88); }
.hero--image .eyebrow, .hero--video .eyebrow { color: #fff; }
.hero--image .button--secondary:hover, .hero--video .button--secondary:hover { background: #fff; color: #111; border-color: #fff; }
.hero--text { min-height: auto; padding-block: var(--sp-10) var(--sp-9); }
.hero__scroll { position: absolute; right: var(--gutter); bottom: var(--sp-6); z-index: 1; font-family: var(--font-latin); font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; writing-mode: vertical-rl; padding-bottom: 3.5rem; }
.hero__scroll::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 3rem; background: currentColor; transform-origin: top; animation: scroll-line 2.4s var(--ease-in-out) infinite; }
@keyframes scroll-line { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 640px) { .hero__scroll { display: none; } }

/* 下層ページの見出し帯 */
.page-header { padding-block: clamp(4rem, 3rem + 5vw, 8rem) clamp(3rem, 2rem + 4vw, 6rem); background: var(--c-surface); }
.page-header__title { font-size: var(--fs-h1); line-height: var(--lh-tight); }
.page-header__lead { margin-top: var(--sp-5); max-width: var(--measure); font-size: var(--fs-lg); color: var(--c-text-muted); }

/* 課題 */
.problem-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); max-width: var(--w-narrow); }
.problem { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-1) var(--sp-4); padding: var(--sp-5) var(--sp-6); background: var(--c-surface); border-radius: var(--radius); }
.tone-muted .problem { background: var(--c-bg); }
.problem::before { content: ""; grid-row: span 2; width: 1.5rem; height: 1.5rem; margin-top: 0.35em; border-radius: 50%; background: var(--c-accent-soft); box-shadow: inset 0 0 0 6px var(--c-accent-soft), inset 0 0 0 12px var(--c-accent); }
.problem__title { font-size: var(--fs-lg); line-height: 1.6; }
.problem p { color: var(--c-text-muted); font-size: var(--fs-sm); }
.problems__resolve { margin-top: var(--sp-8); font-family: var(--font-heading); font-size: var(--fs-h3); font-weight: var(--fw-bold); }

/* 特徴（交互） */
.feature-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-9); }

/* 数字 */
.numbers { display: grid; gap: var(--gap-item); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); margin: 0; }
.numbers__item { padding-top: var(--sp-5); border-top: 2px solid var(--c-accent); }
.numbers dt { font-weight: var(--fw-bold); font-size: var(--fs-sm); color: var(--c-text-muted); }
.numbers dd { margin: var(--sp-2) 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1); }
.numbers__value { font-family: var(--font-latin); font-size: var(--fs-display); font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--c-accent); font-variant-numeric: tabular-nums; }
.numbers__value--text { font-size: var(--fs-h3); letter-spacing: 0; }
.numbers__unit { font-weight: var(--fw-bold); font-size: var(--fs-lg); }
.numbers dd small { flex-basis: 100%; }

/* 事例 */
.case__facts { margin: var(--sp-4) 0 0; display: grid; gap: var(--sp-3); font-size: var(--fs-sm); }
.case__facts > div { display: grid; grid-template-columns: 3.5em 1fr; gap: var(--sp-3); }
.case__facts dt { font-weight: var(--fw-bold); color: var(--c-accent); }
.case__facts dd { margin: 0; color: var(--c-text-muted); }

/* イベント一覧 */
.event__facts { margin: var(--sp-4) 0 0; display: grid; gap: var(--sp-3); font-size: var(--fs-sm); }
.event__facts > div { display: grid; grid-template-columns: 6em 1fr; gap: var(--sp-3); }
.event__facts dt { font-weight: var(--fw-bold); color: var(--c-accent); }
.event__facts dd { margin: 0; color: var(--c-text-muted); }
.event__summary { margin: var(--sp-4) 0 0; }
.event__note { margin: var(--sp-3) 0 0; font-size: var(--fs-xs); }
.event .actions { margin-top: auto; padding-top: var(--sp-5); display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); }
.event-group__title { font-size: var(--fs-h3); margin: var(--gap-head) 0 var(--gap-inner); }
.event-group__title:first-of-type { margin-top: 0; }
.event--past { opacity: 0.85; }
.event__media img { aspect-ratio: 16/9; }
.event-report { margin-top: var(--sp-8); }
/* イベントのカードは件数が少なくても1枚の幅を保つ（auto-fill。1件だけの時に横いっぱいに広がらない） */
.card-grid--events { grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); }

/* 声 */
.voice blockquote { margin: 0; flex: 1; font-size: var(--fs-base); }
.voice blockquote p { color: var(--c-text); }
.voice blockquote::before { content: "“"; display: block; font-family: Georgia, serif; font-size: 3rem; line-height: 0.6; color: var(--c-accent); margin-bottom: var(--sp-3); }
.voice__by { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-5); font-size: var(--fs-sm); color: var(--c-text-muted); }
.voice__by img { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; }

/* 料金 */
.price-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap-item); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: var(--sp-5); padding: var(--sp-7) var(--sp-6); border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-bg); }
.plan--featured { border: 2px solid var(--c-accent); box-shadow: var(--shadow); }
.plan__name { font-size: var(--fs-h3); }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--sp-1); }
.plan__amount { font-family: var(--font-latin); font-size: var(--fs-h1); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.plan__unit { color: var(--c-text-muted); font-size: var(--fs-sm); }
.plan .check-list { flex: 1; }
.plan .button { width: 100%; }

/* 流れ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap-item); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); counter-reset: step; }
.step { position: relative; padding-top: var(--sp-5); border-top: 1px solid var(--c-line); }
.step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--c-accent); }
.step__num { font-family: var(--font-latin); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; color: var(--c-accent); margin-bottom: var(--sp-3); }
.step p { color: var(--c-text-muted); }
.step__duration { margin-top: var(--sp-3); font-size: var(--fs-xs); }

/* よくある質問 */
.faq { border-top: 1px solid var(--c-line); }
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__item summary { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: var(--sp-4); padding: var(--sp-5) 0; cursor: pointer; list-style: none; font-weight: var(--fw-bold); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; width: 0.6rem; height: 0.6rem; margin: 0.6em 0.3rem 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform var(--dur-2) var(--ease-out); }
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__q { font-family: var(--font-latin); color: var(--c-accent); }
.faq__a { padding: 0 0 var(--sp-6) calc(1ch + var(--sp-4) + 0.2em); color: var(--c-text-muted); }
details::details-content { transition: content-visibility var(--dur-2) allow-discrete, height var(--dur-2) var(--ease-out); height: 0; overflow: clip; }
details[open]::details-content { height: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

/* CTA */
.cta { text-align: center; }
.cta .section-head { margin-bottom: 0; }
.cta__info { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3) var(--sp-6); margin-top: var(--sp-6); font-weight: var(--fw-bold); }
.cta__info a { text-decoration: none; }

/* 最新のお知らせ */
.news-block__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--gap-head); }
.news-block__head .section-head { margin-bottom: 0; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-line); }
.news-list a { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: var(--sp-2) var(--sp-5); padding: var(--sp-5) 0; border-bottom: 1px solid var(--c-line); text-decoration: none; transition: color var(--dur-1); }
.news-list a:hover .news-list__title { color: var(--c-accent); }
.news-list time { font-family: var(--font-latin); font-size: var(--fs-sm); color: var(--c-text-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .news-list a { grid-template-columns: auto 1fr; } .news-list__title { grid-column: 1 / -1; } }

/* 理念 */
.statements { margin: 0; display: grid; gap: var(--sp-7); }
.statement { display: grid; gap: var(--sp-2) var(--sp-7); padding-bottom: var(--sp-7); border-bottom: 1px solid var(--c-line); }
@media (min-width: 900px) { .statement { grid-template-columns: 12rem 1fr; } }
.statement dd { margin: 0; }
.statement__title { font-family: var(--font-heading); font-size: var(--fs-h2); font-weight: var(--fw-bold); line-height: var(--lh-heading); font-feature-settings: "palt"; text-wrap: balance; }
.statement dd p + p { color: var(--c-text-muted); }

.signature { margin-top: var(--sp-6); display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-1); }
.signature span { font-size: var(--fs-sm); color: var(--c-text-muted); }
.signature strong { font-family: var(--font-heading); font-size: var(--fs-h3); }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--c-line); }
.timeline li { position: relative; display: grid; gap: var(--sp-1) var(--sp-6); padding: 0 0 var(--sp-6) var(--sp-6); }
@media (min-width: 640px) { .timeline li { grid-template-columns: 8rem 1fr; } }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 0.6em; width: 9px; height: 9px; border-radius: 50%; background: var(--c-accent); }
.timeline__date { font-family: var(--font-latin); font-weight: 700; color: var(--c-accent); font-variant-numeric: tabular-nums; }

.map iframe { width: 100%; aspect-ratio: 4/3; border: 0; border-radius: var(--radius); background: var(--c-surface); }

.member__photo img, .member__photo .placeholder { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); margin-bottom: var(--sp-5); }
.member { list-style: none; }
.member p:last-child { color: var(--c-text-muted); font-size: var(--fs-sm); }

.job { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 0 var(--sp-6); margin-bottom: var(--sp-4); }
.job summary { padding-block: var(--sp-5); cursor: pointer; }
.job summary .card-title { display: inline; margin: 0; }
.job .info-table { margin-bottom: var(--sp-6); }
.job > p { margin-bottom: var(--sp-6); }

.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(45%, 10rem), 1fr)); gap: var(--sp-6); align-items: center; }
.logos img { max-height: 3rem; width: auto; margin-inline: auto; filter: grayscale(1); opacity: 0.8; }
.logos span { display: block; text-align: center; font-weight: var(--fw-bold); color: var(--c-text-muted); }

.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.gallery figure { margin: 0; }
.gallery img, .gallery .placeholder { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); }
.gallery figcaption { margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--c-text-muted); }

/* ========== 7 記事 ========== */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap-item); }
.post-list--news { gap: 0; border-top: 1px solid var(--c-line); }
.post-list--news .post-card__link { display: block; padding: var(--sp-5) 0; border-bottom: 1px solid var(--c-line); }
.post-list--blog { grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); }
.post-card__link { display: grid; gap: var(--sp-4); text-decoration: none; }
.post-card__media img, .post-card__media .placeholder { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); transition: transform var(--dur-3) var(--ease-out); }
.post-card__media { overflow: hidden; border-radius: var(--radius); }
/* アイキャッチの無い記事は分類名の面を出す（素材待ちの枠にすると公開の点検で止まる） */
.post-card__noimage { display: grid; place-items: center; aspect-ratio: 16/9; background: var(--c-accent-soft); color: var(--c-accent); font-weight: 700; font-size: var(--fs-lg); letter-spacing: .08em; transition: transform var(--dur-3) var(--ease-out); }
.post-card__link:hover img { transform: scale(1.04); }
.post-card__link:hover .post-card__title { color: var(--c-accent); }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); font-size: var(--fs-sm); color: var(--c-text-muted); font-family: var(--font-latin); }
.post-card__title { font-size: var(--fs-base); line-height: 1.7; transition: color var(--dur-1); }
.post-list--compact { gap: 0; border-top: 1px solid var(--c-line); margin-bottom: var(--sp-7); }
.post-list--compact .post-card__link { padding: var(--sp-4) 0; border-bottom: 1px solid var(--c-line); gap: var(--sp-1); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--sp-4); margin-top: var(--sp-8); }
/* 番号を上の段、前へ・次へを下の段に並べる */
.pagination ol { order: -1; flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.pagination__gap { display: grid; place-items: center; min-width: 1.5rem; color: var(--c-text-muted); }
.pagination a { display: grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; padding-inline: var(--sp-3); border: 1px solid var(--c-line); border-radius: var(--radius-pill); text-decoration: none; font-family: var(--font-latin); }
.pagination a[aria-current] { background: var(--c-text); color: var(--c-bg); border-color: var(--c-text); }

.article { padding-block: clamp(3rem, 2rem + 4vw, 6rem) 0; }
.article__header { margin-bottom: var(--sp-7); }
.article__meta { display: flex; gap: var(--sp-3); align-items: center; font-family: var(--font-latin); font-size: var(--fs-sm); color: var(--c-text-muted); margin-bottom: var(--sp-4); }
.article__title { font-size: var(--fs-h2); line-height: var(--lh-heading); }
.article__subtitle { display: inline; font-size: var(--fs-lg); font-weight: 400; line-height: 1.6; color: var(--c-text-muted); }
.article__subtitle .chunk { white-space: nowrap; }  /* 塊の中では折らない（lib の phraseChunks）。inline-block にしない（Google が塊ごとに「 - 」でつなぐ） */
.article__hero { margin-bottom: var(--sp-8); }
.article__hero img { width: 100%; border-radius: var(--radius); }
.article__footer { margin-top: var(--sp-9); padding-bottom: var(--gap-section); }
.article__related-title { font-size: var(--fs-h3); margin-bottom: var(--sp-5); }

/* 長い文章（記事本文、ポリシー） */
.prose { max-width: var(--measure); }
.container--narrow .prose, .split .prose { max-width: none; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: var(--fs-h3); margin-top: 2.5em; padding-bottom: var(--sp-3); border-bottom: 1px solid var(--c-line); }
.prose h3 { font-size: var(--fs-lg); margin-top: 2em; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--c-accent); }
.prose img { border-radius: var(--radius-sm); }
.prose blockquote { margin-inline: 0; padding-left: var(--sp-5); border-left: 3px solid var(--c-accent); color: var(--c-text-muted); }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: var(--fs-sm); }
.prose th, .prose td { padding: var(--sp-3) var(--sp-4); border: 1px solid var(--c-line); text-align: left; white-space: nowrap; }

/* ========== 8 動き ==========
   data-reveal: 画面に入ったらふわっと出す。JS が動かない時と「動きを減らす」設定の時は最初から見せる。
   data-motion=0 のサイトでは何も動かさない。 */
.js[data-motion]:not([data-motion="0"]) [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.js[data-motion]:not([data-motion="0"]) [data-reveal].is-in { opacity: 1; transform: none; }
.js[data-motion]:not([data-motion="0"]) [data-split]:not(.is-split) { opacity: 0; }
[data-motion]:not([data-motion="0"]) .split-line { display: block; overflow: hidden; padding-block: 0.06em; margin-block: -0.06em; }
[data-motion]:not([data-motion="0"]) .split-line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 90ms + 120ms); }
.is-split.is-in .split-line > span { transform: none; }

/* ページの移り変わり（対応ブラウザだけ。複数ページでも一続きに見せる） */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 420ms; animation-timing-function: var(--ease-out); }

@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; }
  .js [data-reveal], .js [data-split] { opacity: 1 !important; transform: none !important; }
  .split-line > span { transform: none !important; }
  @view-transition { navigation: none; }
}

/* BCコマース: 文字と立体イラストを左右に分けるメインビジュアル */
.hero--split { align-items: center; min-height: min(100svh - var(--header-h), 48rem); padding-block: var(--sp-8); background: linear-gradient(180deg, var(--c-accent-soft), var(--c-bg) 70%); }
.hero--split .hero__content { width: 100%; }
.hero--split .hero__title, .hero--split .hero__lead { max-width: 46%; }
.hero--split .hero__title { max-width: 50%; }
.hero--split .actions { max-width: 50%; }
.hero__art { position: absolute; z-index: 0; top: 50%; right: max(var(--gutter), calc((100% - var(--w-wide)) / 2)); width: min(44%, 38rem); transform: translateY(-50%); }
.hero__art img { width: 100%; height: auto; display: block; }
@media (max-width: 899px) {
  .hero--split { min-height: auto; padding-block: var(--sp-7) var(--sp-7); }
  .hero--split .hero__title, .hero--split .hero__lead, .hero--split .actions { max-width: none; }
  .hero__art { position: relative; top: auto; right: auto; width: 100%; max-width: 30rem; margin: 0 auto var(--sp-5); transform: none; grid-row: 2; }
}
.case__metric { margin-block: var(--sp-3); font-family: var(--font-latin), var(--font-sans); font-size: var(--fs-h3); font-weight: var(--fw-bold); color: var(--c-accent); line-height: var(--lh-tight); }
.section--cases .note { margin-top: var(--sp-5); }
.hero--split .eyebrow { text-transform: none; }
.section[class*="tone-"] + .section:not([class*="tone-"]) { padding-top: var(--gap-section); }
.section--price .plan__amount { font-size: var(--fs-h2); }
.section--price .plan__price { flex-wrap: nowrap; }
.case__metric { font-size: var(--fs-lg); }
@media (min-width: 1024px) { .section--flow .steps { grid-template-columns: repeat(5, 1fr); } }

/* 料金が1プランの時は、カードを全幅にして対応業務を2列で組む */
.price-grid:has(> .plan:only-child) { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .plan:only-child .check-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap-item); } .plan:only-child .button { justify-self: start; width: auto; align-self: flex-start; } }

/* ========== トップの区画の作り分け（2026-11-08 同じ形のカードの連続をやめる。~/.claude/rules/design-no-ai-look.md） ========== */
/* 背景の透かし文字 */
.section:has(> .watermark) { position: relative; overflow: hidden; isolation: isolate; }
.watermark { position: absolute; z-index: -1; top: clamp(1rem, 3vw, 3rem); right: calc(var(--gutter) * -0.5); font-family: var(--font-latin); font-weight: 800; font-size: clamp(4.5rem, 2rem + 11vw, 13rem); line-height: 1; letter-spacing: -0.02em; color: var(--c-accent-soft); pointer-events: none; user-select: none; white-space: nowrap; }
.tone-inverse > .watermark { color: color-mix(in srgb, var(--c-inverse-text) 6%, transparent); }

/* 見出しの強調語 */
.hero__title .hl { color: var(--c-accent); }

/* 課題（人物つき） */
.worry-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap-item); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.worry { display: flex; flex-direction: column; padding: var(--sp-6); background: var(--c-surface); border-radius: var(--radius); }
.worry__art { display: grid; place-items: center; margin-bottom: var(--sp-5); aspect-ratio: 4/3; background: var(--c-bg); border-radius: var(--radius-sm); }
.worry__art img { width: auto; height: 82%; object-fit: contain; }
.worry__tag { align-self: flex-start; margin: 0 0 var(--sp-3); padding: 0.2em 0.9em; border-radius: var(--radius-pill); background: var(--c-bg); color: var(--c-accent); border: 1px solid rgb(22 104 208 / 0.25); font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: 0.06em; }
.worry__title { font-size: var(--fs-lg); line-height: 1.6; }
.worry p:not(.worry__tag) { margin-top: var(--sp-3); color: var(--c-text-muted); font-size: var(--fs-sm); }
/* 課題から解決への帯。参考（KAGAMIのメリットの区画）と同じく、下向きの矢印＋青のグラデーションの面＋左に白い札。べた塗りの全幅の箱と上向きの吹き出しは「ださい」で直した（2026-11-08） */
.worry-resolve { position: relative; display: flex; align-items: center; gap: var(--sp-6); max-width: 56rem; margin: calc(var(--sp-8) + 2.2rem) auto 0; padding: var(--sp-6) var(--sp-7); background: linear-gradient(100deg, rgba(22,104,208,.92) 0%, rgba(79,152,232,.85) 55%, rgba(140,196,248,.8) 100%); color: var(--c-on-accent); border-radius: var(--radius); box-shadow: 0 18px 40px -24px rgba(22,104,208,.55); }
.worry-resolve::before { content: ""; position: absolute; top: -2.4rem; left: 50%; width: 2.6rem; height: 1.3rem; background: linear-gradient(180deg, #7fbdf5, var(--c-accent)); clip-path: polygon(0 0, 100% 0, 50% 100%); transform: translateX(-50%); }
.worry-resolve__label { flex: none; padding: var(--sp-4) var(--sp-5); background: #fff; color: var(--c-accent); border-radius: var(--radius-sm); font-weight: var(--fw-bold); font-size: var(--fs-base); line-height: 1.6; text-align: center; }
.worry-resolve__text { position: relative; font-family: var(--font-heading); font-size: var(--fs-h3); font-weight: var(--fw-bold); line-height: 1.7; text-align: left; }
@media (max-width: 640px) { .worry-resolve { flex-direction: column; align-items: center; gap: var(--sp-4); padding: var(--sp-5); } .worry-resolve__text { text-align: center; font-size: var(--fs-lg); } }

/* サービス（大きな2段＋線で区切った行） */
.svc-feature { display: grid; gap: var(--sp-9); }
.svc-big { display: grid; gap: var(--sp-6) clamp(2rem, 1rem + 5vw, 6rem); align-items: center; }
@media (min-width: 900px) {
  .svc-big { grid-template-columns: 1.1fr 1fr; }
  .svc-big--reverse { grid-template-columns: 1fr 1.1fr; }
  .svc-big--reverse > :first-child { order: 2; }
}
.svc-big__media { position: relative; }
.svc-big__media::before { content: ""; position: absolute; inset: 12% -6% -8% 10%; z-index: -1; background: var(--c-surface); border-radius: var(--radius); }
.svc-big--reverse .svc-big__media::before { inset: 12% 10% -8% -6%; }
.svc-big__media img, .svc-big__media .placeholder { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.svc-big__target { margin: 0 0 var(--sp-2); font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--c-accent); }
.svc-big__title { font-size: var(--fs-h2); line-height: var(--lh-tight); }
.svc-big__body { margin-top: var(--sp-4); color: var(--c-text-muted); }
.check-list { list-style: none; margin: var(--sp-5) 0 0; padding: var(--sp-5) 0 0; border-top: 1px solid var(--c-line); display: grid; gap: var(--sp-2); font-size: var(--fs-sm); }
.check-list li { position: relative; padding-left: 1.75em; }
.check-list li::before { content: ""; position: absolute; left: 0.2em; top: 0.45em; width: 0.9em; height: 0.5em; border-left: 2px solid var(--c-accent); border-bottom: 2px solid var(--c-accent); transform: rotate(-45deg); }
.svc-big .actions { margin-top: var(--sp-6); }
.svc-rows { list-style: none; margin: var(--sp-9) 0 0; padding: 0; border-top: 2px solid var(--c-text); }
.svc-row { display: grid; gap: var(--sp-3) var(--sp-6); align-items: center; padding-block: var(--sp-6); border-bottom: 1px solid var(--c-line); }
@media (min-width: 900px) { .svc-row { grid-template-columns: 18rem 1fr auto; } }
.svc-row__target { margin: 0 0 var(--sp-1); font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--c-accent); }
.svc-row__title { font-size: var(--fs-h3); }
.svc-row__body { color: var(--c-text-muted); font-size: var(--fs-sm); }
.svc-row .button { justify-self: start; }

/* 選ばれる理由（暗い全幅の面で左右を入れ替える） */
.section--features.tone-inverse .feature-rows { gap: var(--sp-8); }
.section--features.tone-inverse .split__media { display: grid; place-items: center; aspect-ratio: 4/3; background: var(--c-inverse-text); border-radius: var(--radius); }
.section--features.tone-inverse .split__media img { width: auto; height: 80%; object-fit: contain; border-radius: 0; }
.section--features.tone-inverse .num { font-family: var(--font-latin); font-size: clamp(3rem, 2rem + 4vw, 5.5rem); font-weight: 800; line-height: 1; color: var(--scene-2, var(--c-accent-soft)); }
.section--features.tone-inverse .card-title { font-size: var(--fs-h3); margin-top: var(--sp-3); }
.section--features.tone-inverse .split__text p:not(.num) { margin-top: var(--sp-3); color: var(--c-inverse-muted); }

/* 導入事例（淡い板の中で横に送る） */
.case-board { padding: var(--sp-7) 0 var(--sp-6) var(--sp-7); background: var(--c-surface); border-radius: var(--radius); }
.case-track { list-style: none; margin: 0; padding: 0 var(--sp-7) var(--sp-4) 0; display: grid; grid-auto-flow: column; grid-auto-columns: min(46rem, 86%); gap: var(--gap-item); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.case-slide { scroll-snap-align: start; display: grid; gap: var(--sp-5) var(--sp-6); padding: var(--sp-6); background: var(--c-bg); border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 900px) { .case-slide { grid-template-columns: 1fr 1fr; } }
.case-slide__client { margin: 0; font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--c-text-muted); }
.case-slide__metric { margin-top: var(--sp-2); font-family: var(--font-heading); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); font-weight: var(--fw-bold); line-height: 1.3; color: var(--c-accent); }
.case-bars { display: grid; gap: var(--sp-2); margin-top: var(--sp-5); }
.case-bars__bar { position: relative; display: block; width: max(var(--w), 0.75rem); height: 1.75rem; border-radius: 0 6px 6px 0; background: var(--c-line); }
.case-bars__bar--after { background: linear-gradient(90deg, rgba(22,104,208,.95), rgba(79,152,232,.9)); }
.case-bars__bar em { position: absolute; left: calc(100% + 0.5em); top: 50%; transform: translateY(-50%); font-style: normal; font-size: var(--fs-xs); color: var(--c-text-muted); white-space: nowrap; }
.case-bars__bar--after em { left: auto; right: 0.6em; color: var(--c-on-accent); font-weight: var(--fw-bold); }
.case-slide__detail { display: flex; flex-direction: column; gap: var(--sp-3); }
@media (min-width: 900px) { .case-slide__detail { padding-left: var(--sp-6); border-left: 1px solid var(--c-line); } }
.case-slide__title { font-size: var(--fs-lg); line-height: 1.6; }
.case-slide__action { font-size: var(--fs-sm); color: var(--c-text-muted); }
.case-slide__action span { display: inline-block; margin-right: 0.6em; padding: 0 0.6em; border-radius: var(--radius-sm); background: var(--c-accent-soft); color: var(--c-accent); font-weight: var(--fw-bold); font-size: var(--fs-xs); }
.case-slide__after { font-size: var(--fs-xs); color: var(--c-text-muted); }
.case-slide .link-arrow { margin-top: auto; }
.case-board__note { margin: var(--sp-4) var(--sp-7) 0 0; }
@media (max-width: 640px) { .case-board { padding: var(--sp-5) 0 var(--sp-5) var(--sp-5); } .case-track { padding-right: var(--sp-5); } .case-board__note { margin-right: var(--sp-5); } }
/* 画像で見た後の直し（2026-11-08） */
.watermark { top: 0.25rem; }
.worry__art { aspect-ratio: auto; height: 13rem; }
.worry__art img { height: 85%; max-width: 85%; }
.section--features.tone-inverse .feature-rows > li { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .section--features.tone-inverse .feature-rows > li { grid-template-columns: 1.3fr 1fr; }
  .section--features.tone-inverse .feature-rows > li.split--reverse { grid-template-columns: 1fr 1.3fr; }
}
.section--features.tone-inverse .split__media { aspect-ratio: auto; height: clamp(11rem, 8rem + 10vw, 19rem); }
.case-slide__result { display: flex; flex-direction: column; }
@media (max-width: 640px) {
  .worry { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0 var(--sp-4); padding: var(--sp-5); }
  .worry__art { grid-row: span 3; height: 6.5rem; margin: 0; }
  .worry__tag { margin-bottom: var(--sp-2); }
  .section--features.tone-inverse .feature-rows { gap: var(--sp-7); }
  .section--features.tone-inverse .feature-rows > li { grid-template-columns: 1fr 7rem; gap: var(--sp-4); align-items: start; }
  .section--features.tone-inverse .feature-rows > li.split--reverse > :first-child { order: 0; }
  .section--features.tone-inverse .split__media { height: 7rem; }
  .section--features.tone-inverse .num { font-size: 2.5rem; }
  .svc-big__media { max-width: 20rem; }
  .svc-feature { gap: var(--sp-8); }
}
.worry__art, .section--features.tone-inverse .split__media { display: flex; justify-content: center; align-items: center; overflow: hidden; }
.worry__art img, .section--features.tone-inverse .split__media img { width: auto; height: 86%; max-width: 90%; object-fit: contain; }
.watermark::before { content: attr(data-wm); }
@media (max-width: 640px) { .svc-big__media { display: none; } }
@media (max-width: 640px) { .svc-rows { margin-top: var(--sp-7); } .section--features.tone-inverse .feature-rows { gap: var(--sp-6); } .worry-resolve { margin-top: var(--sp-7); } }

/* 点検係の指摘で直す（2026-11-08） */
/* 透かし文字は見出しの上の余白に置き、文字の行に重ねない。狭い幅では出さない */
.watermark { top: 0; right: calc(var(--gutter) * -0.25); font-size: clamp(4rem, 1rem + 7vw, 8.5rem); transform: translateY(-38%); }
@media (max-width: 899px) { .watermark { display: none; } }
/* サービスの大きな段：絵は上で揃え、後ろの板は外す。スマホでも絵とチェック項目を出す */
.svc-big { align-items: start; }
.svc-big__media::before { display: none; }
@media (max-width: 640px) {
  .svc-big__media { display: block; max-width: none; }
  .svc-big__media img, .svc-big__media .placeholder { aspect-ratio: 16/9; object-fit: cover; }
}
/* 選ばれる理由：順序の無い3項目なので番号を出さない（home.yml の noNum） */
.section--features.tone-inverse .card-title { margin-top: 0; }
/* 事例：カードの高さを中身に合わせ、横に送れることを示す */
.case-track { align-items: start; }
.case-slide .link-arrow { margin-top: var(--sp-2); }
.case-bars__bar { height: 2.25rem; }
.case-board__hint { margin: 0 var(--sp-7) var(--sp-4) 0; text-align: right; font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--c-accent); }
@media (max-width: 640px) { .case-board__hint { margin-right: var(--sp-5); } }
/* 見出しの改行の位置をそろえる */
.section h2 { text-wrap: balance; }

/* 選ばれる理由: 主張を手順の小札と矢印で見せる（2026-11-08 本人「急に濃いやつも合わない」。濃い面と人物の線画をやめた。参考はKAGAMIのメリットの小札と矢印の帯） */
.reason-flow { display: grid; align-content: center; gap: var(--sp-5); padding: var(--sp-7); background: var(--c-bg); border: 1px solid var(--c-line); box-shadow: 0 18px 40px rgb(22 104 208 / 0.08); border-radius: var(--radius); }
.reason-flow__cap { justify-self: start; margin: 0; padding: 0.3em 1em; border-radius: var(--radius-pill); background: var(--c-accent-soft); color: var(--c-accent); font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.reason-flow__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); counter-reset: rf; }
.reason-flow__steps li { position: relative; display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-sm); font-weight: var(--fw-bold); box-shadow: 0 6px 18px rgb(22 104 208 / 0.08); counter-increment: rf; }
.reason-flow__steps li::before { content: counter(rf); display: grid; place-items: center; flex: none; width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--c-accent); color: var(--c-on-accent); font-size: var(--fs-xs); }
.reason-flow__steps li:not(:last-child)::after { content: ""; position: absolute; left: calc(var(--sp-4) + 0.9em - 1px); bottom: calc(-1 * var(--sp-3)); width: 2px; height: var(--sp-3); background: var(--c-accent); opacity: 0.5; }
.reason-flow__steps li:last-child { background: linear-gradient(100deg, rgba(22,104,208,.92), rgba(79,152,232,.85) 60%, rgba(140,196,248,.8)); color: var(--c-on-accent); border-color: transparent; }
.reason-flow__steps li:last-child::before { background: var(--c-on-accent); color: var(--c-accent); }
@media (max-width: 899px) { .reason-flow { padding: var(--sp-5); } }
/* 課題の場面の絵は横長（640×360）。スマホの小さい枠では余白を詰めて大きく見せ、札は文字の幅にする */
.worry__art img[src$=".svg"] { width: 86%; height: 86%; max-width: none; object-fit: contain; }
@media (max-width: 640px) { .worry__tag { justify-self: start; } .worry__art img[src$=".svg"] { width: 90%; height: 90%; } }

/* 資料請求：全幅のべた塗りをやめ、課題の帯と同じ透けるグラデーションの面と白い札にそろえる（2026-11-08） */
.section--cta .cta { position: relative; max-width: 60rem; padding: var(--sp-8) var(--sp-6); border-radius: var(--radius); color: var(--c-on-accent); background: linear-gradient(100deg, rgba(22,104,208,.92), rgba(79,152,232,.85) 55%, rgba(140,196,248,.8)); box-shadow: 0 24px 48px rgb(22 104 208 / 0.18); --c-text-muted: rgb(255 255 255 / 0.9); }
.section--cta .cta h2, .section--cta .cta .section-head p { color: inherit; }
.section--cta .cta .button--primary { background: #fff; color: var(--c-accent); border-color: #fff; }
.section--cta .cta .button--primary:hover { background: var(--c-accent-soft); }
.cta__label { display: inline-block; margin: 0 0 var(--sp-4); padding: 0.35em 1.2em; border-radius: var(--radius-pill); background: #fff; color: var(--c-accent); font-size: var(--fs-sm); font-weight: var(--fw-bold); letter-spacing: 0.04em; }
@media (max-width: 640px) { .section--cta .cta { padding: var(--sp-7) var(--sp-5); } }
/* サービスの絵：平たい絵（unDraw）を同じ比率の枠に収め、切らない（2026-11-08） */
.svc-big__media img { aspect-ratio: 4 / 3; height: auto; object-fit: contain; padding: 8% 10%; background: var(--c-bg); }
