@charset "UTF-8";

/* =========================================
   1. Variables & Design System (V4 Light Mode)
   ========================================= */
:root {
  /* Color Palette - Fresh & Traditional (Light) */
  --color-bg: #ffffff;
  --color-bg-sub: #f9f9f9;
  /* Slight gray for sections */
  --color-text: #333333;
  --color-text-sub: #666666;

  /* Accents - Darkened for better contrast (WCAG AA) */
  --color-accent: #8b6f39;
  --color-accent-hover: #d4b475;
  --color-link: #0056b3;

  /* Borders & Shadows */
  --color-border: #e0e0e0;
  --color-card-bg: rgba(255, 255, 255, 0.9);
  --color-overlay: rgba(255, 255, 255, 0.85);

  /* Glassmorphism (Light) */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.5);
  --glass-blur: blur(10px);
  --glass-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);

  /* Typography */
  --font-base: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-heading: "Shippori Mincho", "Noto Serif JP", serif;

  /* Spacing (Reduced for V4) */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  /* reduced from 2rem */
  --spacing-lg: 3rem;
  /* reduced from 4rem */

  --container-width: 1100px;
  /* Slightly tighter container */
  --header-height: 70px;
}

/* =========================================
   2. Reset & Base Styles
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  /* Tighter line height for PC */
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent);
}

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

ul {
  list-style: none;
}

/* Typography Helpers */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.4;
  margin-bottom: var(--spacing-sm);
  color: #222;
  /* Stronger dark for headings */
}

/* =========================================
   3. Layout Components
   ========================================= */
.container {
  width: 92%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.section {
  padding: 2rem 0;
  /* Reduced from --spacing-lg (3rem) to 2rem */
  position: relative;
}

/* Section Headers */
.section-header {
  margin-bottom: 2rem;
  text-align: center;
}

.section-subtitle {
  display: block;
  font-family: var(--font-base);
  font-size: 0.75rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-accent);
}

/* =========================================
   4. Header & Navigation (Light Mode)
   ========================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 1000;
  transition: all 0.4s ease;
  background: rgba(255, 255, 255, 0.95);
  /* Nearly solid white */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  /* Subtle shadow */
}

header.scrolled {
  padding: 0.8rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: #333;
}

header h1 a {
  color: #333;
}

/* Desktop Menu */
.nav-menu ul {
  display: flex;
  gap: 1.5rem;
  /* Reduced gap */
}

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #444;
  position: relative;
}

.nav-menu a:hover {
  color: var(--color-accent);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #333;
  /* Dark icon */
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}

/* =========================================
   5. Hero Section
   ========================================= */
.hero {
  position: relative;
  height: 80vh;
  /* Reduced height to reduce whitespace feel */
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: var(--header-height);
  /* Offset fixed header */
}

/* Actual image element logic for better control */
.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}

/* Using a pseudo-element or direct background on a wrapper for the image */
.hero-bg-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("contents/mountains.jpg") center/cover no-repeat;
  filter: brightness(0.85);
  z-index: -1;
  /* videoの背面に置く */
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.4);
  /* Semi-transparent white box */
  backdrop-filter: blur(5px);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 700px;
}

.hero h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #111;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3), 0 0 8px rgba(255, 255, 255, 0.8);
}

.hero p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #444;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2), 0 0 6px rgba(255, 255, 255, 0.7);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--color-accent);
  color: #fff;
  border-radius: 4px;
  /* More square for traditional feel? Or keep round? Let's go slight round */
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(192, 160, 98, 0.3);
  color: #fff;
}

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid #ccc;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #bbb;
  color: #000;
}

/* Hero section specific button style */
.hero .btn-secondary {
  background-color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.7);
}

/* Scroll Down Indicator */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 2rem;
  animation: bounce 2s infinite;
  z-index: 3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: color 0.3s ease;
}

.scroll-down:hover {
  color: var(--color-accent);
}

