/* courses.html 専用（スマホファースト） */

.courses-page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 84px 5vw 50px;
}

/* =========================================================
   courses_price.html（コース詳細 + 料金）
   ※ courses.css を共通利用
========================================================= */

.course-detail-hero{
  text-align:center;
  padding: 6px 0 0;
}

.course-detail-title{
  font-size: clamp(22px, 6vw, 34px);
  font-weight: 900;
  letter-spacing: 0.06em;
  margin: 14px 0 14px;
  color: #233a55;
}

.course-note{
  width: 100%;
  max-width: 980px;
  margin: 0 auto 18px;
  background: #eaf6ff;
  border: 2px solid rgba(125,185,228,0.65);
  border-radius: 12px;
  padding: 12px 12px;
}

.course-note__title{
  font-size: 12px;
  font-weight: 900;
  margin: 0 0 8px;
  color: rgba(35,58,85,0.85);
}

.course-note__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.course-note__item{
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: start;
  text-align: left;
}

.course-note__icon{
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.9);
  border: 2px solid rgba(125,185,228,0.55);
  display: grid;
  place-items: center;
  font-size: 20px;
}

.course-note__text{
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  font-weight: 800;
  color: #233a55;
}

.course-detail{
  width: 100%;
  max-width: 980px;
  margin: 18px auto 26px;
}

.course-detail__head{
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  margin: 0 0 10px;
}

