html {
  font-size: 15px;
}

@media (min-width: 640px) {
  html {
    font-size: 15.5px;
  }
}

@media (min-width: 1024px) {
  html {
    font-size: 16px;
  }
}

body {
  font-size: 0.95rem;
  line-height: 1.75;
  letter-spacing: 0.06em;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 200;
}

.text-7xl {
  font-size: 3.2rem !important;
}

.text-6xl {
  font-size: 2.65rem !important;
}

.text-5xl {
  font-size: 2.2rem !important;
}

.text-4xl {
  font-size: 1.85rem !important;
}

.text-3xl {
  font-size: 1.6rem !important;
}

.text-2xl {
  font-size: 1.35rem !important;
}

.text-xl {
  font-size: 1.08rem !important;
}

.text-lg {
  font-size: 0.98rem !important;
}

.text-base {
  font-size: 0.92rem !important;
}

.text-sm {
  font-size: 0.85rem !important;
}

.text-xs {
  font-size: 0.75rem !important;
}



.course-description-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.9;
  letter-spacing: 0.12em;
  opacity: 0.85;
}

@media (max-width: 640px) {
  .course-description-bracket {
    padding: 1.5rem 1.5rem !important;
    margin: 0 auto 1.6rem !important;
    width: calc(100% - 3rem) !important;
    max-width: 520px;
    box-sizing: border-box;
  }

  /* スマホでも装飾を表示（サイズを調整） */
  .course-description-bracket::before {
    top: -8px !important;
    left: 8px !important;
    height: 40px !important;
    display: block !important;
  }

  .course-description-bracket::after {
    top: 8px !important;
    left: -8px !important;
    width: 40px !important;
    display: block !important;
  }

  .course-description-bracket h2 {
    text-align: center !important;
    width: 100%;
    margin: 0 auto;
  }

  .course-description-bracket h2::before {
    bottom: -8px !important;
    right: 8px !important;
    height: 40px !important;
    display: block !important;
  }

  .course-description-bracket h2::after {
    bottom: 8px !important;
    right: -8px !important;
    width: 40px !important;
    display: block !important;
  }
}

.review-list-intro {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.8;
  opacity: 0.75;
}

.review-section-divider {
  width: 56px;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0.75rem auto 2rem;
}

.review-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.review-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.review-card .review-stars {
  display: flex;
  gap: 0.15rem;
  color: #facc15;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.review-card .review-meta {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 0.5rem;
}

.review-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.review-card p {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.85;
  opacity: 0.85;
  white-space: pre-line;
}

.review-card footer {
  margin-top: 1rem;
  font-size: 0.78rem;
  opacity: 0.55;
  letter-spacing: 0.14em;
}

/* Font families */
.heading-font {
  font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
  font-weight: 100;
  letter-spacing: -0.03em;
}

.body-font {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 200;
}

/* Section heading with underline */
.section-heading {
  font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
  font-weight: 100;
  letter-spacing: -0.06em;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
}

/* Custom underline for section headings */
.section-underline {
  height: 1.5px;
  background-color: rgba(255, 255, 255, 0.6);
}

.btn-fixed {
  width: 200px !important;
  text-align: center;
  display: block;
  justify-content: center;
  align-items: center;
  box-sizing: border-box !important;
  padding-left: 2rem;
  padding-right: 2rem;
  margin: 0 auto;
}

/* Navigation button fixed width */
.nav-button {
  width: 80px !important;
  min-width: 80px !important;
  max-width: 80px !important;
  box-sizing: border-box !important;
  text-align: center !important;
  display: inline-block !important;
  color: white !important;
}

/* Option price grid layout */
.option-price-grid {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 1rem !important;
  align-items: center !important;
  margin-bottom: 0.75rem !important;
}

.option-price {
  min-width: 100px !important;
  text-align: left !important;
  font-variant-numeric: tabular-nums !important;
  font-size: 1.25rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
  white-space: nowrap !important;
}

/* Course description with cross decorations */
.course-description-bracket {
  position: relative;
  padding: 30px 0;
  margin: 0 auto 2rem;
  width: 100%;
  box-sizing: border-box;
  /* Use flexbox for guaranteed centering */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.course-description-text {
  text-align: center;
  line-height: 1.8;
  opacity: 0.9;
  position: relative;
}

/* h2 with decorations - block element centered via flexbox parent */
.course-description-bracket h2 {
  position: relative;
  text-align: center !important;
  display: block !important;
  width: 400px !important;
  max-width: calc(100% - 40px) !important;
  padding: 0 60px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

/* Top-left cross using gradient background (十字形：縦線と横線が交差) */
.course-description-bracket h2::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 10px;
  width: 50px;
  height: 50px;
  background: 
    linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0.3)) 25px 0 / 1px 100% no-repeat,
    linear-gradient(to right, rgba(255,255,255,0.3), rgba(255,255,255,0.3)) 0 25px / 100% 1px no-repeat;
}

/* Bottom-right cross using gradient background (十字形：縦線と横線が交差) */
.course-description-bracket h2::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: 10px;
  width: 50px;
  height: 50px;
  background: 
    linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0.3)) 25px 0 / 1px 100% no-repeat,
    linear-gradient(to right, rgba(255,255,255,0.3), rgba(255,255,255,0.3)) 0 25px / 100% 1px no-repeat;
}

