@charset "UTF-8";

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #e8ecef;
  color: #333;
  overflow-x: hidden; /* 横スクロール防止 */

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

header {
  text-align: center;
}

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

.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;
}


main.section {
  padding: 0;
  margin: 0;
}

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

h1, h2 {
  text-align: center;
}

h2 {
  color: #00608d;
}


/* ===== ログインフォームのスタイル ===== */

form {
  background-color: #fff;
  max-width: 400px;
  margin: 70px auto;
  padding: 30px 40px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

form h2 {
  font-size: 1.5em;
  color: #00608d;
  margin-bottom: 30px;
  text-align: center;
}

form p {
  margin-bottom: 20px;
}

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

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

button[type="submit"] {
  display: block;
  margin: 0 auto;
  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 {
  color: #d9534f;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
}

/* レスポンシブ */
@media (max-width: 600px) {
  html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 横スクロール防止 */
    width: 100%;
    box-sizing: border-box;
  }

  .text {
    padding: 0 10px;       /* 両側10pxのパディング */
    max-width: 100vw;      /* ビューポート幅に収める */
    width: 100%;           /* 幅は画面いっぱい */
    box-sizing: border-box; /* パディング込みの幅計算 */
  }

  h1 a {
    font-size: 1.3em;
    -webkit-text-stroke: 0.8px #4b3832;
  }

  h2 {
    font-size: 1.4em;
  }

  h3 {
    font-size: 1.1em;
  }

  p {
    overflow-wrap: break-word; /* 長い単語でも折り返す */
    word-break: break-word;    /* 古いブラウザ対応も兼ねる */
    hyphens: auto;             /* 可能ならハイフネーション */
  }

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

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

  form {
    margin: 30px 15px;
    padding: 25px 20px;
  }
}
