/* きもの着付けコースのスタイル */
.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;
              > h4 {
                font-size: 1rem;
                color: #1b4b33;
                margin-bottom: 1rem;
              }

              .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;
              margin-bottom: 1.5rem;

              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;
                  }
                }
              }
            }

            .note {
              font-size: 0.9rem;
              color: #666;
              font-style: italic;
            }
          }
          > .courseList {
            display: grid;
            background-color: #fff;
            > .courseListCard {
              display: grid;
              gap: 16px 0;
              padding: 1rem;
              > .listTitle {
                text-align: center;
              }
              > .courseDetail {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                align-items: center;
                @media (width < 768px) {
                  grid-template-columns: 100%;
                  gap: 16px 0;
                }
                > hgroup {
                  display: grid;
                  gap: 8px 0;
                  text-align: center;
                }
                > .curriculum {
                  padding: 16px;
                  background-color: rgba(27, 75, 51, 0.05);
                }
              }
              &:first-of-type {
                /* 初級コース */
                background-color: #839b5c62;
              }
              &:nth-of-type(2) {
                /* 中級 */
                background-color: #76916441;
              }
              &:last-of-type {
                /* 上級 */
                background-color: #f2a0a14f;
              }
            }
          }
        }
      }
    }
  }
}
