@charset "UTF-8";

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  --color-primary: #ec6200;
  --color-primary-hover: #d15600;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg: #ffffff;
  --color-bg-light: #f9f9f9;
  --color-white: #ffffff;
  --color-black: #000000;

  --font-base: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-heading: "Montserrat", "Helvetica Neue", sans-serif;

  --header-height: 80px;
  --header-height-mobile: 60px;

  --z-header: 1000;
  --z-mobile-menu: 999;
  --z-overlay: 998;

  --container-width: 1200px;
  --container-padding: 20px;

  --transition-speed: 0.3s;
}

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

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

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-speed);
}

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

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

ul {
  list-style: none;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
}

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

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

.hidden {
  display: none;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: var(--z-header);
  transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 70px;
}

.header-logo img {
  height: 50px;
  width: auto;
  transition: height var(--transition-speed);
}

.header.scrolled .header-logo img {
  height: 40px;
}

.nav-desktop {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--color-primary);
  transition: width var(--transition-speed);
}

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

.sns-links {
  display: flex;
  gap: 15px;
  margin-left: 20px;
}

.sns-icon {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-speed);
}

.sns-icon:hover {
  transform: scale(1.1);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: var(--z-header) + 1;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-text);
  border-radius: 3px;
  transition: all var(--transition-speed);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Nav */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.98);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: right var(--transition-speed) ease-in-out;
  z-index: var(--z-mobile-menu);
}

.nav-mobile.active {
  right: 0;
}

.nav-mobile ul {
  text-align: center;
}

.nav-mobile li {
  margin: 20px 0;
}

.nav-mobile a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

@media (max-width: 990px) {
  .header {
    padding: 0 20px;
    height: var(--header-height-mobile);
  }

  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  /* Slight overlay for text readability */
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
  width: 100%;
  max-width: 800px;
}

.hero-title-img {
  width: 100%;
  max-width: 200px;
  /* Adjust based on the SVG */
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  animation: bounce 2s infinite;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-down::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background-color: var(--color-white);
  margin-top: 10px;
}

@keyframes bounce {

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

  40% {
    transform: translate(-50%, -10px);
  }

  60% {
    transform: translate(-50%, -5px);
  }
}

/* ==========================================================================
   News / About Section
   ========================================================================== */
.news-section {
  background-color: var(--color-bg-light);
  text-align: center;
}

.news-item {
  margin-bottom: 20px;
}

.news-item h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 30px;
  font-weight: 600;
  transition: background-color var(--transition-speed), transform var(--transition-speed);
}

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

/* ==========================================================================
   Services Section
   ========================================================================== */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 50px;
  text-align: center;
  letter-spacing: 0.1em;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title span {
  display: block;
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 5px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--color-white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.service-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image-wrapper img {
  transform: scale(1.1);
}

.service-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.service-desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-link {
  color: var(--color-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.service-link::after {
  content: '→';
  transition: transform var(--transition-speed);
}

.service-card:hover .service-link::after {
  transform: translateX(5px);
}

/* ==========================================================================
   Access Section
   ========================================================================== */
.access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: start;
}

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

.access-item img {
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 15px;
}

/* ==========================================================================
   Partners Section
   ========================================================================== */
.partners-section {
  background-color: var(--color-bg-light);
  padding: 50px 0;
}

.partners-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.partner-logo {
  opacity: 0.8;
  transition: opacity var(--transition-speed);
  max-width: 150px;
  height: auto;
}

.partner-logo:hover {
  opacity: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: #222;
  color: #fff;
  padding: 60px 0 20px;
}

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

.footer-logo img {
  max-width: 200px;
  margin-bottom: 20px;
}

.footer-heading {
  font-size: 1.2rem;
  margin-bottom: 20px;
  border-left: 3px solid var(--color-primary);
  padding-left: 10px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ccc;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #888;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-bottom a {
  color: #888;
  margin: 0 10px;
}

.page-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed);
  cursor: pointer;
}

