body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;

}

.main-content {
    width: 100%;
    background-color: white;
    display: flex;
    flex-direction: column;
    height: 100dvh;
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    font-weight: bold;
    font-size: 1.1em;
    border-bottom: 1px solid #eee;
}

a {
    text-decoration: none;
}

.sider a {
    color: #333;
}

.shop-title {
    font-size: 1.2em;
}

.other-title {
    display: flex;
    gap: 10px;
}

main {
    display: flex;
    flex-grow: 1;
    overflow-y: auto;
}

aside {
    width: 100px;
    background-color: #f0f0f0;
    padding: 10px 0;
    border-right: 1px solid #eee;
    position: fixed;
    height: 100vh;
    z-index: 10;
}

aside ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

aside ul li {
    padding: 15px 10px;
    font-size: 0.9em;
    color: #555;
    cursor: pointer;
    word-break: break-all;
}

.c-checked {
    padding: 15px 10px;
    font-size: 0.9em;
    color: #e25c00;
    font-weight: bold;
    background-color: #fff;
    position: relative;
    border-left: 4px solid #e25c00;
    cursor: pointer;
    word-break: break-all;
}

.menu {
    flex-grow: 1;
    padding-left: 100px;
    /*padding-top: 10px;*/
}

.cuisine-description {
    padding-left: 0px;
    padding-top: 0px;
}

.cuisine-description .media {
    width: 100%;
    /*height: 40%;*/
    object-fit: cover;
}

.cuisine-img {
    width: 100%;
    height: 100%;
    display: block;
}

.cuisine-video {
    width: 100%;
}

.sub-category {
    display: flex;
    gap: 5px;
    padding-top: 5px;
    padding-left: 5px;
        flex-wrap: wrap;
}

.menu-content {
    margin-bottom: 20px;
    padding: 5px 10px;
}

.sub-menu-content {
    margin-top: 15px;    
    padding-bottom: 160px;/*251114追加*/
}

.cuisine-content {
    padding: 10px 15px;
}

.menu-card {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #eee;
    padding: 10px;
    padding-right: 7px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    height: fit-content;
}
.menu-card h3,
.menu-card p {
  margin: 0;
  padding: 0;
}

.menu-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 5px;
}

