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

h1 a {
  text-decoration: none;
  color: silver;
  -webkit-text-stroke: 1.5px #4b3832;
  font-size: 2em;

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

h2 {
  color: #00608d;
}

h3, p {
  color: #1c305c;
}

.text a {
  text-decoration: none;
  color: #4b3832;
  font-weight: bold;
}

footer {
  background-color: #c0c6c9;
  color: #333;
  text-align: center;
  padding: 15px 10px;
  font-size: 1.3em;
  border-top: 1px solid #ddd;
  margin-top: 40px;
}

footer a {
  color: #555;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #e8ecef;
}

.footer-top,
.footer-bottom {
  margin-bottom: 10px;
}

.footer-copy {
  font-size: 12px;
  color: #777;
}

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