/**
 * Wine Serenity Journal - Components
 * ボタン・カード・バッジなど
 */

/* ========================================
   ボタンコンポーネント
   ======================================== */

.wsj-btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

/* プライマリボタン */
.wsj-btn--primary {
  background: #6b2d5c;
  color: #ffffff;
  border: 2px solid #6b2d5c;
}

.wsj-btn--primary:hover {
  background: #8b3d7c;
  border-color: #8b3d7c;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(107, 45, 92, 0.3);
}

/* セカンダリボタン */
.wsj-btn--secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.wsj-btn--secondary:hover {
  background: #ffffff;
  color: #6b2d5c;
  transform: translateY(-2px);
}

/* テキストリンクボタン */
.wsj-btn--text {
  padding: 0;
  color: #6b2d5c;
  font-weight: 500;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 0;
  transition: gap 0.3s ease;
}

.wsj-btn--text:hover {
  color: #8b3d7c;
  gap: 12px;
  transform: none;
}

.wsj-btn--text::after {
  content: '→';
}

/* ========================================
   カードコンポーネント
   ======================================== */

.wsj-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

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

/* カード画像 */
.wsj-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #e0e0e0;
}

/* カード本文 */
.wsj-card__body {
  padding: 25px;
}

.wsj-card__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 12px;
  color: #2c2c2c;
}

.wsj-card__text {
  font-size: 15px;
  line-height: 1.8;
  color: #666666;
  margin-bottom: 0;
}

.wsj-card__meta {
  font-size: 12px;
  color: #999999;
  margin-top: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}

/* カードリンク（全体がクリッカブル） */
.wsj-card--link {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.wsj-card--link:hover .wsj-card__title {
  color: #6b2d5c;
}

/* ========================================
   バッジ
   ======================================== */

.wsj-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
  background: #f59e42;
}

.wsj-badge--gold {
  background: #d4af37;
}

.wsj-badge--burgundy {
  background: #6b2d5c;
}

/* カード内の絶対配置バッジ */
.wsj-card__badge {
  position: absolute;
  top: 15px;
  right: 15px;
}

/* ========================================
   セクション共通スタイル
   ======================================== */

.wsj-section {
  padding: 100px 0;
}

.wsj-section__title {
  font-size: 40px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 60px;
  color: #2c2c2c;
}

.wsj-section__subtitle {
  font-size: 18px;
  font-weight: 300;
  line-height: 2.0;
  text-align: center;
  color: #666666;
  max-width: 700px;
  margin: -40px auto 60px;
}

/* ========================================
   グリッドレイアウト
   ======================================== */

.wsj-grid {
  display: grid;
  gap: 30px;
}

.wsj-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.wsj-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.wsj-grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* 記事グリッド */
.wsj-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
}

/* コンテンツガイドグリッド */
.wsj-content-guide__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* ========================================
   レスポンシブ調整
   ======================================== */

@media (max-width: 767px) {
  .wsj-section {
    padding: 60px 0;
  }
  
  .wsj-section__title {
    font-size: 32px;
    margin-bottom: 40px;
  }
  
  .wsj-section__subtitle {
    font-size: 16px;
    margin: -20px auto 40px;
  }
  
  .wsj-btn {
    padding: 14px 32px;
    font-size: 14px;
  }
  
  .wsj-grid,
  .wsj-post-grid,
  .wsj-content-guide__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .wsj-card__body {
    padding: 20px;
  }
}

