/* ===== 共通 ===== */
body {
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}

main.page-container {
  margin: 0px auto 0;
  padding: 50px 0 0;
}

.progress-bar {
  width: 100%;
  max-width: 100%;
  height: 2px;
  background: #cacaca;
  margin: 0 auto;
  position: relative;

  &.short {
    margin-bottom: 30px;
  }

  .progress-bar-fill {
    width: 35%;
    height: 100%;
    background: var(--color-secondary);
  }

  .progress-bar-fill-center {
    width: 35%;
    height: 100%;
    background: var(--color-secondary);
    margin: 0 auto;
  }
}

.highlight-orange {
  color: var(--color-secondary);
}

.highlight-text {
  color: var(--color-secondary);
  font-weight: bold;
}

.btn {
  width: 350px;
  line-height: normal;
  display: inline-block;
  padding: 17px 40px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.3s;
  cursor: pointer;

  &:hover {
    opacity: 0.8;
  }

  &.btn-white {
    background: white;
    color: var(--color-primary);
  }

  &.btn-blue {
    background: var(--color-primary);
    color: white;
    margin-top: 10px;
  }
}

@media (max-width: 1200px) {}

@media (max-width: 992px) {
  .container {
    max-width: 100%;
  }

  main.page-container {
    padding: 0;
  }
}

@media (max-width: 768px) {}

@media (max-width: 576px) {
  .btn {
    padding: 15px 30px;
    font-size: 18px;
  }
}

/* ===== メインビジュアル ===== */
.hero {
  position: relative;
  padding: 90px 0 130px;
  background: white;

  .hero-content {
    position: relative;
    z-index: 1;
  }

  .main-title {
    font-size: 70px;
    font-weight: bold;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 20px;
  }

  .subtitle {
    display: block;
    font-size: 30px;
    color: var(--color-secondary);
    margin-top: 15px;
  }
}

@media (max-width: 1200px) {}

@media (max-width: 992px) {
  .hero {
    padding: 80px 0;

    .main-title {
      font-size: 50px;
    }

    .subtitle {
      font-size: 24px;
    }
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 50px 0;

    .main-title {
      font-size: 40px;
    }

    .subtitle {
      font-size: 20px;
    }
  }
}

@media (max-width: 576px) {
  .hero {
    .main-title {
      font-size: 32px;
    }

    .subtitle {
      font-size: 18px;
    }
  }
}

/* ===== ブルーセクション ===== */
.blue-section {
  position: relative;
  background: var(--color-primary);
  padding: 100px 0 30px;

  .watermark {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: min(300px, calc((100vw - 160px) / 5));
    font-weight: bold;
    color: rgba(255, 255, 255, 0.1);
    font-family: 'Roboto', sans-serif;
    line-height: 0.74;
    white-space: nowrap;
    pointer-events: none;
  }

  .blue-content {
    display: flex;
    position: relative;
    z-index: 1;
    gap: 20px;
  }

  .blue-text {
    flex: 1;
    color: white;

    h2 {
      font-size: 50px;
      font-weight: bold;
      line-height: 1.4;
      margin-bottom: 30px;
      white-space: nowrap;
    }

    p {
      font-size: 16px;
      font-weight: bold;
      line-height: 1.7;
      max-width: 500px;
      letter-spacing: .1px;
    }
  }

  .blue-image {
    flex: 0 0 534px;
    border-radius: 20px;
    box-shadow: 8px 8px 8px 6px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    margin: 40px 0 -80px;

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

@media (max-width: 1200px) {
  .blue-section {
    .blue-text {

      h2 {
        font-size: 40px;
      }

      p {
        max-width: 40vw;
      }
    }

    .blue-image {
      flex: auto;
    }

    .watermark {
      font-size: 17vw;
      left: 50px;
    }
  }
}

@media (max-width: 992px) {
  .blue-section {
    padding: 0 0 50px;

    .blue-content {
      flex-direction: column-reverse;
      gap: 40px;
    }

    .blue-image {
      flex: 0 0 auto;
      width: 100%;
      max-width: 100%;
      aspect-ratio: 16 / 9;
      margin: -30px auto 0;

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

    .blue-text {
      h2 {
        font-size: 40px;
        white-space: wrap;
      }

      p {
        max-width: 100%;
      }
    }

    .watermark {
            bottom: 20px;
            right: 0;
            font-size: clamp(28px, 20vw, 16vw);
            width: 98%;
            overflow: hidden;
            line-height: 1em;
            left: 2%;
    }
  }
}

@media (max-width: 768px) {
  .blue-section {
    .blue-text {
      h2 {
        font-size: 32px;
      }

      p {
        font-size: 14px;
      }
    }
  }
}

@media (max-width: 576px) {
  .blue-section {
    .blue-text {
      h2 {
        font-size: 28px;
      }
    }

    .watermark {
      font-size: 16vw;
    }
  }
}

/* ===== 空室の理由 ===== */
.reason-section {
  background: #f0f0f0;
  padding: 180px 0 130px;
  text-align: center;
}

@media (max-width: 1200px) {}

@media (max-width: 992px) {
  .reason-section {
    padding: 80px 0;
  }
}

@media (max-width: 768px) {}

@media (max-width: 576px) {}

/* ===== 3本の柱 ===== */
.pillars-section {
  padding: 80px 0;

  .pillars-title {
    color: var(--color-primary);
  }

  .approach-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding-top: 30px;
  }

  .approach {

    &.approach-01,
    &.approach-02 {
      img {
        aspect-ratio: 237 / 294;
      }
    }

    &.approach-03 {
      img {
        aspect-ratio: 1 / 1;
      }
    }

    .approach-header {
      margin-bottom: 40px;

      .approach-label {
        display: inline-block;
        font-size: 20px;
        font-weight: bold;
        color: var(--color-secondary);
        font-family: 'Roboto', sans-serif;
        margin-bottom: 10px;
      }

      .approach-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: center;
        margin-bottom: 40px;

        h3 {
          font-size: 40px;
          font-weight: bold;
          color: #2d2d2d;
          line-height: 1.2;
        }

        .approach-description {
          font-size: 16px;
          font-weight: bold;
          line-height: 1.7;
          grid-column: 2;
          letter-spacing: 0;
          margin: 0;
        }
      }
    }

    .approach-box {
      background: var(--color-primary);
      border-radius: 30px;
      padding: 58px;
      gap: 60px;
      display: grid;

      .approach-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5%;
      }

      .approach-grid-4 {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        margin: 0;
      }

      .approach-grid-2 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 360px));
        gap: 30px;
        justify-content: center;

        .approach-item {
          width: 100%;
        }
      }

      .approach-item {
        text-align: center;
        --slide-left-duration: 0.8s;
        --fade-left-duration: 0.8s;
        --fade-left-opacity-duration: 0.8s;

        img {
          width: 100%;
          border-radius: 20px;
          margin-bottom: 20px;
          object-fit: cover;
          max-width: 320px;
        }

        p {
          font-size: 20px;
          font-weight: bold;
          color: white;
          line-height: 1.2;
          margin: 0;
          letter-spacing: normal;
        }
      }

      .btn {
        display: block;
        margin: 0 auto;
      }
    }
  }
}