.menu-card h3 {
    font-size: 16px;
    font-weight: normal;
    color: #333;
    margin: 0px;
}
.menu-link{
    position: relative;
    height: fit-content; 
    display: block;
       margin-bottom: 5px;
    margin-left: 5px;
    margin-right: 5px;
}
.card {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.card-name {
    font-size: 12px;
    color: #999;
    margin: 0px;
}

.card-price {
    font-size: 1.2em;
    color: #e25c00;
    font-weight: bold;
    margin: 0;
}

.selected-btn {
    padding: 8px 20px;
    border: 1px solid #ccc;
    border-radius: 20px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    font-size: 0.9em;
    outline: none;
}

.selected-btn-active {
    padding: 8px 20px;
    border: 1px solid #e25c00;
    background-color: #e25c00;
    color: #fff;
    cursor: pointer;
    font-size: 0.9em;
    outline: none;
}

.price {
    font-size: 0.8em;
    font-weight: normal;
}

.tax {
    font-size: 0.7em;
    color: #888;
    margin-left: 5px;
    font-weight: normal;
}

.sub-title {
    font-size: 0.7em;
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    background-color: #e25c00;
}

.grey-btn {
    flex-grow: 1;
    padding: 3% 5%;
    border-radius: 10px;
    border: 1px solid #ccc;
    background-color: #f5f5f5;
    color: #333;
    font-size: 1em;
    cursor: pointer;
    outline: none;
    text-align: center;
}

.orange-btn {
    flex-grow: 1;
    padding: 3% 5%;
    border-radius: 10px;
    border: 1px solid #e25c00;
    background-color: #e25c00;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    outline: none;
    text-align: center;
    position: relative;
}

.sub-title-area {
    top: 5px;
    right: 5px;
    display: flex;
    gap: 5px;
}

footer {
    padding: 15px;
    border-top: 1px solid #eee;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 100;
        position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
}

footer p {
    text-align: center;
    font-size: 0.8em;
    color: #777;
    margin: 5% 0;
}


.footer-area {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.allergic-c {
    border: 1px solid #505050;
    border-radius: 5px;
    padding: 5px;
    color: #505050;
    margin: 5px;
    font-size: 18px;
}

.description h5 {
    color: #505050;
}

.option h4 {
    margin-bottom: 0;
}

.option label {
    display: flex;
    color: #505050;
    cursor: pointer;
    position: relative;
    align-items: anchor-center;
}

.option label .for-css {
    display: inline-block;
    position: relative;
    background-color: transparent;
    width: 20px;
    height: 20px;
    transform-origin: center;
    border: 2px solid #e25c00;
    border-radius: 50%;
    vertical-align: -4px;
    margin-right: 10px;
    transition: background-color 150ms 200ms, transform 350ms cubic-bezier(.78, -1.22, .17, 1.89);
}

.option label .for-css::before {
    content: "";
    width: 0px;
    height: 2px;
    border-radius: 2px;
    background: #eee;
    position: absolute;
    transform: rotate(45deg);
    top: 10px;
    left: 5px;
    transition: width 50ms ease 50ms;
    transform-origin: 0% 0%;
}

.option label .for-css::after {
    content: "";
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: #eee;
    position: absolute;
    transform: rotate(305deg);
    top: 13px;
    left: 7px;
    transition: width 50ms ease;
    transform-origin: 0% 0%;
}


.option input[type="checkbox"] {
    display: none;
}

.option input[type="checkbox"]:checked+label .for-css {
    background-color: #e25c00;
    transform: scale(1.2);
}

.option input[type="checkbox"]:checked+label .for-css::after {
    width: 10px;
    background: #eee;
    transition: width 150ms ease 100ms;
}

.option input[type="checkbox"]:checked+label .for-css::before {
    width: 5px;
    background: #eee;
    transition: width 150ms ease 100ms;
}

.checkbox-c {
    display: block;
    font-size: 18px;
}

.checkbox-c span:nth-of-type(2),
.radio-span span:nth-of-type(2) {
    color: #888;
    display: block;
}

.option-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    padding-top: 10px;
}

.cuisine-num button {
    border-radius: 50%;
    width: 35px;
    height: 35px;
    background-color: #e25c00;
    border: 1px solid #e25c00;
    color: white;
    font-size: 1.1em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);

}

.cuisine-num input {
    width: 20px;
    border: none;
    padding: 10px;
    font-size: 16px;
    text-align: center;
}

.cuisine-price {
    font-size: 1.5em;
    margin-top: 0;
}

.cuisine-price span {
    font-size: 0.5em;
}

.price-area {
    padding: 0 5%;
    align-items: flex-start;
}

.lan-img {
    width: 30px;
}

.count {
    position: absolute;
    border: 1px solid #e25c00;
    background-color: #e25c00;
    color: white;
    border-radius: 50%;
    z-index: 10;
    padding: 0.1em 0.5em
}

.orange-btn .count {
    top: -35%;
    left: 0;
    border: 1px solid #e25c00;
    background-color: white;
    color: #e25c00;
    position: absolute;

}

.menu-display-none {
    display: none;
}

.sub-display-none {
    display: none;
}

.card-tag span {
    font-size: 10px;
    background-color: #e25c00;
    color: white;
    padding: 1px 2px;
    margin-bottom: 2px;
    border-radius: 2px;
    display: inline-block;
}

.video-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* はみ出し防止＋トリミング */
    display: block;
}

