/* ––––––––––––––––––––––––––––––––––––––––––––––––––
zerocode LP02（AI駆動開発LP）

Figma「確認用ページ（編集可）」の 750px フレーム（775:4411）を正本にする。
PC は 750px 幅で中央に置き、750px 未満は画面幅いっぱいに縮める（旧 /zerocode/ と同じ）。
--u は「Figma の 1px」。数値は Figma の値をそのまま掛けて書く。
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.zc-lp02,
.zc-lp02 *,
.zc-lp02 *::before,
.zc-lp02 *::after {
  box-sizing: border-box;
}

.zc-lp02 {
  --u: calc(min(100vw, 750px) / 750);
  --zc-lp02-font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    "Yu Gothic", YuGothic, Meiryo, sans-serif;
  margin: 0;
  background-color: #fff;
  color: #333;
  font-family: var(--zc-lp02-font);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.zc-lp02 a:hover {
  opacity: 1;
}

.zc-lp02__visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.zc-lp02__page {
  width: calc(750 * var(--u));
  margin: 0 auto;
  overflow: hidden;
}

.zc-lp02__image {
  display: block;
  width: 100%;
  height: auto;
}

.zc-lp02__section {
  position: relative;
}

/* ---------- CTA（sec01・sec05・sec09） ---------- */

.zc-lp02__cta {
  position: absolute;
  top: calc(var(--cta-top) * var(--u));
  left: calc(24 * var(--u));
  width: calc(702 * var(--u));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(20 * var(--u));
}

.zc-lp02__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: calc(120 * var(--u));
  border-radius: calc(103.591 * var(--u));
  background-color: #06c755;
  box-shadow: 0 calc(12 * var(--u)) 0 #368d59;
  color: #fff;
  font-size: calc(40 * var(--u));
  font-weight: 700;
  letter-spacing: calc(3.2 * var(--u));
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

/* Figma に状態の指定は無いので、色は変えずに下の影へ沈み込む表現にする（押せることを示す） */
@media (hover: hover) {
  .zc-lp02__button:hover {
    transform: translateY(calc(6 * var(--u)));
    box-shadow: 0 calc(6 * var(--u)) 0 #368d59;
  }
}

.zc-lp02__button:active {
  transform: translateY(calc(12 * var(--u)));
  box-shadow: 0 0 0 #368d59;
}

.zc-lp02__note {
  margin: 0;
  color: #101722;
  font-size: calc(17.956 * var(--u));
  font-weight: 700;
  line-height: 1.9;
  text-align: center;
}

/* ---------- FV ---------- */

.zc-lp02__logo {
  position: absolute;
  top: calc(51.795 * var(--u));
  left: calc(35.912 * var(--u));
  width: calc(246.547 * var(--u));
  height: calc(38.674 * var(--u));
}

/* ---------- 受講生インタビュー（sec08） ---------- */

.zc-lp02-interview {
  height: calc(1090 * var(--u));
  overflow: hidden;
}

.zc-lp02-interview__bg {
  position: absolute;
  top: 0;
  left: 0;
}

/* カードの影（下 3px・ぼかし 6px）が切れないよう上下に 12px の余白を持たせ、その分だけ上へずらす */
.zc-lp02-interview__scroller {
  position: absolute;
  top: calc((547.646 - 12) * var(--u));
  left: 0;
  width: 100%;
  display: flex;
  gap: calc(25.5 * var(--u));
  padding: calc(12 * var(--u)) 0 calc(12 * var(--u)) calc(24 * var(--u));
  box-sizing: border-box;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline-start: calc(24 * var(--u));
  scrollbar-width: none;
}

.zc-lp02-interview__scroller::-webkit-scrollbar {
  display: none;
}

.zc-lp02-interview__card {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: calc(12 * var(--u));
  box-sizing: border-box;
  width: calc(525 * var(--u));
  padding: calc(24 * var(--u)) calc(12 * var(--u));
  border-radius: calc(12 * var(--u));
  background-color: #fff;
  /* Figma の枠線は内側（レイアウトに影響しない）なので border ではなく inset の影で引く */
  box-shadow:
    inset 0 0 0 calc(0.75 * var(--u)) #eee,
    0 calc(3 * var(--u)) calc(6 * var(--u)) rgba(0, 0, 0, 0.2);
  scroll-snap-align: start;
}

