/* セクションの骨組み */
.sec {
  position: relative;
  height: calc(var(--p) * var(--h));
  margin-inline: calc(50% - var(--vw50, 50vw));
}
.sec-in {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100cqw;
  height: 100%;
  transform: translateX(-50%);
}

/* ヒーロー */
.hero { overflow: hidden; background: #fff; }
.hero-bg {
  position: absolute;
  background-size: auto 100%;
  background-repeat: no-repeat;
}
.hero-bg-top {
  top: 0;
  right: calc(50% - var(--vw50, 50vw));
  width: calc(var(--p) * 1146 + (var(--vw50, 50vw) - 50%));
  height: calc(var(--p) * 458);
  background-image: url("../assets/hero-bg-top.jpg");
  background-position: right top;
}
.hero-bg-bottom {
  top: calc(var(--p) * 385);
  left: calc(50% - var(--vw50, 50vw));
  right: calc(50% - var(--vw50, 50vw));
  height: calc(var(--p) * 306);
  background-image: url("../assets/hero-bg-bottom.jpg");
  background-position: left bottom;
}
.hero-curve {
  position: absolute;
  left: calc(var(--p) * -4 - (var(--vw50, 50vw) - 50%));
  right: calc(var(--p) * -4 - (var(--vw50, 50vw) - 50%));
  top: calc(var(--p) * 643);
  height: calc(var(--p) * 103);
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 calc(var(--p) * 6) calc(var(--p) * 10) calc(var(--p) * -4) #00000026;
}
/* ヘッダー(固定) */
.site-header {
  --u: min(min(100vw, 1280px) / 100, 1.5vh);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--u) * 5.6);
  padding-inline: clamp(16px, 2.5vw, 40px);
  background: transparent;
  box-shadow: none;
  transition: background .25s, box-shadow .25s;
}
.site-header.is-scrolled { background: #fff; box-shadow: 0 2px 10px #0002; }
.brand { display: block; width: calc(var(--u) * 16.4); }
.brand img { width: 100%; height: auto; filter: brightness(0); }
.header-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(var(--u) * 3.4);
  padding: 0 calc(var(--u) * 2.2);
  background: var(--cta);
  border-radius: 99px;
  box-shadow: 0 calc(var(--u) * .3) calc(var(--u) * .8) #0003;
  color: #fff;
  text-decoration: none;
  font-size: calc(var(--u) * 1.5);
  white-space: nowrap;
  transition: background .2s, transform .2s;
}
.header-cta:hover { background: var(--cta-hover); transform: translateY(-2px); }
#apply { scroll-margin-top: calc(min(min(100vw, 1280px) / 100, 1.5vh) * 5.6); }

.tag {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--azure);
  border-radius: 90px;
  color: #fff;
  font-weight: 800;
}
.tag::after {
  content: "";
  position: absolute;
  left: calc(var(--p) * 14.8);
  top: calc(var(--p) * 25.5);
  width: calc(var(--p) * 12.1);
  height: calc(var(--p) * 15.3);
  background: var(--azure);
  clip-path: polygon(0 100%, 18.3% 0, 99.5% 36.7%);
}

.tab,
.b-tab {
  font-family: Poppins, Arial, var(--jp);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: calc(var(--p) * var(--ty, 0));
  background: var(--tab-gray);
  color: #fff;
  font-size: calc(var(--p) * var(--fs, 24));
  font-weight: 800;
}
.tab span,
.b-tab span {
  display: block;
  width: 1em;
  font-size: 1em;
  line-height: calc(var(--lh, 30) / var(--fs, 24));
  word-break: break-all;
  text-align: center;
}
.b-tab { border-radius: calc(var(--p) * 25) 0 0 calc(var(--p) * 25); }

.hero-period b { font-size: calc(var(--p) * 32); font-weight: 800; }

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cta);
  border-radius: 90px;
  box-shadow: 0 calc(var(--p) * 10) calc(var(--p) * 15) #0000004d;
  color: #fff;
  font-size: calc(var(--p) * var(--fs, 26));
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.cta:hover { background: var(--cta-hover); transform: translateY(-2px); }

