@charset "utf-8";
/*------------------------------------------------------------
	TOP
------------------------------------------------------------*/

.kv{
  position: relative;
  overflow: hidden;
}

.kv::before{
  content:"";
  position:absolute;
  inset: 0 0 auto 0;
  height: 130px;
  background: #C9D1E0;
  background: linear-gradient(0deg,rgba(201, 209, 224, 0) 50%, rgba(13, 100, 242, 1) 100%);
  z-index: 0;
  opacity: .1;
}

.kv_content{
  position: relative;
  z-index: 1;
}

.kv_inner{
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 50px 24px 120px;
  text-align: center;
}

.kv_illust{
  position: absolute;
  top: 50%;
  transform: translateY(-55%);
  width: min(260px, 28vw);
  height: auto;
  z-index: 0;           
  pointer-events: none;
  user-select: none;
}

.kv_illust--left{
  left: -30px;
  top: 55%;
}

.kv_illust--right{
  right: -30px;
  top: 45%;
}
.kv_illust-row{
  height: 0;
}

.title{
  position: relative;
  z-index: 1;
  margin: 0;
}


.text-lead{
    font-size: 24px;
    font-family: "Noto Sans JP", sans-serif;
    letter-spacing: .05em;
    margin-bottom:15px;
}

.text-main{
  display: flex;
  flex-direction: column;     
  align-items: center;       
  justify-content: center; 
  gap: 5px;
}

.text-main01{
  display: inline-flex;
  justify-content: center;
}

.text-main02{
display: inline-flex;    
  align-items: center;     
  gap: 12px;
 line-height: 1;
    font-size: 70px;
    font-weight: 800;
    font-family: "Noto Sans JP", sans-serif;
    color: var(--main-color);
}

.text-main02::before {
    content: "";
    width: 80px;
    height: 80px;
    background: url("/jp/-/media/medicom/clinics/diagnosis2/icon-title.svg") no-repeat center center;
    background-size: contain;
    flex-shrink: 0;
}

.char-row{
  display: flex;
}

.char-cell{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  font-family: "Noto Sans JP", sans-serif;
  border: 1px solid var(--main-color);
  border-right: none;   
  font-size: 36px;
  color: var(--main-color);
}

.char-cell:last-child{
  border-right: 1px solid var(--main-color);
}



.kv_desc{
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 24px auto 0;
  line-height: 1.9;
  font-size:18px;
}

.kv_desc .em{
  font-weight: bold;
  color: var(--main-color);
}

.kv_att{
  font-size: 22px;
  line-height: 1.6;
  font-weight: bold;
  margin-top:20px;
}





p.quote{
  position: relative;
  z-index: 1;
  font-size: 12px;
  line-height: 1.4!important;
  max-width: 320px;
  margin: 22px 0 0 auto; 
  text-align: left;
  transform: translateY(-65px);
  text-indent: -1em;
  padding-left:1em;
}

.footer-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-shape svg {
    position: relative;
    display: block;
    width: calc(280% + 1.3px);
    height: 200px;
}

.footer-shape .shape-fill {
    fill: var(--main-color);
}




/*------------------------------------------------------------
	button
------------------------------------------------------------*/

.btn-green{
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.btn-green a{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 400px;
  height: 70px;

  background: var(--btn-bg-color-green);
  color: #fff;
  text-decoration: none;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 24px;
  font-weight: 700;

  border-radius: 999px; /* ラウンド */
  box-shadow: 0 8px 0 rgba(0,0,0,.15); /* 下影 */

  transition: all .2s ease;
}

.btn-green a span{
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .1em;
  margin-top:8px;

}

.btn-green a:hover{
  transform: translateY(2px);
  box-shadow: 0 4px 0 rgba(0,0,0,.15);
}

.btn-green a:active{
  transform: translateY(6px);
  box-shadow: 0 2px 0 rgba(0,0,0,.15);
}




@media (max-width: 1330px){

  .kv_illust--left{
    left: 35px;        
  }
  .kv_illust--right{
    right: 35px; 
  }

  .kv_illust{
    width: clamp(160px, 20vw, 200px);
  }
  .kv_desc{
    font-size:clamp(12px, 1.5vw, 16px);
  }
}


/* ===== MID（1040〜981）: 崩れ対策の中間レイアウト ===== */
@media (max-width: 1040px){

  /* 余白を少し詰める（中身がはみ出しにくく） */
  .kv_inner{
    padding-left: 24px;
    padding-right: 24px;
  }

  /* イラスト：小さめ＋位置を可変にして破綻を防ぐ */
  .kv_illust{
    width: clamp(140px, 16vw, 190px);
  }

  .kv_illust--left{
    left: clamp(10px, 2.2vw, 24px);
  }
  .kv_illust--right{
    right: clamp(10px, 2.2vw, 24px);
  }
  .char-cell{
    width: clamp(32px, 6vw, 42px);
    height: clamp(32px, 6vw, 42px);
    font-size: clamp(24px, 6vw, 32px);
  }

  .text-main02{
    font-size: clamp(52px, 6vw, 62px);
  }

  .text-main02::before {
    width: clamp(52px, 6vw, 62px);
    height:clamp(52px, 6vw, 62px);
  }

  /* テキスト：幅を絞って、イラストと干渉しにくく */
  .kv_desc{
    max-width: 620px;         /* ここは実際のデザインに合わせて微調整OK */
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(12px, 1.3vw, 15px);
    line-height: 1.75;
  }
  .kv_att{
    font-size: clamp(12px, 1.7vw, 16px);
    line-height: 1.75;
  }

  /* 引用がレイアウトを押しやすいなら少し抑える */
  p.quote{
    max-width: 250px;
   font-size:10px;
  }
}




/* ===== SP ===== */
@media (max-width: 980px){


.text-main02{
    font-size:var(--26px);
    gap:var(--6px);
}
.text-main02::before {
    width: var(--32px);
    height: var(--32px);
}
.char-cell{
    width:var(--22px);
    height:var(--22px);
    font-size:var(--18px);
}
.text-lead{
    font-size: var(--14px);
}
.kv_desc {
    max-width: 100%;
    width: 100%;
    font-size: var(--13px);
    text-align:left;
    line-height: 1.8;
}
.kv_att {
    font-size: var(--15px);
}
p.quote{
    font-size: var(--10px);
    transform: translateY(0);
    max-width: 100%;
    margin:var(--22px) 0 0 auto;
}

  .kv_inner{
    padding: var(--20px) var(--16px)var(--110px);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  /* absolute解除して通常配置に戻す */

.kv_illust-row{
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(12px, 3vw, 24px);
    margin: 22px 0 0px;
  }

.kv_illust.kv_illust--left{
    position: static;
    transform: none;
    width: clamp(120px, 38vw, 360px);
    max-width: 100%;
    height:auto;
    margin:var(--10px);
  }

  .kv_illust.kv_illust--right{
    position: static;
    transform: none;
    width: clamp(180px, 43vw, 400px);
    max-width: 100%;
    height:auto;
    margin:var(--10px);
  }


  .quote{
    max-width: 100%;
    margin: 18px auto 0;
    text-align: center;
    transform: none;
  }
  .btn-green{
    margin-top: var(--20px);
  }
  .btn-green a{
    width: var(--280px);
        font-size: var(--16px);
        height: var(--52px);
    
}
 .btn-green a span{
    font-size: var(--11px);
}

.footer-shape svg {
  height:var(--100px);
}

}







