/* Extracted from footer.php inline <style> for maintainability */

/* 商品リストのスタイル */
.productsList {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.productsList li {
    width: 48%;  /* スマホでは2列表示 */
    height: auto;
    margin-bottom: 20px;
    border: unset;
    box-sizing: border-box;
}

@media screen and (min-width: 768px) {
    .productsList li {
        width: 23%;  /* タブレット以上では4列表示 */
    }
}

/* フォーム入力フィールド */
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    font-size: var(--fs-base);
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* ラベルのスタイル */
label {
    font-weight: var(--fw-medium);
    display: block;
    margin-top: 10px;
}

/* 注意事項の強調 */
p.note, .warning {
    color: var(--color-beige-dark);
    font-weight: var(--fw-medium);
    margin-top: 15px;
    font-size: var(--fs-small);
}

/* レスポンシブ対応 */
@media screen and (max-width: 600px) {
    .productsList li {
        width: 50%;  /* スマホでは2列表示 */
        border: unset;
        background: unset;
        box-shadow: unset;
        margin: 0px;
    }

    input[type="text"], input[type="email"], input[type="tel"], select, textarea {
        font-size: var(--fs-small);
        padding: 8px;
        background: white;
        color: var(--color-beige);
        font-weight: var(--fw-medium);
        border: solid 1px;
    }

    .form-box {
        width: 90%;
        margin: 20px auto;
    }
}

/* 合計金額表示のスタイル */
.form-box {
    text-align: center;
    width: 300px;
    margin: 20px auto;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
}

#total_price, #total_price2, #total_price3 {
    font-size: var(--fs-md);
    font-weight: var(--fw-medium);
    display: inline-block;
    width: 120px;
    text-align: center;
    margin: 5px 0;
}

#total_price3 {
    font-size: var(--fs-lg);
    color: var(--color-beige-dark);
}

/* 注記のスタイル */
p.note {
    text-align: center;
    padding: 10px;
    font-size: var(--fs-small);
    color: var(--color-beige-dark);
}

/* テーブルのスタイル */
table.yoyaku {
    width: 100%;
    border-collapse: collapse;
}

table.yoyaku td, table.yoyaku th {
    /* padding: 10px; */
    text-align: center;
    color: var(--color-gray-light);
    font-size: var(--fs-xsmall);
    vertical-align: top;
    border-bottom: 0px solid #ccc;
    width: 80%;
    float: left;
    margin: 0% 10%;
}

table.yoyaku tr td:first-child {
    margin-bottom: 10px;
    color: var(--color-beige);
    margin-top: 10px;
    font-size: var(--fs-base);
}

@media screen and (min-width: 768px) {
    table.yoyaku td, table.yoyaku th {
        width: 50%;  /* タブレット以上では横2列 */
    }
}

@media screen and (min-width: 1024px) {
    table.yoyaku td, table.yoyaku th {
        font-size: var(--fs-base);
        padding: 15px;
    }
}

/* .oshiraseを追加、背景を薄いベージュに */
.oshirase {
    background-color: var(--color-beige);
    color: white;
    padding: 15px;
    width: 90%;
    margin: 0 auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* .oshirase h3のfontサイズは1rem */
.oshirase h3 {
    font-size: var(--fs-lg);
    font-family: source-han-sans-japanese, sans-serif;
    border-bottom: solid 1px;
    margin-bottom: 10px;
    padding-bottom: 8px;
}

/* .oshirase pはfontsize 0.8rem */
.oshirase p {
    font-size: var(--fs-xsmall);
    color: white;
}

/* .cakesname を追加、サイズを0.8rem、boldで、magin-topで少し上と距離を空ける */
.cakesname {
    font-size: var(--fs-xsmall);
    font-weight: var(--fw-medium);
    margin-top: 10px;
}

/* .cakessize を追加、サイズを0.7remで、magin-topで少し上と距離を空ける */
.cakessize {
    font-size: var(--fs-xsmall);
    font-family: source-han-sans-japanese, sans-serif;
    margin: 0 auto;
    margin-top: -1rem;
    margin-bottom: -1rem;
    background: #d3b58c;
    color: white;
    width: 80%;
    border-radius: 15px;
}

/* select menu の optionのカラーをブラックに */
select option {
    color: var(--color-text);
}

/* submitボタンを濃いベージュに */
button[type="submit"] {
    background-color: #d2b48c;
    color: #fff;
    padding: 15px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: var(--fs-md);
    width: 100%;
    transition: background-color 0.3s;
    margin-top: 20px;
}

/* エラーや警告の強調 */
.error-message, .warning {
    color: var(--color-beige-dark);
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
}

