/**
 * Commerce Re:Main — page layout (FV, concept, speakers)
 */

.commerce-insight-fv {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
}

.commerce-insight-fv__image {
  display: block;
  width: 100%;
  height: auto;
}

.commerce-insight-fv__image--pc {
  display: none;
}

/* Figma SP FV btn_primary (5868:27321): 263×48, y=374 within kv_sp 482 → bottom 60px */
.commerce-insight-fv__cta-wrap {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  width: 263px;
  max-width: calc(100% - 112px);
}

.commerce-insight-fv__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  padding: 16px 32px;
  border: 0;
  border-radius: 4px;
  background: #0061ff;
  color: #ffffff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.05em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.06);
  transition:
    opacity 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

@media (hover: hover) {
  .commerce-insight-fv__cta:hover {
    opacity: 0.85;
    box-shadow:
      0 4px 6px rgba(0, 0, 0, 0.1),
      0 2px 4px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
  }
}

.commerce-insight-section {
  padding: 64px 24px;
}

.commerce-insight-section__inner {
  max-width: 936px;
  margin: 0 auto;
}

.commerce-insight-section__heading {
  display: block;
  width: auto;
  height: 36px;
  margin: 0 auto 32px;
}

.commerce-insight-section__heading img {
  display: block;
  height: 100%;
  width: auto;
  margin: 0 auto;
}

.commerce-insight-theme-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.commerce-insight-theme-section__3d {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000000 14%,
    #000000 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000000 14%,
    #000000 88%,
    transparent 100%
  );
}

.commerce-insight-theme-section__3d.is-ready {
  opacity: 1;
}

.commerce-insight-theme-section__3d canvas {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: center;
  transition:
    filter 0.12s linear,
    transform 0.12s linear;
  will-change: filter, transform;
}

.commerce-insight-theme-section > .commerce-insight-section__inner {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
}

.commerce-insight-theme-section__intro {
  max-width: none;
  width: 100%;
  align-self: stretch;
}

.commerce-insight-theme-section__grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.commerce-insight-theme-section__grid > * {
  min-width: 0;
}

@media (min-width: 1025px) {
  .commerce-insight-theme-section {
    padding-inline: 24px !important;
  }

  .commerce-insight-theme-section__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1367px) {
  .commerce-insight-theme-section {
    padding-inline: 96px !important;
  }

  .commerce-insight-theme-section__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.commerce-insight-timetable-section {
  position: relative;
  isolation: isolate;
  border-radius: 32px;
}

/* セクション全高（パディング含む）に背景を敷き、top 到達で画像だけ sticky */
.commerce-insight-timetable-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: #f7f9fa;
}

.commerce-insight-timetable-section__bg::before {
  content: "";
  display: block;
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  border-radius: inherit;
  background-image: url("/lp/assets/commerce-insight/images/backgrounds/bg_concept-statement-pc.webp");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
}

.commerce-insight-timetable-section__bg-video {
  display: none;
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
}

.commerce-insight-timetable-section__bg.is-video-active::before {
  display: none;
}

.commerce-insight-timetable-section__bg.is-video-active
  .commerce-insight-timetable-section__bg-video {
  display: block;
}

.commerce-insight-timetable-section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 936px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 40px 16px;
}

.commerce-insight-timetable-section__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.commerce-insight-timetable-section__heading {
  margin: 0;
}

.commerce-insight-timetable-section__heading img {
  display: block;
  height: 20px;
  width: auto;
}

.commerce-insight-timetable-section .commerce-insight-timetable {
  width: 100%;
  margin: 0;
}

