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

@media (max-width: 768px) {

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

@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 {
    .approach-card {
      background: var(--color-primary);
      border-radius: 30px;
      padding: 36px 40px 68px;
    }

    .approach-card-top {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 36px;
      align-items: center;
      margin-bottom: 66px;
    }

    .approach-card-image {
      img {
        display: block;
        width: 100%;
        height: 305px;
        border-radius: 20px;
        object-fit: cover;
      }
    }

    .approach-card-copy {
      color: #fff;

      h3 {
        margin: 0 0 24px;
        font-size: 50px;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: 0.01em;
      }

      .approach-accent {
        color: var(--color-secondary);
      }

      .approach-card-lead {
        margin: 0;
        color: #fff;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.7;
      }
    }

    .approach-card-bottom {
      text-align: center;
      color: #fff;

      p {
        margin: 0;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.7;
      }

      span {
        color: var(--color-yellow);
        font-size: 24px;
      }
    }
  }

}

@media (max-width: 1200px) {
  .pillars-section {
    .approach-container {
      .approach-card {
        padding: 35px;
      }

      .approach-card-top {
        gap: 24px;
        margin-bottom: 44px;
      }

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

        .approach-card-lead {
          font-size: 17px;
        }
      }

      .approach-card-bottom {
        p {
          font-size: 17px;
        }

        span {
          font-size: 22px;
        }
      }
    }
  }
}

@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-card {
        padding: 35px;
      }

      .approach-card-top {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
      }

      .approach-card-image {
        img {
          height: 240px;
        }
      }

      .approach-card-copy {
        h3 {
          font-size: 40px;
          margin-bottom: 12px;
        }

        .approach-card-lead {
          font-size: 16px;
        }
      }

      .approach-card-bottom {
        p {
          font-size: 16px;
          line-height: 1.6;
        }

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

  }
}

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

    .approach-container {
      .approach-card {
        padding: 30px;
        border-radius: 24px;
      }

      .approach-card-top {
        gap: 16px;
        margin-bottom: 16px;
      }

      .approach-card-image {
        img {
          height: 240px;
          border-radius: 16px;
        }
      }

      .approach-card-copy {
        h3 {
          font-size: 30px;
        }

        .approach-card-lead {
          font-size: 14px;
        }
      }

      .approach-card-bottom {
        p {
          font-size: 14px;
          line-height: 1.7;
        }

        span {
          font-size: 17px;
	color: #FFEB3B;
        }
      }
    }
  }
}

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

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

    .approach-container {
      .approach-card {
        padding: 20px;
        border-radius: 20px;
      }

      .approach-card-top {
        gap: 14px;
        margin-bottom: 12px;
      }

      .approach-card-image {
        img {
          height: 168px;
          border-radius: 14px;
        }
      }

      .approach-card-copy {
        h3 {
          font-size: 6vw;
        }

        .approach-card-lead {
          font-size: 3.5vw;
        }
      }

      .approach-card-bottom {
        p {
          font-size: 3.5vw;
          line-height: 1.72;
        }

        span {
          font-size: 4vw;
        }
      }
    }
  }
}

/* ===== これが、私たちの管理です。 ===== */
.conversion-section {
  padding: 100px 0;

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

  .conversion-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 52px 45px;
  }

  .conversion-grid>.conversion-card:nth-child(3n + 1):nth-last-child(1) {
    grid-column: 2;
  }

  .conversion-card {
    --card-pad-y: 26px;
    --card-pad-x: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    min-height: 0;
    aspect-ratio: 37 / 55;
    isolation: isolate;

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

    &::before {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.4);
      z-index: 1;
    }

    .conversion-card-label {
      position: absolute;
      top: var(--card-pad-y);
      left: var(--card-pad-x);
      z-index: 2;
      padding: 5px 8px;
      border: 1px solid #fff;
      color: #fff;
      font-size: 16px;
      font-weight: 400;
      line-height: 1.5;
      letter-spacing: 0;
      white-space: nowrap;
      margin: 0;
    }

    .conversion-card-content {
      position: absolute;
      inset: var(--card-pad-y) var(--card-pad-x);
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      z-index: 2;
      color: #fff;
      letter-spacing: 0;

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

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

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

    .conversion-grid {
      gap: 24px;
    }

    .conversion-card {
      .conversion-card-content {
        z-index: 2;
        color: #fff;

        h3 {
          font-size: 24px;
        }

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

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

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

    .conversion-grid>.conversion-card:nth-child(3n + 1):nth-last-child(1) {
      grid-column: auto;
    }

    .conversion-card {
      max-height: 400px;
      min-height: auto;
      height: 400px;
      aspect-ratio: auto;

      .conversion-card-content {
        h3 {
          font-size: 24px;
        }

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

@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;
      aspect-ratio: auto;

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

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

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

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

      .conversion-card-content {
        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;
        }
      }
    }
  }
}

/* ===== ナカミチの豊富な強み ===== */
.pillars-section {
  padding: 80px 0 90px;

  .pillars-card {
    background: var(--color-primary);
    border-radius: 30px;
    padding: 58px 44px 55px 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 36px;
    align-items: center;
  }

  .pillars-image {
    img {
      width: 100%;
      border-radius: 20px;
      object-fit: cover;
      display: block;
    }
  }

  .pillars-content {
    color: #fff;
    letter-spacing: 0;

    h3 {
      margin: 0;
      font-size: 35px;
      font-weight: 700;
      line-height: 1.4;

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

    .pillars-lead {
      margin: 35px 0 30px;
      font-size: 20px;
      font-weight: 700;
      line-height: 1.7;
    }

    .pillars-body {
      font-size: 18px;
      line-height: 1.7;
    }
  }

  .pillars-note {
    margin: 75px 0 0;
    color: #000;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.7;
    text-align: center;
  }
}

@media (max-width: 1200px) {
  .pillars-section {
    .pillars-content {
      h3 {
        font-size: clamp(28px, 2.9vw, 33px);
      }

      .pillars-lead {
        font-size: 18px;
      }

      .pillars-body {
        font-size: 16px;
      }
    }
  }
}

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

    .pillars-card {
      grid-template-columns: 1fr;
      gap: 26px;
    }

    .pillars-image {
      img {
        height: 350px;
      }
    }

    .pillars-content {
      h3 {
        font-size: 34px;
      }

      .pillars-lead {
        margin-top: 18px;
      }

      .pillars-body {
        margin-top: 20px;
      }
    }

    .pillars-note {
      margin: 40px 0 0;
      font-size: 20px;
    }
  }
}

@media (max-width: 768px) {
  .pillars-section {
    .pillars-card {
      border-radius: 24px;
      padding: 22px;
    }

    .pillars-image {
      img {
        height: 220px;
      }
    }

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

      .pillars-lead {
        font-size: 16px;
      }

      .pillars-body {
        font-size: 15px;
      }
    }

    .pillars-note {
      margin: 32px 0 0;
      font-size: 16px;
      line-height: 1.8;
    }
  }
}

@media (max-width: 576px) {
  .pillars-section {
    .pillars-card {
      border-radius: 20px;
      padding: 16px;
      gap: 18px;
    }

    .pillars-content {
      h3 {
        font-size: 24px;
      }

      .pillars-lead {
        margin-top: 14px;
        font-size: 14px;
      }

      .pillars-body {
        margin-top: 16px;
        font-size: 13px;
        line-height: 1.7;
      }
    }

    .pillars-note {
      font-size: 15px;
    }
  }
}

/* ===== 空室診断サービス ===== */
.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;
            }
          }
        }
      }
    }
  }
}