:root {
    /* 配色はロゴマークの実測値（濃紺 #3C508C → 水色 #508CB4）から展開 */
    --paper:      #FFFFFF;
    --surface:    #F3F6FB;
    --surface-2:  #E1E9F3;
    --ink:        #16203A;
    --ink-mute:   #5F6E8A;
    --line:       #D8DFEA;
    --navy:       #2E4372;
    --blue:       #3C508C;
    --blue-deep:  #2B3C68;
    --cyan:       #508CB4;
    --gold:       #B5820F;
    --gold-bg:    #FAF1DC;
    --on-blue:    #FFFFFF;
    --grad: linear-gradient(118deg, #3C508C 0%, #4570A2 52%, #508CB4 100%);
    --grad-btn: linear-gradient(118deg, #33477C 0%, #46739E 100%);
    --shadow: 0 1px 2px rgba(11,27,46,.05), 0 12px 32px -12px rgba(18,58,120,.18);
    --shadow-lift: 0 2px 4px rgba(11,27,46,.06), 0 24px 48px -16px rgba(18,58,120,.28);

    --jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", "Noto Sans JP", "Meiryo", sans-serif;
    --en: "Helvetica Neue", Helvetica, Arial, sans-serif;

    --wrap: 1180px;
    --gut: clamp(20px, 5vw, 64px);
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --paper:     #0A1524;
      --surface:   #0F1E31;
      --surface-2: #142943;
      --ink:       #E8F0F8;
      --ink-mute:  #93A9C0;
      --line:      #21374F;
      --navy:      #8CC4EE;
      --blue:      #4E9BE8;
      --blue-deep: #6FB4F0;
      --cyan:      #5FCBEF;
      --gold:      #F7C948;
      --gold-bg:   #3A2F12;
      --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
      --shadow-lift: 0 2px 4px rgba(0,0,0,.5), 0 24px 48px -16px rgba(0,0,0,.7);
    }
  }
  :root[data-theme="dark"] {
    --paper:     #0C1526;
    --surface:   #111C30;
    --surface-2: #1A2740;
    --ink:       #E9EFF6;
    --ink-mute:  #96A6BE;
    --line:      #26344B;
    --navy:      #A8C4DE;
    --blue:      #7BA5C8;
    --blue-deep: #93B8D6;
    --cyan:      #8CBBD6;
    --gold:      #E3B44F;
    --gold-bg:   #33290F;
    --grad: linear-gradient(118deg, #6E8CC0 0%, #6FA0C4 52%, #8CBBD6 100%);
    --grad-btn: linear-gradient(118deg, #3C508C 0%, #4E7FAE 100%);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
    --shadow-lift: 0 2px 4px rgba(0,0,0,.5), 0 24px 48px -16px rgba(0,0,0,.7);
  }
  :root[data-theme="light"] {
    --paper:     #FFFFFF;
    --surface:   #F3F6FB;
    --surface-2: #E1E9F3;
    --ink:       #16203A;
    --ink-mute:  #5F6E8A;
    --line:      #D8DFEA;
    --navy:      #2E4372;
    --blue:      #3C508C;
    --blue-deep: #2B3C68;
    --cyan:      #508CB4;
    --gold:      #B5820F;
    --gold-bg:   #FAF1DC;
    --grad: linear-gradient(118deg, #3C508C 0%, #4570A2 52%, #508CB4 100%);
    --grad-btn: linear-gradient(118deg, #33477C 0%, #46739E 100%);
    --shadow: 0 1px 2px rgba(11,27,46,.05), 0 12px 32px -12px rgba(18,58,120,.18);
    --shadow-lift: 0 2px 4px rgba(11,27,46,.06), 0 24px 48px -16px rgba(18,58,120,.28);
  }

  * { box-sizing: border-box; }
  [hidden] { display: none !important; }

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

  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; }

  :focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 2px;
  }

  .wrap {
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gut);
  }

  /* ---------- 提案物であることの明示 ---------- */
  .draft-bar {
    background: var(--ink);
    color: #fff;
    font-size: 12.5px;
    line-height: 1.65;
    letter-spacing: .02em;
    padding: 9px 0;
  }
  :root[data-theme="dark"] .draft-bar,
  .draft-bar { background: #0B1B2E; }
  .draft-bar .wrap {
    display: flex;
    gap: 8px 18px;
    flex-wrap: wrap;
    align-items: baseline;
  }
  .draft-bar b {
    background: var(--cyan);
    color: #06182B;
    padding: 1px 9px;
    border-radius: 2px;
    font-size: 11.5px;
    letter-spacing: .08em;
    white-space: nowrap;
  }
  .draft-bar span { color: #B9CFE4; }

  /* ---------- ヘッダー ---------- */
  header.site {
    position: sticky;
    top: 0;
    z-index: 40;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  header.site .wrap {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(12px, 2vw, 30px);
    min-height: 72px;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    flex: none;
  }
  .logo .mark {
    width: auto;
    height: 30px;
    flex: none;
    display: block;
  }
  .logo .name {
    font-family: var(--en);
    font-weight: 700;
    font-size: 21px;
    letter-spacing: .07em;
    color: var(--ink);
  }
  .logo .prov {
    font-size: 10px;
    letter-spacing: .1em;
    color: var(--ink-mute);
    border: 1px solid var(--line);
    padding: 1px 6px;
    border-radius: 2px;
    white-space: nowrap;
  }

  /* ナビ・電話・ボタンをすべて同じ 1 行のベースラインに揃える */
  nav.main {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(13px, 1.8vw, 27px);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    white-space: nowrap;
  }
  nav.main a {
    display: inline-block;
    line-height: 1;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color .2s, color .2s;
  }
  nav.main a:hover { color: var(--blue); border-bottom-color: var(--blue); }

  .head-tel {
    display: flex;
    align-items: baseline;
    gap: 9px;
    white-space: nowrap;
    padding-left: clamp(12px, 1.6vw, 22px);
    border-left: 1px solid var(--line);
  }
  .head-tel .num {
    font-family: var(--en);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .01em;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
  }
  .head-tel .hrs { font-size: 11px; color: var(--ink-mute); letter-spacing: .02em; line-height: 1; }

  /* SNS（Instagram）とメニューボタンは常に1つの塊として扱う。
     狭い画面で片方だけが別の行に落ちるのを防ぐため。 */
  .head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
  }

  /* SNS（Instagram） */
  .sns-ico {
    display: grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--navy);
    transition: color .2s, border-color .2s, transform .18s ease;
  }
  .sns-ico svg { width: 19px; height: 19px; display: block; }
  .sns-ico:hover { color: var(--blue); border-color: var(--blue); transform: translateY(-2px); }

  /* モバイル用メニュー */
  .burger {
    display: none;
    flex: none;
    width: 42px; height: 42px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: transparent;
    color: var(--navy);
    cursor: pointer;
    padding: 0;
    place-items: center;
  }
  .burger svg { width: 20px; height: 20px; }
  nav.main.open { display: flex; }

  @media (max-width: 1380px) { .head-tel .hrs { display: none; } }
  /* Instagramアイコンを足したぶんヘッダーが1行に収まらなくなるため、
     ナビをハンバーガーに畳む幅を 1020px → 1140px に引き上げている */
  @media (max-width: 1140px) {
    header.site .wrap { flex-wrap: wrap; }
    .burger { display: grid; }
    .head-actions { order: 3; }
    .head-tel { border-left: none; padding-left: 0; }
    nav.main {
      display: none;
      order: 4;
      width: 100%;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      white-space: normal;
      border-top: 1px solid var(--line);
      padding-block: 6px 12px;
    }
    nav.main a { padding: 13px 2px; border-bottom: 1px solid var(--line); line-height: 1.6; }
    nav.main a:last-child { border-bottom: none; }
  }
  @media (max-width: 620px) {
    header.site .btn { display: none; }
    /* 2行に折り返した際、2行目のボタン群を右端に揃える */
    .head-actions { margin-left: auto; }
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14.5px;
    letter-spacing: .04em;
    background: var(--grad-btn);
    color: var(--on-blue);
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
    white-space: nowrap;
  }
  .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
  .btn .arw { width: 17px; height: 17px; flex: none; }
  .btn.ghost {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--line);
    box-shadow: none;
  }
  .btn.ghost:hover { border-color: var(--blue); color: var(--blue); }
  .btn.lg { padding: 17px 34px; font-size: 16px; }

  /* ---------- セクション共通 ---------- */
  section { padding-block: clamp(64px, 9vw, 118px); }
  section.tint { background: var(--surface); }

  .sec-head { margin-bottom: clamp(34px, 5vw, 56px); }
  .sec-head .en {
    font-family: var(--en);
    font-weight: 800;
    font-size: clamp(40px, 7.4vw, 82px);
    line-height: .94;
    letter-spacing: -.02em;
    color: var(--navy);
    margin: 0;
  }
  .sec-head .jp {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .22em;
    color: var(--blue);
  }
  .sec-head .lead {
    margin: 20px 0 0;
    max-width: 60ch;
    color: var(--ink-mute);
    font-size: 15.5px;
  }

  h3.blk {
    display: table;
    margin: 0 0 8px;
    background: var(--ink);
    color: var(--paper);
    /* 下限19px：「こんなお悩み、ありませんか？」を360px幅の端末でも1行に収めるため。
       21pxだと360px以下で折り返す（2026-08-19に実測して調整） */
    font-size: clamp(19px, 3.4vw, 33px);
    line-height: 1.5;
    letter-spacing: .02em;
    padding: 4px 16px;
    text-wrap: balance;
  }

  /* ---------- ヒーロー ---------- */
  .hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(70px, 12vw, 158px) clamp(74px, 12vw, 156px);
    background: linear-gradient(172deg, var(--surface) 0%, var(--paper) 62%);
  }
  #heroArt {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
  }
  .hero .wrap { position: relative; z-index: 1; }
  .hero .col { max-width: min(790px, 100%); }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .13em;
    color: var(--blue);
    background: var(--surface-2);
    padding: 7px 15px;
    border-radius: 999px;
    margin-bottom: 22px;
  }
  :root[data-theme="dark"] .eyebrow,
  .eyebrow { border: 1px solid color-mix(in srgb, var(--blue) 24%, transparent); }

  h1 {
    margin: 0;
    font-size: clamp(31px, 5.6vw, 60px);
    line-height: 1.32;
    letter-spacing: .005em;
    font-weight: 700;
    text-wrap: balance;
  }
  h1 .hl {
    background: linear-gradient(transparent 62%, color-mix(in srgb, var(--cyan) 42%, transparent) 62%);
  }
  .hero p.sub {
    margin: 24px 0 0;
    max-width: 40ch;
    color: var(--ink-mute);
    font-size: clamp(15px, 1.6vw, 17px);
  }
  .hero .acts { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
  .hero .facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--ink-mute);
  }
  .hero .facts b { color: var(--ink); font-weight: 700; }
  .hero p.sub { max-width: 33ch; }
  .hero .facts { max-width: 620px; }

  .photo {
    position: relative;
    border-radius: 4px;
    background:
      repeating-linear-gradient(135deg, transparent 0 13px, color-mix(in srgb, var(--blue) 7%, transparent) 13px 14px),
      var(--surface-2);
    border: 1px dashed color-mix(in srgb, var(--blue) 34%, transparent);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 22px;
    color: var(--navy);
  }
  .photo .t { font-size: 13px; font-weight: 700; letter-spacing: .06em; }
  .photo .d { font-size: 11.5px; color: var(--ink-mute); margin-top: 5px; line-height: 1.7; }

  /* ---------- 悩み ---------- */
  .worry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 14px; }
  .worry {
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 3px solid var(--cyan);
    border-radius: 3px;
    padding: 26px 24px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.85;
  }
  .worry q { quotes: "「" "」"; color: var(--ink); }
  .answer {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
  }
  .answer .txt { font-size: clamp(17px, 2.2vw, 22px); font-weight: 700; }
  .answer .txt em { font-style: normal; color: var(--blue); }

  /* ---------- 選ばれる理由 ---------- */
  .why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(16px, 2.4vw, 26px); }
  .why {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: clamp(26px, 3vw, 34px);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .why .ic { width: 40px; height: 40px; color: var(--blue); }
  .why h4 { margin: 0; font-size: 18px; line-height: 1.6; letter-spacing: .01em; text-wrap: balance; }
  .why p { margin: 0; font-size: 14px; color: var(--ink-mute); line-height: 1.92; }

  /* ---------- サービス ---------- */
  .cats { display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 26px); }
  .cat {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: clamp(24px, 3.4vw, 44px);
    box-shadow: var(--shadow);
  }
  .cat-head {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: clamp(14px, 2vw, 26px);
    padding-bottom: clamp(20px, 2.4vw, 28px);
    margin-bottom: clamp(24px, 2.8vw, 32px);
    border-bottom: 1px solid var(--line);
  }
  @media (max-width: 940px) {
    .cat-head { align-items: flex-start; }
  }
  .cat-n {
    font-family: var(--en);
    font-weight: 800;
    font-size: clamp(32px, 4.4vw, 46px);
    line-height: .9;
    letter-spacing: -.03em;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    flex: none;
    font-variant-numeric: tabular-nums;
  }
  .cat-head h3 { margin: 0 0 7px; font-size: clamp(20px, 2.7vw, 28px); line-height: 1.45; letter-spacing: .01em; text-wrap: balance; }
  .cat-head p { margin: 0; font-size: 14px; color: var(--ink-mute); line-height: 1.85; max-width: 58ch; }

  .grp + .grp { margin-top: clamp(24px, 2.8vw, 32px); }
  .grp-label {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--navy);
  }
  .grp-label::before { content: ""; width: 3px; height: 17px; background: var(--cyan); flex: none; }
  .grp-label span { font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--ink-mute); }

  .items { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.2vw, 16px); }
  @media (max-width: 900px) { .items { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 540px) { .items { grid-template-columns: 1fr; } }
  .item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 15px 16px 19px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color .18s, transform .18s;
  }
  .item:hover { border-color: var(--blue); transform: translateY(-2px); }
  .item .thumb {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    margin-bottom: 9px;
  }
  /* contain にすると縦長のサイネージなども欠けずに全体が入る */
  .item .thumb img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 10px;
    display: block;
  }
  .item b { font-size: 15.5px; letter-spacing: .02em; line-height: 1.5; }
  .item b small { display: block; font-size: 11px; font-weight: 400; color: var(--ink-mute); letter-spacing: .02em; }
  .item span { font-size: 12.5px; color: var(--ink-mute); line-height: 1.78; }

  .free-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-bg);
    color: var(--gold);
    border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .05em;
    padding: 8px 16px;
    border-radius: 3px;
  }
  :root[data-theme="dark"] .free-badge { color: var(--gold); }

  /* ---------- 導入施設 ---------- */
  .works { display: grid; grid-template-columns: repeat(auto-fit, minmax(292px, 1fr)); gap: clamp(16px, 2.2vw, 24px); }
  .work {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .work:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
  .work .photo {
    aspect-ratio: 4 / 3;
    border: none;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .work-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
  .work .meta { display: flex; flex-wrap: wrap; gap: 6px; }
  .work .tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 3px 9px;
    border-radius: 2px;
    background: var(--surface-2);
    color: var(--navy);
  }
  .work .tag.anon { background: transparent; border: 1px dashed var(--line); color: var(--ink-mute); font-weight: 600; }
  .fac-name { margin: 0; font-size: 18px; line-height: 1.55; letter-spacing: .01em; text-wrap: balance; }
  .fac-loc {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--ink-mute);
    letter-spacing: .02em;
  }
  .fac-loc svg { width: 13px; height: 13px; flex: none; color: var(--cyan); }
  .work .desc { margin: 0 0 auto; font-size: 13px; color: var(--ink-mute); line-height: 1.85; }
  .work .desc b { color: var(--ink); font-weight: 700; }

  .works-note {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--ink-mute);
  }

  /* ---------- 流れ ---------- */
  .flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 3px; }
  .step {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 26px 22px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
  }
  .step .n {
    font-family: var(--en);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    color: var(--cyan);
  }
  .step h4 { margin: 0; font-size: 16.5px; letter-spacing: .02em; }
  .step p { margin: 0; font-size: 13px; color: var(--ink-mute); line-height: 1.85; }

  /* ---------- FAQ ---------- */
  .faq { display: flex; flex-direction: column; gap: 0; max-width: 900px; }
  details.q {
    border-bottom: 1px solid var(--line);
    padding: 4px 0;
  }
  details.q summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 44px 20px 34px;
    font-weight: 700;
    font-size: 15.5px;
    line-height: 1.75;
    position: relative;
    transition: color .18s;
  }
  details.q summary::-webkit-details-marker { display: none; }
  details.q summary::before {
    content: "Q";
    position: absolute;
    left: 0; top: 19px;
    font-family: var(--en);
    font-weight: 800;
    font-size: 16px;
    color: var(--cyan);
  }
  details.q summary::after {
    content: "";
    position: absolute;
    right: 8px; top: 27px;
    width: 10px; height: 10px;
    border-right: 2px solid var(--blue);
    border-bottom: 2px solid var(--blue);
    transform: rotate(45deg);
    transition: transform .22s ease;
  }
  details.q[open] summary::after { transform: rotate(-135deg); }
  details.q summary:hover { color: var(--blue); }
  details.q .a {
    padding: 0 12px 24px 34px;
    font-size: 14.5px;
    color: var(--ink-mute);
    line-height: 1.95;
    position: relative;
  }
  details.q .a::before {
    content: "A";
    position: absolute;
    left: 0; top: 0;
    font-family: var(--en);
    font-weight: 800;
    font-size: 16px;
    color: var(--ink-mute);
    opacity: .5;
  }

  /* ---------- 会社案内 ---------- */
  .company { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
  table.info { width: 100%; border-collapse: collapse; font-size: 14.5px; }
  table.info th, table.info td { text-align: left; padding: 17px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
  table.info th { width: 8.5em; font-weight: 700; color: var(--navy); letter-spacing: .05em; }
  table.info td { color: var(--ink-mute); line-height: 1.85; }
  table.info td b { color: var(--ink); font-weight: 700; }
  .company .photo { aspect-ratio: 4 / 3; }

  /* アクセスマップ。iframeが表示できない場合は下の .map-fb が見える */
  .mapbox {
    position: relative;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    background: var(--surface-2);
  }
  .mapbox .map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
  }
  .map-fb {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    padding: 24px;
    color: var(--navy);
  }
  .map-fb .t { font-size: 13px; font-weight: 700; letter-spacing: .1em; }
  .map-fb .d { font-size: 12.5px; color: var(--ink-mute); line-height: 1.85; }
  @media (max-width: 800px) { .company { grid-template-columns: 1fr; } }

  /* ---------- CTA ---------- */
  .cta { background: var(--grad-btn); color: #fff; }
  .cta .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(26px, 4vw, 56px); align-items: center; }
  .cta h3 { margin: 0 0 14px; font-size: clamp(23px, 3.6vw, 38px); line-height: 1.45; text-wrap: balance; }
  .cta p { margin: 0; font-size: 14.5px; color: #D6EBF8; max-width: 42ch; }
  .cta .box {
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 4px;
    padding: clamp(24px, 3vw, 32px);
    text-align: center;
    backdrop-filter: blur(6px);
  }
  .cta .box .lbl { font-size: 12px; letter-spacing: .16em; font-weight: 700; color: #CFE7F6; }
  .cta .box .num {
    font-family: var(--en);
    font-size: clamp(32px, 4.6vw, 45px);
    font-weight: 800;
    letter-spacing: -.01em;
    display: block;
    margin: 6px 0 2px;
    font-variant-numeric: tabular-nums;
  }
  .cta .box .hrs { font-size: 12.5px; color: #CFE7F6; }
  /* CTA帯は両テーマとも青のままなので、ボタンの色は固定してよい */
  .cta .btn { background: #fff; color: #2B3C68; margin-top: 18px; }
  .cta .btn:hover { box-shadow: 0 20px 40px -14px rgba(0,0,0,.5); }
  @media (max-width: 820px) { .cta .wrap { grid-template-columns: 1fr; } }

  /* ---------- フッター ---------- */
  footer.site { background: var(--ink); color: #A9C1D8; padding-block: clamp(48px, 6vw, 72px) 28px; }
  :root[data-theme="dark"] footer.site { background: #061020; }
  footer.site .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.13); }
  footer.site .logo .name { color: #fff; }
  footer.site address { font-style: normal; font-size: 13.5px; line-height: 1.95; margin-top: 18px; }
  footer.site h5 { margin: 0 0 14px; font-size: 12px; letter-spacing: .18em; color: var(--cyan); font-family: var(--en); font-weight: 700; }
  footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 13.5px; }
  footer.site a:hover { color: #fff; }
  footer.site .sns { display: flex; align-items: center; gap: 11px; margin-top: 20px; }
  footer.site .sns-ico { border-color: rgba(255,255,255,.24); color: #A9C1D8; }
  footer.site .sns-ico:hover { border-color: #fff; color: #fff; }
  footer.site .sns .label { font-family: var(--en); font-size: 12.5px; letter-spacing: .08em; font-weight: 600; }
  footer.site .copy { padding-top: 24px; font-size: 11.5px; color: #6E8AA6; letter-spacing: .04em; }
  @media (max-width: 760px) { footer.site .top { grid-template-columns: 1fr; gap: 30px; } }

  /* ---------- 出現アニメーション ---------- */
  .rise { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.22,.7,.3,1), transform .7s cubic-bezier(.22,.7,.3,1); }
  .rise.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) {
    .rise { opacity: 1; transform: none; transition: none; }
    .btn:hover, .work:hover, .svc article:hover { transform: none; }
  }

  /* ---------- お問い合わせフォーム ---------- */
  .form-wrap { max-width: 760px; }
  .field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
  .field label { font-size: 14px; font-weight: 700; letter-spacing: .03em; display: flex; align-items: center; gap: 9px; }
  .req {
    font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
    background: var(--gold-bg); color: var(--gold);
    border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
    padding: 1px 7px; border-radius: 2px;
  }
  .opt { font-size: 10.5px; font-weight: 600; color: var(--ink-mute); border: 1px solid var(--line); padding: 1px 7px; border-radius: 2px; }
  .field input, .field textarea, .field select {
    font: inherit; font-size: 15px;
    color: var(--ink); background: var(--paper);
    border: 1px solid var(--line); border-radius: 3px;
    padding: 13px 14px; width: 100%;
    transition: border-color .18s;
  }
  .field textarea { min-height: 150px; resize: vertical; line-height: 1.85; }
  .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 15%, transparent); }
  .field .hint { font-size: 12.5px; color: var(--ink-mute); line-height: 1.7; }
  .consent { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; margin: 28px 0 24px; line-height: 1.8; }
  .consent input { width: 18px; height: 18px; flex: none; margin-top: 5px; accent-color: var(--blue); }
  .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
  button.btn { border: none; cursor: pointer; font-family: inherit; }
  button.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
  .form-msg { font-size: 14px; line-height: 1.8; padding: 16px 18px; border-radius: 3px; margin-top: 20px; display: none; }
  .form-msg.ok  { display: block; background: var(--gold-bg); color: var(--ink); border: 1px solid var(--line); }
  .form-msg.ng  { display: block; background: #FBECEC; color: #8C2F2F; border: 1px solid #E8C4C4; }
  :root[data-theme="dark"] .form-msg.ng { background: #2D1414; color: #E8A0A0; border-color: #4A2020; }
  .tel-alt { font-size: 14px; color: var(--ink-mute); line-height: 1.9; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
  .tel-alt b { color: var(--navy); font-family: var(--en); font-size: 21px; font-weight: 700; letter-spacing: .01em; }

/* ---------- 文書ページ（プライバシーポリシー等） ---------- */
.doc { max-width: 760px; }
.doc h3 { font-size: 18px; font-weight: 700; letter-spacing: .02em; margin: 44px 0 14px; padding-left: 12px; border-left: 3px solid var(--cyan); line-height: 1.6; }
.doc h4 { font-size: 15px; font-weight: 700; margin: 26px 0 8px; color: var(--navy); }
.doc p { margin: 0 0 16px; font-size: 15px; line-height: 1.95; }
.doc ul { margin: 0 0 18px; padding-left: 1.3em; font-size: 15px; }
.doc li { margin-bottom: 7px; line-height: 1.9; }
.doc b { font-weight: 700; }
.doc table.info { margin-bottom: 20px; }
.doc .rev { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-mute); }
.doc .back { margin-top: 34px; }

/* ボット避けの隠しフィールド。display:none だと一部のボットに見抜かれるため画面外へ送る */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
