@charset "utf-8";

body {
    font-family: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
    font-size: 16px;
    line-height: 1.3;
    color: #1d1d1d;
    background-color: #eeeae0;
    letter-spacing: 0.15em;
}

a {
    color: #1d1d1d;
    text-decoration: none;
}

.currentPage {
    text-decoration: underline;
}

.contentsStyle {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0px clamp(12px, 0.1px + 4.8vw, 130px);
}

.headerImage {
    background-image: url(../../../image/sushi.jpg);
    height: 600px;
    background-size: cover;
    background-position: right 49%;
}

.description p {
    color: white;
    text-shadow: 1.7px 1.5px 2px #000;
    text-align: center;
    font-size: clamp(14px, 0.1px + 39vw, 18px);
}

.name {
    background-color: #050000a9;
    width: fit-content;
    padding: 10px 20px;
    margin: 0 auto;
    margin-top: 120px;
    writing-mode: vertical-rl;
}

.name p {
    color: white;
    font-size: 23px;
}

.name h1 {
    font-size: 65px;
    font-weight: normal;
    letter-spacing: 0.1em;
    white-space: nowrap;
    color: white;
}

header nav {
    background-color: hsl(0, 7%, 21%);
}

header nav ul {
    display: flex;
    justify-content: center;
}

header nav li {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: clamp(40px, 0.1px + 7.2vw, 120px);
}

header nav li:last-child {
    padding-right: clamp(40px, 0.1px + 7.2vw, 120px);
}

header nav ul a {
    color: white;
}

header nav a:hover {
    text-decoration: underline;
}

section {
    border-bottom: 1px solid black;
}

.nav-toggle-hidden,
.nav-overlay,
.drawer-nav {
    display: none;
}

@media screen and (max-width:768px) {
    header nav {
        display: none;
    }

    .nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .drawer-nav {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        width: 55%;
        height: 100dvh;
        background-color: #fff;
        z-index: 999;
        transition: transform 0.3s ease;
    }

    .drawer-btn {
        display: block;
        position: absolute;
        top: 15px;
        left: -55px;
        width: 55px;
        height: 55px;
        background-color: #fff;
        border-radius: 4px 0 0 4px;
        box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.1);
        cursor: pointer;
    }

    .drawer-btn span {
        position: absolute;
        display: block;
        left: 12.5px;
        width: 30px;
        height: 2px;
        background-color: #333;
        transition: all 0.3s ease;
    }

    .drawer-btn span:nth-child(1) {
        top: 16px;
    }

    .drawer-btn span:nth-child(2) {
        top: 26px;
    }

    .drawer-btn span:nth-child(3) {
        bottom: 17px;
    }

    .drawer-nav ul {
        padding-top: 20px;
    }

    .drawer-nav ul li {
        border-bottom: 1px solid #eee;
    }

    .drawer-nav ul li a {
        display: block;
        padding: 25px 30px;
        font-size: 16px;
        color: #333;
    }

    body:has(.nav-toggle-hidden:checked) {
        overflow: hidden;
    }

    .nav-toggle-hidden:checked~.drawer-nav {
        transform: translateX(0);
    }

    .nav-toggle-hidden:checked~.nav-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle-hidden:checked~.drawer-nav .drawer-btn span:nth-child(1) {
        transform: translateY(10px) rotate(-315deg);
    }

    .nav-toggle-hidden:checked~.drawer-nav .drawer-btn span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle-hidden:checked~.drawer-nav .drawer-btn span:nth-child(3) {
        transform: translateY(-10px) rotate(315deg);
    }
}

.container {
    display: flex;
    align-items: flex-start;
    gap: clamp(20px, 0.1px + 4.5vw, 60px);
    margin: 50px auto;
}

aside {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 18px;
}

aside p {
    background-color: hsl(0, 7%, 21%);
    color: white;
    padding: 8px 20px;
}

aside li {
    background-color: #fff;
}

aside a {
    padding-left: 24px;
    padding-bottom: 8px;
    position: relative;
    font-size: 15px;
    display: block;
}

aside a:hover {
    color: rgb(211, 150, 37);
    text-decoration: underline;
}

aside a:nth-child(1) {
    padding-top: 8px;
}

aside a::before {
    content: "・";
    font-size: 26px;
    position: absolute;
    left: 6px;
    top: 1px;
}

.categoryList {
    margin-bottom: 18px;
    box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.322);
}

.latestList {
    box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.322);
}

main {
    flex-grow: 1;
    min-width: 0;
}

.category {
    margin-bottom: 50px;
    padding-bottom: 20px;
}

.category h2 {
    font-size: 22px;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.list {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    overflow: hidden;
}

.post-card {
    width: 31%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.514);
    border: 0.7px solid black;
}

.js-post-link {
    display: block;
}

.js-post-link:hover {
    text-decoration: none;
    opacity: 0.8;
}

.js-post-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.js-post-link:hover .js-post-img {
    opacity: 0.8;
}

.js-post-title {
    font-size: 14px;
    line-height: 1.5;
    color: rgb(0, 0, 0);
    overflow: hidden;
    padding: 5px 5px;
    background-color: #ebe0db;
    text-align: center;
}

.viewAll {
    display: inline-block;
    font-size: 14px;
    padding: 5px 0;
}

.viewAll:hover {
    text-decoration: underline;
    opacity: 0.7;
}

@media screen and (max-width:600px) {
    .list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 10px;
    }

    .list::-webkit-scrollbar {
        display: none;
    }

    .post-card {
        width: 60%;
        flex-shrink: 0;
    }
}

@media screen and (max-width:768px) {
    .container {
        flex-direction: column;
    }

    aside {
        width: 100%;
        position: relative;
        margin-bottom: 30px;
    }

    aside p {
        cursor: pointer;
    }

    aside p::before {
        display: inline-block;
        content: "▶";
        margin-right: 10px;
        transition: all 0.2s ease;
    }

    aside p:has(+ ul.showed)::before {
        transform: rotate(90deg) translateY(4px);
    }

    .categoryList {
        margin-bottom: 30px;
    }

    .categoryList ul {
        display: none;
    }

    .latestList ul {
        display: none;
    }

    ul.showed {
        display: block;
    }
}

footer {
    background-color: #dbc4b9;
}

footer p {
    text-align: center;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 14px;
}