:root{
    --bubble-width: 18px;    /* 楕円の横幅 */
    --bubble-height: 30px;   /* 楕円の縦幅 */
    --bubble-border: 2px;
    --bubble-color: #7c7c7c;    /* 塗り（選択時） */
    --bubble-border-color: #c74900;
    --focus-color: rgba(100,160,255,0.35);
}

body {
    font-family: "Noto Serif", serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.5)), url('../pic/haikei01.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    caret-color: transparent;
}

ul {
    list-style-type: none;
}

small {
    font-size: 0.9em;
}
::-webkit-scrollbar {
    width: 8px; 
    height: 8px;
}

/* スクロールバーのトラック */
::-webkit-scrollbar-track {
    background: #f1f1f1; /* トラックの背景色 */
    border-radius: 10px; 
}

/* スクロールバーのハンドル */
::-webkit-scrollbar-thumb {
    background: #888; 
    border-radius: 10px; 
}

/* スクロールバーのハンドルがホバーされたとき */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/*科目選択画面*/
#selection-phase {
    width: 90%;
    margin: auto;
    max-width: 900px;
    background-color: #fafafafa;
    background-image: 
      linear-gradient(90deg,#e7e7e7, 1px, transparent 1px), 
      linear-gradient(#e7e7e7, 1px, transparent 1px); 
    background-size: 40px 40px;
    text-align: center;
    padding-bottom: 100px;
  }
#selection-phase p{
    text-align: center;
}

