*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

#container{
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  overflow: hidden;
}

#header{
  position: relative;
  width: 100%;
  overflow: hidden;
}

#keyvisual{
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  margin-bottom: 20px;
}

#keyvisual img{
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

#keyvisual:hover img {
  transform: scale(1.02);
}

#main{
  width: 100%;
  padding: 0 20px;
}

#wrapper{
  width: 100%;
}

#content{
  width: 100%;
}

.section-container{
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

.section-title{
  position: relative;
  padding: 15px 20px;
  margin: 20px 0;
  color: #fff;
  font-size: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.gakubu-title{
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
}

.in-title{
  background: linear-gradient(135deg, #09B2F1, #0277BD);
}

.categories-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.category{
  flex: 1;
  min-width: 30%;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.category:hover{
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.gakubu-category{
  border-left: 5px solid #4CAF50;
}

.in-category{
  border-left: 5px solid #09B2F1;
}

.category-header{
  padding: 15px;
  font-weight: bold;
  font-size: 18px;
  background-color: rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-icon{
  width: 32px;
  height: 32px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.category-content{
  padding: 15px;
}

.category-content ul{
  list-style-type: none;
  margin-left: 10px;
}

.category-content li{
  margin-bottom: 8px;
  position: relative;
  padding-left: 15px;
}

.category-content li::before{
  content: "▶";
  position: absolute;
  left: 0;
  font-size: 10px;
  color: #666;
}

.category-content a{
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.category-content a:hover{
  color: #09B2F1;
  text-decoration: underline;
}

.grad-course-container{
    padding: 10px 20px;
  }

  .grad-course-header{
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
  }

  .grad-course-row{
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
  }

  .grad-course-item{
    width: 130px;
    height: 80px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 3px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
  }

  .grad-course-item:hover {
    transform: translateY(-5px);
  }

  .grad-course-item.advanced{
    border-color: #000000;
  }

  .course-title{
    font-size: 14px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

.carousel-container{
  position: relative;
  width: 100%;
  margin: 20px 0;
  overflow: hidden;
  /* 高さは固定 */
  height: 220px;
}

.carousel{
  display: flex;
  gap: 20px;
  padding: 10px 0;
  /* 初期位置は0 */
  transform: translateX(0);
}

.carousel-item{
  flex: 0 0 auto;
  width: 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-item:hover{
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.carousel-item img{
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.carousel-item:hover img {
  transform: scale(1.05);
}

/* 自動スクロール用の keyframes は JavaScript で動的に生成します */

/* 以下、リフレッシュボタンに関するスタイルは削除 */

#footer{
  background-color: #333;
  color: #fff;
  padding: 30px 0;
  margin-top: 50px;
}

#footerContainer{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#commonFooter .address{
  margin-bottom: 20px;
  line-height: 1.8;
  text-align: center;
}

#commonFooter .address strong{
  display: block;
  font-size: 18px;
  margin-bottom: 10px;
}

#commonFooter .address span{
  display: block;
}

#commonFooter small{
  font-size: 12px;
  opacity: 0.8;
  display: block;
  text-align: center;
}

.pageTop{
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
}

.pageTop a{
  display: block;
  width: 50px;
  height: 50px;
  background-color: rgba(9, 178, 241, 0.7);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.pageTop a:hover{
  background-color: rgba(9, 178, 241, 1);
  transform: translateY(-5px);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animated {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

.material-icon{
  font-size: 24px;
}

@media (max-width: 1200px) {
  .categories-container {
    flex-direction: column;
  }
  
  .category{
    width: 100%;
  }
}

@media (max-width: 768px) {
  .carousel-item{
    width: 250px;
  }
}

@media (max-width: 480px) {
  .carousel-item{
    width: 200px;
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

#bouncingCharacter{
  position: fixed;
  bottom: 30px;
  right: 100px;
  width: 120px;
  height: auto;
  z-index: 1000;
  cursor: pointer;
  animation: bounce 2s ease-in-out infinite;
  transition: transform 0.2s;
}

#bouncingCharacter:hover {
  transform: scale(1.1) translateY(-10px);
}

#bouncingCharacter:active {
  transform: scale(0.95);
}

/* タイトルのアニメーション用スタイル（アニメーション削除、フォントサイズ拡大） */
.main-title{
  text-align: center;
  font-size: 48px;
  font-weight: 700;
  margin: 30px 0;
  color: #333;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  background: linear-gradient(45deg, #4CAF50, #09B2F1, #4CAF50);
  background-size: 200% 200%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  /* アニメーション削除 */
  padding: 10px 20px;
  border-radius: 10px;
  display: inline-block;
}

/* よくある質問 Q&A 関連 */
.qa-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.qa-column{
  flex: 1;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.qa-column:hover{
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.qa-header{
  padding: 15px;
  font-weight: bold;
  font-size: 18px;
  background-color: rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
}

.qa-content{
  padding: 15px;
}

.qa-q{
  color: #2196f3;
  font-weight: bold;
  margin-top: 1em;
  margin-bottom: 8px;
}

.qa-a{
  color: #000;
  margin-bottom: 1em;
}

.qa-a .answer {
  color: #e53935;
}

.qa-content a{
  color: #000000;
  text-decoration: underline !important;
}