@charset "UTF-8";

/* ===== TOPページのみ：1440基準スケーリング ===== */
@media screen and (min-width: 769px) {
  .body {
    min-width: 1440px; 
  }
}
@media screen and (min-width: 1921px) {
  .body {
    margin-left: auto;
    margin-right: auto; 
  }
}

/* header */
.header02 {
  .header_left {
    .title .top_box {
      .company_name {
        color: #fff;
        h1{
          color: #fff;
          text-shadow: 0 0px 14px rgba(0,0,0,0.45);
        }
        span{
          text-shadow: 0 0px 14px rgba(0,0,0,0.45);
        }
        .big{
          color: #fff;
        }
      }
    }
  }
  .tel_box{
    .tel_bottom{
      color: #fff !important;
      text-shadow: 0 0px 14px rgba(0,0,0,0.45);
      &::before{
        background: url(/taniyama/images/index/tel_index.webp) center / contain no-repeat !important;
      }
    }
  }
}


.sp_header{
  .small{
    font-size: 3.3vw;
  }
  .logo_box .logo_text{
    padding-top: 0;
  }
  .company_name {
    color: #fff;
    h1{
      color: #fff;
      text-shadow: 0 0px 14px rgba(0,0,0,0.45);
    }
    span{
      text-shadow: 0 0px 14px rgba(0,0,0,0.45);
    }
    .big{
      color: #fff;
    }
  }
}
.nav{
  margin-bottom: 100px;
}
.main_wrapper {
  padding: 0 ;
  position: relative;
  z-index: 0;
  min-width: 1280px;

  @media screen and (max-width: 768px) {
    min-width: initial;
    max-width: initial;
    padding: 0;
    margin-bottom: 10vw;
  }
}

.main_image {
  position: relative;
  max-width: 1440px;
  aspect-ratio: 1440/910;
  padding-top: clamp(308px, 24.72vw, 356px);
  margin: 0 auto;
  box-sizing: border-box;
  background: url(/taniyama/images/index/mainvisual01.webp) center top/cover no-repeat;
  overflow: hidden;

  /* ===== 背景フェード用ラッパー ===== */
  .mv_bgs {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
  }
  .mv_bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease;
  }
  .mv_bg01 { background-image: url(/taniyama/images/index/mainvisual01.webp); }
  .mv_bg02 { background-image: url(/taniyama/images/index/mainvisual02.webp); }
  .mv_bg03 { background-image: url(/taniyama/images/index/mainvisual03.webp); }
  .mv_bg.is-prev   { opacity: 1; z-index: 1; }
  .mv_bg.is-active { opacity: 1; z-index: 2; }

  .inner {
    padding: 0 30px 0 50px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .text {
    width: 1047px;
    height: 319px;
    position: absolute;
    bottom: 370px;
    left: 40%;
    transform: translateX(-50%);
    z-index: 0;
  }

  /* ===== テキスト画像のクロスフェード（PC/SP共通） ===== */
  .text.pc { opacity: 0; transition: opacity 1.2s ease; }
  .text.pc.is-active { opacity: 1; }
  .text.sp { opacity: 0; transition: opacity 1.2s ease; }
  .text.sp.is-active { opacity: 1; }

  /* ===== main_text02 / main_text03（PC）のサイズ・配置 ===== */
  .text02 {
    width: 984px;
    height: 210px;
    bottom: 360px;
    left: 40%;
  }
  .text03 {
    width: 655px;
    height: 344px;
    bottom: 360px;
    left: 30%;
  }

  .gridbox{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 5px;
    justify-items: center;
    max-width: 818px;
    position: absolute;
    bottom: 130px;
    right: 95px;

    .box{
      width: 220px;
      height: 220px;
      border-radius: 50%;
      box-sizing: border-box;
      padding: 12px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      color: #fff;
      position: relative;
    }

    .box_sub{
      font-size: 21px;
      line-height: 1.45;
      font-weight: bold;
      margin: 0 0 15px;
      text-align: center;
      color: #fff;
      text-shadow: 0 0px 14px rgba(0,0,0,0.45);
      span{
        font-size: 26px;
        font-weight: bold;
        text-shadow: 0 0px 14px rgba(0,0,0,0.45);
      }
    }

    .box_main{
      font-size: 26px;
      line-height: 1.2;
      font-weight: 700;
      letter-spacing: 0.02em;
      white-space: nowrap;
      margin: 0;
      color: #fff;
      text-shadow: 0 0px 14px rgba(0,0,0,0.45);
      text-align: center;
      font-feature-settings: "palt";
      span{
        text-shadow: 0 0px 14px rgba(0,0,0,0.45);
        font-size: 21px;
        font-weight: bold;
      }
    }

    .box01{ 
      background-color: #BDABCF; 
      z-index: 4; 
      &::before{
        content: "";
        position: absolute;
        width: 44px;
        height: 40px;
        left: 10px;
        top: 20px;
        background: url(/taniyama/images/index/mv_kazari01.webp) center / contain no-repeat;
      }
    }
    .box02{ 
      background-color: #8AC7D2; 
      z-index: 3; 
      &::before{
        content: "";
        position: absolute;
        width: 17px;
        height: 53px;
        left: 20px;
        top: 60px;
        background: url(/taniyama/images/index/mv_kazari02.webp) center / contain no-repeat;
      }
      &::after{
        content: "";
        position: absolute;
        width: 17px;
        height: 53px;
        right: 20px;
        top: 60px;
        background: url(/taniyama/images/index/mv_kazari03.webp) center / contain no-repeat;
      }
    }
    .box03{ 
      background-color: #F5B0A1; 
      z-index: 2; 
      &::before{
        content: "";
        position: absolute;
        width: 24px;
        height: 29px;
        left: 30px;
        top: 30px;
        background: url(/taniyama/images/index/mv_kazari04.webp) center / contain no-repeat;
      }
      &::after{
        content: "";
        position: absolute;
        width: 46px;
        height: 46px;
        right: 00px;
        top: 90px;
        background: url(/taniyama/images/index/mv_kazari05.webp) center / contain no-repeat;
      }
    }
    .box04{ 
      background-color: #6EC8AF; 
      z-index: 1; 
      &::before{
        content: "";
        position: absolute;
        width: 17px;
        height: 53px;
        left: 10px;
        top: 60px;
        background: url(/taniyama/images/index/mv_kazari02.webp) center / contain no-repeat;
      }
      &::after{
        content: "";
        position: absolute;
        width: 17px;
        height: 53px;
        right: 10px;
        top: 60px;
        background: url(/taniyama/images/index/mv_kazari03.webp) center / contain no-repeat;
      }
    }
  }


  @media screen and (min-width: 1441px) {
    max-width: none;
    width: 100%;

    .text {
      width: 72.7vw;
      height: auto;
      bottom: 19.8vw; 
      left: 40%;
      transform: translateX(-50%);
      text-align: center;
    }

    .text02 {
      width: 68.3vw; 
      height: auto;
      bottom: 20.8vw; 
      left: 40%;
    }

    .text03 {
      width: 45.5vw; 
      height: auto;
      bottom: 20.8vw;  
      left: 30%;
    }

    .gridbox{
      column-gap: 1vw;
      max-width: 41vw;
      bottom: 9vw;
      right: 5vw;
      .box{
        width: 12vw;
        height: 12vw;
        padding: 0.8vw;
      }
      .box_sub{ 
        font-size: 1vw;
        span{
          font-size: 1.4vw;
        } 
      }
      .box_main{ 
        font-size: 1.4vw;
        span{
          font-size: 1vw;
        } 
      }
      .box01{
        &::before{
          width: 2.4vw;
          height: 2.18vw;
          left: 0.55vw;
          top: 1.09vw;
        }
      }
      .box02{
        &::before{
          width: 0.93vw;
          height: 2.89vw;
          left: 1.09vw;
          top: 3.27vw;
        }
        &::after{
          width: 0.93vw;
          height: 2.89vw;
          right: 1.09vw;
          top: 3.27vw;
        }
      }
      .box03{
        &::before{
          width: 1.31vw;
          height: 1.58vw;
          left: 1.64vw;
          top: 1.64vw;
        }
        &::after{
          width: 2.51vw;
          height: 2.51vw;
          right: 0;
          top: 4.91vw;
        }
      }
      .box04{
        &::before{
          width: 0.93vw;
          height: 2.89vw;
          left: 0.55vw;
          top: 3.27vw;
        }
        &::after{
          width: 0.93vw;
          height: 2.89vw;
          right: 0.55vw;
          top: 3.27vw;
        }
      }
    }

  }

  @media screen and (max-width: 768px) {
    width: initial;
    height: 146.7vw; 
    padding-top: 27.3vw;
    aspect-ratio: initial;
    box-sizing: border-box;
    /* フォールバック（JS無効時は1枚目を表示） */
    background: url(/taniyama/images/index/mainvisual01_sp.webp) center top/cover no-repeat;
    overflow: visible;
    position: relative;

    /* SPは背景レイヤーを表示し、画像をSP版へ差し替え */
    .mv_bgs { display: block; }
    .mv_bg01 { background-image: url(/taniyama/images/index/mainvisual01_sp.webp); }
    .mv_bg02 { background-image: url(/taniyama/images/index/mainvisual02_sp.webp); }
    .mv_bg03 { background-image: url(/taniyama/images/index/mainvisual03_sp.webp); }

    .inner {
      padding: 0;
    }

    .text.text_sp01 { width: 93.8vw;   height: 52.2vw; bottom: 50.6vw; left: 45%;}
    .text.text_sp02 { width: 99vw; height: 56.2vw;   bottom: 50vw; left: 45%;}  
    .text.text_sp03 { width: 82.6vw;   height: 61.3vw; bottom: 50vw; left:40% }

    .gridbox{
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      max-width: initial;
      column-gap: 0;
      right: auto;
      left: 50%;
      transform: translateX(-50%);
      bottom: 1vw;              /* 縦位置の微調整はここ */

      .box{
        width: 25.5vw;
        height: 25.5vw;
        padding: 1vw;
        flex-shrink: 0;
      }
      /* 円をわずかに重ねる */
      .box + .box{ margin-left: -1.5vw; }

      .box_sub{
        font-size: 2.67vw;
        line-height: 1.4;
        margin: 0 0 1vw;
        text-shadow: 0 0 2.5vw rgba(0,0,0,0.45);
        span{
          font-size: 3.2vw;
          text-shadow: 0 0 2.5vw rgba(0,0,0,0.45);
        }
      }

      .box_main{
        font-size: 3.47vw;
        line-height: 1.25;
        white-space: normal;  
        text-shadow: 0 0 2.5vw rgba(0,0,0,0.45);
        span{
          font-size: 2.67vw;
          text-shadow: 0 0 2.5vw rgba(0,0,0,0.45);
        }
      }

      .box01{
        &::before{
          width: 4.9vw;
          left: auto;
          top: auto;
          height: 4.45vw;
          right: 1.11vw;
          bottom: 2.23vw;
          transform: scale(-1);
        }
      }
      .box02{
        &::before{
          width: 1.89vw;
          height: 5.9vw;
          left: 2.23vw;
          top: 6.68vw;
        }
        &::after{
          width: 1.89vw;
          height: 5.9vw;
          right: 2.23vw;
          top: 6.68vw;
        }
      }
      .box03{
        &::before{
          width: 2.7vw;
          height: 3vw;
          left: 17vw;
          top: 13vw;
        }
        &::after{
          width: 5.12vw;
          height: 5.12vw;
          right: 0;
          top: 12vw;
        }
        .box_main{
          display: flex;
          align-items: center;
          justify-content: center;
          text-align: left;
          gap: 0.8vw;
          .vertical{
            writing-mode: vertical-rl;
            text-orientation: upright;
            line-height: 1.15;
            letter-spacing: 0.05em;
            font-size: 2.5vw;
          }
        }
      }
      .box04{
        &::before{
          width: 1.89vw;
          height: 5.9vw;
          left: 1.11vw;
          top: 6.68vw;
        }
        &::after{
          width: 1.89vw;
          height: 5.9vw;
          right: 1.11vw;
          top: 6.68vw;
        }
      }
    }
  }

}


