@charset "UTF-8";

@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f4efe7;
    color: #2f241f;
}

h1,
h2,
button {
    font-family: inherit;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

main {
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 6px 14px rgba(68, 52, 42, 0.12);
    text-align: center;
    min-width: 300px;
    margin: 0 20px;
    background: #fffaf5;
    border: 2px solid #d8c5b4;
}

#drawButton {
    font-size: 1.3rem;
    padding: 12px 30px;
    background: #8a3e35;
    color: #fffaf5;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(81, 47, 42, 0.15);
    margin-bottom: 2rem;
}

#drawButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(81, 47, 42, 0.2);
    background: #74352d;
}

#drawButton:active {
    transform: translateY(0);
}

#resultDisplay {
    font-size: 1.5rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 15px;
    background: #f3eadf;
    border: 2px solid #d7c2a8;
    color: #2f241f;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

footer {
    position: fixed;
    bottom: 20px;
    font-size: 0.9rem;
}

/* おみくじ結果に応じた背景色とスタイル */
.daikichi {
    background: #cc5b4f !important;
    color: #fffaf5;
    border-color: #9f433a;
}

.chukichi {
    background: #c79b5e !important;
    color: #fffaf5;
    border-color: #9b7642;
}

.shokichi {
    background: #a4b77d !important;
    color: #fffaf5;
    border-color: #7d8e58;
}

.kichi {
    background: #5f7d6f !important;
    color: #fffaf5;
    border-color: #3b5c53;
}

/* bodyの背景色変更 */
body.daikichi {
    background: #f2dfdb;
    transition: background 0.3s ease;
}

body.chukichi {
    background: #f1e4c9;
    transition: background 0.3s ease;
}

body.shokichi {
    background: #edf0d9;
    transition: background 0.3s ease;
}

body.kichi {
    background: #dde9e2;
    transition: background 0.3s ease;
}

/* bodyクラスに基づいたresultDisplayのスタイル */
body.daikichi #resultDisplay {
    background: #cc5b4f !important;
    color: #fffaf5;
    font-weight: bold;
    border-color: #9f433a;
}

body.chukichi #resultDisplay {
    background: #c79b5e !important;
    color: #fffaf5;
    font-weight: bold;
    border-color: #9b7642;
}

body.shokichi #resultDisplay {
    background: #a4b77d !important;
    color: #fffaf5;
    font-weight: bold;
    border-color: #7d8e58;
}

body.kichi #resultDisplay {
    background: #5f7d6f !important;
    color: #fffaf5;
    font-weight: bold;
    border-color: #3b5c53;
}

@media (min-width: 601px) {
    header h1 {
        font-size: 2.5rem;
    }

    main {
        margin: 0;
        padding: 3rem;
    }

    #drawButton {
        font-size: 1.5rem;
        padding: 15px 40px;
    }

    #resultDisplay {
        font-size: 2rem;
    }
}