#chat-area {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    padding: 10px;
     min-height: 500px;
    max-height: 80vh;
    overflow-y: auto;
    overflow-y: auto;
    background: #98bdd8;
    font-family: sans-serif;
}

.bot-balloon {
    background: #ffffff;
    color: #000;
    padding: 10px 14px;
    border-radius: 15px;
    margin: 10px;
    max-width: 80%;
    clear: both;
    float: left;
}

.user-balloon {
    background: #7df77d;
    color: rgb(0, 0, 0);
    padding: 10px 14px;
    border-radius: 15px;
    margin: 10px;
    max-width: 80%;
    clear: both;
    float: right;
    text-align: right;
}

.option-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px 20px;
    background-color: #1e3266;
    padding: 20px;
    border-radius: 10px;
    margin: 15px auto;
    max-width: 600px; /* PCサイズ制限 */
    width: 90%;
    box-sizing: border-box;
}

.option-btn {
    background-color: white;
    color: #000;
    padding: 12px 0;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: 0.2s ease;
    white-space: nowrap; /* ← 改行させない */
}

.option-btn:hover {
    background-color: #0056b3;
}

.user-input,
.year-select,
.user-select {
    margin-top: 10px;
    padding: 6px;
    width: calc(100% - 20px);
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px !important; /* ズーム防止 */
}

#submit-btn {
    padding: 8px 16px;
    background-color: #0288d1;
    color: #fff;
    border: none;
    border-radius: 8px;
    margin: 15px 10px;
    cursor: pointer;
    display: block;
    width: 90%;
    text-align: center;
    font-size: 16px !important;
}

#submit-btn:hover {
    background-color: #01579b;
}

.user-select {
    padding: 20px;
}

/* 新規追加: 送信ボタンの位置調整 */
#submit-btn {
    margin-top: 20px;
}

header {
    background-color: #98bdd8;
    padding: 20px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

header img {
    width: 50px;
    height: auto;
    object-fit: contain;
    margin-right: 15px;
}

.header_inner {
    position: relative;
    margin-top: -5px;
    padding-bottom: 100px;
    height: 10px;
    width: 90%;
    margin: auto;
}

.header-text {
    font-size: 0.8em;
    color: #333;
    text-align: left;
    font-family: sans-serif;
}

body {
    margin-top: 0;
    padding: 20px;
    padding-bottom: 300px;
    background-color: #98bdd8;
    text-align: left;
    min-height: calc(100vh - 470px);
}

/* 追加: モバイルの全 input にズーム防止 */
input, select, textarea {
    font-size: 16px !important;
}
/* iOSだけに適用されるズーム防止スタイル */
@supports (-webkit-touch-callout: none) {
    input,
    select,
    textarea {
      font-size: 16px !important;
      -webkit-text-size-adjust: 100%;
      text-size-adjust: 100%;
    }
  }
  @media (max-width: 600px) {
  header img {
    width: 40px;
  }
}
.error-message {
  color: red;
  font-size: 14px;
  margin: 5px 0 0 0;
}
footer{
    text-align: center;
}