/*
Theme Name: Compass One
Theme URI: https://uchord.tech/
Author: UCHORD
Author URI: https://uchord.tech/
Description: 個人事業主向けワンページ型ビジネスサイトテーマ。広告・データ/AI・CRM支援＋自社事業の紹介向け。質感特化デザイン（3層影・磁器質感カード）、チャート描画・カウントアップ演出付き。
Version: 1.1.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: compass-one
*/
/* ============================================================
   このファイルは design-mock/index.html から tools/build.sh で
   自動生成される。直接編集禁止。変更はマスター側で行うこと。
   ============================================================ */
:root {
    --surface: #FFFFFF;
    --ink: #212842;
    --muted: #535D73;
    --faint: #616B86;
    --line: #E7EAF3;
    --line-strong: #DBE1EE;
    --line-tile: #E4E9F4;
    --line-hover: #CBD3EA;
    --line-hover-strong: #BFC8E4;
    --hairline: #EAEDF5;
    --accent: #4F5FE8;
    --accent-deep: #3D51D3;
    --accent-hi: #5865EA;
    --accent-lo: #4854E2;
    --accent-hi-hover: #4C5AE6;
    --accent-2: #7D89F6;
    --accent-soft: #EEF1FE;
    --green: #0E7A47;
    --green-soft: #E7F5EE;
    --amber: #C97E17;
    --amber-soft: #FBF2E3;
    --violet: #8B5CF6;
    --violet-soft: #F1EBFE;
    --orange: #E8710A;
    --orange-soft: #FDF0E3;
    --blue: #2C7BE5;
    --blue-soft: #E8F1FC;
    --card-bg: linear-gradient(180deg, #FFFFFF 0%, #FBFCFE 100%);
    --tile-bg: linear-gradient(180deg, #FAFBFE 0%, #F6F8FC 100%);
    --edge-hi: inset 0 1px 0 rgba(255, 255, 255, .85);
    --shadow: 0 1px 1px rgba(38, 48, 100, .04), 0 3px 8px rgba(38, 48, 100, .05), 0 14px 28px -18px rgba(38, 48, 100, .1);
    --shadow-lg: 0 1px 2px rgba(38, 48, 100, .05), 0 6px 16px rgba(38, 48, 100, .07), 0 22px 38px -20px rgba(38, 48, 100, .16);
    --r: 20px;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
    --font-en: "Helvetica Neue", "Avenir Next", Helvetica, Arial, "Hiragino Sans", sans-serif;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 84px; }
  body {
    margin: 0; background: var(--surface); color: var(--ink);
    font-family: var(--font); font-size: 16px; line-height: 1.9;
    letter-spacing: .03em; font-kerning: normal;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.chips, .rows, .flow-steps, .donut-legend, .trust, .feats { margin: 0; padding: 0; list-style: none; }
.nav ul { display: contents; margin: 0; padding: 0; list-style: none; }
.nav li { display: contents; }
.site-footer .footer-nav ul { display: contents; margin: 0; padding: 0; list-style: none; }
.site-footer .footer-nav li { display: contents; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
  .wrap { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
  .num {
    font-family: var(--font-en); font-variant-numeric: tabular-nums lining-nums;
    letter-spacing: .01em;
  }
  /* 和文見出し・ラベル系はプロポーショナルメトリクス(palt)で締める。本文は等幅のまま */
  h1, h2, h3, .eyebrow, .panel-label, .mini-title, .kpi-label, .stat-label,
  .chip-jp, .badge, .tag, .case-chip, .post-cat, .trust, .btn, .nav,
  .feats li, .rows li, .flow-steps li, .ai-name, .footer-nav,
  .ai-bubble strong { font-feature-settings: "palt" 1; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

  /* ============ header ============ */
  .site-header {
    position: sticky; top: 0; z-index: 90;
    background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(250,251,254,.8));
    backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
    border-bottom: 1px solid rgba(214,220,237,.75);
  }
  .header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 16px; }
  .brand { line-height: 1.32; }
  .brand-name { font-family: var(--font-en); font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
  .brand-sub { font-family: var(--font-en); font-size: 11px; color: var(--faint); font-weight: 500; letter-spacing: .09em; }
  .nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: #3A445C; }
  .nav > a:not(.nav-cta):hover { color: var(--accent); }
  .nav-cta {
    background: linear-gradient(180deg, var(--accent-hi) 0%, var(--accent-lo) 100%); color: #fff; font-weight: 700;
    padding: 11px 24px; border-radius: 12px; white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 2px rgba(61,81,211,.28), 0 5px 12px -4px rgba(79,95,232,.42);
    transition: transform .15s var(--ease), box-shadow .15s var(--ease);
  }
  .nav-cta:hover { transform: translateY(-1px); background: linear-gradient(180deg, var(--accent-hi-hover) 0%, var(--accent-deep) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 2px 4px rgba(61,81,211,.26), 0 8px 16px -5px rgba(79,95,232,.5); }
  .nav-cta:active { transform: translateY(0); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 1px 2px rgba(61,81,211,.26), 0 3px 6px -3px rgba(79,95,232,.38); transition-duration: .07s; }
  .nav-toggle {
    display: none; width: 44px; height: 44px; flex: none;
    border: 1px solid var(--line); border-bottom-color: var(--line-strong);
    border-radius: 12px; background: var(--card-bg);
    box-shadow: var(--edge-hi), 0 1px 2px rgba(38,48,100,.05);
    color: var(--ink); place-items: center; cursor: pointer;
  }
  @media (max-width: 960px) {
    .nav-toggle { display: grid; }
    .nav {
      display: none; position: absolute; top: 74px; left: 0; right: 0;
      flex-direction: column; align-items: stretch; gap: 2px;
      background: #fff; border-bottom: 1px solid var(--line);
      box-shadow: var(--shadow); padding: 14px 28px 22px;
    }
    .nav.open { display: flex; }
    .nav > a:not(.nav-cta) { padding: 11px 0; }
    .nav-cta { text-align: center; margin-top: 10px; }
  }
  @media (max-width: 480px) { .brand-sub { display: none; } }

  /* ============ hero ============ */
  .hero {
    position: relative; overflow: hidden; padding: 88px 0 100px;
    background: linear-gradient(180deg, #F5F7FB 0%, #F3F5FA 55%, #EFF2F8 100%);
    border-bottom: 1px solid var(--hairline);
  }
  .hero::before {
    content: ""; position: absolute; right: -140px; top: -80px; width: 760px; height: 760px;
    background: radial-gradient(closest-side, rgba(125,137,246,.09), rgba(125,137,246,0));
    pointer-events: none;
  }
  .hero-grid {
    position: relative; display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px; align-items: center;
  }
  @media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 56px; }
    .hero h1 br, .hero-lead br { display: none; }
    .h1-line { display: inline; }
  }

  .eyebrow { color: var(--accent); font-size: 13.5px; font-weight: 600; letter-spacing: .09em; margin: 0 0 22px; }
  .hero h1 {
    margin: 0 0 28px; font-size: clamp(26px, 2.6vw, 35px);
    font-weight: 800; line-height: 1.48; letter-spacing: .02em; text-wrap: balance;
  }
  .h1-line { display: inline-block; }
  .hero h1 .u { display: inline-block; }
  .hero-lead { margin: 0 0 40px; font-size: 15.5px; font-weight: 300; color: var(--muted); line-height: 2.15; letter-spacing: .045em; }
  .hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 32px; border-radius: 16px; font-size: 15.5px; font-weight: 700; letter-spacing: .04em;
    transition: transform .15s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  }
  .btn:active, .btn:hover:active { transform: translateY(0); transition-duration: .07s; }
  .btn svg { flex: none; }
  .btn-primary {
    background: linear-gradient(180deg, var(--accent-hi) 0%, var(--accent-lo) 100%); color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 2px rgba(61,81,211,.3), 0 6px 14px -6px rgba(79,95,232,.5);
  }
  .btn-primary:hover { background: linear-gradient(180deg, var(--accent-hi-hover) 0%, var(--accent-deep) 100%); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 2px 4px rgba(61,81,211,.26), 0 9px 18px -7px rgba(79,95,232,.55); }
  .btn-primary:active { box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 2px rgba(61,81,211,.25), 0 3px 8px -4px rgba(79,95,232,.4); }
  .btn-ghost { background: linear-gradient(180deg, #FFFFFF, #FBFCFE); border: 1px solid #C9D1F5; color: var(--accent); box-shadow: var(--edge-hi), 0 1px 2px rgba(38,48,100,.05); }
  .btn-ghost:hover { border-color: var(--accent); background: linear-gradient(180deg, #FFFFFF, #F7F9FE); transform: translateY(-2px); box-shadow: var(--edge-hi), 0 3px 8px rgba(38,48,100,.08); }
  .btn-ghost:active { box-shadow: var(--edge-hi), 0 1px 3px rgba(38,48,100,.06); }
  .trust { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: #55607A; font-weight: 600; letter-spacing: .05em; }
  .trust li { display: flex; align-items: center; gap: 6px; }
  .trust svg { color: var(--accent); flex: none; }

  /* ============ dashboard composition ============ */
  .dash {
    position: relative; display: grid; gap: 18px; min-width: 0;
    container-type: inline-size; container-name: dash;
    margin-right: clamp(-100px, calc((1280px - 100vw) / 2 + 28px), 0px);
  }
  .chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
  .chip {
    background: var(--card-bg); border: 1px solid var(--line); border-bottom-color: var(--line-strong);
    border-radius: 16px; box-shadow: var(--edge-hi), var(--shadow);
    padding: 14px 6px 12px; text-align: center; line-height: 1.45;
  }
  .chip-icon { width: 28px; height: 28px; margin: 0 auto 7px; display: grid; place-items: center; }
  .chip-en { font-family: var(--font-en); font-size: 12.5px; font-weight: 700; letter-spacing: .01em; }
  .chip-jp { font-size: 10px; color: var(--faint); font-weight: 600; letter-spacing: .08em; }

  .panel { background: var(--card-bg); border: 1px solid var(--line); border-bottom-color: var(--line-strong); border-radius: var(--r); box-shadow: var(--edge-hi), var(--shadow); }
  .overview { padding: 24px 26px 26px; }
  .panel-label { font-size: 11px; font-weight: 600; color: var(--faint); margin: 0 0 14px; letter-spacing: .12em; }
  .kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
  .kpi { background: var(--tile-bg); border: 1px solid var(--line-tile); border-radius: 14px; padding: 12px; line-height: 1.55; min-width: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.9); }
  .kpi-label { font-size: 10.5px; color: var(--faint); font-weight: 600; letter-spacing: .05em; }
  .kpi-value { font-size: 15px; font-weight: 700; white-space: nowrap; }
  .kpi-delta { font-family: var(--font-en); font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
  .up { color: var(--green); } .down { color: var(--green); }

  .ov-charts { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
  @container dash (max-width: 620px) {
    .kpis { grid-template-columns: repeat(2, 1fr); }
  }
  @container dash (max-width: 500px) {
    .ov-charts { grid-template-columns: 1fr; }
  }
  @container dash (max-width: 520px) {
    .chips { gap: 8px; }
    .chip-en { font-size: 10px; letter-spacing: 0; }
    .chip-jp { display: none; }
    .chip { padding: 10px 4px 8px; border-radius: 12px; }
  }
  @container dash (max-width: 420px) {
    .overview { padding: 20px; }
    .kpi-value { font-size: 13.5px; }
    .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
  .mini-title { font-size: 12px; font-weight: 600; color: #3A445C; margin: 0 0 8px; letter-spacing: .06em; }
  .legend { display: flex; align-items: center; gap: 14px; font-size: 10.5px; color: var(--muted); font-weight: 500; margin-bottom: 6px; letter-spacing: .04em; }
  .legend i { display: inline-block; width: 18px; height: 2px; border-radius: 1px; margin-right: 5px; vertical-align: middle; }
  .legend .i-dash { background: repeating-linear-gradient(90deg, #B6BDD1 0 4px, transparent 4px 7px); }
  .chart-svg { width: 100%; height: auto; display: block; }
  .donut-flex { display: flex; align-items: center; gap: 14px; }
  .donut-legend { display: grid; gap: 6px; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .03em; flex: 1; }
  .donut-legend li { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
  .donut-legend i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
  .donut-legend b { margin-left: auto; color: var(--faint); font-weight: 600; font-size: 11.5px; }

  .dash-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(184px, 1fr)); gap: 14px; align-items: start; }
  .float-card { padding: 18px 20px; }
  .rows { display: grid; gap: 10px; }
  .rows li {
    display: flex; align-items: center; gap: 9px;
    background: var(--tile-bg); border: 1px solid var(--line-tile); border-radius: 11px; padding: 9px 10px;
    font-size: 12px; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  }
  .rows .ico { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; }
  .rows b { margin-left: auto; font-size: 12.5px; font-weight: 700; }

  .ai-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
  .ai-avatar {
    width: 28px; height: 28px; border-radius: 9px; background: var(--accent-soft);
    display: grid; place-items: center; color: var(--accent); flex: none;
  }
  .ai-name { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: #3A445C; }
  .ai-bubble {
    background: linear-gradient(180deg, #F4F6FB, #F0F3F9); border-radius: 12px; padding: 12px 14px;
    font-size: 12px; font-weight: 400; line-height: 1.8; letter-spacing: .02em; color: #414B63;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 0 0 1px rgba(45,55,120,.04);
  }
  .ai-bubble strong { display: block; color: var(--ink); margin-bottom: 3px; font-weight: 600; }
  .ai-action { display: flex; justify-content: flex-end; margin-top: 10px; }
  .ai-action span {
    background: var(--accent-soft); color: var(--accent); font-size: 11.5px; font-weight: 600; letter-spacing: .03em;
    padding: 6px 13px; border-radius: 9px;
  }

  .flow-steps { display: grid; gap: 0; position: relative; }
  .flow-steps li { display: flex; align-items: center; gap: 11px; font-size: 12px; font-weight: 600; letter-spacing: .03em; position: relative; padding: 7px 0; }
  .flow-steps li:not(:last-child)::before {
    content: ""; position: absolute; left: 12.5px; top: 36px; bottom: -6px;
    border-left: 2px dashed var(--line-strong);
  }
  .flow-ico { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; flex: none; position: relative; z-index: 1; }

  /* porcelain rings: hairline of the icon's own hue keeps tinted fills from looking flat.
     static rgba() fallback first — Safari ≤16.1 drops the color-mix() declarations below. */
  .rows .ico, .flow-ico, .ai-avatar, .feat-ico, .svc-ico {
    box-shadow: inset 0 0 0 1px rgba(60, 70, 140, .12), inset 0 1px 0 rgba(255,255,255,.55);
  }
  .tag, .post-cat, .case-chip, .badge, .ai-action span {
    box-shadow: inset 0 0 0 1px rgba(60, 70, 140, .12);
  }
  .rows .ico, .flow-ico, .ai-avatar, .feat-ico, .svc-ico {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 12%, transparent), inset 0 1px 0 rgba(255,255,255,.55);
  }
  .tag, .post-cat, .case-chip, .badge, .ai-action span {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 14%, transparent);
  }


  /* ============ profile strip ============ */
  .profile { padding: 64px 0; }
  .profile-grid {
    display: grid; grid-template-columns: 176px minmax(260px, 1fr) minmax(500px, 1.45fr);
    gap: 40px; align-items: center;
  }
  .avatar {
    width: 176px; height: 176px; border-radius: 50%; overflow: hidden; position: relative;
    background: linear-gradient(150deg, #DDE4F9, #F0F3FD);
    box-shadow: inset 0 0 0 1px rgba(45,55,120,.06), inset 0 1px 0 rgba(255,255,255,.7), 0 1px 2px rgba(38,48,100,.04);
    display: grid; place-items: center; color: #96A3D6;
  }
  .avatar small {
    position: absolute; bottom: 8px; left: 0; right: 0; text-align: center;
    font-size: 10px; color: #5A6689; font-weight: 600;
  }
  .avatar-illust { width: 100%; height: 100%; display: block; }
  .profile h2 { margin: 0 0 12px; font-size: 19px; font-weight: 600; letter-spacing: .03em; }
  .profile-bio { margin: 0 0 14px; font-size: 13.5px; font-weight: 300; color: var(--muted); line-height: 2.1; letter-spacing: .04em; max-width: 38em; }
  .text-link { color: var(--accent); font-size: 13.5px; font-weight: 600; letter-spacing: .03em; display: inline-flex; align-items: center; gap: 5px; }
  .text-link:hover {
    text-decoration: underline; text-decoration-thickness: 1.5px;
    text-underline-offset: 4px; text-decoration-color: rgba(79, 95, 232, .45);
  }
  .feats { display: grid; grid-template-columns: repeat(4, 1fr); }
  .feats li { text-align: center; padding: 4px 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; line-height: 1.75; white-space: nowrap; }
  .feats li + li { border-left: 1px solid var(--line); }
  .feat-ico {
    width: 54px; height: 54px; border-radius: 50%; background: var(--accent-soft);
    color: var(--accent); display: grid; place-items: center; margin: 0 auto 12px;
  }
  @media (max-width: 1120px) {
    .profile-grid { grid-template-columns: 176px 1fr; }
    .feats { grid-column: 1 / -1; }
  }
  @media (max-width: 640px) {
    .profile-grid { grid-template-columns: 1fr; justify-items: start; }
    .feats { grid-template-columns: repeat(2, 1fr); width: 100%; gap: 14px 0; }
    .feats li:nth-child(3) { border-left: none; }
  }

  /* ============ sections ============ */
  .section { padding: 104px 0; }
  .section.tinted {
    background: linear-gradient(180deg, #F3F5FA 0%, #F6F8FC 100%);
    border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  }
  .sec-en {
    font-size: clamp(46px, 5.6vw, 80px); font-weight: 700;
    letter-spacing: -.015em; line-height: .94; color: rgba(79, 95, 232, .16);
    margin: 0 0 -6px; user-select: none; font-kerning: normal;
    font-family: var(--font-en);
  }
  .section h2.sec-title { margin: 0 0 18px; font-size: clamp(24px, 2.7vw, 32px); font-weight: 800; line-height: 1.4; letter-spacing: .03em; }
  .sec-lead { margin: 0 0 52px; color: var(--muted); font-size: 15px; font-weight: 300; line-height: 2.1; letter-spacing: .04em; max-width: 38em; }

  .cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
  @media (max-width: 900px) { .cards3 { grid-template-columns: 1fr; } }
  .svc {
    background: var(--card-bg); border: 1px solid var(--line); border-bottom-color: var(--line-strong);
    border-radius: var(--r); box-shadow: var(--edge-hi), var(--shadow);
    padding: 36px 32px; display: flex; flex-direction: column; gap: 16px;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
  }
  .svc:hover { transform: translateY(-5px); border-color: var(--line-hover); border-bottom-color: var(--line-hover-strong); box-shadow: var(--edge-hi), var(--shadow-lg); }
  .svc-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; }
  .svc h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: .04em; }
  .svc p { margin: 0; font-size: 14px; font-weight: 300; color: var(--muted); line-height: 2; letter-spacing: .03em; flex: 1; }
  .tags { display: flex; flex-wrap: wrap; gap: 8px; }
  .tag { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 13px; }

  /* stats */
  .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 14px; }
  @media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
  .stat { background: var(--card-bg); border: 1px solid var(--line); border-bottom-color: var(--line-strong); border-radius: var(--r); padding: 32px 20px; text-align: center; box-shadow: var(--edge-hi), 0 1px 1px rgba(38,48,100,.03), 0 6px 14px -10px rgba(38,48,100,.08); }
  .stat-value { font-size: clamp(30px, 3.3vw, 42px); font-weight: 700; color: var(--accent); line-height: 1.3; letter-spacing: -.01em; }
  .stat-value small { font-family: var(--font); font-size: .44em; font-weight: 600; letter-spacing: .04em; margin-left: 4px; vertical-align: baseline; }
  .stat-label { font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: .08em; margin-top: 2px; }
  .note { font-size: 11.5px; color: var(--faint); letter-spacing: .03em; margin: 0 0 40px; }
  .case {
    background: var(--card-bg); border: 1px solid var(--line); border-bottom-color: var(--line-strong);
    border-radius: var(--r); box-shadow: var(--edge-hi), 0 1px 2px rgba(38,48,100,.03);
    padding: 24px; display: flex; flex-direction: column; gap: 10px;
  }
  .case-chip { align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: .06em; padding: 4px 12px; border-radius: 999px; }
  .case h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.7; letter-spacing: .03em; overflow-wrap: anywhere; line-break: anywhere; }
  .case p { margin: 0; font-size: 13px; font-weight: 300; color: var(--muted); letter-spacing: .03em; }
  .case-result { font-family: var(--font-en); font-size: 13px; font-weight: 700; color: var(--green); display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }

  /* products */
  .product { background: var(--card-bg); border: 1px solid var(--line); border-bottom-color: var(--line-strong); border-radius: var(--r); box-shadow: var(--edge-hi), var(--shadow); overflow: hidden; transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease); }
  .product:hover { transform: translateY(-4px); border-color: var(--line-hover); border-bottom-color: var(--line-hover-strong); box-shadow: var(--edge-hi), var(--shadow-lg); }
  .thumb { height: 164px; display: grid; place-items: center; border-bottom: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -16px 26px -24px rgba(45,55,120,.22); }
  .thumb-1 { background: #EEF1FE; }
  .thumb-2 { background: #E3F2EF; }
  .thumb-3 { background: #F1EBFE; }
  .product-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 9px; }
  .product-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .product h3 { margin: 0; font-size: 16.5px; font-weight: 600; letter-spacing: .03em; overflow-wrap: anywhere; line-break: anywhere; }
  .badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 10.5px; font-weight: 600; letter-spacing: .08em; border-radius: 999px; padding: 3px 11px 3px 9px; white-space: nowrap;
  }
  .badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
  .badge-live { color: var(--green); background: var(--green-soft); }
  .badge-dev { color: var(--amber); background: var(--amber-soft); }
  .product p { margin: 0; font-size: 13px; font-weight: 300; color: var(--muted); letter-spacing: .03em; }

  /* blog */
  .post-card { background: var(--card-bg); border: 1px solid var(--line); border-bottom-color: var(--line-strong); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--edge-hi), 0 1px 2px rgba(38,48,100,.03); transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease); }
  .post-card:hover { transform: translateY(-3px); border-color: var(--line-hover); border-bottom-color: var(--line-hover-strong); box-shadow: var(--edge-hi), var(--shadow); }
  .post-meta { font-family: var(--font-en); display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--faint); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
  .post-cat { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; }
  .post-card h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.7; letter-spacing: .03em; }

  /* contact */
  .contact-band {
    background: linear-gradient(180deg, #272E4C 0%, #1E2440 100%);
    border-radius: 28px; padding: 76px 32px; text-align: center; color: #fff;
    position: relative; overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.09), inset 0 0 0 1px rgba(255,255,255,.04), 0 24px 48px -32px rgba(25,32,70,.5);
  }
  .contact-band::before {
    content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px;
    border-radius: 50%; background: rgba(255,255,255,.04);
  }
  .contact-band::after {
    content: ""; position: absolute; left: -80px; bottom: -120px; width: 300px; height: 300px;
    border-radius: 50%; background: rgba(255,255,255,.03);
  }
  .contact-band h2 { margin: 0 0 16px; font-size: clamp(23px, 2.9vw, 31px); font-weight: 800; letter-spacing: .04em; text-wrap: balance; position: relative; }
  .contact-band p { margin: 0 auto 32px; max-width: 34em; font-size: 14.5px; font-weight: 300; line-height: 2.1; letter-spacing: .04em; color: rgba(255,255,255,.94); position: relative; }
  .btn-white { background: linear-gradient(180deg, #FFFFFF, #F4F6FC); color: var(--accent-deep); box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(10,16,50,.35), 0 10px 24px -8px rgba(10,16,50,.45); position: relative; }
  .btn-white:hover { transform: translateY(-2px); }
  .btn-white:active { box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(10,16,50,.3), 0 4px 12px -6px rgba(10,16,50,.35); }

  /* footer */
  .site-footer { padding: 52px 0 40px; border-top: 1px solid var(--hairline); background: linear-gradient(180deg, #FFFFFF 0%, #F7F9FC 100%); }
  .footer-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
  .footer-nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: #3A445C; }
  .footer-nav a:hover { color: var(--accent); }
  .footer-bottom {
    display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    font-size: 11.5px; color: var(--faint); letter-spacing: .04em; font-variant-numeric: tabular-nums;
    border-top: 1px solid var(--line); padding-top: 22px;
  }
  .footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
  .footer-legal a:hover { color: var(--ink); }

  /* ============ craft: micro-interactions ============ */
  .site-header { transition: box-shadow .25s var(--ease); }
  .site-header.scrolled { box-shadow: 0 1px 0 rgba(35,48,110,.03), 0 2px 4px rgba(38,48,100,.04), 0 10px 24px -14px rgba(38,48,100,.12); }
  .nav > a:not(.nav-cta) { position: relative; }
  .nav > a:not(.nav-cta)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
    border-radius: 2px; background: var(--accent);
    transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
  }
  .nav > a:not(.nav-cta):hover::after { transform: scaleX(1); }
  .btn svg, .text-link svg { transition: transform .25s var(--ease); }
  .btn:hover svg { transform: translateX(3px); }
  .btn-primary:hover svg { transform: translate(2px, -2px); }
  .text-link:hover svg { transform: translateX(3px); }
  .svc-ico { transition: transform .25s var(--ease); }
  .svc:hover .svc-ico { transform: scale(1.06); }
  .thumb svg { transition: transform .3s var(--ease); }
  .product:hover .thumb svg { transform: translateY(-4px) scale(1.02); }

  /* ============ craft: hero orchestration ============ */
  .dash .chip {
    opacity: 0; transform: translateY(12px) scale(.96);
    transition: opacity .5s var(--ease) var(--d, 0s), transform .5s var(--ease) var(--d, 0s), box-shadow .2s var(--ease);
  }
  .dash.in .chip { opacity: 1; transform: none; }
  .chips > :nth-child(1) { --d: .05s; } .chips > :nth-child(2) { --d: .11s; }
  .chips > :nth-child(3) { --d: .17s; } .chips > :nth-child(4) { --d: .23s; }
  .chips > :nth-child(5) { --d: .29s; }
  .dash .panel {
    opacity: 0; transform: translateY(18px);
    transition: opacity .6s var(--ease) var(--d, .32s), transform .6s var(--ease) var(--d, .32s);
  }
  .dash.in .panel { opacity: 1; transform: none; }
  .dash-row > :nth-child(1) { --d: .52s; } .dash-row > :nth-child(2) { --d: .64s; }
  .dash-row > :nth-child(3) { --d: .76s; }
  .chart-line { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
  .dash.in .chart-line { transition: stroke-dashoffset 1.2s cubic-bezier(.4, 0, .2, 1) .55s; stroke-dashoffset: 0; }
  .chart-area { opacity: 0; }
  .dash.in .chart-area { transition: opacity .9s var(--ease) 1.75s; opacity: 1; }
  .chart-dot { opacity: 0; transition: opacity .3s var(--ease) var(--d, 1.2s); }
  .dash.in .chart-dot { opacity: 1; }
  .donut-seg { stroke-dasharray: 0 100; transition: stroke-dasharray .9s cubic-bezier(.4, 0, .2, 1) var(--d, .7s); }
  .dash.in .donut-seg { stroke-dasharray: var(--arc); }
  /* ============ craft: section motion ============ */
  .cards3 > :nth-child(2) { transition-delay: .12s; }
  .cards3 > :nth-child(3) { transition-delay: .24s; }

  /* reveal */
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .svc, .product, .post-card, .nav-cta { transition: none; }
    .dash .chip, .dash .panel { opacity: 1; transform: none; transition: none; }
    .chart-line { stroke-dasharray: none; stroke-dashoffset: 0; }
    .chart-area { opacity: 1; transition: none; }
    .chart-dot { opacity: 1; transition: none; }
    .donut-seg { stroke-dasharray: var(--arc); transition: none; }
  }

/* ============ blog archive / single (WP) ============ */
.page-hero { background: var(--bg, #F4F6FB); padding: 64px 0 56px; }
.page-hero h1 { margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.5; }
.page-hero .post-meta { margin-top: 14px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding: 64px 0 90px; }
@media (max-width: 900px) { .archive-grid { grid-template-columns: 1fr; } }
.article { padding: 64px 0 90px; }
.article-body { max-width: 720px; font-size: 15.5px; line-height: 2.1; color: #333B52; }
.article-body h2 { font-size: 22px; font-weight: 800; margin: 2.2em 0 .8em; padding-left: 14px; border-left: 4px solid var(--accent); line-height: 1.6; }
.article-body h3 { font-size: 18px; font-weight: 800; margin: 2em 0 .7em; }
.article-body a { color: var(--accent); text-decoration: underline; }
.article-body img { border-radius: 14px; }
.article-body blockquote { margin: 1.5em 0; padding: 4px 20px; border-left: 4px solid var(--line); color: var(--muted); }
.article-body pre { background: #171C2E; color: #E7EAF3; padding: 20px; border-radius: 14px; overflow-x: auto; font-size: 13.5px; line-height: 1.8; }
.article-body code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.pagination { display: flex; gap: 8px; justify-content: center; padding-bottom: 90px; font-weight: 700; font-size: 14px; }
.pagination .page-numbers { padding: 8px 15px; border: 1px solid var(--line); border-radius: 10px; }
.pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============ Contact Form 7（お問い合わせフォーム） ============ */
.wpcf7 { max-width: 620px; }
.wpcf7-form p { margin: 0 0 22px; }
.wpcf7-form label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.7; }
.wpcf7-form-control-wrap { display: block; margin-top: 8px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; font-weight: 400;
  color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; line-height: 1.6; transition: border-color .18s, box-shadow .18s;
}
.wpcf7-form textarea { min-height: 168px; resize: vertical; }
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.wpcf7-form input::placeholder, .wpcf7-form textarea::placeholder { color: #9AA3B8; }
.wpcf7-form .wpcf7-list-item { margin: 0 18px 0 0; }
.wpcf7-form .wpcf7-submit {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; border: 0; font-family: inherit;
  font-size: 15.5px; font-weight: 700; padding: 15px 44px; border-radius: 14px;
  box-shadow: 0 4px 14px rgba(79,95,232,.22);
  transition: background .2s, transform .15s, box-shadow .15s;
}
.wpcf7-form .wpcf7-submit:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(79,95,232,.28); }
.wpcf7-form .wpcf7-submit:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.wpcf7-form .wpcf7-spinner { margin: 0 0 0 12px; }
.wpcf7-not-valid-tip { color: #B23B2E; font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.wpcf7-form input.wpcf7-not-valid, .wpcf7-form textarea.wpcf7-not-valid { border-color: #E0796F; box-shadow: 0 0 0 3px rgba(224,121,111,.12); }
.wpcf7-response-output { margin: 18px 0 0 !important; font-size: 14px; line-height: 1.7; }
.wpcf7 form.sent .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { padding: 14px 16px !important; border: 1px solid var(--line) !important; border-radius: 12px; }
.wpcf7 form.sent .wpcf7-response-output { background: var(--green-soft); border-color: #BFE3CE !important; color: var(--green); }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { background: #FBECEA; border-color: #F0C7C0 !important; color: #B23B2E; }