@media (max-width: 1200px) {
  .pillars-section {

    .approach-container {
      padding-top: 0;
    }
  }
}

@media (max-width: 992px) {
  .pillars-section {
    padding: 80px 0 40px;

    .approach {
      .approach-header {
        .approach-content {
          grid-template-columns: 1fr;

          h3 {
            font-size: 32px;
          }

          .approach-description {
            grid-column: 1;
          }
        }
      }

      .approach-box {
        .approach-grid {
          grid-template-columns: repeat(2, 1fr);
          gap: 40px;
        }

        .approach-grid-4 {
          grid-template-columns: repeat(2, 2fr);
        }
      }
    }
  }
}

@media (max-width: 768px) {
  .pillars-section {

    .approach {
      .approach-header {
        .approach-content {
          h3 {
            font-size: 28px;
          }
        }
      }

      .approach-box {
        padding: 40px 20px;
        gap: 40px;

        .approach-grid,
        .approach-grid-2 {
          grid-template-columns: 1fr;
          gap: 40px;
        }

        .approach-grid-4 {
          grid-template-columns: repeat(2, 1fr);
          gap: 20px;

          .approach-item {
            img {
              height: 180px;
            }
          }
        }

        .btn {
          width: 100%;
          max-width: 350px;
        }

        .approach-item {
          img {
            max-width: 100%;
            height: 230px;
          }
        }
      }
    }
  }
}

@media (max-width: 576px) {
  .pillars-section {

    .approach {
      .approach-header {
        .approach-label {
          font-size: 16px;
        }

        .approach-content {
          h3 {
            font-size: 22px;
          }

          .approach-description {
            font-size: 14px;
          }
        }
      }

      .approach-box {
        .approach-item {
          p {
            font-size: 16px;
          }
        }
      }
    }
  }
}

/* ===== Before/After 事例 ===== */
.case-section {
  background: white;
  padding: 80px 0;
  text-align: center;

  .case-title {
    color: var(--color-primary);
  }

  .case-container {
    max-width: 1600px;
  }

  .case-grid {
    max-width: 1600px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin: 60px auto;

    .case-item {
      text-align: left;
      position: relative;

      img {
        width: 100%;
        border-radius: 20px;
        margin-bottom: 20px;
      }

      h3 {
        font-size: 24px;
        font-weight: bold;
        color: var(--color-primary);
        margin: 13px 0 10px;
        line-height: 1.2;
      }

      p {
        font-size: 16px;
        line-height: 1.7;
      }

      .case-badge {
        background: var(--color-secondary);
        color: white;
        padding: 7px 7px 5px;
        border-radius: 5px;
        font-size: 20px;
        font-weight: bold;
        font-family: 'Roboto', sans-serif;
        display: inline-block;
        line-height: normal;
      }
    }
  }
}

@media (max-width: 1200px) {
  .case-section {
    .case-grid {
      .case-item {
        h3 {
          font-size: 23px;
        }

        p {
          font-size: 15px;
        }
      }
    }
  }
}

