/* ==========================================================================
   テーマ変数 — 書籍ごとにここだけ書き換える
   ========================================================================== */
:root {
  --accent-color: #7d5a8c;
  --accent-color-dark: #4a3752;
  --accent-color-light: #f4effa;
  --accent-color-mid: #ba84b8;
  --dark-bg: #1a1a1a;
  --dark-bg-soft: #2a2a2a;
  --text-color: #333333;
  --text-color-light: #666666;
  --bg-color: #ffffff;
  --bg-color-soft: #f7f5f3;
  --border-color: #e0dcd8;
  --font-heading: "游明朝", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-body: "Noto Sans JP", "游ゴシック体", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  --max-width: 1100px;
  --radius: 12px;
  --radius-asym: 8px 32px 8px 32px;
  --fv-bg-fallback: #f2efe8;
  --fv-title-color: #221a10;
  --hook-bg-color: #f6f3f7;
  --hook-emphasis-color: #3a2e10;
  --highlight-color: #f7e6a3;
  --quote-mark-color: #ddc7e8;
  --accent-color-deep: #241a29;
}

/* ==========================================================================
   リセット・共通
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
}

body {
  font-family: var(--font-body);
  font-size: 1.6rem;
  color: var(--text-color);
  line-height: 1.8;
  background: var(--bg-color);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 4.4rem;
  text-align: center;
  margin-bottom: 80px;
  letter-spacing: 0.05em;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent-color);
  margin: 20px auto 0;
}

.hook__heading::after {
  content: none;
}

.section-title--light {
  color: #fff;
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   CTAボタン
   ========================================================================== */
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-color-mid), var(--accent-color), var(--accent-color-dark));
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  padding: 16px 64px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: background-position 0.4s ease;
  background-size: 200% 200%;
  background-position: 0% 0%;
}

.cta-button:hover {
  background-position: 100% 100%;
}

/* ==========================================================================
   1. FV（ファーストビュー）
   ========================================================================== */
.fv {
  padding: 0;
  background: var(--fv-bg-fallback) url("../images/bg-main.jpg") center / cover no-repeat;
  text-align: center;
}

@keyframes fv-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fv__ribbon,
.fv__row,
.fv__lead,
.fv__cta {
  animation: fv-fade-up 0.7s ease both;
}

.fv__ribbon {
  animation-delay: 0.1s;
}

.fv__row {
  animation-delay: 0.25s;
}

.fv__lead {
  animation-delay: 0.5s;
}

.fv__cta {
  animation-delay: 0.65s;
}

.fv__ribbon img {
  width: 85%;
  display: block;
  margin: 0 auto 24px;
}

.fv .inner {
  padding-top: 40px;
  padding-bottom: 28px;
}

