@charset "UTF-8";

/* lead_sec */
.lead_sec {
  margin-bottom: 120px;

  .sec_text {
    margin: 0 auto 100px;
  }

  .medical_box {
    margin: 0 auto 100px;
    .list {
      display: flex;
      justify-content: center;
      align-items: stretch;
      column-gap: 70px;
    }
    .item {
      width: 436px;
      max-width: 48%;
      background-color: #F9F7E5;
      border-radius: 10px;
      padding: 40px;
      box-sizing: border-box;
    }
    .item_title {
      font-size: 24px;
      letter-spacing: .2em;
      text-align: center;
      padding-bottom: 15px;
      border-bottom: 1px solid #ECD300;
      margin-bottom: 20px;
    }
  }

  .subject_box {
    .flexbox {
      width: 1030px;
      max-width: 100%;
      margin: 0 auto 50px;
      column-gap: 20px;

      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
    }
    .link_btn {
      width: 240px;
      height: 87px;
      border-radius: 10px;
      border: 1px solid #F08B00;
      
      display: flex;
      justify-content: center;
      align-items: center;

      a {
        display: block;
        width: 100%;
        height: 100%;
        padding-right: 20px;

        display: flex;
        justify-content: center;
        align-items: center;

        line-height: 1.4;
        font-size: 18px;
        font-weight: bold;
        text-align: center;
      }
      position: relative;
    }
    .link_btn::before {
      z-index: 2;
      content: "";
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      right:  16px;
      width:  32px;
      height: 32px;
      background: url(/taniyama/images/price/price_yajirushi.webp) center / contain no-repeat;
    }
    .link_btn::after {
      z-index: 1;
      content: "";
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      right: 10px;
      border-radius: 50%;
      background-color: #fff;
      width:  32px;
      height: 32px;
    }

  }

  .link_box {
    .flexbox {
      width: 600px;
      max-width: 100%;
      margin: 0 auto;

      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
    }
    .link_btn {
      box-sizing: border-box;
      width: 262px;
      height: 60px;
      border-bottom: 2px solid #F08B00;
      a {
        box-sizing: border-box;
        display: block;
        width: 100%;
        height: 100%;
        padding: 13px 30px 13px 0;

        letter-spacing: .1em;
        line-height: 1.4;
        font-size: 20px;
        text-align: center;
      }
      position: relative;
    }
    .link_btn::before {
      z-index: 1;
      content: "";
      position: absolute;
      top: 52%;
      transform: translateY(-50%);
      right: 10px;
      width: 18px;
      height: 15px;
      background-color: #F08B00;
      clip-path: polygon(0 0, 100% 0%, 50% 100%);
    }
    .link_btn:nth-of-type(1) {
      margin-right: 30px;
    }
  }

  @media screen and (max-width: 768px) {
    margin-bottom: 0;

    .sec_title {
      letter-spacing: 0em;
    }
    .sec_text {
      margin: 0 auto 13.8vw;
    }

    .medical_box {
      margin: 0 auto 13.8vw;
      .list {
        display: flex;
        align-items: center;
        flex-direction: column;
      }
      .item {
        width: 100%;
        max-width: 100%;
        border-radius: 2.66vw;
        padding: 5.5vw 5.5vw 8vw;
      }
      .item_title {
        font-size: 5vw;
        padding-bottom: 4.2vw;
        margin-bottom: 5.33vw;
      }
      .item_text {
        font-size: 4vw;
      }
      .item:nth-of-type(1) {
        margin-right: initial;
        margin-bottom: 4.2vw;
      }
    }

    .subject_box {
      .flexbox {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        column-gap: 1vw;
        margin: 0 auto 8vw;
      }
      .link_btn {
        width:  40vw;
        height: 20vw;
        border-radius: 2.13vw;
        a {
          padding-right: 1.5em;
          font-size: 4.2vw;
        }
        position: relative;
      }
      .link_btn::before {
        right: 2.5vw;
        width:  5vw;
        height: 5vw;
      }
      .link_btn::after {
        right: 1.26vw;
        width:  5.54vw;
        height: 5.54vw;
      }
      .link_btn:nth-of-type(1),
      .link_btn:nth-of-type(2),
      .link_btn:nth-of-type(3) {
        margin-bottom: initial;
      }
      .link_btn:nth-of-type(1),
      .link_btn:nth-of-type(2),
      .link_btn:nth-of-type(4) {
        margin-right: initial;
      }

      .link_btn:nth-of-type(1),
      .link_btn:nth-of-type(2),
      .link_btn:nth-of-type(3),
      .link_btn:nth-of-type(4) {
        margin-bottom: 5vw;
      }
      .link_btn:nth-of-type(1),
      .link_btn:nth-of-type(3) {
        margin-right: 4vw;
      }
    }

    .link_box {
      margin-bottom: 13.8vw;
      .flexbox {
        width: 100%;
      }
      .link_btn {
        width: 40.4vw;
        border-bottom: 0.53vw solid #FF748B;

        a {
          width:  100%;
          height: 3em;
          padding: 0 8vw 0 0;
          display: flex;
          justify-content: center;
          align-items: center;

          font-size: 4.8vw;
          text-align: center;
        }
        position: relative;
        height: initial;
        padding-bottom: 2vw;
      }
      .link_btn::before {
        bottom: -3.13vw;
        width:  4.8vw;
        height: 4vw;
        background-color: #FF748B;
        clip-path: polygon(0 0, 100% 0%, 50% 100%);
      }
      .link_btn:nth-of-type(1) {
        margin-right: 4vw;
      }
    }

  }
}