.hyoushi{
    display: block;
    margin: auto;
    max-width: 550px;
    width: 70%;
    border: #000 solid 1px;
    box-shadow: #a0a0a0 10px 2px 2px 2px;
    margin-bottom: 2em;
}

  .bubble-group{
    display: flex;
    width: 90%;
    margin: auto;
  }

  .bubble-group div{
    width: 50%;
    aspect-ratio: 3/1;
    justify-content: center;
  }

  .bubble-group input[type="radio"]{
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .bubble-group label{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px; /* 文字と楕円の間隔 */
    cursor: pointer;
    user-select: none;
    width: 100%;
    height: 100%;
    padding: 0%;
    background-color: #fafafa;
    border: #c98546 solid 2px;
    color: #c98546;
  }

  #hi3+label:hover{
    background-image: 
      linear-gradient(rgba(255,253,249,0.7), rgba(255,253,249,0.8)), 
      url("../pic/hi3-img.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  #hi3:checked + label {
    background-image: 
      linear-gradient(rgba(255,253,249,0.8), rgba(255,253,249,0.8)), 
      url("../pic/hi3-img.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  #hsr+label:hover{
    background-image: 
      linear-gradient(rgba(255,253,249,0.7), rgba(255,253,249,0.8)), 
      url("../pic/hsr-img.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  #hsr:checked + label {
    background-image: 
      linear-gradient(rgba(255,253,249,0.8), rgba(255,253,249,0.8)), 
      url("../pic/hsr-img.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  /* 楕円を ::after にすることで「文字の後」に表示 */
  .bubble-group label::after{
    content: "";
    display: inline-block;
    width: var(--bubble-width);
    height: var(--bubble-height);
    border-radius: 50% / 60%;
    background: #fff;
    border: #c74900 solid 1px;
  }

  /* 選択時に塗りつぶし */
  .bubble-group input[type="radio"]:checked + label::after{
    background: var(--bubble-color);
    box-shadow: inset 0 -4px rgba(0,0,0,0.12);
  }





.explain-block {
    position: relative;
    margin: 2em 0;
    border: solid 3px #48419e;
    border-radius: 8px;
    width: 80%;
    margin: 10% auto;
    background-color: #f5f5f5;
    font-family: "Zen Maru Gothic", sans-serif;
}

.explain-block .box-title {
    position: absolute;
    display: inline-block;
    top: -13px;
    left: 10px;
    padding: 5px 9px;
    border-radius: 10px;
    line-height: 1;
    font-size: 19px;
    background: #48419e;
    color: #f7f7f7;
    font-weight: bold;
    font-family: "Zen Maru Gothic", sans-serif;
}

.two-column {
  display: grid;
  grid-template-columns: 2fr 1fr; /* 左：右 = 2:1 */
  gap: 1rem;
  align-items: end;  /* 右の画像を下揃え */
  position: relative;
}

.left {
  padding: 1rem;
}

.right {
  position: relative;  /* 子画像を下に揃えるため */
}

.right img{
  position: absolute;
  bottom: 0;
  right: 0;
  max-width: 100%;
  object-fit: contain;
}

.explain-block .credit-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 幅に応じて列数変化 */
  gap: 1rem; /* 項目間の余白 */
  margin-bottom: 10%;
  padding: 0;
}

.two-column strong{
    font-size: 20pt;
}

.explain-block .abstract{
    margin: 1.5em auto;
    display: grid;
    grid-template-columns: 1fr 4fr;
    row-gap: 1em;
    width: 85%;
}
.abstract div{
    border-bottom: #30346e 1px solid;
}
.explain-block .abstract img{
    height: auto;
    max-width: 100px;
    aspect-ratio: 1/1;
    object-fit: contain;
}
.explain-block .abstract div{
    margin-top: auto;
}

h4{
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .two-column {
    font-size: 13.3px;
  }
 .two-column strong{
    font-size: 18px;
  }
  .explain-block .credit-list {
    font-size: 13px;
  }
}

@media (max-width: 500px) {
  .two-column{
    font-size: 10px;
    gap:0;
  }  
  .two-column strong{
    font-size: 13px;
  }
  .left{
    padding-bottom: 0;
  }
  .explain-block .box-title{
    font-size: 12px;
  }
  .explain-block .credit-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* 幅に応じて列数変化 */
    gap: 1rem; /* 項目間の余白 */
    margin-bottom: 10%;
  }
}

/*挿絵用*/
#story-Pic {
    width: 75%;
}
#story-Pic img {
    display: block;
    width: 100%;
    margin: 3% auto;
    height: auto;    
    border-radius: 20px;
    border: #aaa solid 3px;
}

/*セレクションフェーズ*/
.selection-container {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    width: 100%;
}

.selection-button {
    width: 50%;
    aspect-ratio: 16/5; 
    height: auto;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.selection-button:hover {
    background-color: #ddd;
}

figure {
    margin: 0;
}

#imageModal .result-image-caption {
    display: block;
    color: white;
    width: 100%;
    text-align: center;
    text-align: right;
    background: none;
}

/* ストーリーフェーズのスタイル */
#story {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: #fafafa;
    width: 90%;
    max-width: 700px;
    min-height: 100vh;
    margin: auto;
    background-image: 
    linear-gradient(90deg,#e7e7e7, 1px, transparent 1px), /* 縦線 */
    linear-gradient(#e7e7e7, 1px, transparent 1px); /* 横線 */
    background-size: 40px 40px; /* 方眼紙のサイズ */
}
#story-explanation {
    width: 90%;
}
#story-dialogue-list {
    display: none;
    margin-top: 20px;
    width: 80%;
}

#kaiwa-button, #select-button, #next-button {
    background:  #c98546;
    border-radius: 9999px;
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 2em auto;
    max-width: 250px;
    padding: 10px 25px;
    color: white;
    line-height: 1.8;
    transition: 0.3s ease-in-out;
    font-weight: 500;
    font-size: 1.2em;
    border: solid 1px #c98546;
}

#next-button {
    display: none;
}

#select-button{
   margin-bottom: 6em;
   cursor: pointer;
}

#select-button:hover,#kaiwa-button:hover,#next-button:hover {
  background: white;
  color: #c98546;
  border: solid 1px #c98546;
}
#next-button:hover:after {
  right: 1.4rem;
}

/* 会話用のスタイル */
.dialogue-item {
    width: 100%;
    margin-bottom: 10px;
    padding: 3%;
    border-radius: 4px;
    text-indent: -6em;
    padding-left: 6em;
    box-sizing:border-box;
}

.character {
    display: inline-block;
    width: 6em;
    text-indent: 0em;
    height: auto;
    text-align: center;
}

