/**
 * 星詠堂タロット占い専用スタイルシート（WordPress プラグイン版）
 * 参考デザイン: 白基調の清潔感のあるタロット占いサイト
 * テーマ: 白ベース + 控えめな青紫アクセント
 * 名前空間: .hoshiyomi-tarot でWordPressテーマとの競合を回避
 */

/* ===== プラグイン専用名前空間 ===== */
.hoshiyomi-tarot {
    font-family: "游ゴシック体", "Yu Gothic", YuGothic, "ヒラギノ角ゴシック Pro", "Hiragino Kaku Gothic Pro", 'メイリオ', Meiryo, sans-serif;
    background: transparent;
    color: #121212;
    line-height: 1.6;
    position: relative;
}

.hoshiyomi-tarot * {
    box-sizing: border-box;
}

.hoshiyomi-tarot .hoshiyomi-tarot-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 1;
}

/* ===== ヘッダースタイル ===== */
.hoshiyomi-tarot .hoshiyomi-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
}

.hoshiyomi-tarot .hoshiyomi-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 300;
    letter-spacing: 2px;
}

.hoshiyomi-tarot .hoshiyomi-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== ナビゲーションスタイル ===== */
.hoshiyomi-tarot .hoshiyomi-tarot-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 20px;
}

.hoshiyomi-tarot .hoshiyomi-tarot-nav-btn {
    padding: 12px 24px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #495057;
    font-weight: 500;
}

.hoshiyomi-tarot .hoshiyomi-tarot-nav-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.hoshiyomi-tarot .hoshiyomi-tarot-nav-btn.active {
    background: #6c5ce7;
    color: white;
    border-color: #6c5ce7;
}

/* ===== タブスタイル ===== */
.hoshiyomi-tarot .hoshiyomi-tarot-tabs {
    display: none; /* ワンオラクルと悩み別タロットの切り替えは無効にする */
}

/* ===== セクションスタイル ===== */
.hoshiyomi-tarot .hoshiyomi-tarot-section {
    margin-bottom: 30px;
    display: block; /* 初期状態では表示する */
}

.hoshiyomi-tarot .hoshiyomi-tarot-page {
    margin-bottom: 30px;
}

.hoshiyomi-tarot .hoshiyomi-section-title {
    text-align: center;
    font-size: 2rem;
    color: #000;
    margin-bottom: 30px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* ===== 悩みボタンスタイル ===== */
.hoshiyomi-tarot .worry-btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 12px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #495057;
    text-align: left;
}

.hoshiyomi-tarot .worry-btn:hover {
    background: #f8f9fa;
    border-color: #6c5ce7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 92, 231, 0.1);
}

.hoshiyomi-tarot .worry-btn:active {
    transform: translateY(0);
}

/* ===== カード表示エリア ===== */
.hoshiyomi-tarot .hoshiyomi-tarot-result-area {
    text-align: center;
    padding: 40px 20px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}

#card-display-area, #one-oracle-card-display-area {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.hoshiyomi-tarot .card-back {
    width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.6s ease;
}

.hoshiyomi-tarot #tarot-card, .hoshiyomi-tarot #one-oracle-tarot-card {
    width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.6s ease;
}

/* ===== 結果表示エリア ===== */
.hoshiyomi-tarot #result-area, .hoshiyomi-tarot #one-oracle-result-area {
    margin-top: 30px;
    padding: 30px;
    background: #fafafa;
    border-radius: 0;
    border: 1px solid #e5e5e5;
}

.hoshiyomi-tarot #card-name-and-position, .hoshiyomi-tarot #one-oracle-card-name-and-position {
    font-size: 1.8rem;
    color: #000;
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: 1px;
}

.hoshiyomi-tarot #card-meaning, .hoshiyomi-tarot #one-oracle-card-meaning {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 20px;
    line-height: 2;
}