.fv__row {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.fv__col--text {
  flex: 1 1 54%;
  min-width: 0;
}

.fv__sub-badges {
  width: 100%;
  display: block;
  margin-bottom: 32px;
}

.fv__title-lockup {
  width: 100%;
  display: block;
}

.fv__title-lockup--sp {
  display: none;
}

.fv__subtitle {
  color: var(--fv-title-color);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1.2;
}

.fv__subtitle--sp {
  display: none;
}

.fv__col--visual {
  position: relative;
  flex: 0 0 37%;
  margin-top: 20px;
}

.fv__cover {
  width: 100%;
  display: block;
}

.fv__cover-badge {
  position: absolute;
  top: -32px;
  left: -14px;
  width: 34%;
}

.fv__lead {
  color: #000;
  font-size: 2rem;
  line-height: 2;
  margin-top: 28px;
}

.fv__cta {
  padding: 28px 0;
}

.fv__cta--sp {
  display: none;
  text-align: center;
}

/* ==========================================================================
   2. フック引用セクション
   ========================================================================== */
.hook {
  background: var(--hook-bg-color);
}

.hook__heading {
  color: var(--accent-color);
}

.hook__lead {
  font-size: 1.8rem;
  text-align: center;
  line-height: 2;
  margin-bottom: 48px;
}

.hook__lead b {
  color: var(--hook-emphasis-color);
  background: linear-gradient(transparent 65%, var(--highlight-color) 65%);
}

.hook__quote {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  padding: 56px 64px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.hook__quote::before {
  content: "\201C";
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: Georgia, serif;
  font-size: 18rem;
  line-height: 1;
  color: var(--quote-mark-color);
  z-index: 0;
  pointer-events: none;
}

.hook__quote-text {
  position: relative;
  z-index: 1;
  font-size: 1.8rem;
  line-height: 2;
  text-align: center;
  font-style: normal;
}

.hook__quote-author {
  margin-top: 20px;
  font-size: 1.4rem;
  color: var(--text-color-light);
}

.hook__quote-text b {
  color: var(--accent-color);
}

/* ==========================================================================
   OPTIONAL: 世間の思い込み vs 現実 比較セクション
   ========================================================================== */
.gap {
  background: var(--dark-bg);
  color: #fff;
}

.gap__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.gap__col {
  padding: 44px 40px;
  background: var(--dark-bg-soft);
  border-radius: var(--radius-asym);
}

.gap__col--fact {
  background: linear-gradient(155deg, var(--accent-color-dark) 0%, var(--accent-color-deep) 100%);
}

.gap__col-title {
  padding-left: 16px;
  border-left: 3px solid rgba(255, 255, 255, 0.25);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
}

.gap__col--fact .gap__col-title {
  border-left-color: var(--accent-color);
  color: #fff;
}

.gap__list {
  list-style: none;
}

.gap__list li {
  position: relative;
  font-size: 1.6rem;
  line-height: 1.6;
  padding: 16px 0 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
}

.gap__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25px;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
}

.gap__list li:first-child {
  border-top: none;
}

.gap__col--fact .gap__list li {
  color: #fff;
  font-weight: bold;
}

.gap__col--fact .gap__list li::before {
  background: var(--accent-color);
}

.gap__footer {
  text-align: center;
  margin-top: 56px;
}

.gap__footer::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent-color);
  margin: 0 auto 32px;
}

.gap__footer-text {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: bold;
  line-height: 1.6;
  margin-bottom: 16px;
}

.gap__footer-note {
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.gap__footer-note b {
  color: var(--accent-color);
}

/* ==========================================================================
   3. 本書の3つの特徴
   ========================================================================== */
.features {
  background: #fff;
}

.features__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.features__item {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-color-soft);
  border-radius: var(--radius-asym);
  border-top: 3px solid var(--accent-color);
}

.features__point {
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.features__label {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 12px;
}

.features__desc {
  font-size: 1.6rem;
  color: var(--text-color-light);
  line-height: 1.8;
}

/* ==========================================================================
   4. こんな方に読んでいただきたい
   ========================================================================== */
.persona {
  background: var(--bg-color-soft);
}

.persona__body {
  display: flex;
  gap: 48px;
  align-items: center;
}

.persona__photos {
  flex: 0 0 320px;
}

.persona__photo {
  width: 320px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--accent-color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 1.4rem;
  overflow: hidden;
}

.persona__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.persona__list {
  flex: 1;
  list-style: none;
}

.persona__list li {
  position: relative;
  padding: 12px 0 12px 32px;
  border-bottom: 1px solid var(--border-color);
}

.persona__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* ==========================================================================
   OPTIONAL: 本の中身紹介（エピソードグリッド）
   ========================================================================== */
.episodes {
  background: #fff;
}

.episodes__lead {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--accent-color);
}