@media (max-width: 992px) {
  .case-section {
    .case-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      margin: 50px auto 30px;
      gap: 30px;

      .case-item {
        img {
          height: 230px;
          object-fit: cover;
        }
      }
    }

  }
}

@media (max-width: 768px) {
  .case-section {
    .case-grid {
      display: flex;
      gap: 16px;
      margin: 40px 0 24px;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 8px;

      .case-item {
        flex: 0 0 80%;
        scroll-snap-align: start;
      }
    }
  }
}

@media (max-width: 576px) {
  .case-section {

    .case-grid {
      .case-item {
        .case-badge {
          font-size: 16px;
        }

        h3 {
          font-size: 20px;
        }
      }
    }
  }
}

/* ===== グループ力 × 地域密着 ===== */
.group-section {
  background: var(--color-primary);
  padding: 100px 0 200px;

  .group-title,
  .group-subtitle {
    color: white;
  }

  .group-box-container {
    display: flex;
    flex-direction: column;
    gap: 100px;
    padding-top: 30px;

    .group-box {
      background: white;
      border-radius: 30px;
      padding: 60px 30px;
      text-align: center;
      overflow: hidden;

      h3 {
        font-size: 40px;
        font-weight: bold;
        color: black;
        margin-bottom: 30px;
      }

      .group-text {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 40px;
      }

      .group-images {
        display: flex;
        gap: 20px;
        justify-content: center;
        margin-bottom: 40px;
        padding: 20px 0;

        img {
          flex: 0 0 auto;
          height: 228px;
          border-radius: 20px;
          object-fit: cover;
        }

        &.is-slider {
          justify-content: flex-start;
          gap: 20px;
          width: 100%;
          padding: 20px 0;
          margin-bottom: 24px;
        }
      }

      .group-images-swiper {
        width: 100%;
        overflow: hidden;
      }

      .group-images-pagination {
        margin: -16px 0 24px;
      }

      .group-images-pagination .swiper-pagination-bullet {
        background: #cfcfcf;
        opacity: 1;
      }

      .group-images-pagination .swiper-pagination-bullet-active {
        background: var(--color-primary);
      }

      .link-with-icon {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: var(--color-primary);
        font-size: 20px;
        font-weight: bold;
        text-decoration: none;
        transition: opacity 0.3s;

        &:hover {
          opacity: 0.7;
        }
      }
    }
  }
}

@media (max-width: 1200px) {
  .group-section {
    .group-box-container {
      padding-top: 0;
    }
  }
}

@media (max-width: 992px) {
  .group-section {
    padding: 80px 0;

    .group-box-container {
      gap: 40px;
    }
  }
}

@media (max-width: 768px) {
  .group-section {

    .group-box-container {
      .group-box {
        padding: 40px 20px;

        h3 {
          font-size: 28px;
        }

        .group-images {
          &:not(.is-slider) {
            flex-direction: column;
            align-items: center;
          }

          img {
            width: 100%;
            max-width: 445px;
          }
        }
      }
    }
  }
}

@media (max-width: 576px) {
  .group-section {

    .group-box-container {
      .group-box {
        h3 {
          font-size: 24px;
        }
      }
    }
  }
}

/* ===== 空室診断サービス ===== */
.diagnosis-section {
  background: #f0f0f0;
  padding: 80px 0;

  .diagnosis-content {
    display: grid;
    grid-template-columns: 470px 1fr;
    gap: 60px;
    align-items: center;

    .diagnosis-image {
      width: 100%;
      overflow: hidden;

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

    .diagnosis-text {
      h2 {
        font-size: 50px;
        font-weight: bold;
        color: var(--color-primary);
        margin-bottom: 20px;
      }

      .diagnosis-details {
        padding-left: 20px;

        .intro-text {
          font-size: 18px;
          font-weight: bold;
          margin-bottom: 20px;
        }

        .diagnosis-list {
          list-style: disc;
          padding-left: 30px;
          margin: 40px 0;

          li {
            font-size: 24px;
            font-weight: bold;
            line-height: 1.7;
          }
        }
      }
    }
  }
}

@media (max-width: 1200px) {}

@media (max-width: 992px) {
  .diagnosis-section {
    .diagnosis-content {
      grid-template-columns: 1fr;
      gap: 30px;

      .diagnosis-image {
        height: 230px;
        margin: 0 auto;
      }

      .diagnosis-text {
        .diagnosis-details {
          padding-left: 0;
        }
      }
    }
  }
}

@media (max-width: 768px) {
  .diagnosis-section {
    .diagnosis-content {
      .diagnosis-text {
        h2 {
          font-size: 30px;
        }

        .diagnosis-details {
          .diagnosis-list {
            li {
              font-size: 20px;
            }
          }
        }
      }
    }
  }
}

@media (max-width: 576px) {
  .diagnosis-section {
    .diagnosis-content {
      .diagnosis-text {
        h2 {
          font-size: 25px;
        }

        .diagnosis-details {
          .diagnosis-list {
            li {
              font-size: 18px;
            }
          }
        }
      }
    }
  }
}