@charset "UTF-8";
/* ヘッダー======================================== */
.page-header {
  background-image: url("/cramschool/images/header.jpg");
}
/* TOPボタン======================================== */
.button-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
}

.rounded-button {
  display: inline-block;
  background-color: #3ba3a3;
  color: white;
  text-decoration: none;
  padding: 0.6em 1.5em;
  border-radius: 9999px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  text-align: center;
  min-width: 150px;
}

.rounded-button:hover {
  background-color: #fff;
  border: solid 1px #3ba3a3;
  color: #3ba3a3;
}
/* コースボタン======================================== */
.tag-button-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
}

.tag-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5em 1.2em;
  border: 2px solid currentColor;
  border-radius: 9999px;
  font-size: 0.95rem;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s, color 0.2s;

  height: 3rem; /* ✅ 高さを固定 */
  white-space: nowrap; /* ✅ 折り返し防止 */
}

.tag-button .arrow {
  margin-left: 0.4em;
  font-size: 0.8em;
  vertical-align: middle; /* ✅ 矢印をテキストと縦位置揃え */
}

/* 色ごとのボーダー指定 */
.tag-button.pink {
  color: #f48fb1;
}
.tag-button.pink:hover {
  background-color: #f48fb1;
  color: #fff;
}

.tag-button.yellow {
  color: #fdd835;
}
.tag-button.yellow:hover {
  background-color: #fdd835;
  color: #fff;
}

.tag-button.green {
  color: #aed581;
}
.tag-button.green:hover {
  background-color: #aed581;
  color: #fff;
}

.tag-button.blue {
  color: #81d4fa;
}
.tag-button.blue:hover {
  background-color: #81d4fa;
  color: #fff;
}

/* コース案内======================================== */
#cramschool .top_about {
  padding-top: 0;
}

.course-section {
  padding: 2rem 1rem;
  /* max-width: 960px; */
  margin: 0 auto;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  position: relative;
  margin: 2rem 0;
  color: #333;
}

.section-title::before,
.section-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background-color: #3ba3a3;
  margin: 0 1rem;
}

.course-item {
  margin-bottom: 2rem;
  border-top: 2px solid #ccc;
  padding-top: 1rem;
}

.course-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.2em 0.7em;
  border-radius: 3px;
  font-size: 0.85rem;
  color: white;
}

.tag.pink {
  background-color: #f48fb1;
}

.tag.yellow {
  background-color: #fdd835;
}

.tag.green {
  background-color: #aed581;
}

.tag.blue {
  background-color: #81d4fa;
}

.tag.brown {
  background-color: #a1887f;
}

.course-item p {
  margin: 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* h4とタグの間隔調整 */
.course-head h4 {
  margin: 0;
}
.course-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

/* お問合せ======================================== */
.contact-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem 1rem;
  background-color: #f5f5f5;
}

.cta-box {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  flex: 1;
  width: 100%;
}

.cta-box p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}

.cta-button {
  display: inline-block;
  padding: 0.8em 2em;
  border-radius: 9999px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.cta-button.red {
  background-color: #b8514d;
}
.cta-button.red:hover {
  background-color: #a14440;
}

.cta-button.green {
  background-color: #2e9c9c;
}
.cta-button.green:hover {
  background-color: #268686;
}

.contact-tel {
  text-align: center;
  font-size: 0.95rem;
  margin-top: 2rem;
  color: #555;
}

.contact-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  background-color: #f5f5f5;
  align-items: stretch;
}

.cta-box {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  max-width: 300px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-area {
  background-color: #f5f5f5;
  padding: 2rem 1rem;
}
/* よくある質問======================================== */
.bg-primary-color {
  background: #009999;
}
#goukaku .title,
#faq .title {
  text-align: center;
  color: #fff;
}
main #goukaku h2 span,
main #faq h2 span {
  color: #fff;
}
.faq dt::before {
  background: #009999;
}
.faq dt {
  color: #323232;
  border-radius: 15px;
}
.faq dd {
  color: #fff;
}

.jisseki {
  color: #fff;
  font-size: 2em;
  text-align: center;
  line-height: 1.8;
  margin-top: 2em;
}
/* 料金======================================== */
.price .title {
  text-align: center;
}

.price-table-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1rem;
}

.price-box {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.price-box h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.5rem;
}
.pink-dot {
  background-color: #f8b7cc;
}
.yellow-dot {
  background-color: #fce168;
}