/* sec01 */
.sec01 {
  margin-bottom: 150px;
  .inner{
    padding: 0 120px;
  }
  .news_body {
    display: flex;
    justify-content: center;
    column-gap: 50px;
    align-items: stretch; 
    flex-direction: row-reverse;
  }

  .news_col {
    display: flex;
    flex-direction: column;
  }
  .news_col:first-child {
    width: 35%;
    .about_btn{
      width: 260px;
      &::after{
        content: "";
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 45px;
        height: 32px;
        background: url(/taniyama/images/common/yajirushi.webp) center / contain no-repeat;
      }
    }
  }

  .news_divider {
    align-self: stretch;
    width: 1px;
    background-color: #444444;
  }

  .col_title {
    font-size: 32px;
    letter-spacing: 0.2em;
    margin-bottom: 50px;
  }

  .news_list {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
    display: flex;
    flex-direction: column;
    row-gap: 28px;
  }

  .news_item a {
    display: block;
    color: #333333;
    text-decoration: none;
    transition: opacity 0.3s;
  }
  .news_item a:hover {
    opacity: 0.7;
  }

  .news_date {
    margin: 0 0 6px;
    letter-spacing: 0.1em;
    color: #777777;
  }

  .news_text {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
  }

  .about_wrapper {
    margin-top: auto;
  }

  .bubble{
    border-radius: 50vh;
    border: 2px solid #ECD300;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    width: 157px;
    height: 157px;
    font-feature-settings: "palt";
    line-height: 1.5;
    span{
      color: #F08B00;
      font-weight: bold;
      font-size: 24px;
    }
  }
  .bubble:nth-child(1), .bubble:nth-child(3) {
    width: 125px;
    height: 125px;
  }
  /* 吹き出し（じぐざぐ配置） */
  .info_bubbles {
    display: flex;
    justify-content: center;
    column-gap: 20px;
    align-items: flex-start;
    margin-bottom: 40px;

    .bubble:nth-child(even) {
      margin-top: 20px; 
    }
  }

  /* 診療時間の表 */
  .info_timetable {
    display: block;
    width: 622px;
    height: 221px;
    margin-bottom: 20px;
  }

  /* 住所（テキスト） */
  .info_address {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
  }

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

    .inner {
      padding: 0 5vw;
    }

    /* 横並び → 縦並び */
    .news_body {
      flex-direction: column;
    }

    .news_col:first-child {
      width: 100%;
      margin-bottom: 15vw;

      .about_btn {
        width: 69.33vw;

        &::after {
          right: 2.67vw;
          width: 12vw;
          height: 8.53vw;
        }
      }
    }

    .news_divider {
      display: none;
    }

    .col_title {
      font-size: 6.4vw;
      margin-bottom: 5vw;
    }

    .news_list {
      margin: 0 0 10.67vw;
      row-gap: 3vw;
    }

    .news_date {
      margin: 0 ;
      font-size: 3.73vw;
    }

    .news_text {
      font-size: 4vw;
    }

    .about_wrapper{
      margin: 0 auto;
    }

    /* 吹き出し */
    .info_bubbles {
      margin-bottom: 5vw;
      flex-wrap: wrap;
      justify-content: center; 
      padding-left: 0vw;
      column-gap: 8vw;
      row-gap: 3vw;
      align-items: flex-end;

      .bubble{
        font-size: 4vw;
        width: 34.9vw;
        height: 34.9vw;
        span{
          font-size: 6.4vw;
        }
      }
      .bubble:nth-child(1), .bubble:nth-child(4) {
        width: 34.9vw;
        height: 34.9vw;
      }

      .bubble:nth-child(3),
      .bubble:nth-child(4) {
        transform: initial;
      }
        
      .bubble:nth-child(even) {
        margin-top: 0;
      }
    }
    /* 診療時間の表 */
    .info_timetable {
      width: 89.33vw;
      height: auto;
      margin-bottom: 4vw;
    }

    /* 住所 */
    .info_address {
      line-height: 1.5;
      font-weight: bold;
      font-size: 4vw;
      padding-left: 5vw;
    }
  }
}

