body {
    font-family: 'Merriweather';
    background-color: hsl(0, 2%, 11%);
    color:#ffffff;
    letter-spacing: 1px;
    font-weight: 300;
}

html {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

header{
    font-weight: 700;
    position: fixed;
    width: 100%;
    z-index: 100;
    transition: background-color 0.3s ease-out;
    background-color: rgba(53, 53, 53, 0);
    background-color: transparent;
}

header .container{
    max-width: 1080px;
    width: 90%;
    margin: 0 auto;
    margin-top: 9px;
}

header .raw{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

header .logo{
    font-size: 18px;
    letter-spacing: 1px;
    font-weight: 500;
}

header ul{
    display: flex;
}

header ul li{
    margin-left: 25px;
    font-size: 16px;
    letter-spacing: 1px;
    font-weight: 500;
}

header ul li a{
    display: inline-block;
    position: relative;
    overflow: hidden;
    color:#ffffff;
    text-decoration: none;
}

header ul li a::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transform: translate(-100%, 0);
    transition: transform cubic-bezier(0.215, 0.61, 0.355, 1) 0.4s;
    content: "";
    transform: scaleX(0); 
    transform-origin: left;
}

header ul li a:hover:after {
    transform: scaleX(1);
}

/* section1 */
.section1 {
    position: relative; 
    height: 100vh;
    overflow: visible;
    width: 100%;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.section1 .filter{
    position: absolute;
    width: 100%;
    height:100%;
    background-color: #000000;
    opacity:0.3;
    top: 0;
    left: 0;
    z-index: 1;
}

.section1 .container{
    width: 100%;
    max-width:1080px;
    margin:0 auto;
    text-align: center;
    z-index: 2;
    position: relative;
    padding: 20px;
    align-items: center;
    left: 40%;  
    transform: rotateX(-100);
    top: 30%;
    left: 0%;
    font-family: "Rock Salt", cursive;
}


.section1 h1{
    font-size: 80px;
    font-weight: 600;
    margin-bottom: 55px;
    letter-spacing: 6px;
}

.section1 .narrow{
    letter-spacing: 0.01em;
}


.section1 a{
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 15px 30px 10px 30px;
    display: inline-block;
    background-color: transparent;
    transition-duration: .2s;
    border: 1px solid #ffffff;
}

.section1 a:hover{
    background-color: #474747;
}

.arrows {
    width: 60px;
    height: 72px;
    position: absolute;
    left: 50%;
    margin-left: -30px;
    bottom: 20px;
}

.arrows path {
    stroke: #ffffff;
    fill: transparent;
    stroke-width: 1px;  
    animation: arrow 2s infinite;
    -webkit-animation: arrow 2s infinite; 
}

@keyframes arrow
{
    0% {opacity:0}
    40% {opacity:1}
    80% {opacity:0}
    100% {opacity:0}
}

@-webkit-keyframes arrow /*Safari and Chrome*/
{
    0% {opacity:0}
    40% {opacity:1}
    80% {opacity:0}
    100% {opacity:0}
}

.arrows path.a1 {
    animation-delay:-1s;
    -webkit-animation-delay:-1s; /* Safari 和 Chrome */
}

.arrows path.a2 {
    animation-delay:-0.5s;
    -webkit-animation-delay:-0.5s; /* Safari 和 Chrome */
}

.arrows path.a3 { 
    animation-delay:0s;
    -webkit-animation-delay:0s; /* Safari 和 Chrome */
}

/* Section2 */
.section2 {
    position: relative;
    height:  100vh;
    width: 100%;
    background-image: url(../image/IMG_2955.jpeg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden; 
}

.section2::after{
    content:"";
    position: absolute;
    background-color: rgb(0, 0, 0);
    width: 100%;
    height: 500vh;
    left: 0;
    top: 0;
    opacity: 0.5;
    z-index: 1;
}

.section2 .container {
    z-index: 2;
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-top: 20%;
    position: sticky;
}

.section2 h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 6px;
}

.section2 p{
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.section2.p span {
    display: inline-block;  
    opacity: 0;
    transition: opacity 0.1s; 
}

.section2 .p span.show {
    opacity: 1;             
}

.section2 .Click{
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 10px 20px 10px 20px;
    display: inline-block;
    background-color: transparent;
    transition-duration: .2s;
    border: 1px solid #ffffff;
    transition-duration: .2s;
}

.section2 .Click:hover{
    background-color: #474747;
}

.section2 .content{
    width: 1150px;
    display: flex;
}

.section2 .picture{
    position: relative;
    width: 300px;
    height: 200px;
}

.section2 .記念館{
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    z-index: 10;
    margin-top: -170%;
    margin-left: 350%;
}

.section2 .記念碑{
    position: relative;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    z-index: 10;
    margin-top: -10%;
    margin-left: 10%;
}


.section2 .name{
    position: relative;
    color: white;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 1px;
    z-index: 20;

}

.section2 .回天記念館{
    margin-top: -130%;
    margin-left: 220%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: 400;
    border-left: 2px solid;
    padding: 0.3rem;
    margin-bottom: 450px;
}

.section2 .回天記念碑{
    margin-top: -15%;
    margin-left: 45%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: 400;
    border-left: 2px solid;
    padding: 0.3rem;
}

/* Section3 */

.section3 {
    position: relative;
    height:  100vh;
    width: 100%;
    background-image: url(../image/Location1.JPG);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* overflow: hidden; */
    z-index: 10;
}

.section3::after{
    content:"";
    position: absolute;
    background-color: black;
    width: 100%;
    height: 100vh;
    left: 0;
    top: 0;
    opacity: 0.4;
    z-index: 0;
} 

.section3 .container{
    z-index: 2;
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-top: 20%;
    position: absolute;
    left: 20%;
    z-index: 10; 
}

.section3 h1{
    font-size: 50px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 50px;
}


.section3 .button {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 10px 15px 10px 15px;
    display: inline-block;
    background-color: transparent;
    transition-duration: .2s;
    border: 1px solid #ffffff;
}


.section3 .button:hover{
    background-color: #474747;
} 


.section3 .map {
    position: relative;
    padding-top: 75%;
    height: 0;
    z-index: 0;
}

.section3 .map iframe {
    position: absolute;
    top: 20%;
    left: 60%;
    width: 30%;
    height: 40%;
}

/* section4*/

.section4 {
    position: relative;
    height:  100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-image: url(../image/Durant.jpg);
    /* overflow: hidden; */
    z-index: 10;
}

.section4::after{
    content:"";
    position: absolute;
    background-color: black;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: 0.4;
    z-index: 1;
} 

.section4 .container{
    z-index: 2;
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-top: 20%;
    position: absolute;
    left: 10%;
}

.section4 h1{
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

.section4 a {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 10px 15px 10px 15px;
    display: inline-block;
    background-color: transparent;
    transition-duration: .2s;
    border: 1px solid #ffffff;
}


.section4 a:hover{
    background-color: #474747;
} 

/* section5 */

.section5 {
    position: relative;
    height:  100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-image: url(../image/tour.jpg);
    overflow: hidden;
    z-index: 10;
}

.section5::after{
    content:"";
    position: absolute;
    background-color: black;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: 0.4;
    z-index: 1;
} 

.section5 .container{
    z-index: 2;
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-top: 20%;
    position: absolute;
    left: 15%;
}

.section5 h1{
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

.section5 a {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 10px 15px 10px 15px;
    display: inline-block;
    background-color: transparent;
    transition-duration: .2s;
    border: 1px solid #ffffff;
}

/*footer*/

.footer {
    position: relative;  
    top: 0;
    left: 0;
    width: 100vw;     
    height: 30vh;    
    padding: 2rem;
    z-index: 1;      
}

.footer body {
    background: #0f0f0f;
    height: 30%;
}

.footer ul {
    padding: 0;
    list-style: none;
}

address {
    margin-top: 20px;
    margin-left: 30px;
    font-style: normal;
    line-height: 25px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .0rem;
    margin-bottom: 30px;
    margin-left: 40px;
    margin-top: 20px;
}


.footer__navi-heading {
    font-weight: 600;
    font-size: 20px;
}

.footer__logo {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.footer__navi li {
    margin-bottom: 0.75rem;
    margin-top: 15px;
}

.footer__address {
    margin-bottom: 3rem;
}

.footer__address a {
    text-decoration: underline;
}

.footer-copyright {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}



@media only screen and (max-width: 768px){
/* メニューのスタイル */
.menu {
    position: fixed;
    top: 0;
    right: -100%; /* 初期状態では画面の外に隠れている */
    width: 250px;
    height: 100%;
    background-color: #333333;
    color: #ffffff;
    transition: right 0.3s ease; /* スライドインのアニメーション */
    padding: 20px;
    box-sizing: border-box;
    z-index: 2;
    display:flex;
    flex-flow: column;
}

/* メニューが開いているとき */
.menu.open {
    right: 0;
}

/* ボタンのスタイル */
.hamburger {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    cursor: pointer;
    z-index: 20;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #ffffff;
    margin: 7px 0;
    transition: 0.4s;
}

/* バツ印に変化するスタイル */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* メニューリストのスタイル */
.menu ul {
    display: flex;
    flex-direction: column;
    gap: 15px; 
    padding: 0;
    margin-top: 80px;
}

header .ul{
    display: block;
}



.menu li a {
    color: #ffffff;
    text-decoration: none;
    display: block;
}

header ul li a::after {
    display: none;
}
}

/* html, body {
    overflow-x: hidden;
} */


@media (min-width: 768px) {
    .md-flex {
    display: flex;
    }

    .md-justify-between {
    justify-content: space-between;
    }

    .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .footer__address a {
    text-decoration: none;
    pointer-events: none;
    }
}

@media (min-width: 1024px) {
    .lg-flex {
    display: flex;
    }
}

@media only screen and (max-width: 480px) {
    .section1 h1{
    font-size: 60px;
}
    .section1 a{
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 13px 25px 10px 25px;
    display: inline-block;
    background-color: transparent;
    transition-duration: .2s;
    border: 1px solid #ffffff;
}


.section2 p{
    line-height: 30px;
}


.section3 .container{
    z-index: 2;
    color: white;
    text-align: center ;
    padding: 60px 20px;
    margin-top: 40%;
    position: absolute;
    /* left: 20%; */
}

.section3 h1{
    font-size: 50px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 50px;
}


.section3 a {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 10px 15px 10px 15px;
    display: inline-block;
    background-color: transparent;
    transition-duration: .2s;
    border: 1px solid #ffffff;
}

.section3 .map {
    position: relative;
    padding-top: 90%;
    height: 0;
    z-index: 2;
}

.section3 .map iframe {
    position: absolute;
    top: 130%;
    left: 22.5%;
    width: 60%;
    height: 50%;
}

.section4 {
    position: relative;
    height:  100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-image: url(../image/Durant.jpg);
    overflow: hidden;
    z-index: 10;
}
.section4 .container{
    margin-top: 60%;
    left: 5%;
    text-align: left;
}

.section4 h1{
    font-size: 35px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 30px;
    overflow-wrap: break-word;
    inline-size: 200px;
    text-align: center;
    line-height: 50px;
    /* white-space: nowrap; */

}

.section4 a{
    margin-left: 30%;
}

.section5 .container{
    z-index: 2;
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-top: 70%;
    position: absolute;
    left: 10%;
}

}




@media only screen and (min-width: 481px) and (max-width: 768px){
    .section3 {
    position: relative;
    height:  100vh;
    width: 100%;
    background-image: url(../image/Location1.JPG);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
    z-index: 10;
}


.section3 .container{
    z-index: 2;
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-top: 20%;
    position: absolute;
    left: 25%;
}

.section3 .map {
    position: relative;
    padding-top: 100%;
    height: 0;
    z-index: 0;
}

.section3 .map iframe {
    position: absolute;
    top: 70%;
    left: 20%;
    width: 60%;
    height: 50%;
}

.section4 {
    position: relative;
    height:  100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-image: url(../image/Durant.jpg);
    overflow: hidden;
    z-index: 10;
}
.section4 .container{
    margin-top: 50%;
    left: 5%;
    text-align: left;
}

.section4 h1{
    font-size: 35px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 30px;
    overflow-wrap: break-word;
    inline-size: 200px;
    text-align: center;
    line-height: 50px;

}

.section4 a{
    margin-left: 30%;
}



.section5 .container{
    z-index: 2;
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-top: 50%;
    position: absolute;
    left: 15%;
}

}

@media only screen and (max-width: 768px){
    .section2 {
    height:  100vh;
}


.section2 .container {
    margin-top: 40%;
}


.section2 .content{
    width: 1150px;
    display: flex;
}

.section2 .picture{
    position: relative;
    width: 300px;
    height: 200px;
}

.section2 .記念館{
    display: none;
}
.section2 .記念碑{
    display: none;
}

.section2 .name{
    display: none;

}
}

html {
    scroll-behavior: smooth;
}


@media only screen and (max-width: 375px) {

    .section3 .container{
        text-align: center !important;
    }
}


@media only screen and (min-width: 376px) and (max-width: 480px) {
    .section3 .iframe{
        margin-bottom: 10%!important;
        padding-top: 50% !important;
    }

    .section3, .section2{
    background-attachment: scroll;
}

    .section3 .container{
        margin-left: -2%;
    }

    .section4 h1{
    font-size: 33px !important;
    /* white-space: nowrap !important;
    display: inline-block !important;
    overflow-wrap: normal !important;
    inline-size: auto !important; */
    }


    }

