/* =====================================================
   アーバン忍者トレーニング  base.css
   ===================================================== */

/* --- カラー定義 --- */
:root {
  --dark:       #2b3040;   /* navbar / footer / 特典section */
  --accent:     #3d6b52;   /* フォレストグリーン（主軸） */
  --accent-lt:  #5a8a6c;   /* 薄めグリーン */
  --amber:      #8b6210;   /* ウォームアンバー（CTAボタン） */
  --hero-bg:    #f5f0e5;   /* クリーム（ヒーロー背景） */
  --gray-bg:    #efece4;   /* 和紙色グレー（交互section） */
  --text:       #2d2d2d;
}

/* --- ベース --- */
body {
  padding-top: 56px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.85;
}

/* =====================================================
   ヒーロー（ライトクリーム背景）
   ===================================================== */
.hero {
  background-color: var(--hero-bg);
  /* ヒーロー背景画像（後で設定）:
     background-image: url('../images/hero_bg.jpg');
     background-size: cover;
     background-position: center center; */
  padding: 80px 0 60px;
  min-height: 78vh;
  display: flex;
  align-items: center;
}

.hero-text {
  padding-right: 2rem;
}

.hero-author {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.hero-main-title {
  color: #1a1a1a;
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.hero-sub-title {
  color: #555555;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

/* ☑ タグ（自宅 / 通勤など） */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0.8rem;
}

.hero-tags span {
  background-color: #dff0e8;
  color: var(--accent);
  font-weight: bold;
  font-size: 0.88rem;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #b5d8c8;
}

.hero-catch {
  color: #222222;
  font-size: 1.05rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.btn-cta {
  background-color: var(--amber);
  color: #ffffff;
  font-weight: bold;
  padding: 14px 44px;
  font-size: 1.05rem;
  border: none;
  border-radius: 4px;
  transition: background-color 0.2s;
}
.btn-cta:hover,
.btn-cta:focus {
  background-color: #6e4d0c;
  color: #ffffff;
}

/* 書影 実装時スタイル */
.book-cover-img {
  max-width: 280px;
  width: 100%;
  box-shadow: 6px 6px 20px rgba(0,0,0,0.15);
}

/* 書影ダミー（実装時は削除） */
.book-cover-placeholder {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 3 / 4;
  background-color: #e0dbd0;
  border: 2px dashed #bbb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 1rem;
  text-align: center;
  margin: 0 auto;
}

/* =====================================================
   セクション共通
   ===================================================== */
.section-white {
  padding: 72px 0;
  background-color: #ffffff;
}

.section-gray {
  padding: 72px 0;
  background-color: var(--gray-bg);
}

.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background-color: var(--accent);
  margin: 0.6rem auto 0;
}

.text-lead {
  font-size: 1.05rem;
  line-height: 2.1;
}

/* =====================================================
   こんな方へ（チェックリスト形式）
   ===================================================== */
.target-checklist {
  background: #ffffff;
  border-radius: 8px;
  padding: 2rem 2.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.target-checklist ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.target-checklist ul li {
  position: relative;
  padding: 0.75rem 0 0.75rem 2.2rem;
  border-bottom: 1px solid var(--gray-bg);
  font-size: 1.02rem;
}
.target-checklist ul li:last-child {
  border-bottom: none;
}

.target-checklist ul li::before {
  content: '☑';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.1rem;
}

.target-resolution {
  text-align: center;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--amber);
  margin-bottom: 0;
  padding-top: 0.8rem;
}

/* =====================================================
   この本のポイント
   ===================================================== */
.point-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.2rem;
  border-left: 4px solid var(--accent);
  height: 100%;
}

.point-icon {
  flex-shrink: 0;
  min-width: 58px;
  background-color: var(--accent);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  text-align: center;
  padding: 8px 4px;
  line-height: 1.5;
}

.point-title {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: #1a1a1a;
}

/* =====================================================
   著者紹介
   ===================================================== */
.author-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.author-photo-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-color: #cccccc;
  border: 3px dashed #aaaaaa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.8rem;
  text-align: center;
  margin: 0 auto;
}

