/* service ----------------------------------------------------------*/

.pageheader_lead {
  @media (min-width: 2250px){
    br{
      display: block !important;
    }
  }
}

.service {
  padding-bottom: 120px;
  background: linear-gradient(to bottom, #ffffff 0%, #ffffff 60%, #F4F4F4 60%, #F4F4F4 100%);
  text-align: center;

  @media (max-width: 640px){
    padding: 0;
  }

  & .inner {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 40px;
    padding-bottom: 30px;
    position: relative;

    @media (max-width: 640px){
      padding: 0px 20px 20px;
      border-radius: 0;
    }

    &::after{
      content: "";
      position: absolute;
      left: 50%;
      bottom: -50px;
      transform: translateX(-50%);
      width: 0;
      height: 0;
      border-left: 80px solid transparent;
      border-right: 80px solid transparent;
      border-top: 50px solid #fff;
      z-index: 10;
    }

    & .service-copy-text {
      font-size: 18px;
      color: #222;
      position: relative;
      display: table;
      margin: 0 auto 30px;
      font-weight: bold;

      @media (max-width: 640px){
        font-weight: bold;
      }

      /* &::before,
      &::after {
        content: "";
        display: block;
        position: absolute;
        top: 50%;
        width: 160px;
        height: 1px;
        background: var(--key-color);
        opacity: .6;

        @media (max-width: 640px){
          content: none;
        }

      }

      &::before { left: -180px;}
      &::after  { right: -180px;} */
    }

    & .service-list {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 20px;
      margin-bottom: 30px;
      list-style: none;
      padding: 0 40px;

      @media (max-width: 640px){
        margin-bottom: 20px;
        padding: 0 20px;
      }

      & li {
        background: #f5f5f5;
        border-radius: 8px;
        font-size: 16px;
        color: #111;
        padding: 14px 14px;
        position: relative;
        flex: 1;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);

        @media (max-width: 640px){
          width: 100%;
          font-size: 20px;
          font-weight: bold;
          padding: 16px;
          flex: none;
        }

        &::before {
          content: "";
          position: absolute;
          top: 0;
          left: 0;
          width: 0;
          height: 0;
          border-top: 23px solid var(--key-color);
          border-right: 23px solid transparent;
          border-top-left-radius: 6px;
        }

        & h3{
          font-size: 16px;
          text-align: left;
          font-weight: bold;
        }

        & p{
          font-size: 14px;
          font-weight: normal;
          margin-top: 1em;
          text-align: justify;
        }
      }
    }

    & .service_text {
      font-size: 38px;
      font-weight: 700;
      color: #111;

      @media (max-width: 640px){
        font-size: 26px;
      }
    }
  }
}


/* support ----------------------------------------------------------*/
.support {
  padding: 120px 0;
  background: #f3f3f3;

  @media (max-width: 640px){
    padding: 60px 20px;
  }

  & .inner {
    max-width: 1000px;
    margin: 0 auto;

    & .support_list {
      list-style: none;
      padding: 0;
      margin: 0;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 40px;

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

      & .support_item {
        & > div {
          position: relative;
          background: #ffffff;
          border-radius: 16px;
          overflow: hidden;

          @media (max-width: 640px){
            display: flex;
            justify-content: space-between;
            flex-direction: row-reverse;
            gap: 20px;
            padding: 20px;
          }

          @media (max-width: 414px){
            /* padding: 0px; */
            padding: 16px;
            /* display: block; */
          }

        }

        & span {
          position: absolute;
          top: 0px;
          left: 0px;
          display: inline-block;
          padding: 10px 14px;
          font-size: 16px;
          font-weight: 700;
          line-height: 1;
          color: #ffffff;
          background: var(--key-color);
          border-radius: 0 0 20px 0;
          font-family: "Noto Sans JP", sans-serif;
          z-index: 10;

          @media (max-width: 640px){
            width: 45%;
            text-align: center;
          }

          /* @media (max-width: 414px){
            width: 100%;
            border-radius: 0;
            position: static;
          } */
        }

        & figure {
          margin: 0;
          overflow: hidden;
          height: 209px;

          @media (max-width: 640px){
            width: 50%;
            height: auto;
            border-radius: 10px;
          }

          /* @media (max-width: 414px){
            width: 100%;
            border-radius: 0;
          } */

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

            @media (max-width: 640px){
              position: static;
            }
          }
        }

        & h3 {
          font-size: 22px;
          font-weight: 700;
          text-align: center;
          margin: 18px 0px 10px 0px;

          @media (max-width: 640px){
            margin: 30px 0px 6px 0px;
          }

          @media (max-width: 414px){
            font-size: 16px;
          }

        }

        & ul {
          display: flex;
          justify-content: center;
          font-size: 16px;
          color: #333333;
          text-align: center;
          margin: 0 0px 20px 0px;
          line-height: 1.9;

          @media (max-width: 640px){
            display: block;
            margin:0;

            /* @media (max-width: 414px){
              margin: 0 0px 20px 0px;
            } */

            & li{
              text-align: left;

              @media (max-width: 640px){
                font-size: 14px;
              }

              /* @media (max-width: 414px){
                text-align: center;
              } */

            }
          }
        }
      }
    }
  }
}


