/* ============================================================
   Regard 資料請求LP - styles
   ============================================================ */

/* ===== 基本設定 ===== */
:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f7f5f1;
  --color-text: #1a1a1a;
  --color-text-soft: #5a5a5a;
  --color-line: #e6e2da;
  --color-accent: #2c3a3a;          /* タグ・見出し下罫線などの補助アクセント */
  --color-accent-hover: #1a2424;
  --color-cta: #EF8200;             /* Regard Orange - CTAボタン専用（全媒体統一） */
  --color-cta-hover: #D67100;
  --color-new: #EF8200;             /* NEWバッジもRegard Orangeに統一 */
  --color-soft-bg: #faf8f4;
  --font-serif: 'Noto Serif JP', serif;  /* ファーストビュー h1 のみで使用 */
  --font-sans: 'Noto Sans JP', sans-serif;
  --maxw: 1080px;
  --radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== ヘッダー ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: var(--maxw); margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 28px;          /* ヘッダー高さ（上下14pxパディング）に馴染むサイズ */
  width: auto;           /* 縦横比を維持 */
  display: block;
}
.header-cta {
  background: var(--color-cta); color: #fff;
  padding: 8px 16px; font-size: 12px; border-radius: var(--radius);
  font-weight: 500;
}
.header-cta:hover { background: var(--color-cta-hover); }

/* ===== ファーストビュー ===== */
.hero {
  padding: 56px 0 64px;
  background: linear-gradient(180deg, var(--color-soft-bg) 0%, #fff 100%);
}
.hero-inner { text-align: center; }
.hero-tag {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.2em;
  padding: 4px 14px; border: 1px solid var(--color-accent);
  border-radius: 100px; color: var(--color-accent);
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-serif);   /* ファーストビューのみ明朝を保持 */
  font-size: clamp(28px, 5.5vw, 44px);
  font-weight: 700; line-height: 1.5;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: clamp(14px, 2.2vw, 16px);
  color: var(--color-text-soft);
  margin-bottom: 36px; line-height: 2;
}
.hero-visual {
  width: 100%; max-width: 720px;
  margin: 0 auto 28px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-soft);
  aspect-ratio: 16/9;          /* 横位置：スマホでFV1画面に冊子サムネまで収まる比率 */
}
.hero-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* 6冊サムネ横一覧 */
.book-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  max-width: 720px; margin: 0 auto 36px;
}
.book-thumb {
  aspect-ratio: 3/4;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  position: relative; text-align: center; padding: 10px 4px;
  font-family: var(--font-sans);
  transition: transform 0.2s, border-color 0.2s;
}
.book-thumb:hover { transform: translateY(-2px); border-color: var(--color-accent); }
.book-thumb-icon {
  width: 28px; height: 28px;
  color: var(--color-accent);
  flex-shrink: 0;
  object-fit: contain;          /* img用：縦横比を維持 */
}
/* PNG画像は透明余白を含むため、SVGと視覚的サイズを揃えるために一回り大きく */
img.book-thumb-icon { width: 44px; height: 44px; }
.book-thumb-text {
  font-size: 9px; line-height: 1.5;
  color: var(--color-text);
  letter-spacing: 0.02em;
}
.book-thumb.new {
  border-color: var(--color-cta);
  background: linear-gradient(180deg, #FFF4E5 0%, #fff 70%);
}
.book-thumb.new .book-thumb-icon { color: var(--color-cta); }
.book-thumb.new::before {
  content: 'NEW';
  position: absolute; top: -6px; right: -6px;
  background: var(--color-new); color: #fff;
  font-size: 9px; font-weight: 700;
  padding: 2px 6px; border-radius: 3px;
  font-family: var(--font-sans);
  letter-spacing: 0.05em;
}

/* CTA ボタン */
.cta-primary {
  display: inline-block;
  background: var(--color-cta); color: #fff;
  font-family: var(--font-sans);
  font-size: 16px; font-weight: 500;
  padding: 18px 44px;
  border-radius: var(--radius);
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.15s;
  border: none; cursor: pointer;
  box-shadow: 0 4px 12px rgba(239,130,0,0.25);
}
.cta-primary:hover { background: var(--color-cta-hover); transform: translateY(-1px); }
.cta-primary .arrow { margin-left: 6px; }
.cta-micro {
  font-size: 11px; color: var(--color-text-soft);
  margin-top: 14px; letter-spacing: 0.05em;
}

/* ===== セクション共通 ===== */
section { padding: 80px 0; }
.section-tag {
  font-size: 11px; letter-spacing: 0.2em;
  color: var(--color-accent); text-align: center;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-sans);
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700; line-height: 1.6;
  text-align: center; margin-bottom: 48px;
  letter-spacing: 0.04em;
}

