* {
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN', 'Yu Gothic Medium', '游ゴシック Medium', YuGothic, '游ゴシック体', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #ffffff;
  line-height: 1.7;
  letter-spacing: 0.02em;
  font-weight: 400;
  font-size: 20;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body{
    background-color: rgb(43, 111, 212);
    margin-bottom: 80px;
    text-align:center;
}
.image-top {
    width: 95vw;
    max-width: 480px;
}
/* 固定入力ボックスのスタイル */
.fixed-input-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.ans-input {
    padding: 12px 16px;
    font-size: 16px;
    color: #000000;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
    background: white;
    width: 250px;
    max-width: 80vw;
    text-align: center;
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans CJK JP', sans-serif;
}
.ans-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* おしゃれな送信ボタンのスタイル */
.submit-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans CJK JP', sans-serif;
    min-width: 80px;
}

/* ホバー効果 */
.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* アクティブ効果 */
.submit-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* リップル効果 */
.submit-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
    transform: translate(-50%, -50%);
}

.submit-button:active::before {
    width: 300px;
    height: 300px;
}

/* フォーカス効果 */
.submit-button:focus {
    outline: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4), 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* ボタンが無効な時のスタイル */
.submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-button:disabled:hover {
    transform: none;
    box-shadow: none;
    background: #ccc;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .fixed-input-container {
        padding: 12px 15px;
    }
   
    .ans-input {
        font-size: 16px; /* iOSでズームを防ぐため16px以上 */
        width: 200px;
        max-width: 70vw;
        padding: 14px 16px;
    }
   
    .input-label {
        font-size: 12px;
    }
   
    .submit-button {
        padding: 14px 20px;
        font-size: 14px;
        min-width: 70px;
    }
   
    body {
        margin-bottom: 90px;
    }
}