:root {
  /* Colors */
  --color-primary: #FFD700;
  /* Vibrant Yellow/Gold - Fun and Creative */
  --color-secondary: #00A8FF;
  /* Bright Blue - Digital/Sky */
  --color-accent: #FF4757;
  /* Energetic Red */
  --color-text: #2f3542;
  --color-bg: #ffffff;
  --color-bg-alt: #f1f2f6;
  --color-border: #dfe4ea;
  --font-base: 'Noto Sans JP', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

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

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

body {
  font-family: var(--font-base);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--color-bg);
}

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

ul {
  list-style: none;
}

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

/* Utilities */
.section {
  padding: 80px 20px;
}

.section__container {
  max-width: 1100px;
  margin: 0 auto;
}

.section__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  line-height: 1.2;
  position: relative;
  display: inline-block;
}

.section__title--center {
  display: block;
  text-align: center;
}

.section__title-ja {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: #888;
  margin-top: 5px;
  font-family: var(--font-base);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: var(--font-base);
}

.btn--primary {
  background-color: var(--color-primary);
  color: #000;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn--primary:hover {
  background-color: #ffe033;
  transform: translateY(-2px);
}

.btn--outline {
  border-color: var(--color-text);
  color: var(--color-text);
}

.btn--outline:hover {
  background-color: var(--color-text);
  color: #fff;
}

.btn--white {
  background-color: #fff;
  color: var(--color-text);
}

.btn--white:hover {
  background-color: #f0f0f0;
}

.btn--large {
  padding: 15px 40px;
  font-size: 1.1rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.header__logo {
  /*  font-family: var(--font-heading); */
  /*  font-size: 2rem; */
  /* PAONの基本サイズ */
  /*  font-weight: 900; */
  /*  letter-spacing: -0.05em; */
  position: relative;
  z-index: 1001;
  /* メニューより上に表示 */
  display: flex;
  align-items: center;
  height: 80px;
  /* Logo height significantly increased */
}

.header__logo-img {
  height: 100%;
  width: auto;
  max-height: 100%;
}

/* ... (omitted) ... */
.instructor__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  /* Shift down to show top of head */
  transform: scale(1.3);
  /* Reduce zoom slightly to fit head */
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* Formally define menu button */
.header__menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.header__menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  position: absolute;
  left: 0;
  transition: all 0.3s;
}

.header__menu-btn span:nth-child(1) {
  top: 0;
}

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

.header__menu-btn span:nth-child(3) {
  bottom: 0;
}

/* Menu Active State */
.header__menu-btn.is-active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.header__menu-btn.is-active span:nth-child(2) {
  opacity: 0;
}

.header__menu-btn.is-active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

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

  .header__nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  /* JS toggles display:block. We assume JS works, but we override specific styles when visible */
  .header__nav[style*="display: block"] {
    opacity: 1;
    visibility: visible;
    display: flex !important;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .header__nav-list a {
    font-size: 1.5rem;
    font-weight: 700;
  }
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  /* Full screen height */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  /* Text needs to be white on dark/colorful image */
}

/* Background Image Overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  /* Slight darken for text readability */
  z-index: 1;
}

/* The actual image handled via CSS for ease of full cover */
.hero__visual {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  margin: 0;
  max-width: none;
  border-radius: 0;
  box-shadow: none;
}

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

/* New Hero Content Styles */
.hero__content--redesign {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.hero__main-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(4rem, 15vw, 10rem);
  /* Responsive large text */
  line-height: 0.9;
  text-align: center;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero__sub-title {
  position: absolute;
  bottom: 120px;
  /* Above the footer bar */
  right: 5%;
  text-align: right;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 4vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.d-block {
  display: block;
}

/* Hero Footer Bar "SINCE 2025" */
.hero__footer-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: #e6e6e6;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__footer-bar p {
  color: #000;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .hero__footer-bar {
    height: 60px;
  }

  .hero__footer-bar p {
    font-size: 1.4rem;
  }

  .hero__sub-title {
    bottom: 90px;
    right: 20px;
  }
}

/* Concept */
.concept__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.concept__image img {
  border-radius: 20px;
  box-shadow: 20px 20px 0 var(--color-primary);
}

.concept__lead {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-text);
}

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

/* Course */
.course {
  background-color: var(--color-bg-alt);
}

.course__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.course__card {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.course__card:hover {
  transform: translateY(-5px);
}

.course__name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
  padding-bottom: 5px;
}

.course__target {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 15px;
  font-weight: 700;
}