.page-top.show {
  opacity: 1;
  visibility: visible;
}

.page-top::after {
  content: '↑';
  font-size: 1.5rem;
}

/* ==========================================================================
   Subpage Styles
   ========================================================================== */

/* Page Header */
.page-header {
  position: relative;
  width: 100%;
  height: 40vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 50px;
}

.page-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.page-title {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  text-align: center;
}

.page-title h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.page-title span {
  font-size: 1.2rem;
  font-weight: 500;
  display: block;
}

/* Sub Navigation (Lesson Menu etc) */
.sub-nav-section {
  background-color: var(--color-bg-light);
  padding: 40px;
  border-radius: 20px;
  margin-bottom: 60px;
}

.sub-nav-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 10px;
  display: inline-block;
}

.sub-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.sub-nav-col h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--color-primary);
  border-left: 4px solid var(--color-primary);
  padding-left: 10px;
}

.sub-nav-list li {
  margin-bottom: 10px;
  padding-left: 15px;
  position: relative;
}

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

.sub-nav-list li.indent {
  margin-left: 20px;
  font-size: 0.9em;
  color: var(--color-text-light);
}

/* Tables (Price Lists) */
.price-table-wrapper {
  overflow-x: auto;
  margin-bottom: 40px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: var(--color-white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.price-table th,
.price-table td {
  padding: 15px;
  border: 1px solid #eee;
  text-align: center;
}

.price-table th {
  background-color: var(--color-bg-light);
  font-weight: 700;
  color: var(--color-text);
}

.price-table th.table-title {
  text-align: left;
  background-color: #f0f0f0;
}

.price-table .price {
  font-weight: 600;
  color: var(--color-primary);
}

.price-table .people {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
}

/* Forms */
.form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="date"],
.form-row input[type="time"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color var(--transition-speed);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-row textarea {
  min-height: 100px;
  resize: vertical;
}

.form-row2 {
  text-align: center;
  margin-top: 30px;
}

.form-row2 button {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 15px 50px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.form-row2 button:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
}

.rental-guide {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.rental-guide .example {
  color: var(--color-text-light);
  font-size: 0.85rem;
  margin-top: 5px;
}

/* Responsive Iframe */
.responsive-iframe {
  width: 100%;
  height: 800px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Image Grid / Gallery */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.image-grid-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform var(--transition-speed);
}

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

/* Specific Section Styles */
.about-us-text {
  font-size: 1.2rem;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 60px;
  font-weight: 600;
}

.point-section {
  margin-bottom: 60px;
}

.point-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

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

.point-item h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--color-primary);
}

.point-item img {
  max-width: 100%;
  border-radius: 10px;
}

/* Test Center Logos */
.logo-list {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.logo-list img {
  max-height: 80px;
  width: auto;
}

/* Anchor offset for sticky header */
section[id] {
  scroll-margin-top: 100px;
}

/* ==========================================================================
   Room List
   ========================================================================== */
.room-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.room-card {
  background: var(--color-white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  display: flex;
  flex-direction: column;
}

.room-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.room-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background-color: #f0f0f0;
}

.room-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.room-card:hover .room-image-wrapper img {
  transform: scale(1.05);
}

.room-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.room-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--color-primary);
}

.room-capacity {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 10px;
  font-weight: 600;
}

.room-features {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.5;
}

.room-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background-color: #f5f5f5;
  color: #ccc;
  font-weight: 700;
  font-size: 1.2rem;
  flex-direction: column;
}

.room-placeholder span {
  font-size: 3rem;
  margin-bottom: 10px;
  opacity: 0.3;
}

/* ==========================================================================
   Features Grid (Why BRIO?)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background: var(--color-bg-light);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  transition: transform var(--transition-speed);
}

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

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  display: inline-block;
  background: var(--color-white);
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--color-text);
  /* Fallback or use text color if heading not defined */
  font-weight: 700;
}

.feature-card p {
  color: var(--color-text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}