:root {
  --orange: #FF9D0D;
}

@media (pointer: coarse) {
  a[href] {
    opacity: 1 !important;
  }
}
#content {
  .sp-br {
    @media (width >= 960px) {
      display: none;
    }
  }
  .pc-br {
    @media (width < 960px) {
      display: none;

    }
  }
  .part-intro {
    display: flex;
    align-items: center;
    height: 675px;
    background-image: image-set(
      url('../../img/seikatsuchishin2026/part3/part3_mv.jpg') 1x,
      url('../../img/seikatsuchishin2026/part3/part3_mv@2x.jpg') 2x
    );
    background-position: center;
    color: #fff;
    @media (width < 960px) {
      height: auto;
      background-image: image-set(
        url('../../img/seikatsuchishin2026/part3/part3_mv-sp.jpg') 1x,
        url('../../img/seikatsuchishin2026/part3/part3_mv-sp@2x.jpg') 2x
      );
      background-color: #81807E;
      background-position: top center;
    }
    .intro-text {
      width: 100%;
      max-width: 1002px;
      margin: -4px auto 0;
      padding-left: 66px;
      @media (width < 960px) {
        max-width: 650px;
        padding: 39px 25px 40px;
      }
      h1 {
        margin-bottom: 21px;
        font-size: 36px;
        letter-spacing: 0.11em;
        line-height: 1.5;
        @media (width < 960px) {
          margin-bottom: 36px;
          font-size: 26.87px;
        }
      }
      p {
        font-size: 13px;
        letter-spacing: 0.08em;
        line-height: 2.15;
        @media (width < 960px) {
          text-align: justify;
          line-height: 2;
        }
      }
      .part-num {
        width: 132px;
        margin: 0 0 20px;
        @media (width < 960px) {
          width: 54px;
          margin: 0 0 39px 7px;
        }
        img {
          width: 100%;
          vertical-align: bottom;
        }
      }
    }
  }
  #anchor-links {
    padding: 41px 25px 72px;
    background: linear-gradient(180deg, #FFFAF2 0%, #FFDBA5 100%) ;
    @media (width < 960px) {
      padding: 25px 14px 45px 15px;
    }
    > p {
      margin-bottom: 41px;
      color: var(--orange);
      font-size: 20.7px;
      font-family: var(--font-yugothic-e);
      text-align: center;
      letter-spacing: 0.08em;
      @media (width < 960px) {
        margin-bottom: 23px;
        font-size: 15px;
        line-height: 1.8;
      }
    }
    a {
      display: flex;
      gap: 13px;
      max-width: 727px;
      height: 187px;
      margin: 0 auto;
      @media (width < 960px) {
        max-width: 400px;
        height: 169px;
        gap: 0;
      }
      +a {
        margin-top: 23px;
        @media (width < 960px) {
          margin-top: 13px;
        }
      }
    }
    .part2-content {
      width: 158px;
      padding: 10px 16px 11px 20px;
      border-radius: 8px;
      background: var(--orange);
      color: #fff;
      @media (width < 960px) {
        width: 110px;
        padding: 11px 11px 0px 16px;
        border-radius: 5px 0 0 5px;
      }
      p {
        display: inline-block;
        margin-bottom: 8px;
        padding: 1px 3px 0px 4px;
        border: 1px solid #fff;
        font-size: 9.1px;
        font-family: var(--font-yugothic-e);
        line-height: 1.6;
        @media (width < 960px) {
          margin-bottom: 0;
          padding: 0.5px 3px 0px 2.5px;
          font-size: 9px;
          line-height: 1.5;
        }
        span {
          margin-left: 2px;
        }
      }
      h2 {
        font-size: 18px;
        line-height: 1.5;
        @media (width < 960px) {
          margin-top: -1px;
          font-size: 12px;
        }
        span {
          display: inline-block;
          padding: 1px 1px 2px 2px;
          background: #fff;
          -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
          color: #000;
          line-height: 1;
          @media (width < 960px) {
            padding: 2px 1px 2px 2px;
          }
        }
      }
      > div {
        width: 48.89px;
        margin: 7px auto 0;
        @media (width <= 800px) {
          width: 81px;
          margin: 14px auto 0;
        }
        img {
          width: 100%;
          height: auto;
          vertical-align: bottom;
        }
      }
    }
    .part3-content {
      display: flex;
      flex:1;
      justify-content: space-between;
      padding: 19px 51px 0 31px;
      border-radius: 8px;
      background: #fff;
      @media (width < 960px) {
        padding: 19px 0px 0 20px;
        position: relative;
        border-radius: 0 5px 5px 0;
      }
      .nav-title {
        p {
          margin-bottom: 20px;
          color: var(--orange);
          font-size: 13px;
          font-family: var(--font-yugothic-e);
          letter-spacing: 0.08em;
          @media (width < 960px) {
            margin-bottom: 6px;
            font-size: 10px;
          }
        }
        h2 {
          font-size: 27px;
          line-height: 1.5;
          @media (width < 960px) {
            font-size: 20px;
            line-height: 1.6;
          }
        }
      }
      .nav-arrow {
        margin-top: 53px;
        @media (width < 960px) {
          position: absolute;
          right: 15px;
          bottom: 14px;
          width: 22px;
          height: 22px;
          margin: 0;
        }
      }
      svg {
        @media (width < 960px) {
          width: 22px;
          height: 22px;
        }
      }
    }
  }



  #desire-01,
  #desire-02,
  #desire-03 {
    @media (width <= 800px) {
      scroll-margin-top: 103px;
    }
  }
  .part-section {
    .heading {
      position: relative;
      padding: 52px 25px 58px;
      text-align: center;
      @media (width < 960px) {
        padding: 74px 24px 58px;
      }
      .desire {
        position: absolute;
        top: 23px;
        left: 28px;
        display: flex;
        gap: 11px;
        @media (width < 960px) {
          top: 20px;
          left: 15px;
          gap: 8px;
        }
        p {
          font-size: 12px;
          letter-spacing: 0.08em;
          line-height: 1.5;
          @media (width < 960px) {
            margin-top: -3px;
            font-size: 10px;
          }
        }
        div {
          width: 62.31px;
          @media (width < 960px) {
            width: 51px;
          }
          img {
            width: 100%;
            height: auto;
            vertical-align: bottom;
          }
        }
      }
      span {
        padding-bottom: 13px;
        border-bottom: 3px solid var(--orange);
        color: var(--orange);
        font-size: 18px;
        font-family: var(--font-yugothic-e);
        line-height: 1.8;
        @media (width < 960px) {
          padding-bottom: 9px;
          border-bottom: 2px solid var(--orange);
          font-size: 14px;
        }
      }
      h1 {
        margin-top: 38px;
        font-size: 48px;
        line-height: 1.5;
        @media (width < 960px) {
          margin-top: 21px;
          font-size: 33px;
          letter-spacing: 0.07em;
        }
      }

    }
    .content {
      padding: 50px 25px 69px;
      background: linear-gradient(180deg, #FFF8E9 0%, #FFE0BD 100%);
      @media (width < 960px) {
        padding: 52px 0 79px;
      }
      > p {
        max-width: 600px;
        margin: 0 auto;
        @media (width < 960px) {
          padding: 0 25px;
        }
      }
      .case-wrap {
        max-width: 710px;
        margin: 50px auto 0;
        padding: 46px 55px 40px;
        background: #fff;
        border-radius: 8px;
        text-align: center;
        @media (width < 960px) {
          width: calc(100% - 30px);
          padding: 40px 25px 52px;
        }
        h2 {
          position: relative;
          width: calc(100% - 78px);
          margin: 0 auto 35px;
          padding: 12px 0 14px;
          background: #FA9706;
          color: #fff;
          font-size: 22px;
          font-family: var(--font-yugothic-e);
          line-height: 1;
          @media (width <= 800px) {
            width: calc(100% - 40px);
            height: 48px;
            margin: 0 auto 30px;
            font-size: 16px;
            line-height: 1.4;
          }
          &::before,
          &::after {
            content: '';
            position: absolute;
            top: 0;
            width: 32px;
            height: 48px;
            background-image: url('../../img/seikatsuchishin2026/part3/title-deco.svg');
            background-size: contain;
            background-repeat: no-repeat;
            @media (width <= 800px) {
              width: 15px;
              background-image: url('../../img/seikatsuchishin2026/part3/title-deco-sp.svg');
            }
          }
          &::before {
            left: -39px;
            @media (width <= 800px) {
              left: -20px;
            }
          }
          &::after {
            right: -39px;
            transform: rotate(180deg);
            @media (width <= 800px) {
              right: -20px;
            }
          }
        }
        h3 {
          color: #FA9706;
          font-size: 28px;
          font-family: var(--font-yugothic-e);
          line-height: 1.8;
          @media (width < 960px) {
            line-height: 1.65;
          }
        }
        span {
          display: block;
          margin-top: -5px;
          color: #FA9706;
          font-size: 16px;
          letter-spacing: 0.05em;
          @media (width < 960px) {
            margin-top: -2px;
          }
        }
        small {
          width: 100%;
          display: block;
          margin-top: 5px;
          color: var(--small-gray);
          font-size: 10px;
          text-align: right;
          @media (width < 960px) {
            margin-top: 7px;
            text-align: left;
            line-height: 1.6;
          }
        }
        .case-summary {
          margin: 15px 0 28px;
          text-align: center;
          @media (width < 960px) {
            margin: 15px 0 24px;
            text-align: justify;
          }
        }
        .case-img {
          display: flex;
          flex-wrap: wrap;
          justify-content: space-between;
          margin-bottom: 28px;
          @media (width < 960px) {
            gap: 5px;
            margin-bottom: 22px;
          }
          .half {
            width: calc(295 / 600 * 100%);
            @media (width < 960px) {
              width: 100%;
            }
          }
        }
      }
      hr {
        width: calc(100% + 110px);
        height: 2px;
        margin: 50px 0 50px -55px;
        border: none;
        background: #F6F0E9;
        @media (width < 960px) {
          width: calc(100% + 50px);
          margin: 46px 0 46px -25px;
        }
      }
    }
  }
  #desire-03 {
    .case-detail:last-child {
      .case-img {
        align-items: flex-end;
        @media (width < 960px) {
          flex-direction: column;
          align-items: center;
          gap: 55px;
        }
      }
      .case-img img {
        width: auto;
        height: 222px;
        object-fit: contain;
        @media (width <= 800px) {
          width: 295px;
          height: auto;
        }
      }
      @media (width < 960px) {
        small {
          max-width: 295px;
          margin: -46px auto 0;
        }
      }
    }

  }
  .outro {
    padding: 98px 25px 0;
    @media (width < 960px) {
      padding: 50px 25px 0;
      line-height: 1.8;
    }
    h1 {
      width: 100%;
      max-width: 600px;
      margin: 0 auto 38px;
      font-size: 28px;
      font-family: var(--font-yugothic-e);
      @media (width < 960px) {
        margin: 0 auto 27px;
      }
    }
    p {
      width: 100%;
      max-width: 600px;
      margin: 0 auto 100px;
      @media (width <= 800px) {
        margin: 0 auto 50px;
      }
    }
    > div {
      width: calc(100% + 50px);
      margin-left: -25px;
      img {
        width: 100%;
        vertical-align: bottom;
      }
    }
  }
}