/* ============================================================
   GW Tarot — スタイル
   すべて .container 内にスコープし、テーマのグローバルCSSに影響しない
   ============================================================ */

/* コンテナのスタイル */
.container {
    max-width: 800px;
    margin: auto;
    padding: 20px;
    font-family: 'Arial', sans-serif;
    color: #333;
    text-align: center;
    box-sizing: border-box;
}

/* h2 スコープ */
.container h2 {
    font-size: 24px;
    border-bottom: none;
    padding: 0;
    color: #000;
}

/* タロットプラグイン内の section.header（テーマの <header> タグとは別物） */
.container .header {
    display: grid;
    justify-content: center;
    margin: 10px 0 0 10px;
}

/* フェードイン・フェードアウトアニメーション */
.fade-in {
    opacity: 0;
    animation: gw-tarot-fadeIn 1s forwards;
}

.fade-out {
    animation: gw-tarot-fadeOut 1s forwards;
}

@keyframes gw-tarot-fadeIn {
    0%   { opacity: 0; }
    25%  { opacity: 0.25; }
    50%  { opacity: 0.5; }
    75%  { opacity: 0.75; }
    100% { opacity: 1; }
}

@keyframes gw-tarot-fadeOut {
    0%   { opacity: 1; }
    100% { opacity: 0; }
}

/* タイトルと見出しのスタイル */
.theme-title, .result-heading, .main-title {
    font-family: 'Sawarabi Mincho', serif;
}

/* 「毎日無料でできる～」部分専用スタイル */
.sub-title {
    font-size: 18px;
    color: #cea010;
    line-height: 1.5;
    margin-bottom: 0;
    font-family: 'Sawarabi Mincho', serif;
    text-align: center;
}

/* 「恋愛テーマ別タロット占い」のスタイル */
.main-title {
    font-size: 1.8rem;
    line-height: 1.5;
    color: #444;
    margin-bottom: 15px;
    font-family: 'Sawarabi Mincho', serif;
    text-align: center;
}

/* ヘッダー画像 */
.header-image img {
    width: 200px;
    margin: auto;
}

/* おしらせ */
.message-section {
    background-color: #fff;
    border: 1px solid #e8e8e8;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
}

.message-description {
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* LINE友だち登録セクション */
.line-section {
    background-color: #fff;
    border: 1px solid #e8e8e8;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
}

.line-description {
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.highlight {
    color: #008000;
    font-weight: bold;
}

.line-register-button {
    display: inline-block;
    background-color: #5cb55c;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.line-register-button:hover {
    background-color: #008000;
}

/* テーマリスト */
.theme-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    margin-top: 20px;
}

.theme-section-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #666;
}

.theme-items {
    list-style: none;
    padding: 0;
}

.theme-items li {
    margin: 10px 0;
}

.theme-items a {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.theme-items a:hover {
    color: #008000;
}

/* 装飾画像のスタイル */
.decoration-image {
    display: block;
    width: 140px;
    margin: 10px auto 20px auto;
}

/* カードエリア */
.card-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.theme-image {
    width: 100%;
    margin: 20px 0;
    opacity: 0;
}

.card-image {
    width: 100%;
    margin: 20px 0;
    max-width: 600px;
}

/* ボタンのキラリと光るエフェクト */
.button-wrapper {
    position: relative;
    display: inline-block;
    width: 85%;
    max-width: 400px;
    overflow: hidden;
}

#drawButton {
    width: 100%;
}

.button-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(249, 249, 249, 0.57);
    transform: skewX(-40deg);
    animation: gw-tarot-shine 2s infinite;
}

@keyframes gw-tarot-shine {
    0%   { left: -75%; }
    50%  { left: 125%; }
    100% { left: 125%; }
}

/* ボタン（.container 内のみ） */
.container button {
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: #333;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.container button:hover {
    background-color: #555;
}

/* 隠し要素 */
.hidden {
    display: none;
}

/* 結果表示 */
.result {
    margin-top: 20px;
}

.line-prompt {
    font-size: 14px;
    color: #ff4500;
    margin-top: 10px;
}

/* 解説のテキスト */
.interpretation-text,
.recommendText p {
    font-size: 15px;
    text-align: left;
}

.button-group {
    text-align: center;
}

/* 結果見出しのスタイル */
.result-heading {
    position: relative;
    padding: 1.5rem 1rem;
}

.result-heading::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    content: '';
    background-image: repeating-linear-gradient(-45deg, #cccccc, #cccccc 1px, transparent 2px, transparent 5px);
    background-size: 7px 7px;
    backface-visibility: hidden;
}

/* ローディング用タロットカード */
.loading-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    animation: gw-tarot-spin 2s infinite;
}

@keyframes gw-tarot-spin {
    0%   { transform: translate(-50%, -50%) rotateY(0deg); }
    100% { transform: translate(-50%, -50%) rotateY(360deg); }
}

/* 各テーマブロック */
.theme-block {
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 画像スタイル */
.theme-title-image {
    width: 80%;
    max-width: 280px;
    margin-bottom: 15px;
}

/* リンクリスト */
.theme-links {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
}

.theme-links li {
    margin: 8px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2s ease, transform 1s ease;
}

.theme-links li.visible {
    opacity: 1;
    transform: translateY(0);
}

.theme-links li.hidden {
    opacity: 0;
    transform: translateY(20px);
}

.theme-links a {
    text-decoration: underline solid 1px #333;
    color: #333;
    font-size: 1rem;
}

.theme-links a:hover {
    color: #cea010;
}

/* もっと見るボタン */
.more-button {
    background-color: #8c52ff;
    color: white;
    border: none;
    border-radius: 40px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* テーマナビゲーションリンク */
.theme-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.theme-navigation a {
    color: #cea010;
    text-decoration: underline;
    font-size: 14px;
    transition: color 0.3s ease;
}

.theme-navigation a:hover {
    color: #ffcc00;
}

.go_to_top_btn {
    display: none;
}
