@import url('https://fonts.googleapis.com/css2?family=Anton+SC&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anton+SC&family=Kumbh+Sans:wght@100..900&display=swap');
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body{
    margin: 0;
    padding: 0;
}
/* HEADER */
header{
    width: 100%;
    height: 100px;
    background-color: #A3966A;
    display: flex;
    flex-direction: row;
}
header h1{
    font-family: "Anton SC";
    font-size: 40px;
    position: absolute;
    top: 3vh;
    left: 45vw;
}
/* SEARCH CONTENT */
.search-content{
    width: 100%;
    height: 110vh;
    flex-grow: 1;
    z-index: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
}
.search-content img{
    width: 100%;
    height: auto;
    opacity: 40%;
    object-fit: cover;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.background{
    width: 90%;
    height: 80%;
    position: absolute;
    top: 10%;
    left: 5%;
    background-color: rgba(135, 126, 126, 0.5); /* 半透明の背景色 */
    z-index: 2;
    margin-bottom: 0;
}
.search-item{
    display: flex;
    align-self: center;
    margin-top: 5%;
    margin-left: 2em;
    z-index: 3;
}
.search-item label{
    width: 40%;
    height: 60px;
    padding-top: .5em;
    margin-right: 10px;
    font-size: 30px;
    color: #000000;
    font-weight: bold;
    z-index: 4;
}
.search-item input{
    width: 55%;
    font-size: 20px;
    color: #898989;
    z-index: 4;
}
.background button{
    width: 16%;
    height: 8%;
    border-radius: 50px;
    background-color: white;
    font-size: 30px;
    position: absolute;
    bottom: 13%;
    right: 8%;
    z-index: 4;
}
.background button:hover{
    background-color: #243025;
    color: white;
}
/* FOOTER */
.footer{
    width: 100%;
    height: 10vh;
    background-color: #A3966A;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}
.footer p{
    font-family: Lucida Sans Typewriter;
    font-size: 30px;
    margin: 0;
}

@media screen and (max-width: 769px) {
/* HEADER */
header{
    display: flex;
    position: relative;
}
header h1{
    left: 38vw;
}
/* SEARCH CONTENT */
.search-content{
     height: 200vh;
}
.search-content img{
    height: 100%;
}
.background{
    height: 90%;
    top: 5%;
}
.search-item{
    width: 90%;
    height: auto;
    flex-direction: column;
    margin-top: 15%;
    margin-left: 5%;
}
.search-item label{
    width: 80%;
    font-size: 18px;
}
.search-item input{
    width: 100%;
    height: 10em;
    font-size: 15px;
    text-align: start;
    padding: .5em; /* プレースホルダーを上部に寄せるためのパディング */
    box-sizing: border-box; /* パディングが含まれるようにボックスサイズを調整 */
}
.search-item input::placeholder{
    white-space: pre-wrap; /* テキストの折り返しを有効にする */
    word-break: break-word; /* テキストの折り返しを有効にする */
    position: absolute;
    top: 1em;
    left: 0.5em;
    transform: transraleY(0.5em);
    line-height: 1.2;
}
.background button{
    width: 6em;
    height: 2em;
    background-color: white;
    font-size: 16px;
    position: absolute;
    bottom: 7%;
    left: 43%;
    z-index: 4;
}
.background button:hover{
    background-color: #243025;
    color: white;
}
/* FOOTER */
.footer{
    position: relative;
    top: 0;
 }
.footer p{
    font-size: 20px;
}

}

@media screen and (max-width: 480px){
    header h1{
        margin-left: -30px;
    }
    .search-content button{
        margin-left: -30px;
    }
}