/* flow ---------------------------------------------------- */
.flow{

  @media (max-width: 640px){
    padding: 0px 20px;
    /* margin: 0; */
  }

  & .inner{
    max-width: 550px;
  }

  & .flow_list{
    list-style: none;
    padding: 0;
    margin: 0;

    & .flow_item{
      position: relative;
      padding: 30px 16px;
      background: var(--key-color);

      @media (max-width: 640px){
        padding: 24px 16px;
      }

      &::after{
        content: "";
        position: absolute;
        left: 50%;
        bottom: -23px;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 25px solid transparent;
        border-right: 25px solid transparent;
        border-top: 23px solid var(--key-color);
        z-index: 10;
      }

      &:first-of-type{
        border-radius: 10px 10px 0 0;
      }

      &:nth-of-type(2){
        background: #FFF0AA;

        &::after{
          border-top-color: #FFF0AA;
        }
      }

      &:nth-of-type(3){
        background: #FFFBE6;

        &::after{
          border-top-color: #FFFBE6;
        }
      }

      &:nth-of-type(4){
        background: #FFFEFC;

        &::after{
          border-top-color: #FFFEFC;
        }
      }

      &:nth-of-type(5){
        background: #F4F4F4;

        &::after{
          border-top-color: #F4F4F4;
        }
      }

      &:last-of-type{
        background: #e9e9e9;
        border-radius: 0 0 10px 10px;

        &::after{
          content: none;
        }

      }

      & > div{
        position: relative;
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 0 0 0 20px;

        @media (max-width: 640px){
          padding: 0 8px;
          display: block;
        }

        & > span{
          display: inline-block;
          min-width: 30px;
          text-align: center;
          font-weight: 700;
          font-size: 14px;
          line-height: 1;
          color: var(--key-color);
          background: #fff;
          padding: 8px 6px;
          border-radius: 8px;
          z-index: 2;
          font-family: "Noto Sans JP", sans-serif;

          @media (max-width: 640px){
            position: absolute;
            top: 2px;
            left: 10px;
          }

          &.num_line{
            border: 1px solid var(--key-color);
          }
        }

        & > h3{
          font-size: 24px;
          font-weight: 800;
          line-height: 1.5;
          color: #111;
          position: relative;
          z-index: 2;

          @media (max-width: 640px){
            margin-left: 40px;
          }
        }

        & > p{
          margin: 0;
          color: #333;
          font-size: 16px;
          line-height: 1.9;
          position: relative;
          z-index: 2;

          @media (max-width: 640px){
            text-align: justify;
          }
        }
      }
    }
  }
}

/* price ---------------------------------------------------- */

.price {
  padding: 0px 20px;
  background: #ffffff;


  & .inner {
    max-width: 1100px;
    margin: 0 auto;

    & .price_list {
      list-style: none;
      padding: 0;
      margin: 0;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 28px;

      @media (max-width: 1050px){
        grid-template-columns: repeat(2, 1fr);
      }

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

      & .price_item {
        border: 2px solid var(--key-color); 
        border-radius: 14px;
        overflow: hidden;
        background: #fff;
        text-align: center;

        & > span {
          display: block;
          background: #FFF0AA;
          font-size: 20px;
          font-weight: 700;
          padding: 8px 12px;
          border-bottom: 1px solid var(--key-color);
        }

        & > p {
          margin: 0;
          padding: 15px 5px;
          font-size: 40px;
          font-weight: 800;
          line-height: 1.2;
          color: #111;

          & > span {
            font-size: 16px;
            font-weight: 500;
            color: #555;
            margin-left: 8px;
            vertical-align: baseline;
          }
        }
      }
    }
  }
}

