/*同意画面*/
    #titleExperiment{
        font-weight: bold;
        font-size: 18px;
        text-align: center;
    }

    #aboutExperiment{
        display: flex;
        position: relative;
        flex-direction: column; /* 縦並びにする */
        align-items: flex-start;
        margin-left: 10%;
        margin-right: 10%;
        justify-content: center;
        width: 80%;
        border-color: black;
        border-width: 1px;
        border-style: solid;
        padding: 2%;
    }

    #aboutExperiment p{
        font-size: 16px;
        line-height: 1.5; /*行間*/
        text-align: left; /*両端揃え*/
        margin: 0;
    }

    #information{
        display: flex;
        justify-content: center;
    }

    #participationQuestion{
        font-weight: bold;
        font-size: 18px;
        text-align: center;
    }

    /*ICはインフォームドコンセント*/
    #ICCheck{
        text-align:center;
    }

    #nextButton{
        display: flex;
        justify-content: center;
        margin-top: 2%;
    }

    #nextBtn{
        width:50px;
        height:30px;
    }
/*同意画面ここまで*/

/* 共通カードスタイル（RatingPhase2 と同等の見た目） */
:root {
  --container-max-width: 900px;
  --card-bg: #ffffff;
  --card-accent-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.centerCard {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 90%;
    max-height: 800px;

    margin: 24px auto;
    padding: 28px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    box-sizing: border-box;
    text-align: center;

    /* 固定サイズにしたい場合はここで指定（例: height: 600px; overflow:hidden;） */
    /* 例: height: 600px; max-height: 600px; overflow: hidden; */
    display: flex;
    flex-direction: column;
    gap: 12px;
}



/* inside-card は display を強制しない（JS の表示制御を尊重） */
.inside-card {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: 100% !important;
  margin: 0 auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
}




/*フルスクリーン*/
   #FullScreen{
        position: relative;
        top: 10%;
        width: 100%;
        align-items: center;
        text-align: center;
        font-size: 32px;
        font-weight: bold;
    }

    /* IMC 警告モーダル（ページ内ポップアップ） */
    #IMCWarning {
        position: fixed;
        left: 50%;
        top: 30%;
        transform: translate(-50%, -30%);
        z-index: 9999;
        background: #fff;
        color: #000;
        padding-top: 16px;
        padding-bottom: 48px;
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.35);
        width: min(92%, 480px);
        text-align: center;
        display: none;
        box-sizing: border-box; /* padding を含めて配置を安定させる */
    }
    #IMCWarning.show { display: block; }
    #IMCWarning p { margin: 0 0 12px 0; }
    #IMCWarning .imc-ok {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 12px;            /* モーダル下端からの距離 */
        display: inline-block;
        padding: 8px 14px;
        font-size: 14px;
        cursor: pointer;
        border-radius: 4px;
        border: 1px solid #666;
        background: #f0f0f0;
        z-index: 10000;   
    }
/*フルスクリーンここまで*/

/*基本情報（年齢・性別）*/
    /* tellmephase: mainCard 内でも自然にレイアウトされるスタイルに変更 */
    #tellmephase{
        position: static;       /* mainCard 内で通常フローに乗る */
        transform: none;        /* 位置の強制を解除 */
        width: 100%;
        max-width: 600px;
        margin: 0 auto 16px;    /* 中央寄せ */
        display: flex;
        flex-direction: column;
        align-items: center;
        box-sizing: border-box;
        font-size: 18px;
        padding: 8px;
    }
/*基本情報（年齢・性別）ここまで*/


/*IMC真面目チェックページ*/
    #explainIMC{
        position: relative;
        margin-left: 10%;
        margin-right: 10%;
        display : flex;
        justify-content : center;
        width: 80%;
        overflow-wrap: anywhere; /*文章の折り返し*/;
    }

    #IMCAnswer {
        position: relative;
        margin: 12px auto 0; /* 上:12px、左右:autoで中央寄せ、下:0 */
        width: 60%;          /* 画面幅に対して60% */
        max-width: 600px;    /* 任意：大きい画面での最大幅 */
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }



    #IMCAnswer legend {
        /* 画面上は非表示にするが、スクリーンリーダーには残す */
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
        border: 0;
    }

    #IMCAnswer label {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
    }

    #IMCAnswer input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin: 0;
    }

    #aboutCheckBox{
        font-size: 16px;
        text-align: center;
        margin-top: 12px;
    }

    /* オプション：IMC セクション全体の余白や幅を調整したい場合 */
    #IMCphase {
        display: flex;
        flex-direction: column;
        padding: 8px 0;
    }


    #goaboutAnagram{
        display: flex;
        flex-direction: column;
        align-items: flex-end;    /* 子要素を右寄せ（列レイアウト内） */
        width: auto;              /* 固定幅(10%)を外す */
        margin: 0 200px 0 auto;        /* 親内で要素自体を右端に寄せる */
        box-sizing: border-box;
        padding-right: 8px;
    }

    /* ボタン自体の幅を固定して、親の幅に引き伸ばされないようにする */
    #goaboutAnagram > button {
        width: 120px;
        height: 36px;
        align-self: flex-end;
        display: inline-block;
    }
/*IMC真面目チェックページここまで*/

/*アナグラム説明ページ*/
    #aboutAnagram{
        /* position/top/transform を解除して mainCard のフロー内で中央配置 */
        position: static;
        transform: none;
        top: auto;
        margin: 0 auto 16px;
        width: 100%;
        max-width: 900px;       /* 必要に応じて調整 */
        box-sizing: border-box;
        padding: 16px;

        /* flex を使って中身を中央に配置 */
        display: flex;
        flex-direction: column;
        justify-content: center; /* 垂直中央 */
        align-items: center;     /* 水平中央 */
        gap: 12px;
    }

    #explainAnagram{
        display: flex;
        flex-direction: column;
        justify-content: center; /* 縦方向中央 */
        align-items: center;     /* 横方向中央 */
        font-size: 24px;
        text-align: center;
    }



    #goExperimentDemo{
        display: flex;
        flex-direction: column;
        align-items: flex-end;    /* 子要素を右寄せ（列レイアウト内） */
        width: auto;              /* 固定幅(10%)を外す */
        margin: 0 200px 0 auto;        /* 親内で要素自体を右端に寄せる */       /* 親内で要素自体を右端に寄せる */
        box-sizing: border-box;
        padding-right: 8px;
    }

    /* ボタン自体の幅を固定して、親の幅に引き伸ばされないようにする */
    #goExperimentDemo > button {
        width: 120px;
        height: 36px;
        align-self: flex-end;
        display: inline-block;
    }
/*アナグラム説明ページここまで*/

