@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho+B1&display=swap');

* {
    margin: 0;
    position: relative;
}
html {
    scroll-behavior: smooth;
}

body {
    font-size: 12px;
    font-family: 游明朝, "Yu Mincho", YuMincho, 'Shippori Mincho B1', "Hiragino Mincho ProN", HGS明朝E, メイリオ, Meiryo, serif;
    color: #3f3f3f;
    font-weight: 100;
    font-style: normal;
}
img{
    width: 100%;
    cursor: pointer;
}
a {
    cursor: pointer;
    text-decoration: none;
    font-family: 游明朝, "Yu Mincho", YuMincho, 'Shippori Mincho B1', "Hiragino Mincho ProN", HGS明朝E, メイリオ, Meiryo, serif;
    color: #3f3f3f;
    width:min-content;
}

h1,h2,h3,h4,h5,h6 {
    font-family: 游明朝, "Yu Mincho", YuMincho, 'Shippori Mincho B1', "Hiragino Mincho ProN", HGS明朝E, メイリオ, Meiryo, serif;
    font-weight: 400;
    margin: 0;
}

footer, header {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
    height: 60px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

footer a {
    line-height: 60px;
    cursor: pointer;
    width: fit-content;
    height: auto;
}

.container {
    max-width: 700px;
    width: 100%;
    display: block;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 120px);
    line-height: 20px;
    box-sizing: border-box;
}
.content {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    box-sizing: border-box;
}

.desktop-nav, .footer { 
    display: flex; 
    gap: 20px; 
    justify-content: flex-end;
    top: 0;
    width: fit-content;
    float: right;
    box-sizing: border-box;
}

.selected {
    border-bottom: 1px solid #3f3f3f;
}

.desktop-nav a {
    line-height: 30px;
    margin-top: 15px;
    cursor: pointer;
    width: fit-content;
    height: auto;
}
.mobile-nav { 
    display: none; 
    height: 60px; 
}
.title {
    cursor: pointer;
    margin-bottom: 20px;
    color: #363636;
    width: 100%;
    font-size: 22px;
    line-height: 60px;
}
.titleImage {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-height: calc(100vh - 160px);
    max-width: 435px;
    box-sizing: border-box;
    cursor: pointer;
    text-align: right;
}

.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.image-modal img {
    max-width: 435px;
    width: 80%;
    height: auto;
    cursor: default;
}
.close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #000;
    cursor: pointer;
}

@media (max-width: 768px) {
    .desktop-nav { display: none !important; }
    .modal-image {
        cursor: default;
    }
    #hamburger {
        font-size: 20px;
        background: none;
        border: none;
        cursor: pointer;
        margin-right: 10px;
        line-height: 60px;
        font-weight: 100;
        color: #111;
    }
    .mobile-menu {
        position: fixed;
        top: 0;
        padding: 16px;
        padding-top: 60px;
        width: 170px;
        right: 0;
        background: #f5f5f5;
        height: 100vh;
    }
    .mobile-nav { 
        display: block; 
        position: fixed;
        right: 0;
        top: 0;
        z-index: 1000;
    }
    .mobile-menu a {
        width: 100%;
        display: block;
        margin: 8px 0;
        cursor: pointer;
    }
}