.sikaku {
    display: inline-block;
    width: 3em;
    height: 1.5em;
    padding: 0em;
    border: 1px solid black;
    text-align: center;
    box-sizing: border-box;
    text-indent: 0;
    font-weight: bold;
    vertical-align: middle;
}

.kasenbu {
    display: inline;
    text-decoration: underline;
    color: rgb(202, 131, 0);
}
.kasenbu::before {
    content: attr(data-number);
    position: relative;
    font-size: small;
    text-decoration: none;
}

.record-title {
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 10px;
}

.record-content {
    border: 1px solid black; 
    padding: 20px; 
    font-size: 1em;
    font-weight: normal;
    background: #fafafa; 
    border-radius: 5px; 
    margin-bottom: 2em;
}
.record-content ul {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0;
    margin-inline-end: 0;
    padding-inline-start: 40px;
    list-style-type: disc;
}
.record-content ul ul{
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0;
    margin-inline-end: 0;
    padding-inline-start: 40px;
    list-style-type: circle;
}

@media (max-width: 768px) {
    #quiz-dialogue-list .record-content{
        border-color: white;
        background: none;
    }
    #quiz-dialogue-list .record-content .sikaku{
        border-color: white;
    }
  }


.utikesi{
    text-decoration: line-through;
}

/* テストフェーズのスタイル */
#quiz {
    display: none;
    max-width: 1200px;
    width: 90%;
    flex-direction: row;
    margin: auto;
    background-color: #f5f5f5;
    background-image: 
    linear-gradient(90deg,#e7e7e7, 1px, transparent 1px), /* 縦線 */
    linear-gradient(#e7e7e7, 1px, transparent 1px); /* 横線 */
    background-size: 40px 40px; /* 方眼紙のサイズ */
    min-height: 100vh;
}

#left-panel {
    flex: 1;
    padding: 5%;
    padding-top: 0;
    max-height: 90vh;
    overflow-y: auto;
    align-items: center;
}
#left-panel h1 {
    padding-top: 50px;
}

#quiz-image {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    border-radius: 20px;
    border: #aaa solid 3px;
}

#quiz-dialogue-list {
    width: 100%;
    max-height: 100%; /* 高さを制限 */
    margin-top: 20px;
}

#right-panel {
    flex: 1;
    padding:5%;
}

#log-button, #close-button {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
  }

  #close-button {
    display: none;
    position: fixed;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 48px;
    color: white;
    cursor: pointer;
    z-index: 1001;
  }

  /* モバイル表示での調整 */
  @media (max-width: 768px) {
    #quiz {
        flex-direction: column; /* スマホ表示時に縦並び */
    }

    #left-panel {
      display: none; /* 初期状態で非表示 */
      position: fixed;
      background-color: rgba(0,0,0,0.90);
      color: white;
      top: 0;
      left: 0;
      z-index: 1000;
      overflow-y:scroll;
      max-height: none;
      height: 100vh;
      padding-top: 0;
      padding-bottom: 0;
    }
    #right-panel {
        min-height: 100vh;
    }
  
    #log-button {
      display: block;
      position: fixed;
      padding: 15px 5px;
      border: none;
      background: linear-gradient(to top, #ffa14a, #fcbd83);
      border-radius: 3px;
      color: white;
    }
  
    #close-button {
      display: none; /* 初期状態で非表示 */
    }
  }

@media (max-width: 768px) {
    body {
        font-size: 11px;
    }
    #slider {
        display: none;
    }
  }

.question {
    font-size: 1em;
    margin-top: 10%;
    margin-bottom: 10px;
}

.option {
    margin-inline-start: 0;
    margin-inline-end: 0;
    margin-bottom: 10px;
}
label {
    cursor: pointer; /* マウスカーソルをポインタに変更 */
    display: block;
    width: 100%;
    background-color: #e7e7e7;
    padding: 5px 0;
}
label:has(input[type="radio"]:checked) {
    background-color: #c0c3f0;
}

.button-container {
    margin-top: 1em;
    display: flex;
    justify-content: center; /* 左右にボタンを配置 */
    align-items: center;
}