.hoshiyomi-tarot #worry-answer {
    font-size: 1.1rem;
    color: #2c3e50;
    line-height: 1.7;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* ===== ボタンスタイル ===== */
.hoshiyomi-tarot .hoshiyomi-tarot-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hoshiyomi-tarot .hoshiyomi-tarot-btn {
    padding: 15px 40px;
    background: #000;
    color: white !important;
    border: 2px solid #000;
    border-radius: 0;
    cursor: pointer;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: none;
    letter-spacing: 1px;
    text-decoration: none;
}

.hoshiyomi-tarot .hoshiyomi-tarot-btn:hover {
    background: #fff;
    color: #000 !important;
    transform: none;
    box-shadow: none;
}

.hoshiyomi-tarot .hoshiyomi-tarot-btn:active {
    transform: none;
}

.hoshiyomi-tarot .hoshiyomi-tarot-btn.hidden {
    display: none;
}

/* ===== 隠し要素 ===== */
.hoshiyomi-tarot .hidden {
    display: none;
}

/* 大アルカナページ用スタイル */
.hoshiyomi-tarot-all-cards-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

.hoshiyomi-page-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-size: 18px;
}

.hoshiyomi-all-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.hoshiyomi-card-item {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.hoshiyomi-card-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.hoshiyomi-card-image-container {
  text-align: center;
  margin-bottom: 15px;
}

.hoshiyomi-card-img {
  width: 100%;
  max-width: 150px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.hoshiyomi-card-info {
  text-align: center;
}

.hoshiyomi-card-number {
  color: #4a3a5a;
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: bold;
}

.hoshiyomi-card-meanings {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.hoshiyomi-meaning-section {
  flex: 1;
  background-color: #f8f5fc;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #9b7ebd;
}

.hoshiyomi-meaning-section h3 {
  color: #4a3a5a;
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 10px;
}

.hoshiyomi-meaning-section p {
  margin: 0;
  font-size: 14px;
}

/* 単一カード表示ページ用スタイル */
.hoshiyomi-tarot-single-card-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

.hoshiyomi-single-card-result {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.hoshiyomi-single-card-result .hoshiyomi-card-image-container {
  flex: 0 0 250px;
  text-align: center;
}

.hoshiyomi-single-card-result .hoshiyomi-card-info {
  flex: 1;
  min-width: 300px;
}

.hoshiyomi-single-card-result .hoshiyomi-card-meaning {
  margin-bottom: 25px;
  background-color: #f8f5fc;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #9b7ebd;
}

.hoshiyomi-single-card-result .hoshiyomi-card-meaning h3 {
  color: #4a3a5a;
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 10px;
}

.hoshiyomi-single-card-result .hoshiyomi-card-meaning p {
  margin: 0;
  font-size: 16px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .hoshiyomi-tarot-all-cards-page {
    padding: 15px;
  }
  
  .hoshiyomi-all-cards-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .hoshiyomi-card-item {
    padding: 15px;
  }
  
  .hoshiyomi-card-meanings {
    flex-direction: column;
    gap: 10px;
  }

  .hoshiyomi-tarot-single-card-page {
    padding: 15px;
  }
  
  .hoshiyomi-single-card-result {
    flex-direction: column;
    align-items: center;
  }
  
  .hoshiyomi-single-card-result .hoshiyomi-card-image-container {
    flex: 0 0 auto;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
    .hoshiyomi-tarot {
        padding: 10px;
    }
    
    .hoshiyomi-tarot .hoshiyomi-section-title {
        font-size: 1.3rem;
    }
    
    .hoshiyomi-tarot .card-back,
    .hoshiyomi-tarot #tarot-card,
    .hoshiyomi-tarot #one-oracle-tarot-card {
        width: 140px;
    }
    
    .hoshiyomi-tarot #result-area,
    .hoshiyomi-tarot #one-oracle-result-area {
        padding: 15px;
    }
    
    .hoshiyomi-tarot #worry-answer {
        padding: 15px;
    }
} 