.note {
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.5;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
#price th,
#price td {
  text-align: left;
  padding: 0.6rem;
  border-bottom: 1px dashed #ccc;
}
thead th {
  border-bottom: 2px solid #ccc;
  background-color: rgba(0, 0, 0, 0.03);
  font-weight: bold;
}

.online-note {
  background: #fefefe;
  border-radius: 0.5rem;
  padding: 1rem;
  border: 2px solid currentColor;
}

.online-row {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-weight: bold;
}

.small {
  font-size: 0.85rem;
  color: #666;
  display: block;
  margin-top: 0.2rem;
}
/* テーブル全体のベーススタイル調整 */
.price-box table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #fdfdfd; /* デフォルトの背景色（上書きされる） */
  color: #323232; /* ✅ 全体文字色統一 */
}

.price-box thead th {
  background-color: rgba(255, 255, 255, 0.5);
  font-weight: bold;
  border-bottom: 2px solid #ccc;
  padding: 0.6rem;
  color: #323232;
}

.price-box td {
  padding: 0.6rem;
  border-bottom: 1px dashed #ccc;
  color: #323232;
}

/* オンライン授業部分も色統一 */
.online-note {
  background: #fff;
  border-radius: 0.5rem;
  padding: 1rem;
  border: 2px solid currentColor;
  color: #323232;
}

.online-row {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-weight: bold;
  color: #323232;
}

/* 小さい補足文字も薄いグレーで整える */
.small {
  font-size: 0.85rem;
  color: #666;
  display: block;
  margin-top: 0.2rem;
}

/* ==== 色別の背景色を追加 ==== */
.price-box.pink table {
  background-color: #fde8ef;
}
.price-box.yellow table {
  background-color: #fffde5;
}
.price-box.green table {
  background-color: #eff8f1;
}
.price-box.blue table {
  background-color: #e6f7fc;
}

/* 色切り替え */
.price-box.pink {
  color: #d86c8a;
}
.price-box.yellow {
  color: #d4b700;
}
.price-box.green {
  color: #82b366;
}
.dot.green-dot {
  background-color: #b7ddb0;
}

.price-box.blue {
  color: #58b0dc;
}
.dot.blue-dot {
  background-color: #c8e6f8;
}
/* オンライン授業共通スタイル */
.online-note {
  border-radius: 0.5rem;
  padding: 1rem;
  border: 2px solid currentColor;
  color: #323232;
}
.online-note p {
  margin: 0;
}

/* 各カラーごとの背景色 */
.price-box.pink .online-note {
  background-color: #fce4ec;
  border-color: #f48fb1;
}

.price-box.yellow .online-note {
  background-color: #fffde7;
  border-color: #fdd835;
}

.price-box.green .online-note {
  background-color: #f1f8e9;
  border-color: #aed581;
}

.price-box.blue .online-note {
  background-color: #e3f2fd;
  border-color: #81d4fa;
}
/* 合格実績======================================== */
#goukaku .txt_b {
  margin-bottom: 2em;
}
/* 卒業生の声======================================== */
.voice-loadmore-wrap {
  text-align: center;
  margin-top: 2rem;
}

#loadMoreVoices {
  background-color: #3ba3a3;
  color: white;
  padding: 0.8em 2em;
  border: none;
  border-radius: 9999px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

#loadMoreVoices:hover {
  background-color: #329393;
}

.list-normal1 .list {
  display: none; /* JSで最初に一部だけ表示する */
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
  .price-box {
    max-width: 100%;
  }
}

/* レスポンシブ対応 */
@media screen and (max-width: 640px) {
  .contact-cta {
    flex-direction: column;
    align-items: center;
  }
}

/* レスポンシブ対応 */
@media screen and (max-width: 600px) {
  .tags {
    justify-content: flex-start;
  }
}

@media screen and (max-width: 600px) {
  .button-container {
    flex-direction: column;
    align-items: center;
  }

  .rounded-button {
    width: 80%;
  }
  .tag-button-container {
    flex-direction: column;
    align-items: center;
  }

  .tag-button {
    width: 80%;
    justify-content: center;
  }
}

@media screen and (min-width: 700px) {
  #cramschool .arrow {
    padding-bottom: 0 !important;
  }
  .course-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap; /* スマホで折り返し可能に */
  }
  .caution_txt {
    text-align: center;
  }
  #goukaku .list .text_step h4 {
    justify-content: center;
  }
}
