@font-face {
  font-family: 'MyLatinFont';
  src: url('font/din.woff') format('woff');
  unicode-range: U+0000-00FF, U+0100-024F; /* ラテン文字と欧文記号 */
  font-display: swap;
}
body {
  font-family: 'MyLatinFont','Roboto', sans-serif;
  margin: 0;
  padding: 0;
  width: 100%;

}

.icon {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  z-index: 30;
  cursor: pointer;
}

.container {
  margin: auto;
  max-width: 1000px;
  padding: 55px 25px;
  min-height: 100vh;
}

.menu-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
    height: 60px;
  padding: 20px;
  box-sizing: border-box;
  transition: top 2s;
    background: rgb(255 255 255 / .4);
    backdrop-filter: blur(6px);
  text-align: center;
  z-index: 20;
}

.menu-bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.menu-bar ul li {
  display: inline-block;
  margin: 0 5px;
  width: 25%;
  max-width: 200px;
}
.menu-bar ul li a.active {
  color: #224B8F;
  border-bottom: 2px solid #224B8F;
}

.menu-bar ul li:nth-child(2) {
  margin-right: 50px;
}

.menu-bar ul li a {
  text-decoration: none;
  color: #555;
  font-size: 18px;
  padding: 10px 10px;
  transition: 0.3s;
}

.menu-bar ul li a:hover {
  color: #224B8F;
}

footer {
  position: fixed;
  bottom: 0;
  text-align: center;
  padding: 20px;
  background-color: #224B8F;
  color: #fff;
  width: 100%;
}

footer p {
  margin: 0;
}

.banner {
  margin: 10px 0;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
}

.banner li {
  list-style: none;
  width: calc(100% / 3);
  padding: 5px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .banner li {
    width: calc(100% / 2);
  }
}

/* ▼ .btn アニメーション表示用 ▼ */
.btn {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  display: block;
  overflow: hidden;
  cursor: pointer;

  opacity: 1;
  transform: scale(1);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: auto;
}

/* ▼ 透過表示（非選択）→ フェードアウトに近い見た目 */
.btn.dimmed {
  opacity: 0.3;
  transform: scale(0.9);
  pointer-events: none; /* ホバー等も無効に */
}

/* ▼ ホバーで画像入れ替え（そのまま） */
.btn img {
  position: absolute;
  max-width: 100%;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  transition: 0.4s ease-in-out;
}

.btn img:nth-of-type(2) {
  top: -100%;
}

.btn:hover img:nth-of-type(2) {
  top: 50%;
}