.hero-sp, .benefits-sp { display: none; }
.br-sp { display: none; }
.svc-g { display: contents; }

/* 大画面 */
@media (min-width: 1281px) {
  .lp { box-shadow: 0 0 50px #00000009; }
}

/* スマホ */
@media (max-width: 600px) {
  .hero-pc, .benefits-pc { display: none; }
  .hero-sp, .benefits-sp { display: block; }

  /* ヘッダー */
  .site-header { --u: 1px; height: 52px; padding-inline: 16px; }
  .brand { width: 130px; }
  .header-cta { min-height: 32px; padding: 0 16px; font-size: 13px; }
  #apply { scroll-margin-top: 52px; }

  /* 東京エレクトロンデバイス × JIG-SAW */
  .about { margin-top: -2px; padding: 32px calc(var(--vw50, 50vw) - 50% + 22px) 22px; border-radius: 0 0 22px 22px; }
  .about::after { left: calc(50% - 8px); border-left-width: 8px; border-right-width: 8px; border-top-width: 15px; }
  .about-top { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .about-intro h2 { font-size: 20px; line-height: 1.55; }
  .about-intro p { padding-left: 0; font-size: 15px; line-height: 1.8; font-weight: 500; }
  .about-intro h2 + p { margin-top: 12px; }
  .about-intro p + p { margin-top: 14px; }
  .about-logos { --k: calc((100vw - 44px) / 405.6); flex-direction: column; justify-content: center; align-items: center; gap: calc(var(--k) * 24); margin-top: 0; }
  .about-logos img:nth-child(1) { width: calc(var(--k) * 405.6); height: calc(var(--k) * 104.9); }
  .about-logos img:nth-child(2) { width: calc(var(--k) * 112.7); height: calc(var(--k) * 81); }
  .about-question { margin: 34px 0 0; font-size: 22px; line-height: 1.4; }

  /* 2大ボトルネック */
  .problems { margin-top: -22px; padding: 62px calc(var(--vw50, 50vw) - 50% + 22px) 36px; }
  .problem-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .problem-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    align-items: center;
    gap: 14px 10px;
    height: auto;
    padding: 22px 16px 24px;
    border-radius: 16px;
  }
  .problem-title { position: static; grid-column: 1 / -1; grid-row: 1; margin-bottom: 4px; font-size: 22px; gap: 8px; }
  .pic { position: static; width: 56px; height: 56px; }
  .bubble { position: relative; left: auto; top: auto; width: auto; height: auto; font-size: 15px; line-height: 1.5; white-space: normal; }
  .bubble::before { left: 0; top: 0; width: 100%; height: 100%; background: #434343; border-radius: 22px; }
  .bubble-r::before { transform: none; left: 0; }
  .bubble::after { content: ""; position: absolute; z-index: 0; left: -5px; bottom: 4px; width: 30px; height: 13px; background: #434343; clip-path: polygon(0 100%, 22% 0, 100% 88%); }
  .bubble-r::after { left: auto; right: -5px; clip-path: polygon(100% 100%, 78% 0, 0 88%); }
  .bubble span { min-height: 52px; padding: 10px 22px; text-align: center; text-wrap: balance; }
  .problem-card > :nth-child(2) { grid-column: 1; grid-row: 2; }
  .problem-card > :nth-child(3) { grid-column: 2 / 4; grid-row: 2; }
  .problem-card > :nth-child(4) { grid-column: 1 / 3; grid-row: 3; }
  .problem-card > :nth-child(5) { grid-column: 3; grid-row: 3; }
  .problem-card > :nth-child(6) { grid-column: 1; grid-row: 4; }
  .problem-card > :nth-child(7) { grid-column: 2 / 4; grid-row: 4; }

  /* キャンペーン内容 */
  .benefits-sp { padding: 28px 16px 32px; background: #fff; text-align: center; }
  .benefits-sp-title { font-size: 18px; font-weight: 700; line-height: 1.55; }
  .benefits-sp-title .lg { font-size: 21px; }
  .bsp-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); margin: 14px auto 0; max-width: 380px; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 4px 12px #0002; text-align: left; }
  .benefits-sp-title + .bsp-card { margin-top: 16px; }
  .bsp-tab { display: flex; align-items: center; justify-content: center; width: 40px; background: var(--tab-gray); color: #fff; font-family: Poppins, Arial, var(--jp); font-size: 18px; font-weight: 800; line-height: 1.3; writing-mode: vertical-rl; text-orientation: upright; letter-spacing: .1em; }
  .bsp-body { padding: 12px 12px 14px; }
  .bsp-logo { width: 110px; height: auto; margin: 0 auto 6px; }
  .bsp-logo-ops { width: 110px; }
  .bsp-pill { width: fit-content; margin: 0 auto; padding: 3px 18px; border-radius: 99px; color: #fff; font-size: 14px; font-weight: 800; line-height: 1.4; }
  .bsp-pill-blue { background: var(--azure); }
  .bsp-pill-gray { background: var(--tab-gray); }
  .bsp-rate { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 4px; }
  .bsp-name { display: grid; font-size: 26px; font-weight: 800; line-height: 1.3; text-align: center; }
  .bsp-name .lat { font-weight: 500; line-height: 1.2; }
  .bsp-num { display: flex; align-items: baseline; gap: 2px; font-weight: 800; }
  .bsp-num span:first-child { font-size: 132px; line-height: .9; padding-right: .06em; }
  .bsp-num span:last-child { font-size: 32px; line-height: 1.1; }
  .bsp-line { width: 100%; height: 2px; margin: 8px 0 8px; border: 0; background: #b7b7b7; }
  .bsp-rate-sub .bsp-name .lat { font-size: 18px; font-weight: 800; }
  .bsp-rate-sub .bsp-num span:first-child { font-size: 56px; line-height: 1; }
  .bsp-rate-sub .bsp-num span:last-child { font-size: 20px; }
  .bsp-note { margin-top: 0; font-size: 18px; font-weight: 800; line-height: 1.4; text-align: center; }
  .bsp-list { margin-top: 2px; }
  .bsp-list li { margin-top: 6px; }
  .bsp-list li:first-child { margin-top: 0; }
  .bsp-list b { display: block; font-size: 17px; font-weight: 800; line-height: 1.4; }
  .bsp-list small { display: block; font-size: 12px; line-height: 1.5; }
  .bsp-free { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-top: 8px; font-size: 28px; font-weight: 800; line-height: 1.2; }
  .bsp-free .grad-blue { font-size: 54px; line-height: 1.1; }

  .sec.services { height: auto; padding: 44px 22px 50px; }
  .services .sec-in { position: static; width: auto; height: auto; transform: none; }
  .services .wm { display: none; }
  .svc-g { display: block; }
  .svc-g + .svc-g { margin-top: 48px; }
  .services .at, .services .box, .services .svc-btn, .services .ops-col { position: static; transform: none; width: auto; height: auto; }
  .services h2.at { font-size: 21px; line-height: 1.4; white-space: normal; }
  .services h2.at .blue { font-size: 24px !important; }
  .services .svc-lead { margin-top: 14px; font-size: 15px; line-height: 1.8; font-weight: 500; }
  .services .svc-btn { display: flex; width: 240px; max-width: 100%; min-height: 56px; margin: 20px auto 0; font-size: 16px; border-radius: 8px; }
  .services .svc-sub { margin-top: 30px; font-size: 16px; line-height: 1.7; white-space: normal; text-align: center; }
  .services .icons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; margin-top: 22px; }
  .services .icon { display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .services .icon:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }
  .services .icon-img { position: static; width: 84px; height: 84px; }
  .services .icon-t { position: static; font-size: 14px; line-height: 1.45; }
  .services .ops-col { margin-top: 28px; }
  .services .ops-col + .ops-col { margin-top: 36px; }
  .services .bars { gap: 10px; }
  .services .bars li { display: block; height: auto; min-height: 52px; padding: 13px 20px; border-width: 2px; border-radius: 26px; font-size: 14px; line-height: 1.6; white-space: normal; text-align: center; text-wrap: balance; }
  .services .bars li:nth-child(3) { margin-top: 0; }
  .services .down { width: 22px; height: 19px; margin: 12px auto; }
  .services .ops-card { height: auto; padding: 18px 16px 20px; border-radius: 18px; }
  .services .badge { position: absolute; left: 16px; top: 16px; width: 52px; height: 52px; }
  .services .ops-card h3 { position: static; min-height: 52px; margin: 0 0 12px 64px; display: flex; flex-direction: column; justify-content: center; white-space: normal; }
  .services .ops-card h3 span { font-size: 20px; line-height: 1.25; }
  .services .ops-card h3 small { font-size: 12px; }
  .services .ops-card-lead { position: static; font-size: 14px; line-height: 1.6; }
  .services .ops-card-lead br { display: none; }
  .services .tags { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
  .services .tags li { height: auto; min-height: 36px; padding: 6px 8px; font-size: 13px; line-height: 1.4; white-space: normal; text-align: center; }
  .services .tags .sm { font-size: 12px; }
  .services .tags .wide { grid-column: span 2; }
  .services .tags li:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 4px); }

  /* お申し込みまでの流れ */
  .flow { padding: 44px calc(var(--vw50, 50vw) - 50% + 22px) 50px; }
  .flow-title { font-size: 20px; }
  .flow-steps { grid-template-columns: minmax(0, 1fr); row-gap: 36px; margin-top: 24px; }
  .flow-step { min-height: 0; border-radius: 12px; }
  .flow-step:not(:last-child)::after {
    top: calc(100% + 6px);
    left: calc(50% - 14px);
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 24.2px solid var(--azure);
    border-bottom: 0;
  }
  .flow-step-no { height: 42px; border-radius: 10px 10px 0 0; font-size: 18px; line-height: 42px; }
  .flow-step-body { padding: 22px 16px 20px; }
  .flow-step-body h3 { padding-bottom: 14px; font-size: 20px; }
  .flow-step-body p { margin-top: 14px; font-size: min(16px, calc((100vw - 80px) / 23 * .97)); line-height: 1.7; text-align: center; }
  .terms { margin-top: 36px; }
  .terms-title { margin-bottom: 8px; font-size: 16px; }
  .terms-list { font-size: 14px; line-height: 1.7; }
  .terms-list dt { margin-top: 14px; }

  /* お問い合わせ */
  .apply-section { padding: 42px calc(var(--vw50, 50vw) - 50% + 16px) 48px; }
  .apply-section-title { font-size: 20px; }
  .apply-section-lead { margin: 14px 0 28px; font-size: 16px; }
  .contact-form { padding: 28px 18px 32px; border-radius: 16px; box-shadow: 0 4px 12px #0002; }
  .form-field { margin-bottom: 24px; }
  .form-stack { grid-template-columns: minmax(0, 1fr); }
  .privacy-box { height: 160px; }

  .hero-sp { --u: calc(100vw / 626); position: relative; overflow: hidden; background: #fff; }
  .fvs { position: relative; height: calc(var(--u) * 700.67 + 52px); }
  .fvs::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      url("../assets/hero-bg-top.jpg") no-repeat right calc(var(--u) * -20) top / 115vw auto,
      url("../assets/hero-bg-bottom.jpg") no-repeat left calc(var(--u) * -20) bottom calc(var(--u) * 40) / 150vw auto;
  }
  .fvs::after {
    content: "";
    position: absolute;
    left: calc(var(--u) * -1.74);
    width: calc(var(--u) * 629.48);
    top: calc(var(--u) * 609.55 + 52px);
    height: calc(var(--u) * 91.13);
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 calc(var(--u) * 6) calc(var(--u) * 10) calc(var(--u) * -4) #00000026;
  }
  .fvs > * { position: absolute; margin: 52px 0 0; white-space: nowrap; z-index: 1; font-weight: 800; line-height: 1.2; }
  .fvs-cta { z-index: 2; }
  .fvs-title { left: 0; right: 0; top: calc(var(--u) * 30); text-align: center; line-height: 1.2; }
  .fvs-title > span { display: block; }
  .fvs-t1 { font-size: calc(var(--u) * 42); line-height: 1.2; }
  .fvs-t2 { font-size: calc(var(--u) * 52); line-height: 1.2; }
  .fvs-tag { left: 27.96vw; top: calc(var(--u) * 148); width: 44.09vw; height: calc(var(--u) * 42); display: flex; align-items: center; justify-content: center; border-radius: 99px; background: var(--azure); color: #fff; font-size: calc(var(--u) * 15.6); line-height: 1; letter-spacing: 0; }
  .fvs-tag::after { content: ""; position: absolute; left: calc(var(--u) * 120); bottom: calc(var(--u) * -14); width: calc(var(--u) * 20); height: calc(var(--u) * 16); background: var(--azure); clip-path: polygon(0 0, 100% 0, 40% 100%); }
  .fvs-tab { display: flex; flex-direction: column; justify-content: flex-start; align-items: center; background: var(--tab-gray); color: #fff; font-family: Poppins, Arial, var(--jp); font-weight: 800; box-sizing: border-box; }
  .fvs-tab span { display: block; width: 1em; text-align: center; white-space: nowrap; }
  .fvs-tab1 { left: 12.94vw; top: calc(var(--u) * 238); width: calc(var(--u) * 31); height: calc(var(--u) * 126); padding-top: calc(var(--u) * 25.5); font-size: calc(var(--u) * 20); line-height: 1.25; }
  .fvs-tab2 { left: 13.10vw; top: calc(var(--u) * 401); width: calc(var(--u) * 30); height: calc(var(--u) * 93); padding-top: calc(var(--u) * 17.6); font-size: calc(var(--u) * 14); line-height: 1.375; }
  .fvs-until { left: 17.73vw; top: calc(var(--u) * 237); width: calc(var(--u) * 190); font-size: calc(var(--u) * 16); font-weight: 800; white-space: nowrap; text-align: center; }
  .fvs-az { left: 20.13vw; top: calc(var(--u) * 252); width: calc(var(--u) * 150); font-size: calc(var(--u) * 50); font-weight: 800; line-height: 1.2; text-align: center; }
  .fvs-use { left: 20.13vw; top: calc(var(--u) * 304); width: calc(var(--u) * 152); font-size: calc(var(--u) * 50); text-align: center; }
  .fvs-8 { left: 41.37vw; top: calc(var(--u) * 122); width: calc(var(--u) * 200); padding: .1em .12em; font-size: calc(var(--u) * 240); font-weight: 800; line-height: 1.2; text-align: center; box-sizing: border-box; }
  .fvs-pct { left: 70.29vw; top: calc(var(--u) * 266); width: calc(var(--u) * 44); font-size: calc(var(--u) * 54); font-weight: 800; line-height: 1.2; text-align: center; }
  .fvs-off { left: 69.01vw; top: calc(var(--u) * 312); width: calc(var(--u) * 106); font-size: calc(var(--u) * 52); font-weight: 800; line-height: 1.2; text-align: center; }
  .fvs-list { left: 0; top: 0; width: 0; height: 0; }
  .fvs-list li { position: absolute; white-space: nowrap; font-weight: 800; line-height: 1.2; }
  .fvs-l1 { left: 21.25vw; top: calc(var(--u) * 404); font-size: calc(var(--u) * 23); }
  .fvs-s1 { left: 25.56vw; top: calc(var(--u) * 431); font-size: calc(var(--u) * 11); font-weight: 500 !important; }
  .fvs-l2 { left: 20.93vw; top: calc(var(--u) * 451); font-size: calc(var(--u) * 23); }
  .fvs-s2 { left: 25.72vw; top: calc(var(--u) * 478); font-size: calc(var(--u) * 11); font-weight: 500 !important; }
  .fvs-shoki { left: 64.70vw; top: calc(var(--u) * 399); width: calc(var(--u) * 158); font-size: calc(var(--u) * 37); text-align: center; }
  .fvs-muryo { left: 67.89vw; top: calc(var(--u) * 436); width: calc(var(--u) * 120); font-size: calc(var(--u) * 51); text-align: center; line-height: 1.1; }
  .fvs-period { left: 0; right: 0; top: calc(var(--u) * 506); font-size: calc(var(--u) * 22); line-height: 1.3; text-align: center; }
  .fvs-period > span { display: block; }
  .fvs-period b { font-size: calc(var(--u) * 24); font-weight: 800; }
  .fvs-cta { left: 50%; margin-left: calc(var(--u) * -133); top: calc(var(--u) * 588.3); width: calc(var(--u) * 266); height: calc(var(--u) * 52); display: flex; align-items: center; justify-content: center; border-radius: 99px; background: var(--cta); box-shadow: 0 calc(var(--u) * 4) calc(var(--u) * 10) #0003; color: #fff; font-size: calc(var(--u) * 22); text-decoration: none; transition: background .2s, transform .2s; }
  .fvs-cta:hover { background: var(--cta-hover); transform: translateY(-2px); }
}

@media (max-width: 430px) {
  .br-sp { display: inline; }
  .about-intro h2 { text-align: center; }
}

/* タブレット */
@media (min-width: 601px) and (max-width: 900px) {
  .terms-list { font-size: max(12px, 1.6cqw); }
}