/* sec02 */
.sec02{
  margin-bottom: 75px;
  .inner{
    padding: 0 115px;
  }
  .flexbox{
    column-gap: 50px;
  }
  .imagebox{
    width: 100%;
    max-width: 535px;
  }
  .textbox{
    width: 100%;
  }
  .box_title{
    font-weight: bold;
    font-size: 42px;
    line-height: 1.5;
    margin-bottom: 50px;
    .orange{
      color: #F08B00;
      font-weight: bold;
    }
    .small{
      font-size: 36px;
      font-weight:bold;
    }
  }
  .box_text{
    margin-bottom: 65px;
  }
  .imagebox{
    width: 100%;
  }
  .about_wrapper{
    display: flex;
    justify-content: flex-start;
  }
  .about_btn{
    width: 232px;
    &::after{
      width: 110px;
      height: 88px;
      left: 0;
      bottom: 0;
      background: url(/taniyama/images/index/pink_btn.webp) center / contain no-repeat;
    }
  }
  @media screen and (max-width: 768px) {
    margin-bottom: 21.33vw;

    .inner {
      padding: 0 5vw;
    }

    .flexbox {
      flex-direction: column;
    }

    .textbox {
      display: contents;
    }
    .box_title    { order: 1; }
    .imagebox     { 
      order: 2; 
      max-width: initial;
      margin: 0 3vw auto 0;
      width: 95%;
      margin-bottom: 3vw;
    }
    .box_text     { order: 3; }
    .about_wrapper { order: 4; }

    .box_title {
      font-size: 8vw;
      margin-bottom: 2vw;
      .small{
        font-size: 6.4vw;
      }
    }

    .box_text {
      margin-bottom: 10vw;
      font-size: 4vw;
      line-height: 2;
      text-align: justify;
    }

    .imagebox img {
      width: 100%;
      height: auto;
    }

    .about_wrapper{
      justify-content: center;
    }
    .about_btn {
      width: 69.33vw;
      z-index: 1;

      &::after {
        z-index: -1;
        width: 20.33vw;
        height: 16.47vw;
      }
    }
  }
}