@keyframes bounce {

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

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

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

/* =========================================
   6. Cards & Content Blocks (Light Mode)
   ========================================= */
.glass-card {
  background: #fff;
  /* Solid white for cleanliness */
  border: 1px solid #eee;
  border-radius: 12px;
  padding: var(--spacing-md);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  margin-bottom: 2rem;
}

.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #ddd;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* =========================================
   7. Specific Sections
   ========================================= */

/* About Section */
.about p {
  text-align: left;
  /* Changed from center for better read on PC? Or keep user preference "centered"? Backup had center. Keeping center but tweaking max-width. */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 1rem auto;
}

/* Lesson Cards */
.lesson-card ul {
  margin-top: 1rem;
  padding-left: 0;
  text-align: left;
  display: inline-block;
}

.lesson-card li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
}

.lesson-card li::before {
  content: "•";
  color: var(--color-accent);
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

/* Instructor Preview (Index Page) */
.instructor-preview {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: #fafafa;
  /* Subtle offset */
  padding: 2rem;
  border-radius: 12px;
}

.instructor-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Instructor Detail Page (V4.10 Refinement) */
.instructor-detail-content {
  display: flex;
  flex-direction: column;
  /* Mobile Default: Stacked */
  gap: 2rem;
  align-items: center;
}

.instructor-detail-content .image-wrapper {
  width: 100%;
  max-width: 400px;
  /* Limit image width on mobile */
  margin: 0 auto;
}

.instructor-detail-content .text-content {
  width: 100%;
}

.instructor-name {
  color: var(--color-accent);
}

@media (min-width: 768px) {
  .instructor-detail-content {
    flex-direction: row;
    /* Desktop: Side-by-Side */
    align-items: flex-start;
    /* Align top */
    gap: 3rem;
  }

  .instructor-detail-content .image-wrapper {
    flex: 0 0 350px;
    /* Fixed width for image column */
    max-width: 350px;
  }

  .instructor-detail-content .text-content {
    flex: 1;
    /* Take remaining space */
  }

  .instructor-name {
    text-align: left !important;
    /* Override inline center style if possible, or use specific class */
    font-size: 1.8rem;
  }
}

/* Contact Form */
.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: #555;
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  resize: vertical;
  min-height: 3rem;
  max-height: 18rem;
  overflow-y: auto;
  overflow-x: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 0.8rem;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  color: #333;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(192, 160, 98, 0.1);
}

/* Notice Banner */
.information-banner {
  background: #fff8e1;
  /* Light yellow */
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  margin: 1.5rem auto;
  color: #5d4037;
  border: 1px solid #ffe082;
}

/* Twitter / News */
.news-section {
  background-color: var(--color-bg-sub);
  /* Light gray break */
}

