@charset "utf-8";

/* ========== 共通ユーティリティ ========== */
:root {
  --main-color: #00b2ee;
  --text-color: #333;
  --bg-color: #fff;
  --font-jp: 'Noto Sans JP', sans-serif;
}

body {
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-color);
  background-image: url('../image/pc_bg.svg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
@supports (-webkit-touch-callout: none) {
  body {
    background-image: none;
    background-attachment: scroll;
    position: relative;
    z-index: 0;
  }

  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../image/pc_bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
  }
}

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

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

.inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 16px;
}

.flex {
  display: flex;
}

.flex-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.primary {
  color: var(--main-color);
}

.section {
  padding: 40px 0;
}

.page-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--main-color);
  margin-bottom: 24px;
  text-align: center;
  padding-bottom: 8px;
}

.page-subtitle {
  display: block;
  font-size: 16px;
  color: #666;
  margin-top: 4px;
}

.section-title {
  font-size: 24px;
  margin-bottom: 8px;
  font-weight: bold;
  border-left: 4px solid var(--main-color);
  padding-left: 12px;
}

.section-subtitle {
  display: block;
  font-size: 14px;
  color: var(--main-color);
  margin-top: 4px;
}

.more-button {
  display: block;
  width: fit-content;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
  margin-left: auto;
  padding: 10px 36px;
  background-color: transparent;
  color: var(--main-color);
  font-size: 15px;
  font-weight: bold;
  border: 2px solid var(--main-color);
  border-radius: 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.more-button:hover {
  background-color: var(--main-color);
  color: #fff;
}

.more-button-wrap {
  text-align: center;
  margin-top: 40px;
}

.subject-item {
  padding: 6px 12px;
  background: var(--main-color);
  color: #fff;
  border-radius: 4px;
  font-weight: bold;
}

.english {
  background-color: #8f3fff;
}

.japanese {
  background-color: #ff82c6;
}

.math {
  background-color: #007bff;
}

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0; /* 念のため明示 */
  width: 100%;
  background: rgba(255, 255, 255, 0.95); /* 半透明でも可 */
  padding: 12px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 1;
}

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

.menu-button,
.close-btn {
  background: none;
  border: none;
  font-size: 16px;
  color: var(--main-color);
  cursor: pointer;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2;
  flex: 1; /* 残りの幅を全部取る */
  min-width: 0;
}

.nav.active {
  opacity: 1;
  visibility: visible;
  background-image: url('../image/nav_bg.svg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
/* @supports (-webkit-touch-callout: none) {
  .nav.active {
    background-image: none;
    background-attachment: scroll;
    position: relative;
    z-index: 0;
  }

  .nav.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../image/nav_bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
  }
} */

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
  padding-top: 200px;
  overflow: scroll;
  scrollbar-width: 0;
}

.nav-list::-webkit-scrollbar {
  display: none;
  -ms-overflow-style: none;
}

.nav-link {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
}

.text-jp {
  display: block;
  font-size: 14px;
  color: #ccc;
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
}

.no-scroll {
  overflow: hidden;
  height: 100vh;
}

.nav-item {
  position: relative;
}

.dropdown {
  overflow: hidden;
  height: 0;
  transition: height 0.3s ease;
}

/* SP用アコーディオン開閉 */
.nav-item.open .dropdown {
  height: auto; /* JSで上書きするのでここは使わないが一応 */
}

/* ドロップダウン共通スタイル */
.dropdown-link {
  display: block;
  padding: 10px 0;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-link:hover {
  background-color: rgba(255, 255, 255, 0.1); /* 薄い白背景 */
  color: var(--main-color); /* 水色でアクセント */
}

.header-form-flex {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.cta-area {
  display: flex;
  gap: 4px;
  justify-content: flex-start; /* 左寄せ */
  align-items: center;
  flex-wrap: nowrap; /* 横並びを固定 */
}

.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #4facfe, #00f2fe); /* 青→シアン */
  color: white;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 100%;
  height: 34px;
  padding: 8px; /* 上下余白を抑える */
  border-radius: 10px;
  line-height: 1rem;
}

.cta-btn:hover {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.cta-sub {
  font-size: 8px;
  font-weight: normal;
  color: #f0faff; /* サブは薄い白青系でも可 */
  margin-top: 2px;
}

.cta-main {
  font-size: 12px;
  white-space: nowrap;
}

/* ========== Title/Main Visual ========== */
.main {
  padding-top: 69px;
  min-height: calc(100vh - 70.69px - 62.4px - 40px);
}

.title {
  font-family: '游明朝', 'Yu Mincho', YuMincho, 'Hiragino Mincho Pro', serif;
  position: absolute;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  width: 33%;
  top: 50%;
  left: 60%;
  transform: translateY(-50%);
}

.main-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.main-visual-img {
  width: 100vw;
  height: 100%;
  max-height: 100svb;
  object-fit: cover;
  border-radius: 0;
}

/* ========== About Section ========== */
.about-text {
  background-color: #f2f9fc;
  padding: 20px;
  border-radius: 8px;
  margin-top: 8px;
  font-size: 15px;
  color: #333;
  line-height: 1.8;
}

.about-block {
  margin-bottom: 32px;
}

.about-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--main-color);
  margin-bottom: 8px;
}

/* ========== Testimonials Section ========== */
.testimonials-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.card {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 16px;
}

.testimonials-image-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.testimonials-text {
  font-size: 15px;
  color: #444;
}

.goukaku-taikendan {
  width: 100%;
  border: none;
  margin: 0 auto;
  display: block;
}

/* ========== FAQ Section ========== */
.faq-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #f2fafe;
  padding: 16px;
  border-radius: 6px;
}