@media (min-width: 1024px) {
  .commerce-insight-fv__image--sp {
    display: none;
  }

  .commerce-insight-fv__image--pc {
    display: block;
  }

  /* PC: 右固定フォームがあるため FV CTA は非表示 */
  .commerce-insight-fv__cta-wrap {
    display: none;
  }

  .commerce-insight-section {
    padding: 120px 24px;
  }

  .commerce-insight-section__inner {
    max-width: 1168px;
  }

  .commerce-insight-timetable-section__inner {
    align-items: flex-start;
    gap: 40px;
    padding: 64px 0 120px;
  }

  .commerce-insight-timetable-section__intro {
    align-items: flex-start;
    gap: 16px;
  }
}

#form-sp {
  border-radius: 32px;
}

.commerce-insight #form-sp .form-group > label,
.commerce-insight #new-view .form-group > label {
  font-weight: 400;
}

/* コントラスト AA: 「必須」は btnred より濃い赤に */
.commerce-insight .text-btnred {
  color: #e03128;
}

/* Timetable cards */
.commerce-insight-timetable-heading {
  display: flex;
  align-items: center;
  width: min(100%, 343px);
  height: 36px;
  padding-left: 8px;
  margin: 0 auto 24px;
}

.commerce-insight-timetable-heading img {
  display: block;
  width: 116px;
  height: 19px;
}

.commerce-insight-timetable-list {
  width: min(100%, 343px);
  margin-inline: auto;
}

#timetable.commerce-insight-section {
  padding-block: 40px;
  padding-inline: 16px;
}

.commerce-insight-timetable-card {
  position: relative;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}

.commerce-insight-timetable-card:last-child {
  margin-bottom: 0;
}

.commerce-insight-timetable-card__header {
  height: 54px;
  padding-inline: 16px;
}

.commerce-insight-timetable-card__header-inner {
  display: grid;
  grid-template-columns: 85.5px 85.5px 85.5px;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  border-bottom: 1px dashed #c6cad8;
}

.commerce-insight-timetable-card__session {
  display: block;
  width: 85.5px;
  height: 22px;
}

.commerce-insight-timetable-card__time,
.commerce-insight-timetable-card__theme {
  color: #0039b3;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

.commerce-insight-timetable-card__time {
  text-align: center;
}

.commerce-insight-timetable-card__theme {
  text-align: right;
}

.commerce-insight-timetable-card__body {
  position: relative;
  padding: 0 24px 8px;
}

.commerce-insight-timetable-card__topic {
  height: auto;
  padding-block: 24px;
  border-bottom: 1px dashed #e1e3e4;
}

.commerce-insight-timetable-card__title {
  color: #202531;
  font-size: 20px;
  font-weight: 700;
  font-feature-settings: "palt" 1;
  line-height: 1.5;
  letter-spacing: 0.5px;
}

.commerce-insight-timetable-card__description {
  margin-top: 8px;
  color: #592bcc;
  font-size: 14px;
  font-weight: 600;
  font-feature-settings: "palt" 1;
  line-height: 1.6;
  letter-spacing: 0.35px;
}

.commerce-insight-timetable-card__speakers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}

.commerce-insight-timetable-card__speaker {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  height: 144px;
}

.commerce-insight-timetable-card__portrait {
  width: 88px;
  height: 144px;
  flex: 0 0 88px;
  border-radius: 8px;
  overflow: hidden;
}

.commerce-insight-timetable-card__portrait .commerce-insight-portrait {
  width: 144px;
  height: 144px;
  margin-left: -28px;
}

.commerce-insight-timetable-card__speaker-info {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}

.commerce-insight-timetable-card__logo {
  display: flex;
  align-items: center;
  width: 100%;
  height: 32px;
}

.commerce-insight-timetable-card__logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 32px;
}

.commerce-insight-timetable-card__name {
  color: #202531;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.32px;
}

.commerce-insight-timetable-card__honorific {
  margin-left: 4px;
  font-size: 11px;
}

.commerce-insight-timetable-card__position {
  margin-top: 8px;
  color: #62687f;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
}

.commerce-insight-timetable-card__action {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  margin-right: -16px;
}

