  body {
    background: #f8f9fb;
    font-family: "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
    color: #333;
  }

  h1 {
    text-align: center;
    margin-top: 40px;
    color: #003366; /* 濃いネイビー */
    font-weight: bold;
  }

  form {
    max-width: 500px;
    margin: 30px auto;
    padding: 25px 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }
  
  input, textarea, select {
    font-family:inherit;
  }

  p {
    margin-bottom: 18px;
  }

  /* Required field asterisk */
  .required {
    color: #C1272D;
    font-weight: bold;
    margin-left: 3px;
  }

  /* Optional field label */
  .optional {
    color: #6c757d;
    font-size: 13px;
    margin-left: 5px;
  }

  input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #bbb;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 15px;
  }

  input:focus, textarea:focus {
    border-color: #003366;
    outline: none;
    box-shadow: 0 0 4px rgba(0,51,102,0.3);
  }

  button {
    display: block;
    width: 100%;
    background: #003366; /* ボタンのネイビー */
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
  }

  button:hover {
    background: #00509e; /* 少し明るい青 */
  }

  textarea {
    resize: vertical;
  }
/* Contact us! のデザイン */
.headline1 {
  text-align: center;
  font-size: 30px;
  font-weight: 1000;
  letter-spacing: 1px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.red {
  color: #C1272D; /* サイトの赤色に近い */
}

.fontSpec {
  font-family: 'Lato', 'Roboto', 'Helvetica Neue', Arial, sans-serif; }

/* Logo container */
.logo-container {
  text-align: left;
  margin: 30px 0 0 40px;
}

.logo-container img {
  max-width: 220px;
  height: auto;
}

/* Error message box */
.error-box {
  margin: 20px auto;
  max-width: 600px;
  padding: 20px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 5px;
}

.error-box p {
  color: #856404;
  font-weight: bold;
}

.error-box ul {
  color: #856404;
}

/* Success message box */
.success-box {
  margin: 50px auto;
  max-width: 600px;
  padding: 40px;
  background: #EEE;
  border: 1px solid #ccc;
  border-radius: 10px;
  text-align: center;
}

.success-box .title {
  color: #000;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.success-box .message {
  color: #000;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.success-box .button-container {
  margin-top: 40px;
}

.success-box a {
  display: inline-block;
  padding: 15px 40px;
  background: #003366;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background 0.3s;
}

.success-box a:hover {
  background: #00509e;
}

/* Notice text */
.notice-text {
  margin: 30px auto;
  max-width: 600px;
  text-align: center;
  color: #6c757d;
  font-size: 14px;
}

/* Confirmation box */
.confirm-box {
  margin: 30px auto;
  max-width: 600px;
  padding: 20px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 5px;
}

.confirm-box .intro-text {
  margin-bottom: 20px;
  color: #333;
}

.confirm-box table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.confirm-box tr {
  border-bottom: 1px solid #dee2e6;
}

.confirm-box th {
  padding: 12px;
  text-align: left;
  width: 30%;
  background: #e9ecef;
}

.confirm-box td {
  padding: 12px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 0;
  overflow: hidden;
}

.confirm-box th.vertical-top {
  vertical-align: top;
}

.confirm-box .button-group {
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.confirm-box .btn-back {
  padding: 12px 30px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.confirm-box .btn-back:hover {
  background: #5a6268;
}

.confirm-box .btn-submit {
  padding: 12px 30px;
  background: #003366;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.confirm-box .btn-submit:hover {
  background: #00509e;
}

/* Error message box for mail failure */
.error-mail-box {
  margin: 20px auto;
  max-width: 600px;
  padding: 20px;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 5px;
}

.error-mail-box p {
  color: #721c24;
  font-weight: bold;
}