.faq-question {
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--main-color);
}

.faq-answer {
  color: #444;
  font-size: 15px;
}

/* ========== Courses Section ========== */
.courses-subtitle {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
}

.courses-subjects {
  gap: 16px;
  margin-bottom: 12px;
}

.courses-note {
  font-size: 14px;
  margin-bottom: 24px;
  color: #666;
}

.courses-price-list {
  display: grid;
  gap: 32px;
}

.courses-price-item {
  background: #f8f8f8;
  padding: 16px;
  border-radius: 8px;
}

.course-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--main-color);
}

.course-price {
  font-size: 16px;
  margin: 8px 0;
}

.course-price span {
  font-weight: bold;
  color: var(--main-color);
}

.course-details {
  list-style: disc;
  padding-left: 20px;
  color: #444;
}

/* ========== Access Section ========== */
.access-location {
  margin-bottom: 40px;
}

.access-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
  color: var(--main-color);
}

.access-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  margin-bottom: 12px;
  border-radius: 6px;
}

.access-info {
  margin-bottom: 12px;
  color: #555;
  font-size: 15px;
}

.access-map iframe {
  width: 100%;
  height: 250px;
  border: none;
  border-radius: 8px;
}

.act-on-specified-commercial-transactions {
  display: flex;
  justify-content: center;
  color: var(--main-color);
  text-decoration: underline;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.link-flex {
  display: flex;
  align-items: center;
  gap: 8px;
}

.link-icon {
  width: 18px;
  height: 18px;
}

.class-pic-box {
  display: flex;
  width: 100%;
  gap: 16px;
}

.class-pic-contents {
  width: 100%;
}

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

.courses-price-list-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.class-pic {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.br {
  border-radius: 8px;
}

/* ========== Footer ========== */
.footer {
  text-align: center;
  padding: 20px 0;
  background: #e6f7fc;
  font-size: 14px;
  color: #666;
}

/* ========== レスポンシブ ========== */
@media (min-width: 768px) {
  .section-title {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .flex-layout {
    flex-direction: row;
    align-items: center;
  }

  .about-text {
    margin: 0;
  }

  .title {
    font-size: 28px;
  }

  .courses-price-list {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 30%);
    gap: 5%;
    grid-auto-rows: 1fr;
  }

  .courses-price-list-card {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    overflow: hidden;
  }

  .courses-price-list-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }

  .class-pic {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .courses-price-item {
    flex-grow: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
  }

  .courses-price-item {
    flex: 1;
  }

  .access-location-card {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 32px;
  }

  .access-location-card-text {
    width: 80%;
  }

  .access-img {
    box-shadow: 0px 0px 15px -5px #777777;
  }

  .access-img:hover {
    opacity: 0.7;
  }

  .access-map {
    width: 480px;
  }
  .google-map {
    box-shadow: 0px 0px 15px -5px #777777;
  }

  .menu-button,
  .close-btn {
    display: none;
  }

  .nav {
    width: fit-content;
    display: block;
    position: static;
    height: auto;
    background: transparent;
    margin-left: auto;
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    margin-left: auto;
    width: fit-content;
    flex-direction: row;
    gap: 24px;
    padding-top: 0;
    overflow: visible;
  }

  .nav-link {
    color: var(--main-color);
    font-size: 16px;
  }

  .text-jp {
    font-size: 12px;
    color: #666;
  }

  .nav.active {
    display: block;
  }

  .no-scroll {
    overflow: scroll;
  }

  .toggle-submenu {
    pointer-events: none; /* PCでは無効化 */
  }

  .has-dropdown {
    position: relative;
  }

  .dropdown {
    height: auto !important; /* JSで設定された height を上書き */
    overflow: visible;
    display: none; /* 初期は非表示 */
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 180px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    z-index: 3;
  }

  .has-dropdown:hover .dropdown {
    display: block;
  }

  .dropdown-link {
    color: #333;
  }

  .dropdown-link:hover {
    background-color: #f0f8fb;
    color: var(--main-color);
  }

  .about-img-wrap {
    flex: 1;
  }

  .about-text-wrap {
    flex: 2;
  }

  .about-img-wrap img {
    width: 100%;
    border-radius: 8px;
  }

  .goukaku-taikendan {
    width: 50%;
  }
}
