/* ======================================================
   single-resource.css  資料ダウンロードページ
====================================================== */

/* ------------------------------
   ベース設定
------------------------------ */
.single-resource {
  background-color: #fafafa;
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
}

/* ------------------------------
   タイトル
------------------------------ */
.single-resource .post-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 0;
}

.single-resource .post-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin: 0 0 24px 0;
  line-height: 1.4;
  text-align: center;
}

/* ------------------------------
   レイアウト（2カラム）
------------------------------ */
.resource-body {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

@media (max-width: 768px) {
  .resource-body {
    flex-direction: column;
    padding: 16px 16px 48px;
    gap: 32px;
  }
}

/* 左：本文・画像 */
.main-column {
  flex: 1.2;
  min-width: 0;
}

.post-thumbnail {
  margin-bottom: 24px;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* 右：フォームカード */
.form-area {
  flex: 1;
  background: #fff;
  padding: 32px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: sticky;
  top: 110px;
}

@media (max-width: 768px) {
  .form-area {
    width: 100%;
    position: static;
  }
}

/* ------------------------------
   ページ数・更新日（インライン）
------------------------------ */
.resource-meta-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 15px;
  color: #666;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
}

.resource-meta-inline .label-badge {
  background: #f0f0f0;
  color: #333;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
}

.resource-meta-inline .label-value {
  font-weight: 500;
  font-size: 15px;
  color: #333;
}

/* ------------------------------
   詳細メタ情報（対象者・内容・ポイント）
------------------------------ */
.resource-meta {
  font-size: 15px;
  color: #333;
  margin-bottom: 32px;
}

.resource-meta .meta-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.resource-meta .meta-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.resource-meta .label-badge {
  flex-shrink: 0;
  width: 140px;
  background: #e8f4f8;
  color: #0098BB;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
  margin-right: 16px;
}

.resource-meta .label-value {
  flex: 1;
  line-height: 1.7;
  padding-top: 6px;
}

@media (max-width: 768px) {
  .resource-meta .meta-row {
    flex-direction: column;
    gap: 8px;
  }

  .resource-meta .label-badge {
    width: auto;
    align-self: flex-start;
  }

  .resource-meta .label-value {
    padding-top: 0;
  }
}

/* ------------------------------
   本文
------------------------------ */
.post-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.post-content p {
  margin-bottom: 1.5em;
}

/* ------------------------------
   フォーム構造
------------------------------ */
.form-area label {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  display: block;
  margin-bottom: 6px;
}

.form-area input[type="text"],
.form-area input[type="email"],
.form-area input[type="tel"],
.form-area select,
.form-area textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-area input:focus,
.form-area select:focus,
.form-area textarea:focus {
  outline: none;
  border-color: #0098BB;
  box-shadow: 0 0 0 3px rgba(0,152,187,0.15);
}

/* 行間 */
.form-row {
  margin-bottom: 20px;
}

.name-row {
  display: flex;
  gap: 12px;
}

.name-row > div {
  flex: 1;
}

/* ラジオ・チェックボックス */
.radio-list,
.checkbox-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.radio-list li,
.checkbox-list li {
  margin-bottom: 8px;
  font-size: 14px;
}

.radio-list input,
.checkbox-list input {
  margin-right: 8px;
}

/* 同意チェック */
.check-row label {
  font-size: 13px;
  color: #666;
  font-weight: 400;
}

.check-row a {
  color: #0098BB;
  text-decoration: underline;
}

.check-row a:hover {
  text-decoration: none;
}

/* 送信ボタン */
.form-area .c-button,
.form-area button[type="submit"] {
  display: block;
  width: 100%;
  background-color: #EA526F;
  color: #fff;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.25s ease;
  margin-top: 24px;
}

.form-area .c-button:hover,
.form-area button[type="submit"]:hover {
  background-color: #d1445e;
}

/* ------------------------------
   Pardotフォーム埋め込み対応
------------------------------ */
.form-embed iframe {
  width: 100% !important;
  min-height: 600px;
  border: none;
}

.form-embed form {
  font-family: inherit;
}

.form-embed .form-field,
.form-embed .pd-text,
.form-embed .pd-select {
  margin-bottom: 16px;
}

.form-embed input[type="text"],
.form-embed input[type="email"],
.form-embed input[type="tel"],
.form-embed select,
.form-embed textarea {
  width: 100% !important;
  padding: 12px 14px !important;
  border: 1px solid #ccc !important;
  border-radius: 6px !important;
  font-size: 15px !important;
  box-sizing: border-box !important;
}

.form-embed input[type="submit"],
.form-embed button[type="submit"] {
  background-color: #EA526F !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 14px 24px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  width: 100% !important;
}

.form-embed input[type="submit"]:hover,
.form-embed button[type="submit"]:hover {
  background-color: #d1445e !important;
}

/* ------------------------------
   スマホ対応
------------------------------ */
@media (max-width: 768px) {
  .single-resource .post-header {
    padding: 24px 16px 0;
  }

  .single-resource .post-title {
    font-size: 22px;
  }

  .resource-meta-inline {
    font-size: 14px;
  }

  .resource-meta {
    font-size: 14px;
  }

  .post-content {
    font-size: 15px;
  }
}

/* ------------------------------
   LPフッター（シンプル版）
------------------------------ */
.lp-footer {
  background: #f7f6f4;
  padding: 40px 20px;
  text-align: center;
}

.lp-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.lp-footer small {
  font-size: 13px;
  color: #666;
}
