@charset "utf-8";
body{
    width: 100%;
    background: #FFF;
    margin: 0 auto;
}
.container{
    width: 99.98%;
    margin: 0 auto;
}
img{
    width: 100%;
}
h2{
    text-align: center;
    font-size: 1.5em;
    line-height: 4em;
    font-family: "Encode Sans SC", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}
h3{
    font-size: 1.5em;
    font-weight: 400;
    line-height: 2em;
}


/*==============header==============*/
header{
    background: black;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1em 1.5em;
    position: relative;
    z-index: 100; 
}
header nav{
    width: 40%; 
}
header nav ul{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
header nav ul li a{
    color: #FFF;
    position: relative;
}
header nav ul li a::before{
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #FFF;
  top: 120%;
  left: 50%;
  transform: translateX(-50%) scaleY(0);
  transition: all 0.2s;
}
header nav ul li a:hover::before {
  transform: translateX(-50%) scaleY(1);
}
.hamburger-btn {
    display: none;
}



/* --- Media Query --- */
@media screen and (max-width: 1021px) {
    header nav {
        width: 50%; 
        position: fixed; 
        top: 0;
        right: -50%; 
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9); 
        z-index: 99; 
        transition: transform 0.3s ease-in-out; 
    }

    /* メニューが開いている時*/
    header nav.is-open {
        transform: translateX(-100%);
    }
    header nav ul {
        flex-direction: column; 
        justify-content: center;
        align-items: center;
        height: 100%; 
        padding-top: 50px; 
    }
    header nav ul li {
        margin: 15px 0;
    }
    header nav ul li a {
        font-size: 1.2em;
        padding: 10px;
    }
    header nav ul li a::before {
        display: none;
    }
    
    /* --- ハンバーガーボタン --- */
.hamburger-btn {
        display: block; 
        position: fixed; 
        top: 1.2em; 
        right: 1.5em;  
        width: 40px; 
        height: 30px;
        cursor: pointer;
        z-index: 101; 
    }
    .hamburger-btn span {
        display: block;
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px; 
        background-color: #FFF;
        transition: transform 0.3s, opacity 0.3s;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); 
    }
    .hamburger-btn span:nth-of-type(1) {
        top: 0;
    }
    .hamburger-btn span:nth-of-type(2) {
        top: 50%;
        transform: translateY(-50%);
    }
    .hamburger-btn span:nth-of-type(3) {
        bottom: 0;
    }
    .hamburger-btn.is-active span:nth-of-type(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }
    .hamburger-btn.is-active span:nth-of-type(2) {
        opacity: 0; 
    }
    .hamburger-btn.is-active span:nth-of-type(3) {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }
}



/*==============footer==============*/
footer{
    width: 100%;
    background: black;
    color: #FFF;
}
footer a{
    color: #FFF;
}
#footer_box{
    padding: 2% 0;
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}
.footer_box_box{
    width: calc(90%/3);
    line-height: 1.5em;
}
.footer_box_box #mark{
    text-align: center;
    padding-top: 5%;
}
.footer_box_box #mark li{
    width: 40%;
    margin: 0 auto;
    line-height: 1em;
    font-size: 0.8em;
}
.footer_box_box #mark li:last-child{
    padding-top: 1em;
    width: 2.5em;
}
footer ol li:before{
    content: '●';
}
footer ol {
    padding: 10% 0;
}
footer ol li{
    line-height: 2em;
    font-size: 0.9em;
}
#footer_ol_inner{
    font-size: 0.8em;
    text-indent: 1em;
}
#footer_ol_inner li:before{
    content: none;
}



.content {
    height: 3000px;
}
.pagetop {
    text-align: center;
    line-height: 1.5em;
    position: fixed;
    right: 2.5%;
    bottom: -300px;
    transition: .3s ease-out;
}
.pagetop a{
    color: slategray;
}
.pagetop.is-active {
    bottom:3%;
}
.pagetop:hover {
    transform:translate(0, -20px);
}
