/*
 * Stylesheet for the ラボ・パーティ秋のOB・OGキャンプ特設ページ
 *
 * このCSSは、マーハチョコレートのサイトの雰囲気を参考にしつつ、
 * 明るく温かみのある配色とシンプルなレイアウトで構成されています。
 * アニメーションはスクロールに合わせて要素がふわりと現れるように設計しました。
 */

/* カラーパレットと共通の値を変数化 */
:root {
  --color-background: #f8f5f0;
  --color-section: #f3ece4;
  --color-primary: #d9a600; /* 黄金色のアクセント */
  --color-primary-dark: #b48a00; /* ホバー時に暗くする */
  --color-text: #332e26;
  --color-muted: #756b5a;
  --border-radius: 4px;
  --hero-overlay: rgba(0, 0, 0, 0.25);
}

/* ベーススタイル */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  word-wrap: break-word;
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--color-background);
  color: var(--color-text);
  line-height: 1.75;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* コンテナ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ヘッダー */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-background);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-family: 'Shippori Mincho B1', 'Noto Serif JP', serif;
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-weight: 500;
}

.nav a {
  position: relative;
  padding: 0.25rem 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a:focus::after {
  width: 100%;
}

/* ヒーローセクション */
/* ヒーローセクション */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  /* 背景画像：秋の雰囲気の写真を全面表示 */
  background-image: url('asset/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 1rem;
  overflow: hidden;
  text-align: left;
}

/* ヒーロー内部コンテナ */
.hero-inner {
  width: 100%;
  display: flex;
  align-items: center;
  height: 100%;
}

/* ヒーローのテキストエリア */
.hero-text {
  margin-left: 8%;
  max-width: 700px;
  z-index: 1;
}

/* ヒーローセクションのオーバーレイと装飾 */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 背景画像の上に重ねる淡いオーバーレイ。文字を読みやすくする */
  background: rgba(255, 249, 230, 0.75);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: #f7d9a7;
  border-radius: 50%;
  opacity: 0.25;
  filter: blur(80px);
  bottom: -150px;
  left: -200px;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--color-muted);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn.primary {
  background: var(--color-primary);
  color: #fff;
}

.btn.primary:hover,
.btn.primary:focus {
  background: var(--color-primary-dark);
}

/* 共通セクションスタイル */
section {
  padding: 1.5rem 0;
  background: var(--color-background);
}

section.alt {
  background: var(--color-section);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  text-align: center;
}

.section-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-muted);
}

/* プログラムカード */
.programs {
  /* プログラムカードを中央揃えにするためフレックスレイアウトを使用 */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.program-card {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  /* カード内のすべての要素を中央揃えにする */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 300px;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.program-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-section);
  color: var(--color-primary);
}

.program-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.program-card p {
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* スケジュールテーブル */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 800px;
  margin: 0 auto;
}

.schedule-table th,
.schedule-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e0d6c7;
  text-align: left;
}

.schedule-table th {
  background: var(--color-section);
  font-weight: 600;
  color: var(--color-text);
}

.schedule-table td {
  color: var(--color-muted);
}

/* 申込セクション */
.apply-section {
  background: #fff7e6;
  border: 2px dashed var(--color-primary);
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.apply-section h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.apply-section .apply-details {
  font-size: 1rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

/* FAQ */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e0d6c7;
}

.faq-question {
  font-weight: 600;
  padding: 1rem 0;
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.faq-item.open .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  color: var(--color-muted);
  padding-left: 0.5rem;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 1rem;
}

/* キャンセルポリシーのテーブル */
.cancel-table {
  width: 100%;
  word-break: break-word;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}
.cancel-table th,
.cancel-table td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid #e0d6c7;
}
.cancel-table th {
  background: var(--color-section);
  color: var(--color-text);
  font-weight: 600;
}
.cancel-table td {
  color: var(--color-muted);
}

/* フッター */
footer {
  background: var(--color-section);
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-muted);
}

footer .copyright {
  color: var(--color-muted);
}

/* フェードインアニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* ヒーローセクションのテキストアニメーション */
.hero-title {
  font-family: 'Shippori Mincho B1', 'Noto Serif JP', serif;
  font-size: 4rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  opacity: 0;
  transform: translateY(40px);
  animation: heroFadeUp 1.0s ease-out 0.6s forwards;
}

.hero-subtitle {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.2rem;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  color: var(--color-muted);
  opacity: 0;
  transform: translateY(40px);
  animation: heroFadeUp 1.0s ease-out 0.8s forwards;
}

.hero-btn {
  opacity: 0;
  transform: translateY(40px);
  animation: heroFadeUp 1.0s ease-out 1.0s forwards;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ライブラリーセクション */
.library-items {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.library-item {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 1.5rem 1rem;
  text-align: center;
  width: 220px;
}

.library-item .book-cover {
  position: relative;
  width: 100px;
  height: 140px;
  margin: 0 auto 0.75rem auto;
  border-radius: 4px;
  background: var(--color-section);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.library-item .publisher {
  position: absolute;
  bottom: -1.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: var(--color-muted);
}

.library-info .library-code {
  font-weight: 700;
  margin-top: 1.4rem;
  margin-bottom: 0.25rem;
  color: var(--color-primary);
}

.library-info .library-en-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.library-info .library-ja-title {
  font-size: 0.85rem;
  color: var(--color-muted);
}

@media (max-width: 768px) {
  .library-items {
    flex-direction: column;
    align-items: center;
  }
  .library-item {
    width: 80%;
    margin-bottom: 2rem;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* ソングバードセクション */
.songbird-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 600px;
}

.songbird-item {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  padding: 1.5rem 2rem;
  gap: 1.5rem;
}

.songbird-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-section);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.songbird-info .songbird-title-en {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.songbird-info .songbird-title-ja {
  font-size: 0.95rem;
  color: var(--color-muted);
}
.fade-in.animate {
  opacity: 1;
  transform: translateY(0);
}

/* 共通コンテンツ（ライブラリー＆ソングバード）のスタイル */
.common-items {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.common-card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.common-image {
  width: 100%;
  height: 260px;
  /* 画像が縦長でも横長でも切れないように contain を使用 */
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.common-info {
  padding: 1.5rem;
  text-align: center;
}

.common-type {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.common-code {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.common-title-en {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.common-title-ja {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.common-publisher {
  font-size: 0.75rem;
  color: var(--color-muted);
}

@media (max-width: 768px) {
  .common-card {
    max-width: none;
    width: 90%;
  }
  .hero-title {
    font-size: 2.6rem;
  }
  .hero-text {
    margin-left: 4%;
  }
  .common-title-en {
    font-size: 1.1rem;
  }
  .common-title-ja {
    font-size: 0.95rem;
  }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  section {
    padding: 1.5rem 0;
  }
  .nav {
    display: none;
  }
  .header-inner {
    justify-content: center;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .program-card {
    padding: 1.5rem;
  }
}