:not(:defined) > * {
    display: none;
}

html {
    height: 100%; 
}

body {
    font-family: 'Josefin Sans', sans-serif;
    background-color: #F6E8D4;
    height: 100%;
    margin: 0;
    padding: 0;
    overscroll-behavior-y: none;
}

img {
    max-width: 100%;
    height: auto;
}

#ar-button {
    position: absolute;
    justify-content:left;
    left: 2%;
    bottom: 20px;
    font-size: 15px;
}

@keyframes circle {
    from { transform: translateX(-50%) rotate(0deg) translateX(50px) rotate(0deg); }
    to   { transform: translateX(-50%) rotate(360deg) translateX(50px) rotate(-360deg); }
}

@keyframes elongate {
    from { transform: translateX(100px); }
    to   { transform: translateX(-100px); }
}

.up-left-ctl {
    position: absolute;
    top: 10px;
    left: 10px;
    height: 40px;
}

.up-right-ctl {
    position: absolute;
    top: 10px;
    right: 10px;
    height: 40px;
}

.bottom-right-ctl {
    position: absolute;
    bottom: 10px;
    right: 15px;
}

.bottom-ctl {
    position: fixed;
    bottom: 70px;
}

.center_buttom_button {
    position: absolute;
    left: 50%;
    bottom: 15px;
    transform: translate(-50%, 0%);
}

.center_button {
    display:flex;
    justify-content:center;
    text-align: center;
 }

model-viewer {
    position: absolute;
    /* top: 40px; */
    width: 100%;
    height: calc(100% - 160px);
    background-position: center;
    background-color: #F6E8D4;
    overflow-x: hidden;
}

model-viewer > #ar-prompt {
    position: absolute;
    left: 50%;
    bottom: 175px;
    animation: elongate 2s infinite ease-in-out alternate;
    display: none;
}

model-viewer[ar-status="session-started"] > #ar-prompt {
    display: block;
}

model-viewer > #ar-prompt > img {
    animation: circle 4s linear infinite;
}

model-viewer > #ar-failure {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 175px;
    display: none;
}

model-viewer[ar-tracking="not-tracking"] > #ar-failure {
    display: block;
}

.slider {
    width: 100%;
    text-align: center;
    overflow: hidden;
    position: absolute;
    bottom: 10px;
}

.slides {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.slide {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 70px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #f7e4f1;
    margin-right: 8px;
    border-radius: 10px;
    display: flex;
}

.slide.selected {
    border: 2px solid #E66700;
}

.slide:focus {
    outline: none;
}

.slide:focus-visible {
    outline: 1px solid #E66700;
}

button {
    background-color: transparent;
    border: 2px solid transparent;
}

.footer {
    padding: 2rem;
    font-size: 15px;
    color: #fff;
    background: #fff;
}
  
.footer__navi {
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
  
.footer__navi li {
    display: inline-block;
}
  
.footer__navi li:not(:last-child) {
    margin-right: 16px;
}
  
.footer__logo {
    display: inline-block;
    margin-bottom: 1rem;
}


.selectbox-custom {
    position: relative;
    font-size: 13px;
}

.selectbox-custom::before,
.selectbox-custom::after {
    position: absolute;
    content: '';
    pointer-events: none;
}

.selectbox-custom::before {
    right: 0;
    display: inline-block;
    width: 2.8em;
    height: 2.5em;
    border-radius: 0 4px 4px 0;
    background-color: #E66700;
    content: '';
}

.selectbox-custom::after {
    position: absolute;
    top: 50%;
    right: 1.4em;
    transform: translate(50%, -50%) rotate(45deg);
    width: 6px;
    height: 6px;
    border-bottom: 3px solid #fff;
    border-right: 3px solid #fff;
    content: '';
}

.selectbox-custom select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 150px;
    height: 2.5em;
    padding: .4em 3.6em .4em .8em;
    border: 2px solid #E66700;
    border-radius: 3px;
    color: #333333;
    font-size: 1em;
    cursor: pointer;
}

.selectbox-custom select:focus {
    outline: 1px solid #E66700;
}

.btn-radius {
    border-radius: 100px !important;
}

.btn {
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
    padding: 14px 18px;
    color: white;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.14);
}

.btn-primary {
    background: #E66700;
    background: -moz-linear-gradient(-45deg, #E66700 0%, #E66700 100%);
    background: -webkit-linear-gradient(-45deg, #E66700 0%,#E66700 100%);
    background: linear-gradient(135deg, #E66700 0%,#E66700 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#E66700', endColorstr='#E66700',GradientType=1 );
    border: medium none;
    background-size: 200% 200%;
}

.qr_button {
    text-align: right;
    display:flex;
    justify-content:right;
    padding: 0px 25px 0px 0px;
 }

 .sel_label {
    font-size: 12px;
 }

input {
    display: none;
}

/* ポップアップwindow部分 */
#overlay {
    visibility: hidden;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 70;
    width: 100%;
    height: 100%;
}

/* オーバーレイの背景部分 */
#bg_gray {
    background: rgba(0,0,0,0.5);
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 80;
}

/* ウィンドウ部分 */
#window {
    width: 50%;
    padding: 20px;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 0px 20px -6px rgba(0,0,0,0.6);
    z-index: 90;
    opacity: 0;
}
/* 閉じるボタン */
#btn_cloth {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #E66700;
    border-radius: 5px;
    z-index: 100;
    cursor: pointer;
}
#btn_cloth:hover {
    opacity: 0.7;
}
#btn_cloth span,
#btn_cloth span::before {
    display: block;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background: #fff;
}

#btn_cloth span {
    transform: rotate(45deg);
}
#btn_cloth span::before {
    content: "";
    position: absolute;
    bottom: 0;
    transform: rotate(-90deg);
}

.btn-link {
    font-size: 13px;
    font-weight: bold;
    color: #E66700;
    letter-spacing: 1px;
}


/* クリックで表示 */
#popup:checked ~ #overlay {
    visibility: visible;
}

#popup:checked ~ #overlay #window {
    animation: fadein 500ms forwards;
    animation-timing-function: ease-in-out;
}

@keyframes fadein {
    100% {
        opacity: 1;
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.content {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.content.loaded {
    opacity: 1;
}

.error-message {
    color: black;
    text-align: center;
    padding: 20px;
}