@charset "UTF-8";

/* 基本リセットとボックスサイズ設定 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #e8ecef;
  color: #333;
  overflow-x: hidden; /* 横スクロール防止 */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ヘッダーとタイトル */
header {
  text-align: center;
}

.overlay-title {
  text-align: center;
  color: silver;
  font-size: 4rem;
  -webkit-text-stroke: 1.5px #4b3832;
  margin-bottom: 10px;
  text-shadow: none;

  font-family: "Prata", serif;
  font-weight: 400;
  font-style: normal;
}

.overlay-title a {
  text-decoration: none;
  color: inherit;
}

/* メインコンテンツのテキスト */
main.section {
  padding: 0;
  margin: 0;
}

.text {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
  word-break: break-word;
}

/* 見出し */
h1, h2 {
  text-align: center;
}

h2 {
  color: #00608d;
  margin-bottom: 20px;

  font-family: "Lato", sans-serif;
  font-weight: 600;
  font-style: italic;
}

/* ===== 登録フォームのスタイル ===== */
form {
  background-color: #fff;
  max-width: 400px;
  margin: 0 auto 40px;
  padding: 30px 40px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
  border-color: #00608d;
  outline: none;
  background-color: #f0f6fc;
}

select{
  font-size: 1em;
  padding: 10px 15px;
  height: auto;
  min-height: 40px;
}

button[type="submit"] {
  display: block;
  margin: 20px auto 0;
  width: 50%;
  padding: 12px 15px;
  background-color: #4b3832;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #6a5047;
}

/* リンク */
p a {
  display: block;
  text-align: center;
  margin-top: 30px;
  font-size: 1rem;
  color: #4b3832;
  text-decoration: none;
  transition: color 0.3s ease;

  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
}

p a:hover {
  color: #7b5946;
}

/* エラーメッセージ */
.error-message,
p[style*="color:red"] {
  color: #d9534f;
  font-weight: bold;
  margin: 10px 0;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
  h1 {
    font-size: 2.5rem;
    -webkit-text-stroke: 1px #4b3832;
  }

  h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }

  .text {
    padding: 0 10px;
    font-size: 0.95rem;
  }

  form {
    width: 90%;
    padding: 20px;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  select {
    font-size: 0.95em;
    padding: 10px 12px;
  }

  button[type="submit"] {
    width: 100%;
    font-size: 1em;
    padding: 10px;
  }

  footer {
    font-size: 1em;
    padding: 10px 5px;
  }

  .footer-copy {
    font-size: 10px;
  }
}
