/* Main styles */

/* Common section styles */
.sectionContainer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem;

  @media (max-width: 375px) {
    padding: 6rem 1.5rem;
  }
}

.sectionTitle {
  font-size: 3.6rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;

  &::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #333;
    margin: 1.5rem auto 0;
  }

  @media (max-width: 768px) {
    font-size: 2.8rem;
  }
}

.sectionDescription {
  text-align: center;
  font-size: 1.8rem;
  max-width: 800px;
  margin: 0 auto 5rem;

  @media (max-width: 768px) {
    font-size: 1.6rem;
    margin-bottom: 4rem;
  }
}

/* Hero Section */
.heroSection {
  height: 100vh;
  min-height: 600px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../image/0.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  position: relative;

  .heroContent {
    max-width: 800px;
    padding: 0 2rem;
    z-index: 1;

    h2 {
      font-size: 5rem;
      margin-bottom: 2rem;
      letter-spacing: 0.1em;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);

      @media (max-width: 768px) {
        font-size: 3.6rem;
      }
    }

    p {
      font-size: 2rem;
      line-height: 1.6;
      text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);

      @media (max-width: 768px) {
        font-size: 1.8rem;
      }
    }
  }
}

/* About Section */
.aboutSection {
  background-color: #f9f9f9;

  .aboutContent {
    display: flex;
    flex-direction: column;
    gap: 5rem;
  }

  .companyInfo {
    table {
      border: 1px solid #ddd;
      
      th, td {
        padding: 1.5rem;
        border: 1px solid #ddd;
        
        @media (max-width: 768px) {
          padding: 1rem;
        }
      }

      th {
        width: 30%;
        background-color: #f2f2f2;
        text-align: left;
        font-weight: 600;
      }
    }
  }

  .philosophyContainer {
    .philosophy {
      padding: 3rem;
      background-color: #fff;
      border-radius: 8px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

      h3 {
        font-size: 2.4rem;
        margin-bottom: 2rem;
        text-align: center;
      }

      p {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;

        &:first-of-type {
          font-size: 2.2rem;
          font-weight: 600;
          text-align: center;
          margin-bottom: 2.5rem;
        }
      }
    }
  }
}

/* Services Section */
.servicesSection {
  background-color: #fff;

  .serviceCards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;

    @media (max-width: 1024px) {
      gap: 2rem;
    }

    @media (max-width: 768px) {
      grid-template-columns: 1fr;
      gap: 4rem;
    }
  }

  .serviceCard {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    &:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

    .cardInner {

      display: flex;
      flex-direction: column;
    
     img{
             height:100%;
      width: 100%;
    aspect-ratio: 4 / 3;

    }
    }
    figure {
      overflow: hidden;
      
      img {
        transition: transform 0.5s ease;
        width: 100%;
        height: auto;
      }
    }

    &:hover figure img {
      transform: scale(1.05);
    }

    h3 {
      font-size: 2rem;
      margin: 2rem 2rem 1rem;
    }

    p {
      margin: 0 2rem 2rem;
      flex-grow: 1;
    }

    .cardButton {
      display: inline-block;
      background-color: #333;
      color: #fff;
      padding: 1rem 2rem;
      margin: 0 2rem 2rem;
      border-radius: 4px;
      font-weight: 500;
      transition: background-color 0.3s ease;

      &:hover {
        background-color: #000;
      }
    }
  }

  /* Service card specific styles */
  #serviceCard1 {
    .cardButton {
      background-color: #000;
      &:hover {
        background-color: #000;
      }
    }
  }

  #serviceCard2 {
    .cardButton {
      background-color: #e8b700;
      &:hover {
        background-color: #d9a800;
      }
    }
  }

  #serviceCard3 {
    .cardButton {
      background-color: #65c9d7;
      &:hover {
        background-color: #50b9c7;
      }
    }
  }
}

