/* ============================================================
   shared.css — bpaas / career / hp 共通スタイル
============================================================ */

/* ============================================================
   二カラムレイアウト（サイドバーあり）
============================================================ */

.page-layout {
  display: flex;
  align-items: stretch;
}

.page-layout__main {
  flex: 1;
  min-width: 0;
}

.page-layout__main .container {
  max-width: var(--container-max);
}

.page-layout__sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: #fff;
  border-left: 1px solid #eee;
  position: relative;
  z-index: var(--z-sidebar);
}

/* ---- サイドバー内部（sticky） ---- */
.page-sidebar {
  padding: 20px;
  position: sticky;
  top: calc(var(--header-height) + 8px);
}

/* ============================================================
   ファーストビュー（全幅フェードスライダー型）
============================================================ */

.page-fv {
  position: relative;
  overflow: hidden;
  min-height: 580px;
  display: flex;
  flex-direction: column;
}

/* ---- 背景写真スライダー ---- */
.page-fv__photo-wrap {
  position: absolute;
  inset: 0;
  z-index: var(--z-fv-bg);
}

.page-fv__swiper {
  width: 100%;
  height: 100%;
}

.page-fv__swiper .swiper-slide {
  width: 100%;
  height: 100%;
}

.page-fv__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

.page-fv__overlay {
  position: absolute;
  inset: 0;
  z-index: var(--z-fv-overlay);
  background: linear-gradient(90deg,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0) 100%);
}

/* ---- コンテンツレイヤー ---- */
.page-fv__inner {
  position: relative;
  z-index: var(--z-fv-content);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-fv__inner .container {
  flex: 1;
  display: flex;
  gap: 20px;
  flex-direction: column;
  justify-content: center;
}

/* ---- ヘッドライン ---- */
.page-fv__top {
  max-width: 55%;
}

.page-fv__title {
  font-weight: bold;
  font-size: 50px;
  color: #fff;
  line-height: 1.4;
  letter-spacing: 0.055em;
  margin: 0;
  font-feature-settings: "palt" 1;
}

/* ---- 下部レイアウト ---- */
.page-fv__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.page-fv__bottom-left {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* ---- CTAボタン ---- */
.page-fv__ctas {
  display: flex;
  gap: 10px;
}

.page-fv__btn {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  height: 60px;
  padding: 0 20px;
  border-radius: var(--radius-card);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: var(--shadow-btn);
  transition: var(--transition-opacity);
  box-sizing: border-box;
}

.page-fv__btn:hover {
  opacity: 0.85;
}

.page-fv__btn--yellow {
  background: var(--color-btn-yellow);
  color: #fff;
}

.page-fv__btn--teal {
  background: var(--color-primary);
  color: #fff;
}

/* ---- UIスクリーンショット ---- */
.page-fv__screens {
  position: absolute;
  right: 40px;
  bottom: 0;
  z-index: var(--z-fv-screen);
}

.page-fv__screen {
  display: block;
  width: auto;
  height: auto;
  max-height: 320px;
}

/* ============================================================
   中間CTA（.cta-mid）
============================================================ */

.cta-mid {
  padding: 0 0 80px;
  background: #fff;
}

.cta-mid__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: var(--grad-cta-mid);
  border-radius: var(--radius-card);
  padding: 40px 60px 40px 50px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition-opacity);
}

.cta-mid__card:hover {
  opacity: 0.9;
}

.cta-mid__left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.cta-mid__thumb {
  flex-shrink: 0;
  width: 160px;
  border-radius: var(--radius-btn);
  overflow: hidden;
}

.cta-mid__thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.cta-mid__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-mid__headline {
  font-weight: 700;
  font-size: 30px;
  color: #fff;
  line-height: 1.4;
  letter-spacing: 0.05em;
  font-feature-settings: "palt" 1;
  margin: 0;
}

.cta-mid__sub {
  font-weight: 500;
  font-size: 14px;
  color: #fff;
  line-height: 1.75;
  letter-spacing: 0.05em;
  font-feature-settings: "palt" 1;
  margin: 0;
}

.cta-mid__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  height: 70px;
  padding: 0 20px;
  background: #fff;
  border-radius: var(--radius-btn);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text);
  white-space: nowrap;
  letter-spacing: 0.04em;
  box-sizing: border-box;
}

