/* ====================================================
   lesson-group.css — グループレッスン専用スタイル
   1カラム アコーディオン + 改良比較表
   ==================================================== */

/* ====================================================
   COURSES — 1カラム・アコーディオンUI
   ==================================================== */
.lg-courses {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lg-course {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px) saturate(115%);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  overflow: hidden;
  transition: background 0.3s ease, transform 0.3s ease;
}
.lg-course[open] {
  background: rgba(255, 255, 255, 0.36);
}

/* SUMMARY — 常時表示 */
.lg-course-summary {
  display: grid;
  grid-template-columns: 200px 1fr 130px;
  align-items: center;
  gap: 28px;
  padding: 22px 28px 22px 22px;
  cursor: pointer;
  list-style: none;
}
.lg-course-summary::-webkit-details-marker { display: none; }

.lg-course-thumb {
  width: 200px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 3px;
}
.lg-course-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.5s ease;
  filter: blur(2px) saturate(82%);
  transform: scale(1.05);
}
.lg-course[open] .lg-course-thumb-img,
.lg-course-summary:hover .lg-course-thumb-img {
  filter: blur(0) saturate(100%);
  transform: scale(1);
}

.lg-course-overview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.lg-course-no {
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--brand-blue);
}
.lg-course-title {
  font-family: 'Zen Old Mincho', serif;
  font-weight: 500;
  font-size: 21px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: #1a1a1a;
}
.lg-course-lead {
  font-family: 'Zen Old Mincho', serif;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(0, 0, 0, 0.7);
}
.lg-course-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.lg-course-tags li {
  font-family: var(--font-latin);
  font-size: 10px;
  letter-spacing: 0.18em;
  padding: 4px 10px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 999px;
  color: rgba(0, 0, 0, 0.6);
}

/* TOGGLE: 詳細を見る */
.lg-course-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  justify-self: end;
}
.lg-course-toggle-text {
  font-family: var(--font-gothic);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--brand-blue);
}
.lg-course[open] .lg-course-toggle-text::before {
  content: '閉じる';
}
.lg-course[open] .lg-course-toggle-text {
  font-size: 0;
  letter-spacing: 0;
}
.lg-course[open] .lg-course-toggle-text::before {
  font-size: 12px;
  letter-spacing: 0.16em;
}

.lg-course-toggle-icon {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--brand-blue);
  flex-shrink: 0;
  transition: background 0.3s ease;
}
.lg-course-toggle-icon::before,
.lg-course-toggle-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.2px;
  background: var(--brand-blue);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, background 0.3s ease;
}
.lg-course-toggle-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.lg-course[open] .lg-course-toggle-icon {
  background: var(--brand-blue);
}
.lg-course[open] .lg-course-toggle-icon::before,
.lg-course[open] .lg-course-toggle-icon::after {
  background: #fff;
}
.lg-course[open] .lg-course-toggle-icon::after {
  transform: translate(-50%, -50%) rotate(0);
}

/* DETAIL — 開いたとき */
.lg-course-detail {
  padding: 12px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: lg-detail-fade 0.4s ease;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 8px;
  padding-top: 32px;
}
@keyframes lg-detail-fade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lg-detail-block { display: flex; flex-direction: column; gap: 14px; }
.lg-detail-label {
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--brand-blue);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(2, 108, 255, 0.25);
}

.lg-detail-copy {
  font-family: 'Zen Old Mincho', serif;
  font-size: 15px;
  line-height: 2;
  color: #2a2a2a;
}
.lg-detail-copy strong { font-weight: 700; color: #1a1a1a; }

/* 痛みリスト */
.lg-detail-pain {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 24px;
}
.lg-detail-pain li {
  font-family: 'Zen Old Mincho', serif;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(0, 0, 0, 0.72);
  padding: 8px 0 8px 18px;
  position: relative;
}
.lg-detail-pain li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-blue);
  transform: translateY(-50%);
}

/* 学ぶこと（番号付きリスト） */
.lg-detail-learn {
  list-style: none;
  counter-reset: lg-learn;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 28px;
}
.lg-detail-learn li {
  counter-increment: lg-learn;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  padding: 16px 4px;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.16);
  align-items: baseline;
}
.lg-detail-learn li::before {
  content: counter(lg-learn, decimal-leading-zero);
  font-family: var(--font-latin);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--brand-blue);
  align-self: center;
}
.lg-detail-learn li > span:first-of-type {
  font-family: 'Zen Old Mincho', serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.55;
  color: #1a1a1a;
  display: block;
  margin-bottom: 4px;
}
.lg-detail-learn li > span:last-of-type {
  font-family: 'Zen Old Mincho', serif;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.65);
  display: block;
  grid-column: 2;
}