.course__desc {
  font-size: 0.95rem;
  margin-bottom: 20px;
  min-height: 60px;
  /* visual alignment */
}

.course__price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-align: right;
  margin-top: auto;
}

.course__schedule {
  font-size: 0.85rem;
  margin-bottom: 20px;
  background: var(--color-bg-alt);
  padding: 12px;
  border-radius: 8px;
}

.course__schedule-item {
  display: flex;
  gap: 10px;
  margin-bottom: 5px;
  border-bottom: 1px dashed var(--color-border);
  padding-bottom: 5px;
}

.course__schedule-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.course__schedule-day {
  font-weight: 700;
  color: var(--color-text);
  flex-shrink: 0;
}

.course__schedule-time {
  flex: 1;
  text-align: right;
}

.course__note {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

/* Instructor */
.instructor__content {
  display: flex;
  gap: 50px;
  align-items: center;
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
}

.instructor__image-wrapper {
  flex: 0 0 300px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--color-bg-alt);
  /* Border moved to wrapper */
}

.instructor__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  /* Focus on face */
  transform: scale(1.5);
  /* Zoom in to make person larger */
}

.instructor__name {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.instructor__name-en {
  font-size: 1rem;
  color: #888;
  font-weight: 400;
  margin-left: 10px;
  font-family: var(--font-heading);
}

.instructor__job {
  font-size: 1rem;
  color: var(--color-secondary);
  font-weight: 700;
  margin-bottom: 20px;
}

.instructor__desc {
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .instructor__content {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .instructor__image-wrapper {
    flex: 0 0 auto;
    width: 200px;
  }
}

/* Contact */
.contact-section {
  background-color: var(--color-bg-alt);
  padding: 100px 20px;
}

.contact-form__wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-form__item {
  margin-bottom: 25px;
}

.contact-form__label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  background-color: #fcfcfc;
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
  background-color: #fff;
}

.contact-form__note {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
  text-align: left;
}

.w-100 {
  width: 100%;
}

@media (max-width: 768px) {
  .contact-section {
    padding: 60px 20px;
  }
  .contact-form__wrapper {
    padding: 30px 20px;
  }
}

/* Footer */
.footer {
  background-color: #2f3542;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.footer__sns {
  margin-bottom: 25px;
}

.footer__sns-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.footer__sns-link:hover {
  background: var(--color-primary);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.footer__sns-link i {
  font-size: 1.2rem;
}

.footer__copyright {
  font-size: 0.8rem;
  opacity: 0.7;
}

.footer__links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 0.85rem;
}

.footer__link {
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer__link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Access */
/* =========================================
   LOADER STYLES
   ========================================= */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader__logo {
  width: 120px;
  height: auto;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }

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

/* =========================================
   LAZY LOAD STYLES
   ========================================= */
.lazy-load {
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

.lazy-load.is-loaded {
  opacity: 1;
}

/* =========================================
   BACK TO TOP BUTTON
   ========================================= */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #2f3542;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.is-active {
  opacity: 1;
  visibility: visible;
  bottom: 40px;
  /* Slight float up effect */
}

.back-to-top::before {
  content: '';
  width: 12px;
  height: 12px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: rotate(45deg);
  margin-top: 4px;
}

.back-to-top:hover {
  background-color: #000;
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* =========================================
   ACCESS SECTION
   ========================================= */
.access {
  background-color: #fff;
}

.access__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.access__info {
  text-align: center;
}

.access__address {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* Scroll Animations */
.js-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.js-fade-up.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay for grid items */
.js-fade-up-stagger {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.js-fade-up-stagger.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   GALLERY PAGE STYLES
   ========================================= */

/* Gallery Section */
.gallery {
  padding: 160px 20px 60px;
  /* Top padding for fixed header */
  min-height: 80vh;
}

/* Filter Buttons */
.gallery__filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--color-primary);
  border-radius: 30px;
  padding: 8px 20px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--color-text);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  color: #000;
}

/* Gallery Grid */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery__item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, opacity 0.3s;
  aspect-ratio: 1 / 1;
  /* Square images */
}

.gallery__item:hover {
  transform: scale(1.02);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hide filtered items */
.gallery__item.hide {
  display: none;
}

/* Modal (Lightbox) */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal__content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 1000px;
  max-height: 80vh;
  object-fit: contain;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {
    transform: scale(0)
  }

  to {
    transform: scale(1)
  }
}

.modal__close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.modal__close:hover,
.modal__close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .modal__content {
    width: 95%;
  }
}