/* ===== 6資料一覧 ===== */
.books { background: var(--color-bg-soft); }
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.book-card {
  background: #fff;
  border-radius: var(--radius);
  position: relative;
  border: 1px solid var(--color-line);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.book-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.book-card-cover {
  width: 100%;
  aspect-ratio: 4/3;            /* 余白を入れる前提で少し縦を取る */
  background: #fff;             /* 余白部分の色（白で抜け感を確保） */
  padding: 20px 22px;           /* 画像の周囲に余白 */
  overflow: hidden;
  position: relative;
}
.book-card-cover img {
  width: 100%; height: 100%;
  object-fit: contain;          /* 切らずに全体を見せる */
  display: block;
  transition: transform 0.3s;
}
.book-card:hover .book-card-cover img { transform: translateY(-3px); }
.book-card-body {
  padding: 24px 22px 26px;
  flex: 1;
  display: flex; flex-direction: column;
}
.book-card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--color-new); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 3px;
  letter-spacing: 0.08em;
  z-index: 1;
}
.book-card h3 {
  font-family: var(--font-sans);
  font-size: 17px; font-weight: 700;
  margin-bottom: 4px; line-height: 1.5;
}
.book-card-meta {
  font-size: 11px; color: var(--color-text-soft);
  margin-bottom: 10px;
}
.book-card p {
  font-size: 13px; line-height: 1.8;
  color: var(--color-text-soft);
}

/* CTA再設置 */
.cta-block { text-align: center; padding: 56px 0 0; }

/* ===== 選ばれる理由 ===== */
.reasons { background: var(--color-soft-bg); }
.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.reason-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--color-line);
}
.reason-icon {
  margin-bottom: 18px;
  color: var(--color-accent);
  display: flex; justify-content: center;
}
.reason-icon svg,
.reason-icon img {
  width: 48px; height: 48px;
  object-fit: contain;
}
/* PNG画像は透明余白を含むため、SVGと視覚的サイズを揃えるために一回り大きく */
.reason-icon img { width: 72px; height: 72px; }
/* 猫検定保持の建築家（差別化ポイント）はRegard Orangeでハイライト */
.reason-card:nth-child(2) .reason-icon { color: var(--color-cta); }
.reason-card h3 {
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 700;
  margin-bottom: 10px; line-height: 1.5;
}
.reason-card p {
  font-size: 12px; color: var(--color-text-soft);
  line-height: 1.8;
}

/* ===== 取得方法 ===== */
.delivery-table {
  max-width: 720px; margin: 0 auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.delivery-row {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  border-bottom: 1px solid var(--color-line);
}
.delivery-row:last-child { border-bottom: none; }
.delivery-row > div {
  padding: 20px;
  font-size: 13px; line-height: 1.7;
}
.delivery-row.head {
  background: var(--color-bg-soft);
  font-weight: 700;
  text-align: center;
}
.delivery-row.head > div:first-child { background: transparent; }
.delivery-row > div:first-child {
  font-weight: 500;
  background: var(--color-bg-soft);
}
.delivery-row > div:not(:first-child) {
  border-left: 1px solid var(--color-line);
  text-align: center;
}
.delivery-note {
  max-width: 720px;
  margin: 20px auto 0;
  font-size: 12px;
  color: var(--color-text-soft);
  line-height: 1.9;
  text-align: center;
}

/* ===== フォーム ===== */
.form-section { background: var(--color-bg-soft); }
.form-wrap {
  max-width: 640px; margin: 0 auto;
  background: #fff;
  padding: 48px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
}
.form-lead {
  text-align: center; font-size: 14px;
  color: var(--color-text-soft);
  margin-bottom: 32px; line-height: 2;
}
.form-placeholder {
  background: var(--color-bg-soft);
  border: 2px dashed var(--color-line);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-soft);
  line-height: 2;
}
.form-placeholder strong { color: var(--color-text); }
.form-placeholder iframe{
  min-height: 400px;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 720px; margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--color-line);
}
.faq-item:first-child { border-top: 1px solid var(--color-line); }
.faq-q {
  padding: 22px 8px 22px 0;
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  font-size: 20px; font-weight: 300;
  color: var(--color-accent);
  transition: transform 0.2s;
}
.faq-item[open] .faq-q::after { content: '−'; }
.faq-a {
  padding: 0 8px 22px 0;
  font-size: 13px;
  color: var(--color-text-soft);
  line-height: 2;
}