/* sec03 */
.sec03{
  margin-bottom: 100px;
  padding: 95px 0 165px;
  position: relative;
  z-index: 1;
  &::before{
    content: "";
    position: absolute;
    width: max(100vw, 100%);
    height: 337px;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    z-index: -1;
    background: url(/taniyama/images/index/sec03_top.webp) center / cover no-repeat;
  }

  .inner{
    padding: 0;
  }

  .sec03_title{
    text-align: center;
    font-weight: bold;
    font-size: 38px;
    margin-bottom: 65px;
    letter-spacing: 0.1em;
    .orange{
      font-weight: bold;
      color: #F08B00;
    }
    .small{
      font-size: 32px;
      font-weight: bold;
    }
  }

  .sec03_subtitle{
    font-size: 28px;
    text-align: center;
    letter-spacing: 0.2em;
    font-family: 'Inter', sans-serif;
  }

  .cont01{
    margin-bottom: 100px;
    padding: 0 150px;

    .menu_box{
      margin-bottom: 45px;
    }
    .menu_title{
      font-size: 24px;
      padding-left: 1em;
      position: relative;
      margin-bottom: 20px;
      &::before{
        content: "●";
        position: absolute;
        left: 0;
        bottom: 50%;
        font-size: 13px;
        transform: translateY(50%);
        color: #ECD300;
      }
    }
    .menu_text{
      font-size: 18px;
      font-weight: bold;
      line-height: 1.3;
    }
    .gridbox{
      display: grid;
      column-gap: 30px;
      row-gap: 15px;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      justify-items: flex-start;
    }
    .box{
      display: flex;
      width: 100%;
    }
    .flexbox{
      display: flex;
      align-items: center;
      column-gap: 15px;
      border-bottom: 1px solid #444444;
      padding-bottom: 10px;
      width: 260px;
      justify-content: flex-start;
      box-sizing: border-box;
      position: relative;
      &::before{
        content: "";
        position: absolute;
        right: 0;
        bottom: 50%;
        transform: translateY(35%);
        width: 30px;
        height: 30px;
        background: url(/taniyama/images/index/menu_pink.webp) center / contain no-repeat; /* デフォルト：ピンク */
      }
      &.menu_yellow::before{
        background-image: url(/taniyama/images/index/menu_yellow.webp);
      }
      &.menu_blue::before{
        background-image: url(/taniyama/images/index/menu_blue.webp);
      }
      &.menu_purple::before{
        background-image: url(/taniyama/images/index/menu_purple.webp);
      }
    }
  }

  .cont02{
    margin-bottom: 190px;
    padding: 0 80px;

    .flexbox{
      column-gap: 45px;
    }
    .right{
      .about_wrapper:nth-of-type(1){
        margin-bottom: 30px;
      }
      .about_btn{
        border: 4px solid #FFDBB0;
        border-radius: 10px;
        background-color: #F9F7E5;
        height: 75px;
        font-weight: 500;
        font-size: 20px;
        width: 300px;
      }
    }
  }

  .cont03, .cont04, .cont05, .cont06 {
    margin: 0 auto 200px;
    box-sizing: border-box;
    position: relative;

    *,
    *::before,
    *::after { box-sizing: border-box; }

    /* ---- 上段：テキスト＋メイン画像 ---- */
    .flexbox {
      display: flex;
      justify-content: flex-end;
      align-items: flex-start;
      column-gap: 50px;
      margin-bottom: 65px;
      .imagebox{
        flex: 0 0 634px;
      }
    }
    .textbox {
      max-width: 600px;
    }
    .eng{
      color: #EE9581;
      padding-left: 1.5em;
      position: relative;
      font-size: 24px;
      font-family: 'Inter', sans-serif;
      letter-spacing: 0.2em;
      margin-bottom: 10px;
      &::before{
        content: "";
        position: absolute;
        left: 0;
        bottom: 50%;
        transform: translateY(50%);
        width: 21px;
        height: 21px;
        background: url(/taniyama/images/common/star_red.webp) center / contain no-repeat;
      }
    }
    .box_title {
      font-size: 40px;
      font-weight: bold;
      line-height: 1.5;
      margin-bottom: 10px;
    }
    .box_subtitle{
      font-size: 28px;
      margin-bottom: 15px;
      line-height: 1.5;
      span{
        font-size: 36px;
        color: #EE9581;
        font-weight: bold;
      }
    }
    .imagebox {
      position: relative;
      max-width: 634px;
      flex-shrink: 0;
    }
    .main_img {
      width: 100%;
      height: 511px;
      object-fit: cover;
    }

    /* ---- 下段グリッドのベース（cont03・cont06 共有）---- */
    .gridbox {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 30px;
      position: relative;
      z-index: 6;
      max-width: 1184px;
      margin: 0 auto;
    }
  }

  .cont03{
    .balloon {
      position: absolute;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      font-weight: 700;
      line-height: 1.5;
      letter-spacing: 0.1em;
      width: 198px;
      height: 198px;
      bottom: 80px;
      left: 40px;
      background: rgba(245,176,161,0.9);
      font-family: 'Zen Maru Gothic', sans-serif;
      font-size: 24px;
      z-index: 3;
    }
    .cont03_img01 {
      position: absolute;
      bottom: 0px;
      left: 0px;
      width: 142px;
      height: 166px;
      transform-origin: center;
      z-index: 5;
      pointer-events: none;
    }
    .cont03_img02 {
      position: absolute;
      top: 194px;
      left: 68px;
      width: 174px;
      height: 83px;
      transform-origin: center;
      z-index: 5;
      pointer-events: none;
    }
    .bottom_title{
      font-size: 30px;
      color: #EE9581;
      font-weight: bold;
      padding-left: 130px;
      letter-spacing: 0.1em;
      margin-bottom: 75px;
      position: relative;
      span{
        font-size: 36px;
        font-weight: bold;
      }
      &::before{
        content: "";
        position: absolute;
        width: 1181px;
        height: 115px;
        bottom: -40px;
        left: 50%;
        transform: translateX(-50%);
        background: url(/taniyama/images/index/cont02_kazari.webp) center / contain no-repeat;
      }
    }
    .gridbox {
      .card {
        display: block;
        text-decoration: none;
      }
      /* カラーボックス（テキスト側・下に敷く） */
      .card_body {
        position: relative;
        z-index: 1;
        border-radius: 0 0 50vh 50vh;
        text-align: center;
        width: 371px;
        height: 185px;
        padding-top: 30px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25); 
      }
      .card_img {
        width: 371px;
        height: 195px;
        z-index: 2;
      }
      .card_sub {
        display: block;
        font-size: 16px;
        margin-bottom: 5px;
      }
      .card_title {
        font-size: 24px;
        font-weight: bold;
        line-height: 1.5;
      }
      /* 右下の矢印 */
      .card_arrow {
        position: absolute;
        right: 90px;
        bottom: -4px;
        width: 36px;
        height: 55px;
        svg { width: 100%; height: 100%; display: block; }
      }
      /* カードごとの背景色 */
      .card01 .card_body { background: #FBDDA2; }  /* 子ども：イエロー */
      .card02 .card_body { background: #FBC2A2; }  /* 中高生：オレンジ */
      .card03 .card_body { background: #FAA4B1; }  /* 大人：ピンク */
    }
    .pinkbg{
      position: absolute;
      width: max(100vw, 100%);
      height: 840px;
      background-color: #F5B0A1;
      opacity: 20%;
      left: 50%;
      bottom: -50px;
      transform: translateX(-50%);
      z-index: -5;
    }
  }

  .cont04{
    .eng{
      color: #F08B00;
      &::before{
        background: url(/taniyama/images/common/star_orange.webp) center / contain no-repeat;
      }
    }
    .box_subtitle{
      span{
        color: #F08B00;
      }
    }
    .about_btn{
      width: 320px;
      margin-top: 50px;
    }
    .orangebg{
      position: absolute;
      width: max(100vw, 100%);
      height: 360px;
      background-color: #F08B00;
      opacity: 10%;
      left: 50%;
      bottom: -70px;
      transform: translateX(-50%);
      z-index: -5;
    }

    .flexbox {
      display: flex;
      justify-content: flex-start;
      align-items: flex-start;
      .balloon01 {
        position: absolute;
        width: 226px;
        height: 194px;
        top: 120px;
        left: 10px;
        z-index: 4;
      }
      .balloon02 {
        position: absolute;
        width: 252px;
        height: 252px;
        bottom: 15px;
        left: 83px;
        z-index: 3;
      }
      .balloon03 {
        position: absolute;
        width: 216px;
        height: 257px;
        bottom: 0;
        right: 0;
        z-index: 3;
      }
    }

    .balloon01_wrap{
      position: absolute;
      right: 87px;
      bottom: 95px;
      width: 173px;
      height: 173px;
      z-index: 1;
      &::after{
        content: "";
        position: absolute;
        width: 245px;
        height: 245px;
        left: -150px;
        top: 75px;
        z-index: -1;
        background: url(/taniyama/images/index/c_kazari04.webp) center / contain no-repeat;
      }
    }
    .baloon01{
      position: absolute;
      inset: 0;
      border-radius: 50vh;
      background-color: rgba(255, 255, 255, 0.9);
      font-size: 20px;
      font-weight: 500;
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      flex-direction: column;
      filter:drop-shadow(0px 0px 14px rgba(0, 0, 0, 0.25));
      font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
      span{
        font-weight: bold;
        color: #F08B00;
        font-size: 25px;
      }
      &::before{
        content: "";
        position: absolute;
        width: 44px;
        height: 44px;
        right: 30px;
        top: 15px;
        background: url(/taniyama/images/index/c_kazari01.webp) center / contain no-repeat;
      }
    }
    .baloon02{
      position: absolute;
      border-radius: 50vh;
      left: 152px;
      bottom: 62px;
      width: 149px;
      height: 149px;
      background-color: rgba(255, 255, 255, 0.9);
      font-size: 20px;
      font-weight: 500;
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      flex-direction: column;
      filter:drop-shadow(0px 0px 14px rgba(0, 0, 0, 0.25));
      font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
      z-index: 1;
      span{
        font-weight: bold;
        color: #F08B00;
        font-size: 25px;
      }
      &::before{
        content: "";
        position: absolute;
        width: 76px;
        height: 60px;
        left: 10px;
        top: -5px;
        background: url(/taniyama/images/index/c_kazari02.webp) center / contain no-repeat;
      }
    }
    .baloon03{
      position: absolute;
      border-radius: 50vh;
      right: 189px;
      bottom: -71px;
      width: 173px;
      height: 173px;
      background-color: rgba(255, 255, 255, 0.9);
      font-size: 20px;
      font-weight: 500;
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      flex-direction: column;
      filter:drop-shadow(0px 0px 14px rgba(0, 0, 0, 0.25));
      font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
      z-index: 1;
      span{
        font-weight: bold;
        color: #F08B00;
        font-size: 25px;
      }
      .row{
        color: #444;
        font-size: 20px;
        font-weight: 500;
      }
      &::before{
        content: "";
        position: absolute;
        width: 94px;
        height: 129px;
        right: -70px;
        bottom: 35px;
        background: url(/taniyama/images/index/c_kazari03_2.webp) center / contain no-repeat;
      }
    }
  }

  .cont05{
    .eng{
      color: #8AC7D2;
      &::before{
        background: url(/taniyama/images/common/star_blue.webp) center / contain no-repeat;
      }
    }
    .box_subtitle{
      span{
        color: #8AC7D2;
      }
    }
    .cont05_img01{
      position: absolute;
      top: 15px;
      left: 35px;
    }
    .bluebg{
      position: absolute;
      width: max(100vw, 100%);
      height: 540px;
      background-color: #8AC7D2;
      opacity: 20%;
      left: 50%;
      bottom: -90px;
      transform: translateX(-50%);
      z-index: -5;
    }

    .cont05_flex{
      margin: 60px 0 130px;
      .flexbox{
        justify-content: center;
        column-gap: 70px;
      }
      .box{
        display: flex;
        background-color: #fff;
        column-gap: 10px;
        border-radius: 20px;
        width: 564px;
        height: 133px;
        align-items: flex-end;
        filter:drop-shadow(0px 10px 14px rgba(0, 0, 0, 0.07));
      }
      .textbox{
        margin-left: -20px;
      }
      .box_eng{
        font-family: 'Inter', sans-serif;
        font-size: 36px;
        font-weight: 300;
        color: #7CBDB0;
        line-height: 1;
        margin-bottom: 5px;
        letter-spacing: 0.2em;
      }
      .blue{
        color: #5A9AA5;
      }
      .box_text{
        font-weight: 500;
        padding-left: 20px;
        margin-bottom: 5px;
      }
      .about_wrapper{
        display: flex;
        justify-content: flex-start;
        margin-bottom: 15px;
        padding-left: 20px;
      }
      .about_btn{
        background-color: transparent;
        font-size: 24px;
        display: flex;
        flex-direction: column;
        padding-right: 40px;
        height: initial;
        border-radius: 0;
        padding: 0;
        width: initial;
        &::before{
          right: -50px;
          width: 31px;
          height: 47px;
          background: url(/taniyama/images/index/c_yajirushi.webp) center / contain no-repeat;
        }
        span{
          font-size: 14px;
          font-weight: bold;
        }
      }
      .o_btn::before{
        background: url(/taniyama/images/index/o_yajirushi.webp) center / contain no-repeat;
      }
    }
  }

  .cont06{
    margin-bottom: 300px;

    .eng{
      color: #6EC8AF;
      &::before{
        background: url(/taniyama/images/common/star_green.webp) center / contain no-repeat;
      }
    }
    .box_subtitle{
      span{
        color: #6EC8AF;
      }
    }

    .flexbox {
      display: flex;
      justify-content: flex-start;
      align-items: flex-start;
      .balloon01 {
        position: absolute;
        width: 226px;
        height: 194px;
        top: 120px;
        left: 10px;
        z-index: 4;
      }
      .balloon02 {
        position: absolute;
        width: 252px;
        height: 252px;
        bottom: 15px;
        left: 83px;
        z-index: 3;
      }
      .balloon03 {
        position: absolute;
        width: 216px;
        height: 257px;
        bottom: 0;
        right: 0;
        z-index: 3;
      }
    }

    .cont06_bottom{
      position: absolute;
      top: 320px;
      left: 50%;
      transform: translateX(-50%);
      .gridbox{
        column-gap: 25px;
      }
      .box{
        background-color: #fff;
        border-radius: 20px;
        max-width: 370px;
        height: 666px;
        padding: 30px 35px 20px;
        display: flex;
        flex-direction: column;
      }
      .cont06_sub{
        font-size: 18px;
        font-weight: 500;
        text-align: center;
        font-feature-settings: "palt";
      }
      .cont06_title{
        font-size: 28px;
        font-weight: 500;
        line-height: 1.5;
        margin-bottom: 15px;
        text-align: center;
      }
      .cont06_img{
        margin-bottom: 15px;
      }
      .about_wrapper{
        margin-top: auto;
      }
      .about_btn{
        width: 300px;
        background-color: #5C9A89;
        color: #fff;
        &::before{
          background: url(/taniyama/images/index/yajirushi_white.webp) center / contain no-repeat;
        }
      }
    }
    .greenbg{
      position: absolute;
      width: max(100vw, 100%);
      height: 780px;
      background-color: #6EC8AF;
      opacity: 20%;
      left: 50%;
      top: 270px;
      transform: translateX(-50%);
      z-index: -5;
    }
  }

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

    &::before{
      width: 100vw;
      height: 42.68vw;
      left: 50%;
      transform: translateX(-50%);
      background: url(/taniyama/images/index/sec03_01_sp.webp) center / contain no-repeat;
    }

    .sec03_subtitle{
      font-size: 4.8vw;
      letter-spacing: 0.2em;
      margin-bottom: 3vw;
    }

    .sec03_title{
      font-size: 5.6vw;
      line-height: 1.6;
      margin-bottom: 10vw;
      .small{
        font-size: 5.5vw;
      }
      .orange{
        font-size: 7.5vw;
      }
    }

    .cont01{
      margin-bottom: 13.8vw;
      padding: 0 5vw;

      .menu_box{
        margin-bottom: 8vw;
      }
      .menu_title{
        font-size: 4.8vw;
        padding-left: 1.2em;
        margin-bottom: 3vw;
        &::before{
          font-size: 2.66vw;
        }
      }
      .menu_text{
        flex: 1;
        text-align: center;
        font-size: 3.8vw;
        line-height: 1.3;
        font-feature-settings: "palt";
      }
      .gridbox{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 4vw;
        row-gap: 3.2vw;
      }
      .flexbox{
        width: 100%;
        min-height: 11.2vw;
        column-gap: 1vw;
        padding-right: 6vw;
        padding-bottom: 3vw;
        &::before{
          width: 5.33vw;
          height: 5.33vw;
          transform: translateY(30%);
        }
      }
      .menu_icon{
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 8vw;
        img{
          width: auto;
          height: auto;
          max-width: 7vw;
          max-height: 9.4vw;
          object-fit: contain;
        }
      }
    }

    /* ---------- cont02 ---------- */
    .cont02{
      margin-bottom: 13.33vw;
      padding: 0 5.33vw;

      .flexbox{
        flex-direction: column;
        row-gap: 6.4vw;
        column-gap: 0;
      }
      .left img{
        width: 100%;
        height: auto;
      }
      .right{
        display: flex;
        column-gap: 3.2vw;
        .about_wrapper{
          flex: 1;
          &:nth-of-type(1){
            margin-bottom: 0;
          }
        }
        .about_btn{
          width: 100%;
          height: 14.66vw;
          border-width: 2px;
          font-size: 4vw;
          padding-right: 6.4vw;
          padding: 0 6vw 0 0;
          justify-content: center;
          width: 43vw;
          &::before{
            width: 8vw;
            height: 8vw;
            right: 1vw;
          }
        }
      }
    }

    /* ---------- cont03〜cont06 共通 ---------- */
    .cont03, .cont04, .cont05, .cont06 {
      margin: 0 auto 40vw;

      /* 上段：見出し → 画像 → 本文 → ボタン の順に並べ替え */
      > .flexbox {
        flex-direction: column;
        column-gap: 0;
        margin-bottom: 0;
        align-items: stretch;

        > .textbox {
          display: contents;
        }
        > .imagebox {
          order: 1;
          flex: initial;
          width: 91vw;
          max-width: 100vw;
          margin-top: 5vw;  
        }
        > .textbox > .box_text {
          order: 2;
          margin-top: 2vw;
          padding: 0 5vw;
          text-align: justify;
        }
        > .textbox > .about_wrapper {
          order: 3;
          display: flex;
          justify-content: center;
          padding: 0 5vw;
        }
      }

      .eng{
        text-align: center;
        font-size: 4.8vw;
        padding-left: 0;
        margin-bottom: 0vw;
        &::before{
          position: static;
          display: inline-block;
          vertical-align: middle;
          width: 4vw;
          height: 4vw;
          margin-right: 0.4em;
          transform: none;
          margin-bottom: 1vw;
        }
      }
      .box_title{
        font-size: 8vw;
        line-height: 1.4;
        text-align: center;
        margin-bottom: 3vw;
      }
      .box_subtitle{
        font-size: 5.5vw;
        line-height: 1.3;
        text-align: center;
        margin-bottom: 0;
        span{
          font-size: 7vw;
        }
      }
      .main_img{
        height: auto;
      }
      .box_text{
        font-size: 4vw;
        line-height: 2;
      }
      .gridbox{
        grid-template-columns: 1fr;
        gap: 10vw;
        max-width: 100%;
        padding: 0 5vw;
      }
    }

    /* ---------- cont03 ---------- */
    .cont03{
      position: relative;
      &::after{
          content: "";
          position: absolute;
          width: 45.8vw;
          height: 22.9vw;
          bottom: -30vw;
          right: 8vw;
          background: url(/taniyama/images/index/cont02_kazari02_sp.webp) center / contain no-repeat;
        }
      .flexbox{
        .imagebox{
          align-self: flex-end;
          margin-right: calc(50% - 50vw);
        }
      }
      .balloon{
        width: 40vw;
        height: 40vw;
        font-size: 4.8vw;
        bottom: 6vw;
        left: -5vw;
      }
      .cont03_img01{
        width: 18.6vw;
        height: auto;
        bottom: 0vw;
        left: -7vw;
        min-width: initial;
      }
      .cont03_img02{
        width: 35vw;
        height: auto;
        top: 21vw;
        left: -2vw;
        min-width: initial;
      }
      .bottom_title{
        font-size: 4.8vw;
        text-align: center;
        padding-left: 0;
        margin: 10vw 0;
        span{
          font-size: 7.5vw;
        }
        &::before{
          width: 96vw;
          height: 4.8vw;
          bottom: -5vw;
          transform: initial;
          left: initial;
          right: 0;
          background: url(/taniyama/images/index/cont02_kazari01_sp.webp) center / contain no-repeat;
        }
      }
      .gridbox{
        justify-items: center;

        .card_img{
          width: 72vw;
          height: auto;
          aspect-ratio: 371 / 195;
          overflow: hidden;
          border-radius: 50vh 50vh 0 0;
          font-size: 0; 
          img{
            display: block;
            width: 100%;
            object-fit: cover;
            border-radius: 0;  
          }
        }

        .card_body{
          width: 72vw;
          height: auto;
          min-height: 34vw;
          padding: 4vw 8vw 9vw;
          border-radius: 0 0 50vh 50vh;
        }

        .card_sub{
          font-size: 3.8vw;
          margin-bottom: 1.33vw;
        }
        .card_title{
          font-size: 4.8vw;
        }
        .card_arrow{
          right: 15vw;
          bottom: -6vw; 
          width: 9.6vw;
          height: auto;
          img{
            display: block;
            width: 100%;
            height: auto;
          }
        }
      }
      .pinkbg{
        top: 81vw;
        bottom: -20vw;
        height: auto;
      }
    }

    /* ---------- cont04 ---------- */
    .cont04{
      .flexbox{
        .imagebox{
          align-self: flex-start;
          margin-left: calc(50% - 50vw);
        }
      }
      .about_btn{
        width: 100%;
        max-width: 74.66vw;
        height: 14.66vw;
        font-size: 4.26vw;
        margin-top: 8vw;
        &::before{
          width: 8vw;
          height: 12vw;
          right: 3.2vw;
        }
      }
      .balloon01_wrap{
        width: 34.1vw;
        height: 34.1vw;
        right: -6vw;
        bottom: 35vw;
        &::after{
          width: 50.6vw;
          height: 50.6vw;
          left: -23vw;
          top: 21vw;
        }
      }
      .baloon01{
        font-size: 4.8vw;
        span{
          font-size: 5vw;
        }
        &::before{
          width: 12vw;
          height: 12vw;
          right: 10vw;
          top: -3vw;
        }
      }
      .baloon02{
        width: 26.4vw;
        height: 26.4vw;
        left: 26.4vw;
        bottom: -4vw;
        font-size: 4.8vw;
        span{
          font-size: 5vw;
        }
        &::before{
          width: 21vw;
          height: 16vw;
          left: -3vw;
          top: -6vw;
        }
      }
      .baloon03{
        width: 37.3vw;
        height: 37.3vw;
        right: -6vw;
        bottom: -6vw;
        font-size: 4.8vw;
        span{
          font-size: 5vw;
        }
        .row{
          font-size: 3.46vw;
        }
        &::before{
          width: 16vw;
          height: 22vw;
          right: auto;
          left: -2vw;
          bottom: auto;
          top: -7vw;
          background: url(/taniyama/images/index/c_kazari03.webp) center / contain no-repeat;
        }
      }
      .orangebg{
        top: 77vw;
        bottom: -20vw;
        height: auto;
      }
    }

    /* ---------- cont05 ---------- */
    .cont05{

      .flexbox{
        .imagebox{
          align-self: flex-end;
          margin-right: calc(50% - 50vw);
        }
      }

      .cont05_img01{
        width: 49vw;
        min-width: initial;
        height: auto;
        top: -1vw;
        left: -7vw;
      }
      .cont05_flex{
        margin: 10.66vw 0 0;
        padding: 0 5.33vw;

        .flexbox{
          flex-direction: column;
          row-gap: 13.33vw;
          column-gap: 0;
          margin-bottom: 0;
        }
        .box{
          flex-direction: column;
          align-items: center;
          width: 88vw;
          height: auto;
          column-gap: 0;
          padding: 0 5vw 5vw;
        }
        .image{
          margin-top: -10vw;
          margin-bottom: 2vw;
          img{
            width: 34.13vw;
            height: auto;
          }
        }
        .textbox{
          margin-left: 0;
          text-align: center;
        }
        .box_eng{
          font-size: 7vw;
          letter-spacing: 0.2em;
          margin-bottom: 1.6vw;
          text-align: center;
        }
        .box_text{
          font-size: 4vw;
          text-align: center;
          padding-left: 0;
          margin-bottom: 2vw;
          font-feature-settings: "palt";
        }
        .about_wrapper{
          justify-content: center;
          padding-left: 0;
          margin-bottom: 0;
        }
        .about_btn{
          flex-direction: row;
          align-items: center;
          font-size: 5vw;
          padding-right: 10.66vw;
          &::before{
            right: 0;
            width: 10vw;
            height: 10vw;
            top: 40%;
          }
        }
      }
      .bluebg{
        top: 78vw;
        bottom: -20vw;
        height: auto;
      }
    }

    /* ---------- cont06 ---------- */
    .cont06{
      margin-bottom: 21.33vw;

      .flexbox{
        .imagebox{
          align-self: flex-start;
          margin-left: calc(50% - 50vw);
        }
      }

      .cont06_bottom{
        position: static;
        transform: none;
        top: auto;
        left: auto;
        margin-top: -20vw;
        padding: 0 5vw;

        .gridbox{
          grid-template-columns: 1fr;
          column-gap: 0;
          row-gap: 6.4vw;
          padding: 0;
        }
        .box{
          max-width: 100%;
          height: auto;
          padding: 6.4vw 3vw 8vw;
        }
        .cont06_sub{
          font-size: 4vw;
        }
        .cont06_title{
          font-size: 6.5vw;
          margin-bottom: 3vw;
        }
        .cont06_img{
          width: 79.4%;
          margin: 0 auto 3vw;
          img{
            width: 100%;
            height: auto;
          }
        }
        .cont06_text{
          font-size: 4vw;
          line-height: 2;
        }
        .about_wrapper{
          display: flex;
          justify-content: center;
          margin-top: 6.4vw;
        }
        .about_btn{
          width: 79vw;
          height: 14vw;
          font-size: 4.8vw;
          &::before{
            width: 10vw;
            height: 13vw;
            right: 3.2vw;
          }
        }
      }
      .greenbg{
        top: 74vw;
        bottom: -20vw;
        height: auto;
      }
    }
  }
}

/* sec04 */
.sec04{
  margin-bottom: 215px;
  .sec04_title{
    text-align: right;
    padding-top: 250px;
    margin-right: 165px;
    margin-bottom: 200px;
    position: relative;
    &::before{
      content: "";
      position: absolute;
      left: -80px;
      bottom: 50%;
      transform: translateY(50%);
      width: 646px;
      height: 504px;
      z-index: -1;
      background: url(/taniyama/images/index/sec04_title_bg.webp) center / contain no-repeat;
    }
  }
  .cont01, .cont02, .cont03{
    margin-bottom: 135px;
    .box{
      border: 1px solid #444;
      border-radius: 40px;
      max-width: 1200px;
      margin: 0 auto;
      position: relative;
      &::before{
        content: "01";
        position: absolute;
        right: 25px;
        top: -100px;
        width: 166px;
        height: 166px;
        border-radius: 50vh;
        background-color: #F3A130;
        color: #fff;
        font-size: 43px;
        font-weight: lighter;
        font-family: serif;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        font-family: 'Zen Maru Gothic', sans-serif;
      }
    }
    .flexbox{
      padding: 65px;
      position: relative;
      align-items: flex-start;
      justify-content: flex-end;
      column-gap: 50px;
    }
    .textbox{
      width: 100%;
      max-width: 520px;
    }
    .imagebox{
      width: 100%;
      max-width: 500px;
    }
    .box_title{
      font-size: 32px;
      font-weight: 500;
      line-height:1.8;
      margin-bottom: 30px;

      span{
        color: #F08B00;
        font-weight: 500;
      }
    }
    .circle01{
      position: absolute;
      top: 0;
      left: 0;
    }

    .circle02{
      position: absolute;
      top: 15px;
      right: 100px;
      width: 200px;
      height: 200px;
      background-color: rgba(255,251,217,0.9);
      border-radius: 50vh;
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      font-size: 20px;
      font-weight: 500;
      &::before{
        content: "";
        position: absolute;
        width: 118px;
        height: 105px;
        background-color: rgba(255,251,217,0.8);
        right: -65px;
        bottom: -55px;
        border-radius: 50vh;
      }
      &::after{
        position: absolute;
        content: "";
        width: 95px;
        height: 116px;
        right: -60px;
        bottom: -15px;
        z-index: 2;
        background: url(/taniyama/images/index/feature_02.webp) center / contain no-repeat;
      }
    }

    .circle03{
      position: absolute;
      bottom: 20px;
      right: 40px;
    }
  }
  .cont02{
    .box::before{
      content: "02";
      left: 25px;
      top: -100px;
      background-color: #DFD04F;
    }
    .box_title{
      span{
        color: #DFD04F;
      }
    }
  }
  .cont03{
    .box::before{
      content: "03";
      right: 25px;
      top: -100px;
      background-color: #EE9581;
    }
    .box_title{
      span{
        color: #EE9581;
      }
    }
  }


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

    .inner{
      padding: 0 5vw;
    }
    .sec04_title {
      width: 100%;
      margin: 0 auto 13.8vw;
      padding-top: 0;
      text-align: center;
      img{
        width: 70%;
        min-width: 50%;
        margin: 0 auto;
      }
      &::before{
        left: -5vw;
        bottom: 50.5%;
        transform: translateY(14%);
        width: 56vw;
        height: 44vw;
        background: url(/taniyama/images/index/sec04_title_bg_sp.webp) center / contain no-repeat;
      }
    }

    /* ---- cont01・cont02 共通 ---- */
    .cont01, .cont02, .cont03 {
      margin-bottom: 13.8vw;

      .box { max-width: 100%; }
      .box {
        display: flex;
        flex-direction: column;
        max-width: 100%;
        padding: 5vw 4vw 10vw;
        &::before{
          right: 8vw;
          top: -8vw;
          width: 16.5vw;
          height: 16.5vw;
          font-size: 5.5vw;
        }
        .circle01{
          width: 59.7vw;
          left: -5vw;
          top: -5vw;
        }

        .circle02{
          width: 41.2vw;
          height: 41.2vw;
          font-size: 4.8vw;
          top: -5vw;
          right: 10vw;
          &::before{
            width: 27.2vw;
            height: 24vw;
            right: -8vw;
            bottom: -19vw;
          }
          &::after{
            width: 21.3vw;
            height: 26.1vw;
            right: -6vw;
            bottom: -14vw;
          }
        }

        .circle03{
          width: 43.7vw;
          height: 43.7vw;
          bottom: initial;
          top: 2vw;
          right: 1vw;
        }
      }

      .textbox {
        display: contents;
        margin-top: 0;
      }

      .box_title     { order: 1; }
      .imagebox      { order: 2; }
      .box_text      { order: 3; }
      .about_wrapper { order: 4; }

      .flexbox {
        flex-direction: column;
        padding: 3vw 0vw 0vw;
        justify-content: flex-start;
        align-items: center;
      }
      .textbox { max-width: 100%; }
      .imagebox {
        position: relative;
        left: auto; right: auto; bottom: auto;
        max-width: 100%;
        margin: 0 auto 5vw;
      }
      .imagebox img { width: 100%; height: auto; }

      .box_title {
        font-size: 6vw;
        margin-bottom: 5vw;
        padding-left: 0;
        text-align: center;
        &::before {
          right: initial;
          left: 0;
          top: 50%;
          transform: translateY(-50%);
          width: 18.7vw;
          height: 18.7vw;
          font-size: 6.4vw;
        }
      }
      .box_text { margin-bottom: 0; text-align: justify;}
      .about_btn { width: 78vw; font-size: 4.8vw; }
    }

    .cont02{
      .box::before{
        content: "02";
        left: 8vw;
      }
    }
    .cont03{
      .box::before{
        content: "03";
      }
    }


  }
}