.news-card {
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* =========================================
   8. Footer
   ========================================= */
footer {
  background-color: #222;
  /* Keep footer dark for contrast */
  color: #aaa;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

footer a {
  color: #fff;
}

/* =========================================
   9. Animations
   ========================================= */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Modal Animation */
@keyframes modalPop {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }

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

#x-small-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

/* =========================================
   10. Responsiveness
   ========================================= */
.hero h2 {
  font-size: 1.8rem;
}

/* =========================================
   11. Refactored Utilities & Page Specific (V4.11)
   ========================================= */

/* Utilities */
.text-center {
  text-align: center;
}

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

.text-accent {
  color: var(--color-accent);
}

.text-bold {
  font-weight: bold;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

/* Sub-page Layout Helper */
.page-top-spacing {
  padding-top: 140px;
  /* Increased padding to avoid header overlap */
  padding-bottom: 4rem;
  min-height: 80vh;
}

@media (max-width: 768px) {
  .page-top-spacing {
    padding-top: 100px;
  }

  /* --- Mobile Navigation --- */
  .menu-toggle {
    display: block;
    /* Show hamburger */
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    /* Below header */
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

    /* Animation State: Hidden */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 0;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-menu a {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
    border-bottom: 1px solid #f9f9f9;
  }

  .nav-menu a:hover {
    background: #f5f5f5;
  }

  /* --- Responsive Grids --- */
  .grid-3 {
    grid-template-columns: 1fr;
    /* Single column on mobile */
  }

  /* --- Instructor preview: vertical layout on mobile --- */
  .instructor-preview {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .instructor-img {
    margin-bottom: 1rem;
  }

  /* --- Hide location preview map on mobile --- */
  .location-preview-map {
    display: none;
  }
}

/* Location Page Styles (Extracted from location.html) */
.location-card {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.location-card:last-of-type {
  border-bottom: none;
}

.map-responsive {
  width: 100%;
  height: 400px;
  position: relative;
  background: #eee;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
}

.map-responsive iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.facility-icons ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0;
  margin-top: 10px;
  list-style: none;
}

.facility-icons li {
  display: inline-block;
}

.facility-icons img {
  height: 25px;
  width: auto;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.location-nav {
  margin-bottom: 2rem;
  text-align: center;
}

.location-nav a {
  display: inline-block;
  margin: 0 5px 10px 5px;
  padding: 5px 15px;
  background: #f0f0f0;
  border-radius: 20px;
  color: #555;
  font-size: 0.9rem;
}

.location-nav a:hover {
  background: var(--color-accent);
  color: #fff;
}

/* Index News Grid (Extracted from index.html) */
.news-grid-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}

.notice-card-highlight {
  background: rgba(255, 200, 0, 0.1);
  border: 1px solid rgba(255, 200, 0, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
}

.notice-title {
  margin-top: 0;
  color: #d4a017;
  font-size: 1.2rem;
}

.notice-mini-map {
  display: none;
  /* Hidden on mobile by default */
}

#x-small-card {
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #eee;
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 100%;
  margin: 0 auto;
}

#x-latest-text {
  margin-top: 0.5rem;
  color: #333;
  font-size: 1rem;
  line-height: 1.4;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

@media (min-width: 768px) {
  .news-grid-container {
    flex-direction: row !important;
    justify-content: center;
    align-items: flex-start;
  }

  .news-grid-item {
    flex: 1;
    width: 100%;
    min-width: 0;
  }

  #x-small-card {
    margin: 0 !important;
    height: 100%;
  }

  .notice-card-content {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
  }

  .notice-text {
    flex: 1;
  }

  .notice-mini-map {
    width: 150px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
    display: block;
  }
}

/* Modal Window (Extracted from index.html) */
#x-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  padding: 20px;
}

#x-modal-window {
  width: 100%;
  max-width: 600px;
  height: 80vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

#x-close {
  position: absolute;
  right: 15px;
  top: 15px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #555;
}

/* Campaign Page Styles (Extracted from campaign.html) */
.campaign-container {
  max-width: 800px;
  margin: 0 auto;
}

.campaign-notice {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-left: 5px solid var(--color-accent);
}

.campaign-form-checkbox {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.form-message-box {
  display: none;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-align: center;
}

.idiom-title {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

/* Location Preview Card (Split Layout) */
.location-preview-card {
  display: flex;
  flex-direction: column;
  /* Mobile: Stacked */
  gap: 1.5rem;
}

.location-preview-map {
  width: 100%;
  height: 250px;
  /* Fixed height for mobile */
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ddd;
}

@media (min-width: 768px) {
  .location-preview-card {
    flex-direction: row;
    /* Desktop: Side-by-side */
    justify-content: space-between;
    align-items: stretch;
  }

  .location-preview-text {
    flex: 1;
    /* Take available space */
    padding-right: 1.5rem;
  }

  .location-preview-map {
    flex: 0 0 300px;
    /* Fixed width for map on desktop */
    height: auto;
    /* Match height of text content roughly or min-height */
    min-height: 200px;
  }
}

/* Instructor Detail Page Image (Refinement) */
.instructor-detail-img {
  width: 100%;
  border-radius: 1rem;
  border: 4px solid var(--color-accent);
}