/*共通*/
body {
    background: repeating-linear-gradient(45deg, #2e7d32 0, #2e7d32 40px, #81c784 40px, #81c784 80px);
    display: flex;
    flex-direction: column;
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    font-size: 100%;
    justify-content: center;
    align-items: center;
    margin: 0;
    min-height: 100vh;
}

.container {
    background: rgba(255, 255, 255, 0.96);
    border: 4px solid #43a047;
    border-radius: 14px;
    box-shadow: 0 8px 32px #2e7d3250;
    max-width: 80%;
    padding: 2.5em 2em;
    text-align: center;
    box-sizing: border-box;
}

.festival-title {
    color: #388e3c;
    font-size: 200%;
    font-weight: bold;
    letter-spacing: 0.11em;
    margin-bottom: 0.7em;
    text-shadow: 2px 2px 0 #e7f2e2, 5px 5px 10px #43874528;
}

.go-btn {
    background: linear-gradient(90deg, #43a047 65%, #a5d6a7 100%);
    border: none;
    border-radius: 32px;
    color: #fff;
    cursor: pointer;
    font-size: 140%;
    font-weight: bold;
    padding: 1em 2.3em;
    box-shadow: 0 4px 14px #2e7d3255;
    transition: transform 0.12s, background 0.19s;
    user-select: none;
}

/* 言語切替部分 */
.lang-switch {
    color: #388e3c;
    font-weight: bold;
    margin-top: 20px;
}

.lang-switch a {
    color: #388e3c;
    margin: 0 0.5em;
    text-decoration: none;
}

.lang-switch a:hover {
    text-decoration: underline;
}

/*index.phpのスタイル*/
/* 屋台の緑白幕 */
.yatai-banner {
    display: flex;
    justify-content: center;
    margin-bottom: 2em;
}

.yatai-banner div {
    width: 32px;
    height: 32px;
}

.red {
    background: #388e3c;
    border-radius: 0 0 16px 16px;
}

.white {
    background: #fff;
    border-radius: 0 0 16px 16px;
}

/*allergy.phpのスタイル*/
/* アレルギー表示用テーブル */
.allergy-table {
    background: #fff;
    border-collapse: separate;
    font-size: 0.98em;
    margin: 1.5em auto 1em;
    max-width: 500px;
    width: 100%;
}

.allergy-table th,
.allergy-table td {
    border-bottom: 1px solid #b2cbb2;
    padding: 0.9em 0.5em;
}

.allergy-table th {
    background: #e6f5e7;
    color: #2e7d32;
    position: sticky;
    top: 0;
    z-index: 1;
}

.allergy-table tr:last-child td {
    border-bottom: none;
}

.allergy-menu {
    color: #388e3c;
    font-weight: bold;
}

.zero {
    color: #bdbdbd;
    font-size: 0.9em;
}

.checkbox-block {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin: 2em auto 1em;
    max-width: 500px;
    text-align: left;
}

.go-btn:disabled,
.go-btn[aria-disabled='true'] {
    background: #cfcfcf !important;
    color: #ffffffcc;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
}

.cart-btn {
    background: linear-gradient(90deg, #43a047 65%, #a5d6a7 100%);
    border: none;
    border-radius: 37px;
    color: #fff;
    cursor: pointer;
    font-size: 60%;
    font-weight: bold;
    padding: 1em 2.3em;
    box-shadow: 0 4px 14px #2e7d3255;
    transition: transform 0.12s, background 0.19s;
    user-select: none;
}

.buy-btn {
    background: linear-gradient(90deg, #43a047 65%, #a5d6a7 100%);
    border: none;
    border-radius: 37px;
    color: #fff;
    cursor: pointer;
    font-size: 60%;
    font-weight: bold;
    padding: 1em 2.3em;
    box-shadow: 0 4px 14px #2e7d3255;
    transition: transform 0.12s, background 0.19s;
    user-select: none;
}

.topping-select {
  padding: 0.7em 2em;
  margin-bottom: 8px;
  border: 2px solid #aaa;
  background: #43a067;
  cursor: pointer;
  border-radius: 8px;
  font-size: 1em;
  transition: background 0.2s, border 0.2s;
  width: 200px;
  text-align: center;
  color: #fff;
  box-shadow: 0 2px 8px #2e7d3240;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.topping-select:focus {
  outline: none;
  border-color: #388e3c;
  background: #388e3c;
}

/* レスポンシブ対応：スマホとPCで同じように装飾されるように */
@media (max-width: 600px) {
    body {
        font-size: 95%;
        padding: 0 0.5em;
    }
    .container {
        max-width: 98%;
        padding: 1.2em 0.5em;
        border-width: 2px;
    }
    .festival-title {
        font-size: 140%;
    }
    .go-btn,
    .cart-btn,
    .buy-btn {
        font-size: 110%;
        padding: 0.7em 1.2em;
        border-radius: 24px;
    }
    .options {
        width: 100%;
        padding: 0.5em;
        gap: 0.7em;
    }
    .option-btn {
        width: 100%;
        font-size: 0.98em;
        padding: 0.6em 0;
    }
    .allergy-table {
        font-size: 0.93em;
        max-width: 100%;
    }
    .checkbox-block {
        max-width: 100%;
        font-size: 0.95em;
    }
    .yatai-banner div {
        width: 20px;
        height: 20px;
        border-radius: 0 0 10px 10px;
    }
}