@charset "UTF-8";

.whitepaper-page {
  background-color: var(--color-background-soft, #fffafa);
}

.wp-main {
  padding: 120px 0 80px;
}

.wp-container {
  width: min(1000px, calc(100% - 40px));
  margin: 0 auto;
}

.wp-page-title {
  margin: 0 0 20px;
  color: var(--color-accent, #e88a83);
  text-align: center;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
}

.wp-page-lead {
  margin: 0 0 50px;
  text-align: center;
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text, #231815);
}

/* カードグリッド (PC: 2カラム) */
.wp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* カード型スタイル */
.wp-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(57, 139, 212, 0.15);
}

.wp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(57, 139, 212, 0.2);
}

.wp-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #f0f0f0;
}

.wp-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.wp-card:hover .wp-card__thumb img {
  transform: scale(1.05);
}

.wp-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.wp-card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-text, #231815);
  margin: 0 0 20px;
}

.wp-card__btn {
  align-self: flex-start;
  display: inline-block;
  padding: 10px 24px;
  background-color: var(--color-primary, #398bd4);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 50px;
  transition: background-color 0.3s ease;
}

.wp-card:hover .wp-card__btn {
  background-color: var(--color-accent, #e88a83);
}

/* ====================================
   ホワイトペーパー 2カラム モーダル
   ==================================== */
.wp-modal[hidden] {
  display: none;
}

.wp-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.wp-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.wp-modal__content {
  position: relative;
  z-index: 1;
  width: min(1000px, 100%);
  max-height: calc(100dvh - 40px);
  background: #fff;
  border-radius: 16px;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* 閉じるボタン */
.wp-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--color-primary, #398bd4);
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.wp-modal__close:hover {
  background: var(--color-accent, #e88a83);
  transform: rotate(90deg);
}

.wp-modal__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  background: #fff;
}

.wp-modal__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.wp-modal__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* 2カラムレイアウト */
.wp-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 550px;
}

/* 左カラム：サムネイル＆資料概要 */
.wp-modal__col-left {
  padding: 40px;
  background-color: #f7fafd;
  border-right: 1px solid #e0ebf5;
  display: flex;
  flex-direction: column;
}

.wp-modal__thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid #d0e0f0;
}

.wp-modal__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wp-modal__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary, #398bd4);
  margin: 0 0 16px;
  line-height: 1.4;
}

.wp-modal__summary {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text, #231815);
}

/* 右カラム：Googleフォーム */
.wp-modal__col-right {
  padding: 20px;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.wp-modal__form-wrap {
  width: 100%;
  height: 100%;
  min-height: 500px;
}

.wp-modal__iframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: 0;
}

/* レスポンシブ (スマホ向け設定) */
@media screen and (max-width: 767px) {
  .wp-main {
    padding-top: 90px;
  }

  .wp-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .wp-modal__grid {
    grid-template-columns: 1fr;
  }

  .wp-modal__col-left {
    padding: 24px 20px;
    border-right: none;
    border-bottom: 1px solid #e0ebf5;
  }

  .wp-modal__col-right {
    padding: 10px 0;
  }

  .wp-modal__form-wrap,
  .wp-modal__iframe {
    min-height: 450px;
  }
}