#susumuButton, #submit-button {
    padding: 10px 20px;
    background-color: #c98546;
    border: #c98546 solid 1px;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

#susumuButton:hover, #submit-button:hover {
    background-color: #ffffff;
    color: #c98546;
}

#yameruButton, #mae-button {
    background-color: #ccc;
    height: 1.5em;
    margin-right: 50px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}


/* リザルト画面*/
#result {
    background-color: rgb(255, 253, 249); /* 背景の色 */
    background-image: 
      linear-gradient(90deg,#e7e7e7, 1px, transparent 1px), /* 縦線 */
      linear-gradient(#e7e7e7, 1px, transparent 1px); /* 横線 */
    background-size: 40px 40px; /* 方眼紙のサイズ */
  }
#result {
    display: none;
    font-size: 1em;
    text-align: center;
    justify-content: center;
    max-width: 700px;
    margin: auto;
    padding-bottom: 10%;
    }

h1 {
    position: relative;
    display: block;
    margin: auto;
    padding-top: 3em;
    margin-bottom: 2em;
    text-align: center;
  }
h1:before {
    content: '';
    position: absolute;
    bottom: -15px;
    display: inline-block;
    width: 60px;
    height: 5px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    background-color: black;
    border-radius: 2px;
  }

h2 {
    padding: 0.5em;/*文字周りの余白*/
    display: inline-block;/*おまじない*/
    line-height: 1.2;/*行高*/
    background: #504f4e;/*背景色*/
    vertical-align: middle;
    border-radius: 25px 0px 0px 25px;/*左側の角を丸く*/
    margin: 0 auto;
    font-size: 1.2em;
    color: white;
  }
  
h2:before {
    content: '●';
    color: white;
    margin-right: 8px;
  }

#summary-container{
    display: none;
    width: 100%;
}
.result-summary {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2,1fr);
    grid-template-rows: 0.5fr 0.5fr;
  }


.result-summary figure {
    grid-column: 1 / 2;
    grid-row: 1 / 4;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    margin-left: auto;
  }

  #result-details {
    grid-column: 2;
    grid-row: 3;
    padding: 10px;
  }

  #myRadarChart {
    width: 80% !important;
    height: auto !important;
    margin: auto; 
  }

  #kaitou_kaisetu{
    display: block;
    width: 90%;
    text-align: left;
    margin: 20px auto;
    background-size: 10px 10px;
  }
  .result-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.result-grid {
    display: flex;
    flex-direction: column;
    gap: 10px; /* アイテム間の隙間 */
}

.result-row {
    display: grid;
    gap: 10px;
}

.result-row-1 {
    grid-template-columns: repeat(5, 1fr); /* 3列 */
}

.result-row-2 {
    grid-template-columns: repeat(5, 1fr); /* 3列 */
}

.result-row-3 {
    grid-template-columns: repeat(5, 1fr); /* 4列 */
}

.questions-append {
    display: block;
    border: #000 solid 1px;
    padding: 5px;
    margin: 1em auto;
}

.questions-append ul {
    margin: 3%;
    padding-left: 0;
}

.questions-append ol {
    margin: 3%;
}

/* 大問のラベル */
.section-label {
    display: flex;
    font-weight: bold;
    font-size: 18px;
    margin-right: 10px;
}

.correct {
    background-color:rgb(255, 153, 0); /* 正解の色 */
    color: white;
}

.incorrect {
    background-color: #979797; /* 不正解の色 */
    color: white;
}

.result-item {
    width: 25px;
    height: 25px;
    border-radius: 2px;
    border: 1px solid #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    transition: transform 0.3s ease; /* アニメーションのトランジション */
}

.correct, .incorrect {
    color: white; /* テキストの色は共通 */
    animation: scale-up 0.3s forwards, scale-down 0.3s 0.3s forwards; /* 拡大→縮小のアニメーション */
}

.selected-option {
    background-color: #c0c3f0;
}

.correct-answer {
    background-color: #ffc862;
}

.incorrect-answer{
    background-color: #aaaaaa; 
}

