@charset "utf-8";
/*------------------------------------------------------------
	index
------------------------------------------------------------*/

#main {
    position:relative;
}
.content::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;
}

.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);
}


/*------------------------------------------------------------
	H1
------------------------------------------------------------*/

.title{
  position: relative;
  z-index: 1;
  margin: 0;
  padding-top:50px;
}

.text-main{
  display: flex;
  flex-direction: row;     
  align-items: center;       
  justify-content: center; 
  gap: 10px;
}

.text-main01{
  display: inline-flex;
  justify-content: center;
}

.text-main02{
display: inline-flex;    
  align-items: center;     
  gap: 6px;
 line-height: 1;
    font-size: 30px;
    font-weight: 800;
    font-family: "Noto Sans JP", sans-serif;
    color: var(--main-color);
}

.text-main02::before {
    content: "";
    width: 34px;
    height: 34px;
    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: 32px;
  height: 32px;
  font-family: "Noto Sans JP", sans-serif;
  border: 1px solid var(--main-color);
  border-right: none;   
  font-size: 23px;
  color: var(--main-color);
}

.char-cell:last-child{
  border-right: 1px solid var(--main-color);
}


/*------------------------------------------------------------
	button
------------------------------------------------------------*/

.button-green-rev{
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.button-green-rev button{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 320px;
  height: 70px;
  color: var(--btn-bg-color-green);
  background: #fff;
  border: 2px solid var(--btn-bg-color-green);
  text-decoration: none;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 21px;
  font-weight: 700;

  border-radius: 999px; /* ラウンド */
  box-shadow: 0 8px 0 rgba(0,0,0,.15); /* 下影 */

  transition: all .2s ease;
}


.button-green-rev button:hover{
  transform: translateY(2px);
  box-shadow: 0 4px 0 rgba(0,0,0,.15);
}

.btn-green-rev button:active{
  transform: translateY(6px);
  box-shadow: 0 2px 0 rgba(0,0,0,.15);
}










  .diag{ max-width: 1200px; margin: 0 auto; padding: 50px 40px 200px 40px; position:relative; }
   /*.diag__header{ display:flex; align-items:center; gap:12px; margin-bottom:30px; }
 .diag__progress{ flex:1; height:8px; background:#eee; border-radius:999px; overflow:hidden; }
  .diag__progress-bar{ height:100%; background:#073991; transition: width .25s; }
  .diag__progress-text{ font-size:14px; color:#444; min-width: 80px; text-align:right; display:none;}*/




  /* dashed progress */
.diag__header{ margin-bottom:30px; }

.diag__progress{
  width: 760px;
  max-width: 100%;
  height: 6px;      
  margin: 0 auto;
}

.diag__progress-dashes{
  list-style: none;
  padding: 0;
  margin: 0;

  display: flex;
  gap: 10px;           
  height: 6px;
}

.diag__progress-dashes .dash{
  width: 86px;         
  background: #e6e6e6;   
}

/* すでに通過したダッシュ */
.diag__progress-dashes .dash.is-done{
  background: rgba(7,57,145,.35);
}

/* 現在地（ハイライト） */
.diag__progress-dashes .dash.is-active{
  background: #FF6666;
}

/*
  .q{ display:none; }
  .q.is-active{ display:block; }
*/



/* ===== Question transition ===== */
.diag__body { position: relative; }

/*
.q { display:none; }
.q.is-active{ display:block; }
*/



/* =========================
   初回ロード（is-ready前）
========================= */

/* 質問はJS準備できるまで全部隠す */
#diag:not(.is-ready) .q { display: none; }

/* wipe も準備できるまで絶対出さない */
#diag:not(.is-ready) #diagWipe { display: none !important; }

/* =========================
   JS準備完了（is-ready後）
========================= */

/* 準備完了後：質問はactiveだけ表示 */
#diag.is-ready .q { display: none; }
#diag.is-ready .q.is-active { display: block; }

/* wipe は通常運用に戻す（.is-showの時だけ見える想定） */
#diag.is-ready #diagWipe { display: block; }

/* =========================
   結果遷移ローディング
========================= 
#diagLoading { display: none; }
#diagLoading.is-show { display: block; }
*/


.q.is-anim{
  display:block;
  visibility: hidden; 
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  will-change: opacity, transform;
}

/* 入場：見せる */
.q.is-enter{
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity .32s cubic-bezier(.22,.61,.36,1),
    transform .32s cubic-bezier(.22,.61,.36,1);
  pointer-events: auto;
}

/* 退場：ふわっと消える（上にほんの少し） */
.q.is-leave{
  visibility: visible;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity .24s cubic-bezier(.22,.61,.36,1),
    transform .24s cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
}

/* 動きを減らす設定 */
@media (prefers-reduced-motion: reduce){
  .q.is-enter, .q.is-leave{
    transition: none;
    transform: none;
  }
}






/* Step indicator */
.q__step {
  text-align: center;
  margin-bottom: 16px;
  line-height: 1;
}

.q__step-current {
  font-size: 32px;
  font-weight: 700;
  color:var(--main-color);
  margin-right:-6px;
}

.q__step-total {
  font-size: 20px;
  font-weight: 700;
  color: var(--main-color);
  
}

.diag__progress-dashes .dash.is-done,
.diag__progress-dashes .dash.is-active{
  background: #FF6666;
}

.diag__progress-dashes .dash{
  transition: background-color .25s ease;
}

/* Question title */
.q__title {
  text-align: center;
  font-size: 20px;
  margin-bottom: 24px;
}
.q__title span{
    font-size:15px;
}

.q__att{ font-size:14px; text-align: center; font-weight:600;}

  .q__options{ list-style:none; padding:0; margin:30px 0; display:grid; gap:10px; }


/* =========================
   Option (radio-like) - FULL FX
========================= */

.opt{
  position: relative;
  overflow: hidden;                 /* 波紋/ハイライト用 */
  display:flex;
  align-items:flex-start;
  gap:12px;

  width: 100%;
  text-align: left;
  padding: 14px 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 16px;

  /* “ふわっ”の核 */
  transition:
    background .28s ease,
    border-color .28s ease,
    box-shadow .28s ease,
    transform .10s ease;
  will-change: transform;
}



/* hover（PCだけ気持ちよく）
@media (hover:hover){
  .opt:hover{
    border-color: rgba(7,57,145,.35);
    box-shadow: 0 8px 18px rgba(0,0,0,.06);
    transform: translateY(-1px);
  }
} */

/* 押した瞬間 */
.opt:active{
  transform: scale(.985);
}

/* 選択の “ふわっ” 下地（カード全体） */
.opt::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  /*background: rgba(7,57,145,.08);*/
  opacity:0;
  transform: scale(.98);
  transition: opacity .28s ease, transform .28s ease;
  pointer-events:none;
}