.badge{
  display: inline-grid;
  place-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.badge--blue{ background: #6bbfe9; }
.badge--green{ background: #4cc3a6; }
.badge--orange{ background: #e2a07c; }
.badge--pink{ background: #e49ab6; }

.course-detail__name{
  font-size: 16px;
  font-weight: 900;
  margin: 0;
  color: #233a55;
  letter-spacing: 0.02em;
}

.detail-card{
  background: #fff;
  border: 2px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
}

.detail-table{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.detail-table th,
.detail-table td{
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 12px 12px;
  font-size: 12px;
  line-height: 1.7;
}

.detail-table tr:last-child th,
.detail-table tr:last-child td{
  border-bottom: none;
}

.detail-table th{
  width: 25%;
  text-align: center;
  font-weight: 900;
  color: rgba(35,58,85,0.92);
}

.detail-card--blue th{ background: rgba(107,191,233,0.28); }
.detail-card--green th{ background: rgba(76,195,166,0.22); }
.detail-card--orange th{ background: rgba(226,160,124,0.22); }
.detail-card--pink th{ background: rgba(228,154,182,0.22); }

.detail-table td{
  background: #fff;
  color: rgba(35,58,85,0.90);
  font-weight: 700;
}

.video-placeholder{
  background: #d8d8d8;
  height: 150px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: rgba(0,0,0,0.65);
}

.price{
  width: 100%;
  max-width: 980px;
  margin: 22px auto 10px;
}

.price-title{
  text-align:center;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin: 10px 0 14px;
  color: #233a55;
}

.price-table-wrap{
  background: #fff;
  border: 2px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  overflow: hidden;
}

.price-table{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.price-table th,
.price-table td{
  border: 1px solid rgba(0,0,0,0.08);
  padding: 10px 10px;
  font-size: 12px;
  line-height: 1.6;
  vertical-align: top;
}

.price-table thead th{
  background: rgba(228,154,182,0.22);
  font-weight: 900;
  color: rgba(35,58,85,0.95);
}

.price-table__course{ width: 52%; }
.price-table__price{ width: 48%; text-align: center; }

.price-note{
  margin: 10px 4px 0;
  font-size: 11px;
  line-height: 1.7;
  color: rgba(0,0,0,0.70);
  font-weight: 700;
}

/* 小さい浮遊ボタン（トップへ） */
/* .to-top{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #ff8c8c;
  box-shadow: 0 10px 18px rgba(0,0,0,0.18);
  display: grid;
  place-items: center;
  text-decoration: none;
  z-index: 999;
}

.to-top::before{
  content: "";
  width: 14px;
  height: 14px;
  border-left: 3px solid #fff;
  border-top: 3px solid #fff;
  transform: rotate(45deg) translateY(1px);
} */

@media (min-width: 900px){
  .video-placeholder{ height: 180px; }
  .detail-table th,
  .detail-table td{ font-size: 13px; }
  .price-table th,
  .price-table td{ font-size: 13px; }
}

.page-hero {
  text-align: center;
  padding: 14px 0 18px;
}

.page-title {
  font-size: clamp(22px, 6vw, 34px);
  font-weight: 900;
  letter-spacing: 0.06em;
  margin: 10px 0 8px;
  color: #233a55;
}

.page-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(35, 58, 85, 0.85);
  font-weight: 700;
}

/* -----------------------
  コースカード
------------------------ */
.course-list {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.course-card {
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  padding: 14px 14px 16px;
}

.course-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 10px;
  align-items: center;
}

.course-level {
  display: inline-grid;
  place-items: center;
  height: 40px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.level--blue {
  background: #6bbfe9;
}
.level--green {
  background: #4cc3a6;
}
.level--orange {
  background: #e2a07c;
}
.level--pink {
  background: #e49ab6;
}

.course-meta {
  font-size: 16px;
  font-weight: 800;
  color: rgba(35, 58, 85, 0.78);
}

.course-price {
  grid-column: 1 / -1;
  justify-self: end;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2f2f2;
  color: #111;
  font-weight: 600;
  font-size: 16px;
}

.course-name {
  font-size: 20px;
  font-weight: 900;
  margin: 10px 0 6px;
  letter-spacing: 0.02em;
  color: #1f4f64;
}

.course-desc {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(35, 58, 85, 0.88);
  font-weight: 500;
}

.course-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tag {
  font-size: 12px;
  /* font-weight: 900; */
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
}

.tag--gray {
  background: #f2f2f2;
}
.tag--mint {
  background: rgba(50, 215, 205, 0.18);
  border-color: rgba(50, 215, 205, 0.35);
}
.tag--pink {
  background: rgba(245, 166, 166, 0.2);
  border-color: rgba(245, 166, 166, 0.4);
}
.tag--green {
  background: rgba(50, 215, 100, 0.18);
  border-color: rgba(50, 215, 127, 0.35);
}
.tag--orange {
  background: rgba(255, 192, 104, 0.18);
  border-color: rgba(243, 166, 42, 0.35);
}

.course-cta {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.btn-outline {
  display: inline-block;
  padding: 10px 14px;
  /* border-radius: 999px; */
  border: 2px solid rgb(50 106 146);
  background: #f5f5f5;
  color: #111;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}

@media (hover: hover) {
  .btn-outline:hover {
    opacity: 0.9;
  }
}

/* やりたいことカードは少しシンプル */
.course-card--free .course-tags {
  display: none;
}

/* -----------------------
  目的カード
------------------------ */
.purpose {
  margin-top: 26px;
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  padding: 16px 14px 18px;
}

.purpose-title {
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 4px 0 14px;
  color: #233a55;
}

.purpose-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.purpose-card {
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 12px 12px;
  background: #fff;
}

.purpose-ico {
  margin-bottom: 6px;
  display: flex;
}

.purpose-ico img{
    width: 40px;
    margin-right: 20px;
}

.purpose-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: #233a55;
}

.purpose-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(35, 58, 85, 0.85);
  font-weight: 500;
}

.purpose-btn {
  display: block;
  width: min(320px, 92%);
  margin: 16px auto 2px;
  text-align: center;
  padding: 14px 18px;
  border-radius: 999px;
  background: #2b5a7b;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

/* =========================================================
   courses_price.html 追加スタイル（既存CSSに追記）
   競合回避のため .courses-price をスコープにする
========================================================= */

.courses-price {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 84px 5vw 50px;
}

/* タイトル（画像の見た目寄せ） */
.courses-price .course-detail-hero {
  text-align: center;
  padding: 6px 0 0;
}

.courses-price .course-detail-title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin: 10px 0 12px;
  color: #233a55;
}


.courses-price .notice{
  width: 100%;
  max-width: 980px;
  margin: 0 auto 16px;
  background: #dff1fb;
  border: 2px solid rgba(125,185,228,0.55);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 10px 18px rgba(0,0,0,0.06);
}

.courses-price .notice-title{
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin: 6px 0 10px;
  color: #1e3556;
}

.courses-price .notice-items{
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.08);
}

.courses-price .notice-item{
  display: grid;
  grid-template-columns: 1fr 4fr;
  gap: 20px;
  align-items: center;
  padding: 10px 0;
}

.courses-price .notice-item + .notice-item{
  border-top: 1px solid rgba(0,0,0,0.10);
}

.courses-price .notice-icon{
  width: 100%;
  max-width: 130px;
  text-align: center;
  /* height: 50px; */
  /* border-radius: 10px; */
  /* background: rgba(255,255,255,0.9); */
  /* border: 2px solid rgba(125,185,228,0.45); */
  /* display: grid;
  place-items: center;
  font-size: 26px; */
}

.courses-price .notice-text{
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #233a55;
  font-weight: 800;
}

/* 注意ボックス：画像の水色カード寄せ */
.courses-price .course-note {
  width: 100%;
  margin: 0 auto 14px;
  background: #d9f0fb;
  border: 2px solid rgba(185, 223, 242, 1);
  border-radius: 10px;
  padding: 12px;
}

.courses-price .course-note__title {
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  margin: 0 0 10px;
  color: #1e3556;
}

.courses-price .course-note__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.courses-price .course-note__item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;

  background: #fff;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.courses-price .course-note__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eef8ff;
  display: grid;
  place-items: center;
  font-size: 18px;
  border: none;
}

.courses-price .course-note__text {
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
  color: #223b57;
  font-weight: 700;
}

/* セクション間余白 */
.courses-price .course-detail {
  margin: 14px auto 20px;
}

/* 見出し行（レベルバッジ＋タイトル） */
.courses-price .course-detail__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}

/* 既存 .badge を壊さず、courses_price内だけサイズ調整 */
.courses-price .badge {
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 8px;
  color: #fff;
}

/* コース名 */
.courses-price .course-detail__name {
  font-size: 13px;
  font-weight: 900;
  margin: 0;
  color: #233a55;
}

/* 詳細カード（表） */
.courses-price .detail-card {
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: #fff;
  overflow: hidden;
  box-shadow: none;
}

/* 表の見た目（画像の「左列色＋右列白」） */
.courses-price .detail-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.courses-price .detail-table th,
.courses-price .detail-table td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
  padding: 10px 10px;
  font-size: 11px;
  line-height: 1.5;
}

.courses-price .detail-table tr:last-child th,
.courses-price .detail-table tr:last-child td {
  border-bottom: none;
}

.courses-price .detail-table th {
  width: 84px;           /* 画像の左列幅っぽく固定 */
  text-align: center;
  font-weight: 900;
  color: #223b57;
}

/* 左列の色（画像に近い淡色） */
.courses-price .detail-card--blue th { background: #d9eef8; }
.courses-price .detail-card--green th { background: #daf6ee; }
.courses-price .detail-card--orange th { background: #faead9; }
.courses-price .detail-card--pink th { background: #f7e1f2; }

.courses-price .detail-table td {
  background: #fff;
  color: #223b57;
  font-weight: 700;
}

/* 授業（グレーの枠） */
.courses-price .video-placeholder {
  margin-top: 10px;
  height: 96px;
  border-radius: 10px;
  background: #cfcfcf;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #333;
  letter-spacing: 0.08em;
}

.courses-price .course{
  width: 100%;
  max-width: 980px;
  margin: 18px auto 26px;
}

/* 見出し（初心者バッジ＋チップ＋タイトル） */
.courses-price .course-head{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 10px;
}

.courses-price .course-head .chip{
  font-size: 12px;
  font-weight: 900;
  color: rgba(35,58,85,0.72);
}

.courses-price .course-title{
  width: 100%;
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: #233a55;
  letter-spacing: 0.02em;
}

/* 「表」カード（画像の枠） */
.courses-price .course-card{
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.14);
  background: #fff;
  overflow: hidden;
  box-shadow: none;
}

/* 行 */
.courses-price .spec-row{
  display: grid;
  grid-template-columns: 1fr 4fr; /* 画像の左列幅に固定 */
  min-height: 58px;
}

.courses-price .spec-row + .spec-row{
  border-top: 1px solid rgba(0,0,0,0.10);
}

/* 左セル */
.courses-price .spec-key{
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px 8px;
  font-size: 14px;
  font-weight: 700;
  color: #223b57;
  border-right: 1px solid rgba(0,0,0,0.10);
}

/* 右セル */
.courses-price .spec-val{
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #223b57;
  background: #fff;
}

/* 空欄でも高さ確保 */
.courses-price .spec-val:empty::before{
  content: "　";
}

/* カラー（画像の淡色） */
.courses-price .course-card--blue .spec-key{ background: #d9eef8; }
.courses-price .course-card--green .spec-key{ background: #daf6ee; }
.courses-price .course-card--orange .spec-key{ background: #faead9; }
.courses-price .course-card--pink .spec-key{ background: #f7e1f2; }

/* 授業（グレー枠） */
.courses-price .lesson-box{
  margin-top: 10px;
  height: 96px;
  border-radius: 10px;
  background: #cfcfcf;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #333;
  letter-spacing: 0.08em;
}

/* 料金一覧 */
.courses-price .price {
  margin: 22px auto 10px;
}

.courses-price .price-title {
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
  color: #1e3556;
}

.courses-price .price-table-wrap {
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.10);
  overflow: hidden;
  background: #fff;
}

.courses-price .price-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 11px;
}

.courses-price .price-table th {
  width: 30%;
  background: #f7e6f4;
  color: #223b57;
  font-weight: 900;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

.courses-price .price-table td {
  padding: 10px 8px;
  vertical-align: top;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.courses-price .price-table tr:last-child td {
  border-bottom: none;
}

.courses-price .price-table__course {
  width: 44%;
  background: #fbf7fc;
  font-weight: 900;
  color: #223b57;
}

.courses-price .price-table__price {
  width: 56%;
  font-weight: 900;
  color: #223b57;
}

.courses-price .price-note {
  font-size: 10px;
  line-height: 1.6;
  margin: 10px 10px 12px;
  color: #223b57;
  opacity: 0.9;
}

/* 右下：トップへ（既存 .to-top を上書きしたくないのでスコープ） */
/* .courses-price .to-top {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 1000;

  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #ff8c8c;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
  display: grid;
  place-items: center;
  text-decoration: none;
}

.courses-price .to-top::before {
  content: "";
  width: 14px;
  height: 14px;
  border-left: 3px solid #fff;
  border-top: 3px solid #fff;
  transform: rotate(45deg) translateY(1px);
} */

/* 右上：小さいメニューボタン（courses_priceでも同じUIを出す場合） */
.courses-price .fab-menu {
  position: fixed;
  right: 14px;
  top: 10px;
  z-index: 1000;

  width: 46px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: #a8e8e4;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
  cursor: pointer;

  display: grid;
  place-items: center;
}

.courses-price .fab-menu__lines {
  width: 16px;
  height: 2px;
  background: #ff8c8c;
  border-radius: 99px;
  position: relative;
  display: block;
}

.courses-price .fab-menu__lines::before,
.courses-price .fab-menu__lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: #ff8c8c;
  border-radius: 99px;
}

.courses-price .fab-menu__lines::before { top: -6px; }
.courses-price .fab-menu__lines::after { top: 6px; }

/* PCで2列〜 */
@media (min-width: 1100px) {
  .course-name {
    font-size: 24px;
  }
  .course-list {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .purpose-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tag {
    font-size: 18px;
  }
  
  .courses-price .video-placeholder {
    height: 140px;
  }
  .courses-price .detail-table th,
  .courses-price .detail-table td {
    font-size: 12px;
  }
  .courses-price .notice-title{ font-size: 16px; }
  .courses-price .notice-text{ font-size: 16px; }

  .courses-price .course-title{ font-size: 18px; }
  .courses-price .spec-row{ min-height: 64px; }
  .courses-price .spec-key,
  .courses-price .spec-val{ font-size: 13px; }
  .courses-price .lesson-box{ height: 180px; }
}