.episodes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.episodes__item {
  background: var(--bg-color-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.episodes__item-photo {
  aspect-ratio: 16 / 9;
  background: #d9d9d9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 1.3rem;
}

.episodes__item-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episodes__item-body {
  padding: 20px;
}

.episodes__item-num {
  font-size: 1.2rem;
  color: var(--accent-color);
  font-weight: bold;
  margin-bottom: 6px;
}

.episodes__item-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.episodes__item-desc {
  font-size: 1.5rem;
  color: var(--text-color-light);
  line-height: 1.7;
}

/* ==========================================================================
   5. 著者のご紹介
   ========================================================================== */
.author {
  background: var(--bg-color-soft);
}

.author__body {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.author__photo {
  flex: 0 0 220px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background: var(--accent-color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 1.4rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.author__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author__name {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.author__name span {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: normal;
  color: var(--text-color-light);
  margin-left: 8px;
}

.author__title {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--text-color-light);
  margin-bottom: 20px;
}

.author__bio {
  font-size: 1.6rem;
  line-height: 1.9;
  margin-bottom: 24px;
}

.author__logo-link {
  display: inline-block;
  margin-bottom: 24px;
  transition: opacity 0.2s ease;
}

.author__logo-link:hover {
  opacity: 0.7;
}

.author__logo {
  height: 44px;
  width: auto;
  margin-bottom: 0;
}

.author__note-title {
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--accent-color);
}

/* ==========================================================================
   6. 読者からの反響
   ========================================================================== */
.reviews {
  background: #fff;
}

.reviews__list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
}

.reviews__item {
  position: relative;
  grid-column: span 3;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px 28px 32px;
  overflow: hidden;
}

.reviews__item::before {
  content: "\201C";
  position: absolute;
  top: -18px;
  right: 12px;
  font-family: Georgia, serif;
  font-size: 7rem;
  color: var(--border-color);
  z-index: 0;
}

.reviews__stars,
.reviews__title,
.reviews__body {
  position: relative;
  z-index: 1;
}

.reviews__item:nth-child(n + 3) {
  grid-column: span 2;
}

.reviews__stars {
  color: var(--accent-color);
  margin-bottom: 12px;
}

.reviews__title {
  font-weight: bold;
  font-size: 1.6rem;
}

.reviews__body {
  font-size: 1.6rem;
  color: var(--text-color-light);
  line-height: 1.8;
}

.reviews__body b {
  font-weight: bold;
  color: var(--text-color);
  background: linear-gradient(transparent 65%, var(--highlight-color) 65%);
}

/* ==========================================================================
   7. 書籍について
   ========================================================================== */
.book-info {
  background: var(--bg-color-soft);
}

.book-info__table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
}

.book-info__table th,
.book-info__table td {
  text-align: left;
  padding: 18px 24px;
  font-size: 1.6rem;
  border-bottom: 1px solid var(--border-color);
}

.book-info__table tr:last-child th,
.book-info__table tr:last-child td {
  border-bottom: none;
}

.book-info__table th {
  width: 160px;
  color: var(--accent-color);
  font-weight: bold;
}

/* ==========================================================================
   8. 最終CTA
   ========================================================================== */
.final-cta {
  position: relative;
  background: var(--dark-bg) url("../images/bg-main.jpg") center / cover no-repeat;
  color: #fff;
  padding: 80px 0;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.82);
}

.final-cta__row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

.final-cta__cover {
  flex: 0 0 260px;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.5));
}

.final-cta__content {
  flex: 0 0 auto;
  text-align: left;
}

.final-cta__content::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent-color);
  margin-bottom: 28px;
}

.final-cta__lead {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.5;
}

.final-cta__sub {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
}

.final-cta__cta {
  display: inline-block;
}

.final-cta__note {
  margin-top: 12px;
  text-align: center;
  font-size: 1.6rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   フッター
   ========================================================================== */
.footer {
  background: #111;
  color: #999;
  text-align: center;
  padding: 24px 0;
  font-size: 1.2rem;
}

/* ==========================================================================
   固定フローティング購入バー
   ========================================================================== */
.floating-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 3px solid var(--accent-color);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 100;
}

