body {
    font-family: "Noto Sans JP", sans-serif;
    background-color: #f6efd9;
    color: #333;
    text-align: center;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.main-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 480px) {
    /* 入力欄とボタンを縦並びにする */
    .quiz-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .quiz-section input[type="text"],
    .quiz-section button {
        width: 100%;
        margin: 5px 0;
    }
    /* ボタン左の余白を消す */
    .quiz-section button {
        margin-left: 0 !important;
    }
}

.quiz-section h2 {
    color: #e07b00;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

input[type="text"] {
    padding: 10px;
    font-size: 1.1rem;
    width: 70%;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: 0.3s;
}

input[type="text"]:focus {
    border-color: #f8b500;
}

button {
    background-color: #f8b500;
    border: none;
    border-radius: 8px;
    color: white;
    padding: 10px 20px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

button:hover {
    background-color: #e69a00;
}

.hidden {
    display: none;
}

#shareBtn {
    padding: 10px 20px;
    font-size: 16px;
    margin-bottom: 10px;
}

#fallback {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

#x_share {
    background-color: #00acee;
}

#line_share {
    background-color: #00c300;
}

.share-btn svg {
    display: block;
}

#quiz1-msg,
#quiz2-msg {
    margin-top: 10px;
    font-weight: bold;
}

.share-section a {
    margin: 5px;
    color: #f8b500;
    text-decoration: none;
    font-weight: bold;
}

.share-section a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    input[type="text"] {
        width: 100%;
        margin-bottom: 10px;
    }
    button {
        width: 100%;
        margin-left: 0;
    }
}
