:root {
  /* 青空のような爽やかなブルーを基調に変更 */
  --primary-color: #0078D7;
  --secondary-color: #00B4DB;
  --accent-color: #FF5722; /* オレンジ系のアクセント */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #fdfdfd;
  --bg-dark: #1a1a2e;
  /* 青空の単色またはグラデーション */
  --bg-blue: #0093E9;
  --gradient-bg: linear-gradient(160deg, #0093E9 0%, #80D0C7 100%);
  --gradient-accent: linear-gradient(135deg, #FF5722 0%, #FF8A65 100%);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.2);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.8;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
  font-weight: 900;
  line-height: 1.2;
}

/* Heroの文字を全体的に大きく */
h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}
@media (min-width: 768px) {
  h1 {
    font-size: 3.5rem; /* よりインパクトのある大きさに */
  }
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  display: inline-block;
  letter-spacing: -0.5px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background: var(--primary-color);
  border-radius: 3px;
}

/* Footerのh2は専用のラインをHTMLで引くため、デフォルトの下線を消す */
footer h2::after {
  display: none;
}

p {
  margin-bottom: 1rem;
}

/* Buttons */
.btn-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
}

@media (min-width: 992px) {
  .hero .btn-group {
    justify-content: flex-start;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1.1rem;
  line-height: 1.3;
}

/* 書籍・電子書籍ボタンは同じサイズにするため幅を指定 */
.btn-book {
  width: 220px;
  height: 80px;
}

/* 試し読みボタンも幅を合わせるか、高さを合わせる */
.btn-outline {
  height: 80px;
}

/* 小さいスマホ（375px等）ではみ出さないよう幅100%にする */
@media (max-width: 480px) {
  .btn-book, .btn-outline {
    width: 100%;
    max-width: 300px;
  }
}

.btn-primary {
  background: var(--accent-color);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 87, 34, 0.6);
  background: #E64A19;
}

.btn-secondary {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.btn-outline:hover {
  background: var(--text-light);
  color: var(--primary-color);
}
.btn-outline-dark {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--text-dark);
}
.btn-outline-dark:hover {
  background: var(--text-dark);
  color: var(--text-light);
}