/* “波紋” っぽいリング（派手すぎない版） 
.opt::before{
  content:"";
  position:absolute;
  left: 22px;                     
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(7,57,145,.22);
  transform: translate(-50%,-50%) scale(.2);
  opacity: 0;
  transition: transform .48s ease, opacity .48s ease;
  pointer-events:none;
}*/

/* 選択状態 */
.opt.is-selected{
  border-color: var(--main-color);
  background: rgba(7,57,145,.03);
  box-shadow: 0 0 0 4px rgba(7,57,145,.10);
}

.opt.is-selected::after{
  opacity:1;
  transform: scale(1);
}

/* 波紋（選択された瞬間の感じ） */
.opt.is-selected::before{
  opacity: 1;
  transform: translate(-50%,-50%) scale(18);
}

.opt__text{
    font-size:16px;
    line-height:1.8;
    font-kerning: normal;
    font-feature-settings: "palt" 1;
}

/* ラジオ本体 */
.opt__radio{
  width:18px;
  height:18px;
  border-radius:999px;
  border:2px solid #bdbdbd;
  margin-top: 2px;
  flex: 0 0 auto;
  position: relative;

  background:#fff;
  transition:
    border-color .22s ease,
    box-shadow .22s ease,
    transform .22s ease;
}

/* 選択で外枠を色付け＆ちょいポップ */
.opt.is-selected .opt__radio{
  border-color: var(--main-color);
  box-shadow: 0 0 0 4px rgba(7,57,145,.12);
  transform: scale(1.02);
}

