@charset "UTF-8";

/**
 * ホワイトペーパー一覧ページ専用スタイルシート
 *
 * 1カラムレイアウト（全幅ヘッダー + 3列グリッド）
 * 配色: Shwat Teal (#0184CE)
 *
 * @package SWELL Child
 * @since 1.0.0
 */

/* ==================================================
   基本設定
================================================== */

.whitepaper-list-page {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  background-color: #fff;
}

/* SWELLのデフォルトコンテナpadding無効化 */
#content.l-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: none !important;
}

#main-content {
  width: 100% !important;
  padding-bottom: 80px;
  /* フッターとの余白 */
}

#sidebar {
  display: none !important;
}

/* ==================================================
   ページヘッダー
================================================== */

.whitepaper-list-header {
  background-color: #f7f7f7;
  background-image: url('../images/bg-whitepaper-header-new.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding: 80px 20px;
  text-align: center;
  border-bottom: 1px solid #eee;
  margin-bottom: 60px;
}

.whitepaper-list-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.whitepaper-list-header .page-title {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.5;
}

.whitepaper-list-header .page-description {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* ==================================================
   ホワイトペーパー一覧セクション
================================================== */

.whitepaper-list-section .container {
  max-width: 1200px;
  /* コンテンツ幅を制限 */
  margin: 0 auto;
  padding: 0 20px;
}

/* グリッドレイアウト */
.whitepaper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* ホワイトペーパーカード */
.whitepaper-card {
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.whitepaper-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
  border-color: #0184CE;
}

/* カテゴリーラベル (カード内上部などに配置する場合。現状のHTML構造に合わせてposition absolute等は使わず、フローで配置) */
.whitepaper-category {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.category-label {
  display: inline-block;
  background-color: rgba(1, 132, 206, 0.9);
  /* Shwat Blue with opacity */
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 2px;
}

/* サムネイル画像 */
.whitepaper-thumbnail-link {
  display: block;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  /* カテゴリーラベル配置用 */
}

.whitepaper-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  /* アスペクト比固定 */
  background-color: #f0f0f0;
}

.whitepaper-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.whitepaper-card:hover .whitepaper-thumbnail img {
  transform: scale(1.05);
}

/* カード本文 */
.whitepaper-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* タイトル */
.whitepaper-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.5;
}

.whitepaper-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.whitepaper-card:hover .whitepaper-title a {
  color: #0184CE;
}

/* 説明文 */
.whitepaper-description {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  /* ボタンを下揃えにするために伸長 */
}

/* ダウンロードボタン */
.whitepaper-button-wrapper {
  margin-top: auto;
  text-align: center;
}

.whitepaper-download-button {
  display: block;
  width: 100%;
  padding: 12px 0;
  background-color: #0184CE;
  border: 1px solid #0184CE;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-align: center;
}

.whitepaper-download-button:hover {
  background-color: #fff;
  color: #0184CE;
}

.whitepaper-download-button i {
  margin-right: 8px;
}

/* ==================================================
   レスポンシブデザイン
================================================== */

/* タブレット（900px以下） */
@media (max-width: 900px) {
  .whitepaper-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* スマホ（599px以下） */
@media (max-width: 599px) {
  .whitepaper-list-header {
    padding: 40px 15px;
    margin-bottom: 40px;
  }

  .whitepaper-list-header .page-title {
    font-size: 24px;
  }

  .whitepaper-list-header .page-description {
    font-size: 14px;
    text-align: left;
  }

  .whitepaper-grid {
    grid-template-columns: 1fr;
    /* 1列 */
    gap: 20px;
  }

  .whitepaper-card-body {
    padding: 15px;
  }

  .whitepaper-title {
    font-size: 16px;
  }
}