.play-pause-btn {
    background: none;
    border: none;
    font-size: 48px;
    /* 三角のサイズ調整 */
    color: rgba(255, 255, 255, 0.8);
    /* 三角の色（必要に応じて変更） */
    cursor: pointer;
    padding: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.description p {
    font-size: 18px;
    color: dimgray;
}

/*radioボタン*/
.radio-item {
    margin: 0.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    padding-top: 10px;
    display: flex;
}

.radio-span {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    font-size: 18px;
    color: #505050;
}

.radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-item input[type="radio"]+.radio-label::before {
    content: '';
    background: #fff;
    border-radius: 100%;
    border: 1px solid #e25c00;
    /* darken(#ccc, 25%) の代用 */
    display: inline-block;
    width: 1.4em;
    height: 1.4em;
    position: relative;
    top: -0.2em;
    margin-right: 1em;
    vertical-align: top;
    cursor: pointer;
    text-align: center;
    transition: all 250ms ease;
}

.radio-item input[type="radio"]:checked+.radio-label::before {
    background-color: #e25c00;
    box-shadow: inset 0 0 0 4px #fff;
}

.radio-item input[type="radio"]:focus+.radio-label::before {
    outline: none;
    border-color: #e25c00;
}

.radio-item input[type="radio"]:disabled+.radio-label::before {
    box-shadow: inset 0 0 0 4px #fff;
    border-color: #e25c00;
    /* darken(#ccc, 25%) */
    background: #fff;
    /* darken(#ccc, 25%) */
}

.radio-item input[type="radio"]+.radio-label:empty::before {
    margin-right: 0;
}

.cuisine-price-big {
    font-size: 1.5em !important;
    color: black;
    font-weight: 600;
}

.cuisine-price-small {
    margin: 0 0 10% 0;
    margin-bottom: 10%;
}

.m-b-0 {
    margin-bottom: 0;
}

.order {
    width: 100%;
}

.order-list-item {
    display: flex;
    flex-direction: column;
}

.order-card {
    display: flex;
    justify-content: space-between;
    padding: 3%;
    height: fit-content;
}

.order-part1 {
    display: flex;
    width: 70%;
}

.order-list-item img {
    width: 90px;
    height: 90px;
    border-radius: 5px;
}

.order-option p {
    float: inline-end;
    margin: 10px 5px;
    color: #505050;
}

.order-part2 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.order-list h3 {
    margin-left: 10px;
    color: dimgray;
}

.order-num {
    padding: 0;
    align-items: end;
}

.order-delete img {
    width: 20px;
    height: 20px;
}

.order-part1-c {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: 10px;
}

.order-part1-c p {
    margin: 0;
    color: #505050;
}

.order-option span {
    margin: 0 5px;
}

.order-list-item hr,
.order-list hr {
    border: none;
    height: 1px;
    background-color: #ccc;
    margin: 0 10px;
}

.order-list-item .cuisine-num button {
    width: 25px;
    height: 25px;
    font-size: 1em;
}

.order-list-item .cuisine-minus {
    background-color: white;
    color: grey;
    border: 1px solid grey;
}

.order-list-item .price {
    font-weight: 600;
    font-size: 1.1em;
}

.order-footer-area .orange-btn {
    width: 40%;
}

.order-footer-area .grey-btn {

    padding: 3% 1%;
}

.order-list-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 10px;
}

.order-list-header a {
    margin-right: 10px;
}

.order-completed .order-part2 {
    justify-content: end;
}

.order-completed .order-date {
    font-size: 12px;
    color: #999;
}

.order-completed .order-part1 {
    width: 80%;
}

.order-completed .order-option p {
    color: #999;
}


.order-completed-price-area {
    padding: 0 1%;
    align-items: center;
}

.order-completed-price-area .cuisine-num button {
    width: 25px;
    height: 25px;
    font-size: 1em;
    border: 1px solid grey;
    color: grey;
    background-color: white;
}

.order-completed-price-area .per {
    font-size: 30px;
    font-weight: 500;
    color: #333;
}

.cuisine-price-small-order {
    margin-bottom: 0%;
}

.person-c {
    color: grey;
}

.payment .order-footer-area {
    display: flex;
    flex-direction: column;
}

.payment .order-footer-area a {
    width: 80%;
}

.payment p {
    color: green;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 14px;
}

.payment .order-footer-area .green-btn {
    background-color: green;
    color: white;
}

#payment-modal,
#overlay {

    position: fixed;
    z-index: 1000;
}

#overlay {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* 半透明の黒 */
    z-index: 999;
}

#payment-modal {
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
}

.regi-modal {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #e25c00;
    padding: 20px;
    position: fixed;
    z-index: 1000;
    width: 80%;
    border-radius: 5px;
    text-align: center;
}

.regi-modal .cancel-btn {
    color: grey;
    border: 1px solid grey;
    padding: 5px 10px;
    border-radius: 50%;
    margin-bottom: 10px;
    float: right;
}

.regi-modal-c {
    margin-block: 40px;
}