.author-name {
  font-weight: 900;
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.author-name-en {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 1rem;
}

.author-bio {
  font-size: 0.93rem;
  line-height: 1.9;
}

.author-books {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  color: #555;
}

/* =====================================================
   目次
   ===================================================== */
.toc-block {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ddd;
}
.toc-block:last-of-type {
  border-bottom: none;
}

.toc-chapter-title {
  font-weight: bold;
  font-size: 1.02rem;
  padding: 0.4rem 0.8rem;
  border-left: 4px solid var(--accent);
  margin-bottom: 0.6rem;
  background-color: #f7f5f0;
  color: #1a1a1a;
}

.toc-items {
  list-style: none;
  padding-left: 1rem;
  margin-bottom: 0;
}

.toc-items li {
  padding: 0.25rem 0;
  color: #555555;
  font-size: 0.92rem;
  border-bottom: 1px dotted #e2ddd5;
}
.toc-items li:last-child {
  border-bottom: none;
}

.toc-heading {
  font-size: 0.88rem;
  font-weight: bold;
  color: #888;
  letter-spacing: 0.08em;
  margin: 1rem 0 0.4rem;
}

/* =====================================================
   特典セクション（ダーク）
   ===================================================== */
.section-tokuten {
  background-color: var(--dark);
  padding: 72px 0;
}

.section-title-light {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}
.section-title-light::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background-color: var(--accent-lt);
  margin: 0.6rem auto 0;
}

.tokuten-card {
  background-color: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 1.5rem;
  text-align: left;
  color: #ffffff;
  height: 100%;
}

.tokuten-label {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  font-size: 0.78rem;
  font-weight: bold;
  padding: 2px 10px;
  margin-bottom: 0.8rem;
}

.btn-tokuten {
  border: 2px solid var(--accent-lt);
  color: var(--accent-lt);
  font-weight: bold;
  padding: 12px 40px;
  font-size: 1rem;
  background-color: transparent;
  border-radius: 4px;
  transition: all 0.2s;
}
.btn-tokuten:hover,
.btn-tokuten:focus {
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* =====================================================
   購入セクション
   ===================================================== */
.section-buy {
  padding: 72px 0;
  background-color: #ffffff;
}

.btn-amazon {
  background-color: #ff9900;
  color: #111111;
  font-weight: bold;
  padding: 14px;
  border: none;
  border-radius: 4px;
}
.btn-amazon:hover { background-color: #e68a00; color: #111111; }

.btn-rakuten {
  background-color: #bf0000;
  color: #ffffff;
  font-weight: bold;
  padding: 14px;
  border: none;
  border-radius: 4px;
}
.btn-rakuten:hover { background-color: #960000; color: #ffffff; }

.btn-bookstore {
  background-color: #444444;
  color: #ffffff;
  font-weight: bold;
  padding: 14px;
  border: none;
  border-radius: 4px;
}
.btn-bookstore:hover { background-color: #222222; color: #ffffff; }

/* =====================================================
   フッター
   ===================================================== */
.site-footer {
  background-color: var(--dark);
  padding: 1.5rem 0 0.5rem;
}

/* =====================================================
   ページトップボタン
   ===================================================== */
#pageTop {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

#pageTop a {
  display: block;
  width: 48px;
  height: 48px;
  background-color: var(--accent);
  color: #ffffff;
  border-radius: 50%;
  text-align: center;
  line-height: 48px;
  font-size: 0.75rem;
  font-weight: bold;
  text-decoration: none;
}
#pageTop a:hover { background-color: #2d5240; }

/* =====================================================
   レスポンシブ
   ===================================================== */
@media (max-width: 991px) {
  .hero-text { padding-right: 0; }
}

@media (max-width: 767px) {
  .hero {
    padding: 60px 0 40px;
    min-height: auto;
  }
  .hero-main-title { font-size: 2.2rem; }
  .section-white,
  .section-gray,
  .section-tokuten,
  .section-buy { padding: 48px 0; }
  .section-title,
  .section-title-light { font-size: 1.4rem; }
  .point-item { flex-direction: column; }
  .target-checklist { padding: 1.5rem; }
}
