/* すべてのページに適用　*/
html {
  font-size: 16px;
  font-family: sans-serif;
}
body {
  margin: 20px 0 40px 0;
}

img {
  max-width: 100%;
}

a {
  text-decoration: none;
}

/* お問い合わせフォーム */

.top-page {
  background-image: url(../image/背景.png);
  background-repeat: no-repeat;
  background-position-x: center;
  margin-top: 6%;
  padding-bottom: 6%;
}

.extitle {
  text-align: center;
  color: #1395e4;
  padding-top: 2%;
}

.h1 {
  color: #1395e4;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}
.deco {
  display: flex;
  justify-content: center;
}
.deco p {
  font-size: 18px;
  font-weight: bold;
}
.deco-main {
  color: #fff;
  background: #1395e4;
  border-radius: 50px;
  padding: 0 60px;
  margin: 0 20px;
}
.deco-main2 {
  color: #fff;
  background: #1395e4;
  border-radius: 30px;
  padding: 0 60px;
  margin: 0 20px;
  opacity: 0.5;
}
.deco-main3 {
  color: #fff;
  background: #1395e4;
  border-radius: 30px;
  padding: 0 60px;
  margin: 0 20px;
  opacity: 0.5;
}
.Form {
  margin-top: 15px;
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
}

.Form-Item {
  border-top: 2px solid #dff2fc;
  padding-top: 24px;
  padding-bottom: 24px;
  width: 100%;
  display: flex;
  align-items: center;
}

.Form-Item:nth-child(5) {
  border-bottom: 1px solid #dff2fc;
}
.Form-Item-Label {
  width: 100%;
  max-width: 248px;
  letter-spacing: 0.05em;
  font-weight: bold;
  font-size: 18px;
}

.Form-Item-Label-Required {
  border-radius: 6px;
  margin-right: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
  width: 48px;
  display: inline-block;
  text-align: center;
  background: #1395e4;
  color: #fff;
  font-size: 14px;
}

.Form-Item-Input {
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-left: 40px;
  padding-left: 1em;
  padding-right: 1em;
  height: 48px;
  flex: 1;
  width: 100%;
  max-width: 410px;
  background: #eaedf2;
  font-size: 18px;
}

.Form-Item-Input2 {
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-left: 40px;
  padding-left: 1em;
  padding-right: 1em;
  height: 48px;
  flex: 1;
  width: 100%;
  max-width: 435px;
  background: #eaedf2;
  font-size: 18px;
}

.Form-Item-Textarea {
  border: 1px solid #dff2fc;
  border-radius: 6px;
  margin-left: 40px;
  padding-left: 1em;
  padding-right: 1em;
  height: 216px;
  flex: 1;
  width: 100%;
  max-width: 410px;
  background: #eaedf2;
  font-size: 18px;
}

.Form-Btn {
  border: 2px solid #1395e4;
  border-radius: 6px;
  margin-top: 32px;
  margin-bottom: 32px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 20px;
  padding-bottom: 20px;
  width: 280px;
  display: block;
  letter-spacing: 0.05em;
  background: #1395e4;
  color: #fff;
  font-weight: bold;
  font-size: 20px;
}

.Form-Btn1 {
  border: 2px solid #1395e4;
  border-radius: 6px;
  margin-top: 32px;
  margin-bottom: 32px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 20px;
  padding-bottom: 20px;
  width: 280px;
  display: block;
  letter-spacing: 0.05em;
  background: #1395e4;
  color: #fff;
  font-weight: bold;
  font-size: 20px;
}

.Form-Btn-Group {
  display: flex;
  justify-content: center;
}

.Form-Btn-Group .Form-Btn {
  margin: 0 5px;  /* 両側に5pxずつの余白 */
}
form:link {
  color: #fff;
  text-decoration: none;
}

.Form-Btn:visited{
  color: #fff;
}
.Form-Btn:active {
  background-color: #fff;
  color: #1395e4;
}
.Form-Btn:hover {
  background-color: #fff;
  color: #1395e4;
}

.Form-Btn1:visited{
  color: #fff;
}
.Form-Btn1:active {
  background-color: #fff;
  color: #1395e4;
}
.Form-Btn1:hover {
  background-color: #fff;
  color: #1395e4;
}

/* 送信完了コンテナ全体の背景色・文字色 */
.message--sent {
  background-color: #1395e4 !important;
  color: #fff !important;
  text-align: center; /* もともとの inline style と同じ効果 */
}

/* h2 や p など、すべての子要素にも白文字を強制 */
.message--sent > * {
  color: #fff !important;
}

/* process.php */
.Complete {
  text-align: center;
  margin: 100px 300px;
  padding: 2px 20px 10px 20px;
  color: #fff;
  background-color: #1395e4;
  border-radius: 10px;
}

.add-thank {
  margin-top: 100px;
  font-size: 50px;
  text-align: center;
  color: #1395e4;
}

/* ラジオボタンとそのラベルの表示をスマホ対応に */
.radio-group {
  display: flex;
  align-items: center;
  gap: 50px; /* ラジオボタンとラジオボタンの間に隙間 */
  flex-wrap: wrap; /* 画面が狭くなったら下に折り返す */
  background: #ffffff; /* 背景色を完全な白にする！ */
  border: none; /* ボーダー（枠線）も消す！ */
}
.radio-label {
  display: flex;
  align-items: center;
  font-size: 18px;
}
.radio-label input[type="radio"] {
  width: 26px;
  height: 26px;
  margin-right: 8px;
  accent-color: #1395e4; /* ラジオボタンにテーマカラーをつける */
}

/* 完了メッセージのスマホ対応 */
@media screen and (max-width: 768px) {
  .Complete {
    text-align: center;
    margin: 30px 10px;
    padding: 20px 10px;
    font-size: 12px;
  }
  .add-thank {
    text-align: center;
    margin-top: 50px;
    font-size: 40px;
  }
}