/* sec01〜sec04 */
.sec01, .sec02, .sec03, .sec04 {

  .sec_header {
    margin-bottom: 30px;
  }
  .sec_body {
    padding: 0 clamp(110px, 12.5vw - 50px, 130px);
  }
  .caution {
    font-size: 16px;
    text-align: right;
    margin-bottom: 85px;
  }

  .title {
      min-height: 40px;
      border-left: 10px solid #ECD300;
      margin-bottom: 50px;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      padding-left: 21px;

      letter-spacing: .1em;
      font-size: 28px;
      font-weight: 500;
  }

  .menu_box {
    margin: 0 auto 80px;
    box-sizing: border-box;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    .menu_pic {
      width: 238px;
      min-width: 238px;
      margin-right: 35px;
      img {
        width: 100%;
        height: 100%;
        object-fit: contain;
      }
    }
    .textbox {
      box-sizing: border-box;
    }

    .menu_head {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
    }
    .menu_title {
      font-size: 24px;
      margin-bottom: 20px;
      line-height: 1.4;
      text-align: left;
      position: relative;
    }
    .maru{
      position: relative;
      padding-left: 1.5em;
      &::before{
        content: "●";
        position: absolute;
        font-size: 20px;
        color: #ECD300;
        left: 0;
        bottom: 50%;
        transform: translateY(50%);
      }
    }
    .menu_price {
      margin-bottom: 25px;
      font-size: 18px;
      text-align: right;
    }
    .menu_head_price_box {
      display: flex;
      flex-direction: column;
      justify-content: center;
      margin-bottom: 20px;
      .menu_price {
        margin-bottom: 0;
        letter-spacing: .1em;
        text-align: right;
      }
    }
    .menu_text {
      width: 100%;
      max-width: 100%;
      padding-right: 1em;
      letter-spacing: .1em;
      line-height: 2;
      text-align: justify;
    }
  }
  .menu_box:not(:last-of-type) {
    margin-bottom: 100px;
  }

  .about_flex_wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 100px;

    display: flex;
    justify-content: center;
    align-items: center;
  }
  .about_btn {
    position: relative;
    z-index: 1;
    background-color: #fff;
    border: 2px solid #ECD300;
  }
  .about_btn:not(:last-of-type) {
    margin-right: 80px;
  }
  .about_btn::after {
      position: absolute;
      z-index: -1;
      width: 113px;
      height: 87px;
      left: -20px;
      background: url(/taniyama/images/price/btn_kazari01.webp) center / contain no-repeat;
  }

  @media screen and (max-width: 768px) {

    .sec_header {
      margin-bottom: 3vw;
    }
    .sec_body {
      padding: 0;
    }
    .caution {
      font-size: 3.7vw;
      margin-bottom: 7vw;
    }

    .title {
      min-height: 10vw;
      margin-bottom: 8.2vw;

      display: flex;
      justify-content: flex-start;
      align-items: center;

      padding-left: 5.6vw;
      font-size: 5vw;
    }

    .menu_box {
      display: block;
      margin: 0 auto 13.8vw;

      box-sizing: border-box;
      .textbox {
        width: 100%;
        margin-right: initial;
      }
      .menu_head {
        display: block;
        margin-bottom: 3vw;
      }
      .menu_title {
        font-size: 4.8vw;
        margin-bottom: 1.2vw;
        letter-spacing: .1em;
        line-height: 1.5;
        text-align: left;
      }
      .maru{
        font-size: 4.8vw;
      }
      .menu_price {
        font-size: 3.7vw;
        margin-bottom: initial;
        letter-spacing: .1em;
        text-align: right;
      }
      .menu_head_price_box {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        .menu_price {
          font-size: 3.7vw;
          margin-bottom: 1vw;
          letter-spacing: initial;
          text-align: left;
        }
      }
      .menu_text {
        letter-spacing: .07em;
        line-height: 1.8;
        font-size: 4vw;
        padding-right: initial;
      }
      .menu_pic {
        width: 54.4vw;
        min-width: 54.4vw;
        margin-left:  initial;
        margin-right: initial;
        margin: 0 auto 4.2vw;
        img {
          width: 100%;
          height: 100%;
        }
      }
    }
    .menu_box:not(:last-of-type) {
      padding-bottom: 0;
      margin-bottom: 13.8vw;
    }

    .about_flex_wrapper {
      padding-top: 0;
      margin: 0 auto 13.8vw;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      row-gap: 8vw;
    }
    .about_btn {
      position: relative;
    }
    .about_btn:not(:last-of-type) {
      margin-right: initial;
    }
    .about_btn::after {
      width: 21.07vw;
      height: 20vw;
      left: 0;
      bottom: -1.866vw;
    }

  }
}


