:root {
  /* Brand Colors */
  --primary-color: #C05A2A;
  /* ブランドオレンジ - 見�Eし�Eロゴ・重要メチE��ージ */
  --secondary-color: #B89B5E;
  /* ウォームゴールチE- アイコン・図解・コンセプト強調 */
  --accent-color: #B89B5E;
  /* ウォームゴールチE- アクセンチE*/
  --text-color: #3A3A3A;
  /* ダークグレー - 本斁E�E説明文 */
  --bg-color: #F6F3EE;
  /* ソフトベ�Eジュ - 背景・余白 */
  --white: #ffffff;
  --gray-light: #D9D9D9;
  /* ライトグレー - 罫線�E表絁E�� */

  /* Accent Colors (for gradients and overlays) */
  --accent-smoky-blue: #5E7C99;
  --accent-dusty-pink: #C79A9A;
  --accent-soft-amber: #C8A15A;

  /* Fonts */
  --font-heading: 'Playfair Display', 'Noto Serif JP', serif;
  --font-body: 'Noto Serif JP', serif;
  --font-english: 'Playfair Display', serif;

  /* Transition */
  --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* セクションは最初から表示（フェードインなし） */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: none;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1,
.reveal-delay-2,
.reveal-delay-3 {
  transition-delay: 0s;
}

/* Sakura Falling Animation */
.sakura-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  /* Behind content frames (101) */
  overflow: hidden;
}

.petal {
  position: absolute;
  background-color: #ffdae0;
  border-radius: 150% 0 150% 0;
  opacity: 0;
  /* Managed by keyframe and CSS variable */
  pointer-events: none;
  animation: sakura-fall linear infinite, sakura-shake ease-in-out infinite;
  will-change: transform, top;
}

@keyframes sakura-fall {
  0% {
    top: -5%;
    transform: rotate(0deg);
    opacity: 0;
  }

  15% {
    opacity: var(--petal-opacity, 0.3);
  }

  85% {
    opacity: var(--petal-opacity, 0.3);
  }

  100% {
    top: 105%;
    transform: rotate(720deg);
    opacity: 0;
  }
}

@keyframes sakura-shake {

  0%,
  100% {
    margin-left: 0;
  }

  50% {
    margin-left: 30px;
  }
}

.bg-sakurachiru-decor {
  position: relative;
  overflow: hidden;
}

.bg-sakurachiru-decor::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('image/sakurachiru.jpg');
  background-size: 400px auto;
  background-repeat: repeat;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}


.bg-sakurachiru-decor .container {
  position: relative;
  z-index: 1;
}

.bg-matsu::before {
  background-image: url('image/matsu.jpg');
  top: -150px;
  right: -150px;
  width: 700px;
  height: 700px;
  --base-transform: rotate(15deg);
}

.bg-matsu::after {
  content: '';
}

.container {
  position: relative;
  z-index: 1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

@media (min-width: 769px) {
  .mobile-break {
    display: none;
  }
}

@media (max-width: 768px) {
  .mobile-break {
    display: block;
  }
}

/* Navigation Menu */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  background-color: rgba(255, 255, 255, 0.9);
  background-image:
    linear-gradient(45deg, rgba(184, 155, 94, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(184, 155, 94, 0.05) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(184, 155, 94, 0.05) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(184, 155, 94, 0.05) 75%);
  background-size: 80px 80px;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

.main-nav.visible {
  transform: translateY(0);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-nav {
  font-family: var(--font-english);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1px;
}

.logo-the,
.logo-school {
  color: #3A3A3A;
}

/* Hamburger Menu */
.hamburger-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.hamburger-menu span {
  width: 100%;
  height: 3px;
  background: #3A3A3A;
  border-radius: 3px;
  transition: var(--transition);
  transform-origin: center;
  position: absolute;
}

.hamburger-menu span:nth-child(1) {
  top: 6px;
}

.hamburger-menu span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-menu span:nth-child(3) {
  bottom: 6px;
}

.hamburger-menu.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* Sidebar Menu */
.sidebar-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 999;
  pointer-events: none;
}

.sidebar-menu.active {
  pointer-events: all;
}

.sidebar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-menu.active .sidebar-overlay {
  opacity: 1;
}

.sidebar-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 85%;
  height: 100%;
  background: var(--white);
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 100px 30px 40px;
  /* Increased top padding to clear the fixed header */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background-image: radial-gradient(var(--bg-color) 0.5px, transparent 0.5px);
  background-size: 10px 10px;
  /* Soft dotted background */
  position: relative;
}

/* Add Uroko pattern to sidebar for premium feel */
.sidebar-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M0 40L20 0L40 40H0Z' fill='%23C05A2A' fill-opacity='0.02'/%3E%3C/svg%3E");
  background-size: 60px;
  pointer-events: none;
  z-index: 0;
}

