@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Yuji+Syuku&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&family=Yuji+Syuku&display=swap');


* {
    transition: cubic-bezier();
}


header{
    display: flex;
    text-align: center;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 10%;
    height: 70px;
    border-bottom: solid 1px;
    position: fixed;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
}

header:hover {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.651);

    border-bottom: solid 1px rgba(255, 255, 255, 0.651);
}

.header_title p{
    font-size: 30px;
    font-weight: 400;
}
header div {

}
nav ul {
    list-style: none;
    display: flex;
    gap: 40px; /* ナビの間隔 */
    padding: 0;
    margin: 0;
}

nav ul li a {
    position: relative;
    text-decoration: none;
    color: #267ab9; /* 好みの色に変更可 */
    padding: 5px 0;
    font-family: "Roboto Mono", monospace;
    letter-spacing: -1px;
}

/* アニメーション付きの下線 */
nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 100%;
    background-color: #267ab9;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

nav ul li a:hover::after {
    transform: scaleX(1);
}

.contact_nav {

}

.contact_nav a {
    border: solid 1px;
    padding: 5px 10px;
    border-radius: 10px;
}

.contact_nav a:hover {
    font-weight: 500;
    background-color: #267ab9;
    color: white;
}

.contact_nav:hover {

}

.contact_nav a:hover::after {
    transform: scaleX(0);
}


.title {
    padding-top: 5%;
}

.title div {
    justify-content: space-between;
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.title_text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.title_img {
    position: relative;
}

.title_text_top {
    font-size: 40px;
}

.title_text_en {
    position: relative;
    left: 21px;
}

#top_picture {
    width: 25vw;
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.2));
}

/* ▼ タブレット対応（1024px以下） */
@media screen and (max-width: 1024px) {
    header {
        padding: 0 5%;
    }

    .title div {
        flex-direction: column;
        text-align: center;
        gap: 0px;
        margin-top: 70px;
    }

    .title_text {
        align-items: center;
        text-align: center;
    }

    .title_text_top {
        font-size: 30px;
    }

    .title_text_en {
        left: 0;
        font-size: 16px;
    }

    #top_picture {
        display: none;
    }

    nav ul {
        gap: 25px;
    }

    .header_title p {
        font-size: 24px;
    }

    .contact_nav a {
        padding: 5px 8px;
        font-size: 14px;
    }
}


/* ▼ スマホ対応（600px以下） */
@media screen and (max-width: 600px) {


    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .title_text_top {
        font-size: 24px;
    }

    .title_text_en {
        font-size: 14px;
    }

    #top_picture {
        width: 60vw;
    }

    .contact_nav a {
        padding: 5px 10px;
        font-size: 14px;
    }
}

/* ▼ ハンバーガーメニューアイコン */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 25px;
    justify-content: space-between;
    z-index: 1001;
}

.hamburger span {
    height: 3px;
    background-color: #267ab9;
    border-radius: 2px;
    width: 100%;
    display: block;
}

/* ▼ モバイル表示用メニュー */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        z-index: 1000;
        padding: 20px 0;
        border-top: 1px solid #ccc;
    }

    nav.open {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
    }
        #top_picture {
        display: none;
    }
}