

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-flow: column;
    align-items: center;
    width: 100%;
}

main {
    background: #FFF;
    width: 90%;
    margin-top: 7rem;
}

h1 {
    background: white;
}

h1 small {
    font-size: 1rem;
    white-space: wrap;
}

h2 {
    background: #ECA869;
    color: white;
    margin: 0;
    padding: 0.5em;
    border-radius: 12px 12px 0 0;
}

a:link {
    color: #ee8914;
}

a:visited {
    color: #e5643d;
}

iframe {
    width: 90%;
    aspect-ratio: 4/3;
}

dt{
    font-weight: bold;
}

.container {
    display: grid;
    gap: 50px;
    margin-left: 50px;
    margin-right: 50px;
    padding-bottom: 30px;
    grid-template-columns: 1fr 1fr;
}

article {
    border-radius: 13px;
}

.global-nav {
    float: right;
    padding: 0;
}

.global-nav li {
    float: left;
    margin:0 20px;
    font-size:20px;
    list-style: none;
}

.global-nav li a{
    color: #dedede;
    text-decoration: none;
    font-family: 'M PLUS 1', sans-serif;
    font-size: 1em;
}
header {
    /*fixedで上部固定*/
    position: fixed;
    height: 3rem;
    width: 100%;
    z-index: 999;/*最前面へ*/
    background-color: #493a35;
    justify-content: space-between;
    align-items: center;
    color:#fff;
    text-align: center;
    padding: 15px;
}

/*　上に上がる動き　*/

#header.UpMove{
    animation: UpAnime 0.5s forwards;
  }
  
  @keyframes UpAnime{
    from {
      opacity: 1;
    transform: translateY(0);
    }
    to {
      opacity: 0;
    transform: translateY(-100px);
    }
  }
  
  /*　下に下がる動き　*/
  
  #header.DownMove{
    animation: DownAnime 0.5s forwards;
  }
  @keyframes DownAnime{
    from {
      opacity: 0;
    transform: translateY(-100px);
    }
    to {
      opacity: 1;
    transform: translateY(0);
    }
  }
/*ハンバーガーメニューボタン外側*/
.openbtn{
    position: relative;/*ボタン内側の基点となるためrelativeを指定*/
    float: right;
    margin-right: 20px;
    background:#ECA869;
    cursor: pointer;
      width: 50px;
      height:50px;
    border-radius: 5px;
}
/*ボタン内側*/
.openbtn span{
    display: inline-block;
    transition: all .4s;/*アニメーションの設定*/
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background: #444444;
    width: 45%;
}
.openbtn span:nth-of-type(1) {
    top:15px; 
}
      
.openbtn span:nth-of-type(2) {
    top:23px;
}
      
.openbtn span:nth-of-type(3) {
    top:31px;
}
/*activeクラスが付与されると線が回転して×に*/
.openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
}
.openbtn.active span:nth-of-type(2) {
    opacity: 0;/*真ん中の線は透過*/
}

.openbtn.active span:nth-of-type(3){
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
}
    /*ナビゲーション*/
#g-nav{
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position:fixed;
    z-index: -999;
    /*ナビのスタート位置と形状*/
    top:-1900%;
    left:0;
    width:100%;
    height: 80vmin;/*ナビの高さ*/
    background:rgba(236, 168, 105, 0.904);
        /*動き*/
    transition: all 1.5s;
}
/*アクティブクラスがついたら位置を0に*/
#g-nav.panelactive{
    top: 0;
    transition: 0.9s;
}
/*ナビゲーションの縦スクロール*/
#g-nav.panelactive #g-nav-list{
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: -999; 
    width: 100%;
    height: 80vmin;/*表示する高さ*/
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
/*ナビゲーション*/
#g-nav ul {
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: -999;
    top:30%;
    left:50%;
    padding-top: 8rem;
    transform: translate(-50%,-50%);
}
/*リストのレイアウト設定*/
#g-nav li{
    list-style: none;
    text-align: center; 
    float: none;
}   
#g-nav li a{
    color: #353535;
    text-decoration: none;
    padding:10px;
    display: block;
    letter-spacing: 0.1em;
    font-weight: bold;
 } 
.global-nav {
    width: 20rem;
}

.wrapper {
    display: grid;
    grid-template-columns: 25% 25% 25% 25%;
    margin-bottom: 10%;
}

.game-container {
    margin-right: 20px;
    margin-top: 15px;
    border: solid;
    border-color: #8a8886;
    border-radius: 12px;
    border-width: 1px;
    padding-left: 15px;
    padding-right: 15px;
}

.game-tag {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
}

li {
    list-style: none;
    margin: 3px;
    border-radius: 5px;
    padding: 3px 5px 3px 5px;
}

.tag {
    background-color: #f3bb87;
}

.search-form-003 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    border: 1px solid #584c32;
    border-radius: 3px;
    width: 350px;
}

.search-form-003 input {
    height: 45px;
    padding: 5px 15px;
    border: none;
    box-sizing: border-box;
    font-size: 1em;
    outline: none;
    width: 305px;
}

.search-form-003 input::placeholder{
    color: #584c32;
}

.search-form-003 button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 45px;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.search-form-003 button::after {
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%20%3Cpath%20d%3D%22M23.7%2020.8%2019%2016.1c-.2-.2-.5-.3-.8-.3h-.8c1.3-1.7%202-3.7%202-6C19.5%204.4%2015.1%200%209.7%200S0%204.4%200%209.7s4.4%209.7%209.7%209.7c2.3%200%204.3-.8%206-2v.8c0%20.3.1.6.3.8l4.7%204.7c.4.4%201.2.4%201.6%200l1.3-1.3c.5-.5.5-1.2.1-1.6zm-14-5.1c-3.3%200-6-2.7-6-6s2.7-6%206-6%206%202.7%206%206-2.6%206-6%206z%22%20fill%3D%22%23584c32%22%3E%3C%2Fpath%3E%20%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    content: '';
}

#time {
    display: flex;
}

#weightClassSelect {
    display: flex;
}

select {
    width: 9.5rem;
    font-size: 1rem;
}
option:checked {
    background-color: #225be0;
    color: #FFF;
}

  
@media screen and (max-width:767px) {
    .wrapper {
        grid-template-columns: 1fr;
    }
}