.sidebar-header,
.nav-menu,
.sidebar-footer {
  position: relative;
  z-index: 1;
}

.sidebar-header {
  margin-bottom: 40px;
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(184, 155, 94, 0.2);
}

.sidebar-logo {
  width: 140px;
  margin: 0 auto 10px;
}

.sidebar-tagline {
  font-size: 0.75rem;
  color: var(--secondary-color);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.sidebar-menu.active .sidebar-content {
  transform: translateX(0);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0;
  border-bottom: 1px solid var(--gray-light);
}

.nav-menu li:last-child {
  border-bottom: none;
}

.nav-menu a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  padding: 18px 0;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-marker {
  font-family: var(--font-english);
  font-size: 0.6rem;
  color: var(--primary-color);
  font-weight: 700;
  opacity: 0.4;
  min-width: 20px;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.nav-menu a:hover {
  color: var(--primary-color);
  padding-left: 8px;
}

.nav-menu a:hover .nav-marker {
  opacity: 1;
  transform: rotate(45deg);
}

.nav-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-menu a:hover::before {
  width: 4px;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.sidebar-sns {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  justify-content: flex-start;
}

.sidebar-sns a {
  color: var(--secondary-color);
  font-size: 1.1rem;
  transition: var(--transition);
}

.sidebar-sns a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

.sidebar-info {
  font-size: 0.65rem;
  color: #bbb;
  text-align: center;
  font-style: italic;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Section Eye-Catcher Decoration */
.section-eye-catcher {
  text-align: center;
  margin-bottom: 25px;
  width: 100%;
}

.title-top-image {
  width: 120px;
  height: auto;
  max-width: 25vw;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
  opacity: 0.95;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  animation: float-updown 4s ease-in-out infinite;
  /* Added gentle floating animation */
}

@keyframes float-updown {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.section-eye-catcher:hover .title-top-image {
  /* Keep hover scale effect combined with animation if possible, 
     but simple scale is fine as animation handles Y-axis */
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .title-top-image {
    width: 90px;
    margin-bottom: 15px;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Image Placeholder Styles */
.image-placeholder,
.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.placeholder-content p {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.6;
  margin: 0;
}

.placeholder-icon {
  display: block;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.section {
  padding: 40px 0;
  /* Reduced to match Hero -> Stays-same spacing */
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
  background-color: var(--white);
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 40px 0;
    /* Reduced padding for mobile */
  }
}


.section-eye-catcher {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 20px;
  margin-bottom: 20px;
  position: relative;
  z-index: 10;
}

.title-top-image {
  display: block;
  width: 100px;
  height: auto;
  object-fit: contain;
  opacity: 1;
  transform: translateY(0);
  transition: none;
  position: relative;
  z-index: 5;
  /* Square edge blur effect */
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent),
    linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent),
    linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.reveal.active .title-top-image {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.section-icon {
  font-size: 2.5rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary-color), var(--accent-color), var(--primary-color), transparent);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(212, 106, 58, 0.3);
}

.section-title::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  opacity: 0.5;
}

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

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-family: var(--font-english);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(192, 90, 42, 0.3);
}

/* Helper classes for Uroko pattern on buttons */
.btn-uroko-dark {
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%);
  background-size: 20px 20px;
}

.btn-uroko-gold {
  background-image:
    linear-gradient(45deg, rgba(184, 155, 94, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(184, 155, 94, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(184, 155, 94, 0.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(184, 155, 94, 0.08) 75%);
  background-size: 20px 20px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 90, 42, 0.4);
  background-color: var(--secondary-color);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--primary-color);
  border: 2px solid var(--white);
  font-size: 0.9rem;
  padding: 10px 25px;
  text-shadow: none;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-color);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* ① Hero Section */
.hero {
  position: relative;
  z-index: 10;
  min-height: 80vh;
  /* Reduced from 90vh */
  /* Background moved to pseudo-element for animation */
  background-color: #ffffff;
  /* Removed Wagara Pattern per request */

  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  padding: 40px 20px;
  overflow: hidden;
}

/* 初回表示時はヒーローを隠し、フォーム表示後に表示可能にする（一瞬ヒーローが映るのを防ぐ） */
body:not(.past-intro) .hero {
  visibility: hidden;
}

/* Hero Background for Animation */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('image/hero.jpg');
  background-size: cover;
  background-position: center 30%;
  z-index: 0;

  /* Initial State for Animation */
  opacity: 0;
  filter: blur(20px);
  transform: scale(0.8);
  transition: opacity 1.5s ease-out, filter 1.5s ease-out, transform 1.5s ease-out;
}

.hero.animate-bg::before {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  /* Higher z-index to ensure visibility */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-family: var(--font-english);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  /* Explicitly white */
  opacity: 0.8;
  /* Slightly more visible */
  animation: heroBounce 2s infinite;
}

@keyframes heroBounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-8px);
  }

  60% {
    transform: translateX(-50%) translateY(-4px);
  }
}

