@charset "utf-8";

/* リセットとボックスサイズの定義 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* iOSおよび他のブラウザのフォーム要素のスタイルをリセット */
input[type="button"],
input[type="submit"],
input[type="date"],
input[type="text"],
input[type="time"],
input[type="password"],
button,
select,
textarea {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  background-color: #ddd;
  color: #000;
  border-radius: 3px;
  border: 1px solid black;
  cursor: pointer;
  transition: 0.3s;
}

/* 共通のフォントとフレックス設定 */
html,
body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo",
    "Helvetica Neue", "Helvetica", "Arial", "Yu Gothic", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 95%;
  margin: 15px auto;
}

/* メインコンテンツのスタイリング */
.main_container {
  display: flex;
  justify-content: center;
}

.main_content,
.main {
  margin: auto;
  padding-top: 20px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 入力フィールドのスタイル */
input[type="text"] {
  width: 13.5rem;
  height: 2rem;
  font-size: 1.1rem;
  box-sizing: border-box;
  cursor: pointer;
  transition: 0.3s;
  background-color: #fff;
}

/* ボタンのスタイル */
.sendButton,
.saveButton {
  width: 12rem;
  height: 3rem;
  font-size: 1.2rem;
  border-radius: 3px;
  margin-top: 1rem;
  transition: 0.3s;
}

.sendButton {
  color: #fff;
  background: #0044b1;
  border: none;
}

.saveButton {
  color: #000;
  background: #ddd;
  border: 1px solid #000;
}

.sendButton:hover {
  opacity: 0.5;
}

.error-message {
  color: red;
  font-size: 1rem;
  font-weight: bold;
}

/* スマートフォン用のスタイル調整 */
@media screen and (max-width: 375px) {
  input[type="text"],
  .sendButton,
  .saveButton {
    font-size: 1.1rem;
  }
}

/* タブレットとデスクトップの共通スタイル調整 */
@media screen and (min-width: 600px) {
  html,
  body {
    justify-content: auto;
  }
}
