body {
  background: #f6f9fc;
}

/* フォームカードの枠 */
.form-container {
  max-width: 680px;
  margin: 100px auto;
  padding: 36px 30px 28px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 36px rgba(38,84,174,0.12), 0 2px 8px rgba(0,0,0,0.07);
  border: 2.5px solid #d9e3f2;
}

.form-container h1 {
  text-align: center;
  font-weight: 700;
  font-size: 2em;
  margin-bottom: 24px;
  color: #226ed8;
  letter-spacing: 0.03em;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 7px;
  color: #355;
  letter-spacing: 0.01em;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.2px solid #b3c7e6;
  border-radius: 7px;
  font-size: 1em;
  background: #fafdff;
  font-family: inherit;
  box-sizing: border-box;
  transition: border 0.23s;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  border: 1.7px solid #226ed8;
  outline: none;
  background: #f0f6ff;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

.file-attach {
  background: #f4f8ff;
  border: 1px dashed #aac7ea;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
  margin-bottom: 18px;
  color: #2955a6;
  font-size: .98em;
}

input[type="file"] {
  margin: 10px 0 0 0;
}

.form-action {
  text-align: center;
  margin-top:18px;
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: center;
}
.form-action input[type="submit"],
.form-action input[type="reset"] {
  background: linear-gradient(90deg, #497cf5 0, #2dccd3 100%);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1.04em;
  padding: 12px 36px;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  margin: 0;
  box-shadow: 0 2px 7px rgba(80,145,255,0.06);
  transition: background 0.2s;
  width: auto;
}
.form-action input[type="submit"]:hover,
.form-action input[type="reset"]:hover {
  background: linear-gradient(90deg, #226ed8 0, #01c1e6 100%);
}

/* ボタン：スマホ時は縦並び＆隙間を作る */
@media (max-width: 600px) {
  .form-action {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .form-action input[type="submit"],
  .form-action input[type="reset"] {
    width: 100%;
    margin: 0;
    font-size: 1.08em;
  }
}

.powered-by {
  text-align: right;
  font-size: 0.94em;
  color: #8ea7c7;
  margin-top: 24px;
}
.powered-by img {
  height: 15px; vertical-align: middle; margin-left: 4px;
}
.msg-note {
  color: #7d5835;
  font-size: .95em;
  margin-top: 4px;
}
.required {
  color: #e2463f;
}

/* 姓・名の横並び */
.form-row {
  display: flex;
  gap: 18px;
}
.form-row .form-group.half {
  flex: 1;
  min-width: 0;
}
@media (max-width: 599px) {
  .form-row {
    display: block;
  }
  .form-row .form-group.half {
    width: 100%;
    margin-bottom: 0;
  }
}

/* レスポンシブ対応 */
@media (max-width: 600px){
  .form-container {
    max-width: 100%;
    padding: 14px 4vw;
    border-radius: 0;
    box-shadow: none;
    border-width: 1px;
  }
}