/* ==========================================================
   資料請求ページ & サンクスページ 共通スタイル
   ========================================================== */

/* ── リセット・ベース ───────────────────────────────────── */
.req-page,
.thanks-page {
  background: #fff;
  color: #111;
  font-family: 'Noto Sans JP', sans-serif;
  min-height: 100vh;
}

/* ── ページヘッダー ─────────────────────────────────────── */
.req-header {
  width: 100%;
  padding: 18px 40px;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.req-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.req-logo img {
  height: 32px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  /* カスタムロゴが白の場合は反転 */
  filter: invert(1);
}

.req-logo-text {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #111;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.req-logo-icon {
  width: 26px;
  height: 26px;
  background: #111;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── 2カラムレイアウト ──────────────────────────────────── */
.req-body {
  display: flex;
  min-height: 100vh;
}

/* 左カラム */
.req-left {
  flex: 0 0 55%;
  background: #f7f7f7;
  padding: 60px 56px;
  max-width: 50%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.req-thumbnail {
  width: 100%;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
}

.req-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

/* サムネがない場合のプレースホルダー */
.req-thumbnail-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.req-thumbnail-placeholder-icon {
  opacity: 0.25;
}

.req-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.req-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #555;
  border: 1px solid #ccc;
  padding: 4px 12px;
  border-radius: 20px;
  width: fit-content;
}

.req-title {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.45;
  color: #111;
  margin: 0;
}

.req-desc {
  font-size: 0.92rem;
  line-height: 1.85;
  color: #444;
  margin: 0;
}

.req-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.req-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.55;
}

.req-benefits li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: #111;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23fff' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* 右カラム */
.req-right {
    flex: 0 0 45%;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 24px;
    background: #fff;
}

.req-form-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.req-form-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
  margin: 0;
}

.req-form-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #111;
  margin: 0;
  line-height: 1.35;
}

.req-form-subtitle {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ── CF7 フォームスタイル (白黒ベース) ─────────────────── */
.req-right .wpcf7-form .fv-form-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 10px;
}

.req-right .wpcf7-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.req-right .wpcf7-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.req-right .wpcf7-form .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.03em;
}

.req-right .wpcf7-form .form-required {
  font-size: 0.72rem;
  color: #888;
  font-weight: 400;
  margin-left: 4px;
}

.req-right .wpcf7-form .form-input,
.req-right .wpcf7-form input[type="text"],
.req-right .wpcf7-form input[type="email"],
.req-right .wpcf7-form input[type="tel"],
.req-right .wpcf7-form textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 1em;
  color: #111;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Noto Sans JP', sans-serif;
  box-sizing: border-box;
}

.req-right .wpcf7-form .wpcf7-select {
  width: 100%;
  height: 39px;
  padding: 0 36px 0 12px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #111;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1em;
  box-sizing: border-box;
}

.req-right .wpcf7-form .wpcf7-select:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.08);
}

.req-right .wpcf7-form .form-input:focus,
.req-right .wpcf7-form input:focus,
.req-right .wpcf7-form textarea:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.08);
}

.req-right .wpcf7-form input[type="submit"],
.req-right .wpcf7-form .wpcf7-submit {
  width: 100%;
  padding: 13px 24px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.06em;
  margin-top: 8px;
}

.req-right .wpcf7-form input[type="submit"]:hover {
  background: #333;
  transform: translateY(-1px);
}

.req-right .wpcf7-form .wpcf7-not-valid-tip {
  font-size: 0.75rem;
  color: #c0392b;
  margin-top: 3px;
}

.req-right .wpcf7-form .wpcf7-response-output {
  font-size: 0.8rem;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.req-privacy {
  text-align: center;
  font-size: 11px;
  color: #aaa;
  margin-top: 4px;
}

.req-privacy a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* ── サンクスページ ─────────────────────────────────────── */
.thanks-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 65px);
  padding: 60px 24px;
  text-align: center;
}

.thanks-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

.thanks-title {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #111;
  margin: 0 0 12px;
}

.thanks-subtitle {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.85;
  margin: 0 0 32px;
  max-width: 480px;
}

.thanks-user-info {
  background: #f7f7f7;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 24px 40px;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 320px;
  text-align: left;
}

.thanks-user-info dt {
  font-size: 0.75rem;
  font-weight: 700;
  color: #888;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.thanks-user-info dd {
  font-size: 0.95rem;
  color: #111;
  margin: 0 0 4px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8e8e8;
}

.thanks-user-info dd:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.thanks-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Noto Sans JP', sans-serif;
  transition: background 0.2s;
  letter-spacing: 0.05em;
}

.thanks-back-btn:hover {
  background: #333;
  color: #fff;
}

.thanks-cta {
  margin-top: 12px;
  margin-bottom: 8px;
}

.thanks-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.1em;
  border-radius: 2px;
  transition: background 0.25s, gap 0.25s;
}

.thanks-cta-link:hover {
  background: #333;
  gap: 18px;
}

/* ── レスポンシブ ────────────────────────────────────────── */
@media (max-width: 860px) {
  .req-header {
    padding: 14px 20px;
  }

  .req-body {
    flex-direction: column;
  }

  .req-left {
    flex: none;
    padding: 36px 24px;
    max-width: 100%;
    border-right: none;
    border-bottom: 1px solid #e8e8e8;
    gap: 20px;
  }

  .req-right {
    flex: none;
    padding: 36px 24px;
  }

  .req-right .wpcf7-form .form-row {
    grid-template-columns: 1fr;
  }

  .thanks-user-info {
    min-width: auto;
    width: 100%;
    padding: 20px;
  }
}