.correct-question {
    background-color: #ffedcb !important; 
}

.incorrect-question {
    background-color: #ececec !important; 
}

.result-question{
    padding: 30px 30px;
    margin: 30px 0;
    border-radius: 25px;
    background-color: white;
    font-size: 1em;
}

.result-question details{
    display: none;
}

.result-options{
    display: block;
    padding-inline-start: 40px;
    position: relative;
    font-size: 1em;
    padding-left: 25px;
    line-height: 1.5;
}

.result-options::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px; 
}

.correct-answer::before {
    content: '✔'; /* チェックマーク */
    position: absolute;
    left: 0;
    top: 0;
    color: rgb(255, 153, 0);
    font-size: 16px;
    vertical-align: middle;
}

.incorrect-answer::before {
    content: '✖'; /* バツマーク */
    position: absolute;
    left: 0;
    top: 0;
    color: rgb(97, 97, 97);
    font-size: 16px;
    vertical-align: middle;
}

@keyframes scale-up {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.2); /* 拡大 */
    }
}

@keyframes scale-down {
    0% {
        transform: scale(1.2); /* 拡大から始まる */
    }
    100% {
        transform: scale(1); /* 元に戻る */
    }
}

#tokuten-share{
    display: none;
    width: 100%;
    margin: auto;
    padding-bottom: 20px;
    background-color: rgb(255, 253, 249); /* 背景の色 */
    background-image: 
      linear-gradient(90deg,#e7e7e7, 1px, transparent 1px), /* 縦線 */
      linear-gradient(#e7e7e7, 1px, transparent 1px); /* 横線 */
    background-size: 40px 40px; /* 方眼紙のサイズ */
}

#imageContainer img{
    width: 70%;
    margin-top: 5%;
}

.sharebtns{
    display: flex;
    padding: 20px 0;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 100px;
}

#Xbtn-sns {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    box-sizing: border-box;
    border-radius: 50%;
    color: white;
    background-color: #111319;
    font-size: 1.5rem;
    text-align: center;
    justify-items: center;
    vertical-align: middle;
    text-decoration: none;
    transition: 0.3s;
    }
    
    #Xbtn-sns svg {
    fill: #fff;
    }
    
    #Xbtn-sns:hover {
        opacity: 0.8;
        }
    #Xbtn {
        display: flex;
        text-align: center;
        align-content: center;
    }
