/* ==========================================================================
   Media Queries & Responsive Adjustments
   ========================================================================== */
   
   @supports (-webkit-touch-callout: none) {
       .panel.landscape .video-container,
       .panel.landscape iframe {
           position: absolute;
           left: 50%;
           transform: translateX(-50%);
           -webkit-transform: translateX(-50%);
           width: 100% !important;
           max-width: 100vw;
       }
   }
   
   @media screen and (max-width: 844px) and (-webkit-min-device-pixel-ratio: 2) {
       .panel.landscape .video-container iframe {
           left: 0;
           right: 0;
           margin: 0 auto;
           transform: none;
           -webkit-transform: none;
       }
   }

/* デスクトップ等の大きな画面での設定 */
@media (min-width: 1025px) {
    #floating-controls {
      margin-right: calc(100vw / 2 - var(--max-content-width) / 2 + 10px);
    }
}

.nav-footer,
.detail-overlay {
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Desktop Guide Window
   ========================================================================== */

.desktop-guide {
  display: none;
  position: fixed;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  width: calc((100vw - var(--max-content-width)) * 0.5 - 40px);
  max-width: var(--max-content-width) ;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 20px;
  color: #fff;
  z-index: 1000;
}

.desktop-guide .material-symbols-outlined {
  font-size: 2rem;
  color: var(--theme-color);
  margin-bottom: 10px;
}

.desktop-guide p {
  margin: 0;
  line-height: 1.6;
  font-size: 0.9rem;
}

@media (min-width: 1025px) {
  .desktop-guide {
    display: block !important;
  }
}

.news-section-title {
  background: var(--theme-color);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5em;
  margin-bottom: 1em;
  padding: 0 1em;
  border-radius: 2px;
}

/* Information Container and Sections */
.info-section {
    background: #e1f5fe;
    border-left: 4px solid #0288d1;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-section .info-title {
  color: #0288d1;
  font-size: 1rem;
  font-weight: bold;
  margin: 0 0 10px 0;
}

.info-section .info-content {
  color: #333;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.info-section .info-button {
  background-color: #0288d1;
  border: none;
  padding: 8px 15px;
  margin-top: 10px;
  border-radius: 2px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
  color: #fff;
}

/* Slideshow */
.slide-container {
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Initial Setup Overlay */
.setup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ddd;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.setup-overlay .setup-outside-desc {
  position: absolute;
  bottom: 20px;
  color: #aaa;
  font-size: 0.75rem;
}

.setup-content {
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  overflow-y: auto;
}

.setup-step {
  text-align: center;
}

.setup-step h2 {
  margin-bottom: 0.5rem;
  color: #333;
}

.setup-desc {
  margin-bottom: 30px;
  color: #666;
  line-height: 1.6;
}

.terms-container {
  margin: 20px 0;
  max-height: 35vh;
  overflow-y: auto;
  border: 1px solid #ddd;
  padding: 15px;
  text-align: left;
}

.terms-content {
  color: #333;
  line-height: 1.6;
  font-size: 14px;
}

.terms-content h2 {
  font-size: 1.2em;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.3em;
}

.terms-content h3 {
  font-size: 1.1em;
  margin: 1.2em 0 0.6em;
  color: #444;
}

.terms-content p {
  margin: 0.8em 0;
}

.terms-content ul, .terms-content ol {
  margin: 0.8em 0;
  padding-left: 1.5em;
}

.terms-content li {
  margin: 0.4em 0;
}

.terms-content em {
  color: #666;
  font-style: italic;
}

.terms-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #333;
}

.terms-actions,
.setup-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.terms-accept,
.setup-accept,
.setup-decline {
  padding: 10px 30px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: opacity 0.3s;
}

.terms-accept,
.setup-accept {
  background: var(--theme-color);
  color: #fff;
}

.setup-decline {
  background: transparent;
  color: #666;
  border: 1px solid #666;
}

.terms-accept:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.terms-accept:not(:disabled):hover,
.setup-accept:hover {
  opacity: 0.9;
}

.setup-decline:hover {
  background: #f5f5f5;
}

/* ==========================================================================
   Maintenance Mode
   ========================================================================== */

.maintenance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    text-align: center;
}
