/* 
 * LeoPalace Resort Guam - Privacy Policy Stylesheet
 */

/* ----------------------------------------
   Hero Section (MV) Styles for Privacy Policy
---------------------------------------- */
p, h3 {
  letter-spacing: 1px;
}

.policy-page .slideshow-item:nth-child(1) {
  background-image: url('/top/img/privacy-hero.jpg');
  opacity: 1 !important;
}

/* ----------------------------------------
   Privacy Policy Specific Styles
---------------------------------------- */
.privacy-page {
  background-color: #FFFFFF;
}

.privacy-header {
  padding: 60px 0 30px;
  text-align: center;
}

.policy-meta {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
}

.policy-intro {
  max-width: 800px;
  margin: 0 auto;
  font-size: var(--font-size-xs);
  line-height: 1.8;
  color: var(--color-text);
}

.privacy-content {
  padding: 60px 0 60px;
}

.policy-section {
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--color-border);
}

.policy-section:last-child {
  border-bottom: none;
}

.policy-section h3 {
  color: var(--color-primary);
  font-size: calc(var(--font-size-lg) - 2px);
  font-weight: 500;
  margin-bottom: 20px;
  text-align: left;
  letter-spacing: 1.5px;
  position: relative;
  padding-bottom: 15px;
}

.policy-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--color-primary);
}

.policy-subsection {
  margin: 30px 0;
  padding: 20px;
  background-color: rgba(236, 224, 211, 0.2);
  border-radius: 8px;
}

.policy-subsection h4 {
  color: var(--color-primary);
  font-size: var(--font-size-md);
  font-weight: 400;
  margin-bottom: 15px;
  letter-spacing: 1.2px;
}

.subsection-title {
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
}

.privacy-content ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.privacy-content ul li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 15px;
  line-height: 1.6;
}

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

.privacy-content ul ul {
  margin-top: 8px;
  margin-left: 20px;
}

.privacy-content p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.privacy-content a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.privacy-content a:hover {
  color: var(--color-hover);
}

.contact-details {
  background-color: rgba(236, 224, 211, 0.2);
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
  font-style: normal;
}

.contact-details p {
  margin-bottom: 10px;
}

/* ----------------------------------------
   Table of Contents Styles
---------------------------------------- */
/* モバイル用目次トグルボタン */
.toc-mobile-button {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 95;
}

.toc-mobile-button button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 10px 15px;
  font-size: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.toc-mobile-button button:hover {
  background-color: var(--color-hover);
}

.toc-mobile-button button svg {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.toc-mobile-button button.active svg {
  transform: rotate(180deg);
}

/* 目次閉じるボタン */
.toc-close-btn {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.toc-close-btn svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

/* デスクトップ用スティッキー目次 */
.toc-section.sticky {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 20px 0;
  transition: all 0.3s ease;
  background-color: rgba(236, 224, 211, 0.95);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.toc-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 15px 25px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.toc-section.compact .toc-container {
  padding: 10px 20px;
}

.toc-container h3 {
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 15px;
  font-weight: 500;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.toc-section.compact .toc-container h3 {
  margin-bottom: 10px;
  padding-bottom: 8px;
  font-size: var(--font-size-md);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 3;
  column-gap: 30px;
  transition: all 0.3s ease;
}

.toc-section.compact .toc-list {
  columns: 3;
  column-gap: 20px;
  font-size: 0.9em;
}

.toc-list li {
  margin-bottom: 12px;
  break-inside: avoid;
}

.toc-section.compact .toc-list li {
  margin-bottom: 8px;
}

.toc-list a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: var(--font-size-xs);
  position: relative;
  display: inline-block;
  padding-left: 0;
}

.toc-list a:hover {
  color: var(--color-primary);
}

.toc-list a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.toc-list a:hover::before {
  width: 100%;
}

.toc-list a.active {
  color: var(--color-primary);
  font-weight: 500;
}

.toc-list a.active::before {
  width: 100%;
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.scroll-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
}

.scroll-to-top:hover {
  background-color: var(--color-hover);
}

/* モバイル環境でメニュー展開時に本文のスクロールを防止 */
body.toc-open {
  overflow: hidden;
}

/* ----------------------------------------
   Responsive Styles
---------------------------------------- */
@media screen and (max-width: 1024px) {
  .policy-meta {
    gap: 20px;
  }
  
  .toc-list {
    columns: 2;
  }
  
  .toc-section.compact .toc-list {
    columns: 2;
  }
}

/* モバイル向け最適化（768px以下） */
@media screen and (max-width: 768px) {
  .privacy-header {
    padding: 40px 0 20px;
  }
  
  .policy-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .policy-section h3 {
    font-size: var(--font-size-md);
  }
  
  .policy-subsection {
    padding: 15px;
  }
  
  /* デスクトップ用スティッキー目次を非表示 */
  .toc-section.sticky {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
  }
  
  /* モバイル用に目次を表示した時のスタイル */
  .toc-section.sticky.show {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* モバイル用トグルボタンを表示 */
  .toc-mobile-button {
    display: block;
  }
  
  /* モバイル用閉じるボタンを表示 */
  .toc-close-btn {
    display: block;
  }
  
  .toc-container {
    max-width: 90%;
    margin: 20px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
  }
  
  .toc-section.compact .toc-container {
    padding: 8px 12px;
  }
  
  .toc-list, 
  .toc-section.compact .toc-list {
    columns: 1;
  }
  
  .toc-container h3 {
    margin-bottom: 10px;
    padding-bottom: 8px;
    font-size: var(--font-size-md);
  }
  
  .toc-section.compact .toc-container h3 {
    font-size: var(--font-size-sm);
    margin-bottom: 8px;
    padding-bottom: 6px;
  }
  
  .toc-list li {
    margin-bottom: 15px;
  }
  
  .toc-list a {
    display: block;
    padding: 8px 5px;
    background-color: rgba(236, 224, 211, 0.2);
    border-radius: 5px;
  }
  
  .scroll-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
  }
  
  .scroll-to-top svg {
    width: 20px;
    height: 20px;
  }
}

@media screen and (max-width: 480px) {
  .privacy-header {
    padding: 60px 0 15px;
  }
  
  .policy-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
  }
  
  .policy-section h3 {
    font-size: var(--font-size-sm);
    padding-bottom: 10px;
  }
  
  .policy-subsection h4 {
    font-size: var(--font-size-sm);
  }
  
  .privacy-content ul {
    margin-left: 10px;
  }
  
  .privacy-content ul li {
    padding-left: 12px;
  }
  
  .toc-container {
    padding: 15px;
  }
  
  .contact-details {
    padding: 15px;
  }
}