/* 受講後に目指す状態 */
.lg-detail-goal {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.lg-detail-goal li {
  font-family: 'Zen Old Mincho', serif;
  font-size: 15px;
  line-height: 1.8;
  color: #1a1a1a;
  padding: 12px 0 12px 24px;
  position: relative;
  border-top: 1px dotted rgba(0, 0, 0, 0.16);
}
.lg-detail-goal li:first-child { border-top: none; padding-top: 4px; }
.lg-detail-goal li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 12px;
  font-family: var(--font-latin);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-blue);
}
.lg-detail-goal li:first-child::before { top: 4px; }

.lg-detail-cta {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.lg-detail-cta .lp-btn { min-width: 280px; }

/* ====================================================
   COMPARE TABLE — 改良版（カラフル＋カード化）
   ==================================================== */
.lg-compare-wrap {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(10px) saturate(115%);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.lg-compare {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Zen Old Mincho', serif;
}
.lg-compare thead {
  background: rgba(2, 108, 255, 0.08);
}
.lg-compare th {
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--brand-blue);
  font-weight: 500;
  text-align: left;
  padding: 18px 20px;
  border-bottom: 2px solid var(--brand-blue);
  white-space: nowrap;
}
.lg-compare td {
  font-size: 14px;
  line-height: 1.7;
  color: #2a2a2a;
  padding: 22px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  vertical-align: top;
}
.lg-compare tr:last-child td { border-bottom: none; }
.lg-compare tbody tr {
  transition: background 0.3s ease;
}
.lg-compare tbody tr:hover {
  background: rgba(2, 108, 255, 0.04);
}
.lg-compare tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.18);
}
.lg-compare tbody tr:nth-child(even):hover {
  background: rgba(2, 108, 255, 0.06);
}
.lg-compare td:first-child {
  border-left: 4px solid transparent;
  transition: border-color 0.3s ease;
  position: relative;
}
.lg-compare tbody tr:hover td:first-child {
  border-left-color: var(--brand-blue);
}
.lg-compare td strong {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 15px;
  display: block;
  margin-bottom: 2px;
}
/* メニュー化しやすさ列をピル化 */
.lg-compare td:last-child {
  font-family: var(--font-gothic);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.lg-compare td:last-child::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-blue);
  margin-right: 8px;
  vertical-align: middle;
}

/* ====================================================
   VS — 個人レッスンとの違い
   ==================================================== */
.lg-vs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 12px;
}
.lg-vs-card {
  padding: 36px 32px 30px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px) saturate(115%);
  -webkit-backdrop-filter: blur(8px) saturate(115%);
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lg-vs-card--current {
  border-top: 2px solid var(--brand-blue);
  background: rgba(255, 255, 255, 0.32);
}
.lg-vs-tag {
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--brand-blue);
}
.lg-vs-title {
  font-family: 'Zen Old Mincho', serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: #1a1a1a;
}
.lg-vs-desc {
  font-family: 'Zen Old Mincho', serif;
  font-size: 14px;
  line-height: 1.95;
  color: rgba(0, 0, 0, 0.72);
}
.lg-vs-desc strong { font-weight: 700; color: #1a1a1a; }
.lg-vs-list {
  list-style: none;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
}
.lg-vs-list li {
  font-family: 'Zen Old Mincho', serif;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.72);
  padding: 10px 0 10px 16px;
  border-top: 1px dotted rgba(0, 0, 0, 0.16);
  position: relative;
}
.lg-vs-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 8px;
  height: 1px;
  background: var(--brand-blue);
}
.lg-vs-list li:first-child { border-top: none; }
.lg-vs-link {
  margin-top: 14px;
  font-family: var(--font-gothic);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
  border-bottom: 1px solid var(--brand-blue);
  padding: 6px 0;
  align-self: flex-start;
  transition: color 0.3s ease, padding-right 0.3s ease;
}
.lg-vs-link:hover { color: #0058d6; padding-right: 6px; }

/* ====================================================
   SP（≤768px）
   ==================================================== */
@media (max-width: 768px) {
  .lg-course-summary {
    grid-template-columns: 1fr 36px;
    gap: 14px;
    padding: 18px 16px;
  }
  .lg-course-thumb {
    grid-column: 1 / -1;
    width: 100%;
    aspect-ratio: 16 / 10;
    margin-bottom: 4px;
  }
  .lg-course-overview { gap: 6px; }
  .lg-course-title { font-size: 17px; }
  .lg-course-toggle { gap: 0; align-self: start; padding-top: 6px; }
  .lg-course-toggle-text { display: none; }
  .lg-course-toggle-icon { width: 28px; height: 28px; }
  .lg-course-detail { padding: 8px 16px 28px; gap: 22px; }
  .lg-detail-pain { grid-template-columns: 1fr; gap: 0; }
  .lg-detail-learn { grid-template-columns: 1fr; gap: 0; }

  .lg-compare th { font-size: 10px; padding: 14px 12px; }
  .lg-compare td { font-size: 13px; padding: 16px 12px; }
  .lg-compare td strong { font-size: 14px; }

  .lg-vs { grid-template-columns: 1fr; }
  .lg-vs-card { padding: 28px 24px 24px; }
  .lg-vs-title { font-size: 19px; }
}
