/* ==============================================
   Tea World / 森のくまの紅茶教室
   tea_lesson.css 整理版
   ----------------------------------------------
   方針
   1. 共通土台
   2. archive 専用
   3. single 専用
   4. 講義パーツ
   5. 補助UI
   6. responsive
   ============================================== */

/* ==============================================
   01. Base
   ============================================== */
.tw-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.tea-class-layout,
.tea-class-main,
.tea-class-sidebar {
  overflow: visible;
}

.tea-class-main {
  min-width: 0;
}

/* ==============================================
   02. Archive Layout
   ============================================== */
.tea-class-archive {
  padding: 40px 0;
}

.tea-class-archive .tea-class-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.tea-class-archive .tea-class-main {
  flex: 1 1 0%;
  max-width: 900px;
}

.tea-class-archive .tea-class-sidebar,
.tea-class-archive .tea-class-layout > aside,
.tea-class-archive .tea-class-layout > .sidebar,
.tea-class-archive .tea-class-layout > #secondary {
  flex: 0 0 360px;
  width: 360px;
  max-width: 360px;
  position: sticky;
  top: 24px;
  align-self: flex-start;
}

.tea-class-archive .tw-breadcrumbs {
  margin: 0 0 1rem;
  text-align: left;
}

.tea-class-archive .tw-breadcrumbs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}

.tea-class-archive .tw-breadcrumbs__item {
  display: inline-flex;
  align-items: center;
}

.tea-class-header {
  padding-left: 0;
  margin-bottom: 40px;
}

.tea-class-description {
  color: #666;
  margin-top: 10px;
}

.tea-class-part {
  margin-bottom: 40px;
}

.tea-class-part-title {
  margin-bottom: 12px;
  font-size: 20px;
}

