/* ===== 共通 ===== */
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 {
  min-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;
  }

  .btn {
    width: 100%;
    min-width: 100%;
    padding: 15px;
  }
}

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

@media (max-width: 576px) {
  .btn {
    font-size: 16px;
  }
}

/* ===== メインビジュアル ===== */
.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;
    }
  }
}

/* ===== こんなお悩みはございませんか？ ===== */
.worry-section {
  background: #f0f0f0;
  padding: 120px 0 0;
  text-align: center;

  .worry-board {
    position: relative;
    margin-top: 56px;
  }

  .worry-bubbles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 305px));
    gap: 45px 67px;
    align-items: start;
    justify-content: center;
  }

  .worry-bubble {
    display: block;
    width: 100%;
    max-width: 305px;
    height: auto;
  }

  .bubble-top-left {
    grid-column: 1;
    margin: 50px 0 0;
    margin-left: 35px;
  }

  .bubble-top-center {
    grid-column: 2;
    margin-top: -10px;
  }

  .bubble-top-right {
    grid-column: 3;
    margin: 50px 0 0;
    margin-right: 35px;
  }

  .bubble-bottom-left {
    margin: 0 0 40px;
    grid-column: 1;
  }

  .bubble-bottom-right {
    margin: 0 0 40px;
    grid-column: 3;
  }

  .worry-people {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 355px;
    margin: 0 auto;
    bottom: -35px;

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

  .worry-person {
    position: relative;
    width: 170px;
    height: 200px;

    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 88px;
      height: 88px;
      border: 5px solid #271d1d;
      border-radius: 50%;
      background: #fff;
      z-index: 2;
    }

    &::after {
      content: "";
      position: absolute;
      left: 50%;
      bottom: 0;
      transform: translateX(-50%);
      width: 156px;
      height: 126px;
      border: 5px solid #271d1d;
      border-radius: 44px 44px 28px 28px;
      background: #53a8e0;
    }

    span {
      position: absolute;
      left: 50%;
      bottom: 28px;
      width: 52px;
      height: 18px;
      border-radius: 12px;
      background: #fff;
      border: 5px solid #271d1d;
      transform: translateX(-50%) rotate(-24deg);
      z-index: 3;
    }
  }

  .worry-person-right {
    &::after {
      border-radius: 44px 44px 44px 28px;
      background: #7abbe6;
    }

    span {
      transform: translateX(-50%) rotate(78deg);
      bottom: 34px;
      width: 58px;
    }
  }
}

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

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

    .worry-board {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .worry-bubbles {
      grid-template-columns: repeat(2, minmax(0, 305px));
      gap: 20px;
    }

    .bubble-top-left {
      grid-column: 1 / -1;
      justify-self: center;
      margin-top: 0;
      transform: none;
    }

    .bubble-top-center,
    .bubble-top-right,
    .bubble-bottom-left,
    .bubble-bottom-right {
      grid-column: auto;
      margin-top: 0;
      transform: none;
    }

    .worry-bubble {
      width: 100%;
      max-width: 305px;
      justify-self: center;
    }

    .worry-people {
      position: static;
      left: auto;
      transform: none;
      bottom: auto;
      margin: 0 auto -30px;
    }
  }
}

@media (max-width: 768px) {
  .worry-section {
    .worry-board {
      margin-top: 40px;
    }

    .worry-people {
      width: 280px;
      bottom: -38px;
    }
  }
}

@media (max-width: 576px) {
  .worry-section {
    .worry-bubbles {
      grid-template-columns: minmax(0, 305px);
      gap: 16px;
    }

    .worry-bubble {
      width: 100%;
      max-width: 305px;
      margin: 0;
    }

    .worry-people {
      width: 224px;
      bottom: -32px;
    }
  }
}

/* ===== ひとつでも当てはまるなら ===== */
.pillars-section {
  padding: 80px 0 40px;

  .worry-message {
    margin: 0 auto 80px;
    color: var(--color-primary);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.6;
    padding: 0 20px;
    text-align: center;

    p {
      display: block;
      width: fit-content;
      margin: 0 auto;
    }
  }

  .approach-container {
    display: flex;
    flex-direction: column;
    gap: 80px;

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

        .repair-priority {
          display: grid;
          gap: 36px;

          .repair-priority-top {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            gap: 36px;
            align-items: center;
          }

          .repair-priority-main-image {
            img {
              width: 100%;
              height: 470px;
              max-width: none;
              border-radius: 20px;
              margin: 0;
              object-fit: cover;
            }
          }

          .repair-priority-copy {
            h3 {
              margin: 0 0 20px;
              font-size: 50px;
              font-weight: 700;
              line-height: 1.2;
              color: #fff;
              letter-spacing: 0.1px;

              span {
                color: var(--color-secondary);
              }
            }

            p {
              margin: 0;
              color: #fff;
              font-size: clamp(15px, 0.6vw + 12.8px, 18px);
              font-weight: normal;
              line-height: 1.5;
              letter-spacing: 0.1px;
            }

            ul {
              margin: 27px 0;

              li {
                color: #FFEA00;
                font-size: clamp(15px, 0.6vw + 12.8px, 18px);
                font-weight: 700;
                line-height: 1.5;
                font-size: 24px;
              }
            }
          }
        }
      }
    }
  }

}