/* sec05 */
.sec05 {
  background-color: #F5F5F5;
  margin-bottom: 120px;
  position: relative;
  isolation: isolate;
  --wave: 140px;
  --wave-drop: 80px;
  background-color: transparent;
  margin-bottom: 360px;

  &::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--wave-drop) - var(--wave));
    bottom: calc(var(--wave) * -1);
    z-index: -1;
    pointer-events: none;
    background-color: #FEF9F4;
    -webkit-mask:
      url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201440%20100'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0,100%20L0,50%20Q360,100%20720,50%20T1440,50%20L1440,100%20Z'%20fill='black'/%3E%3C/svg%3E") top / 100% var(--wave) no-repeat,
      linear-gradient(#000, #000) center / 100% calc(100% - var(--wave) * 2) no-repeat,
      url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201440%20100'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0,0%20L0,50%20Q360,0%20720,50%20T1440,50%20L1440,0%20Z'%20fill='black'/%3E%3C/svg%3E") bottom / 100% var(--wave) no-repeat;
    mask:
      url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201440%20100'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0,100%20L0,50%20Q360,100%20720,50%20T1440,50%20L1440,100%20Z'%20fill='black'/%3E%3C/svg%3E") top / 100% var(--wave) no-repeat,
      linear-gradient(#000, #000) center / 100% calc(100% - var(--wave) * 2) no-repeat,
      url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201440%20100'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0,0%20L0,50%20Q360,0%20720,50%20T1440,50%20L1440,0%20Z'%20fill='black'/%3E%3C/svg%3E") bottom / 100% var(--wave) no-repeat;
  }

  &::after{
    content: "";
    position: absolute;
    right: 170px;
    bottom: -240px;
    width: 641px;
    height: 210px;
    background: url(/taniyama/images/index/sec05_kazari.webp) center / contain no-repeat;
  }

  .inner {
    padding: 0;
    max-width: initial;
  }

  .sec_body{
    position: relative;
  }

  .flexbox{
    column-gap: 160px;
    margin-bottom: 100px;
    position: relative;
    &::before{
      content: "";
      position: absolute;
      left: 52%;
      top: 50%;
      transform: translate(-50%, -50%);
      width: 192px;
      height: 192px;
      background: url(/taniyama/images/index/batu.webp) center / contain no-repeat;
    }
  }

  .left, .right{
    text-align: center;
    line-height: 1.5;
    font-size: 34px;
    font-weight: 500;
    position: relative;
    z-index: 1;
    span {
      font-size: 50px;
      font-weight: bold;
    }
  }

  .left{
    &::before{
      position: absolute;
      content: "CLINIC";
      font-size: 92px;
      font-weight: 300;
      color: #F08B00;
      opacity: 30%;
      top: -70px;
      left: -180px;
      font-family: 'Inter', sans-serif;
      letter-spacing: 0.15em;
      z-index: -1;
    }
  }

  .right{
    &::after{
      position: absolute;
      content: "DEVICES";
      font-size: 92px;
      font-weight: 300;
      color: #F08B00;
      opacity: 30%;
      bottom: -70px;
      right: -240px;
      font-family: 'Inter', sans-serif;
      letter-spacing: 0.15em;
      z-index: -1;
    }
  }

  .textbox{
    padding: 0 170px 50px;
    margin: 0 auto;
    max-width: 1100px;
  }

  /* ---- スライダー本体 ---- */
  .slider05 {
    position: relative;
    width: 100%;
    overflow: hidden;

    & .slider05_slide {
      position: absolute;
      top: 50%;
      left: 0;
      width: 710px;
      aspect-ratio: 3 / 2;
      overflow: hidden;
      border-radius: 8px;
      opacity: 0;
      transform: translate(-50%, -50%);
      transform-origin: center center;
      will-change: transform, opacity;
      backface-visibility: hidden;
      box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.3);

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

  .slider05_link {
    --btn-y: 86%;
    position: absolute;
    z-index: 300;
    top: var(--btn-y);
    left: calc(50% + 330px);
    transform: translate(-50%, -50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 265px;
    height: 265px;
    border-radius: 50%;
    background: #FBDDA2;
    color: #4d453b;
    text-align: center;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.35);

    .slider05_link_arrow {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: #F08B00;
      color: #fff;
      font-size: 18px;
      line-height: 1;
    }
  }


  @media screen and (max-width: 768px) {
    --sp-caption: 17vw;

    --wave: 23vw;
    --wave-drop: 33vw;
    padding: 10.66vw 0 0;
    margin-bottom: 36vw;
    &::before{
      @include sec05_wave(50, 150); 
    }

    &::after{
      right: 0;
      left: 8vw;
      bottom: -29vw;
      width: 83.8vw;
      height: 29vw;
      background-position: center bottom;
      background: url(/taniyama/images/index/sec05_kazari_sp.webp) center / contain no-repeat;
    }

    .flexbox{
      flex-direction: column;
      column-gap: 0;
      row-gap: 10vw;
      margin-bottom: 10.66vw;
      &::before{
        left: 50%;
        width: 17vw;
        height: 17vw;
        background: url(/taniyama/images/index/batu_sp.webp) center / contain no-repeat;
      }
    }

    .left, .right{
      font-size: 5.33vw;
      span{
        font-size: 8vw;
      }
    }

    .left{
      &::before{
        font-size: 14vw;
        top: -11vw;
        left: -19vw;
        opacity: 15%;
      }
    }

    .right{
      &::after{
        opacity: 15%;
        font-size: 14vw;
        bottom: -11vw;
        right: -23vw;
        white-space: nowrap; 
      }
    }

    .textbox{
      max-width: 100%;
      padding: 0 5vw 8vw;
      font-size: 4.26vw;
      line-height: 2.2;
    }

    .slider05{
      .slider05_slide{
        border-radius: 0;
        box-shadow: none; 
      }
    }

    .slider05_link{
      top: auto;
      bottom: var(--sp-caption); 
      left: auto;
      right: 6vw;
      transform: translateY(50%);
      gap: 1.6vw;
      width: 30vw;
      height: 30vw;
      font-size: 4vw;
      line-height: 1.5;
      font-weight: 500;
      box-shadow: 0 2.13vw 5.33vw -2.66vw rgba(0, 0, 0, 0.35);

      .slider05_link_arrow{
        width: 5.33vw;
        height: 5.33vw;
        font-size: 3.2vw;
      }
    }
    .slider05_caption{
      padding-top: 2vw;
      padding-left: 7vw;
      font-size: 4vw;
      line-height: 1.5;
    }
  }
}

/* sec06 */
.sec06{
  margin-bottom: 260px;
  position: relative;

  .sec06_title{
    font-weight: 500;
    font-size: 28px;
    line-height: 1.5;
    position: relative;
    bottom: -30px;
    left: 70px;
    z-index: 2;
    span{
      font-size: 52px;
      font-weight: 400;
      color: #ECD300;
      font-family: 'Inter', sans-serif;
      letter-spacing: 0.2em;
    }
  }

  .flexbox{
    column-gap: 80px;
    justify-content: center;
    margin-bottom: 20px;
    align-items: flex-start;
  }

  .imagebox{
    width: 542px;
  }

  .left{
    max-width: 440px;
    margin: 0 auto;
  }

  .name{
    font-weight: 500;
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    padding: 30px 0 20px;
    border-bottom: 2px solid #ECD300;
    .small{
      font-size: 16px;
      font-weight: 500;
      padding-right: 30px;
    }
  }

  .eng{
    text-align: center;
    color: #ECD300;
    font-size: 24px;
    font-family: initial;
    line-height: 1;
    letter-spacing: 0.2em;
  }

  .bottom_box{
    margin-top: 30px;
    .bottom_text{
      font-size: 18px;
      span{
        color: #ECD300;
      }
    }
  }

  .textbox{
    max-width: 510px;
  }

  .box_title{
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 0.2em;
    margin-bottom: 130px;
    position: relative;
    span{
      font-size: 36px;
      font-weight: bold;
    }
    .big02{
      font-size: 32px;
      font-weight: bold;
    }
    &::before{
      content: "";
      position: absolute;
      width: 609px;
      height: 618px;
      top: -110px;
      left: 50%;
      transform: translateX(-41%);
      background: url(/taniyama/images/index/sec06_kazari.webp) center / contain no-repeat;
    }
  }

  .box_text{
    line-height: 3;
    margin-bottom: 50px;
  }

  .about_btn{
    font-size: 20px;
  }

  .bg_box{
    position: absolute;
    width: max(100vw, 100%);
    height: 640px;
    background-image: linear-gradient(
      to top,
      rgba(254, 253, 229, 0)    0%,
      rgba(254, 253, 229, 0.77) 40%,
      rgba(254, 253, 229, 1)    100%
    );
    left: 50%;
    top: 350px;
    transform: translateX(-50%);
    z-index: -5;
  }

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

    .sec06_title{
      font-size: 5.33vw;
      line-height: 1.4;
      left: 2vw;
      bottom: -5vw;
      span{
        font-size: 9.6vw;
      }
    }

    .flexbox{
      flex-direction: column;
      column-gap: 0;
      align-items: stretch;
      margin-bottom: 0;
    }

    .imagebox{
      width: 100%;
      img{
        width: 100%;
        height: auto;
      }
    }

    .left{
      max-width: 88%;
      margin: 0 auto;
    }

    .name{
      font-size: 5vw;
      padding: 3vw 0;
      margin-bottom: 3vw;
      .small{
        font-size: 4vw;
        padding-right: 4vw;
      }
    }

    .eng{
      font-size: 4.8vw;
      letter-spacing: 0.15em;
    }

    .bottom_box{
      margin-top: 4.8vw;
      padding-left: 4vw;
      .bottom_text{
        font-size: 4.26vw;
        line-height: 2;
        span{
          padding-right: 0.3em;
        }
      }
    }

    .textbox{
      max-width: 100%;
      padding: 0 1.33vw;
    }

    .box_title{
      font-size: 5.5vw;
      line-height: 1.7;
      letter-spacing: 0.1em;
      margin: 5vw 0 6.4vw;
      span{
        font-size: 7vw;
      }
      .big02{
        font-size: 7vw;
      }
      &::before{
        width: 60.2vw;
        height: 61.6vw;
        top: auto;
        bottom: -24vw;
        left: auto;
        right: -5vw;
        transform: none;
        background: url(/taniyama/images/index/sec06_kazari_sp.webp) center / contain no-repeat;
      }
    }

    .box_text{
      font-size: 4vw;
      line-height: 2.2;
      margin-bottom: 8vw;
    }

    .about_wrapper{
      display: flex;
      justify-content: center;
    }

    .about_btn{
      width: 74.66vw;
      height: 14.66vw;
      font-size: 4.8vw;
      &::before{
        width: 8vw;
        height: 12vw;
        right: 3.46vw;
      }
    }

    .bg_box{
      width: 100vw;
      height: 205vw;
      top: 48vw;
    }
  }
}

