/* 
 * LeoPalace Resort Guam - Terms of Use Stylesheet
 */

/* ----------------------------------------
   Hero Section
---------------------------------------- */
.terms-page .mv {
  background-position: center center;
}

.terms-page .slideshow-item:nth-child(1) {
  background-image: url('/terms/img/terms-hero1.jpg');
}

/* ----------------------------------------
   Terms Section
---------------------------------------- */
.terms-section {
  padding: 80px 0 60px;
}

.terms-container {
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
}

.terms-container h2 {
  margin-bottom: 30px;
  color: var(--color-primary);
  font-size: 28px;
  letter-spacing: 2px;
  text-align: center;
}

.terms-introduction {
  margin-bottom: 40px;
  text-align: center;
}

.terms-introduction p {
  line-height: 1.8;
  font-weight: 300;
  letter-spacing: 1px;
}

.terms-content {
  margin-bottom: 40px;
}

.terms-item {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.terms-item:last-child {
  border-bottom: none;
}

.terms-item h3 {
  margin-bottom: 15px;
  color: var(--color-primary);
  font-size: 20px;
  font-weight: 500;
  text-align: left;
  letter-spacing: 1px;
}

.terms-item p {
  margin-bottom: 15px;
  line-height: 1.8;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.terms-item p:last-child {
  margin-bottom: 0;
}

.terms-item ul, 
.terms-item ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

.terms-item ul li, 
.terms-item ol li {
  position: relative;
  margin-bottom: 10px;
  line-height: 1.8;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.terms-item ul li {
  padding-left: 15px;
}

.terms-item ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

.terms-item ol {
  counter-reset: item;
  list-style-type: none;
  margin-left: 0;
  padding-left: 20px;
}

.terms-item ol li {
  counter-increment: item;
  padding-left: 10px;
}

.terms-item ol li::before {
  content: counter(item) ".";
  position: absolute;
  left: -20px;
  width: 20px;
  color: var(--color-primary);
  text-align: right;
}

.terms-item strong {
  font-weight: 500;
}

/* Browser Table Styles */
.browser-table {
  position: relative;
  overflow-x: auto;
  margin: 20px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  width: 100%;
  display: block;
}

.browser-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* テーブルの最小幅を設定 */
}

/* 横スクロールヒント（→マーク） */
.scroll-hint.horizontal {
  position: absolute;
  right: 40%;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background-color: rgba(145, 138, 122, 0.8);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.scroll-hint.horizontal::after {
  content: '→';
  color: white;
  font-size: 24px;
  font-weight: bold;
  animation: bounceArrowHorizontal 1.5s infinite;
}

@keyframes bounceArrowHorizontal {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(0);
  }
  40% {
    transform: translateX(5px);
  }
  60% {
    transform: translateX(3px);
  }
}

/* スクロール可能なテーブル用スタイル */
.is-scrollable-x .scroll-hint.horizontal {
  opacity: 0.9;
}

.browser-table th, 
.browser-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.browser-table th {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 400;
  letter-spacing: 1px;
}

.browser-table tr:hover {
  background-color: #f5f5f5;
}

.browser-table tr {
  background-color: var(--color-white);
}

.browser-table tr:hover {
  background-color: #f5f5f5;
}

/* Terms Footer */
.terms-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.terms-footer p {
  line-height: 1.8;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.terms-footer a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color 0.3s;
}

.terms-footer a:hover {
  color: var(--color-hover);
}

/* ----------------------------------------
   Responsive Styles
---------------------------------------- */
@media (max-width: 1024px) {
  .terms-container {
    width: 90%;
  }
}

@media (max-width: 768px) {
  .terms-section {
    padding: 60px 0 40px;
  }
  
  .terms-container h2 {
    font-size: 24px;
  }
  
  .terms-item h3 {
    font-size: 18px;
  }
  
  .browser-table {
    margin: 15px 0; /* マージンを修正 */
    width: 100%; /* 幅を100%に制限 */
    border-radius: 0;
  }
  
  .browser-table table {
    width: 100%;
    min-width: 600px; /* Ensure horizontal scrolling on small screens */
  }
  
  .browser-table th, 
  .browser-table td {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .terms-section {
    padding: 40px 0 30px;
  }
  
  .terms-container {
    width: 95%;
  }
  
  .terms-container h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }
  
  .terms-introduction {
    margin-bottom: 30px;
  }
  
  .terms-item {
    margin-bottom: 30px;
    padding-bottom: 15px;
  }
  
  .terms-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }
  
  .terms-item p {
    font-size: 14px;
  }
  
  .terms-item ul, 
  .terms-item ol {
    margin-left: 10px;
  }
  
  .terms-item ul li, 
  .terms-item ol li {
    font-size: 14px;
  }
  
  .browser-table th, 
  .browser-table td {
    padding: 8px;
    font-size: 13px;
  }
  
  .browser-table table {
    min-width: 500px;
  }
}