/* 全体のスタイル */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    color: #333;
}

/* ヘッダーのスタイル（修正後） */
header {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1em 0;
}

/* ナビゲーションのスタイル（修正後） */
nav {
    text-align: center;
    background-color: #ff6600;
}

nav ul {
    display: inline-block;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
}

nav ul li a {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

nav ul li a:hover {
    background-color: #333;
}

/* セクションのスタイル */
section {
    padding: 20px;
    margin: 20px auto;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    max-width: 800px;
}

/* 商品グリッドのスタイル */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.product {
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    background-color: #fff;
}

.product .quantity-control {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.product .quantity-control button {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product .quantity-control input {
    width: 50px;
    text-align: center;
    border: 1px solid #ccc;
    margin: 0 5px;
    height: 40px;
    font-size: 1em;
}

.product .add-to-cart {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    margin-top: 10px;
    display: block;
    width: 100%;
    text-align: center;
}

.product .add-to-cart:hover {
    background-color: #ff6600;
}

#go-to-cart {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    margin-top: 20px;
    display: block;
    width: 100%;
    text-align: center;
}

#go-to-cart:hover {
    background-color: #333;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.cart-item {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.cart-item input {
    width: 50px;
    text-align: center;
    border: 1px solid #ccc;
    margin: 0 5px;
    height: 25px;
    font-size: 1em;
}

.cart-item .remove-btn {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.cart-item .remove-btn:hover {
    background-color: #333;
}

#checkout-button {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    margin-top: 20px;
    display: block;
    width: 100%;
    text-align: center;
}

#checkout-button:hover {
    background-color: #333;
}

.promotion-highlight {
    background-color: #ffcc00;
    color: #333;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    margin: 10px 0;
}

.rating {
    direction: rtl;
    unicode-bidi: bidi-override;
    text-align: left;
}

.rating input {
    display: none;
}

.rating label {
    font-size: 2em;
    color: #ccc;
    cursor: pointer;
}

.rating input:checked ~ label,
.rating input:hover ~ label,
.rating label:hover ~ label {
    color: #ffcc00;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
}

@media screen and (max-width: 600px) {
    nav ul li {
        float        : none;
        text-align: center;
    }

    section {
        margin: 10px;
        padding: 10px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* セクションタイトルのスタイル */
section h2 {
    text-align: center;
    color: #fd773d; /* ヘッダーよりも少し薄いカラーに変更 */
}

/* レビューとお問い合わせセクション全体を中央揃え */
#reviews, #contact {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* レビューとお問い合わせのフォームスタイル */
#reviews form, #contact form {
    width: 90%; /* 必要に応じて調整 */
    max-width: 600px; /* 最大幅の設定 */
    margin: 0 auto; /* 中央揃え */
}

/* フォーム内の要素のスタイル */
#reviews form label, #contact form label {
    display: block;
    margin: 15px 0 5px;
    text-align: left; /* ラベルを左揃えに */
    width: 100%;
}

#reviews form input[type="text"],
#reviews form input[type="email"],
#reviews form input[type="date"],
#reviews form textarea,
#reviews form input[type="submit"],
#contact form input[type="text"],
#contact form input[type="email"],
#contact form textarea,
#contact form input[type="submit"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    box-sizing: border-box; /* パディングを含めた幅の計算 */
    border: 1px solid #ccc;
    border-radius: 4px;
}

#reviews form input[type="submit"], 
#contact form input[type="submit"] {
    background-color: #f67e22;
    color: white;
    border: none;
    cursor: pointer;
    text-align: center;
    padding: 15px 20px;
    border-radius: 4px;
    font-size: 16px;
}

#reviews form input[type="submit"]:hover, 
#contact form input[type="submit"]:hover {
    background-color: #e66a00; /* ホバー時の背景色 */
}

/* 評価のスタイル */
.rating {
    display: flex;
    justify-content: flex-start; /* 左揃えに変更 */
    width: 100%;
    padding: 10px 0;
}

.rating label {
    cursor: pointer;
    margin: 0 2px; /* 星の間隔を2ミリメートルに調整 */
    font-size: 24px; /* 星のサイズを大きくする */
    color: lightgray; /* デフォルトの星の色 */
}

.rating input[type="radio"] {
    display: none; /* ラジオボタンを非表示に */
}

.rating input[type="radio"]:checked + label {
    color: gold; /* 選択された星の色 */
}