.hero-decorative-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-icon {
  position: absolute;
  font-size: 3rem;
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

.hero-icon-1 {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.hero-icon-2 {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.hero-icon-3 {
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0;
  box-sizing: border-box;

  /* Initial State for Animation */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
  /* Slower: 1s -> 1.5s */
}

.hero-content.animate-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-image-placeholder {
  width: 200px;
  height: 150px;
  margin: 0 auto 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  animation: pulse-glow 3s ease-in-out infinite;
}

.hero-image-placeholder .placeholder-content {
  text-align: center;
  color: var(--white);
}

.hero-image-placeholder .placeholder-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 10px;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  }

  50% {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
  }
}

.logo {
  font-size: 3.5rem;
  font-weight: 700;
  font-family: var(--font-english);
  margin-bottom: 30px;
  margin-left: -20px;
  padding-left: 0;
  opacity: 0.95;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
  text-align: center;
  white-space: normal;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  opacity: 0.95;
  text-align: center;
}

.hero-note {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-cta .btn {
  margin-bottom: 0;
}

/* Base Section Style */
.section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* ② What stays the same */
.stays-section {
  background-color: var(--white);
}

.stays-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
}

.stays-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

@media (min-width: 769px) {

  /* Desktop refinement: Vertical Unity */
  .stays-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
  }

  .stays-image-placeholder {
    transform: none;
    max-width: 100%;
  }
}

.stays-list {
  max-width: 1000px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 3;
}

.stays-image-placeholder {
  width: 100%;
  height: 400px;
  background: var(--bg-color);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 100px;
  overflow: hidden;
}

.stays-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.stays-image-placeholder .placeholder-content {
  text-align: center;
  color: var(--text-color);
}

.stays-image-placeholder .placeholder-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 15px;
}

.stays-unified-frame {
  background-color: var(--white);
  padding: 0;
  border-radius: 0;
  border: 1px solid rgba(184, 155, 94, 0.4);
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  z-index: 101;
  /* Above sakura */
  overflow: hidden;
}

@media (min-width: 769px) {
  .stays-unified-frame {
    flex-direction: row;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
    padding: 30px;
  }
}

.stays-unified-frame::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(184, 155, 94, 0.15);
  pointer-events: none;
  z-index: 10;
  border-radius: 0;
}

.stays-image-side {
  flex: 0.6;
  /* Significantly reduced width */
  min-height: 220px;
  /* Reduced height */
  position: relative;
  overflow: hidden;
  padding: 25px;
  /* Add padding to make image smaller */
  display: flex;
  align-items: center;
  justify-content: center;
}

.stays-image-side img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Changed to contain to show full image */
  border-radius: 8px;
}

@media (max-width: 768px) {
  .stays-image-side {
    padding: 20px 20px 0;
  }

  .stays-image-side img {
    object-fit: cover;
  }
}

.stays-info-side {
  flex: 1;
  width: 100%;
  padding: 15px 25px;
  /* Narrower padding to reduce margin with image */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  /* Tighter gap between points */
  position: relative;
  background-color: var(--white);
}

.stays-points-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.stays-points-list li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  transition: transform 0.3s ease;
}

.stays-points-list li:hover {
  transform: translateX(5px);
}

.stays-point-num {
  font-family: var(--font-english);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-color);
  opacity: 0.6;
  margin-top: 5px;
  letter-spacing: 2px;
  min-width: 30px;
}

.stays-point-content strong {
  display: block;
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stays-point-content p {
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.5;
}

.stays-item-content {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  flex: 1;
}

.stays-item-icon {
  font-size: 2rem;
  flex-shrink: 0;
  animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-5deg);
  }

  75% {
    transform: rotate(5deg);
  }
}



.stays-list li strong {
  display: block;
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stays-list li p {
  color: var(--text-color);
  font-size: 0.95rem;
}

/* ③ What's new */
.whats-new-section {
  background-color: var(--white);
  padding: 40px 0;
}

.section-intro {
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 40px;
  color: var(--text-color);
  font-style: italic;
  padding: 0 10px;
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-bottom: 80px;
    /* Room for scroll indicator */
  }

  .logo {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
    /* Reduced to fit on one line */
    white-space: normal;
    margin-left: 0;
    width: 100%;
    text-align: center;
    margin-bottom: 25px;
  }

  .section-intro {
    font-size: 0.8rem;
    white-space: normal;
    /* Allow wrapping for breaks */
  }

  .section-intro br {
    display: none;
  }

  /* Specific override for our class */
  .section-intro .mobile-break {
    display: block;
  }

  .section-title {
    font-size: 1.6rem;
    /* Slightly increased as requested */
    white-space: normal;
    gap: 10px;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
    line-height: 1.3;
    margin-bottom: 1.5rem;
    white-space: normal;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 1rem;
    white-space: normal;
    text-align: center;
  }
}

