/* トップバナー */
.top-banner {
  position: relative;
  width: 100%;
  height: 160px;
  background-image: url('../images/titleback.jpg'); /* 画像ファイル名を指定 */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-banner-overlay {
  background-color: rgba(0, 0, 0, 0.4); /* 半透明の黒 */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-banner-title {
  color: white;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  padding: 0 20px;
}

main {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}


h1 {
  text-align: center;
  padding-top: 20px;
  padding-bottom: 20px;
  color: #444;
}

h2 {
  font-size: 1.8em;
}


/* 2カラムセクション */
.flex-section {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 60px;
  align-items: center;
}

.flex-section.reverse {
  flex-direction: row-reverse;
}

.flex-image {
  flex: 1 1 50%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.flex-text {
  flex: 1 1 45%;
}

.flex-text h2 {
  margin-bottom: 10px;
  color: #444;
}

.flex-text p,
.flex-text ul {
  font-size: 1.1em;
  line-height: 1.8;
}

.flex-text ul {
  padding-left: 20px;
  margin: 10px 0;
}

.note {
  font-size: 0.9em;
  color: #666;
  margin-top: 10px;
}




.lesson-location {
  max-width: 800px;
  margin: 60px auto 40px auto;
  padding: 20px 24px;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.lesson-location h2 {
  color: #333;
  text-align: center;
}

.lesson-location p {
  font-size: 1em;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1em;
}

.lesson-location ul {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.lesson-location li {
  margin-bottom: 6px;
}





/* 料金セクション */
.price-section {
  margin-bottom: 80px;
  padding: 0 20px;
}

.price-section h2 {
  margin-bottom: 30px;
  color: #444;
  text-align: center;
}

.price-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  padding: 20px 24px;
  border-top: 6px solid #495569;
  transition: background-color 0.3s ease;
}

.price-card:hover {
  background-color: #f0f0f0;
}

.price-card .info {
  flex: 1;
}

.price-card h3 {
  font-size: 1.3em;
  margin-bottom: 8px;
  color: #333;
}

.price-card .description {
  font-size: 1em;
  color: #555;
}

.price-card .price {
  font-size: 2em;        /* 金額を大きく */
  color: #495569;
  font-weight: bold;
  text-align: right;
  min-width: 100px;
  margin-left: 20px;
}






.philosophy-section {
  max-width: 800px;
  margin: 0 auto 80px;
  padding: 0 20px;
  text-align: center; /* ← 中央揃えのポイント */
}

.philosophy-section h2 {
  margin-bottom: 20px;
  color: #444;
}

.philosophy-section p {
  font-size: 1.1em;
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
}

.philosophy-points {
  list-style: none;           /* リストマーカーを非表示 */
  padding: 0;
  margin: 0 0 20px 0;
}

.philosophy-points li {
  font-size: 1.05em;
  color: #222;
  margin-bottom: 10px;
  position: relative;
  padding-left: 1.2em;
}

.philosophy-points li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: #ffffff;
}


.center-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 50px;
}

.simple-button {
  display: inline-block;
  padding: 20px 30px;
  border: 1px solid #000;
  background-color: #fff;
  color: #000;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
}

.simple-button .button-text-large {
  font-size: 24px;
  font-weight: bold;
}

.simple-button .button-text-small {
  font-size: 14px;
  margin-top: 5px;
}

.simple-button:hover {
  background-color: #000;
  color: #fff;
}


/* モバイル対応は特に不要：縦並びで自然に表示される */

/* スマホ対応 */
@media (max-width: 768px) {
  .flex-section {
    flex-direction: column;
  }
  .flex-section.reverse {
    flex-direction: column;
  }
  .flex-text {
    flex: 1 1 100%;
  }
  .flex-image {
    flex: 1 1 100%;
  }
}


@media (max-width: 768px) {
  .price-card {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .price-card .price {
    text-align: left;
    margin-left: 0;
    margin-top: 12px;
  }
}