@charset "UTF-8";

/* ===================================
   初期画面（カードを引く前）
   =================================== */
.oracle-start-screen {
    max-width: 600px;
    margin: 3em auto;
    text-align: center;
    background: #fffafa; /* スノーホワイト */
    padding: 4em 2em;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #fff0f5;
}

.oracle-card-back {
    width: 200px;
    height: 340px;
    margin: 0 auto 2.5em;
    background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%);
    border-radius: 15px;
    border: 6px solid #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    position: relative;
}

/* 裏面画像 */
.oracle-card-back img { width: 100%; height: 100%; object-fit: cover; }

/* 裏面がない時の模様 */
.card-back-pattern {
    display: none;
    color: rgba(255,255,255,0.3);
    font-size: 4rem;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(45deg, #4b6cb7, #4b6cb7 10px, #182848 10px, #182848 20px);
}

.oracle-card-back:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.oracle-guide-text {
    font-size: 1.1em;
    color: #888;
    margin-bottom: 2em;
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1.8;
}

.oracle-draw-btn {
    background: linear-gradient(to right, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    color: #fff;
    border: none;
    padding: 1em 4em;
    font-size: 1.1em;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 0.1em;
    box-shadow: 0 5px 15px rgba(255, 154, 158, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.oracle-draw-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 154, 158, 0.6);
}

/* ===================================
   結果画面（女性向けオシャレデザイン）
   =================================== */
.oracle-result-container {
    max-width: 800px;
    margin: 3em auto;
    background: #fff;
    border: 1px solid #f0e6e6;
    border-radius: 20px;
    padding: 3em 2em;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    text-align: center;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.fade-in { animation: fadeIn 1s ease-out forwards; opacity: 0; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ▼ 変更：「今日のタロットカードは」をはっきり強調 */
.oracle-pre-title {
    font-size: 1.1em;     /* 文字を少し大きく */
    color: #333;          /* 色を黒くはっきりと */
    font-weight: bold;    /* 太字に */
    margin-bottom: 0.5em;
    letter-spacing: 0.05em;
}

/* タイトル */
.oracle-title {
    margin: 0 0 1.5em;
    font-size: 1.6em;
    color: #555;
    font-weight: normal;
    letter-spacing: 0.05em;
}

.oracle-image-wrapper img {
    width: 100%;
    max-width: 220px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 4px solid #fff;
}

.oracle-header {
    margin-top: 2em;
}

.oracle-stars {
    color: #d4af37;
    font-size: 1.1em;
    margin-bottom: 1em;
}
.stars-label {
    font-size: 0.8em;
    color: #999;
    margin-right: 0.5em;
    vertical-align: middle;
}

.oracle-description {
    color: #666;
    font-style: italic;
    font-size: 1em;
    line-height: 1.8;
}

/* ラッキーアイテム */
.oracle-lucky-box {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 2.5em 0;
}

.lucky-item {
    background: #fffcfc;
    border: 1px solid #ffe4e1;
    padding: 0.8em 1.2em;
    border-radius: 12px;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
}
.lucky-item:hover { transform: translateY(-3px); }

.lucky-label {
    font-size: 0.75em;
    color: #dba3a3;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.3em;
    letter-spacing: 0.05em;
}

.lucky-value {
    font-size: 1em;
    font-weight: 600;
    color: #555;
}

/* 詳細グリッド */
.oracle-readings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
    margin-top: 3em;
}

.oracle-reading-item {
    background: #fff;
    padding: 1.5em;
    border-radius: 15px;
    border: 1px solid #f7f7f7;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.item-love { border-top: 3px solid #ffb7b2; }
.item-career { border-top: 3px solid #c7ceea; }
.item-money { border-top: 3px solid #e2f0cb; }
.item-relationship { border-top: 3px solid #b5ead7; }

/* ▼ 変更：「～の恋愛運」などの見出しをさらに小さく */
.oracle-reading-item h3 {
    margin: 0 0 1em;
    font-size: 0.75rem;   /* 文字サイズを極小に (12px程度) */
    color: #aaa;          /* 色を薄くして主張を抑える */
    border-bottom: 1px dotted #eee;
    padding-bottom: 0.5em;
    line-height: 1.4;
    font-weight: normal;
    letter-spacing: 0.05em;
}

.oracle-reading-item p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* ボタン */
.oracle-actions {
    margin-top: 3em;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.oracle-share-btn, .oracle-reload-btn {
    padding: 0.9em 2.5em;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s;
}

.oracle-share-btn {
    background: #333;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.oracle-share-btn:hover { background: #555; }

.oracle-reload-btn {
    background: #fff;
    color: #888;
    border: 1px solid #ddd;
}
.oracle-reload-btn:hover {
    background: #f9f9f9;
    color: #555;
}

@media (max-width: 600px) {
    .oracle-readings-grid { grid-template-columns: 1fr; }
    .oracle-actions { flex-direction: column; align-items: center; }
    .oracle-share-btn, .oracle-reload-btn { width: 100%; max-width: 280px; box-sizing: border-box; }
    .oracle-result-container { padding: 2em 1.5em; }
}