html {
  height: 100%;
}

body {
  font-family: "Klee One", cursive;
  height: 100%;
  margin: 0;
  font-size: medium;
}

header {
  background-image: url(img/roki.webp);
  background-size: cover;
  background-color: black;
  height: 260px;
  background-position: center;
  color: cornsilk;
  text-shadow: 10px 10px 20px plum;
  font-size: xxx-large;
  font-family: "Rampart One", cursive;
  text-align: center;
  line-height: 200px;
}

footer a {
  color: #007BFF;
  /* リンクの色を青に */
  text-decoration: none;
  /* 下線を消す */
}

footer a:hover {
  text-decoration: underline;
  /* ホバー時に下線を表示 */
  color: #0056b3;
  /* ホバー時に色を少し濃く */
}

footer small {
  font-size: 0.8em;
  /* 小さいフォントサイズ */
}

.GlobalNavigation {
  background-color: #b93c3c;
  padding: 10px 0;
  border: 2px solid #8c2323;
  /* 外枠を追加 */
  border-radius: 5px;
  /* 少し丸みを追加 */
}

.GlobalNavigation ul {
  margin: 0;
  padding: 0;
  text-align: center;
}

.GlobalNavigation li {
  display: inline-block;
  margin: 0 20px;
  /* 左右の間隔を調整 */
}

.GlobalNavigation a {
  color: #ffffff;
  text-decoration: none;
  font-size: larger;
  padding: 5px 10px;
  /* 領域を広げる */
  border: 1px solid transparent;
  /* 初期状態でボーダーを透明に */
  border-radius: 3px;
  /* ボタンのようにするため角を丸く */
}

.GlobalNavigation a:hover {
  background-color: #8c2323;
  border: 1px solid #ffffff;
  /* ホバー時にボーダーを目立たせる */
}

nav a {
  font-size: larger;
}

/*旧枠はold.htmlの埋め込みCSSに移動*/

/* 新枠デザイン */
.Waku {
  border: 5px solid #000;
  /* 枠の太さと色 */
  padding: 40px;
  /* 内側の余白 */
  background-color: #ffffff;
  /* 背景色 */
  box-sizing: border-box;
  /* 枠とパディングを含めたボックスサイズ */
}

.title {
  font-size: 30px;
  font-family: "Kiwi Maru", serif;
  border-left: 10px solid #000;
  /* タイトルの左側にのみ線を追加 */
  padding-left: 15px;
  margin-bottom: 50px;
}

.Waku p {
  color: #020241;
  font-size: 23px;
  line-height: 160%;
}

.Waku .image-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  /* 画像間のスペース */
}

.Waku picture {
  display: block;
  width: 32%;
  /* 3列に収まるように幅を設定 */
}

.Waku img {
  width: 256px;
  /* 画像が親要素(picture)に合わせてサイズを調整 */
  height: auto;
}

/*リンクボタンデザイン
クラスでbtn btn--orange btn--radiusを宣言
*/
*,
*:before,
*:after {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 62.5%;
}

.btn,
a.btn,
button.btn {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding: 1rem 4rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  letter-spacing: 0.1em;
  color: #212529;
  border-radius: 0.5rem;
}

.btn--orange,
a.btn--orange {
  color: #fff;
  background-color: #eb6100;
}

.btn--orange:hover,
a.btn--orange:hover {
  color: #fff;
  background: #a54500;
}

.btn--white,
a.btn--white {
  color: #eb6100;
  background-color: #fff;
  border: 1px solid #eb6100;
  /* Optional: ボーダーを追加する場合 */
}

.btn--white:hover,
a.btn--white:hover {
  color: #eb6100;
  background-color: #f5f5f5;
  /* ホバー時に少し灰色に */
}


a.btn--radius {
  border-radius: 100vh;
}
/* 埋め込みリンクセクション */

#EmbeddedLink ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  /* 自動で列を調整 */
  gap: 1rem;
  /* 項目間のスペース */
  padding: 0;
  margin: 0;
  list-style: none;
  /* リストのデフォルトマーカーを削除 */
}

#EmbeddedLink li {
  padding: 0.5rem;
  text-align: center;
  /* コンテンツを中央揃え */
  background-color: #f9f9f9;
  /* 背景色を追加 */
  border: 1px solid #ddd;
  /* 軽い境界線を追加 */
  border-radius: 8px;
  /* 角を丸くする */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  /* 軽い影 */
}

#EmbeddedLink li a {
  display: block;
  text-decoration: none;
  color: #333;
  /* テキストの色 */
  padding: 1rem;
}

#EmbeddedLink li img {
  max-width: 100%;
  /* 画像をボックスに収める */
  height: auto;
  border: none;
}

/* モバイル表示 */
@media screen and (max-width: 450px) {
  header {
    height: 160px;
    font-size: large;
    line-height: 160px;
  }

  .GlobalNavigation ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .GlobalNavigation li {
    margin-right: 0;
    margin-bottom: 10px;
  }

  #EmbeddedLink ul.grid-list {
    grid-template-columns: 1fr;
  }
}