/* sec07 */
.sec07 {
  margin-bottom: 150px;
  .inner{
    padding: 0 120px;
  }
  .news_body {
    display: flex;
    justify-content: center;
    column-gap: 50px;
    align-items: stretch; 
  }

  .news_col {
    display: flex;
    flex-direction: column;
  }
  .news_col:first-child {
    width: 35%;
    .about_btn{
      width: 260px;
    }
  }
  .news_col:last-child {
    width: 60%;
    .about_btn{
      width: 300px;
    }
  }

  .col_title {
    font-size: 32px;
    letter-spacing: 0.1em;
    margin-bottom: 35px;
    color: #F08B00;
    border-bottom: 2px solid #444;
    padding-bottom: 13px;
  }

  .news_list {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
    display: flex;
    flex-direction: column;
    row-gap: 28px;
  }

  .blog_list {
    flex-direction: row;
    column-gap: 35px;

    .news_item {
      width: 298px;
    }
  }

  .news_item a {
    display: block;
    color: #333333;
    text-decoration: none;
    transition: opacity 0.3s;
  }
  .news_item a:hover {
    opacity: 0.7;
  }

  .news_thumb {
    width: 298px;
    height: 152px;
    margin-bottom: 12px;
    background-color: #d9d9d9;
    overflow: hidden;

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

  .news_date {
    margin: 0 0 6px;
    letter-spacing: 0.1em;
    color: #777777;
  }

  .news_text {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
  }

  .about_wrapper {
    margin-top: auto;
  }

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

    .inner { padding: 0 5.33vw; }

    /* 横並び → 縦並び */
    .news_body {
      flex-direction: column;
      column-gap: 0;
    }

    .news_col:first-child {
      width: 100%;
      margin-bottom: 13.8vw;
      .about_btn { width: 69.33vw; }
    }
    .news_col:last-child {
      width: 100%;
      .about_btn { width: 80vw; }
    }

    .col_title {
      font-size: 6.8vw;
      letter-spacing: 0.2em;
      margin-bottom: 8vw;
      border-bottom: 1px solid #444;
    }

    .news_list {
      margin: 0 0 10.67vw;
      row-gap: 7.47vw;
    }

    .blog_list {
      column-gap: 3vw;
      .news_item { width: 100%; }
    }

    .news_thumb {
      width: 100%;
      height: auto;
      aspect-ratio: 160 / 120;
    }

    .news_date {
      margin: 0 0 1.6vw;
      font-size: 3.4vw;
    }

    .news_text {
      font-size: 4vw;
    }

    .about_wrapper{
      margin: 0 auto;
    }
    .about_btn {
      height: 18.67vw;
      &::before { right: 2.67vw; }
    }
  }
}