/* 東京エレクトロンデバイス × JIG-SAW */
.about {
  position: relative;
  z-index: 1;
  margin-inline: calc(50% - var(--vw50, 50vw));
  margin-top: calc(var(--p) * -6);
  padding: 0 calc(var(--vw50, 50vw) - 50% + 10.28cqw) 2cqw calc(var(--vw50, 50vw) - 50% + 13.68cqw);
  background: #fff;
  border-radius: 0 0 3.2cqw 3.2cqw;
}
.about::after {
  content: "";
  position: absolute;
  top: 100%;
  left: calc(50% - .8cqw);
  border-left: .8cqw solid transparent;
  border-right: .8cqw solid transparent;
  border-top: 1.9cqw solid #fff;
}
.about-top {
  display: grid;
  grid-template-columns: calc(var(--p) * 655) 1fr;
  column-gap: calc(var(--p) * 34);
  align-items: start;
}
.about-intro h2 { font-size: calc(var(--p) * 28); line-height: 1.21; font-weight: 700; }
.about-intro p { padding-left: calc(var(--p) * 2); font-size: calc(var(--p) * 18); line-height: calc(22 / 18); }
.about-intro h2 + p { margin-top: calc(var(--p) * 13.1); }
.about-intro p + p { margin-top: calc(var(--p) * 22); }
.about-logos { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: calc(var(--p) * 24); margin-top: calc(var(--p) * 57); }
.about-logos img { display: block; max-width: none; }
.about-logos img:nth-child(1) { width: calc(var(--p) * 405.6); height: calc(var(--p) * 104.9); }
.about-logos img:nth-child(2) { width: calc(var(--p) * 112.7); height: calc(var(--p) * 81); }
.about-question { margin: calc(var(--p) * 49) calc(var(--p) * 0) 0 calc(var(--p) * -50); font-size: 3.15cqw; line-height: 1.4; text-align: center; }
/* 2大ボトルネック */
.problems {
  margin-top: -3.2cqw;
  margin-inline: calc(50% - var(--vw50, 50vw));
  padding: 8.4cqw calc(var(--vw50, 50vw) - 50% + 13.68cqw) 6.7cqw;
  background: #434343;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.22cqw;
}
.problem-card {
  --p2: calc(1cqw / 14.4);  position: relative;
  height: 23.8cqw;
  background: var(--bg-gray);
  border-radius: 1.74cqw;
  color: #4e4e4e;
}
.problem-title {
  position: absolute;
  left: calc(var(--p2) * 40);
  top: calc(var(--p2) * 22);
  display: flex;
  align-items: baseline;
  gap: calc(var(--p2) * 16);
  font-size: calc(var(--p2) * 50);
  line-height: 1.21;
  font-weight: 800;
  white-space: nowrap;
}
.problem-title .problem-num { font-family: Poppins, Arial, var(--jp); font-size: 1.5em; line-height: 1; position: relative; top: calc(var(--p2) * 4); }
.problem-title .problem-mark { background: linear-gradient(transparent 68%, #aeaeae 68%, #aeaeae 92%, transparent 92%); }
.problem-title small { font-size: .8em; }
.pic { position: absolute; left: calc(var(--p2) * var(--x)); top: calc(var(--p2) * var(--y)); width: calc(var(--p2) * 80); height: calc(var(--p2) * 80); max-width: none; }
.pic.flip { transform: scaleX(-1); }
.bubble {
  position: absolute;
  left: calc(var(--p2) * var(--x));
  top: calc(var(--p2) * var(--y));
  width: calc(var(--p2) * 364);
  height: calc(var(--p2) * 55);
  color: #fff;
  font-size: calc(var(--p2) * 16);
  font-weight: 500;
  line-height: 1.21;
  white-space: nowrap;
}
.bubble::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: calc(var(--p2) * -8.3);
  top: calc(var(--p2) * 0.7);
  width: calc(var(--p2) * 372.3);
  height: calc(var(--p2) * 53.6);
  background: url("../assets/bubble.svg") no-repeat 0 0 / 100% 100%;
}
.bubble-r::before { transform: scaleX(-1); left: calc(var(--p2) * -6); }
.bubble span { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; height: 100%; }

/* キャンペーン内容 */
.benefits { background: #fff; }
.benefits-title { line-height: 1.21; }
.benefits-title .lg { font-size: calc(var(--p) * 40); }
.blue { color: #007fff; }
.b-card {
  background: #fff;
  border-radius: calc(var(--p) * 25);
  box-shadow: 0 calc(var(--p) * 10) calc(var(--p) * 15) #0000004d;
}
.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 90px;
  color: #fff;
  font-size: calc(var(--p) * var(--fs, 15));
  font-weight: 800;
}
.pill-blue { background: var(--azure); }
.pill-gray { background: var(--tab-gray); }
.vline { background: #b7b7b7; }

/* JIG-SAW Primeとは / OPSとは / サービスカード */
.services { background: var(--bg-gray); }
.wm { position: absolute; left: calc(var(--p) * var(--x)); top: calc((var(--y) - var(--oy, 0)) * var(--p)); width: calc(var(--p) * var(--w)); height: calc(var(--p) * var(--h)); max-width: none; object-fit: fill; clip-path: inset(0 0 0 calc(var(--p) * var(--cut, 0))); }
.svc-btn {
  position: absolute;
  left: calc(var(--p) * var(--x));
  top: calc(var(--p) * (var(--y) - var(--oy, 0)));
  width: calc(var(--p) * var(--w));
  height: calc(var(--p) * var(--h));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--p) * 10);
  background: #434343;
  box-shadow: 0 calc(var(--p) * 10) calc(var(--p) * 15) #0000004d;
  color: #fff;
  font-size: calc(var(--p) * 20);
  line-height: 1.21;
  text-align: center;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.svc-btn:hover { background: #2b2b2b; transform: translateY(-2px); }
.svc-lead { font-size: calc(var(--p) * 18); line-height: calc(24 / 18); }
.svc-sub { line-height: calc(26 / 18); }
.icons { display: contents; }
.icon { text-align: center; }
.icon-img { position: absolute; left: calc(var(--p) * var(--x)); top: calc(var(--p) * var(--y)); width: calc(var(--p) * var(--w)); height: calc(var(--p) * var(--h)); max-width: none; }
.icon-t {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--p) * 124);
  font-size: calc(var(--p) * 14);
  line-height: calc(19 / 14);
}

.ops-col {
  position: absolute;
  left: calc(var(--p) * var(--x));
  top: calc(var(--p) * (var(--y) - var(--oy, 0)));
  width: calc(var(--p) * 476);
}
.bars { display: grid; gap: calc(var(--p) * 10); }
.bars li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--p) * 53);
  border: calc(var(--p) * 3) solid #d9d9d9;
  border-radius: 99px;
  background: #fff;
  font-size: calc(var(--p) * 16);
  font-weight: 500;
  line-height: 1.21;
  white-space: nowrap;
}
.bars li:nth-child(3) { margin-top: calc(var(--p) * 2); }
.bars .b { color: #007fff; font-weight: 700; }
.down {
  display: block;
  width: calc(var(--p) * 24);
  height: calc(var(--p) * 20.8);
  margin: calc(var(--p) * 11.6) auto calc(var(--p) * 11.6);
  background: var(--tab-gray);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.ops-card {
  position: relative;
  height: calc(var(--p) * 280);
  border-radius: calc(var(--p) * 25);
  background: linear-gradient(#f9f9f9, #d5d5d5);
  box-shadow: 0 calc(var(--p) * 10) calc(var(--p) * 15) #0000004d;
}
.badge { position: absolute; left: calc(var(--p) * 26); top: calc(var(--p) * 13); width: calc(var(--p) * 63); height: calc(var(--p) * 63); max-width: none; }
.ops-card h3 { position: absolute; left: calc(var(--p) * 112); top: calc(var(--p) * 19); line-height: 1.1; white-space: nowrap; }
.ops-card h3 span { display: block; font-size: calc(var(--p) * 32); }
.ops-card h3 small { display: block; font-size: calc(var(--p) * 16); line-height: 1.2; }
.ops-card-lead { position: absolute; left: calc(var(--p) * 18); right: calc(var(--p) * 18); top: calc(var(--p) * 87); font-size: calc(var(--p) * 18); line-height: 1.2; text-align: center; }
.tags {
  position: absolute;
  left: calc(var(--p) * 31);
  right: calc(var(--p) * 31);
  top: calc(var(--p) * 139);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--p) * 6);
}
.tags li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--p) * 33);
  border: 1px solid #d9d9d9;
  border-radius: calc(var(--p) * 5);
  background: #fff;
  color: #5a5a5a;
  font-size: calc(var(--p) * 13);
  font-weight: 500;
  line-height: calc(16 / 13);
  white-space: nowrap;
}
.tags .sm { font-size: calc(var(--p) * 10); }
.tags .wide { grid-column: span 2; }

