@charset "UTF-8";


/* ヘッダー部分 */
header {
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.432);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  /* スムーズな変化 */
}

header.transparent {
  background-color: rgba(255, 255, 255, 0.432);
  box-shadow: none;
}

header.solid {
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header a {
  color: black;
  text-decoration: none;
}

header h1 {
  font-size: 36px;
  margin-bottom: 3px;
  margin-top: 10px;
  font-family: 'Noto Sans JP', "游明朝", "ヒラギノ明朝 ProN", "Hiragino Mincho Pro", 'Noto Serif JP', sans-serif;
}

header h2 {
  font-size: 18px;
  margin-top: 0;
  font-family: "游明朝", "游明朝体", "ヒラギノ明朝 ProN", "Hiragino Mincho Pro", 'Noto Serif JP', sans-serif;
}

/* メニュー部分 */
nav ul {
  display: table;
  margin: 0 auto;
  padding: 0;
  width: 80%;
  text-align: center;
}

nav li {
  display: table-cell;
  /* min-width: 20%;*/
  
}

nav a {
  position: relative;
  display: block;
  width: 100%;
  text-decoration: none;
  color: #000000;
  padding-bottom: 10px;
}

nav li.current {
  border-bottom: 3px solid #000000;
}

nav li:hover {
  color: #000000;
  border-bottom: 3px solid #000000;
  transition: 0.15s;
}

.photo-container {
  display: flex; /* 横並びにする */
  justify-content: space-between; /* 余白を均等に配置 */
  gap: 10px; /* 写真の間隔 */
}
.photo-container img {
  width: 30%; /* 写真を均等な幅に */
  max-width: 100%; /* サイズが大きすぎる場合に対応 */
  height: auto; /* 縦横比を維持 */
  border: 1px solid #ccc; /* 写真に枠を追加（任意） */
  border-radius: 5px; /* 角を丸くする（任意） */
}

/* スライド画像 */
.slideshow-container {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}


body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  margin: 0;
  padding: 0;
}

/* 全体のレイアウト */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}


/* 主要コンテンツ部分 */
.content-area {
  width: 90%;
  /* 全幅を使用 */
  background-color: #e0e0e0af;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.2);
}

.content-area img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.content-area h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.content-area p {
  line-height: 1.8;
}


/* お知らせ部分 */
.news-container {
  height: 200px; /* 高さを固定 */
  overflow-y: auto; /* 縦方向にスクロール可能 */
  border: 1px solid #ccc; /* 枠線 */
  padding: 10px; /* 内側の余白 */
  background-color: #f9f9f9; /* 背景色 */
  border-radius: 5px; /* 角を丸くする（任意） */
  position: relative;

}
.news-item {
  display: flex;
  margin-bottom: 10px; /* 各ニュースの間隔 */
  padding-bottom: 10px; /* 下に余白 */
  border-bottom: 1px solid #ddd; /* 区切り線 */
}
.news-item:last-child {
  border-bottom: none; /* 最後のアイテムには線を付けない */
}
.news-date {
  font-size: 0.9em;
  color: #555;
}
.news-content {
  padding-left: 5%;
  font-size: 1em;
  color: #333;
}

/*ホームのやつ */

.name-container {
  margin: 3%;
  width: 44%;
  background-color: #f9f9f9;
  position: relative;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  float: left;
}

.spo-container {
  width: 90%;
  margin: 5%;
  background-color: #f9f9f9;
  position: relative;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  float: left;
}

.name-title {
  text-align: center;
  font-size: 1.5em;
  padding: 2%;
  color: #333
}

.name-colortitle {
  text-align: center;
  font-size: 1.5em;
  padding: 2%;
  color: #ffffff;
  background-color: #ff5353;
  width: 96%;
}
.name-colortitle1 {
  text-align: center;
  font-size: 1.5em;
  padding: 2%;
  color: #ffffff;
  background-color: #53ceff;
  width: 96%;
}

.name-colortitle2 {
  text-align: center;
  font-size: 1.5em;
  padding: 2%;
  color: #ffffff;
  background-color: #2bff72;
  width: 96%;
}

.name-content {
  text-align: center;
  font-size: 1em;
  color: #333;
  padding: 1%;
}

/* フッター部分 */
footer {
  background-color: white;
  color: black;
  text-align: center;
  padding: 10px;
  margin-top: 0;
}

.under0 {
  background: linear-gradient(transparent 80%, #ff5353 70%);
}
/* #ff3737 #3a37ff*/

.under1 {
  background: linear-gradient(transparent 80%, #3a37ff 70%);
}

.under2 {
  background: linear-gradient(transparent 80%, #37ff37 70%);
}
/* レスポンシブ */

@media (max-width: 400px) {

  nav a {
    font-size: 5px;
  }
}

@media (max-width: 768px) {
  .announcement-item {
    width: 80%;
  }

  .date {
    width: 20%;
  }

  .announcement p {
    width: 100%;
  }

  header h1 {
    font-size: 22px;
  }

  header h2 {
    font-size: 8px;
  }

  .name-colortitle {
    font-size: 0.6em;
  }

  .name-colortitle1 {
    font-size: 0.6em;
  }

  .name-colortitle2 {
    font-size: 0.6em;
  }

  .name-title {
    text-align: center;
    font-size: 0.6em;
    padding: 2%;
    color: #333
  }
  

  nav a {
    font-size: 7px;
  }


}

