/* ========================================
   コース詳細ページ共通スタイル
   theme-basic / theme-advance / theme-workshop
   ======================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

.course-detail-page {
  font-family: 'Noto Serif JP', serif;
  color: #333;
  background-color: #fff;
  line-height: 1.8;
  overflow-x: hidden;
}

.course-detail-page a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
.course-detail-page ul { list-style: none; }
.course-detail-page img { max-width: 100%; height: auto; }

.pc-only { display: block; }
.sp-only { display: none; }

/* --- ヘッダー・フッターは common.css で定義 --- */

/* --- Page Hero --- */
.page-hero {
  position: relative;
  padding: 200px 20px 100px;
  text-align: center;
  background-color: #f4f8f9;
  overflow: hidden;
}

.hero-bg-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Playfair Display', serif;
  font-size: 18vw;
  font-weight: 700;
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}

.theme-basic .hero-bg-text { color: rgba(108, 154, 147, 0.05); }
.theme-advance .hero-bg-text { color: rgba(197, 160, 89, 0.05); }
.theme-workshop .hero-bg-text { color: rgba(230, 126, 34, 0.05); }

.page-header-inner { position: relative; z-index: 1; }

.course-label {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.theme-basic .course-label { color: #6c9a93; }
.theme-advance .course-label { color: #c5a059; }
.theme-workshop .course-label { color: #e67e22; }

.page-title {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.4;
  margin-bottom: 15px;
}

.page-sub { font-size: 15px; color: #888; }

.content-container { max-width: 900px; margin: 0 auto; padding: 0 30px; }
.theme-advance .content-container,
.theme-workshop .content-container { max-width: 960px; }

.detail-section { margin-top: 120px; }

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 20px;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
}

.theme-basic .section-heading::after { background: #6c9a93; }
.theme-advance .section-heading::after { background: #c5a059; }
.theme-workshop .section-heading::after { background: #e67e22; }

.section-lead { text-align: center; font-weight: 700; margin-bottom: 40px; color: #666; }
.text-block p { line-height: 2; margin-bottom: 20px; text-align: justify; }

/* --- Schedule Table --- */
.schedule-table-wrapper { width: 100%; margin-bottom: 20px; }
.schedule-table { width: 100%; border-collapse: collapse; min-width: 100%; }

.schedule-table th,
.schedule-table td {
  padding: 20px;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 14px;
  vertical-align: top;
}

.schedule-table th {
  background-color: #f9f9f9;
  font-weight: 500;
  color: #666;
  white-space: nowrap;
}

.schedule-table th.col-date { width: 15%; }
.schedule-table th.col-time { width: 15%; }
.schedule-table th.col-lecturer { width: 15%; }
.schedule-table th.col-type { width: 10%; text-align: center; }
.schedule-table th.col-content { width: auto; }

.schedule-table .count {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 16px;
}

.theme-basic .schedule-table .count { color: #6c9a93; }
.theme-advance .schedule-table .count { color: #c5a059; }

.schedule-table .date { font-weight: 700; font-family: 'Playfair Display', serif; font-size: 16px; }
.schedule-table .wday { font-size: 12px; font-weight: normal; margin-left: 3px; font-family: 'Noto Serif JP', serif; color: #888; }
.schedule-table .time { font-family: 'Lato', sans-serif; color: #666; }
.schedule-table .lecturer { font-weight: 700; }
.schedule-table .place-sub { display: block; font-size: 11px; color: #999; margin-top: 4px; }

.tag {
  display: inline-block;
  padding: 4px 0;
  font-size: 11px;
  border-radius: 3px;
  font-weight: 500;
  font-family: 'Noto Serif JP', serif;
  letter-spacing: 0.05em;
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  width: 80px;
  text-align: center;
  border: 1px solid transparent;
}

.tag.online { background: #eef6f9; color: #4a90e2; border-color: #4a90e2; }
.tag.real { background: #fff5f5; color: #c0392b; border-color: #c0392b; }
.tag.free { background: #eef9f6; color: #2ecc71; border-color: #2ecc71; width: 60px; font-size: 10px; font-weight: 700; font-family: 'Lato', sans-serif; }
.tag.live { background: #fff5f5; color: #e74c3c; border-color: #e74c3c; width: 60px; font-size: 10px; font-weight: 700; font-family: 'Lato', sans-serif; }
.tag.real.ws { background: #fff9ee; color: #d35400; border-color: #d35400; width: 60px; font-size: 10px; font-weight: 700; font-family: 'Lato', sans-serif; }

.highlight-row { background-color: #fffaf5; }
.alert-text { color: #c0392b; font-size: 11px; font-weight: 700; margin-left: 5px; }
.note-text { font-size: 12px; color: #888; margin-top: 15px; text-align: right; display: block; }
.content-cell { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.content-cell .text { display: block; }

/* --- Venue Box --- */
.venue-box {
  background: #f9f9f9;
  padding: 50px;
  border-radius: 4px;
  text-align: center;
  border: 1px solid #eee;
  transition: all 0.3s;
}

.theme-basic .venue-box:hover { border-color: #6c9a93; }
.theme-advance .venue-box:hover { border-color: #c5a059; }
.theme-workshop .venue-box:hover { border-color: #e67e22; }

.venue-box:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

.venue-name { font-size: 20px; margin-bottom: 10px; font-weight: 700; }
.venue-address { font-size: 15px; margin-bottom: 20px; color: #555; }
.venue-access { font-size: 14px; line-height: 1.8; color: #666; margin-bottom: 25px; }

.map-link {
  display: inline-block;
  font-size: 14px;
  padding-bottom: 2px;
  font-family: 'Lato', sans-serif;
  transition: opacity 0.3s;
  border-bottom: 1px solid;
}

.theme-basic .map-link { color: #6c9a93; border-color: #6c9a93; }
.theme-advance .map-link { color: #c5a059; border-color: #c5a059; }
.theme-workshop .map-link { color: #e67e22; border-color: #e67e22; }
.map-link:hover { opacity: 0.7; }

/* --- Alert Box --- */
.alert-section { margin-top: 60px; }
.theme-basic .alert-section { margin-top: 80px; }

.alert-box {
  padding: 40px;
  position: relative;
  background-color: #fff;
}

.theme-basic .alert-box { border: 2px solid #c0392b; }
.theme-advance .alert-box { border: 2px solid #c5a059; }

.alert-title {
  font-size: 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-basic .alert-title { color: #c0392b; }
.theme-basic .alert-title::before {
  content: '!';
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px; height: 24px;
  background: #c0392b;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.theme-advance .alert-title { color: #c5a059; }
.theme-advance .alert-title::before {
  content: 'Req';
  display: flex;
  justify-content: center;
  align-items: center;
  width: 34px; height: 34px;
  background: #c5a059;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 10px;
  flex-shrink: 0;
  font-family: 'Lato', sans-serif;
}

.alert-content ul { padding-left: 20px; margin: 0; }
.alert-content li { margin-bottom: 8px; font-size: 14px; line-height: 1.8; list-style-type: disc; }

/* --- CTA Area --- */
.cta-area {
  margin-top: 100px;
  text-align: center;
  border-top: 1px solid #eee;
  padding-top: 80px;
  padding-bottom: 100px;
}

.price-label {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  color: #666;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.theme-workshop .price-label { margin-bottom: 20px; }

.price-main {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 500;
  color: #333;
  margin-bottom: 50px;
}

.price-main .tax { font-size: 16px; font-family: 'Noto Serif JP', serif; color: #999; }
.price-note { font-size: 12px; color: #999; margin-top: -30px; margin-bottom: 50px; }

.price-list-box {
  display: inline-block;
  background: #fdfdfd;
  border: 1px solid #eee;
  padding: 30px 50px;
  margin-bottom: 50px;
  text-align: left;
  min-width: 350px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #eee;
  padding: 15px 0;
  gap: 40px;
}

.price-row:last-child { border-bottom: none; }
.p-name { font-size: 14px; color: #555; }
.p-val { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 500; color: #333; }
.p-val .tax { font-size: 12px; font-family: 'Noto Serif JP', serif; }

.cta-buttons { display: flex; flex-direction: column; align-items: center; gap: 40px; }

.cta-recommend { position: relative; width: 100%; max-width: 500px; }

.recommend-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 12px;
  padding: 6px 16px;
  border-radius: 20px;
  z-index: 10;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.theme-basic .recommend-badge { background: #6c9a93; }
.theme-advance .recommend-badge { background: #c5a059; }
.theme-workshop .recommend-badge { background: #e67e22; }

.recommend-text {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 30px;
  display: block;
  line-height: 1.6;
}

.theme-basic .recommend-text { color: #c0392b; }
.theme-advance .recommend-text { color: #c0392b; }
.theme-workshop .recommend-text { color: #d35400; }

.btn-main-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 25px 20px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1;
}

/* Basic: 緑ベース、ホバーで浮き上がり＋少し濃く */
.theme-basic .btn-main-cta {
  background-color: #6c9a93;
  color: #fff;
  border: 1px solid #6c9a93;
}
.theme-basic .btn-main-cta:hover {
  background-color: #5a8a82;
  color: #fff;
  border-color: #5a8a82;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(108,154,147,0.35);
}

/* Advance: ゴールドベース、ホバーで浮き上がり＋少し濃く */
.theme-advance .btn-main-cta {
  background-color: #c5a059;
  color: #fff;
  border: 1px solid #c5a059;
}
.theme-advance .btn-main-cta:hover {
  background-color: #b08d45;
  color: #fff;
  border-color: #b08d45;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(197,160,89,0.35);
}

/* Workshop: オレンジベース、ホバーで浮き上がり */
.theme-workshop .btn-main-cta {
  background-color: #e67e22;
  color: #fff;
  border: 1px solid #e67e22;
}
.theme-workshop .btn-main-cta:hover {
  background-color: #d36d15;
  color: #fff;
  border-color: #d36d15;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(230,126,34,0.35);
}

.btn-main-cta .sub-text { font-size: 12px; margin-top: 8px; opacity: 0.8; font-weight: 300; }

.cta-sub { width: 100%; max-width: 400px; }
.sub-cta-text { font-size: 12px; color: #888; margin-bottom: 12px; }

.btn-sub-cta {
  display: block;
  width: 100%;
  padding: 18px;
  background: transparent;
  border: 1px solid #ccc;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
}

.cta-area-small .btn-sub-cta {
  display: inline-block;
  width: auto;
  padding: 15px 30px;
  min-width: 240px;
  text-align: center;
  background: #fff;
}

.btn-sub-cta:hover { background: #f5f5f5; color: #333; border-color: #333; }

.cta-area-small {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Animation */
.js-anim-item { opacity: 0; transform: translateY(20px); transition: opacity 0.8s, transform 0.8s; }
.js-anim-section.is-visible .js-anim-item { opacity: 1; transform: translateY(0); }

/* --- Footer は common.css の .site-footer で定義 --- */

/* ========================================
   Responsive (768px以下)
   ======================================== */
@media (max-width: 768px) {
  .pc-only { display: none; }
  .sp-only { display: block; }

  .course-header { padding: 15px 20px; }
  .course-desktop-nav { display: none; }
  .course-hamburger { display: block; }

  .page-hero { padding: 140px 20px 60px; }
  .hero-bg-text { font-size: 15vw; }
  .page-title { font-size: 28px; }
  .course-label { font-size: 11px; }

  .detail-section { margin-top: 80px; }
  .section-heading { font-size: 24px; }

  .schedule-table thead { display: none; }

  .schedule-table,
  .schedule-table tbody,
  .schedule-table tr,
  .schedule-table td {
    display: block;
    width: 100%;
  }

  .schedule-table tr {
    margin-bottom: 25px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    overflow: hidden;
  }

  .schedule-table tr.highlight-row {
    background-color: #fffaf0;
    border-color: #ffe0b2;
  }

  .schedule-table .count {
    background: transparent;
    padding: 15px 20px;
    font-size: 20px;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    border-bottom: 1px dashed #ddd;
    margin: 0;
  }

  .theme-workshop .schedule-table .count { text-align: left; }

  .schedule-table td {
    position: relative;
    padding: 10px 20px 10px 100px;
    border-bottom: none;
    text-align: left;
    min-height: 44px;
  }

  .schedule-table td:last-child { padding-bottom: 25px; }

  .schedule-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 20px;
    top: 10px;
    font-size: 12px;
    color: #999;
    font-weight: 500;
    width: 70px;
  }

  .theme-workshop .schedule-table td[data-label="内容"]::before { display: none; }
  .theme-workshop .schedule-table td[data-label="内容"] { padding-left: 20px; }

  .content-cell { display: block; }
  .content-cell .tag { margin-bottom: 5px; }
  .content-cell .text { display: block; margin-top: 5px; }

  .alert-text { display: inline-block; margin-left: 8px; font-size: 11px; }
  .note-text { text-align: left; margin-top: 10px; }

  .venue-box { padding: 30px 20px; }
  .alert-box { padding: 30px 20px; }
  .alert-title { font-size: 16px; }

  .cta-area { padding-top: 60px; margin-top: 80px; }
  .price-main { font-size: 32px; margin-bottom: 40px; }

  .cta-recommend { max-width: 100%; }
  .recommend-text { margin-top: 35px; font-size: 14px; margin-bottom: 15px; }
  .btn-main-cta { font-size: 16px; padding: 20px; }

  .price-list-box { width: 100%; padding: 20px; box-sizing: border-box; }
  .price-row { gap: 15px; padding: 15px 0; }
  .p-name { font-size: 13px; }
  .p-val { font-size: 20px; }
  .btn-sub-cta { width: 100%; margin-bottom: 10px; box-sizing: border-box; }

}