.commerce-insight-timetable-card__action .commerce-insight-open-detail-btn {
  box-sizing: border-box;
  height: 32px;
}

.commerce-insight-timetable-card__coming-soon {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 24px 32px;
  text-align: left;
}

.commerce-insight-timetable-card__coming-soon-title {
  margin: 0;
  color: #202531;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.5px;
  font-feature-settings: "palt" 1;
}

.commerce-insight-timetable-card__coming-soon-copy {
  margin: 0;
  color: #592bcc;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.35px;
}

@media (min-width: 1024px) {
  #timetable.commerce-insight-section {
    padding-block: 64px;
    padding-inline: 24px;
  }

  .commerce-insight-timetable-heading {
    width: min(100%, 790px);
    padding-left: 0;
    margin-bottom: 32px;
  }

  .commerce-insight-timetable-list {
    width: min(100%, 790px);
  }

  .commerce-insight-timetable-card {
    margin-bottom: 40px;
  }

  .commerce-insight-timetable-card__header {
    height: 64px;
    padding-inline: 48px;
  }

  .commerce-insight-timetable-card__header-inner {
    grid-template-columns: 93px 1fr auto;
    column-gap: 24px;
  }

  .commerce-insight-timetable-card__session {
    width: 93px;
    height: 24px;
  }

  .commerce-insight-timetable-card__time,
  .commerce-insight-timetable-card__theme {
    font-size: 14px;
    letter-spacing: 0.35px;
  }

  .commerce-insight-timetable-card__time {
    text-align: left;
  }

  .commerce-insight-timetable-card__body {
    padding: 0 48px 32px;
  }

  .commerce-insight-timetable-card__topic {
    height: 118px;
    padding-block: 24px;
  }

  .commerce-insight-timetable-card__title {
    font-size: 24px;
    letter-spacing: 0.96px;
  }

  .commerce-insight-timetable-card__description {
    font-size: 16px;
    letter-spacing: 0.4px;
  }

  .commerce-insight-timetable-card__speakers {
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    gap: 32px;
    margin-top: 16px;
    width: 100%;
  }

  .commerce-insight-timetable-card__speaker {
    width: auto;
    max-width: none;
    flex: 1 1 0;
    min-width: 0;
  }

  .commerce-insight-timetable-card__speaker-info {
    gap: 16px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .commerce-insight-timetable-card__name {
    font-size: 18px;
    letter-spacing: 0.36px;
    overflow-wrap: anywhere;
  }

  .commerce-insight-timetable-card__honorific {
    font-size: 12px;
  }

  .commerce-insight-timetable-card__position {
    margin-top: 16px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .commerce-insight-timetable-card__action {
    position: absolute;
    right: 8px;
    bottom: 8px;
    margin: 0;
  }

  .commerce-insight-timetable-card__action
    .commerce-insight-open-detail-btn {
    width: 112px;
    height: 40px;
    justify-content: center;
    padding: 4px 8px 4px 16px;
  }

  .commerce-insight-timetable-card__coming-soon {
    gap: 8px;
    padding: 24px 48px 32px;
  }

  .commerce-insight-timetable-card__coming-soon-title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.96px;
  }

  .commerce-insight-timetable-card__coming-soon-copy {
    font-size: 16px;
    letter-spacing: 0.4px;
  }
}

/* 右フォーム付きの狭い PC（〜1366px）: 余白を詰めてスピーカーを収める */
@media (min-width: 1025px) and (max-width: 1366px) {
  #timetable.commerce-insight-section {
    padding-inline: 16px;
  }

  .commerce-insight-timetable-card__header {
    padding-inline: 24px;
  }

  .commerce-insight-timetable-card__body {
    padding: 0 24px 32px;
  }

  .commerce-insight-timetable-card__speakers {
    gap: 16px;
  }

  .commerce-insight-timetable-card__coming-soon {
    padding: 24px 24px 32px;
  }
}