@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }

  .mobile-break {
    display: none;
  }
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-break {
    display: block;
  }
}

.whats-new-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
  max-width: 1100px;
  margin: 0 auto 30px;
}

@media (max-width: 768px) {
  .whats-new-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.whats-new-item {
  background-color: var(--white);
  padding: 40px 30px;
  border-radius: 0;
  /* Remove roundness */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(184, 155, 94, 0.4);
  /* Gold border 1 */
  z-index: 101;
  /* Above sakura */
}

/* Elegant Japanese-style double gold border */
.whats-new-item::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(184, 155, 94, 0.15);
  /* Gold border 2 (softer) */
  pointer-events: none;
  z-index: 1;
  border-radius: 0;
}

.whats-new-item::before {
  display: none;
  /* Remove orange gradient shine */
}

.whats-new-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.whats-new-image {
  width: 100%;
  max-width: 100%;
  height: 280px;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: var(--transition);
  box-sizing: border-box;
}

.whats-new-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.whats-new-item:hover .whats-new-image {
  transform: scale(1.02);
}

.whats-new-item:hover .whats-new-image img {
  transform: scale(1.05);
}

.whats-new-item h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.whats-new-subtitle {
  font-size: 1.1rem;
  color: var(--secondary-color);
  /* Non-orange color */
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.whats-new-note {
  text-align: center;
  color: var(--text-color);
  margin-top: 20px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.btn-modal-trigger {
  background: transparent;
  border: 1.5px solid #888;
  /* Grey border */
  color: #666;
  /* Grey text */
  padding: 10px 30px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  z-index: 2;
  box-shadow: none;
}

.btn-modal-trigger:hover {
  background: #f5f5f5;
  border-color: #666;
  color: #333;
  transform: translateY(-2px);
}

/* ④ Why The Japan School */
.why-section {
  background-color: var(--white);
}

.why-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
}

.why-image-placeholder {
  width: 100%;
  height: 350px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

@media (min-width: 769px) {
  .why-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
  }
}

.why-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-key-message {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 30px;
  line-height: 1.4;
}

.why-key-message .mobile-break {
  display: none;
  /* Hide break on desktop */
}

@media (max-width: 768px) {
  .why-key-message .mobile-break {
    display: block;
    /* Show break on mobile */
  }

  .why-key-message {
    font-size: 1.4rem;
    /* Removed white-space: nowrap to allow break */
  }
}

.why-text p {
  margin-bottom: 20px;
}

/* ④-2 Vision & Mission */
.vision-mission-section {
  background: var(--white);
}

.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .vision-mission-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.vision-block,
.mission-block {
  background: var(--white);
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  height: 100%;
  text-align: center;
  border: 1px solid rgba(184, 155, 94, 0.3);
  transition: var(--transition);
  position: relative;
  z-index: 101;
  /* Above sakura */
}

.vision-block:hover,
.mission-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {

  .vision-block,
  .mission-block {
    padding: 30px 20px;
  }
}

.vision-label,
.mission-label {
  text-align: center;
  font-weight: 700;
  color: var(--secondary-color);
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.vision-title-colorful {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: 5px;
  /* Simulate colorful text */
  background: linear-gradient(45deg, #e63946, #f1faee, #a8dadc, #457b9d, #1d3557);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--primary-color);
  /* Fallback */
}

.mission-title {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* ⑤ New Classes */
.new-classes-section {
  background-color: var(--white);
}

.new-classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .new-classes-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

.new-class-card {
  background: var(--white);
  padding: 35px 30px;
  border-radius: 0;
  text-align: left;
  border: 1px solid rgba(184, 155, 94, 0.4);
  /* Double frame style base */
  position: relative;
  transition: var(--transition);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  z-index: 101;
  /* Above sakura */
}

.new-class-card::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(184, 155, 94, 0.15);
  pointer-events: none;
  z-index: 1;
}

.new-class-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.new-class-card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 10px;
}

.new-class-subtitle {
  text-align: center;
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 20px;
  display: block;
}

@media (max-width: 768px) {
  .new-class-subtitle {
    white-space: normal;
  }
}

/* ⑥ Textbook */
.textbook-section {
  background-color: var(--white);
  /* Changed from bg-color to white */
}

.textbook-frame {
  background-color: var(--white);
  padding: 30px;
  border: 1px solid rgba(184, 155, 94, 0.4);
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  text-align: left;
  z-index: 101;
  /* Above sakura */
}

.textbook-frame::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(184, 155, 94, 0.15);
  pointer-events: none;
  z-index: 10;
}

.textbook-key-message {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 25px;
}

.method-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.comparison-label {
  font-size: 0.9rem;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.can-do-comparison {
  display: flex;
  align-items: stretch;
  gap: 20px;
  margin-top: 25px;
  background: rgba(184, 155, 94, 0.03);
  padding: 15px;
  border-radius: 8px;
}

.comparison-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.comparison-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  opacity: 0.6;
  font-size: 1.2rem;
}

.comp-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.comp-text {
  font-size: 0.9rem;
  color: var(--text-color);
  font-weight: 500;
}

.comparison-item.highlight .comp-text {
  color: var(--primary-color);
  font-weight: 700;
}

.textbook-journey {
  margin: 30px 0;
  padding: 20px;
  background: rgba(184, 155, 94, 0.03);
  border-radius: 12px;
}

.journey-header {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: center;
}

@media (max-width: 768px) {
  .journey-header {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
}

.journey-title {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.journey-subtitle {
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .journey-subtitle {
    font-size: 0.9rem;
    white-space: nowrap;
  }
}

.journey-intro {
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
}

.journey-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.textbook-why {
  margin: 30px 0;
}

.why-title {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.why-content-block p {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.why-conclusion {
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 15px;
}

.textbook-final-message {
  text-align: center;
  font-weight: 700;
  color: var(--secondary-color);
  padding-top: 20px;
  border-top: 1px dotted var(--gray-light);
}

@media (max-width: 768px) {
  .textbook-frame {
    padding: 20px 15px;
    text-align: left;
  }

  .can-do-comparison {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .comparison-arrow {
    transform: rotate(90deg);
    align-self: center;
  }
}

/* ⑦ Roadmap */
.roadmap-section {
  background-color: var(--white);
}

.roadmap-summary-list {
  list-style: none;
  padding: 0;
  margin: 0 0 50px 0;
  /* Added bottom margin for spacing from table */
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.summary-point {
  background-color: var(--white);
  padding: 25px 30px;
  border: 1px solid rgba(184, 155, 94, 0.4);
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  z-index: 101;
  /* Above sakura */
}

.summary-point::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(184, 155, 94, 0.15);
  pointer-events: none;
  z-index: 1;
}

@media (min-width: 769px) {
  .summary-point {
    border: none;
    /* Remove outer border on desktop */
    box-shadow: none;
  }

  .summary-point::after {
    border: 1px solid rgba(184, 155, 94, 0.4);
    /* Make inner border the main border on desktop */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
}

.summary-point:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.summary-point div {
  position: relative;
  z-index: 2;
  font-size: 0.95rem;
  line-height: 1.6;
}

.summary-point strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 5px;
  font-size: 1.05rem;
}

@media (min-width: 769px) {
  .roadmap-summary-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

.roadmap-table-wrapper {
  overflow-x: auto;
  position: relative;
  z-index: 101;
  /* Above sakura */
}

.scroll-hint {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 8px;
  font-family: var(--font-body);
}

@media (min-width: 769px) {
  .scroll-hint {
    display: none;
    /* Hide on desktop */
  }
}

.roadmap-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--gray-light);
}

.roadmap-table th {
  background: var(--primary-color);
  color: var(--white);
  padding: 10px 8px;
  text-align: center;
  font-size: 0.85rem;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.roadmap-table th:last-child {
  border-right: none;
}

.roadmap-table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid var(--gray-light);
  border-right: 1px solid var(--gray-light);
  font-size: 0.8rem;
}

.roadmap-table td:last-child {
  border-right: none;
}

.text-highlight-red {
  color: #e63946 !important;
  font-weight: 700;
}

.roadmap-table tr:last-child td {
  border-bottom: none;
}

.row-june {
  background-color: rgba(184, 155, 94, 0.1);
  font-weight: bold;
}

.tag-free {
  background: #E74C3C;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.status-check {
  color: green;
  font-weight: bold;
}

.status-cross {
  color: #ccc;
}

/* ⑨ Form */
.form-section {
  background-color: #ffffff;
  /* Uroko (Triangle) Pattern with gold theme */
  background-image:
    linear-gradient(45deg, rgba(184, 155, 94, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(184, 155, 94, 0.05) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(184, 155, 94, 0.05) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(184, 155, 94, 0.05) 75%);
  background-size: 80px 80px;
  position: relative;
  z-index: 5;
}

.footer {
  padding: 60px 0;
  text-align: center;
  background-color: var(--white);
  color: #888;
  font-size: 0.9rem;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 101;
  /* Above sakura */
}

/* Unused form-title style removed as we use section-title now */
.form-subtitle-outside {
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-color);
  display: block;
}

@media (max-width: 768px) {
  .form-subtitle-outside {
    font-size: 0.9rem;
    white-space: normal;
    /* Allow wrapping */
  }
}

/* Unused form-title style removed as we use section-title now */
.form-subtitle {
  text-align: center;
  margin-bottom: 30px;
  font-size: 0.9rem;
  color: var(--text-color);
  display: none;
  /* Hidden as we moved it outside */
}

.form-group {
  margin-bottom: 25px;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  font-family: inherit;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  background: var(--white);
}

/* Custom Radio Button Styling */
.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-option::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--gray-light);
  border-radius: 50%;
  margin-top: 2px;
  transition: var(--transition);
  background: var(--white);
}

.radio-option:hover::before {
  border-color: var(--secondary-color);
}


/* Parent highlight when checked */
.radio-option:has(input[type="radio"]:checked) {
  border-color: var(--primary-color);
  background: rgba(192, 90, 42, 0.03);
  box-shadow: 0 4px 15px rgba(192, 90, 42, 0.1);
}

.radio-option:has(input[type="radio"]:checked)::before {
  border-color: var(--primary-color);
  background: var(--primary-color);
  box-shadow: inset 0 0 0 4px var(--white);
}

.radio-option:hover {
  border-color: var(--secondary-color);
}

.radio-option strong {
  color: var(--primary-color);
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.radio-option small {
  display: block;
  color: var(--text-color);
  opacity: 0.7;
  font-size: 0.85rem;
  line-height: 1.4;
}

.radio-content {
  width: 100%;
}

.submit-btn {
  width: 100%;
  font-size: 1.1rem;
  padding: 15px;
}

.checkbox-group {
  margin-top: 15px;
  /* Ensure space from text above */
  background: #fdfdfd;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px dashed var(--primary-color);
  display: inline-flex;
  /* Use inline-flex for better alignment */
  align-items: center;
  max-width: 100%;
  box-sizing: border-box;
}

.radio-option input[type="radio"]:checked+.radio-content .checkbox-group {
  background: #ffffff;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-color);
  cursor: pointer;
  line-height: 1.4;
  margin: 0;
  position: relative;
}

/* Custom Checkbox Styling */
.checkbox-group input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkbox-group label::before {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid var(--gray-light);
  border-radius: 4px;
  background: var(--white);
  transition: var(--transition);
  flex-shrink: 0;
}

.checkbox-group label:hover::before {
  border-color: var(--secondary-color);
}


.checkbox-group label:has(input[type="checkbox"]:checked)::before {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.checkbox-group label:has(input[type="checkbox"]:checked)::after {
  content: '\f00c';
  /* FontAwesome check */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 10px;
}

.checkbox-group label span {
  white-space: nowrap;
}

.terms-link {
  font-size: 0.85rem;
  /* Matched to parent */
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.terms-link:hover {
  opacity: 0.7;
}

@media (max-width: 480px) {
  .checkbox-group {
    padding: 0;
    border: none;
    background: transparent !important;
    margin-top: 10px;
    display: flex;
    /* Stay aligned correctly without the frame */
  }

  .checkbox-group label {
    font-size: 0.75rem;
    /* Slightly larger for legibility without the frame */
    gap: 6px;
    line-height: 1.4;
  }

  .terms-link {
    font-size: 0.75rem;
  }
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  /* Uroko Pattern for Sticky CTA background with gold theme */
  background-image:
    linear-gradient(45deg, rgba(184, 155, 94, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(184, 155, 94, 0.05) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(184, 155, 94, 0.05) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(184, 155, 94, 0.05) 75%);
  background-size: 80px 80px;
  backdrop-filter: blur(10px);
  padding: 15px 15px calc(15px + env(safe-area-inset-bottom));
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 9998;
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-buttons {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  /* Responsive wrapping for small phones */
}



.btn-secondary-sticky {
  padding: 10px 20px;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  color: var(--primary-color);
  font-weight: 700;
  background-color: var(--white);
  transition: var(--transition);
}

.btn-secondary-sticky:hover {
  background: var(--primary-color);
  color: var(--white);
}

@media (max-width: 768px) {
  .sticky-cta {
    padding: 12px 10px calc(12px + env(safe-area-inset-bottom));
  }

  .sticky-cta .btn {
    font-size: 0.85rem;
    /* Balanced size */
    padding: 8px 15px;
    /* More compact vertical padding */
    margin-bottom: 0;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    /* Prevent wrapping */
  }

  .btn-secondary-sticky {
    font-size: 0.85rem;
    /* Consistent with primary btn */
    padding: 8px 15px;
    /* Unified padding */
    flex: 1;
    text-align: center;
    white-space: nowrap;
  }

  .btn-back-to-top-footer {
    width: auto;
    height: auto;
    background: transparent !important;
    border: none;
    margin-left: 10px;
    padding: 0;
    box-shadow: none;
  }

  .btn-back-to-top-footer i {
    font-size: 0.9rem;
    /* Clearer icon since circle is gone */
    color: #999;
  }
}

.back-to-top {
  width: 45px;
  height: 45px;
  background: #f0f0f0;
  color: #555 !important;
  border: 1px solid var(--gray-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  position: fixed;
  right: 30px;
  bottom: 30px;
  cursor: pointer;
  z-index: 10000;
  /* Higher than everything */
}

.back-to-top i {
  font-size: 1.4rem;
  /* Slightly larger for the chevron */
  color: inherit;
  display: block;
  line-height: 1;
  transform: translateY(-1px);
  /* Optical alignment */
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  background: #e0e0e0;
}

@media (max-width: 768px) {

  /* Default: Hide standalone button on mobile usually, unless specific condition handled by JS */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    /* Higher than sticky footer */
    width: auto;
    height: auto;
    background: transparent !important;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .back-to-top i {
    font-size: 0.9rem;
    /* Clearer icon since circle is gone */
    color: #999;
  }

  .back-to-top i {
    font-size: 0.8rem;
    /* Smaller icon */
  }

  /* If sticky footer is visible, body might have a class, or we check manually in JS.
     Actually, simpler: 
     1. Display footer-integrated button on mobile.
     2. Hide standalone button when footer is visible.
     3. Show standalone button when footer is hidden (at bottom). */
}

/* Footer Integrated Back to Top */
.btn-back-to-top-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  /* Match height of buttons roughly or fixed square */
  height: 45px;
  /* Assuming buttons are around 45px height */
  background: var(--gray-light);
  color: #555;
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
  margin-left: 5px;
  flex-shrink: 0;
}

.btn-back-to-top-footer:hover {
  background: var(--secondary-color);
  color: white;
}

/* Hide footer button on desktop if needed, or keep it? 
   User said "Mobile view". Let's hide on desktop to avoid clutter if design repeats. */
@media (min-width: 769px) {
  .btn-back-to-top-footer {
    display: none;
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background: var(--white);
  padding: 0;
  /* Changed from 40px to handle sticky header */
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  /* Slightly smaller height */
  overflow-y: auto;
  position: relative;
  z-index: 2001;
  animation: modalBounce 0.5s;
}

@keyframes modalBounce {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-header {
  position: sticky;
  top: 0;
  background: var(--white);
  padding: 30px 40px 20px;
  z-index: 10;
  border-bottom: 1px solid var(--gray-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.8rem;
  border: none;
  background: #eee;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 100;
  /* Higher than sticky header */
}

.modal-close:hover {
  background: var(--primary-color);
  color: var(--white);
}

.modal-body {
  padding: 30px 40px 40px;
}

.modal-section {
  margin-bottom: 30px;
}

.modal-section-title {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-list {
  margin-left: 0;
  margin-top: 15px;
  list-style: none;
}

.modal-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
}

.list-icon {
  color: var(--secondary-color);
  font-weight: bold;
}

.modal-highlight {
  background: rgba(184, 155, 94, 0.05);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--secondary-color);
}



/* Vision/Mission Corporate Styles */
.vision-mission-section.corporate-section {
  background: var(--white);
  color: var(--text-color);
  padding: 40px 0;
  border-top: none;
  border-bottom: none;
}

.corporate-tag {
  display: block;
  text-align: center;
  font-family: var(--font-english);
  letter-spacing: 0.2em;
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 50px;
  text-transform: uppercase;
  font-weight: 700;
  /* Bold */
}

.corporate-img {
  height: 60px;
  /* Standardize height for title-like images */
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto 20px;
  /* Reduced from 40px */
  display: block;
  /* transition for subtle hover */
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.corporate-img:hover {
  filter: grayscale(0%);
}

.vision-mission-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

@media (min-width: 769px) {
  .vision-mission-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 50px;
    max-width: 800px;
    margin: 0 auto;
  }
}

.vision-wrapper,
.mission-wrapper {
  width: 100%;
}

.vision-block,
.mission-block {
  background: var(--white);
  padding: 20px;
}

@media (max-width: 768px) {

  .vision-text-wrapper,
  .mission-text-wrapper {
    text-align: left;
  }
}

@media (min-width: 769px) {

  .vision-block,
  .mission-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    padding: 50px 20px;
    border: 1px solid rgba(184, 155, 94, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  }

  .vision-label,
  .mission-label {
    font-size: 1.2rem;
    margin-bottom: 0;
    text-align: center;
    width: 100%;
  }

  .corporate-img {
    height: auto;
    width: 100%;
    max-width: 400px;
    max-height: 300px;
    margin: 0 auto;
    object-fit: contain;
  }

  .vision-text-wrapper,
  .mission-text-wrapper {
    display: block;
    margin-top: 10px;
  }

  .vision-japanese {
    margin-bottom: 15px;
    font-weight: 600;
  }

  .vision-text,
  .mission-text {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 769px) {
  .stays-image-side {
    padding: 20px;
    flex: 0 0 320px;
  }
}

/* Intro Animation (Splash Screen) */
/* Intro Animation (Splash Screen) */
.intro-splash {
  /* Critical layout properties (redundancy for safety) */
  z-index: 20000;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
  opacity: 1;
  filter: none;
  transition: opacity 0.8s ease-out, filter 0.8s ease-out, z-index 0s linear 0.1s;
}

/* Background image logic moved to index.html Head for instant loading */
.intro-splash::after {
  display: none;
}

.intro-splash::before {
  display: none;
  /* Background moved to parent for instant visibility */
}

/* Added z-index transition delay */


/* New class: Keep visible but move behind hero */
.intro-splash.persist-behind {
  z-index: 0;
  opacity: 1;
  pointer-events: none;
}

.intro-splash.fade-out {
  opacity: 0;
  pointer-events: none;
  filter: blur(20px);
  /* Blur transition to LP */
}

/* ロゴのみイントロ: フェードイン→フェードアウト */
.intro-splash--logo-only .intro-logo-container {
  transition: opacity 0.8s ease-out;
  background-color: transparent;
}

.intro-splash--logo-only .intro-logo-container .intro-logo {
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  filter: none;
  transform: scale(0.95);
}

.intro-splash--logo-only .intro-logo-container.active .intro-logo {
  transform: scale(1);
}

.intro-splash--fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease-out;
}

.intro-images {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  /* Ensure images are on top of pattern */
}

.intro-img {
  position: absolute;
  /* Fixed size based on viewport to ensure consistency across browsers */
  width: 50vw;
  height: 60vh;
  max-width: 700px;
  max-height: 500px;
  opacity: 0;
  transform: scale(0.8) rotate(0deg);
  transition: opacity 0.5s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: opacity, transform;
  filter: none !important;
  /* Prevent any inherited blur on images 1-9 */
}

.intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Changed from contain for uniform stack appearance */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: block;
}

/* Random-ish rotations for stack effect */
.intro-img:nth-child(1) {
  --rotate-deg: -3deg;
}

.intro-img:nth-child(2) {
  --rotate-deg: 2deg;
}

.intro-img:nth-child(3) {
  --rotate-deg: -5deg;
}

.intro-img:nth-child(4) {
  --rotate-deg: 4deg;
}

.intro-img:nth-child(5) {
  --rotate-deg: -2deg;
}

.intro-img:nth-child(6) {
  --rotate-deg: 5deg;
}

.intro-img:nth-child(7) {
  --rotate-deg: -4deg;
}

.intro-img:nth-child(8) {
  --rotate-deg: 3deg;
}

.intro-img:nth-child(9) {
  --rotate-deg: -2deg;
}

.intro-logo-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 2.0s ease-in-out;
  /* Slower container fade: 0.8s -> 2.0s */
  background-color: transparent;
  /* Changed from #fff to transparent so the Wagara pattern shows through initially or mixed */
}

.intro-logo {
  max-width: 90%;
  max-height: 50%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.5);
  filter: blur(20px);
  /* Start blurred */
  mask-image: radial-gradient(closest-side, black 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(closest-side, black 60%, transparent 100%);
  /* Blur the edges of the logo image */
  transition: opacity 2.5s ease-out, transform 2.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 2.5s ease-out;
  /* Slower logo appearance: 0.5s/0.8s -> 2.5s */
}

.intro-img.active {
  opacity: 1;
  transform: scale(1) rotate(var(--rotate-deg));
}

.intro-logo-container.active {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.9);
  /* Slight overlay to dim stack */
  z-index: 10;
}

.intro-logo-container.active .intro-logo {
  opacity: 1;
  transform: scale(1.3);
  /* Much larger final logo */
  filter: blur(0);
  /* Unblur */
}

.intro-skip {
  position: absolute;
  bottom: 30px;
  right: 30px;
  color: #333;
  font-family: var(--font-english);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  z-index: 21000;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  /* Button reset */
  background: none;
  border: none;
}

.intro-skip:hover {
  opacity: 1;
}

.intro-skip i {
  font-size: 0.7rem;
}

@media (prefers-reduced-motion: reduce) {

  .intro-img,
  .intro-logo,
  .intro-splash {
    transition: none !important;
    transform: none !important;
  }
}

@media (max-width: 768px) {
  .intro-splash::before {
    background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('image/intro_bg.jpg');
  }

  /* Make splash images slightly larger and uniform on mobile */
  .intro-img {
    width: 75vw;
    height: 55vh;
    max-width: 85vw;
    max-height: 65vh;
  }

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

  .intro-logo {
    max-width: 85%;
  }

  .intro-skip {
    bottom: 20px;
    right: 20px;
    font-size: 0.8rem;
  }
}