body {
  margin: 0;
  background-color:#F0F8FF;
     max-width: auto;
}

.jump{
  text-decoration: none;
}

.ima{
  height: auto;
  width: 100%;
}

h1{
  border-bottom: 5px solid #456a9c;
  scroll-margin-top: 150px;
}

h2{
  padding-top: 7px;
  padding-bottom: 7px;
  padding-left: 10px;
  background: #f4f4f4;
  border-left: 5px solid #000000;
  scroll-margin-top: 150px;
}

h3{
  font-size: 20px;
}

.page{
  font-size: 28px;
  list-style: none;
  display: block;
  padding-right: 1%;
}

.page a{
  text-decoration: none;
  background-color: #ffe9ab;
  color: #000000;
}


/*-----ハンバーガーメニュー-----*/


.hm{
  position: fixed;
  display: block;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 40px;
  cursor: pointer;
  transition: transform 0.3s;
  margin: 1% 1% 0 auto;
  border-radius: 2px;
  padding: 2px;
  z-index: 1005;
  right: 1%;  
  
}

.hm-line{
  width: 100%;
  height: 4px;
  background-color: #ffffff; /*メニューの線の色*/
  margin-bottom: 4px;
  transition: 0.3s ease-in-out;
  transform-origin: left;
  margin-top: 6px;
  padding-top: 1%;
  padding-right: 1%;
  z-index: 1002;
}

.hm-line:nth-child(2){
  margin-top: 9px;
  margin-bottom: 9px;
}

.hm.active .hm-line:nth-child(1){    /*クリック時にバツ印に変化*/
  transform: rotate(32deg);
  top: 11px;
  background-color: #333;
}

.hm.active .hm-line:nth-child(2){
  opacity: 0;
  background-color: #333;
}

.hm.active .hm-line:nth-child(3){
  transform: rotate(-32deg);
  top: 11px;
  background-color: #333;
}

.hm-menu{
  list-style: none;
  padding-left: 0;
  margin-top: 0px;
  padding-top: 10%;
  font-size: 25px;
  display: none;
  position: fixed;
  right: 0;
  background: #bdc8dbec; /*メニューの背景*/
  width: 350px;
  height: 100%; 
  z-index: 1001;
  
}

.webkon {
  text-align: center;            /* ← 画像を中央寄せ */
}

.hm-line .webkon{
  display: block;
  padding: top 2000px;
}

.unkoun{
  height: 45%;
}



.hm-list {
  display: block; /* ← リンク全体がクリック＆ホバー範囲になる */
  width: 100%;
  padding: 15px 20px;
  color: #001a49;
  text-decoration: none;
}

.hm-list .webkon .contestbanner{
  
  padding-top: 200px;
}

.hm-content{
  width: 100%;
  transition: background-color 0.4s ease;
}

.hm-content:hover {
  background-color: #ababe7;
}

.active + .hm-menu{
  display: block;
  animation: slideIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideIn {
  0% {
    transform: translateX(180px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
  }
  40%,100% {
    opacity: 1;
  }
}

/*メニューのスライドイン*/

/*-----ハンバーガーメニュー-----*/

/*-----ヘッダ-----*/
.sticky {
  background-color: #243957;
  color: white;
  padding: 5px 0;
  position: sticky;
  top: 0;
}

.flex {
  display: flex;
  align-items: center;           
  padding: 0;
}

.logo img {
  height: 100px;
  width: 170px;
}

.menu .header-content {
  margin-left: 20px;
  color: #f3dda1;
  font-size: 25px;
  text-decoration: none;
}


.header-menu {
  width: 100%;
  list-style: none;
  display: flex;
 
}

.header-menu > li{
  position: relative;
}

.header-content{
  margin-left: 0;
  padding: 10px 5px;
  color: #ffffff;
  text-decoration: none;

  transition: background-color 0.4s ease;
}

.header-content:hover{
  background-color: #042a70;
}

.header-menu-list{
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1b1b74cb;
  list-style:none;
  margin: 0;
  padding: 0;
  border-radius: 0 0 4px 4px;
  min-width: 200px;
  z-index: 100;
}

.header-menu-list li a{
  display: block;
  padding: 10px 15px;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.header-menu-list li a:hover{
  background-color: #ababe7;
}

.header-menu > li:hover .header-menu-list{
  display: block;
  animation: fadeIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}


@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 100;
  }
}

@media (max-width: 900px) {
  .menu {
    display: none;
  }

  .logo {
    text-align: left;
    width: 100%;
  }
}
/*-----ヘッダ-----*/

/*-----サイドスペース-----*/
.layout {
  display: flex;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
  gap: 16px;
}
.side-space {
  width: 100px;
  min-height: 100px;
  background-color: #F0F8FF;
  text-align: center;
  box-sizing: border-box;
}

main {
  flex: 1;
  background-color: #ffffff;
  padding: 16px;
  box-sizing: border-box;
}

@media (max-width: 1150px) {
  .layout {
    flex-direction: flex; 
  }

  .side-space {
    width: 15px;
    min-height: 60px;
  }

  main {
    width: 100%;
    max-width: 100%;
  }
}
/*-----サイドスペース-----*/

/*-----フッタ-----*/
footer {
  background-color: #243957;
  color: #fff;
  padding: 10px 50px 10px;
  font-size: 14px;
}

footer h3{
  font-size: 20px;
  text-align: center;
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

footer .section {
  flex: 1 1 120px;
  margin: 5px;
}

footer .section h3 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #f3dda1;
}

footer .section ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

footer .section ul li {
  margin-bottom: 8px;
}

footer .section ul li a {
  color: #fff;
  text-decoration: none;
}

footer .section ul li a:hover {
  text-decoration: underline;
}

footer .bottom {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid #f0e8e8;
  margin-top: 15px;
}

@media (max-width: 650px) {
  footer .container {
    flex-wrap: wrap;              
    flex-direction: row;       
    justify-content: center;      
  }

  footer .section {
    flex: 1 1 45%;             
    margin: 10px;             
    text-align: center;         
  }
}
/*-----フッタ-----*/