/* ============================================================
   Tablet  (max-width: 1199px)
============================================================ */
@media (max-width: 1199px) {
  .page-fv__title {
    font-size: 38px;
  }

  .page-layout {
    flex-direction: column;
  }

  .page-layout__sidebar {
    display: none;
  }

  .page-fv__screen {
    display: none;
  }

  .cta-mid__card {
    padding: 32px 40px;
    gap: 30px;
  }

  .cta-mid__thumb {
    width: 120px;
  }

  .cta-mid__headline {
    font-size: 24px;
  }
}

/* ============================================================
   Mobile  (max-width: 767px)
============================================================ */
@media (max-width: 767px) {

  /* Breadcrumb */
  .page-breadcrumb {
    padding-top: calc(var(--header-height, 72px) + 0px);
    padding-bottom: 12px;
  }

  .page-breadcrumb__list {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  /* page-fv */
  .page-fv {
    min-height: auto;
  }

  .page-fv__inner {
    padding: 60px 0;
  }

  .page-fv__top {
    max-width: 100%;
  }

  .page-fv__title {
    font-size: 32px;
    letter-spacing: 0.04em;
  }

  .page-fv__bottom-left {
    gap: 28px;
  }

  .page-fv__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .page-fv__ctas {
    flex-direction: column;
    gap: 10px;
  }

  .page-fv__btn {
    width: 100%;
    justify-content: center;
  }

  .page-fv__screens {
    display: none;
  }

  /* cta-mid */
  .cta-mid {
    padding: 0 0 48px;
  }

  .cta-mid__card {
    flex-direction: column;
    align-items: center;
    padding: 28px 20px;
    gap: 20px;
  }

  .cta-mid__left {
    flex-direction: column;
    gap: 16px;
  }

  .cta-mid__thumb {
    width: 100px;
  }

  .cta-mid__headline {
    font-size: 20px;
  }

  .cta-mid__btn {
    width: 100%;
    justify-content: center;
    height: 56px;
  }

  /* page-layout */
  .page-layout {
    flex-direction: column;
  }

  .page-layout__sidebar {
    display: none;
  }

  /* CTA Section */
  .cta__card {
    flex-direction: column;
    padding: 40px 20px;
    gap: 24px;
  }

  .cta__title {
    font-size: 24px;
  }

  .cta__btn {
    width: 100%;
    justify-content: center;
  }

  /* Feature Section */
  .feature {
    padding: 60px 0 80px;
  }

  .feature__block {
    flex-direction: column;
    gap: 30px;
  }

  .feature__block--reverse {
    flex-direction: column;
  }

  .feature__block-img-grid {
    width: 100%;
    height: 280px;
    flex: none;
  }

  .feature__block-img-wrap {
    width: 100%;
    height: auto;
    flex: none;
    padding: 24px;
  }

  .feature__block-heading {
    font-size: 32px;
  }

  .feature__stat-cards {
    flex-direction: column;
  }

  .feature__stat-number {
    font-size: 80px;
  }

  /* Service Section */
  .service {
    padding: 60px 0;
  }

  .service__card {
    flex-direction: column;
    gap: 24px;
  }

  .service__card-img {
    width: 100%;
    height: 220px;
  }

  .service__card-heading {
    font-size: 40px;
  }

  /* Company Section */
  .company {
    padding: 60px 0;
  }

  .company__inner {
    flex-direction: column;
    gap: 40px;
  }

  .company__row {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .company__label {
    width: 100%;
    color: rgba(42, 45, 42, 0.5);
    font-size: 13px;
  }

  /* News Section */
  .news {
    padding: 60px 0;
  }

  .news__title {
    font-size: 24px;
  }

  .news__item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .news__item-title {
    width: 100%;
    white-space: normal;
  }

  /* biz-cta（共通CTAコンポーネント） */
  .biz-cta__download {
    flex-direction: column !important;
    padding: 40px 20px !important;
  }

  .biz-cta__download-img {
    display: none !important;
  }

  .biz-cta__download-heading {
    font-size: 28px !important;
  }

  .biz-cta__bottom {
    flex-direction: column !important;
  }

  .biz-cta__col {
    padding: 40px 20px !important;
  }

  .biz-cta__col-heading {
    font-size: 28px !important;
  }

  .biz-cta__btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* shared sidebar */
  .page-sidebar,
  .match-sidebar,
  .study-sidebar {
    display: none;
  }

  /* section-divider */
  .section-divider {
    height: 6px;
  }
}