#BSbtn-sns {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 4rem;
        height: 4rem;
        box-sizing: border-box;
        border-radius: 50%;
        background: linear-gradient(to top, #5fc4f3, #1185FE) ;
        font-size: 1.5rem;
        text-align: center;
        justify-items: center;
        vertical-align: middle;
        text-decoration: none;
        transition: 0.3s;
        }
        
        #BSbtn-sns svg {
            margin: auto;
        }
        
        #BSbtn-sns:hover {
            opacity: 0.8;
            }

        .Xbtn {
            display: inline-flex;
            text-align: center;
            align-content: center;
        }

    .tokuten{
        display: block;
        margin-top: 30px;
    }
    .tokuten-uketori{
        position:relative;
        display: inline-block;
        text-decoration: none;
        font-weight: bold;
        font-size: 1.3em;
        padding: 10px;
        color: white;
        background-color: #f8b840;
        border: #f8b840 solid 2px;
    }
    .tokuten-uketori:hover{
        background-color: white;
        color: #ffc862;
        border: #ffc862 solid 2px;
    }
    .tokuten-uketori::after {
        content: "";
        width: 20px;
        height: 20px;
        background-color: red;
        border-radius: 50%; /* 丸にする */
        position: absolute;
        top: -10px;  /* 上方向に10px移動して、ちょうど右上に合わせる */
        right: -10px; /* 右方向に10px移動 */
    }

    #reset-button-container{
        display: none;
        width: 80%;
        margin: 0 auto;
    }
    
    #reset-button-container p{
        font-size: 0.9em;
    }

    #reset-button {
        position: relative;
        display: flex;
        justify-content: space-around;
        align-items: center;
        margin: 0 auto;
        max-width: 250px;
        padding: 10px 25px;
        font-family: "Noto Sans Japanese";
        color: #fff;
        line-height: 1.8;
        text-decoration: none;
        transition: 0.3s ease-in-out;
        font-weight: 500;
        background: linear-gradient(to top, #c98546, #f5b478);
        color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
        -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
        border-radius: 9999px;
    }
    #reset-button:hover {
        color: #fff;
        opacity: 0.5;
    }
    #reset-button:hover:after {
        border-color: #fff;
    }

    #DownloadAnchor {
        display: inline-block;
        font-size: 0.9em;
        width: auto;
        background:  #c98546;
        padding: 10px;
        border-radius: 10px;
        text-decoration: none;
        vertical-align: middle;
        color: white;
        font-weight: bold;
        border: none;
    }
    #DownloadAnchor:hover{
        color: #fff;
        opacity: 0.8;
    }

    #DownloadAnchor img{
        display: inline-block;
        vertical-align: middle;
        margin: auto;
    }

    #DownloadAnchor{
        text-decoration: none;
        vertical-align: middle;
        color: white;
        font-weight: bold;
        padding: 10px
    }
    #ShareImageDownload {
        display: none;
    }
    .message-container {
        position: fixed;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
        pointer-events: none;
      }
      @media (max-width: 700px) {
        .message-container{
            width: 80%;
        }        
      }

      .popup-message {
        display: flex;
        z-index: 100;
        align-items: center;
        padding: 5px 20px;
        background-color: #4CAF50;
        color: white;
        border-radius: 10px;
        font-size: 1.2em;
        opacity: 0;
        height: 2.5em;
        vertical-align: middle;
        transform: translateY(30px);
        animation: slideUp 0.4s forwards, fadeIn 0.4s forwards;
      }
      @keyframes slideUp {
        from {
          transform: translateY(30px);
        }
        to {
          transform: translateY(0);
        }
      }
      @keyframes fadeIn {
        from {
          opacity: 0;
        }
        to {
          opacity: 1;
        }
      }
      .message-container img{
        height: 100%;
        margin-right: 10px;
      }
    
      .tokuten-grid {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2列 */
        gap: 5%; /* 要素間の間隔 */
        width: 80%;
        margin: auto;
      }
      
      .tokuten {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        background-color: #f0f0f0; 
        padding: 10px;
        border-radius: 8px;
      }
      .tokuten img{
        filter: grayscale(100%);
      }
      
      .tokutenicon {
        width: 80%; 
        margin-bottom: 5px;
      }
      .kaihouzumi {
        text-decoration: none;
        color: #c98546;
        font-weight: bold;
        background: #fceee1;
        font-family: Noto Sans JP;
      }
      .kaihouzumi:hover {
        text-decoration: none;
        color: #fff5eb;
        font-weight: bold;
        background: #ffbe81;
      }
      .kaihouzumi img{
        filter: none !important;
      }

      #tokutenAikotoba{
        padding-top: 20px;
      }
      #tokutenAikotoba span{
        font-size: 1.3em;
        font-weight: bold;
        color: #c98546;
      }

      .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        justify-content: center;
        align-items: center;
      }
      
      .modal-content {
        background-color: #fff;
        padding: 20px;
        border-radius: 8px;
        text-align: center;
        z-index: 100;
        width: 70%;
        object-fit: contain;
      }
      .modal-content-img  {
        width: 100%;
        max-width: 750px;
      }
      .progress-container {
        width: 80%;
        max-width: 900px;
        background-color: #e0e0e0;
        border-radius: 8px;
        overflow: hidden;
      }
      
      #progress-bar {
        height: 20px;
        background-color: #c98546;
        width: 0%;
        transition: width 0.3s ease;
      }
      #slider {
        z-index: 100;
      }

      #selection-phase .kaihouzumi:hover {
        text-decoration: none;
        color: #c98546;
        font-weight: bold;
        background: #fceee1;
        font-family: Noto Sans JP;
      }

      .debug{
        width: 100%;
        background-color: #ccc;
      }

      .debug-container {
        position: absolute;
        width: 30%;
        z-index: 999;
      }