/* ============================================
   篇 (Hen) Archive Pages Styles
   蜜蜂篇・野鳥篇・稲作篇・山釣篇用のビジュアルメインレイアウト
   ============================================ */

/* Base Container */
.th-hen {
  min-height: 100vh;
  padding: 0;
}

.th-hen-container {
  padding: 80px 0 60px;
}

/* ============================================
   Hero Section - Full Width Visual
   ============================================ */

/* 篇ページ全体の設定 - ヘッダーとの重なりを考慮 */
.th-hen {
  padding-top: 0 !important; /* ヘッダー分のpaddingを削除 */
}

.th-hen-hero {
  position: relative;
  width: 100%;
  height: 100vh; /* フルスクリーン */
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  margin-bottom: 0;
}

.th-hen-hero__bg {
  position: absolute;
  inset: 0;
  background-color: #1a1d26; /* フォールバック背景色 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.8s ease;
  z-index: 0;
}

.th-hen-hero:hover .th-hen-hero__bg {
  transform: scale(1.05);
}

.th-hen-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11, 12, 15, 0.9) 0%,
    rgba(11, 12, 15, 0.6) 40%,
    rgba(11, 12, 15, 0.3) 70%,
    transparent 100%
  );
  z-index: 1;
}

.th-hen-hero__content {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 64px));
  z-index: 2;
  text-align: center;
}

.th-hen-hero__icon {
  font-size: 72px;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.th-hen-hero__title {
  font-size: 56px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--text);
  letter-spacing: 0.1em;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.th-hen-hero__lead {
  font-size: 18px;
  color: var(--text);
  line-height: 1.8;
  margin: 0 0 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.th-hen-hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.th-hen-hero__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.th-hen-hero__button:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(92, 255, 122, 0.3);
}

/* ============================================
   Section Titles
   ============================================ */
.th-hen-section-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 32px;
  color: var(--text);
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 16px;
}

.th-hen-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
}

/* ============================================
   Introduction Section
   ============================================ */
.th-hen-intro {
  margin-bottom: 80px;
}

.th-hen-intro__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}

.th-hen-intro__text p {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(232, 235, 242, 0.9);
  margin: 0 0 20px;
}

.th-hen-intro__text strong {
  color: var(--accent);
  font-weight: 600;
}

.th-hen-intro__visual {
  position: sticky;
  top: 100px;
}