/* price ---------------------------------------------------- */
.consult {
  padding: 120px 0;
  background: #FFFCEB;

  @media (max-width: 640px){
    padding: 60px 20px;
  }


  & .inner {
    max-width: 1180px;
    margin: 0 auto;

    & .consult_list {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 28px;

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

    & .consult_item {
      list-style: none;
      padding: 0;
      margin: 0;
      background: #ffffff;
      border-radius: 10px;
      padding: 22px;
      position: relative;

      & > li {
        list-style: none;
      }

      /* 上段1行目（エリア・物件種別） */
      & > li:first-child {
        font-size: 20px;
        font-weight: 700;
        color: #111;
        display: flex;
        align-items: center;
        gap: 10px;
        border: 1px solid #FFFCEB;
        border-bottom: none;
        border-radius: 4px 4px 0 0;
        overflow: hidden;

        @media (max-width: 640px){
          font-size: 18px;
        }

        /* 左の黄色ラベル「事例1」 */
        & > span {
          display: inline-block;
          background: var(--key-color);
          color: #111;
          font-size: 14px;
          font-weight: 700;
          line-height: 1;
          padding: 18px 20px;
          white-space: nowrap;
        }
      }

      /* 上段2行目（相続人〜の説明） */
      & > .consult-text {
        position: relative;
        background: #FFFCEB;
        padding: 14px 16px;
        font-size: 18px;
        color: #222;
        margin-bottom: 22px;
        border-radius: 0 0 4px 4px;
        text-align: center;

        @media (max-width: 640px){
          font-weight: bold;
        }

        &::after {
          content: "";
          position: absolute;
          left: 50%;
          transform: translateX(-50%);
          bottom: -40px;
          border: 20px solid transparent;
          border-top-color: #FFFCEB;
        }
      }

      & > li:last-child {
        margin-bottom: 0;
        text-align: center;
        font-size: 26px;
        font-weight: 800;
        color: #111;
        line-height: 1.5;

        @media (max-width: 640px){
          font-size: 20px;
        }
      }
    }
  }
}


/* faq ---------------------------------------------------- */

.faq {
  background: #ffffff;

  @media (max-width: 640px){
    padding: 0px 20px;
  }

  & .inner {
    max-width: 650px;
    margin: 0 auto;

    & .faq-list {
      margin: 0;
      padding: 0;

      & dl {
        margin: 0 0 40px 0;
        padding: 0 0 40px 0;
        border-bottom: 2px solid var(--key-color);

        &:last-child {
          border-bottom: none;
          margin-bottom: 0;
          padding-bottom: 0;
        }

        /* 質問 */
        & dt {
          position: relative;
          display: flex;
          align-items: center;
          gap: 16px;
          font-size: 26px;
          font-weight: 800;
          line-height: 1.5;
          color: #111;
          margin: 0 0 12px 0;

          @media (max-width: 640px){
            font-size: 22px;
          }

          /* Qマーク */
          & span {
            position: relative;
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 52px;
            height: 52px;
            border-radius: 50%;
            background: var(--key-color);
            color: #111;
            font-size: 22px;
            font-weight: 800;
            line-height: 1;

            /* 吹き出しの足 */
            &::after {
              content: "";
              position: absolute;
              bottom: 1px;
              right: -1px;
              transform: rotate(45deg);
              width: 0;
              height: 0;
              border-top: 8px solid transparent;
              border-bottom: 8px solid transparent;
              border-left: 10px solid var(--key-color);
            }
          }
        }

        /* 回答 */
        & dd {
          margin: 0;
          padding-left: 68px;
          font-size: 16px;
          line-height: 1.9;
          color: #333;
        }
      }
    }
  }
}

/* form ---------------------------------------------------- */
.form{

  @media (max-width: 1024px) {
    padding: 0px 20px;
  }

}