.tea-class-lessons {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tea-class-lesson {
  margin: 6px 0;
}

.tea-class-lesson a {
  display: flex;
  gap: 10px;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
}

.tea-class-lesson a:hover,
.tea-class-lesson a:focus-visible {
  background: #f5f3ec;
}

.tea-class-lesson-title {
  font-size: 1rem;
  line-height: 1.6;
}

.lesson-number {
  font-weight: 600;
  color: #6a8f5b;
  min-width: 80px;
}

/* archive sidebar 内部 */
.tea-class-layout .sidebar > *,
.tea-class-layout .widget-area > * {
  width: 100%;
  max-width: 100%;
}

.tea-class-layout .widget,
.tea-class-layout .widget_search,
.tea-class-layout .search-form-wrap,
.tea-class-layout #secondary,
.tea-class-layout .site-sidebar,
.tea-class-layout .sidebar-inner,
.tea-class-layout .sidebar-search {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}

.tea-class-layout .widget > *,
.tea-class-layout .widget .wp-block-group,
.tea-class-layout .widget .wp-block-group__inner-container,
.tea-class-layout .widget .wp-block-columns,
.tea-class-layout .widget .wp-block-column {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.tea-class-layout .tea-search-form {
  display: flex;
  width: 100%;
  max-width: none;
  align-items: stretch;
  gap: 8px;
}

.tea-class-layout .tea-search-form input[type="search"] {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
}

.tea-class-layout .tea-search-form button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.tea-class-archive{
  padding: 0;
}

.archive-content{
  padding: 0 0 3rem;
}

.tea-class-archive__header{
  margin: 0 0 1.6rem;
}

.tea-class-archive__title{
  margin: 0;
}

.tea-class-intro-wrap{
  margin: 0 0 2.4rem;
}

.tea-class-intro-wrap h2,
.tea-class-lessons h2{
  margin: 0 0 0.9rem;
  font-size: 1.1rem;
  color: #5f5448;
}

.tea-class-intro{
  margin: 0 0 2rem;
  max-width: 42rem;
}

.tea-class-intro p{
  line-height: 1.9;
  font-size: .98rem;
  color: #3f3a33;
  text-indent: 1em;
  margin: .6rem 0;
}

.tea-class-list{
  margin: 1.2rem 0 0;
  border-top: 1px solid #e5dfd4;
}

.tea-class-item{
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem .2rem;
  border-bottom: 1px solid #e5dfd4;
  text-decoration: none;
  color: inherit;
  transition: background-color .2s ease;
}

.tea-class-item:hover{
  background: #f8f6f2;
}

.tea-class-number{
  flex: 0 0 4.5rem;
  font-size: .92rem;
  font-weight: 600;
  color: #6f6254;
  line-height: 1.7;
}

.tea-class-title{
  flex: 1;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #3f3a33;
}

.tea-class-item:hover .tea-class-title{
  text-decoration: underline;
  text-underline-offset: .15em;
}

/*本文*/

.archive-content{
  max-width: none;
}

.tea-class-archive__header{
  margin: 0 0 1.6rem;
}

.tea-class-archive__title{
  margin: 0;
}

.tea-class-intro-wrap{
  margin: 0 0 2.4rem;
}

.tea-class-intro-wrap h2,
.tea-class-lessons h2{
  margin: 0 0 0.9rem;
  font-size: 1.1rem;
  color: #5f5448;
}

.tea-class-intro{
  margin: 0 0 2rem;
  max-width: none;
}

.tea-class-intro p{
  line-height: 1.9;
  font-size: .98rem;
  color: #3f3a33;
  text-indent: 1em;
  margin: .6rem 0;
}

.tea-class-list{
  margin: 1.2rem 0 0;
  border-top: 1px solid #e5dfd4;
}

.tea-class-item{
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem .2rem;
  border-bottom: 1px solid #e5dfd4;
  text-decoration: none;
  color: inherit;
  transition: background-color .2s ease;
}

.tea-class-item:hover{
  background: #f8f6f2;
}

.tea-class-number{
  flex: 0 0 4.5rem;
  font-size: .92rem;
  font-weight: 600;
  color: #6f6254;
  line-height: 1.7;
}

.tea-class-title{
  flex: 1;
  font-size: 1.12rem;
  line-height: 1.75;
  color: #2f2a24;
  font-weight: 500;
}

.tea-class-item:hover .tea-class-title{
  text-decoration: underline;
  text-underline-offset: .15em;
}

/*本文左余白 padding: 上 右 下 左*/
.tea-class-archive{
  padding: 0 0.8rem 0 2.0rem;
}

/*スマホ対策*/
@media (max-width: 768px) {
  .post-type-archive-tea_lesson .content-wrapper {
    display: block;
  }

  .post-type-archive-tea_lesson .tea-class-archive {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
  }

  .post-type-archive-tea_lesson #secondary,
  .post-type-archive-tea_lesson .widget-area,
  .post-type-archive-tea_lesson .sidebar,
  .post-type-archive-tea_lesson aside {
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
  }
}

/* ==============================================
   03. Single Layout
   ============================================== */
.tea-lesson-single {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 40px;
  box-sizing: border-box;
}

.tea-lesson-single .tea-class-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.tea-lesson-single .tea-class-main {
  flex: 1 1 0%;
}

.tea-lesson-single .tea-class-sidebar,
.tea-lesson-single .tea-class-sidebar aside,
.tea-lesson-single .tea-class-sidebar .sidebar {
  flex: 0 0 280px;
  width: 280px;
  max-width: 280px;
  position: sticky;
  top: 24px;
  align-self: flex-start;
}

.tea-lesson {
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

.tea-lesson > * {
  box-sizing: border-box;
}

.lesson-header {
  margin: 2.2rem 0 2rem;
}

.lesson-part-label {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid #d9d0c3;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #7a6f63;
  letter-spacing: 0.04em;
}

.lesson-title {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.35;
  font-weight: 700;
  color: #2f2a24;
}

.lesson-meta {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: #6c645b;
}

.lesson-content {
  line-height: 1.9;
}

.lesson-content p {
  margin: 1.2em 0;
  text-indent: 1em;
}

.lesson-content blockquote p {
  text-indent: 0;
}

.lesson-content h2 {
  margin-top: 2.4em;
  margin-bottom: 0.9em;
  font-weight: 600;
}

.lesson-content h3 {
  margin-top: 1.9em;
  margin-bottom: 0.7em;
}

.lesson-content h4 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

/* =====================================
   Lesson Title Design
===================================== */

.lesson-header{
  margin-bottom:1.8rem;
}

.lesson-part-label{
  font-size:.9rem;
  letter-spacing:.04em;
  color:#7b6a58;
  margin-bottom:.25rem;
}

.lesson-number{
  font-size:.9rem;
  font-weight:600;
  letter-spacing:.05em;
  color:#8b7355;
  margin-bottom:.35rem;
}

.lesson-title{
  font-size:1.9rem;
  line-height:1.35;
  margin:.2rem 0 .6rem;
  font-weight:700;
}

.lesson-meta{
  font-size:.85rem;
  color:#777;
}

/* =====================================
   Lesson Structure Hierarchy
   学習目標 / 3行まとめ / 今日のポイント / 問い
===================================== */

/* 学習目標（静かな導入） */
.lesson-objectives{
  margin:1.4rem 0 1.8rem;
}

.lesson-objectives h2{
  font-size:.95rem;
  font-weight:600;
  color:#7a6d5e;
  margin:0 0 .4rem;
  letter-spacing:.02em;
}

.lesson-objectives p,
.lesson-objectives li{
  line-height:1.8;
}

.lesson-objectives ul,
.lesson-objectives ol{
  margin:.5rem 0 .5rem 1.4rem;
}


/* 3行まとめ（軽い整理） */
.lesson-summary{
  margin:1.6rem 0 2.2rem;
  padding-top:.8rem;
  border-top:1px solid #e7dfd2;
}

.lesson-summary h2{
  font-size:.95rem;
  font-weight:600;
  color:#6f6254;
  margin:0 0 .45rem;
  letter-spacing:.02em;
}

.lesson-summary p{
  margin:.35rem 0;
  line-height:1.85;
}


/* 今日のポイント（講義の回収） */
.lesson-points{
  margin:2.4rem 0;
  padding:1.3rem 1.5rem;
  background:#f6f2e9;
  border-left:4px solid #8b7355;
  border-radius:8px;
}

.lesson-points h2{
  margin:0 0 .6rem;
  font-size:1.05rem;
  font-weight:700;
  letter-spacing:.02em;
}

.lesson-points p{
  margin:.4rem 0;
  line-height:1.8;
}

.lesson-points ul,
.lesson-points ol{
  margin:.5rem 0 .5rem 1.4rem;
}

.lesson-points li{
  margin:.35rem 0;
}

/*この講義の問い*/
.lesson-question{
  margin:1.6rem 0 2.2rem;
  padding:1.2rem 1.4rem;
  background:#f8f6f2;
  border:1px solid #e5dfd4;
  border-radius:12px;
}

.lesson-question h2{
  font-size:.95rem;
  font-weight:600;
  color:#6f6254;
  margin:0 0 .45rem;
  letter-spacing:.02em;
}

.lesson-question p{
  margin:.35rem 0;
  line-height:1.85;
}

/* =====================================
   Lesson Typography
   講義本文の読みやすさ
===================================== */

.tea-lesson .lesson-content{
  font-size:1.05rem;
  line-height:1.9;
  color:#2f2a24;
}

/* 段落リズム */
.tea-lesson .lesson-content p{
  margin:1.15em 0;
}

/* 見出し（本文内） */
.tea-lesson .lesson-content h2{
  margin:2.2em 0 .6em;
  font-size:1.35rem;
  line-height:1.4;
}

.tea-lesson .lesson-content h3{
  margin:1.7em 0 .45em;
  font-size:1.15rem;
  line-height:1.45;
}

.tea-lesson .lesson-content h4{
  margin:1.4em 0 .4em;
  font-size:1rem;
  font-weight:600;
}

/* リスト */
.tea-lesson .lesson-content ul,
.tea-lesson .lesson-content ol{
  margin:0.6em 0 0.8em 1.4em;
}

.tea-lesson .lesson-content li{
  margin:.35em 0;
  line-height:1.8;
}

/* 引用 */
.tea-lesson .lesson-content blockquote{
  margin:1.6em 0;
  padding:.8em 1.2em;
  border-left:3px solid #d8cdbb;
  color:#5b5146;
  background:#faf7f2;
}

/* 強調 */
.tea-lesson .lesson-content strong{
  font-weight:600;
}

.tea-lesson .lesson-content em{
  font-style:italic;
}

/*本文の上に少し余白と細い境界を入れる*/
.lesson-content{
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid #e7dfd2;
}

.lesson-content > :first-child{
  margin-top: 0;
}

/*最初の段落の可読性を上げる*/
.lesson-content > p:first-of-type{
  font-size: 1.02rem;
}

/* =====================================
   SimpleTOC title final stable fix
===================================== */

.lesson-content h2.simpletoc-title{
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;

  margin: 1.4rem 0 1.8rem;
  padding: 2.6rem 1.2rem 1rem;
  background: #faf7f2;
  border: 1px solid #efe9df;
  border-radius: 10px;

  font-size: 0;
  line-height: 0;
  overflow: visible;
}

/* Contents 本体 */
.lesson-content h2.simpletoc-title::before{
  content: "Contents";
  position: absolute;
  top: 1rem;
  left: 1.2rem;
  display: inline-block;

  font-size: 1rem;
  line-height: 1.4;
  font-weight: 700;
  color: #2f2a24;
  white-space: nowrap;

  padding-bottom: .28rem;
  border-bottom: 2px solid #c8b9a6;
  z-index: 2;
}

/* 目次リスト */
.lesson-content h2.simpletoc-title .simpletoc-list{
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding-left: 1.4rem;

  font-size: .95rem;
  line-height: 1.6;
  font-weight: 400;
}

.lesson-content h2.simpletoc-title .simpletoc-list li{
  margin: .28rem 0;
}

.lesson-content h2.simpletoc-title .simpletoc-list a{
  text-decoration: none;
}

.lesson-content h2.simpletoc-title .simpletoc-list a:hover,
.lesson-content h2.simpletoc-title .simpletoc-list a:focus-visible{
  text-decoration: underline;
}

/*Lesson Figure*/
.tw-lesson-figure {
  margin: 24px 0;
  text-align: center;
}

.tw-lesson-figure img {
  max-width: 100%;
  height: auto;
}

.tw-figure-caption {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
}

/*第8講アール・ヌーヴォーとアール・デコ*/
.tw-style-compare {
  margin: 2.5rem 0;
}

.tw-style-compare__lead {
  margin: 0 0 1.25rem;
  line-height: 1.9;
}

.tw-style-compare__summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 1.5rem 0 2rem;
}

.tw-style-compare__summary-box {
  border: 1px solid #d8d2c8;
  background: #faf8f3;
  padding: 1rem 1.1rem;
  border-radius: 10px;
}

.tw-style-compare__summary-box h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.tw-style-compare__summary-box p {
  margin: 0;
  line-height: 1.8;
}

.tw-style-compare__table-wrap {
  overflow-x: auto;
  margin-bottom: 2rem;
}

.tw-style-compare__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: #fff;
}

.tw-style-compare__table th,
.tw-style-compare__table td {
  border: 1px solid #d9d3c8;
  padding: 0.9rem 0.95rem;
  vertical-align: top;
  line-height: 1.8;
}

.tw-style-compare__table thead th {
  background: #2d2a26;
  color: #fff;
  text-align: center;
}

.tw-style-compare__table tbody th {
  background: #f6f2ea;
  width: 22%;
  text-align: left;
}

.tw-style-compare__objects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tw-style-compare__object-card {
  border: 1px solid #ddd5c8;
  border-radius: 12px;
  padding: 1rem;
  background: #fcfbf8;
}

.tw-style-compare__object-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.tw-style-compare__object {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 180px;
  margin-bottom: 1rem;
  background: #fff;
  border: 1px solid #ebe4d8;
  border-radius: 10px;
}

.cup {
  position: relative;
  width: 150px;
  height: 110px;
}

.cup__body,
.cup__handle,
.cup__saucer {
  position: absolute;
  display: block;
  border: 3px solid #6a6258;
  background: transparent;
}

.cup--nouveau .cup__body {
  left: 25px;
  top: 25px;
  width: 86px;
  height: 56px;
  border-radius: 18px 18px 28px 28px / 14px 14px 30px 30px;
}

.cup--nouveau .cup__handle {
  right: 16px;
  top: 34px;
  width: 28px;
  height: 34px;
  border-left: none;
  border-radius: 0 18px 18px 0;
  transform: rotate(10deg);
}

.cup--nouveau .cup__saucer {
  left: 18px;
  top: 88px;
  width: 112px;
  height: 10px;
  border-radius: 50%;
}

.cup--deco .cup__body {
  left: 28px;
  top: 28px;
  width: 82px;
  height: 48px;
  border-radius: 4px;
  clip-path: polygon(8% 0%, 92% 0%, 100% 100%, 0% 100%);
}

.cup--deco .cup__handle {
  right: 18px;
  top: 36px;
  width: 24px;
  height: 28px;
  border-left: none;
  border-radius: 0;
}

.cup--deco .cup__saucer {
  left: 18px;
  top: 86px;
  width: 110px;
  height: 8px;
  border-radius: 2px;
}

.tw-style-compare__object-card p {
  margin: 0;
  line-height: 1.8;
}

@media (max-width: 767px) {
  .tw-style-compare__summary,
  .tw-style-compare__objects {
    grid-template-columns: 1fr;
  }
}
/* ==============================================
   04. Lesson Parts
   ============================================== */
.tea-lesson-progress {
  margin: 40px 0;
  padding: 20px;
  background: #fafafa;
  border-radius: 8px;
}

.tea-lesson-progress__header {
  font-weight: 600;
  margin-bottom: 6px;
}

.tea-lesson-progress__part {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.tea-lesson-progress__bar {
  height: 12px;
  background: #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
}

.tea-lesson-progress__bar-inner {
  height: 100%;
  background: #6a8f5b;
  transition: width .3s;
}

.tea-lesson-timeline {
  margin: 40px 0;
  padding: 20px;
  background: #f6f4ee;
  border-radius: 10px;
}

.tea-lesson-timeline__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tea-lesson-timeline__item {
  padding: 6px 12px;
  border-radius: 20px;
  background: #e7e3d7;
  font-size: 14px;
}

.tea-lesson-timeline__item.is-current {
  background: #6a8f5b;
  color: #fff;
  font-weight: 600;
}

.tea-lesson-timeline__label {
  white-space: nowrap;
}

.tea-lesson-part-list {
  margin: 48px 0;
  padding: 24px;
  background: #faf8f2;
  border: 1px solid #e8e0d0;
  border-radius: 12px;
}

.tea-lesson-part-list__title {
  margin-bottom: 14px;
  font-size: 1.05rem;
  font-weight: 700;
}

.tea-lesson-part-list__items {
  margin: 0;
  padding-left: 1.5em;
}

.tea-lesson-part-list__item {
  margin: 0.45em 0;
}

.tea-lesson-part-list__link {
  text-decoration: none;
}

.tea-lesson-part-list__link:hover,
.tea-lesson-part-list__link:focus {
  text-decoration: underline;
}

.tea-lesson-part-list__item.is-current {
  font-weight: 700;
}

.tea-lesson-part-list__current {
  display: inline-block;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(106, 143, 91, 0.10);
}

.lesson-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 40px 0;
}


/* =========================
   紅茶教室：コントラスト改善
 * accessibility対応
   ========================= */

/* 枠全体の文字 */
.tea-lesson-progress,
.lesson-meta,
.lesson-number {
  color: #2f2f2f;
}

/* 小さい補助文字・タイトル */
.tea-lesson-progress__part-label,
.tea-lesson-progress__section-title,
.tea-lesson-timeline__label,
.lesson-number,
.lesson-meta {
  color: #333333;
}

/* 現在地バッジ類：もっと濃い緑にする */
.tea-lesson-progress__partmap-current,
.tea-lesson-progress__item-current,
.tea-lesson-timeline__item.is-current,
.tea-lesson-timeline__label,
.tea-lesson-progress__part-label {
  background: #4f6f2f;
  color: #ffffff !important;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  line-height: 1.4;
  display: inline-block;
}

/* 枠内の細かい文字が薄すぎる場合の保険 */
.tea-lesson-progress li,
.tea-lesson-progress p,
.lesson-meta li,
.lesson-meta p,
.lesson-meta span {
  color: #333333;
}


/* 進捗バーや細線が薄すぎる場合の補助 */
.tea-lesson-progress__bar,
.tea-lesson-progress__track {
  background: #b8c1ae;
}



/* 紅茶教室 進捗枠内の本文文字をしっかり濃くする */
.tea-lesson-progress,
.tea-lesson-progress p,
.tea-lesson-progress li,
.tea-lesson-progress span,
.tea-lesson-progress div {
  color: #2f2f2f;
}

/* セクションタイトルはさらに少し強めでも可 */
.tea-lesson-progress__section-title {
  color: #2a2a2a;
  font-weight: 700;
}


/*本っぽくするCSS*/
p{
  text-align: justify;
  text-justify: inter-ideograph;
  hanging-punctuation: first;
}

/*講義進行バー*/
.tea-lesson-progress{
  margin: 1.4rem 0 2rem;
  padding: 1rem 1.1rem 1.1rem;
  background: #faf8f4;
  border: 1px solid #e6dfd3;
  border-radius: 14px;
}

.tea-lesson-progress__header{
  font-size: 1.02rem;
  font-weight: 700;
  color: #2f2a24;
  line-height: 1.5;
  margin-bottom: .35rem;
}

.tea-lesson-progress__part{
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .6rem;
  align-items: baseline;
  margin-bottom: .8rem;
}

.tea-lesson-progress__part-label{
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: #8a7d6d;
}

.tea-lesson-progress__part-name{
  font-size: .98rem;
  color: #6b604f;
  line-height: 1.7;
}

.tea-lesson-progress__bar{
  position: relative;
  height: 10px;
  background: #e8e3da;
  border-radius: 999px;
  overflow: hidden;
}

.tea-lesson-progress__bar-inner{
  height: 100%;
  background: linear-gradient(90deg, #6f8f59 0%, #86a96e 100%);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.tea-lesson-progress__section{
  margin-top: 1rem;
  padding-top: .95rem;
  border-top: 1px solid #e7e0d5;
}

.tea-lesson-progress__section-title{
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: #8a7d6d;
  margin-bottom: .65rem;
}

.tea-lesson-progress__list{
  margin: 0;
  padding-left: 1.2rem;
}

.tea-lesson-progress__item{
  margin: .25rem 0;
}

.tea-lesson-progress__item-link{
  display: inline-flex;
  flex-wrap: wrap;
  gap: .3rem .5rem;
  align-items: baseline;
  text-decoration: none;
  color: inherit;
  line-height: 1.75;
}

.tea-lesson-progress__item-number{
  font-size: .9rem;
  color: #7a6f61;
  white-space: nowrap;
}

.tea-lesson-progress__item-title{
  font-size: .96rem;
  color: #3f3a33;
}

.tea-lesson-progress__item-current{
  font-size: .78rem;
  font-weight: 600;
  color: #6f8f59;
  white-space: nowrap;
}

.tea-lesson-progress__item.is-current .tea-lesson-progress__item-title{
  font-weight: 600;
  color: #2f2a24;
}

.tea-lesson-progress__item-link:hover .tea-lesson-progress__item-title{
  text-decoration: underline;
  text-underline-offset: .15em;
}
/*部建て*/
.tea-lesson-progress__partmap{
  list-style: none;
  margin: 0;
  padding: 0;
}

.tea-lesson-progress__partmap-item{
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .6rem;
  align-items: baseline;
  margin: .28rem 0;
  line-height: 1.7;
}

.tea-lesson-progress__partmap-text{
  font-size: .94rem;
  color: #6b604f;
}

.tea-lesson-progress__partmap-current{
  font-size: .78rem;
  font-weight: 600;
  color: #6f8f59;
  white-space: nowrap;
}

.tea-lesson-progress__partmap-item.is-current .tea-lesson-progress__partmap-text{
  font-weight: 600;
  color: #2f2a24;
}

/*Skip Link*/
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 10000;
  padding: 10px 14px;
  background: #ffffff;
  color: #222222;
  border: 2px solid #4f6f2f;
  border-radius: 6px;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* ==============================================
   05. Supplement UI
   ============================================== */
.lesson-objectives,
.lesson-summary,
.lesson-comment,
.lesson-points {
  margin: 2rem 0;
}

.simpletoc,
#simpletoc-container,
.simpletoc-wrap {
  margin: 1.5rem 0 2rem;
}

.lesson-objectives ol,
.lesson-objectives ul,
.lesson-points ol,
.lesson-points ul,
.lesson-summary ol,
.lesson-summary ul,
.lesson-comment ol,
.lesson-comment ul {
  margin: 0.75rem 0 0.75rem 1.5rem;
  padding: 0;
}

.lesson-objectives li,
.lesson-points li,
.lesson-summary li,
.lesson-comment li {
  margin: 0.45rem 0;
  line-height: 1.8;
}

/*🦕🧸教室の引用を整える*/
.lesson-content {
  line-height: 1.9;
}

/*進捗バー*/
.tea-lesson-progress__part{
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .6rem;
  align-items: baseline;
  margin-bottom: .8rem;
}

.tea-lesson-progress__part-label{
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: #8a7d6d;
}

.tea-lesson-progress__part-name{
  font-size: .98rem;
  color: #6b604f;
  line-height: 1.7;
}
/* =====================================
   Tea Class Archive List UI
===================================== */

.tea-class-part {
  margin-bottom: 2.5rem;
}

.tea-class-part-title {
  font-size: 1.25rem;
  line-height: 1.5;
  margin: 0 0 1rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid #e7dfd2;
}

.tea-class-lessons {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tea-class-lesson {
  margin: 0;
}

.tea-class-lesson a {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  padding: .7rem .85rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}

.tea-class-lesson a:hover,
.tea-class-lesson a:focus-visible {
  background: #f7f3eb;
  text-decoration: none;
  transform: translateX(2px);
}

.tea-class-lesson .lesson-number {
  flex: 0 0 5.5em;
  font-size: .95rem;
  font-weight: 700;
  color: #7b6a58;
}

.tea-class-lesson .lesson-title {
  flex: 1 1 auto;
  min-width: 0;
  color: #2f2a24;
  line-height: 1.6;
}

.tea-class-lesson.is-current a {
  background: #f3ede2;
  font-weight: 600;
}

/*archive「現在の講義」表示*/
.tea-class-lesson.is-current a{
  background:#f3ede2;
  font-weight:600;
}

/*講義番号を少しだけ強くする*/
.lesson-number{
  font-family: system-ui, sans-serif;
  letter-spacing:.02em;
}

/* =====================================
   Lesson Points Box
===================================== */

.lesson-points{
  margin:2.2rem 0;
  padding:1.3rem 1.5rem;
  background:#f6f2e9;
  border-left:4px solid #8b7355;
  border-radius:8px;
}

.lesson-points h2{
  margin:0 0 .6rem;
  font-size:1.15rem;
  letter-spacing:.02em;
}

.lesson-points p{
  margin:.4rem 0;
  line-height:1.8;
}

.lesson-points ul,
.lesson-points ol{
  margin:.5rem 0 .5rem 1.3rem;
}

/*✦ 今日のポイント*/
.lesson-points li{
  margin:.3rem 0;
}

.lesson-points h2::before{
  content:"✦ ";
  color:#8b7355;
}

/* ==============================================
   06. Responsive
   ============================================== */
@media (max-width: 1280px) {
  .tea-class-archive .tea-class-sidebar,
  .tea-class-archive .tea-class-layout > aside,
  .tea-class-archive .tea-class-layout > .sidebar,
  .tea-class-archive .tea-class-layout > #secondary {
    flex: 0 0 320px;
    width: 320px;
    max-width: 320px;
  }
}

@media (max-width: 960px) {
  .tea-class-archive .tea-class-layout,
  .tea-lesson-single .tea-class-layout {
    display: block;
  }

  .tea-class-archive .tea-class-sidebar,
  .tea-class-archive .tea-class-layout > aside,
  .tea-class-archive .tea-class-layout > .sidebar,
  .tea-class-archive .tea-class-layout > #secondary,
  .tea-lesson-single .tea-class-sidebar,
  .tea-lesson-single .tea-class-sidebar aside,
  .tea-lesson-single .tea-class-sidebar .sidebar {
    width: 100%;
    max-width: none;
    margin-top: 32px;
    position: static;
  }
}

@media (max-width: 768px) {
  .tea-lesson-single {
    padding: 0 16px 32px;
  }

  .tea-lesson {
    max-width: 100%;
  }

  .lesson-nav {
    flex-direction: column;
  }
}