/* Sections */
section {
  padding: 6rem 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero Section */
.hero {
  background: var(--gradient-bg);
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Heroのコンテナだけ幅を広くして画像を右に寄せる */
.hero .container {
  max-width: 1400px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero .container {
    grid-template-columns: 1.1fr 1fr; /* 左(文字)と右(画像)の比率を調整し被りを防ぐ */
    gap: 2rem;
  }
}

/* 毛筆風の「個客」背景文字 */
.hero::after {
  content: '個客';
  position: absolute;
  top: 35%; 
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 35vw; 
  font-family: "Noto Serif JP", "Sawarabi Mincho", serif; 
  color: rgba(255, 255, 255, 0.08); 
  z-index: 1;
  pointer-events: none;
  white-space: nowrap;
  font-weight: 900;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 10;
}

@media (min-width: 992px) {
  .hero-content {
    text-align: left;
    padding-left: 0; 
  }
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 表紙のレイアウト設定 */
.hero-image {
  perspective: 1200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}

.hero-image-title {
  color: #fff;
  font-size: 1.5rem; /* サイズ調整 */
  font-weight: 900;
  margin-bottom: 0.5rem; /* テキストと表紙の隙間 */
  text-align: center;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
  letter-spacing: 1px;
  white-space: nowrap;
}

.badge-highlight {
  color: #FFD700; /* ゴールド色で強調 */
  font-size: 1.4em;
  margin-right: 0.1em;
  text-shadow: 0 2px 5px rgba(0,0,0,0.4);
  vertical-align: baseline;
}

.hero-books-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.main-book-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
}

/* PC版：重ねずに横に並べる */
@media (min-width: 992px) {
  .hero-books-container {
    flex-direction: row;
    align-items: flex-end; /* 下揃え */
    justify-content: flex-end; /* 全体を右寄せ */
    gap: 2%; /* 固定幅だと被る可能性があるので%に変更 */
  }
  
  .main-book { /* 緑帯表紙 */
    width: 50%; /* コンテナに対する%で拡大 */
    max-width: 320px; /* もう一回り拡大 */
    max-height: 50vh; /* 画面内に収まるように */
    object-fit: contain;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: transform 0.4s;
  }
  
  .sub-book { /* 立体表紙 */
    width: 60%; /* コンテナに対する%で縮小し、被りを防ぐ */
    max-width: 480px; /* 1画面に収まるよう一回り小さく（700px -> 480px） */
    max-height: 70vh; /* 画面内に収まるように */
    object-fit: contain;
    display: block;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 3;
  }
}

/* モバイル版：下に並べる */
@media (max-width: 991px) {
  .hero-books-container {
    gap: 3rem;
  }
  .main-book {
    width: 320px; /* もう一回り拡大 */
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
  }
  .sub-book {
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  }
  .hero-image-title {
    font-size: 1.3rem;
    white-space: normal;
  }
}

/* ホバー時に少し浮き上がる */
.hero-books-container:hover .sub-book {
  transform: scale(1.05) translateY(-10px);
}
.hero-books-container:hover .main-book {
  transform: scale(1.05) translateY(-10px);
}

/* Intro Section */
.intro {
  background: var(--bg-light);
  text-align: center;
}

.intro-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.3rem;
  color: #444;
  font-weight: 500;
}

.highlight {
  color: var(--primary-color);
  font-weight: 900;
  font-size: 1.1em;
}

/* Events & Media Section */
.events {
  background: #f4f7f6;
  color: var(--text-dark);
}

.events h2::after {
  background: var(--primary-color);
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .events-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

.event-card {
  background: #ffffff;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border-top: 5px solid var(--primary-color);
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.event-tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: var(--primary-color);
  color: white;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.event-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.event-desc {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
}

.event-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
  font-size: 1.1rem;
}

.event-link:hover {
  color: #E64A19;
  transform: translateX(8px);
}

/* Book Details Section */
.details {
  background: var(--bg-light);
}

.details-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  background: white;
  padding: 4rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-top: 3rem;
}

@media (min-width: 992px) {
  .details-wrapper {
    flex-direction: row;
  }
}

.author-info {
  flex: 1;
}

/* SHOE DOG風の年表（タイムライン） */
.timeline-container {
  display: none; /* 初期は非表示 */
  margin-top: 0;
  background: white;
  padding: 4rem;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 年表トグルボタンをスクショ通り幅広に */
.timeline-toggle-wrapper {
  padding: 0;
  text-align: center;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  overflow: hidden; /* 角丸を効かせるため */
}

.timeline-toggle-btn {
  width: 100%; /* 横幅いっぱい */
  background: #e9e5d9; /* スクリーショットのような薄いベージュ（オリーブ風） */
  border: none;
  padding: 0.8rem; /* 縦幅を短く調整 */
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: all 0.3s;
}

.timeline-toggle-btn:hover {
  background: #dfd9c8;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 80px; /* 年の幅 */
  width: 2px;
  background: #ccc;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  display: flex;
}

.timeline-year {
  width: 80px;
  font-size: 1.5rem;
  font-weight: 300;
  color: #999;
  padding-right: 20px;
  text-align: right;
  flex-shrink: 0;
  position: relative;
}

.timeline-year::after {
  content: '';
  position: absolute;
  top: 10px;
  right: -5px; /* ライン上に配置 */
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #999;
  border: 2px solid white;
}

@media (max-width: 768px) {
  .timeline-year {
    width: auto;
    text-align: left;
    padding-left: 30px;
    padding-right: 0;
    margin-bottom: 0.5rem;
  }
  .timeline-year::after {
    left: 17px;
    right: auto;
  }
  .timeline-item {
    flex-direction: column;
  }
  .timeline-content {
    padding-left: 40px !important;
  }
}

.timeline-content {
  padding-left: 40px;
  flex-grow: 1;
  font-size: 1.1rem;
  color: #333;
}

.author-info {
  flex: 1;
}

.book-specs {
  flex: 1;
  background: #f8f9fa;
  padding: 3rem;
  border-radius: 8px;
  border: 1px solid #eaeaea;
}

.spec-list {
  list-style: none;
}

.spec-list li {
  padding: 1.5rem 0;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.spec-list li:last-child {
  border-bottom: none;
}

.spec-label {
  font-weight: bold;
  color: #555;
  font-size: 1.1rem;
}

.spec-value {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background: var(--bg-dark);
  color: #fff;
  padding: 6rem 1rem 3rem;
  text-align: center;
}

.footer-content {
  margin-bottom: 3rem;
}

.copyright {
  color: #888;
  font-size: 0.95rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #333;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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