.p1 span {
    font-size: 35px;
    font-weight: 500;
}

.p2,
.p5 {
    font-weight: 400;
    font-size: 18px;
}

.regi-modal .grey-btn,
.regi-modal .orange-btn {
    width: -webkit-fill-available;
    /* WebKit系ブラウザ用 */
    width: -moz-available;
    /* Firefox用（旧式） */
    width: fill-available;
    /* 一部の新しい仕様対応ブラウザ用 */
    display: inline-block;
    margin-bottom: 10px;
}

.call-staff .cancel-btn {
    margin-bottom: 0px;
}

.order-submit-completed img {
    width: 40px;
}

.lang-currency-modal {
    border: 1px solid #ffffff;
    padding: 20px 0;
    margin: 5px;
    text-align: center;
    border-radius: 5px;
}

.lang-currency-modal select {
    width: 200px;
    height: 25px;
    font-size: 16px;
}

.lang-currency-modal .form-group {
    margin-bottom: 25px;
    display: flex;
}

.modal-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.lang-currency-modal img {
    width: 150px;
}

.lang-currency-modal h2 {
    margin: 0;
    color: #555;
}

.lang-currency-modal .orange-btn {
    width: 200px;
    padding: 5%;
    display: block;

}


/* detail.php 数量調整ボタン 追加 251211 */
.cuisine-num {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cuisine-minus,
.cuisine-plus {
  width: 38px;
  height: 38px;
  font-size: 30px;
  line-height: 1;
  border-radius: 50%;
  background-color: #FF6B35;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.cuisine-number {
  width: 60px;
  height: 38px;
  text-align: center;
  font-size: 18px;
  border: 1px solid #ddd;
  border-radius: 4px;
}



@media (max-width: 500px) {
    .main-content {
        max-width: 100%;
    }

}

@media (max-width: 387px) {

    .grey-btn,
    .orange-btn {
        padding: 3%;
    }

}



        /* スライダー全体 */
        .slider {
            position: relative;
            overflow-x: scroll;
            /* 横スクロール可 */
            scroll-snap-type: x mandatory;
            display: flex;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            /* Firefox: スクロールバー非表示 */
        }

        .slider::-webkit-scrollbar {
            display: none;
            /* Chrome, Safari, Edge: スクロールバー非表示 */
        }

        /* 各スライド */
        .slide {
            flex: 0 0 100%;
            scroll-snap-align: start;
            position: relative;
        }

        /* 画像 */
        .slide img {
            width: 100%;
            height: auto;
            /* 高さ制限なし */
            display: block;
            object-fit: contain;
        }

        /* ドット表示 */
        .dots {
            text-align: center;
            margin: 10px 0;
            font-size: 0;
            /* ← インライン要素の隙間を消す */
        }

        .dots span {
            display: inline-block;
            width: 8px;
            height: 8px;
            background: #444;
            border-radius: 50%;
            opacity: 0.3;
            margin: 0 4px;
            vertical-align: middle;
            /* ← 中央揃え */
            transition: opacity 0.3s;
        }

        .dots span.active {
            opacity: 1;
        }

               /* メニュー詳細スライダー */
        .media-eles {
            position: relative;
            overflow-x: scroll;
            /* 横スクロール可 */
            scroll-snap-type: x mandatory;
            display: flex;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            /* Firefox: スクロールバー非表示 */
        }

        .media-eles::-webkit-scrollbar {
            display: none;
            /* Chrome, Safari, Edge: スクロールバー非表示 */
        }

        /*各スライド*/
        .media-ele {
            flex: 0 0 100%;
            scroll-snap-align: start;
            position: relative;
                width: 100%;
    height: 250px;/*251114*/
    max-height: 350px;
    object-fit: cover;
        }

        /* 画像 */
        .media-ele img {
            width: 100%;
            display: block;
            object-fit: contain;
        }
        #playPauseBtn{
            display: none;
        }

        /*251114footer&main*/
        .cuisine-footer{
            min-height: 130px;
        }
        .cuisine-main{
        padding-bottom: 150px;
        }

        .order-history-footer{
            min-height: 270px;
        }
.order-history-main{
    padding-bottom: 300px;
}
.order-footer{
    min-height: 190px;
}
.order-main{
padding-bottom: 250px;
}