::selection{
    background-color: #E2953E;
}

body{
    background-color: #FEF5E7;
    margin: 0;
    padding: 0;
}

header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    background-color: #D9D9D9;
    height: 80px;
    margin: 0;
    box-sizing: border-box;
}

.header-logo{
    display: flex;
    align-items: center;
    width: 278.26px;
    height: 70px;
    margin-right: 200px;
}

.header-logo:hover{
    opacity: 0.7;
}

.header-logo:active{
    opacity: 0.5;
    transform: scale(0.95);
}

nav ul{
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

nav ul li.contact{
    position: absolute;
    right: 50px;
}

nav ul li.contact a{
    color: transparent;
    -webkit-text-stroke: 2px black;
}

nav ul li.contact a:hover{
    color: black;
    -webkit-text-stroke: 0;
    filter: drop-shadow(0 0 20px black);
}

nav ul li.contact a::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3px;
    width: 0;
    height: 2px;
    background-color: black;
    border-radius: 5px;
    transition: width 0.2s ease, left 0.2s ease;
}

nav ul li.contact a:hover::after{
    width: 100%;
    left: 0;
}

nav ul li a{
    text-decoration: none;
    font-family: "Caveat",cursive;
    font-size: 40px;
    font-weight: bold;
    color: #E2953E;
    -webkit-text-stroke: 1px black;
    position: relative;
    overflow: hidden;
}

nav ul li a:hover {
    font-weight: bold;
    color: black;
    -webkit-text-stroke: 2px #E2953E;
    filter: drop-shadow(0 0 20px #E2953E);
}

nav ul li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3px;
    width: 0;
    height: 2px;
    background-color: #E2953E;
    border-radius: 5px;
    transition: width 0.2s ease, left 0.2s ease;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

.catch-phrase{
    background-image: url(image/ECO_Site_ecopicture.jpg);
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 10px;
}

.catch-phrase p{
    color: black;
    -webkit-text-stroke: 2px gold;
    font-family: "Anton SC", sans-serif;
    font-size: 40px;
    margin: 0;
    line-height: 1.2;
    text-shadow: 2px 2px 5px rgb(0, 0, 0,0.5);
    filter: drop-shadow(0 0 20px gold);
}

.catch-phrase h1{
    color: white;
    -webkit-text-stroke: 1px black;
    font-family: "Reggae One", system-ui;
    font-size: 90px;
    margin: 0;
    line-height: 1.2;
    text-shadow: 2px 2px 5px rgb(0, 0, 0,0.5);
    filter: drop-shadow(0 0 30px white);
    opacity: 0;
    transform: scale(0.5);
    animation: catch-phrase-appear 1.2s ease-out forwards;
}

main{
    margin-top: 80px;
    padding: 20px;
    margin: 0 120px;
}

.news-container h2{
    font-family: "Teko", serif;
    font-size: 50px;
    color: black;
}

.news-item{
    display: flex;
    gap: 30px;
}

.news-item a{
    text-decoration: none;
    color: black;
}

.news-photo{
    flex: 1;
    background-color: #D9D9D9;
    box-shadow: 3px 3px 5px black;
    border-radius: 30px;
}

.news-photo:hover{
    box-shadow: #E2953E 0 0 10px;
}

.news-photo img{
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: center;
}

.news-photo p{
    font-family: "Macondo", serif;
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 10px;
    letter-spacing: 3px;
}

.news-content p{
    font-family: "Kiwi Maru", serif;
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 10px;
}

.page-link{
    margin-top: 150px;
}

.link-item{
    display: block;
    padding-bottom: 5px;
    text-decoration: none;
    color: black;
    margin-bottom: 50px;
    box-shadow: 3px 3px 5px black;
    border-radius: 50px;
}

.link-item:hover{
    box-shadow: #E2953E 0 0 10px;
}

.link-item:nth-child(1){
    background-image: url(image/self-introduction.png);
}

.link-item:nth-child(2){
    background-image: url(actnow/image/family-7392843_1280.jpg);
}

.link-item:nth-child(3){
    background-image: url(Activity/image/diary-968592_1280.jpg);
}

.link-item:nth-child(4){
    background-image: url(image/cookbook-746005_1280.jpg);
    margin-bottom: 0;
}

.link-item h2{
    font-family: "Yusei Magic", serif;
    background: rgb(255, 255, 255, 0.9);
    border-radius: 50px 50px 0 0;
    font-size: 30px;
    line-height: 3;
    padding-left: 100px;
}

.link-item p{
    font-family: "Caveat",cursive;
    font-size: 20px;
    text-align: end;
    margin-right: 10px;
}

@keyframes catch-phrase-appear {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

footer{
    background-color: #D9D9D9;
    color: black;
    position: relative;
    margin-top: 100px;
}

.footer-top{
    display: flex;
    justify-content: space-between;
}

.footer-logo{
    margin-top: 20px;
    margin-left: 20px;
    width: 278.26px;
    height: 70px;
}

.footer-logo:hover{
    opacity: 0.7;
}

.footer-logo:active{
    opacity: 0.5;
    transform: scale(0.95);
}

.footer-line {
    height: 2px;
    background-color: black;
    margin-top: 2px;
    margin-bottom: 0;
    margin-left: 50px;
    margin-right: 50px;
  }

.arrow{
    position: relative;
    margin-right: 200px;
    margin-top: 20px;
}

.arrow a{
    font-size: 50px;
    color: black;
    text-decoration: none;
}

.arrow a:hover{
    color: #E2953E;
}

.footer-menu{
    font-family: "Kiwi Maru", serif;
    text-decoration: none;
    display: flex;
    justify-content: baseline;
    flex-wrap: wrap;
    gap: 40px;
    margin-left: 70px; 
}

.footer-menu a{
    line-height: 2;
    position: relative;
    color: black;
    text-decoration: none;
    transition: color 0.2 ease;
}

.footer-menu a::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #E2953E;
    border-radius: 5px;
    transition: width 0.2s ease, left 0.2s ease;
}

.footer-menu a:hover::after{
    width: 100%;
    left: 0;
}

.footer-menu h4{
    font-size: 20px;
    color: black;
    text-decoration: none;
}

.footer-menu ul{
    list-style: none;
    padding: 10px;
}

.footer-map{
    margin-left: 100px;
    margin-top: 30px;
}

.footer-link-container{
    text-align: end;
    margin-bottom: 10px;
    margin-right: 50px;
}

.school-link a{
    font-family: "Kiwi Maru", serif;
    color: black;
    text-decoration: underline;
}

.school-link a:hover{
    opacity: 0.7;
}

.footer-bottom{
    background-color: #E2953E;
    padding-top: 1px;
    padding-bottom: 1px;
    margin: 0;
}

.footer-bottom p{
    font-family: "DotGothic16", serif;
    text-align: center;
}