html {
    background: url(img/haikei01.jpg);
}
div#main {
    margin: 5em 5em;
    padding: 1em;
    display: block;
    position: relative;
    box-shadow: 2px 0 3px #666, -2px 0 3px #666;
}

#main::after {
    content: "";
    background: url(img/youhishi.png);
    opacity: 1;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: absolute;
    z-index: -1;
}

div.logo-left {
    margin-left: 330px;
}

div#title {
    font-family: "Sawarabi Mincho";
}

.logo-wrapper {
    float: left;
}

.logo {
    width: 300px;
    display: block;
    margin-right: 2em;
    margin-bottom: 1em;
    box-shadow: 1px 1px 3px #000;
}

.altlogo {
    display: block;
    margin-right: 2em;
    margin-bottom: 1em;
}


h1 {
    margin: 0;
    font-size: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 1px 1px 3px #000;
}

h2 {
    background: url(img/24fest-icon.png)  no-repeat;
    background-size: contain;
    padding-left: 2em;
    border-bottom: 1px dashed #000;
    font-family: "Sawarabi Mincho";
}

h3 {
    margin: 0;
}

p {
    margin: 0;
}

dt {
    font-weight: bold;
}

ol {
    padding-left: 1.5em;
}

.googlemap {
    text-decoration: none;
    color: black;
    border: 1px solid #666;
    border-radius: 5px;
    padding: 4px 5px 3px 0;
    background: rgba(255, 255, 200, 0.5);
    transition: background-color 0.1s ease;
    white-space: nowrap;
}

.googlemap img {
    vertical-align: bottom;
}

.googlemap:hover {
    background: rgba(255, 255, 128, 0.5);
}

#sub-title {
    padding-left: 53%;
}

.sp-br {
    display: none;
}

@media (max-width: 767px) {
    div#main {
        margin: 0 0.5em;
    }
    div.logo-left {
        clear: both;
        margin: 0;
    }
    .logo {
        float: none;
        max-width: 300px;
        width: 45%;
        display: inline-block;
        margin: 0;
        margin-bottom: 1em;
    }
    div.logo-wrapper {
        text-align: center;
    }
    .sp-br {
        display: block;
    }
}










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 small {
    font-size: 1rem;
    white-space: wrap;
}



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;
}