/* sec05 */
.sec05 {
  margin-bottom: 130px;

  .top_text {
    width: 880px;
    max-width: 100%;
    margin: 0 auto 30px;
    letter-spacing: .1em;
  }
  .top_image {
    width: 708px;
    max-width: 100%;
    margin: 0 auto;
    img {
      width:  100%;
      height: 100%;
      object-fit: contain;
    }
  }

  @media screen and (max-width: 768px) {
    margin-bottom: 13.8vw;

    .top_text {
      font-size: 4vw;
      margin: 0 auto 4.2vw;
    }
    .top_image {
      width: 95%;
      margin: 0 auto;
    }
  }
}

/* sec06 */
.sec06 {
  margin-bottom: 100px;

  .top_text {
    width: 1000px;
    max-width: 100%;
    margin: 0 auto 60px;
  }

  .upper_box {
    box-sizing: border-box;
    width: 1060px;
    max-width: 100%;
    border: 2px solid #F08B00;
    border-radius: 20px;
    padding: 45px 60px 65px;
    margin: 0 auto 55px;

    .title {
      padding-bottom: 25px;
      margin-bottom: 45px;
      font-size: 24px;
      text-align: center;
      border-bottom: 1px solid#F08B00;
    }
    .stn_text {
      font-size: 19px;
      color: #F08B00;
      font-weight: bold;
      letter-spacing: .1em;
      line-height: 1.8;
      margin-bottom: 10px;
    }
    .small_text {
      font-size: 19px;
      letter-spacing: .1em;
      text-align: left;
      margin-bottom: 35px;
    }
    .stn_red_text {
      letter-spacing: .15em;
      color: rgba(205, 98, 77, 1);
    }
    .small_red_text {
      font-size: 14px;
      letter-spacing: .2em;
      color: rgba(205, 98, 77, 1);
      text-align: right;
    }

    .info_text {
      box-sizing: border-box;
      padding-left:   1em;
      text-indent: -1.2em;
      line-height: 1.8;
    }
  }

  .about_btn {
    position: relative;
    z-index: 1;
    border-bottom: 2px solid #F08B00;
    background-color: transparent;
    width: initial;
    border-radius: 0;
    padding: 0;
    height: initial;
    padding-bottom: 15px;
    span{
      color: #F08B00;
    }
  }
  .about_btn::before {
      display: none;
  }


  @media screen and (max-width: 768px) {
    padding-bottom: 13.8vw;

    .top_text {
      font-size: 4vw;
      margin: 0 auto 4.3vw;
    }

    .upper_box {
      padding: 5.5vw;
      margin: 0 auto 10vw;
      box-sizing: border-box;

      .title {
        padding: 2vw 0;
        font-size: 4.8vw;
        margin-bottom: 4vw;
      }
      .stn_text {
        font-size: 4vw;
        letter-spacing: .2em;
        line-height: 1.8;
        margin-bottom: 4vw;
      }
      .small_text {
        font-size: 3.6vw;
        letter-spacing: .2em;
        margin-bottom: 8vw;
      }
      .stn_red_text {
        letter-spacing: .2em;
      }
      .small_red_text {
        font-size: 3.4vw;
      }

      .info_text {
        font-size: 4vw;
        margin: 0 auto 4.2vw;
      }
    }

    .about_btn {
      position: relative;
    }
    .about_btn::after {
      width: 21.07vw;
      height: 20vw;
      left: 0;
      bottom: -1.866vw;
    }
  }
}