/* assets/css/documents-style.css */

/* =========================================
   共通設定
   ========================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヒーローエリア */
.doc-hero {
  background: #000;
  color: #fff;
  padding: 80px 0;
  margin-bottom: 60px;
}
.doc-hero h1 {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 15px;
}
.doc-hero p {
  font-size: 18px;
  opacity: 0.95;
  font-weight: bold;
}

/* =========================================
   一覧ページ用スタイル
   ========================================= */
.cat-section {
  margin-bottom: 100px;
}
.cat-title {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 40px;
  position: relative;
  padding-left: 30px;
  color: #000;
}
.cat-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: -5px;
  width: 10px;
  height: 100%;
  background: #fdd000;
  transform: skewX(-20deg);
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.doc-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s;
}
.doc-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-img {
  width: 100%;
  border-bottom: 1px solid #eee;
}
.card-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.card-txt {
  padding: 30px;
  flex-grow: 1;
}
.card-txt h3 {
  font-size: 26px;
  font-weight: 900;
  color: #000;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* ▼▼▼ 変更点：一覧ページの説明文を太く大きく ▼▼▼ */
.card-txt p {
  font-size: 18px; /* 16px -> 18px */
  font-weight: 900; /* bold -> 900（極太） */
  color: #000;
  line-height: 1.8;
  margin-bottom: 0;
}

/* ボタン共通 */
.btn-dl {
  display: block;
  background: #111;
  color: #fff;
  text-align: center;
  padding: 22px 0;
  margin: 0 30px 30px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
  transition:
    opacity 0.3s,
    background 0.3s;
  position: relative;
}
.btn-dl:hover {
  background: #333;
  opacity: 1;
}
.btn-dl::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: rotate(45deg);
  margin-left: 10px;
  position: relative;
  top: -2px;
}

/* =========================================
   詳細ページ用スタイル
   ========================================= */
.detail-area {
  margin-bottom: 100px;
}
.detail-flex {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

/* 左カラム：本文 */
.detail-left {
  width: 60%;
  flex: 1;
}
.detail-title {
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 30px;
  border-left: 10px solid #fdd000;
  padding-left: 25px;
  line-height: 1.4;
  color: #000;
}

/* ▼▼▼ 変更点：詳細ページの説明文（本文）を太く大きく ▼▼▼ */
.detail-body {
  margin-bottom: 50px;
  font-size: 20px; /* 18px -> 20px */
  line-height: 1.8;
  font-weight: bold; /* 太字に固定 */
  color: #000; /* 真っ黒に */
}

.detail-thumb img {
  width: 100%;
  height: auto;
  border: 1px solid #eee;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* 右カラム：フォーム */
.detail-right {
  width: 400px;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
}
.form-box {
  background: #f0f0f0; /* 背景色（濃いめ） */
  padding: 50px 40px;
  border-radius: 4px;
}
.form-note {
  font-size: 14px; /* 注釈も少し大きく */
  color: #000; /* 注釈も黒く */
  margin-top: 20px;
  line-height: 1.6;
  font-weight: bold; /* 注釈も太く */
}

/* 関連資料エリア */
.related-area {
  border-top: 1px solid #eee;
  padding-top: 80px;
  margin-bottom: 80px;
}
.related-area h2 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 50px;
  text-align: center;
}

/* =========================================
   フォーム内パーツ（Contact Form 7）
   ========================================= */
.form-row {
  margin-bottom: 30px;
}
.form-row label {
  display: block;
  font-size: 18px; /* ラベルさらに大きく */
  font-weight: 900;
  margin-bottom: 10px;
  color: #000;
}

/* 必須バッジ */
.required-badge {
  background: #e8383d;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  margin-left: 10px;
  vertical-align: middle;
  border-radius: 2px;
  font-weight: bold;
}

/* 姓・名を横並びにする */
.name-cols {
  display: flex;
  gap: 15px;
}
.name-cols .wpcf7-form-control-wrap {
  flex: 1;
}

/* 入力フィールドのデザイン */
.wpcf7-text,
.wpcf7-email,
.wpcf7-tel {
  width: 100%;
  padding: 16px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 18px; /* 入力文字さらに大きく */
  font-weight: bold;
  box-sizing: border-box;
  border-radius: 0;
  appearance: none;
  color: #000;
}
.wpcf7-text:focus,
.wpcf7-email:focus,
.wpcf7-tel:focus {
  border-color: #000;
  outline: 2px solid #ddd;
}

/* 送信ボタンのデザイン */
.form-submit {
  margin-top: 40px;
}
.wpcf7-submit {
  width: 100%;
  background: #111;
  color: #fff;
  border: none;
  padding: 22px;
  font-size: 20px; /* ボタン文字さらに大きく */
  font-weight: 900;
  cursor: pointer;
  transition: opacity 0.3s;
  appearance: none;
}
.wpcf7-submit:hover {
  opacity: 0.8;
}

/* プライバシーチェックボックス周り */
.privacy-check {
  font-size: 15px; /* ここも大きく */
  font-weight: bold;
  margin-top: 30px;
  color: #000;
}
.privacy-check a {
  color: #0044cc;
  text-decoration: underline;
}

/* =========================================
   レスポンシブ設定
   ========================================= */
@media (max-width: 900px) {
  .doc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-flex {
    flex-direction: column;
  }
  .detail-left,
  .detail-right {
    width: 100%;
  }
  .form-box {
    padding: 30px 20px;
  }
}

@media (max-width: 600px) {
  .doc-grid {
    grid-template-columns: 1fr;
  }
  .card-txt {
    padding: 20px;
  }
  .btn-dl {
    margin: 0 20px 20px;
  }
  .doc-hero h1 {
    font-size: 32px;
  }
  .detail-title {
    font-size: 28px;
  }
}