/* ===== 次のアクション ===== */
.next-actions { background: var(--color-soft-bg); }
.next-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 880px; margin: 0 auto;
}
.next-card {
  background: #fff;
  padding: 24px 16px;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
  transition: border-color 0.2s;
}
.next-card:hover { border-color: var(--color-accent); }
.next-icon {
  margin-bottom: 12px;
  color: var(--color-accent);
  display: flex; justify-content: center;
}
.next-icon svg { width: 28px; height: 28px; }
.next-card h4 {
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 700;
  margin-bottom: 4px;
}
.next-card p {
  font-size: 11px; color: var(--color-text-soft);
}

/* ===== フッター ===== */
.footer {
  background: var(--color-text);
  color: #fff;
  padding: 48px 0 32px;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-sans);
  font-size: 18px; font-weight: 700;
  letter-spacing: 0.1em; margin-bottom: 16px;
}
.footer-info {
  font-size: 12px; color: rgba(255,255,255,0.7);
  line-height: 2;
}
.footer-copy {
  font-size: 10px; color: rgba(255,255,255,0.4);
  margin-top: 24px; letter-spacing: 0.05em;
}

/* ===== レスポンシブ ===== */
@media (max-width: 960px) {
  .book-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }
  /* FV：1画面に「キャッチ＋メインビジュアル＋6冊サムネ＋CTA」が収まることを最優先 */
  .hero { padding: 28px 0 36px; }
  .hero-tag { margin-bottom: 16px; }
  .hero h1 { margin-bottom: 14px; }
  .hero-sub { margin-bottom: 22px; line-height: 1.8; }
  .hero-visual { margin-bottom: 20px; aspect-ratio: 16/9; }
  .book-strip { grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 24px; }
  .book-thumb { font-size: 8px; padding: 6px 3px; gap: 5px; }
  /* 狭幅カラムに合わせてアイコンを縮小（SVG / PNG とも） */
  .book-thumb-icon { width: 22px; height: 22px; }
  img.book-thumb-icon { width: 32px; height: 32px; }
  .cta-primary { padding: 14px 32px; font-size: 15px; }
  .cta-micro { font-size: 10px; margin-top: 10px; }
  /* 以下、その他のスマホ調整 */
  .book-grid { grid-template-columns: 1fr; gap: 20px; }
  .book-card-cover { aspect-ratio: 3/2; padding: 16px 18px; }
  .book-card-body { padding: 20px 18px 22px; }
  .reason-grid { grid-template-columns: repeat(2, 1fr); }
  .next-grid { grid-template-columns: repeat(2, 1fr); }
  .delivery-row { grid-template-columns: 1fr; }
  .delivery-row.head { display: none; }
  .delivery-row > div { border-left: none !important; text-align: left; }
  .form-wrap { padding: 32px 20px; }
  /* フォームのはみ出し防止＆iframeを切れにくく */
  .form-placeholder { padding: 16px; }
  .form-placeholder iframe { min-height: 520px; }
  .logo img { height: 24px; }
  .header-cta { display: none; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .reason-grid { grid-template-columns: 1fr; }
  /* 320〜380px幅でも6冊サムネが横一列で収まるよう最終調整 */
  .book-strip { gap: 4px; }
  .book-thumb { padding: 6px 2px; gap: 4px; }
  .book-thumb-text { font-size: 8px; letter-spacing: 0; }
  .book-thumb-icon { width: 18px; height: 18px; }
  img.book-thumb-icon { width: 26px; height: 26px; }
  .book-thumb.new::before { font-size: 8px; padding: 1px 4px; top: -5px; right: -4px; }
}
