/* サービス詳細ページの共通スタイル */
.heroSection {
  position: relative;
  height: 100dvh;
  overflow: hidden;

  figure {
    height: 100%;

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

  .heroContent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--color-black);
    width: 90%;
    max-width: 800px;
    background-color: rgba(251, 251, 251, 0.85);
    padding: 2rem;
    border-radius: 8px;

    h1 {
      font-size: var(--font-h1);
      margin-bottom: 1rem;
      font-weight: 700;
    }

    p {
      font-size: var(--font-base);
      opacity: 0.9;
    }
    @media (width < 768px) {
      padding: 2rem 0;
    }
  }
}

.serviceDetailSection {
  padding: 6rem 0;
  background-color: var(--color-white);

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

    .mainImage {
      margin-bottom: 4rem;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

      img {
        width: 100%;
        height: auto;
      }
    }

    .description {
      text-align: center;
      margin-bottom: 4rem;

      h2 {
        font-size: var(--font-h2);
        color: var(--color-primary);
        margin-bottom: 1.5rem;
        > span {
          display: inline-block;
        }
      }

      p {
        color: #666;
        line-height: 1.8;
        margin-bottom: 1rem;

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

    .features {
      margin-bottom: 4rem;

      h3 {
        font-size: 1.5rem;
        color: var(--color-primary);
        margin-bottom: 2rem;
        text-align: center;
      }

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

      .featureCard {
        background-color: #f8f9fa;
        padding: 2rem;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);

        h4 {
          font-size: 1.25rem;
          color: var(--color-black);
          margin-bottom: 1rem;
        }

        p {
          color: #666;
          line-height: 1.6;
        }
      }
    }

    .pricing {
      margin-bottom: 4rem;

      h3 {
        font-size: 1.5rem;
        color: var(--color-primary);
        margin-bottom: 2rem;
        text-align: center;
      }

      > p {
        font-size: clamp(1rem, 0.95rem + 0.25vw, 1.25rem);
        font-weight: bold;
        text-align: center;
        margin-bottom: 2rem;
        color: #333;
      }

      .pricingGrid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        max-width: 1200px;
        margin-inline: auto;
        justify-content: center;

        @media (width >= 768px) {
          flex-direction: row;
          align-items: stretch;
        }
      }

      .pricingCard {
        display: flex;
        flex-direction: column;
        background-color: var(--color-white);
        border-radius: 8px;
        overflow: hidden;
        transition: transform 0.3s ease;
        flex: 1;
        max-width: 400px;
        margin-inline: auto;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        position: relative;

        @media (width < 768px) {
          display: grid;
          width: 100%;
        }

        &:nth-child(1) {
          border-top: 4px solid #00bcd4;
        }

        &:nth-child(2) {
          border-top: 4px solid #e91e63;
        }

        &:nth-child(3) {
          border-top: 4px solid #ffc107;
        }

        &:hover {
          transform: translateY(-4px);
        }

        .pricingCardHeader {
          padding: 2rem;
          text-align: center;
          background-color: #f8f9fa;
          display: flex;
          flex-direction: column;
          justify-content: center;
          align-items: center;
          gap: 0.5rem;

          @media (width < 768px) {
            width: 100%;
            padding: 1.5rem 0;
          }

          h4 {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--color-black);
            margin: 0;
          }

          .planName {
            font-size: 0.875rem;
            opacity: 0.9;
            color: #666;
          }

          .price {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--color-primary);
            line-height: 1.2;

            .period {
              font-size: 1rem;
              opacity: 0.8;
              margin-left: 0.25rem;
            }
          }
        }

        .content {
          padding: 2rem;
          background-color: #f8f9fa;
          flex: 1;

          ul {
            list-style: none;
            margin: 0;
            padding: 0;

            li {
              position: relative;
              padding-left: 1.5rem;
              margin-bottom: 1rem;
              color: #666;

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

              &::before {
                content: "✓";
                position: absolute;
                left: 0;
                color: var(--color-primary);
              }
            }
          }
        }
      }
    }

    .cta {
      text-align: center;
      padding: 3rem;
      background-color: #f8f9fa;
      border-radius: 8px;

      h3 {
        font-size: 1.5rem;
        color: var(--color-primary);
        margin-bottom: 1rem;
      }

      p {
        color: #666;
        margin-bottom: 2rem;
      }

      .button {
        display: inline-block;
        padding: 1rem 3rem;
        background-color: var(--color-primary);
        color: var(--color-white);
        border-radius: 50px;
        text-decoration: none;
        transition: all 0.3s ease;

        &:hover {
          background-color: #004d86;
          transform: translateY(-2px);
          box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }
      }
      @media (width < 768px) {
        padding: 3rem 0;
      }
    }
  }
}
