/* リセットや汎用設定 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #fafafa;
}

/* ページの最大幅を設定し、中央寄せ */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    background-color: #fff; /* 背景が分かりやすいよう白 */
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* 見出し */
h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p, label, input, textarea, button {
    font-size: 1rem;
    line-height: 1.4;
}

/* フォームの要素を少し整形 */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* ボタン */
button {
    cursor: pointer;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 4px;
    background-color: #333;
    color: #fff;
    font-size: 1rem;
}

/* 星評価まわり */
.star-container {
    direction: rtl; /* 右→左に並べる */
    unicode-bidi: bidi-override;
    display: inline-block;
    margin-bottom: 1rem;
}

.star-container input[type="radio"] {
    display: none;
}

/* 初期表示は輪郭: 「☆」 */
.star-container label {
    font-size: 2rem;
    cursor: pointer;
    color: #555; /* 輪郭用のやや暗い色 */
}

.star-container label::before {
    content: "☆";
}

/* ホバー or チェック時は「★」にしてオレンジ色 */
.star-container label:hover::before,
.star-container label:hover ~ label::before,
.star-container input[type="radio"]:checked ~ label::before {
    content: "★";
    color: orange;
}

/* スマホ対応: 画面幅が狭いときの調整(例) */
@media (max-width: 600px) {
    .container {
        margin-top: 1rem;
        margin-bottom: 1rem;
        padding: 0.5rem;
    }
    h1 {
        font-size: 1.25rem;
    }
    button {
        width: 100%;
        margin-top: 1rem;
    }
}
