@media (min-width: 835px) {
.exampletop{
  display    : block;
  color      : #1c1c1c;
  font-size  : 23pt;
  padding    : 8px 0px 8px 0px;
  text-align : center;
  margin-top : -13px;
  transform  : scale(0.8, 1.0);
}
}

@media (min-width: 441px) and (max-width: 834px) {
.exampletop{
  display    : block;
  color      : #1c1c1c;
  font-size  : 20pt;
  padding    : 8px 0px 8px 0px;
  text-align : center;
  margin-top : -13px;
  transform  : scale(0.9, 1.1);
}
}

@media (max-width: 440px) {
.exampletop{
  display    : block;
  color      : #1c1c1c;
  font-size  : 12pt;
  padding    : 8px 0px 8px 0px;
  text-align : center;
  margin-top : -13px;
  transform  : scale(0.9, 1.2);
}
}
/* h2 */
h2 {
font-family: 'ヒラギノ明朝 Pro W3', 'Hiragino Mincho Pro', 'Hiragino Mincho ProN', 'HGS明朝E', 'ＭＳ Ｐ明朝', serif;
position: relative;
text-align: center;
text-shadow:1px 1px 0 #FFF, -1px -1px 0 #FFF,
-1px 1px 0 #FFF, 1px -1px 0 #FFF,
0px 1px 0 #FFF,  0-1px 0 #FFF,
-1px 0 0 #FFF, 1px 0 0 #FFF;
}

h2:before,
h2:after {
position: absolute;
left: 0;
width: 100%;
height: 2px;
content: '';
background-image: -webkit-linear-gradient(315deg, #023002 0%, #046b04 40%, #046b04 60%, #023002 100%);
background-image: linear-gradient(135deg, #023002 0%, #046b04 40%, #046b04 60%, #023002 100%);
}

h2:before {
top: 0;
}

h2:after {
bottom: 0;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    margin: 0;
    padding: 20px 2px 20px 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
    background-size: 100% 100%;
   background-image: url(../img/dementia-bak.png);
}
.container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px;
    padding: 30px;
    text-align: center;
    box-sizing: border-box;
}
h1 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
}
.question-text {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin: 30px 0;
    min-height: 60px;
    line-height: 1.5;
}
.timer {
    font-size: 18px;
    font-weight: bold;
    background-color: #eef2f7;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    color: #555;
}
.progress {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 10px;
}
.btn {
    display: inline-block;
    width: 100%;
    font-size: 18px;
    font-weight: bold;
    padding: 14px 28px;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.1s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 10px;
    -webkit-appearance: none;
}
.btn:active {
    transform: scale(0.98);
}
.btn-start {
    background-color: #3498db;
}
.btn-start:hover {
    background-color: #2980b9;
}
.btn-answer {
    background-color: #fff;
    color: #333;
    border: 2px solid #cbd5e1;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.btn-answer:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
}
.btn-retry {
    background-color: #2ecc71;
}
.btn-retry:hover {
    background-color: #27ae60;
}
.btn-back {
    background-color: #95a5a6;
}
.btn-back:hover {
    background-color: #7f8c8d;
}
.choice-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
}
@media (min-width: 480px) {
    .choice-form {
        flex-direction: row;
        justify-content: center;
    }
    .btn-answer {
        flex: 1;
    }
}
.choice-img {
    max-width: 100px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
    pointer-events: none;
}
.choice-label {
    display: block;
    font-size: 16px;
    font-weight: bold;
}
.score-display {
    font-size: 32px;
    font-weight: bold;
    color: #e74c3c;
    margin: 20px 0;
}

.box-text {
  /* 文字サイズの指定 */
  font-size: 16px;          
  
  /* ボックスのデザイン */
  background-color: #f9f9f9; /* 箱の背景色（薄いグレー） */
  border: 1px solid #ccc;    /* 箱の枠線（グレーの線） */
  border-radius: 5px;        /* 四隅の角を丸くする */
  
  /* 余白の指定 */
  padding: 15px;             /* 枠線と文字の間の隙間 */
  margin: 10px 0;            /* ボックスの外側の隙間 */
}