/* お申し込みまでの流れ + 適用条件 */
.flow {
  margin-inline: calc(50% - var(--vw50, 50vw));
  padding: 5.7cqw calc(var(--vw50, 50vw) - 50% + 8cqw) 7cqw;
  background: #fff;
}
.flow-title { font-size: var(--section-title); line-height: 1.3; text-align: center; }
.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 22.3cqw);
  justify-content: center;
  column-gap: 6.25cqw;
  margin-top: 2cqw;
}
.flow-step {
  position: relative;
  min-height: 26cqw;
  background: #fff;
  border: 2px solid var(--azure);
  border-radius: 1.2cqw;
  box-shadow: 0 .6cqw 1.2cqw #0003;
}
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 12.2cqw;
  left: calc(100% + 1.96cqw);
  border-left: 2.34cqw solid var(--azure);
  border-top: 1.35cqw solid transparent;
  border-bottom: 1.35cqw solid transparent;
}
.flow-step-no {
  height: 4.8cqw;
  margin: -2px -2px 0;
  background: var(--azure);
  border-radius: 1.2cqw 1.2cqw 0 0;
  color: #fff;
  font-size: 2.22cqw;
  line-height: 4.8cqw;
  text-align: center;
}
.flow-step-body { padding: 3.1cqw 1.1cqw 1.6cqw; }
.flow-step-body h3 {
  padding-bottom: 1.9cqw;
  border-bottom: 2px solid var(--azure);
  font-size: 2.22cqw;
  line-height: 1.3;
  text-align: center;
}
.flow-step-body p {
  margin-top: 1.6cqw;
  padding-inline: .5cqw;
  font-size: 1.48cqw;
  line-height: 1.5;
  color: var(--text-sub);
}
.terms { max-width: 83.4cqw; margin: 3.75cqw auto 0; }
.terms-title { margin-bottom: .6cqw; font-size: 1.67cqw; line-height: 1.5; }
.terms-list { font-size: max(13px, 1.48cqw); line-height: 1.3; }
.terms-list dt { margin-top: 1.2em; }
.terms-list dt:first-child { margin-top: 0; }
.terms-list dd { margin: 0; font-weight: 500; color: var(--text-sub); }
.terms-item { display: flex; align-items: flex-start; }
.terms-num { flex: none; margin-right: .3em; }
.nowrap { white-space: nowrap; }