/* Store Sections */
.storeSection {
  padding: 0;

  .storeContent {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
  }

  .storeInfo {
    margin-bottom: 5rem;

    .storeDescription {
      font-size: 1.8rem;
      line-height: 1.6;
      margin-bottom: 3rem;
    }

    .storeDetail {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 2rem;

      @media (max-width: 768px) {
        grid-template-columns: 1fr;
      }

      .detailItem {
        background-color: rgba(255, 255, 255, 0.1);
        padding: 2rem;
        border-radius: 8px;
        margin-bottom: 1rem;

        h4 {
          font-size: 2.0rem;
          margin-bottom: 1rem;
          display: flex;
          align-items: center;
          
          &::before {
            content: '';
            display: inline-block;
            width: 8px;
            height: 8px;
            margin-right: 1rem;
            border-radius: 50%;
          }
        }

        p {
          line-height: 1.5;
        }
      }
    }
  }

  .storeGallery {
    margin-bottom: 10rem;
    position: relative;
    overflow: hidden;

    h1 {
      font-size: 2.8rem;
      text-align: center;
      margin-bottom: 3rem;
    }

    .gallerySlideshow {
      position: relative;
      border-radius: 8px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      overflow: hidden;

      .swiper-slide {
        height: auto;
      }
    }

    .galleryItem {
      img {
        width: 100%;
         aspect-ratio: 1 / 1;
        height: auto;
        display: block;
        border-radius: 4px;
      }

     h2 {
       text-align: center;
       padding: 1rem;
       margin-top: 1rem;
       background-color: rgba(255, 255, 255, 0.1);
       border-radius: 4px;
     }
    }

    .slideshowButtons {
      .prev,
      .next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        background: rgba(0, 0, 0, 0.5);
        color: #fff;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        transition: background-color 0.3s ease;

        &:hover {
          background: rgba(0, 0, 0, 0.7);
        }
      }

      .prev {
        left: 20px;
      }

      .next {
        right: 20px;
      }
    }
  }


  
  .storeFeatures {

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;

    @media (max-width: 1024px) {
      gap: 1.5rem;
    }

    @media (max-width: 768px) {
      grid-template-columns: 1fr;
      gap: 2rem;
    }

    h1 {
      font-size: 2.8rem;
      text-align: center;
      margin-bottom: 1rem;
      grid-column: 1 / -1;
      justify-content: flex-end;
    }

    .featureItem {
      text-align: center;
      background: rgba(255, 255, 255, 0.05);
      padding: 3rem;
      border-radius: 12px;
      transition: transform 0.3s ease;

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

      figure {
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 2rem;
      }

      h4 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
      }

      p {
        line-height: 1.6;
      }
    img{
          aspect-ratio: 1 / 1;
        object-fit: cover
    }
    }
  }
}

/* Takeuma specific styles */
.takeuma {
  background-color: #111;
  color: #fff;

  &.heroSection {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../image/1.jpg');
  }

  .sectionTitle::after {
    background-color: #fff;
  }

  .storeDetail .detailItem h4::before {
    background-color: #fff;
  }
  
  .storeGallery h1,
  .storeFeatures h1 {
    color: #fff;
  }

  .featureItem {
    h4 {
      color: #fff;
    }
    
    p {
      color: #fff;
    }
  }
}

/* Terao specific styles */
.terao {
  background-color: #fbc93e;
  color: #fff;

  &.heroSection {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../image/2.jpg');
  }

  .sectionTitle::after {
    background-color: #e8b700;
  }

  .storeDetail .detailItem {
    h4 {
      color: #000;
      &::before {
        background-color: #e8b700;
      }
    }
    p {
      color: #000;
    }
  }

  .featureItem {
    h4 {
      color: #333;
    }
    
    p {
      color: #333;
    }
    
    .storeGallery h1,
    .storeFeatures h1 {
      color: #333;
    }
  }
}

/* Esthetic specific styles */
.esthetic {
  background-color: #00949c;
  color: #fff;

  &.heroSection {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../image/3.jpg');
  }

  .sectionTitle::after {
    background-color: #65c9d7;
  }

  .storeDetail .detailItem h4::before {
    background-color: #65c9d7;
  }
  
  .storeGallery h1,
  .storeFeatures h1 {
    color: #fff;
  }

  .featureItem {
    h4 {
      color: #fff;
    }
    
    p {
      color: #fff;
    }
  }
}

/* Recruit Section */
.recruitSection {
  background-color: #f9f9f9;
  
  .recruitContent {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
  }

  .recruitLead {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    font-weight: 600;
  }

  .recruitMessage {
    margin-bottom: 5rem;

    p {
      font-size: 1.8rem;
      line-height: 1.6;
      margin-bottom: 1.5rem;
    }
  }

  .recruitStores {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;

    .recruitStore {
      padding: 3rem 2rem;
      border-radius: 8px;
      
      h3 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
      }

      p {
        font-size: 1.6rem;
      }

      &.takeuma {
        background-color: #111;
        color: #fff;
      }

      &.terao {
        background-color: #fff8d9;
        color: #333;
      }

      &.esthetic {
        background-color: #f0f9fa;
        color: #333;
      }
    }
  }
}

/* Contact Section */
.contactSection {
  background-color: #fff;

  .contactContent {
    max-width: 800px;
    margin: 0 auto;
  }

  .contactInfo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;

    @media (max-width: 768px) {
      grid-template-columns: 1fr;
      gap: 3rem;
    }

    .contactItem {
      padding: 2rem;
      background-color: #f9f9f9;
      border-radius: 8px;
      
      h3 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid #ddd;
      }

      p {
        font-size: 1.6rem;
        line-height: 1.5;
        margin-bottom: 1rem;

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