html {
  font-family: 'M PLUS 1', sans-serif;
  overflow-x: hidden;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: white;
  width: 100%;
  padding: 1% 5%;
  height: 60px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 4px double black;
  flex-wrap: nowrap;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
  width: fit-content;
}
.logo img {
  height: 82%;
  display: block;
  margin: 0;
}
/* 非アクティブ */
#hmb {
  width: 32px;
  height: 28px;
  cursor: pointer;
  position: relative;
  z-index: 110;
}

#hmb span {
  width: 32px;
  height: 3px;
  display: block;
  background-color: #000000;
  border-radius: 2px;
  position: absolute;
  transition: .2s;
}
#hmb span:first-child {top: 0;}
#hmb span:nth-child(2) {top: 12px;}
#hmb span:last-child {top: 24px;}
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: white;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition-property: all;
  transition-duration: .2s;
}
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}
nav ul li a {
  background: none;
  font-size: 24px;
  color: black;
  display: block;
  margin-bottom: 16px;
}
/* アクティブ */
.active #hmb span:first-child{
  top: 12px;
  transform: rotate(225deg);
}
.active #hmb span:nth-child(2) {
  opacity: 0;
}
.active #hmb span:last-child {
  top: 12px;
  transform: rotate(-225deg);
}
.active nav {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

@media screen and (min-width: 1000px) {
  #hmb {
    display: none; /* PCではハンバーガーメニュー非表示 */
  }
  .logo {
    display: flex;
    align-items: center;
    width: auto;
  }
  .logo img {
    width: 100%;
    max-width: 230px;
    height: auto;
    display: block;
  }
  nav {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    height: auto;
    width: auto;
    display: block;
    background-color: transparent;
    padding: 0;
  }

  nav ul {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  nav ul li {
    flex: unset;
    text-align: center;
  }
  nav ul li a {
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
    margin: 0;
    font-size: 17px;
    font-weight: 700;
  }
  nav ul li a:hover {
    color: #0077cc;
    transform: scale(1.1);
  }
  nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #0077cc;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
  }
  
  nav ul li a:hover::after {
    transform: scaleX(1);
  }

  #header {
    align-items: center;
    height: auto;
    padding: 20px 5%;
  }
}
main {
  text-align: center;
  padding: 60px 0;
  background-color: rgba(13, 26, 140, 0.06);
  min-height: 76vh;
}
.container {
  width: 90%;
  margin: 0 auto;
}
#banner img {
  width: 100%;
  max-width: 700px;
}
/* スライド基本スタイル */
.slideshow-container {
  position: relative;
  max-width: 700px;
  margin: auto;
  overflow: hidden;
  z-index: 1;
}

.slides-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
}

.slide img {
  width: 100%;
  display: block;
}


.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 16px 8px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  transition: 0.3s ease;
  user-select: none;
  background-color: rgba(0,0,0,0.5);
  z-index: 10;
}

.prev {
  left: 0;
  border-radius: 0 3px 3px 0;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}
.update {
  width: 90%; /* 幅を調整してください */
  max-width: 700px;
  height: auto;
  max-height: 50vh;
  overflow-y: auto;
  margin: 20px auto; /* 中央寄せと上下の余白 */
  border: 1px solid #ccc; /* 区切り線 */
  border-radius: 10px;
  padding: 20px;
  font-family: sans-serif;
  background-color: #fff;
}

.update h2 {
  color: #dc3545; /* タイトルの色 */
  border-bottom: 2px solid #dc3545;
  padding-bottom: 10px;
}

.news-item {
  display: flex;
  flex-direction: column;
  padding: 15px 0;
  border-bottom: 1px dotted #ccc;
}

.news-item:last-child {
  border-bottom: none; /* 最後の記事の区切り線を消す */
}
.news-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  transition: background-color 0.2s ease-in-out;
}
.news-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.news-date {
  color: #777;
  font-size: 14px;
  margin-right: 10px;
}
.news-title {
  margin-top: 5px;
  font-size: 15px;
  font-weight: bold;
}
.news-summary {
  margin-top: 5px;
  font-size: 15px;
}
#rikumaga {
  margin-bottom: 24px;
}
#rikumaga img {
  width: 350px;
}
#union {
  margin-top: 24px;
}
#union img {
  width: 350px;
}

@media screen and (min-width: 768px) {
  main {
    padding: 70px 10%;
  }
}

footer {
  position: relative;
  background-color: darkblue; /* フッターの背景色（画像に合わせて） */
  color: #eee; /* フッターの文字色（画像に合わせて） */
  padding: 50px 20px 30px 20px;
  display: flex;
  justify-content: space-between; /* 左右の要素を均等に配置 */
  align-items: flex-start; /* 上端を揃える */
  font-size: 0.9em;
  z-index: -1;
  padding-bottom: 30px;
}
.pagetop-button {
  position: absolute; /* フッターに対して絶対配置 */
  top: 10px; /* 上からの位置を調整 */
  left: 50%; /* 水平方向の中央に配置 */
  transform: translateX(-50%); /* 中央揃えを調整 */
  background-color: #dc3545; /* ボタンの背景色（画像に合わせて） */
  color: #fff; /* ボタンの文字色 */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.8em;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  opacity: 0; /* 最初は非表示 */
  visibility: hidden; /* 最初は非表示 */
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.pagetop-button:hover {
  opacity: 0.8;
}

.pagetop-button svg {
  width: 1em;
  height: 1em;
}

/* スクロールが一定量されたら表示 */
.show-pagetop {
  opacity: 1;
  visibility: visible;
}
.footer-info, .footer-reception {
  margin-bottom: 15px; /* 各セクションの下マージン */
}

.label {
  display: inline-block;
  background-color: #444; /* TEL/FAXの背景色（画像に合わせて） */
  color: #eee;
  padding: 3px 8px;
  border-radius: 3px;
  margin-right: 5px;
  font-size: 0.8em;
}

.address {
  line-height: 1.5;
}
.reception-title {
  font-weight: bold;
  margin-bottom: 10px;
}

.footer-reception ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-reception li {
  margin-bottom: 5px;
}

.notice {
  font-size: 0.8em;
  color: #ccc;
  margin-top: 10px;
}
.copyright {
  position: absolute; /* 親要素（footer）を基準に絶対配置 */
  bottom: 15px; /* フッターの下端から10px上に配置 */
  left: 50%; /* 左端から50%の位置に配置 */
  transform: translateX(-50%); /* 要素の幅の半分だけ左にずらして中央揃え */
  text-align: center; /* テキストを中央揃え */
  width: 100%; /* 親要素の幅いっぱいに広げる */
  font-size: 0.8rem;
  font-weight: 600;
  color: #bbb; /* 著作権表示の文字色 */
}