.th-hen-intro__card {
  background: linear-gradient(135deg, 
    rgba(92,255,122,0.08), 
    rgba(122,167,255,0.08)
  );
  border: 1px solid rgba(92,255,122,0.3);
  border-radius: var(--r2);
  padding: 40px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.th-hen-intro__icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.th-hen-intro__card h3 {
  font-size: 22px;
  font-weight: 650;
  margin: 0 0 12px;
  color: var(--text);
}

.th-hen-intro__card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ============================================
   Instagram Feed Section
   ============================================ */
.th-hen-feed {
  margin-bottom: 80px;
}

.th-hen-feed__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.th-hen-more {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.3s;
}

.th-hen-more:hover {
  background: rgba(92,255,122,0.1);
  border-color: var(--accent);
}

.th-hen-instagram {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  padding: 40px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.th-hen-instagram .instagram-media {
  max-width: 100% !important;
  min-width: 100% !important;
}

/* ============================================
   Story Cards Grid
   ============================================ */
.th-hen-stories {
  margin-bottom: 80px;
}

.th-hen-stories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.th-hen-story {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  padding: 32px 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.th-hen-story:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(92,255,122,0.15);
  background: linear-gradient(135deg, 
    rgba(92,255,122,0.03), 
    rgba(122,167,255,0.03)
  );
}

.th-hen-story__visual {
  margin-bottom: 20px;
}

.th-hen-story__emoji {
  font-size: 48px;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

.th-hen-story__title {
  font-size: 18px;
  font-weight: 650;
  margin: 0 0 12px;
  color: var(--text);
}

.th-hen-story__text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   Features Grid
   ============================================ */
.th-hen-features {
  margin-bottom: 80px;
}

.th-hen-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.th-hen-feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s;
}

.th-hen-feature:hover {
  border-color: rgba(92,255,122,0.4);
  background: rgba(92,255,122,0.03);
}

.th-hen-feature__icon {
  font-size: 42px;
  margin-bottom: 16px;
  display: block;
}

.th-hen-feature h3 {
  font-size: 16px;
  font-weight: 650;
  margin: 0 0 10px;
  color: var(--text);
}

.th-hen-feature p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   Tips Section
   ============================================ */
.th-hen-tips {
  margin-bottom: 80px;
}

.th-hen-tips__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.th-hen-tip {
  background: linear-gradient(135deg, 
    rgba(17, 19, 26, 0.8), 
    rgba(20, 24, 36, 0.8)
  );
  border: 1px solid var(--line);
  border-radius: var(--r2);
  padding: 32px 24px;
}

.th-hen-tip h3 {
  font-size: 18px;
  font-weight: 650;
  margin: 0 0 12px;
  color: var(--accent);
}

.th-hen-tip p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   Philosophy / Quote Section
   ============================================ */
.th-hen-philosophy {
  margin-bottom: 80px;
}

.th-hen-philosophy__content {
  max-width: 800px;
  margin: 0 auto;
}

.th-hen-quote {
  background: linear-gradient(135deg, 
    rgba(92,255,122,0.05), 
    rgba(122,167,255,0.05)
  );
  border-left: 4px solid var(--accent);
  border-radius: var(--r2);
  padding: 40px 32px;
  margin: 0;
  text-align: center;
}

.th-hen-quote p {
  font-size: 18px;
  line-height: 1.9;
  color: rgba(232, 235, 242, 0.95);
  margin: 0 0 12px;
  font-style: italic;
}

.th-hen-quote p:last-child {
  margin-bottom: 0;
}

/* ============================================
   CTA (Call to Action) Section
   ============================================ */
.th-hen-cta {
  margin: 80px 0 0;
}

.th-hen-cta__card {
  background: linear-gradient(135deg, 
    rgba(92,255,122,0.1), 
    rgba(122,167,255,0.1)
  );
  border: 1px solid rgba(92,255,122,0.3);
  border-radius: var(--r2);
  padding: 60px 40px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.th-hen-cta__icon {
  font-size: 64px;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

.th-hen-cta__title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
  letter-spacing: 0.05em;
}

.th-hen-cta__text {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 32px;
}

.th-hen-cta__button {
  display: inline-block;
  padding: 16px 40px;
  background: var(--accent);
  color: #000;
  text-decoration: none;
  font-weight: 650;
  font-size: 15px;
  border-radius: 999px;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(92, 255, 122, 0.3);
}

.th-hen-cta__button:hover {
  background: #4ae068;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(92, 255, 122, 0.4);
}

/* ============================================
   Theme-Specific Color Variations
   ============================================ */

/* 蜜蜂篇 - ゴールド系 */
.th-hen--mitsubachi .th-hen-hero__icon,
.th-hen--mitsubachi .th-hen-intro__icon,
.th-hen--mitsubachi .th-hen-cta__icon {
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
}

/* 野鳥篇 - ブルー系 */
.th-hen--yacho .th-hen-hero__icon,
.th-hen--yacho .th-hen-intro__icon {
  filter: drop-shadow(0 0 20px rgba(122, 167, 255, 0.4));
}

/* 稲作篇 - グリーン系 */
.th-hen--inasaku .th-hen-hero__icon,
.th-hen--inasaku .th-hen-intro__icon,
.th-hen--inasaku .th-hen-cta__icon {
  filter: drop-shadow(0 0 20px rgba(92, 255, 122, 0.4));
}

/* 山釣篇 - シアン系 */
.th-hen--yamatsuri .th-hen-hero__icon,
.th-hen--yamatsuri .th-hen-intro__icon {
  filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.3));
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .th-hen-hero {
    height: 60vh;
    min-height: 450px;
  }

  .th-hen-hero__title {
    font-size: 48px;
  }

  .th-hen-intro__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .th-hen-intro__visual {
    position: static;
  }
}

@media (max-width: 768px) {
  .th-hen-container {
    padding: 60px 0 40px;
  }

  .th-hen-hero {
    height: 100vh;
    max-height: 600px;
  }

  .th-hen-hero__content {
    width: calc(100% - 40px);
    bottom: 12%;
  }

  .th-hen-hero__icon {
    font-size: 56px;
  }

  .th-hen-hero__title {
    font-size: 36px;
    margin-bottom: 16px;
  }

  .th-hen-hero__lead {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .th-hen-section-title {
    font-size: 26px;
    margin-bottom: 24px;
  }

  .th-hen-stories__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .th-hen-features__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .th-hen-tips__grid {
    grid-template-columns: 1fr;
  }

  .th-hen-instagram {
    padding: 20px;
  }

  .th-hen-cta__card {
    padding: 40px 24px;
  }

  .th-hen-cta__title {
    font-size: 24px;
  }

  .th-hen-quote {
    padding: 32px 24px;
  }

  .th-hen-quote p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .th-hen-hero__icon {
    font-size: 48px;
  }

  .th-hen-hero__title {
    font-size: 32px;
    letter-spacing: 0.05em;
  }

  .th-hen-hero__lead {
    font-size: 14px;
  }

  .th-hen-hero__button {
    padding: 12px 24px;
    font-size: 14px;
  }

  .th-hen-section-title {
    font-size: 22px;
  }

  .th-hen-story {
    padding: 24px 20px;
  }

  .th-hen-intro__card {
    padding: 32px 24px;
  }

  .th-hen-intro__icon {
    font-size: 52px;
  }

  .th-hen-cta__icon {
    font-size: 52px;
  }
}
