/* =========================================================
   スマホ最適化（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(255, 255, 255, .14) !important; border: 1px solid rgba(255, 255, 255, .4) !important; color: #fff !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-bubble::before, #services .services-intro .speech-bubble::after { display: 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: 28px !important; height: 28px !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: 13.5px !important; margin: 0 0 2px !important; line-height: 1.4 !important; }
  .lab-points span { margin: 0 !important; font-size: 12.5px !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); }
}