/* Hide parent pseudo-elements - using h2 pseudo-elements only */
.course-description-bracket::before,
.course-description-bracket::after {
  display: none !important;
}

/* Mobile adjustments for course decorations (640px and below) */
@media (max-width: 640px) {
  .course-description-bracket {
    padding: 25px 0;
  }
  
  /* Same fixed width for both courses on mobile */
  .course-description-bracket h2 {
    width: 280px !important;
    max-width: calc(100vw - 80px) !important;
    padding: 0 40px !important;
    font-size: clamp(0.8rem, 3.5vw, 1.2rem) !important;
  }
  
  /* Top-left cross on mobile (十字形) */
  .course-description-bracket h2::before {
    top: -25px !important;
    left: 5px !important;
    width: 40px !important;
    height: 40px !important;
    background: 
      linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0.3)) 20px 0 / 1px 100% no-repeat,
      linear-gradient(to right, rgba(255,255,255,0.3), rgba(255,255,255,0.3)) 0 20px / 100% 1px no-repeat !important;
  }
  
  /* Bottom-right cross on mobile (十字形) */
  .course-description-bracket h2::after {
    bottom: -25px !important;
    right: 5px !important;
    width: 40px !important;
    height: 40px !important;
    background: 
      linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0.3)) 20px 0 / 1px 100% no-repeat,
      linear-gradient(to right, rgba(255,255,255,0.3), rgba(255,255,255,0.3)) 0 20px / 100% 1px no-repeat !important;
  }
}

/* Extra small screen adjustments (470px and below) */
@media (max-width: 470px) {
  .course-description-bracket {
    width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-top: 35px !important;
    padding-bottom: 35px !important;
  }
  
  .course-description-bracket h2 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 60px !important;
    font-size: clamp(1rem, 4.2vw, 1.25rem) !important;
  }
  
  /* 左上の十字 - 上に配置 */
  .course-description-bracket h2::before {
    left: 0 !important;
    top: -35px !important;
    bottom: auto !important;
    width: 60px !important;
    height: 60px !important;
    background: 
      linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0.3)) 30px 0 / 1px 100% no-repeat,
      linear-gradient(to right, rgba(255,255,255,0.3), rgba(255,255,255,0.3)) 0 30px / 100% 1px no-repeat !important;
  }
  
  /* 右下の十字 - 下に配置 */
  .course-description-bracket h2::after {
    right: 0 !important;
    bottom: -35px !important;
    top: auto !important;
    width: 60px !important;
    height: 60px !important;
    background: 
      linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0.3)) 30px 0 / 1px 100% no-repeat,
      linear-gradient(to right, rgba(255,255,255,0.3), rgba(255,255,255,0.3)) 0 30px / 100% 1px no-repeat !important;
  }
}
/* Mobile UI Refinements */

/* Increase mobile horizontal margins */
@media (max-width: 640px) {
  .container {
    padding-left: 2.5rem !important; /* px-10 equivalent */
    padding-right: 2.5rem !important;
  }
}

/* Compact images on mobile */
@media (max-width: 640px) {
  .mobile-compact-image {
    width: 85% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }
  
  /* Specific adjustment for hero logo if needed */
  .hero-logo-mobile {
    height: 6rem !important; /* Smaller logo on mobile */
  }
}

/* Header z-index fix - ensure header stays on top of all content */
header.fixed {
  z-index: 9999 !important;
  isolation: isolate;
  position: fixed !important;
}

/* Stylish Mobile Menu Styles */
[data-mobile-menu] {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, rgba(10, 10, 10, 0.95) 100%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  border-top: none !important;
}

[data-mobile-menu] nav {
  padding: 1.5rem 0 !important;
}

[data-mobile-menu] nav a {
  position: relative;
  display: block;
  padding: 1rem 1.5rem !important;
  margin: 0.25rem 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.08em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* Left accent line */
[data-mobile-menu] nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.3) 100%);
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 2px 2px 0;
}

/* Background slide effect */
[data-mobile-menu] nav a::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

/* Divider between menu items - using box-shadow for cleaner implementation */
[data-mobile-menu] nav a:not(:last-child) {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Hover and active states */
[data-mobile-menu] nav a:hover,
[data-mobile-menu] nav a:active {
  color: rgba(255, 255, 255, 1) !important;
  transform: translateX(4px);
  padding-left: 2rem !important;
}

[data-mobile-menu] nav a:hover::before {
  height: 60%;
}

[data-mobile-menu] nav a:hover::after {
  width: 100%;
}

/* Remove nav-button class constraints for mobile menu */
[data-mobile-menu] nav a.nav-button {
  width: auto !important;
  min-width: auto !important;
  max-width: none !important;
  text-align: left !important;
}

/* Gallery image titles - ensure text is visible */
.relative.overflow-hidden.group .absolute.bottom-0 p.text-sm,
.relative.overflow-hidden.group .absolute.bottom-0 p {
  color: white !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