.zc-lp02-interview__head {
  display: flex;
  align-items: flex-start;
  gap: calc(7.5 * var(--u));
}

.zc-lp02-interview__person {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: calc(3 * var(--u));
  width: calc(105 * var(--u));
}

.zc-lp02-interview__photo {
  display: block;
  width: calc(105 * var(--u));
  height: calc(105 * var(--u));
  border-radius: 50%;
}

.zc-lp02-interview__name {
  margin: 0;
  color: #333;
  font-size: calc(10.5 * var(--u));
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

.zc-lp02-interview__name small {
  font-size: calc(7.5 * var(--u));
}

.zc-lp02-interview__summary {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: calc(9 * var(--u));
  width: calc(388 * var(--u));
}

.zc-lp02-interview__title {
  margin: 0;
  color: #333;
  font-size: calc(24 * var(--u));
  font-weight: 700;
  line-height: 1.5;
}

/* Before / After と、その左の矢印は Figma どおり同じ枠に重ねて置く */
.zc-lp02-interview__career {
  position: relative;
  display: grid;
  width: max-content;
  margin: 0;
}

.zc-lp02-interview__career > * {
  grid-area: 1 / 1;
  align-self: start;
  justify-self: start;
}

.zc-lp02-interview__career-arrow {
  width: calc(12.398 * var(--u));
  height: calc(34.951 * var(--u));
  margin: calc(8.271 * var(--u)) 0 0 calc(-0.75 * var(--u));
}

.zc-lp02-interview__career-row {
  display: flex;
  align-items: center;
  gap: calc(6 * var(--u));
  margin: 0 0 0 calc(10.898 * var(--u));
  white-space: nowrap;
}

.zc-lp02-interview__career-row--after {
  margin-top: calc(27.75 * var(--u));
}

.zc-lp02-interview__label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(3 * var(--u)) calc(6 * var(--u));
  border-radius: calc(6 * var(--u));
  background-color: #888;
  color: #fff;
  font-size: calc(10.5 * var(--u));
  font-weight: 400;
  line-height: 1.5;
}

.zc-lp02-interview__career-row--after .zc-lp02-interview__label {
  width: calc(48.75 * var(--u));
  box-sizing: border-box;
  background-color: #0081ca;
}

.zc-lp02-interview__career-text {
  color: #888;
  font-size: calc(12 * var(--u));
  font-weight: 400;
  line-height: 1.5;
}

.zc-lp02-interview__career-row--after .zc-lp02-interview__career-text {
  color: #0081ca;
  font-weight: 700;
}

/* 吹き出し。三角は Figma の Polygon 4（24×18 の枠の中に 20.78×13.5） */
.zc-lp02-interview__voice {
  position: relative;
  box-sizing: border-box;
  width: calc(500.25 * var(--u));
  margin: calc(13.5 * var(--u)) 0 0;
  padding: calc(12 * var(--u)) calc(25.5 * var(--u));
  border-radius: calc(6 * var(--u));
  background-color: #edf5f9;
  color: #333;
  font-size: calc(19.5 * var(--u));
  font-weight: 400;
  line-height: 1.9;
}

