/* ==========================================
   LapinBijou うさぎ画風100選 - スタイルシート
   ========================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ==========================================
   リセット & 基本設定
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333333;
  background-color: #FFF9F5;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   PR常時表示バナー
   ========================================== */
#pr-banner {
  position: sticky;
  top: 0;
  z-index: 9999;
  background-color: #333333;
  color: #FFFFFF;
  text-align: center;
  padding: 6px 16px;
  font-size: 12px;
  letter-spacing: 0.05em;
  font-weight: 500;
  width: 100%;
  box-sizing: border-box;
  isolation: isolate;
}

/* ==========================================
   ヘッダー
   ========================================== */
.site-header {
  background: linear-gradient(135deg, #E8A0BF 0%, #957DAD 100%);
  color: #FFFFFF;
  padding: 48px 20px;
  text-align: center;
}

.site-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.site-header .subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 16px;
  opacity: 0.95;
}

.site-header .description {
  font-size: 0.95rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
  line-height: 1.8;
}

/* ==========================================
   パンくずリスト
   ========================================== */
.breadcrumb {
  padding: 16px 20px;
  font-size: 0.9rem;
  background-color: #FFFFFF;
  border-bottom: 1px solid #F5E6CC;
}

.breadcrumb a {
  color: #957DAD;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #E8A0BF;
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 8px;
  color: #999999;
}

/* ==========================================
   コンテナ
   ========================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================
   広告エリア（フック）
   ========================================== */
.ad-area {
  margin: 8px 0;
  padding: 0;
  background-color: transparent;
  border: none;
  border-radius: 0;
  text-align: center;
  min-height: 0;
  display: block;
  color: #999999;
  font-size: 0.9rem;
  line-height: 0;
}

.ad-area:empty {
  display: none;
}

.ad-area a,
.ad-area img {
  line-height: normal;
}

.ad-area a {
  font-size: 0.9rem;
  line-height: 1.5;
}

.ad-area img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

.ad-area-wrap {
  padding: 0;
  margin: 0;
}


/* ==========================================
   フィルターセクション
   ========================================== */
.filter-section {
  background-color: #FFFFFF;
  padding: 32px 20px;
  margin: 32px 0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.filter-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #333333;
}

/* タグフィルタートグルボタン */
.filter-toggle {
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Noto Sans JP', sans-serif;
  transition: color 0.3s;
  width: 100%;
  text-align: left;
}

.filter-toggle:hover {
  color: #E8A0BF;
}

.filter-toggle .arrow {
  transition: transform 0.3s ease;
  display: inline-block;
}

.filter-toggle.active .arrow {
  transform: rotate(180deg);
}

/* タグフィルター折りたたみ */
.tag-filter-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.tag-filter-content.active {
  max-height: 1000px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid #E8A0BF;
  background-color: #FFFFFF;
  color: #E8A0BF;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Noto Sans JP', sans-serif;
}

.filter-btn:hover {
  background-color: #FFF9F5;
  transform: translateY(-2px);
}

.filter-btn.active {
  background-color: #E8A0BF;
  color: #FFFFFF;
}

.tag-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-btn {
  padding: 6px 16px;
  border: 1px solid #957DAD;
  background-color: #FFFFFF;
  color: #957DAD;
  border-radius: 16px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Noto Sans JP', sans-serif;
}

.tag-btn:hover {
  background-color: #F5E6CC;
}

.tag-btn.active {
  background-color: #957DAD;
  color: #FFFFFF;
}

/* ==========================================
   カードグリッド
   ========================================== */
.main-content {
  display: flex;
  gap: 32px;
  margin: 0;
}

.cards-section {
  flex: 1;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.style-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.style-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background-color: #F5E6CC;
}

.card-content {
  padding: 16px;
}

.card-name-ja {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 4px;
}

.card-name-en {
  font-size: 0.85rem;
  color: #999999;
  font-family: 'Inter', sans-serif;
  margin-bottom: 12px;
}

.card-category {
  display: inline-block;
  padding: 4px 12px;
  background-color: #E8A0BF;
  color: #FFFFFF;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* サイドバー広告エリア */
.sidebar-ad {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  height: fit-content;
}

/* ==========================================
   個別ページスタイル
   ========================================== */
.detail-page {
  max-width: 900px;
  margin: 48px auto;
  padding: 0 20px;
}

.detail-header {
  text-align: center;
  margin-bottom: 32px;
}

.detail-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 8px;
}

.detail-header .name-en {
  font-size: 1.2rem;
  color: #999999;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  margin-bottom: 16px;
}