@media (max-width: 1200px) {
  .pillars-section {
    .approach-container {
      .approach {
        .approach-box {
          .repair-priority {

            .repair-priority-copy {
              h3 {
                font-size: clamp(30px, 3.9vw, 48px);
              }
            }
          }
        }
      }
    }
  }
}

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

    .worry-message {
      margin: 0 auto 40px;
      font-size: 20px;
      line-height: 1.5;
    }

    .approach-container {
      .approach {
        .approach-box {
          .repair-priority {
            gap: 24px;

            .repair-priority-copy {
              h3 {
                font-size: 40px;
              }
            }

            .repair-priority-top {
              grid-template-columns: 1fr;
              gap: 24px;
            }

            .repair-priority-main-image {
              img {
                height: 300px;
                object-fit: cover;
              }
            }
          }
        }
      }
    }

  }
}

@media (max-width: 768px) {
  .pillars-section {
    .worry-message {
      font-size: 16px;
    }

    .approach-container {
      .approach {
        .approach-box {
          padding: 30px;
          gap: 40px;
        }
      }
    }
  }
}

@media (max-width: 576px) {
  .pillars-section {
    .worry-message {
      font-size: 15px;

      p {
        text-decoration-thickness: 3px;
      }
    }

    .approach-container {
      .approach {
        .approach-box {
          padding: 20px;

          .repair-priority {
            gap: 18px;

            .repair-priority-copy {
              h3 {
                font-size: 30px;
              }
            }
          }
        }
      }
    }
  }
}

/* ===== 反響を取り、成約につなげる ===== */
.conversion-section {
  padding: 100px 0;

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

  .conversion-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 85px 100px;
  }

  .conversion-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    min-height: 420px;
    isolation: isolate;

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

    &::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 8%, rgba(0, 0, 0, 0.48) 100%);
      z-index: 1;
    }

    .conversion-card-content {
      position: absolute;
      inset: auto 32px 32px;
      z-index: 2;
      color: #fff;

      h3 {
        margin: 0 0 20px;
        font-size: 30px;
        font-weight: 700;
        line-height: 1.5;
        letter-spacing: 0;
      }

      p {
        margin: 0;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.5;
      }
    }
  }
}

@media (max-width: 1200px) {
  .conversion-section {
    .conversion-grid {
      gap: 24px;
    }

    .conversion-card {
      min-height: 360px;

      .conversion-card-content {
        position: absolute;
        inset: auto 24px 24px;
        z-index: 2;
        color: #fff;

        h3 {
          font-size: 26px;
        }

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

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

    .conversion-card {
      min-height: 320px;

      .conversion-card-content {
        inset: auto 20px 20px;

        h3 {
          font-size: 18px;
          line-height: 1.28;
        }
      }
    }
  }
}

@media (max-width: 768px) {
  .conversion-section {
    padding: 60px 0;

    .conversion-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }

    .conversion-card {
      max-height: 300px;
      min-height: auto;
      height: 300px;

      img {}

      .conversion-card-content {
        h3 {
          font-size: 24px;
          line-height: 1.25;
          margin: 0 0 15px;
        }

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

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

    .conversion-card {
      min-height: 280px;
      border-radius: 16px;

      .conversion-card-content {
        inset: auto 16px 16px;

        h3 {
          font-size: 20px;
          line-height: 1.22;
        }
      }
    }
  }
}

/* ===== 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;

  .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;
      letter-spacing: 0;
      overflow: hidden;

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

      .group-text {
        font-size: 16px;
        font-weight: bold;
        line-height: 1.5;
        margin: 0;
      }

      .group-text-accent {
        display: block;
        margin: 10px 0 0;
        font-size: 24px;
        font-weight: bold;
        color: var(--color-primary);
        line-height: 1.5;
      }

      .group-images {
        display: flex;
        gap: 20px;
        justify-content: center;
        margin: 30px 0;
        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;
        }
      }

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

      .group-box {

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

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

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

      .group-box {

        h3 {
          font-size: 27px;
        }

        .group-text-accent {
          font-size: 20px;
        }
      }
    }
  }
}

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

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

        h3 {
          font-size: 25px;
        }

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