.floating-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.floating-cta__thumb {
  flex: 0 0 auto;
  width: 40px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

.floating-cta__text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.floating-cta__title {
  font-weight: bold;
  font-size: 1.5rem;
}

.floating-cta__tagline {
  font-size: 1.2rem;
  color: var(--text-color-light);
}

.floating-cta .cta-button {
  flex: 0 0 auto;
  padding: 14px 40px;
  border-radius: 8px;
}

@media (min-width: 769px) {
  .floating-cta {
    left: auto;
    right: 40px;
    bottom: 40px;
    width: 220px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: linear-gradient(155deg, var(--accent-color-mid), var(--accent-color), var(--accent-color-dark));
    background-size: 200% 200%;
    background-position: 0% 0%;
    border-radius: var(--radius);
    padding: 20px 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    transform: translateY(16px);
    transition: transform 0.3s ease, opacity 0.3s ease, background-position 0.4s ease, box-shadow 0.3s ease;
  }

  .floating-cta:hover {
    background-position: 100% 100%;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);
  }

  .floating-cta__thumb {
    display: none;
  }

  .floating-cta__title {
    display: block;
    text-align: center;
    color: #fff;
    font-size: 1.5rem;
  }

  .floating-cta__tagline {
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .floating-cta .cta-button {
    background: #fff;
    color: var(--accent-color);
    text-align: center;
    padding: 10px 12px;
    font-size: 1.4rem;
    border-radius: 8px;
    box-shadow: none;
  }
}

/* ==========================================================================
   レスポンシブ（〜768px）
   ========================================================================== */
@media (max-width: 768px) {
  section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 2.4rem;
    margin-bottom: 32px;
  }

  .final-cta__row {
    flex-direction: column;
    text-align: center;
  }

  .final-cta__content {
    text-align: center;
  }

  .final-cta__content::before {
    margin: 0 auto 24px;
  }

  .final-cta__lead {
    font-size: 2.4rem;
  }

  .persona__body,
  .author__body {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }

  .persona__photos {
    flex: 0 0 auto;
    width: 100%;
  }

  .persona__photo {
    width: 100%;
  }

  .persona__list {
    width: 100%;
  }

  .persona__list li {
    text-align: left;
  }

  .author__photo {
    aspect-ratio: 1 / 1;
  }

  .author__bio,
  .author__note-title,
  .author__note-title + p {
    text-align: left;
  }

  .final-cta__cover {
    display: none;
  }

  .hook__heading {
    font-size: 2.8rem;
    margin-bottom: 20px;
  }

  .hook__lead {
    font-size: 1.5rem;
    margin-bottom: 28px;
  }

  .hook__quote {
    padding: 32px 24px;
  }

  .hook__quote::before {
    font-size: 9rem;
    top: 4px;
    right: 12px;
  }

  .hook__quote-text {
    font-size: 1.5rem;
    text-align: left;
  }

  .hook__quote-author {
    text-align: right;
  }

  .features__item {
    padding: 24px 20px;
  }

  .features__list,
  .episodes__grid {
    grid-template-columns: 1fr;
  }

  .reviews__list {
    grid-template-columns: 1fr;
  }

  .reviews__item,
  .reviews__item:nth-child(n + 3) {
    grid-column: span 1;
  }

  .gap__columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .gap__col {
    padding: 24px 20px;
  }

  .gap__list li {
    font-size: 1.5rem;
    padding: 12px 0 12px 16px;
  }

  .book-info__table {
    display: block;
    background: #fff;
  }

  .book-info__table tbody {
    display: block;
    width: 100%;
  }

  .book-info__table tr {
    display: block;
    width: auto;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
  }

  .book-info__table tr:last-child {
    border-bottom: none;
  }

  .book-info__table th,
  .book-info__table td {
    display: block;
    width: auto;
    padding: 0;
    border-bottom: none;
    border-radius: 0 !important;
    background: none;
  }

  .book-info__table th {
    text-align: left;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 4px;
  }

  .cta-button {
    width: 100%;
    font-size: 1.8rem;
    padding: 14px 24px;
  }

  .floating-cta .cta-button {
    width: auto;
    padding: 10px 28px;
  }
}

/* ==========================================================================
   KV（FV）レスポンシブ — iPad miniなどタブレット縦(768px)はPC版のまま表示し、
   スマホ幅(600px以下)だけ専用レイアウトに切り替える
   ========================================================================== */
@media (max-width: 600px) {
  .fv .inner {
    padding-top: 24px;
    padding-bottom: 32px;
  }

  .fv > .inner > .fv__cta {
    display: none;
  }

  .fv__cta--sp {
    display: block;
    width: 100%;
    margin: 0 auto 10px;
    padding: 0;
  }

  .fv__ribbon img {
    width: 100%;
    margin-bottom: 16px;
  }

  .fv__sub-badges {
    margin-bottom: 0;
  }

  .fv__row {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .fv__col--text {
    flex: 1 1 auto;
    width: 100%;
  }

  .fv__subtitle {
    font-size: 2.2rem;
    text-align: center;
  }

  .fv__col--text .fv__subtitle,
  .fv__col--text .fv__title-lockup {
    display: none;
  }

  .fv__subtitle--sp {
    display: block;
  }

  .fv__title-lockup--sp {
    display: block;
    margin-top: 16px;
  }

  .fv__col--visual {
    flex: 0 0 auto;
    width: 60%;
  }

  .fv__cover-badge {
    width: 44%;
    top: -34px;
    left: -44px;
  }

  .fv__lead {
    font-size: 1.3rem;
    margin-top: 20px;
  }

  .fv__lead-break {
    display: none;
  }
}
