/* 茶道コースのスタイル */
.courseHero {
  height: 60vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  
  figure {
    position: absolute;
    inset: 0;
    z-index: 0;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: brightness(0.7);
    }
  }

  .heroContent {
    color: #F3E9DC;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    z-index: 2;

    .heroTitle {
      font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
      margin-bottom: 1rem;
    }

    .heroSubtitle {
      font-size: clamp(1rem, 0.9rem + 0.5vw, 1.3rem);
      opacity: 0.9;
    }
  }
}

.courseIntro {
  padding: 5rem 1rem;
  background-color: #fff;

  .introContainer {
    max-width: 800px;
    margin-inline: auto;
    text-align: center;

    .introTitle {
      font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem);
      color: #1B4B33;
      margin-bottom: 2rem;
    }

    .introText {
      font-size: clamp(1rem, 0.9rem + 0.5vw, 1.1rem);
      line-height: 2;

      p {
        margin-bottom: 1.5rem;

        &:last-child {
          margin-bottom: 0;
        }
      }
    }
  }
}

.courseContent {
  padding: 5rem 1rem;
  background-color: #fff;

  .contentContainer {
    max-width: 1200px;
    margin-inline: auto;

    .courseSection {
      margin-bottom: 5rem;

      &:last-child {
        margin-bottom: 0;
      }

      .sectionTitle {
        font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem);
        color: #1B4B33;
        margin-bottom: 2rem;
        text-align: center;
      }

      .courseGrid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;

        .courseCard {
          background-color: #F3E9DC;
          border-radius: 8px;
          overflow: hidden;
          box-shadow: 0 4px 6px rgba(27, 75, 51, 0.1);

          figure {
            aspect-ratio: 16/9;

            img {
              width: 100%;
              height: 100%;
              object-fit: cover;
            }
          }

          .cardContent {
            padding: 2rem;

            .cardTitle {
              font-size: clamp(1.2rem, 1rem + 0.5vw, 1.4rem);
              color: #1B4B33;
              margin-bottom: 1rem;
            }

            .cardText {
              font-size: clamp(0.9rem, 0.8rem + 0.5vw, 1rem);
              line-height: 1.8;
              margin-bottom: 1.5rem;
            }

            .courseDetails {
              font-size: 0.9rem;
              margin-bottom: 1.5rem;
              
              .detail {
                display: flex;
                align-items: center;
                gap: 0.5rem;
                margin-bottom: 0.5rem;

                &:last-child {
                  margin-bottom: 0;
                }
              }
            }

            .curriculum {
              background-color: rgba(27, 75, 51, 0.05);
              padding: 1.5rem;
              border-radius: 4px;

              h4 {
                font-size: 1rem;
                color: #1B4B33;
                margin-bottom: 1rem;
              }

              ul {
                list-style: disc;
                margin-left: 1.5rem;
                
                li {
                  margin-bottom: 0.5rem;
                  font-size: 0.9rem;
                  line-height: 1.6;

                  &:last-child {
                    margin-bottom: 0;
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}