.zc-lp02-interview__voice::before {
  content: "";
  position: absolute;
  top: calc(-13.5 * var(--u));
  left: calc((var(--tail-left, 33) + 1.608) * var(--u));
  width: calc(20.785 * var(--u));
  height: calc(13.5 * var(--u));
  background-color: #edf5f9;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* 黄色のマーカー。Figma では手置きの矩形（高さ 8.25px・行の上から約 20px）。
   改行位置がずれても太字の下に付くよう、太字の文字の下端に敷く */
.zc-lp02-interview__voice strong {
  font-weight: 700;
  background-image: linear-gradient(#ff5, #ff5);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% calc(8.25 * var(--u));
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.zc-lp02-interview__controls {
  position: absolute;
  top: calc(980.304 * var(--u));
  left: 50%;
  display: flex;
  align-items: center;
  gap: calc(84.945 * var(--u));
  transform: translateX(-50%);
}

.zc-lp02-interview__arrow {
  display: block;
  width: calc(44.199 * var(--u));
  height: calc(44.199 * var(--u));
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.zc-lp02-interview__arrow img {
  display: block;
  width: 100%;
  height: 100%;
}

.zc-lp02-interview__arrow--prev img {
  transform: scaleX(-1);
}

.zc-lp02-interview__dots {
  display: flex;
  gap: calc(11.05 * var(--u));
}

.zc-lp02-interview__dot {
  display: block;
  width: calc(13.812 * var(--u));
  height: calc(13.812 * var(--u));
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: #e4f6ff;
  cursor: pointer;
}

.zc-lp02-interview__dot.is-active {
  background-color: #1b8fd1;
}

.zc-lp02-interview__arrow:focus-visible,
.zc-lp02-interview__dot:focus-visible,
.zc-lp02__button:focus-visible {
  outline: 2px solid #1b8fd1;
  outline-offset: 2px;
}

/* ---------- フッター（Figma 775:4532。他のセクションと同じく 750px を基準に比例して縮める） ---------- */

.zc-lp02__footer {
  display: flex;
  align-items: center;
  gap: calc(24 * var(--u));
  width: calc(750 * var(--u));
  margin: 0 auto;
  /* Figma は中央揃えだが、英字の幅がブラウザで数 px 変わるので左端（35px）から並べて位置を固定する */
  padding: calc(16 * var(--u)) 0 calc(16 * var(--u)) calc(35 * var(--u));
  background-color: #fff;
  color: #000;
  font-size: calc(12 * var(--u));
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
}

.zc-lp02__footer small {
  font-size: inherit;
}

.zc-lp02__footer-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.zc-lp02__footer-link:hover {
  text-decoration: underline;
}

/* ---------- モーダル（旧 /zerocode/ から流用） ---------- */

.zc-lp02 .modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  text-align: left;
}

.zc-lp02 .modal.active {
  display: block;
}

.zc-lp02 .modal__bg {
  position: absolute;
  top: 50%;
  left: 50%;
  overflow-y: scroll;
  padding: 3rem;
  width: 66vw;
  height: 70vh;
  background: #fff;
  transform: translate(-50%, -50%);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.zc-lp02 .modal__bg::-webkit-scrollbar {
  display: none;
}

.zc-lp02 .modal__heading {
  margin-bottom: 2rem;
}

.zc-lp02 .modal__heading-text {
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 2rem;
}

.zc-lp02 .modal__heading-description {
  line-height: 1.5;
  font-size: 1rem;
}

.zc-lp02 .modal .content__top h2 {
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 2rem;
}

.zc-lp02 .modal .content__top p {
  margin-bottom: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.zc-lp02 .modal .content__bottom h2,
.zc-lp02 .modal .content__bottom h3,
.zc-lp02 .modal .content__bottom p {
  line-height: 1.5;
}

.zc-lp02 .modal .content__bottom h2 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  padding: 0.3rem 0.7rem;
  background-color: #f5f5f5;
  white-space: normal;
  font-weight: 700;
  font-size: 2rem;
  word-break: break-all;
}

.zc-lp02 .modal .content__bottom h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.zc-lp02 .modal .content__bottom p {
  font-weight: 500;
  font-size: 1rem;
}

.zc-lp02 .modal .law__item {
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid #dfdfdf;
}

.zc-lp02 .modal .law__term {
  margin-right: 0.2rem;
}

.zc-lp02 .modal .law__term .law__text {
  width: 8rem;
  font-weight: bold;
  font-size: 1.2rem;
}

.zc-lp02 .modal .law__description .law__text,
.zc-lp02 .modal .law__description li {
  line-height: 1.5;
  font-size: 1rem;
}

@media (max-width: 1440px) {
  .zc-lp02 .modal .content__top h2,
  .zc-lp02 .modal .content__bottom h2 {
    font-size: 1.5rem;
  }

  .zc-lp02 .modal .content__top p {
    font-size: 0.8rem;
  }
}

@media (max-width: 960px) {
  .zc-lp02 .modal__bg {
    width: 97vw;
  }

  .zc-lp02 .modal__heading-text {
    font-size: 1.5rem;
  }

  .zc-lp02 .modal .law__term .law__text {
    width: 30vw;
    font-size: 1rem;
  }
}

@media (max-width: 567px) {
  .zc-lp02 .modal .law__description .law__text,
  .zc-lp02 .modal .law__description li {
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zc-lp02-interview__scroller {
    scroll-behavior: auto;
  }

  .zc-lp02__button {
    transition: none;
  }
}