/* お問い合わせ */
.apply-section {
  margin-inline: calc(50% - var(--vw50, 50vw));
  padding: 5.7cqw calc(var(--vw50, 50vw) - 50% + 8.85cqw) 8cqw;
  background: #f2f2f2;
}
.apply-section-title { font-size: var(--section-title); text-align: center; }
.apply-section-lead {
  margin: 1.2cqw 0 4cqw;
  font-size: 1.45cqw;
  line-height: 1.8;
  text-align: center;
}
.contact-form {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 44px 44px;
  background: #fff;
  border-radius: 1.9cqw;
  box-shadow: 0 .6cqw 1.2cqw #0003;
  font-size: 16px;
}
.form-field { margin: 0 0 28px; padding: 0; border: 0; min-width: 0; }
.form-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 0;
  font-size: 16px;
  line-height: 1.4;
}
.form-required {
  flex: none;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--azure-deep);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
}
.form-input,
.form-textarea {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #c8c8c8;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
}
.form-textarea { min-height: 90px; resize: vertical; }
.form-input:focus,
.form-textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.form-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-stack label { display: grid; gap: 6px; font-size: 16px; }
.form-check { display: flex; align-items: center; gap: 10px; cursor: pointer; line-height: 1.5; }
.form-check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--azure-deep); }
.form-note { margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: var(--text-sub); }
.form-note-small { margin-top: 6px; font-size: calc(16px * 0.7); }
@media (min-width: 601px) { .form-note-small { font-size: 10px; } }
.form-error { margin: 8px 0 0; font-size: 16px; line-height: 1.6; color: #d93025; }
.form-error[hidden] { display: none; }
.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"] { border-color: #d93025; background: #fff6f5; }
.form-check input[aria-invalid="true"] { outline: 2px solid #d93025; outline-offset: 2px; }
.form-recaptcha-error { text-align: center; margin: -16px 0 20px; }
.form-agree { align-items: flex-start; margin: 0 0 18px; font-size: 16px; }
.form-agree input { margin-top: 1px; }
.form-agree a { text-decoration: underline; text-underline-offset: 3px; }
.form-agree-ted { margin: 18px 0 0; }
.privacy-title { margin: 0 0 4px; font-size: 16px; line-height: 1.4; }
.privacy-box {
  height: 180px;
  overflow-y: auto;
  padding: 14px 16px;
  border: 1px solid #c8c8c8;
  border-radius: 8px;
  background: #f7f7f7;
  font-size: 16px;
  line-height: 1.8;
}
.privacy-box h4 { margin: 16px 0 4px; font-size: 16px; line-height: 1.6; }
.privacy-box p { color: var(--text-sub); }
.privacy-box p + p { margin-top: 10px; }
.form-recaptcha { display: flex; justify-content: center; margin: 0 0 28px; }
.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 320px);
  min-height: 56px;
  margin: 28px auto 0;
  padding: 12px 24px;
  border: 0;
  border-radius: 99px;
  background: var(--cta);
  box-shadow: 0 calc(var(--p) * 10) calc(var(--p) * 15) #0000004d;
  color: #fff;
  font: inherit;
  font-size: 18px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.form-submit:hover { background: var(--cta-hover); transform: translateY(-2px); }
.form-submit:disabled {
  background: #b5b5b5;
  box-shadow: none;
  color: #fff;
  cursor: not-allowed;
  transform: none;
}

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