.detail-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.category-badge {
  padding: 8px 20px;
  background-color: #E8A0BF;
  color: #FFFFFF;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 500;
}

.tag-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.tag-item {
  padding: 6px 14px;
  background-color: #F5E6CC;
  color: #333333;
  border-radius: 16px;
  font-size: 0.85rem;
}

.style-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  margin: 32px auto;
  display: block;
  background-color: #F5E6CC;
  object-fit: cover;
}

.detail-section {
  background-color: #FFFFFF;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 32px;
}

.detail-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 3px solid #E8A0BF;
}

.detail-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333333;
  margin: 24px 0 12px;
}

.detail-section p {
  font-size: 1rem;
  line-height: 1.9;
  color: #333333;
}

.prompt-box {
  position: relative;
  background-color: #FFF9F5;
  border: 2px solid #F5E6CC;
  border-radius: 12px;
  padding: 20px;
  padding-bottom: 60px;
  margin: 16px 0;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  line-height: 1.8;
  color: #333333;
  word-wrap: break-word;
}

.copy-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 8px 16px;
  background-color: #957DAD;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Noto Sans JP', sans-serif;
  z-index: 10;
}

.copy-btn:hover {
  background-color: #E8A0BF;
  transform: translateY(-2px);
}

.copy-btn.copied {
  background-color: #4CAF50;
}

/* ==========================================
   ナビゲーション
   ========================================== */
.detail-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0px 0;
  flex-wrap: wrap;
}

.nav-btn {
  padding: 12px 24px;
  background-color: #FFFFFF;
  color: #333333;
  border: 2px solid #E8A0BF;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  font-family: 'Noto Sans JP', sans-serif;
}

.nav-btn:hover {
  background-color: #E8A0BF;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.nav-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}

.back-to-top {
  background-color: #E8A0BF;
  color: #FFFFFF;
  border: none;
}

.back-to-top:hover {
  background-color: #957DAD;
}

/* ==========================================
   フッター
   ========================================== */
.site-footer {
  background-color: #333333;
  color: #FFFFFF;
  padding: 32px 20px;
  text-align: center;
  margin-top: 0;
}

.site-footer p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ==========================================
   レスポンシブ対応
   ========================================== */

/* タブレット */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .sidebar-ad {
    display: none;
  }

  .site-header h1 {
    font-size: 2rem;
  }

  .detail-header h1 {
    font-size: 1.8rem;
  }
}

/* スマートフォン */
@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .card-image {
    height: 200px;
  }

  .site-header {
    padding: 32px 16px;
  }

  .site-header h1 {
    font-size: 1.6rem;
  }

  .site-header .subtitle {
    font-size: 0.95rem;
  }

  .site-header .description {
    font-size: 0.85rem;
  }

  .filter-section {
    padding: 24px 16px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .tag-btn {
    padding: 5px 12px;
    font-size: 0.8rem;
  }

  .detail-page {
    margin: 32px auto;
  }

  .detail-header h1 {
    font-size: 1.5rem;
  }

  .detail-header .name-en {
    font-size: 1rem;
  }

  .detail-section {
    padding: 24px 20px;
  }

  .detail-section h2 {
    font-size: 1.3rem;
  }

  .detail-section h3 {
    font-size: 1rem;
  }

  .prompt-box {
    padding: 16px;
    padding-bottom: 60px;
    font-size: 0.9rem;
  }

  .copy-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: auto;
  }

  .detail-nav {
    flex-direction: column;
  }

  .nav-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .site-header h1 {
    font-size: 1.4rem;
  }

  .cards-grid {
    gap: 12px;
  }

  .card-content {
    padding: 12px;
  }

  .card-name-ja {
    font-size: 1rem;
  }
}

/* ==========================================
   ユーティリティクラス
   ========================================== */
.text-center {
  text-align: center;
}

.mt-32 {
  margin-top: 32px;
}

.mb-32 {
  margin-bottom: 32px;
}

/* 画像が未配置の場合のプレースホルダー */
.style-image,
.card-image {
  background-color: #F5E6CC;
  object-fit: cover;
}
/* ==========================================
   シェアボタン
   ========================================== */
.share-section {
  text-align: center;
  margin: 24px 0;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  color: #FFFFFF;
}

.share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.share-x {
  background-color: #000000;
}

.share-line {
  background-color: #06C755;
  font-size: 0.75rem;
}

.share-hatena {
  background-color: #00A4DE;
  font-size: 1.1rem;
}

.site-header {
  padding-bottom: 1px;
}

.site-header + .container,
.site-header + .container + .container {
  padding-top: 0;
  padding-bottom: 0;
  margin: 0 auto;
}