/* =========================================================
   スマホ最適化（2026-10-17）
   ヘッダーにメニュー／下部ナビを目立たせる／ヒーロー再設計／文字組み
   ========================================================= */
@media (max-width: 760px) {

  /* ---------- ヘッダー: 右上にメニューボタン ---------- */
  .floating-nav {
    display: block !important;
    position: fixed;
    top: 10px;
    right: 14px;
    z-index: 210;
  }
  .floating-nav .menu-btn {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .floating-nav .menu-btn span { background: #fff; width: 20px; }

  /* ---------- 下部ナビ: 浮かぶバーで目立たせる ---------- */
  .mobile-bottom-nav {
    left: 10px !important;
    right: 10px !important;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 6px !important;
    border-radius: 22px !important;
    background: rgba(10, 14, 30, .9) !important;
    border: 1px solid transparent !important;
    background-image: linear-gradient(rgba(10, 14, 30, .92), rgba(10, 14, 30, .92)),
      linear-gradient(100deg, #22d3ee, #8b5cf6 55%, #f43f5e) !important;
    background-origin: border-box !important;
    background-clip: padding-box, border-box !important;
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .04) inset !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .mobile-bottom-nav .mobile-nav-item { border-radius: 16px; }
  .mobile-bottom-nav .mobile-nav-label { font-size: 11px !important; font-weight: 700; color: rgba(255, 255, 255, .86); letter-spacing: .04em; }
  .mobile-bottom-nav .mobile-nav-icon { color: #fff; }
  body { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }

  /* ---------- ヒーロー: 1画面に収まる左寄せの構成 ---------- */
  .hero {
    min-height: 100svh;
    padding-top: 84px !important;
    padding-bottom: 28px !important;
  }
  .hero-video-bg video { object-position: 50% 50% !important; }
  .hero-video-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 10, 26, .55) 0%, rgba(6, 10, 26, .15) 42%, rgba(6, 10, 26, .25) 70%, rgba(6, 10, 26, .75) 100%);
    pointer-events: none;
  }
  .hero-content { padding-left: 20px !important; padding-right: 20px !important; }
  .hero-text { text-align: left !important; }
  .hero-badge-row { justify-content: flex-start !important; gap: 10px !important; margin-bottom: 14px !important; }
  .hero-badge-row .rec-badge-side { width: 56px !important; height: auto; }
  .hero-badge-50th { padding: 7px 14px !important; }
  .hero-badge-50th .badge-text-en { font-size: 13px !important; }
  .hero-headline { text-align: left !important; margin: 0 0 14px !important; }
  .hero-headline .headline-line { justify-content: flex-start !important; text-align: left !important; }
  .hero-headline .line-1 { font-size: 27px !important; color: #fff !important; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
  .hero-headline .line-1 .number-accent { font-size: 64px !important; line-height: .9; }
  .hero-headline .line-2 { font-size: 40px !important; margin-top: 2px; }
  .hero-headline .line-2, .hero-headline .line-2 * { color: #fff !important; -webkit-text-fill-color: currentColor; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
  .hero-headline .line-2 .kasoku-accent { color: #ff4fa3 !important; }
  .hero-headline .rec-anchor { display: none !important; }
  .hero-subtitle { text-align: left !important; margin: 0 0 20px !important; }
  .hero-subtitle-inner {
    display: inline-block;
    font-size: 15px !important;
    line-height: 1.8 !important;
    font-weight: 700;
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(6, 10, 26, .45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .hero-subtitle .br-mobile { display: inline !important; }
  .hero-cta-group {
    display: grid !important;
    grid-template-columns: 1.15fr 1fr;
    gap: 10px !important;
    width: 100%;
    margin: 0 !important;
  }
  .hero-cta-group .btn { width: 100% !important; min-height: 52px; padding: 14px 10px !important; font-size: 15px !important; justify-content: center; }
  .hero-cta-group .btn-secondary { background: rgba(10, 16, 36, .78) !important; border: 1.5px solid rgba(255, 255, 255, .85) !important; color: #fff !important; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 6px 18px rgba(0, 0, 0, .35) !important; }

  /* 紹介映像のスマホは小さめに */
  .hero-character-area { height: 300px !important; margin-top: 18px !important; }
  .hero-phone-stage { transform: scale(.78); transform-origin: center top; }

  /* 実績の数字: 横3列の帯に */
  .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 !important;
    width: calc(100% - 40px) !important;
    max-width: none !important;
    margin: 6px auto 0 !important;
    padding: 14px 6px !important;
    border-radius: 18px !important;
    background: rgba(6, 10, 26, .62) !important;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .hero-stats .hero-stat-divider { display: none !important; }
  .hero-stats .hero-stat { padding: 0 6px !important; border: 0 !important; text-align: center; }
  .hero-stats .hero-stat + .hero-stat-divider + .hero-stat,
  .hero-stats .hero-stat:not(:first-child) { border-left: 1px solid rgba(255, 255, 255, .16) !important; }
  .hero-stats .stat-number { font-size: 30px !important; line-height: 1.1; color: #fff !important; }
  .hero-stats .stat-number small { font-size: 12px !important; margin-left: 2px; }
  .hero-stats .stat-label { display: block; margin-top: 4px; font-size: 11.5px !important; line-height: 1.45 !important; color: rgba(255, 255, 255, .85) !important; word-break: auto-phrase; }

  /* ---------- 5つのLAB 見出し ---------- */
  .labs-head { text-align: left !important; padding: 0 4px; }
  .labs-title { font-size: 30px !important; line-height: 1.3 !important; }
  .labs-desc { font-size: 15px !important; line-height: 1.85 !important; color: #2a2f45 !important; text-wrap: pretty; word-break: auto-phrase; }

  /* ---------- 共通の文字組み ---------- */
  .section-title { word-break: auto-phrase; text-wrap: balance; }
  .section-desc, .speech-bubble p, .qa-desc, .labs-desc, .service-desc, .lab-lead { text-wrap: pretty; }
  .section-desc { font-size: 15px !important; line-height: 1.85 !important; }

  /* ---------- お問い合わせ ---------- */
  #contact .section-header { text-align: left !important; }
  #contact .section-desc { text-align: left !important; margin-left: 0 !important; }
  #contact .contact-intro { display: grid !important; grid-template-columns: 88px 1fr; align-items: center; gap: 12px !important; }
  #contact .contact-intro .character-slot { width: 88px !important; height: 88px !important; margin: 0 !important; }
  #contact .contact-intro .speech-bubble { margin: 0 !important; padding: 14px 16px !important; }
  #contact .contact-intro .speech-bubble p { font-size: 14px !important; line-height: 1.75 !important; }
  #contact form .form-group { margin-bottom: 16px !important; }
  #contact form .form-row { gap: 0 !important; margin-bottom: 0 !important; }
  #contact form label:not(.check-label) { font-size: 14px !important; margin-bottom: 6px !important; }
  #contact form input:not([type=checkbox]), #contact form textarea { font-size: 16px !important; padding: 12px 14px !important; }

  /* 並び順: バッジ → 見出し → 説明 → ボタン → 紹介映像 */
  .hero-headline, .hero-subtitle, .hero-cta-group { align-self: stretch !important; width: 100% !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
  .hero-cta-group { order: 4 !important; }
  .hero-character-area { order: 5 !important; }
  .hero-subtitle { padding: 0 !important; }
  .hero-headline .line-1, .hero-headline .line-1 *:not(.number-accent) { -webkit-text-fill-color: #fff !important; color: #fff !important; }
  .hero-headline .number-accent { -webkit-text-fill-color: #ff4fa3 !important; color: #ff4fa3 !important; background: none !important; }

  .hero-content { gap: 0 !important; }
  .hero-subtitle { margin-bottom: 18px !important; }
  .hero-character-area { height: 270px !important; margin-top: 22px !important; }
  .hero-phone-stage { transform: scale(.7); }

  /* 紹介映像: ボタンと重ならないよう通常の流れに置く */
  .hero-character-area { height: auto !important; margin-top: 26px !important; display: flex; justify-content: center; }
  .hero-phone-stage { position: relative !important; top: 0 !important; transform: none !important; height: auto !important; margin: 0 auto !important; }
  .hero-phone-stage .phone-wrap { width: 190px !important; height: auto !important; margin: 0 auto !important; }
  .hero-phone-stage .deco-ring, .hero-phone-stage .deco-line { display: none !important; }
  /* 説明文を言葉の切れ目で */
  .section-desc, #contact .section-desc { word-break: auto-phrase !important; }

  /* スマホは背景の映像を主役にし、端末型の映像枠は出さない（1画面に収める） */
  .hero-character-area { display: none !important; }
  .hero { min-height: calc(100svh - 10px); display: flex; flex-direction: column; justify-content: center; padding-bottom: 110px !important; }
  .hero-stats { margin-top: 26px !important; }

  /* メニューを開いている間は、メニュー内の × を使う */
  body.menu-open .floating-nav { opacity: 0; pointer-events: none; }
}

/* ---------- スマホのヘッダー: ロゴ横にブランド名、右に相談ボタン ---------- */
.m-brand, .m-head-cta { display: none; }
@media (max-width: 760px) {
  .site-header { background: rgba(8, 12, 28, .78) !important; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: linear-gradient(90deg, #22d3ee, #8b5cf6 50%, #f43f5e); opacity: .9; }
  .m-brand { display: flex; flex-direction: column; justify-content: center; position: absolute; left: 76px; top: 0; bottom: 2px; text-decoration: none; }
  .m-brand-name { font: 800 17px/1.1 var(--font-en-display, "Space Grotesk", sans-serif); letter-spacing: .22em; color: #fff; }
  .m-brand-sub { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: rgba(255,255,255,.72); white-space: nowrap; }
  .m-brand-sub i { width: 6px; height: 6px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 8px #22d3ee; animation: mBrandBlink 2.4s ease-in-out infinite; }
  .m-head-cta { display: inline-flex; align-items: center; position: fixed; top: 17px; right: 70px; z-index: 210; height: 34px; padding: 0 12px;
    border-radius: 999px; background: linear-gradient(100deg, #0ea5e9, #8b5cf6); color: #fff; font-size: 12.5px; font-weight: 800; text-decoration: none;
    box-shadow: 0 6px 16px -6px rgba(139, 92, 246, .8); }
  body.menu-open .m-head-cta { opacity: 0; pointer-events: none; }
  @keyframes mBrandBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
}
@media (max-width: 359px) { .m-brand-sub { display: none; } .m-head-cta { padding: 0 10px; font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .m-brand-sub i { animation: none; } }
@media (max-width: 379px) {
  .m-brand-sub { display: none; }
  .hero-cta-group .btn { font-size: 14px !important; white-space: nowrap; padding: 14px 6px !important; }
  .hero-cta-group .btn-arrow { margin-left: 4px; }
}
/* SINCE 1975 を左、レックを右に大きく */
@media (max-width: 760px) {
  .hero-badge-row { justify-content: space-between !important; align-items: center !important; }
  .hero-badge-row .rec-badge-side { order: 2; width: 104px !important; margin-right: -4px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.35)); }
  .hero-badge-row .hero-badge-50th { order: 1; }
}
@media (max-width: 760px) {
  .hero-badge-row { justify-content: flex-start !important; gap: 18px !important; }
  .hero-badge-row .rec-badge-side { margin-right: 0; }
}
/* サンレコについての数字: スマホは2×2でコンパクトに */
@media (max-width: 760px) {
  .about__numbers { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .about__stat { padding: 18px 10px !important; min-height: 0 !important; }
  .about__stat-value { font-size: 30px !important; }
  .about__stat-value small { font-size: 13px !important; }
  .about__stat-label { font-size: 12.5px !important; line-height: 1.5 !important; color: rgba(255,255,255,.8) !important; word-break: auto-phrase; }
}
/* 「専門エージェントが動く。」を1行に収める */
@media (max-width: 760px) {
  .team-heading { font-size: clamp(20px, 6.2vw, 26px) !important; line-height: 1.4 !important; white-space: nowrap; letter-spacing: 0 !important; }
}
/* レックの自己紹介（スマホ） */
.rec-intro { display: none; }
@media (max-width: 760px) {
  .hero-badge-row { gap: 10px !important; flex-wrap: nowrap !important; }
  .hero-badge-row .rec-badge-side { width: 92px !important; flex: none; }
  .rec-intro { order: 3; display: block; position: relative; flex: 1 1 auto; min-width: 0; margin: 0;
    padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.94); color: #1f2335;
    font-size: 11.5px; font-weight: 700; line-height: 1.5; box-shadow: 0 8px 20px -8px rgba(0,0,0,.45);
    animation: recIntroIn .6s cubic-bezier(.3,1.4,.5,1) .9s both; }
  .rec-intro b { display: block; color: #e11d74; font-size: 12px; }
  .rec-intro::before { content: ""; position: absolute; left: -6px; top: 50%; margin-top: -6px; border: 6px solid transparent; border-left: 0; border-right-color: rgba(255,255,255,.94); }
  @keyframes recIntroIn { from { opacity: 0; transform: translateX(-8px) scale(.9); } to { opacity: 1; transform: none; } }
}
@media (max-width: 379px) {
  .hero-badge-row .hero-badge-50th { padding: 6px 10px !important; }
  .hero-badge-row .hero-badge-50th .badge-text-en { font-size: 11.5px !important; }
  .hero-badge-row .rec-badge-side { width: 76px !important; }
  .rec-intro { font-size: 10.5px; padding: 7px 8px; }
}
@media (prefers-reduced-motion: reduce) { .rec-intro { animation: none; } }
/* サンレコについての案内ボタン: 文字を白くはっきり */
.about__cta-link { color: #fff !important; text-shadow: 0 1px 8px rgba(30, 20, 80, .35); }
#agents { scroll-margin-top: 110px; }
@media (max-width: 760px) {
  .hero-badge-row .hero-badge-50th { flex: none; white-space: nowrap; padding: 6px 12px !important; }
  .hero-badge-row .hero-badge-50th .badge-text-en { font-size: 12px !important; white-space: nowrap; }
  .hero-badge-row .rec-badge-side { width: 82px !important; }
  .rec-intro { white-space: nowrap; flex: 0 1 auto; }
}
@media (max-width: 379px) { .hero-badge-row .rec-badge-side { width: 66px !important; } .hero-badge-row { gap: 6px !important; } }
@media (max-width: 379px) { .rec-intro { white-space: normal; flex: 1 1 auto; } }
/* サービス冒頭のレック: 画像と吹き出しを横並びでコンパクトに */
@media (max-width: 760px) {
  #services .services-intro { display: grid !important; grid-template-columns: 116px 1fr; align-items: center; gap: 10px !important; margin-bottom: 22px !important; }
  #services .services-intro .character-slot { width: 116px !important; height: auto !important; max-width: none !important; margin: 0 !important; }
  #services .services-intro .character-slot img { width: 100% !important; height: auto !important; }
  #services .services-intro .speech-bubble { margin: 0 !important; padding: 12px 14px !important; border-radius: 16px !important; max-width: none !important; }
  /* 吹き出しのしっぽは下の「レックのメッセージを吹き出しに」で表示 */
  #services .services-intro .speech-character-name { font-size: 11px !important; padding: 3px 10px !important; margin-bottom: 6px !important; }
  #services .services-intro .speech-bubble p { font-size: 13.5px !important; line-height: 1.7 !important; margin: 0 !important; }
  #services .services-intro .speech-bubble p br { display: none; }
}
/* こんなご相談: スマホは1枚のリストにまとめて1行ずつ */
@media (max-width: 760px) {
  #services .svc-asks-list { display: block !important; padding: 0 !important; border-radius: 16px; overflow: hidden !important;
    background: #fff; border: 1px solid #e3e7ef; box-shadow: 0 10px 24px -18px rgba(30, 40, 80, .4); }
  #services .svc-asks-list li + li { border-top: 1px solid #eef1f6; }
  #services .svc-asks-list a { flex-direction: row !important; align-items: center !important; gap: 8px !important;
    padding: 11px 12px 11px 12px !important; border: 0 !important; border-left: 3px solid var(--ask-c) !important; border-radius: 0 !important;
    box-shadow: none !important; transform: none !important; background: transparent !important; }
  #services .svc-asks-list .ask-q { flex: 1 1 auto; min-width: 0; font-size: 13.5px !important; line-height: 1.45; font-weight: 700; }
  #services .svc-asks-list .ask-q::before { width: 18px !important; height: 18px !important; margin-right: 7px !important; font-size: 10px !important; }
  #services .svc-asks-list .ask-to { margin-left: 0 !important; padding: 4px 8px !important; font-size: 11px !important; gap: 3px !important; }
  #services .svc-asks-list a:active { background: #f6f8fc !important; }
}
@media (max-width: 760px) {
  #services .svc-asks-list .ask-q { font-size: 13px !important; word-break: auto-phrase !important; text-wrap: pretty; }
  #services .svc-asks-list .ask-to::after { content: none !important; }
  #services .svc-asks-list .ask-to { padding: 4px 7px !important; font-size: 10.5px !important; }
}
@media (max-width: 760px) {
  #services .svc-asks-label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-size: 18px !important; margin-bottom: 4px !important; }
  #services .svc-asks-help { font-size: 12.5px !important; color: #6b7280 !important; margin-bottom: 12px !important; white-space: nowrap; }
  #services .svc-asks-help::before { content: "▸ "; color: #8b5cf6; }
}
/* 当てはまらない人への案内 */
#services .svc-asks-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 900px; margin: 16px auto 0;
  padding: 14px 16px; border-radius: 14px; border: 1.5px dashed #c4b5fd; background: #faf7ff; color: #1f2335; text-decoration: none; text-align: left; }
#services .svc-asks-note span { font-size: 14px; line-height: 1.65; word-break: auto-phrase; }
#services .svc-asks-note b { display: block; color: #6d28d9; font-size: 14.5px; }
#services .svc-asks-note em { flex: none; font-style: normal; padding: 9px 14px; border-radius: 999px; background: linear-gradient(100deg, #0ea5e9, #8b5cf6); color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; }
#services .svc-asks-note:hover em { filter: brightness(1.08); }
@media (max-width: 760px) {
  #services .svc-asks-note { padding: 12px 12px 12px 14px; gap: 10px; }
  #services .svc-asks-note span { font-size: 12.5px; }
  #services .svc-asks-note b { font-size: 13.5px; }
  #services .svc-asks-note em { padding: 8px 11px; font-size: 12px; }
}
/* 見出し行: 「たとえば、こんなご相談」左／案内を右に1行で */
#services .svc-asks { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 12px; text-align: left !important; }
#services .svc-asks > .svc-asks-list, #services .svc-asks > .svc-asks-note { flex: 0 0 100%; }
#services .svc-asks-label { margin: 0 0 12px !important; font-size: 18px !important; }
#services .svc-asks-label::after { content: none !important; }
#services .svc-asks-help { margin: 0 0 12px !important; font-size: 13px !important; color: #6b7280 !important; white-space: nowrap; }
#services .svc-asks-help::before { content: "▸ "; color: #8b5cf6; }
@media (max-width: 760px) {
  #services .svc-asks-label { font-size: 16.5px !important; }
  #services .svc-asks-help { font-size: 11.5px !important; }
}
@media (max-width: 359px) { #services .svc-asks-help { flex: 0 0 100%; margin-top: -8px !important; } }
#services .svc-asks-note { max-width: none; margin-left: 0; margin-right: 0; }
#services .svc-asks-note { display: block; text-align: center; padding: 14px 16px; }
#services .svc-asks-note b { display: block; margin-bottom: 2px; }
#services .svc-asks-note span { display: block; word-break: auto-phrase; }
@media (max-width: 760px) {
  #services .svc-asks-note span { font-size: 13px; }
}
/* 見出しを中央に: タイトル＋小さな案内ピル */
#services .svc-asks { justify-content: center; }
#services .svc-asks-label { flex: 0 0 100%; text-align: center; margin: 0 0 8px !important; font-size: 20px !important; letter-spacing: .04em; }
#services .svc-asks-label::before { content: "CASE"; display: block; margin-bottom: 4px; font: 800 11px/1 var(--font-en-display, sans-serif); letter-spacing: .3em; color: #8b5cf6; }
#services .svc-asks-help { flex: 0 0 auto; margin: 0 auto 16px !important; padding: 5px 12px; border-radius: 999px; background: #f1edff; color: #5b4b9a !important; font-size: 12.5px !important; }
#services .svc-asks-help::before { content: "👆 "; }
@media (max-width: 760px) {
  #services .svc-asks-label { font-size: 18px !important; }
  #services .svc-asks-help { font-size: 11.5px !important; margin-top: 0 !important; }
}
@media (max-width: 359px) { #services .svc-asks-help { flex: 0 0 auto; margin-top: 0 !important; } }
@media (max-width: 760px) { #services .svc-asks-label { display: block !important; } }
/* ===== サービスカード（スマホ）: Q→Aが一目でわかる、締まった見せ方 ===== */
@media (max-width: 760px) {
  #services .services-grid { gap: 12px !important; padding: 6px 20px 18px !important; scroll-padding: 0 20px; }
  #services .services-grid .service-card { flex: 0 0 86% !important; scroll-snap-align: start !important; padding: 0 !important; overflow: hidden;
    border-radius: 20px !important; border: 1px solid color-mix(in srgb, var(--svc-ink) 22%, transparent) !important;
    background: #fff !important; box-shadow: 0 16px 30px -22px var(--svc-ink) !important; display: flex !important; flex-direction: column; }
  /* 上: LAB色の帯にQ（お客様の声）を大きく */
  #services .service-card .service-voice { order: -1; margin: 0 !important; padding: 18px 18px 16px 50px !important; border-radius: 0 !important;
    background: linear-gradient(135deg, var(--svc-soft), #fff) !important; font-size: 16px !important; line-height: 1.5 !important; font-weight: 800 !important;
    color: #0f1222 !important; min-height: 5.6em; display: flex; align-items: center; word-break: auto-phrase; }
  #services .service-card .service-voice::before { left: 16px !important; top: 18px !important; width: 24px !important; height: 24px !important; font-size: 13px !important; line-height: 24px !important; }
  /* 番号・LAB名は帯の右上に小さく */
  #services .service-card .service-card-meta { position: absolute; top: 10px; right: 12px; z-index: 2; margin: 0 !important; }
  #services .service-card .service-card-meta .service-icon-wrapper { display: none !important; }
  #services .service-card .service-num { font-size: 12px !important; opacity: .55; }
  #services .service-card .service-brand { position: absolute; bottom: auto; top: auto; right: 14px; margin: 0 !important; }
  #services .service-card { position: relative; }
  #services .service-card > *:not(.service-voice):not(.service-card-meta) { margin-left: 18px !important; margin-right: 18px !important; }
  /* A: サービス名 */
  #services .service-card .service-title { margin-top: 16px !important; margin-bottom: 8px !important; font-size: 20px !important; }
  #services .service-card .service-title::before { content: "A. " !important; }
  #services .service-card .service-desc { font-size: 14.5px !important; line-height: 1.8 !important; margin-bottom: 12px !important; word-break: auto-phrase; }
  #services .service-card .service-tags { gap: 6px !important; margin-bottom: 14px !important; }
  #services .service-card .service-tags li { font-size: 11.5px !important; padding: 4px 9px !important; }
  /* 下: 料金とボタン */
  #services .service-card .service-price { margin-top: auto !important; padding-top: 12px !important; margin-bottom: 10px !important; border-top: 1px dashed #e3e7ef; font-size: 16px !important; }
  #services .service-card .service-card-links { margin-bottom: 18px !important; }
  #services .service-card .service-card-link { background: var(--lab-ink) !important; border-color: var(--lab-ink) !important; color: #fff !important; justify-content: space-between; padding: 12px 14px !important; }
  #services .service-card .service-card-link strong, #services .service-card .service-card-link .service-card-link-arrow { color: #fff !important; }
  #services .services-swipe-hint { font-size: 12px !important; color: #6b7280 !important; }
}
@media (max-width: 760px) {
  #services .service-card .service-brand { display: none !important; }
  #services .service-card .service-voice { padding-right: 44px !important; }
  #services .service-card .service-card-meta { top: 12px; right: 14px; }
  #services .service-card .service-num { display: inline-block !important; font: 800 13px/1 var(--font-en-display, sans-serif) !important; color: var(--svc-ink) !important; opacity: .6; }
}
/* ===== エージェント紹介（スマホ）: 横長カードを縦に5枚並べてコンパクトに ===== */
@media (max-width: 760px) {
  .team-heading { font-size: clamp(20px, 6.2vw, 26px) !important; }
  .team-heading-block { padding: 18px 14px !important; margin-bottom: 14px !important; }
  .team-heading-lead { font-size: 13.5px !important; line-height: 1.7 !important; word-break: auto-phrase; }
  .team-grid { display: grid !important; grid-template-columns: 1fr !important; gap: 10px !important; overflow: visible !important; padding: 0 !important; }
  .team-grid .team-member { display: grid !important; grid-template-columns: 104px 1fr; align-items: center; gap: 0 14px;
    width: auto !important; min-width: 0 !important; flex: none !important; margin: 0 !important; padding: 10px 12px 10px 10px !important;
    border-radius: 18px !important; background: rgba(255,255,255,.88) !important; border: 1px solid rgba(14,116,144,.16) !important;
    box-shadow: 0 10px 22px -18px rgba(14,116,144,.7) !important; transform: none !important; }
  .team-grid .team-member .character-slot { width: 104px !important; height: 130px !important; min-height: 0 !important; margin: 0 !important;
    padding: 0 !important; border-radius: 14px !important; overflow: hidden; aspect-ratio: auto !important; }
  .team-grid .team-member .character-slot img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: 50% 18% !important; }
  .team-grid .team-member .agent-tap-hint { right: 6px !important; bottom: 6px !important; padding: 3px 7px !important; font-size: 9.5px !important; }
  .team-grid .member-info { text-align: left !important; padding: 0 !important; margin: 0 !important; min-width: 0; }
  .team-grid .member-info > * { text-align: left !important; margin-left: 0 !important; margin-right: 0 !important; }
  .team-grid .member-num { display: inline-block !important; font-size: 10.5px !important; padding: 2px 8px !important; margin: 0 6px 0 0 !important; }
  .team-grid .member-name { display: inline !important; font-size: 19px !important; margin: 0 !important; }
  .team-grid .member-name::after, .team-grid .member-info::before, .team-grid .member-info::after { display: none !important; }
  .team-grid .member-pitch { margin: 6px 0 2px !important; font-size: 14px !important; line-height: 1.45 !important; font-weight: 800; }
  .team-grid .member-role { margin: 0 0 6px !important; font-size: 11.5px !important; opacity: .8; }
  .team-grid .member-tagline { display: none !important; }
  .team-grid .member-solve { margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; font-size: 12.5px !important; line-height: 1.6 !important; color: #334155 !important; word-break: auto-phrase; }
  .team-grid .member-keywords { display: none !important; }
}
@media (max-width: 760px) {
  .team-grid .team-member { grid-template-columns: 92px 1fr; gap: 0 12px; }
  .team-grid .team-member .character-slot { width: 92px !important; height: 116px !important; }
  .team-grid .member-pitch { font-size: 13.5px !important; word-break: auto-phrase; }
  .team-grid .member-role { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px !important; }
  .team-grid .member-solve { font-size: 12.5px !important; }
}
/* ===== サービス（スマホ）: 横スワイプをやめ、縦に流れるコンパクトなカードに ===== */
@media (max-width: 760px) {
  #services .services-swipe-hint { display: none !important; }
  #services .services-grid { display: grid !important; grid-template-columns: 1fr !important; overflow: visible !important; gap: 12px !important;
    padding: 0 !important; scroll-snap-type: none !important; }
  #services .services-grid .service-card { flex: none !important; width: auto !important; }
  #services .service-card .service-voice { min-height: 0 !important; padding: 13px 44px 12px 46px !important; font-size: 15px !important; }
  #services .service-card .service-voice::before { top: 13px !important; left: 14px !important; }
  #services .service-card .service-card-meta { top: 14px !important; }
  #services .service-card > *:not(.service-voice):not(.service-card-meta) { margin-left: 16px !important; margin-right: 16px !important; }
  #services .service-card .service-title { margin-top: 12px !important; margin-bottom: 4px !important; font-size: 18px !important; }
  #services .service-card .service-desc { font-size: 13.5px !important; line-height: 1.7 !important; margin-bottom: 10px !important; }
  #services .service-card .service-tags { display: none !important; }
  /* 料金とボタンを1行に */
  #services .service-card .service-price { margin: 0 !important; padding: 10px 0 0 !important; border-top: 1px dashed #e3e7ef; font-size: 15px !important; }
  #services .service-card .service-card-links { margin: 8px 16px 14px !important; }
  #services .service-card .service-card-link { padding: 11px 14px !important; min-height: 44px; }
  #services .service-card .service-card-link strong { font-size: 14px !important; }
}
/* サービスカードの左右に余白を */
@media (max-width: 760px) {
  #services .services-grid { margin: 0 !important; padding: 0 2px !important; width: auto !important; }
  #services .services-grid .service-card { max-width: 100% !important; }
}
/* 5つのLABの目次（スマホ）: 横スワイプをやめ2列で全部見せる */
@media (max-width: 760px) {
  .labs-index { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important;
    overflow: visible !important; margin: 0 0 20px !important; padding: 0 !important; }
  .labs-index a { min-width: 0 !important; padding: 12px 12px 12px 14px !important; border-radius: 14px !important; }
  .labs-index a:last-child { grid-column: 1 / -1; }
  .labs-index a::before { width: 70px !important; height: 70px !important; right: -22px !important; top: -22px !important; }
  .labs-index a::after { width: 22px !important; height: 22px !important; right: 10px !important; bottom: 10px !important; font-size: 12px !important; }
  .labs-index b { font-size: 14px !important; letter-spacing: .02em; }
  .labs-index small { margin: 3px 0 4px !important; font-size: 13px !important; }
  .labs-index em { font-size: 11.5px !important; padding-right: 26px !important; white-space: nowrap; }
}
/* 各LABカード（スマホ）: 画像を横長の帯に、特長は帯の下に1列で */
@media (max-width: 760px) {
  .lab-card { padding: 14px 14px 16px !important; gap: 12px !important; }
  .lab-body { padding-top: 0 !important; }
  .lab-pain { font-size: 13.5px !important; padding: 8px 12px 8px 36px !important; margin: 0 0 10px !important; }
  .lab-pain::before { left: 10px !important; width: 18px !important; height: 18px !important; font-size: 11px !important; line-height: 18px !important; }
  .lab-catch { font-size: 23px !important; line-height: 1.35 !important; margin: 0 0 8px !important; }
  .lab-lead { font-size: 14px !important; line-height: 1.75 !important; margin-bottom: 12px !important; }
  .lab-points li { padding: 10px 0 !important; }
  .lab-points b { font-size: 14px !important; }
  .lab-points span { font-size: 13px !important; line-height: 1.65 !important; }
  .lab-foot { padding: 14px !important; gap: 10px !important; }
  .lab-price strong { font-size: 22px !important; }
  .lab-btn { padding: 14px 16px !important; font-size: 14.5px !important; }
}
.lab-catch .lc-a, .lab-catch mark { white-space: nowrap; }
.lab-catch .lc-a { display: inline-block; }

/* 各LABカードの説明（スマホ）: コンパクトに */
@media (max-width: 760px) {
  .lab-lead { font-size: 13.5px !important; line-height: 1.7 !important; color: #334155 !important; margin-bottom: 12px !important; }
  .lab-points { display: grid !important; gap: 6px !important; border: 0 !important; margin: 0 0 14px !important; }
  .lab-points li, .lab-points li:first-child { display: grid !important; grid-template-columns: 28px 1fr; column-gap: 10px; align-items: start;
    padding: 10px 12px !important; border: 0 !important; border-radius: 12px !important; background: var(--lab-soft) !important; }
  .lab-points li + li { border-top: 0 !important; }
  .lab-points i { grid-row: span 2; width: 30px !important; height: 30px !important; margin: 0 !important; background: #fff !important; }
  .lab-points i svg { width: 15px !important; height: 15px !important; }
  .lab-points b { display: block !important; font-size: 16px !important; margin: 0 0 3px !important; line-height: 1.35 !important; letter-spacing: .02em; }
  .lab-points span { margin: 0 !important; font-size: 12px !important; line-height: 1.6 !important; color: #475569 !important; }
  .lab-points em { grid-column: 2; font-size: 14px !important; margin: 0 0 2px !important; }
  .lab-points .is-pick { outline: 2px solid var(--lab-c); }
}
@media (max-width: 760px) {
  /* JOIN LABのプラン（アイコンなし）: 名前と価格を1行、説明を下に */
  .lab-points li:not(:has(i)) { grid-template-columns: 1fr auto !important; align-items: baseline; }
  .lab-points li:not(:has(i)) b { grid-column: 1; grid-row: 1; display: flex !important; align-items: center; gap: 6px; }
  .lab-points li:not(:has(i)) em { grid-column: 2 !important; grid-row: 1; margin: 0 !important; }
  .lab-points li:not(:has(i)) span { grid-column: 1 / -1; }
  .lab-points li:not(:has(i)) .pick-tag { margin: 0 !important; }
  /* 比較（いまのやり方 → JOIN LAB） */
  .lab-compare { gap: 6px !important; }
  .lab-compare div { padding: 10px 8px !important; }
  .lab-compare small { font-size: 11px !important; }
  .lab-compare b { font-size: 15px !important; }
  .lab-compare span { font-size: 11px !important; line-height: 1.5; display: block; }
}
/* メニュー内の5つのLAB（スマホ）: 1列のコンパクトなリストに */
@media (max-width: 1023px) {
  .menu-production .menu-service-grid, .menu-production .menu-service-grid--2 { display: grid !important; grid-template-columns: 1fr !important; gap: 6px !important; }
  .menu-production .menu-drawer-section-label { margin: 12px 0 6px !important; font-size: 11px !important; letter-spacing: .12em; opacity: .7; }
  .menu-production .menu-service-card { position: relative; display: grid !important; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px;
    padding: 11px 36px 11px 14px !important; border-radius: 12px !important; min-height: 0 !important; border-top: 0 !important; border-left: 3px solid currentColor !important; }
  .menu-production .menu-service-card::after { content: "→"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); opacity: .6; color: #fff; }
  .menu-production .menu-service-card-name { grid-column: 1; grid-row: 1; margin: 0 !important; font-size: 15.5px !important; color: #fff !important; white-space: nowrap; }
  .menu-production .menu-service-card-lab { grid-column: 2; grid-row: 1; margin: 0 !important; font-size: 10.5px !important; }
  .menu-production .menu-service-card-desc { grid-column: 1 / -1; grid-row: 2; margin: 3px 0 0 !important; font-size: 12px !important; line-height: 1.5 !important; color: rgba(255,255,255,.65) !important; }
}
/* LABのキャッチ（スマホ）: 1行目は小さく、強調を大きく */
@media (max-width: 760px) {
  .lab-catch { font-size: 26px !important; line-height: 1.3 !important; }
  .lab-catch .lc-a { display: block; font-size: 17px; margin-bottom: 4px; color: #334155; }
}
@media (max-width: 1023px) {
  .menu-production .menu-service-card { border-left: 0 !important; overflow: hidden; }
  .menu-production .menu-service-card::before { left: 0 !important; right: auto !important; top: 0 !important; bottom: 0 !important; width: 3px !important; height: auto !important; border-radius: 0 !important; }
}
/* 文の区切りで改行（ib=まとまりで折り返す） */
.ib { display: inline-block; }
@media (max-width: 760px) {
  .pj-desc { font-size: 14.5px !important; line-height: 1.85 !important; }
  .qa-desc { font-size: 14.5px !important; line-height: 1.8 !important; }
}
/* セクション間の隙間を詰める（スマホ） */
@media (max-width: 760px) {
  #services { padding-bottom: 32px !important; }
  #labs { padding-top: 40px !important; padding-bottom: 48px !important; }
  #faq.qa { padding-top: 48px !important; padding-bottom: 48px !important; }
}
/* お問い合わせ周り（スマホ） */
@media (max-width: 760px) {
  #contact .contact-intro { grid-template-columns: 76px 1fr !important; gap: 10px !important; }
  #contact .contact-intro .character-slot { width: 76px !important; height: 76px !important; }
  #contact .contact-intro .speech-bubble { padding: 12px 14px !important; }
  #contact .contact-intro .speech-character-name { font-size: 11px !important; padding: 3px 10px !important; margin-bottom: 6px !important; }
  #contact .contact-intro .speech-bubble p { font-size: 13.5px !important; line-height: 1.7 !important; }
  #contact .rb-lead { display: block; color: #e11d74; font-weight: 800; }
  /* 受付範囲: 白いカードでくっきり */
  .form-scope { background: #fff !important; border: 0 !important; padding: 4px 14px !important; box-shadow: 0 12px 24px -16px rgba(0,0,0,.5); }
  .form-scope p { color: #1f2335 !important; font-size: 13.5px !important; padding: 10px 0 !important; gap: 10px !important; }
  .form-scope p + p { border-top: 1px dashed #e3e7ef !important; }
  .form-scope .fs-ok b { color: #059669 !important; }
  .form-scope .fs-ng b { color: #e11d48 !important; }
  .form-scope .fs-ico { width: 22px !important; height: 22px !important; font-size: 12px !important; }
  /* 電話の注意 */
  .contact-phone-note { font-size: 12.5px !important; line-height: 1.75 !important; color: rgba(255,255,255,.75) !important; text-align: center; }
  .contact-phone-note b { display: block; font-size: 14px; color: #fff; margin-bottom: 2px; }
}
/* フッターのLAB名を各LABの色に */
.footer-links a[href*="movielab"] small { color: #38bdf8 !important; }
.footer-links a[href*="postlab"] small { color: #fb7185 !important; }
.footer-links a[href*="joinlab"] small { color: #34d399 !important; }
.footer-links a[href="/web/"] small { color: #fbbf24 !important; }
.footer-links a[href="/app/"] small { color: #a78bfa !important; }
.footer-links small { font-weight: 700; letter-spacing: .04em; }
/* お問い合わせのレック: 背景なしで大きく */
@media (max-width: 760px) {
  #contact .contact-intro { grid-template-columns: 112px 1fr !important; gap: 6px !important; align-items: center !important; }
  #contact .contact-intro .character-slot { width: 112px !important; height: 128px !important; background: none !important; border: 0 !important;
    box-shadow: none !important; border-radius: 0 !important; padding: 0 !important; overflow: visible !important; }
  #contact .contact-intro .character-slot::before, #contact .contact-intro .character-slot::after { display: none !important; }
  #contact .contact-intro .character-slot img { width: 100% !important; height: 100% !important; object-fit: contain !important; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
  #contact .contact-intro .speech-bubble { padding: 12px 13px !important; }
  #contact .contact-intro .speech-bubble p { font-size: 13px !important; line-height: 1.65 !important; }
  #contact .rb-lead { font-size: 13.5px; margin-bottom: 2px; }
}
@media (max-width: 760px) {
  section#contact .contact-intro .character-slot.character-slot--rec.has-image { background: transparent !important; background-image: none !important; box-shadow: none !important; border: 0 !important; }
  #contact .rb-lead { white-space: nowrap; font-size: 12.5px; letter-spacing: -.01em; }
}
@media (max-width: 760px) {
  #contact .contact-intro .character-slot { height: 112px !important; }
  #contact .contact-intro .character-slot img { transform: scale(1.05); }
}
/* ===== iPhone確認後の調整（2026-10-17） ===== */
@media (max-width: 760px) {
  /* 画像2: Qの文がはみ出す（iPhoneで語ごとの要素がflexの子になり折り返さない）→ ブロックに */
  #services .service-card .service-voice { display: block !important; min-height: 0 !important; }
  #services .service-card .service-voice .pw { white-space: normal; }

  /* 画像1: こんなご相談を少し大きく・読みやすく */
  #services .svc-asks-list a { padding: 13px 12px 13px 12px !important; }
  #services .svc-asks-list .ask-q { font-size: 14.5px !important; line-height: 1.5 !important; color: #0f1222; }
  #services .svc-asks-list .ask-q::before { width: 20px !important; height: 20px !important; font-size: 11px !important; }
  #services .svc-asks-list .ask-to { font-size: 11.5px !important; padding: 5px 9px !important; }
  #services .svc-asks-note b { font-size: 15px !important; }
  #services .svc-asks-note span { font-size: 13.5px !important; }

  /* 画像3: 相談の流れを目立たせる（番号を大きく、横並びのカード） */
  .qa-steps { gap: 10px !important; counter-reset: none; }
  .qa-steps li { display: grid !important; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: center;
    padding: 16px 16px !important; border-radius: 16px !important; background: #fff !important;
    border: 1.5px solid rgba(139, 92, 246, .22) !important; box-shadow: 0 10px 22px -18px rgba(109, 40, 217, .7); }
  .qa-steps li span { grid-row: span 2; display: grid !important; place-items: center; width: 52px; height: 52px; margin: 0 !important;
    border-radius: 14px; background: linear-gradient(135deg, #0ea5e9, #8b5cf6); color: #fff !important;
    font-size: 0 !important; letter-spacing: 0 !important; }
  .qa-steps li span::first-letter { font-size: 0; }
  .qa-steps li b { font-size: 18px !important; margin: 0 0 3px !important; color: #0f1222 !important; }
  .qa-steps li small { font-size: 14.5px !important; line-height: 1.65 !important; color: #2a2f45 !important; word-break: auto-phrase; }
  .qa-steps li:not(:last-child)::after { display: none !important; }
  .qa-item summary { font-size: 16px !important; line-height: 1.5 !important; }
}
@media (max-width: 760px) {
  .qa-steps li span::after { content: attr(data-n); font: 800 22px/1 var(--font-en-display, sans-serif); letter-spacing: 0; }
  .qa-steps li span::before { content: "STEP"; position: absolute; font-size: 0; }
}
/* 相談の流れ（スマホ）: 縦のタイムラインでスタイリッシュに */
@media (max-width: 760px) {
  .qa-steps { position: relative; gap: 0 !important; margin: 0 0 32px !important; padding: 4px 0 0 !important; }
  .qa-steps::before { content: ""; position: absolute; left: 21px; top: 26px; bottom: 30px; width: 2px;
    background: linear-gradient(180deg, #0ea5e9, #8b5cf6 60%, #f43f5e); opacity: .45; }
  .qa-steps li { grid-template-columns: 44px 1fr !important; column-gap: 16px !important; align-items: start !important;
    padding: 0 0 22px !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
  .qa-steps li:last-child { padding-bottom: 0 !important; }
  .qa-steps li span { position: relative; width: 44px !important; height: 44px !important; border-radius: 50% !important;
    background: #fff !important; border: 2px solid transparent;
    background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, #0ea5e9, #8b5cf6) !important;
    background-origin: border-box; background-clip: padding-box, border-box; box-shadow: 0 6px 16px -8px rgba(109, 40, 217, .6); }
  .qa-steps li span::after { font-size: 15px !important; background: linear-gradient(135deg, #0ea5e9, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
  .qa-steps li:first-child span { background-image: linear-gradient(135deg, #0ea5e9, #8b5cf6), linear-gradient(135deg, #0ea5e9, #8b5cf6) !important; }
  .qa-steps li:first-child span::after { -webkit-text-fill-color: #fff; color: #fff; background: none; }
  .qa-steps li b { padding-top: 2px; font-size: 17px !important; letter-spacing: .02em; }
  .qa-steps li small { font-size: 14px !important; color: #475569 !important; }
}
@media (max-width: 760px) { .qa-steps { padding-left: 4px !important; } .qa-steps::before { left: 25px; bottom: 48px; } }

/* H1 の頭の地域・業種（小さく） */
.hero-h1-eyebrow { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: rgba(255,255,255,.88); text-shadow: 0 1px 8px rgba(0,0,0,.35); -webkit-text-fill-color: currentColor; }
@media (min-width: 761px) { .hero-h1-eyebrow { font-size: 15px; color: #1f2335; text-shadow: none; } }

/* ===== 表示速度・アクセシビリティ（2026-10-22） ===== */
/* レック画像: 縦横比を保つ */
.rec-badge-side, .rec-on-headline, .rec-orbit-sprite { object-fit: contain; }
/* こんなご相談のサービス名: 文字色を濃くして読みやすく */
#services .svc-asks-list a { --ask-c: #075985; }
#services .svc-asks-list a[data-lab="post"] { --ask-c: #9f1239; }
#services .svc-asks-list a[data-lab="join"] { --ask-c: #065f46; }
#services .svc-asks-list a[data-lab="web"]  { --ask-c: #854d0e; }
#services .svc-asks-list a[data-lab="app"]  { --ask-c: #5b21b6; }

/* --- ABOUT: リード文を少し小さく / 沿革タイムラインをコンパクトに --- */
@media (max-width: 760px) {
  .about__lead { font-size: 15px !important; line-height: 1.75 !important; }
  .about__tl-item { padding-bottom: 16px !important; }
  .about__tl-card { padding: 12px 14px !important; }
  .about__tl-era { font-size: 12px !important; line-height: 1.4 !important; }
  .about__tl-heading { font-size: 16px !important; margin: 2px 0 6px !important; }
  .about__tl-text { font-size: 14px !important; line-height: 1.6 !important; margin: 0 !important; }
}

/* --- ABOUT: 撮る・届ける・加速する をコンパクトに、色で目立たせる --- */
@media (max-width: 760px) {
  .about__pillars-grid { gap: 10px !important; margin-top: 20px !important; }
  .about__pillar {
    --pillar-c: #22d3ee;
    display: grid !important; grid-template-columns: 78px 1fr; column-gap: 12px; align-items: center;
    padding: 12px 14px !important;
    border-left: 4px solid var(--pillar-c) !important;
    box-shadow: inset 60px 0 60px -40px color-mix(in srgb, var(--pillar-c) 22%, transparent);
  }
  .about__pillar:nth-child(2) { --pillar-c: #f472b6; }
  .about__pillar:nth-child(3) { --pillar-c: #a78bfa; }
  .about__pillar-num {
    grid-row: 1 / span 2; align-self: center; justify-self: stretch; text-align: center;
    padding: 8px 4px !important; font-size: 13px !important; font-weight: 800 !important;
    color: #0a1024 !important; background: var(--pillar-c) !important; border: 0 !important; border-radius: 8px;
    box-shadow: 0 0 14px color-mix(in srgb, var(--pillar-c) 55%, transparent) !important; text-shadow: none !important;
  }
  .about__pillar-heading { margin: 0 0 2px !important; font-size: 16px !important; color: var(--pillar-c) !important; }
  .about__pillar-text { margin: 0 !important; font-size: 13px !important; line-height: 1.55 !important; }
}

/* --- LAB: 料金とボタンをコンパクトに（ボタン2つを横並び） --- */
@media (max-width: 760px) {
  .lab-card .lab-foot, .lab-card[data-lab="web"] .lab-foot { padding: 10px 12px !important; gap: 8px !important; }
  .lab-card .lab-price { gap: 0 8px !important; }
  .lab-card .lab-price span, .lab-card .lab-price small { font-size: 12px !important; }
  .lab-card .lab-price strong { font-size: 19px !important; line-height: 1.25 !important; }
  .lab-card .lab-foot .lab-actions, .lab-card[data-lab="web"] .lab-foot .lab-actions { display: grid !important; grid-template-columns: 1.2fr 1fr !important; gap: 8px !important; flex: 1 1 100% !important; width: 100% !important; }
  .lab-card .lab-btn { padding: 10px 6px !important; font-size: 13px !important; min-height: 44px; white-space: nowrap; justify-content: center; box-shadow: 0 8px 16px -10px var(--lab-c) !important; }
  .lab-card .lab-btn--ghost { box-shadow: none !important; }
}

/* --- フッター: スマホでコンパクトに（リンク2列・余白を詰める） --- */
@media (max-width: 760px) {
  .site-footer { padding: 28px 0 20px !important; }
  .site-footer .footer-main { grid-template-columns: 1fr 1fr !important; gap: 20px 14px !important; margin: 0 0 20px !important; }
  .site-footer .footer-brand { grid-column: 1 / -1; display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; align-items: center; }
  .site-footer .footer-logo { width: 52px !important; height: 52px !important; margin: 0 !important; grid-column: 1; grid-row: 1 / span 2; }
  .site-footer .footer-tagline { margin: 0 !important; font-size: 14px !important; }
  .site-footer .footer-tagline { grid-column: 2; grid-row: 1; align-self: end; }
  .site-footer .footer-social { grid-column: 2; grid-row: 2; align-self: start; margin-top: 4px; }
  .site-footer .footer-address { grid-column: 1 / -1; margin: 12px 0 0 !important; font-size: 13px !important; line-height: 1.6 !important; }
  .site-footer .footer-heading { margin: 0 0 8px !important; font-size: 11px !important; }
  .site-footer .footer-links li { margin: 0 !important; }
  .site-footer .footer-links a { display: block; padding: 6px 0 !important; font-size: 13.5px !important; line-height: 1.4 !important; }
  .site-footer .footer-links small { display: block; margin: 0 !important; font-size: 11px !important; }
  .site-footer .footer-legal { padding: 12px 0 4px !important; gap: 4px 8px !important; flex-wrap: wrap; justify-content: center; font-size: 12px !important; }
  .site-footer .footer-bottom { padding: 12px 0 0 !important; text-align: center; }
  .site-footer .footer-bottom p { font-size: 11px !important; }
}

/* --- メニュー: スマホでコンパクトに（主要リンク2列・LABカードを詰める） --- */
@media (max-width: 760px) {
  .menu-drawer-panel { padding: 10px 16px 10px !important; }
  .menu-drawer-header { margin: 0 0 8px !important; padding: 0 0 8px !important; }
  .menu-links--primary { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 6px; }
  .menu-links--primary li { border: 0 !important; }
  .menu-links--primary a { min-width: 0; padding: 9px 2px !important; font-size: 14px !important; gap: 5px !important; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .menu-links--primary .menu-link-text { font-size: 14px !important; white-space: nowrap; min-width: 0; }
  .menu-links--primary a::before { font-size: 10px !important; min-width: 0 !important; width: auto !important; }
  .menu-drawer-nav { overflow-x: hidden !important; }
  .menu-divider { margin: 8px 0 10px !important; }
  .menu-production { margin: 0 !important; }
  .menu-production-head { padding: 10px 12px !important; margin: 0 0 8px !important; }
  .menu-production-title { font-size: 15px !important; margin: 0 0 2px !important; }
  .menu-production-lead { font-size: 12px !important; line-height: 1.5 !important; }
  .menu-drawer-section-label { margin: 8px 0 4px !important; }
  .menu-service-grid { gap: 5px !important; margin: 0 0 8px !important; }
  .menu-service-card { padding: 8px 32px 8px 12px !important; }
  .menu-service-card-name { font-size: 14.5px !important; }
  .menu-service-card-desc { margin: 1px 0 0 !important; font-size: 11.5px !important; }
}

/* --- ヒーロー: 見出しを大きく・ネオン調に / SINCE 1975 を会社紹介の行の上へ --- */
@media (max-width: 760px) {
  .hero-badge-row .hero-badge-50th { display: none !important; }
  .hero-headline .hero-h1-eyebrow { margin-bottom: 6px !important; font-size: 12.5px !important; }
  .hero-headline .hero-h1-eyebrow::before {
    content: "SINCE 1975"; display: table; margin: 0 0 8px; padding: 4px 12px;
    font: 700 12px/1.4 "Space Grotesk", sans-serif; letter-spacing: .16em; color: #fff;
    -webkit-text-fill-color: #fff; text-shadow: none;
    background: linear-gradient(90deg, #0891b2, #7c3aed); border-radius: 999px;
    box-shadow: 0 0 14px rgba(34, 211, 238, .45);
  }
  .hero-headline .line-1 { font-size: 32px !important; }
  .hero-headline .line-1 .number-accent { font-size: 92px !important; line-height: .85 !important; letter-spacing: -.04em !important;
    text-shadow: 0 0 18px rgba(255, 79, 163, .65), 0 0 42px rgba(255, 79, 163, .35) !important; }
  .hero-headline .line-1 .unit-jp { font-size: 24px !important; }
  .hero-headline .line-2 { font-size: 44px !important; }
  .hero-badge-row .rec-intro { flex: 0 1 auto !important; width: auto !important; }
  .hero-headline .line-2 .hero-emphasis { font-size: 44px !important; }
  .hero-headline .line-2 .ai-accent { font-size: 54px !important; text-shadow: 0 0 16px rgba(34, 211, 238, .55) !important; }
  .hero-headline .line-2 .kasoku-accent { text-shadow: 0 0 18px rgba(255, 79, 163, .6) !important; }
  .hero-subtitle-inner {
    border: 0 !important; border-left: 3px solid #22d3ee !important; border-radius: 4px 12px 12px 4px !important;
    background: linear-gradient(90deg, rgba(8, 145, 178, .38), rgba(10, 16, 36, .55)) !important;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    font-size: 15.5px !important; font-weight: 700 !important;
  }
}

/* --- レックのメッセージを吹き出しに（左のレックへ向けたしっぽ） --- */
@media (max-width: 760px) {
  .services-intro { align-items: center !important; column-gap: 14px !important; }
  .services-intro .speech-bubble--from-left { overflow: visible !important; }
  .services-intro .speech-bubble--from-left::before,
  .services-intro .speech-bubble--from-left::after {
    content: "" !important; display: block !important; position: absolute !important; top: 50% !important; transform: translateY(-50%) !important;
    width: 0 !important; height: 0 !important; border-style: solid !important;
  }
  .services-intro .speech-bubble--from-left::before { left: -13px !important; border-width: 10px 13px 10px 0 !important; border-color: transparent rgb(248, 113, 113) transparent transparent !important; }
  .services-intro .speech-bubble--from-left::after { left: -9px !important; border-width: 8px 10px 8px 0 !important; border-color: transparent #fff transparent transparent !important; }
}

/* --- ABOUT → AIエージェントの間の空きを詰める --- */
@media (max-width: 760px) {
  .about { padding-bottom: 28px !important; }
  #character-system { padding-top: 12px !important; }
  #character-system .about-team { margin-top: 0 !important; padding-top: 12px !important; }
  #character-system .team-heading-block { padding-top: 6px !important; }
}

/* --- ヒーロー: レックと吹き出しを右寄せ --- */
@media (max-width: 760px) {
  .hero-badge-row { justify-content: flex-end !important; position: relative; z-index: 2; margin-bottom: -22px !important; }
}
@media (max-width: 760px) {
  .about__cta { margin-top: 20px !important; }
  .about__cta a, .about__cta .btn { font-size: 15px !important; white-space: nowrap; padding: 10px 12px !important; }
}

/* --- お問い合わせ: レックのメッセージも吹き出しに（左のレックへ向けたしっぽ） --- */
@media (max-width: 760px) {
  #contact .contact-intro { grid-template-columns: 100px minmax(0, 1fr) !important; gap: 14px !important; }
  #contact .contact-intro .character-slot { width: 100px !important; height: 100px !important; }
  #contact .contact-intro .speech-bubble--from-left { overflow: visible !important; }
  #contact .contact-intro .speech-bubble--from-left::before,
  #contact .contact-intro .speech-bubble--from-left::after {
    content: "" !important; display: block !important; position: absolute !important; top: 50% !important; transform: translateY(-50%) !important;
    width: 0 !important; height: 0 !important; border-style: solid !important;
  }
  #contact .contact-intro .speech-bubble--from-left::before { left: -13px !important; border-width: 10px 13px 10px 0 !important; border-color: transparent rgb(248, 170, 170) transparent transparent !important; }
  #contact .contact-intro .speech-bubble--from-left::after { left: -9px !important; border-width: 8px 10px 8px 0 !important; border-color: transparent #fff transparent transparent !important; }
}

/* ===== お問い合わせ: 受付できる/できないを、緑と赤のカードで一目で分かるように ===== */
.form-scope { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px !important; max-width: 680px; margin: 0 auto 18px !important;
  padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
.form-scope .fs-ok, .form-scope .fs-ng { padding: 12px 14px; border-radius: 14px; border: 2px solid; background: #fff; }
.form-scope .fs-ok { border-color: #10b981; background: #ecfdf5; }
.form-scope .fs-ng { border-color: #f43f5e; background: #fff1f2; }
.form-scope p.fs-head { display: flex !important; align-items: center; gap: 8px !important; margin: 0 0 8px !important; padding: 0 !important; border: 0 !important; }
.form-scope p.fs-head b { display: inline !important; font-size: 15px !important; font-weight: 900 !important; letter-spacing: .02em; }
.form-scope .fs-ok p.fs-head b { color: #047857 !important; }
.form-scope .fs-ng p.fs-head b { color: #be123c !important; }
.form-scope .fs-ico { width: 24px !important; height: 24px !important; margin: 0 !important; font-size: 13px !important; }
.form-scope p.fs-body { display: block !important; margin: 0 !important; padding: 0 !important; border: 0 !important; font-size: 13px !important; line-height: 1.6 !important; color: #1f2335 !important; }
.form-scope .fs-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.form-scope .fs-tags span { padding: 3px 9px; border-radius: 999px; background: #fff; border: 1px solid #a7f3d0; font-size: 13px; font-weight: 800; color: #065f46; }
.form-scope .fs-ng strong { display: block; margin-bottom: 2px; font-size: 14.5px; font-weight: 900; color: #9f1239; text-decoration: line-through; text-decoration-color: rgba(244, 63, 94, .55); text-decoration-thickness: 2px; }
@media (max-width: 760px) {
  .form-scope { grid-template-columns: 1fr; gap: 8px !important; }
}

/* ===== お問い合わせフォーム: スマホでコンパクトに（入力欄の文字は16pxのまま＝iPhoneで拡大されない） ===== */
@media (max-width: 760px) {
  #contact .contact-form { padding: 18px 14px !important; }
  #contact .contact-form .form-row { gap: 0 !important; }
  #contact .contact-form .form-group { margin: 0 0 10px !important; }
  #contact .contact-form .form-group > label, #contact .contact-form .group-label { margin: 0 0 4px !important; font-size: 13.5px !important; }
  #contact .contact-form .required, #contact .contact-form .optional { padding: 2px 7px !important; font-size: 11px !important; margin-left: 6px !important; }
  #contact .contact-form input[type="text"], #contact .contact-form input[type="email"], #contact .contact-form input[type="tel"] { padding: 10px 12px !important; }
  #contact .contact-form textarea { padding: 10px 12px !important; min-height: 112px !important; height: 112px; }
  #contact .contact-form .checkbox-group { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px !important; }
  #contact .contact-form .check-label { margin: 0 !important; padding: 7px 10px !important; font-size: 13px !important; min-height: 38px !important; gap: 8px !important; }
  #contact .contact-form .check-label input { width: 18px !important; height: 18px !important; min-height: 0 !important; flex: none; }
  #contact .contact-form .form-consent { margin: 4px 0 10px !important; padding: 12px 14px !important; }
  #contact .contact-form .form-consent-title { margin: 0 0 2px !important; font-size: 13.5px !important; }
  #contact .contact-form .form-consent-text { margin: 0 0 8px !important; font-size: 12.5px !important; }
  #contact .contact-form .form-confirm-note { margin: 0 0 8px !important; font-size: 12px !important; }
  #contact .contact-form .form-turnstile { margin: 0 0 10px !important; }
  #contact .contact-form .btn-submit { padding: 15px 24px !important; margin-top: 4px !important; }
}

/* ===== フッター: インスタを目立たせる（公式カラーのグラデーションのボタン） ===== */
.site-footer .footer-social a.footer-insta { display: inline-flex !important; align-items: center; gap: 8px; width: auto !important; height: auto !important;
  padding: 8px 14px 8px 10px !important; border-radius: 999px !important; color: #fff !important; font-size: 13px; font-weight: 800; letter-spacing: .02em;
  background: linear-gradient(45deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%) !important;
  box-shadow: 0 6px 18px -6px rgba(214, 41, 118, .7); border: 0 !important; }
.site-footer .footer-social a.footer-insta svg { width: 20px; height: 20px; }
.site-footer .footer-social a.footer-insta:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -6px rgba(214, 41, 118, .85); }

/* ===== フッター下部: プライバシーポリシー等を区切り線なしで均等に並べる ===== */
@media (max-width: 760px) {
  .site-footer .footer-legal { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 8px 18px !important; }
  .site-footer .footer-legal > span[aria-hidden="true"] { display: none !important; }
  .site-footer .footer-legal a { font-size: 12px !important; letter-spacing: 0 !important; white-space: nowrap; }
  /* 会社概要は上の SANRECO 欄にもあるので、ここでは省いて2つを1行に */
  .site-footer .footer-legal a[href="/company.html"] { display: none !important; }
}

/* ===== PC: ヒーローの見出しと説明文を大きく ===== */
@media (min-width: 1024px) {
  .hero-headline .line-1 { font-size: clamp(44px, 4.3vw, 64px) !important; }
  .hero-headline .line-1 .number-accent { font-size: clamp(84px, 8vw, 124px) !important; line-height: .9 !important; }
  .hero-headline .line-1 .unit-jp { font-size: clamp(30px, 2.9vw, 44px) !important; }
  .hero-headline .line-2, .hero-headline .line-2 .hero-emphasis { font-size: clamp(54px, 5.3vw, 80px) !important; }
  .hero-headline .line-2 .ai-accent { font-size: clamp(64px, 6.3vw, 96px) !important; }
  .hero-subtitle, .hero-subtitle-inner { font-size: clamp(20px, 1.6vw, 25px) !important; line-height: 1.75 !important; }
}
/* PC でも SINCE 1975 を会社紹介の行のすぐ上へ（スマホと同じ配置） */
@media (min-width: 761px) {
  .hero-badge-row .hero-badge-50th { display: none !important; }
  .hero-headline .hero-h1-eyebrow::before {
    content: "SINCE 1975"; display: table; margin: 0 0 10px; padding: 6px 16px;
    font: 700 14px/1.4 "Space Grotesk", sans-serif; letter-spacing: .18em; color: #fff;
    -webkit-text-fill-color: #fff; text-shadow: none;
    background: linear-gradient(90deg, #0891b2, #7c3aed); border-radius: 999px;
    box-shadow: 0 0 16px rgba(34, 211, 238, .45);
  }
}

/* ===== PC: ABOUT → AIエージェントの間の空き（約290px）を詰める ===== */
@media (min-width: 761px) {
  .about { padding-bottom: 56px !important; }
  #character-system { padding-top: 32px !important; }
  #character-system .about-team { margin-top: 0 !important; }
}

/* ===== PC: お問い合わせフォームをコンパクトに（余白を詰め、サービスの選択肢は4列に） ===== */
@media (min-width: 761px) {
  #contact .contact-intro { margin-bottom: 28px !important; }
  #contact .form-scope { max-width: 720px !important; margin: 0 auto 16px !important; }
  #contact .contact-form { padding: 32px 36px !important; }
  #contact .contact-form .form-row { margin-bottom: 14px !important; gap: 16px !important; }
  #contact .contact-form .form-group { margin-bottom: 14px !important; }
  #contact .contact-form .form-row .form-group { margin-bottom: 0 !important; }
  #contact .contact-form .form-group > label, #contact .contact-form .group-label { margin-bottom: 6px !important; font-size: 14px !important; }
  #contact .contact-form input[type="text"], #contact .contact-form input[type="email"], #contact .contact-form input[type="tel"] { padding: 11px 14px !important; }
  #contact .contact-form textarea { padding: 11px 14px !important; min-height: 120px !important; height: 120px; }
  #contact .contact-form .checkbox-group { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
  #contact .contact-form .check-label { padding: 8px 12px !important; font-size: 14px !important; gap: 8px !important; line-height: 1.4 !important; }
  #contact .contact-form .check-label span { line-height: 1.4 !important; white-space: nowrap; }
  #contact .contact-form .check-label input { width: 18px !important; height: 18px !important; flex: none; }
  #contact .contact-form .form-consent { margin: 4px 0 12px !important; padding: 12px 16px !important; }
  #contact .contact-form .form-consent-title { margin-bottom: 2px !important; }
  #contact .contact-form .form-consent-text { margin-bottom: 6px !important; }
  #contact .contact-form .form-confirm-note { margin-bottom: 10px !important; }
  #contact .contact-form .form-turnstile { margin-bottom: 12px !important; }
  #contact .contact-form .btn-submit { padding: 16px 40px !important; }
}

/* ===== 個人情報の同意欄をコンパクトに: 見出しを省き、「同意する」を上・案内文を下に1行ずつ ===== */
#contact .contact-form .form-consent { display: flex !important; flex-direction: column-reverse; align-items: flex-start; gap: 4px;
  margin: 4px 0 10px !important; padding: 10px 14px !important; text-align: left !important; }
#contact .contact-form .form-consent-title { display: none !important; }
#contact .contact-form .form-consent-text { margin: 0 !important; white-space: nowrap; font-size: 12px !important; line-height: 1.5 !important; text-align: left !important; letter-spacing: 0 !important; }
#contact .contact-form .form-consent-text .ib { display: inline !important; }
#contact .contact-form .form-consent-check { display: flex !important; align-items: center; gap: 10px !important; margin: 0 !important; padding: 0 !important;
  justify-content: flex-start !important; font-size: 14.5px !important; }
#contact .contact-form .form-consent-check input { width: 20px !important; height: 20px !important; min-height: 0 !important; margin: 0 !important; flex: none; }

/* 下部ナビ: 「制作」は「メニュー」と同じ画面を開いていたので外し、4つで均等に並べる */
.mobile-bottom-nav { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

/* ===== サービス: 相談例の一覧の代わりに、サービス名だけの短い目次（押すと各カードへ） ===== */
#services .svc-toc { margin: 0 auto; }
#services .svc-toc-label { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 0 0 10px; font-size: 14px; font-weight: 900; letter-spacing: .06em; color: #1f2335; }
#services .svc-toc-label small { font-size: 11.5px; font-weight: 600; letter-spacing: 0; color: #64748b; }
#services .svc-toc ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
#services .svc-toc a { --c: #0369a1; display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 100%;
  padding: 10px 12px; border-radius: 12px; background: #fff; border: 1.5px solid color-mix(in srgb, var(--c) 28%, #fff);
  font-size: 14px; font-weight: 800; line-height: 1.3; color: var(--c); text-decoration: none; transition: background .2s, color .2s, transform .2s; }
#services .svc-toc a::after { content: "↓"; flex: none; font-weight: 900; opacity: .7; }
#services .svc-toc a:hover { background: var(--c); color: #fff; transform: translateY(-2px); }
#services .svc-toc a[data-lab="post"] { --c: #be123c; }
#services .svc-toc a[data-lab="join"] { --c: #047857; }
#services .svc-toc a[data-lab="web"]  { --c: #a16207; }
#services .svc-toc a[data-lab="app"]  { --c: #6d28d9; }
@media (max-width: 760px) {
  #services .svc-toc ul { grid-template-columns: 1fr 1fr; gap: 6px; }
  #services .svc-toc a { padding: 9px 10px; font-size: 13px; }
  #services .svc-toc-label { justify-content: flex-start; }
}

/* ===== 5つのLAB: 担当エージェントの顔・名前・LAB・料金の目次（旧 LABの色ボタン＋エージェント紹介を一本化） ===== */
#labs .labs-agents { margin: 0 0 clamp(28px, 4vw, 44px); }
#labs .labs-agents-label { margin: 0 0 10px; font-size: 14px; font-weight: 900; letter-spacing: .06em; color: #1f2335; }
#labs .labs-agents ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
#labs .labs-agents a { --g1: #0ea5e9; --g2: #0369a1; position: relative; display: flex; align-items: center; gap: 10px; height: 100%;
  padding: 12px 12px; border-radius: 16px; color: #fff; text-decoration: none; overflow: hidden;
  background: linear-gradient(135deg, var(--g1), var(--g2)); box-shadow: 0 12px 24px -16px var(--g2); transition: transform .2s, box-shadow .2s; }
#labs .labs-agents a::after { content: "↓"; position: absolute; right: 10px; bottom: 8px; display: grid; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; background: #fff; color: var(--g2); font-size: 12px; font-weight: 900; }
#labs .labs-agents a:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -16px var(--g2); }
#labs .labs-agents a[data-lab="post"] { --g1: #fb7185; --g2: #be123c; }
#labs .labs-agents a[data-lab="join"] { --g1: #34d399; --g2: #047857; }
#labs .labs-agents a[data-lab="web"]  { --g1: #f59e0b; --g2: #a16207; }
#labs .labs-agents a[data-lab="app"]  { --g1: #a78bfa; --g2: #6d28d9; }
#labs .labs-agents img { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; background: #fff;
  border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 4px 10px rgba(0, 0, 0, .18); }
#labs .labs-agents .la-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
#labs .labs-agents .la-text b { font-size: 17px; font-weight: 900; letter-spacing: .04em; }
#labs .labs-agents .la-lab { font: 700 11px/1.3 var(--font-en-display, "Space Grotesk", sans-serif); letter-spacing: .1em; opacity: .9; }
#labs .labs-agents .la-text small { margin-top: 2px; font-size: 12.5px; font-weight: 800; }
#labs .labs-agents .la-text em { font-style: normal; font-size: 12px; font-weight: 700; opacity: .95; }
@media (max-width: 1100px) and (min-width: 761px) { #labs .labs-agents ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  #labs .labs-agents ul { grid-template-columns: 1fr 1fr; gap: 8px; }
  #labs .labs-agents li:last-child { grid-column: 1 / -1; }
  #labs .labs-agents a { padding: 10px; gap: 8px; }
  #labs .labs-agents img { width: 46px; height: 46px; }
  #labs .labs-agents .la-text b { font-size: 15.5px; }
}

/* ヒーローの「5人」: 担当エージェントの目次へのリンク */
.hero-stat.hero-stat--link { color: inherit; text-decoration: none; cursor: pointer; transition: transform .2s; }
.hero-stat.hero-stat--link:hover { transform: translateY(-2px); }
.hero-stat.hero-stat--link .stat-label { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: 3px; }

/* ===== スマホ最適化チェック（2026-10-22）で見つかった点の修正 ===== */
@media (max-width: 760px) {
  /* 小さすぎた文字（11px未満）を読める大きさに */
  .hero-badge-row .rec-intro { font-size: 12px !important; }
  .lab-chips--float small { font-size: 11.5px !important; letter-spacing: .1em !important; }
  .lab-compare small, .lab-compare span { font-size: 12.5px !important; }
  /* 押しにくかったリンクの当たり判定を広げる（見た目は変えない） */
  .site-footer .footer-links a { padding: 9px 0 !important; }
  .lab-note a { display: inline-block; padding: 8px 0; margin: -8px 0; }
  /* FAQ の料金表: 狭い画面（320px）で右にはみ出していたので、項目と金額を折り返せるように */
  .qa-prices { grid-template-columns: minmax(0, auto) minmax(0, 1fr) !important; gap: 4px 12px !important; padding: 12px 14px !important; }
  .qa-prices b { overflow-wrap: anywhere; }
}

/* お問い合わせ下の「お問い合わせはフォームからが確実です。」をコンパクトに */
#contact .contact-phone-note { margin: 14px auto 0 !important; padding: 0 !important; max-width: 680px; font-size: 12px !important; line-height: 1.6 !important; color: rgba(255, 255, 255, .7) !important; text-align: center; }
#contact .contact-phone-note b { display: block; margin: 0 0 2px !important; font-size: 13px !important; color: #fff; }
#contact .contact-phone-note .ib { display: inline !important; }
@media (max-width: 760px) {
  #contact .contact-phone-note { font-size: 11.5px !important; }
}

/* iOS は 16px 未満の入力にフォーカスすると画面を拡大する */
#contact .contact-form input,
#contact .contact-form textarea,
#contact .contact-form select {
  font-size: 16px !important;
}


/* Mobile target sizes and minimum text sizes. */
@media (max-width: 768px) {
  a.m-head-cta,
  .site-footer .footer-links a,
  .site-footer .footer-address a[href^="tel:"],
  .site-footer .footer-social a.footer-insta,
  .site-footer .footer-legal a,
  button.pj-filter,
  button.lab-sample {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    box-sizing: border-box;
  }
  .site-footer .footer-links a { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
  #contact .contact-form label.check-label,
  #contact .contact-form label.form-consent-check {
    display: flex !important;
    align-items: center;
    min-height: 44px !important;
    box-sizing: border-box;
  }

  .section-tag,
  #labs .labs-agents .la-lab,
  .pj-badge,
  #contact .contact-form .optional,
  .site-footer .footer-heading,
  .site-footer small,
  .site-footer .footer-links small,
  .site-footer .footer-bottom p,
  .mobile-bottom-nav .mobile-nav-label,
  .hero-stats .stat-label,
  .lab-chips--float small,
  #contact .ib {
    font-size: 12px !important;
  }
}
@media (max-width: 768px) {
  .svc-toc ul a { min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; }
  .svc-toc-label small { font-size: 12px !important; }
}
@media (max-width: 420px) {
  html .site-header .m-brand-sub { letter-spacing: .02em !important; gap: 5px; }
}

/* Mobile readability and invisible link hit areas (no change to line boxes).
   Checkbox inputs already use their enclosing 44px check-label/consent labels
   in the mobile target-size block above; leave the controls and honeypot alone. */
@media (max-width: 760px) {
  .speech-character-name,
  #services .services-intro .speech-character-name,
  #contact .contact-intro .speech-character-name,
  .pj-count,
  .pj-label,
  #contact .contact-form .required {
    font-size: 12px !important;
  }

  #agent-promise a[href^="tel:"],
  #contact a[href^="tel:"],
  .site-footer .footer-address a[href^="tel:"],
  #contact .form-consent-text a[href="/privacy.html"],
  .site-footer .footer-legal a[href="/privacy.html"],
  .lab-note a {
    position: relative;
  }
  #agent-promise a[href^="tel:"]::after,
  #contact a[href^="tel:"]::after,
  .site-footer .footer-address a[href^="tel:"]::after,
  #contact .form-consent-text a[href="/privacy.html"]::after,
  .site-footer .footer-legal a[href="/privacy.html"]::after,
  .lab-note a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: max(100%, 44px);
    transform: translateY(-50%);
  }
  /* Expand away from the consent checkbox row immediately above this link. */
  #contact .form-consent-text a[href="/privacy.html"]::after {
    top: 0;
    transform: none;
  }
}