/* 内側ドット：ふわっと出す */
.opt__radio::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width: 8px;
  height: 8px;
  border-radius:999px;
  background: var(--main-color);

  transform: translate(-50%,-50%) scale(.2);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}

.opt.is-selected .opt__radio::after{
  transform: translate(-50%,-50%) scale(1);
  opacity: 1;
}

/* 文字側もほんの少し強調（任意だけど良い） */
.opt.is-selected{
  font-weight: 700;
}




/*  
.opt{
  display:flex;
  align-items:flex-start;
  gap:12px;
   width: 100%;
    text-align: left;
    padding: 14px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
}

.opt__radio{
  width:18px;
  height:18px;
  border-radius:999px;
  border:2px solid #bdbdbd;
  margin-top: 2px;
  flex: 0 0 auto;
  position: relative;
}

.opt.is-selected .opt__radio{
  border-color: var(--main-color);
}

.opt.is-selected .opt__radio::after{
  content:"";
  position:absolute;
  inset:4px;
  border-radius:999px;
  background: var(--main-color);
}
*/

  /*.opt {
    width: 100%;
    text-align: left;
    padding: 14px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
}
  .opt.is-selected{ border-color:#073991; box-shadow: 0 0 0 2px rgba(7,57,145,.12); }
*/
  .diag__footer{ display:flex; justify-content:center; gap:12px; margin-top: 40px auto; }
  /*.btn{ padding:12px 16px; border-radius:12px; border:1px solid #ccc; background:#fff; cursor:pointer; }
  .btn[disabled]{ opacity:.45; cursor:not-allowed; }
  .btn--primary{ background:#073991; color:#fff; border-color:#073991; }*/








  /* ===== Loading overlay ===== */
.diag-loading{
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.82);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 9999;
}
.diag-loading.is-show{
  opacity: 1;
  pointer-events: auto;
}
.diag-loading__inner{
  text-align:center;
}
.diag-loading__text{
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--main-color);
}
.diag-loading__spinner{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 3px solid rgba(7,57,145,.18);
  border-top-color: var(--main-color);
  animation: diagspin .7s linear infinite;
  margin: 0 auto;
}
@keyframes diagspin { to { transform: rotate(360deg); } }



/* =========================
   Q1 only layout (11 options)
   PC: 4 cols / then 3,2,1
========================= */

.q.q--narrow{
  max-width: 760px;
  margin: 0 auto;
}

/* Q1だけワイド */
.q.q--wide{
  max-width: 1040px;
  margin: 0 auto;
}

.q.q--wide .q__options{
  display:grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px){
  .q.q--wide .q__options{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px){
  .q.q--wide .q__options{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .q.q--wide .q__options{ grid-template-columns: 1fr; }
}



  @media (max-width: 980px) {

.title{
    padding-top: var(--30px);
}

      .diag {
        padding: var(--20px) var(--16px) var(--150px);
    }

    .text-main01{
        gap:var(--6px);
    }

    .text-main02{
    font-size:var(--18px);
    gap:var(--5px);
}
.text-main02::before {
    width: var(--23px);
    height: var(--23px);
}
.char-cell{
    width:var(--20px);
    height:var(--20px);
    font-size:var(--15px);
}

.diag__progress-dashes{
    gap: var(--3px);
}


.footer-shape svg {
  height:var(--100px);
}


.button-green-rev button {
        width: var(--250px);
        font-size: var(--15px);
        height: var(--52px);
}

}