@charset "utf-8";

/* 共通部分
ーーーーーーーーーーーーーーーーーーーーーーーーーー */
html {
    font-size: 100%;
}

body {
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", sans-serif;
    line-height: 1.7;
    color: #432;
}

section {
    padding-top: 6rem;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* レイアウト */
.wrapper {
    max-width: 1120px;
    margin: auto;
    padding: 0 1.5rem;
}

.align-center {
    text-align: center;
}

/* 見出し */
.font-english {
    font-family: 'Spicy Rice', sans-serif;
    font-weight: normal;
}

.font-japanese {
    font-family: 'Cherry Bomb One', sans-serif;
    font-weight: normal;
}

.page-title,
.heading-large,
.heading-medium {
    font-size: 3rem;
    text-align: center;
}


.page-title {
    margin-top: 2rem;
    line-height: 1.4;
}

.heading-large {
    margin-bottom: 1rem;
}

/* ボタン */
.btn {
    display: inline-block;
    font-size: 1.5rem;
    background-color: #b5a399;
    color: #fff;
    border-radius: 8px;
    padding: .75rem 1.5rem;
}

.btn:hover {
    background-color: #dae0c6;
}

/* ヘッダー
ーーーーーーーーーーーーーーーーーーーーーーーーーー */
.page-header {
    /* background-color: #f0ead8; */
    padding: .5rem 2rem;
}

.logo {
    width: 75px;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    font-size: 1.5rem;
    list-style: none;
}

.main-nav a {
    color: #432;
}

.main-nav a:hover {
    color: #839bad;
}

/* ヘッダーカバー画像
ーーーーーーーーーーーーーーーーーーーーーーーーーー */
.cover {
    background-size: cover;
    background-position: center top;
    height: 300px;
}

.cover-home {
    background-image: url(/top/images/kouen_sakura_1.png);
}

.sub-cover {
    background-size: cover;
    background-position: center bottom;
    height: 400px;
    margin-bottom: 4rem;
}

/* HOME - サイトについて
ーーーーーーーーーーーーーーーーーーーーーーーーーー */
.about {
    max-width: 736px;
    padding: 0 1.5rem;
    margin: 3rem auto 4rem;
}

.about p {
    margin-bottom: 3rem;
}

/* HOME - ともだち
ーーーーーーーーーーーーーーーーーーーーーーーーーー */
.grid {
    display: grid;
    gap: 2rem 1.5rem;
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
}

.item img {
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 16px;
}

.item p {
    font-size: .875rem;
}

/* HOME - こうえんマップ
ーーーーーーーーーーーーーーーーーーーーーーーーーー */
.map {
    max-width: 736px;
    padding: 0 1.5rem;
    margin: 2rem auto 3rem;
}

.map img {
    /* max-width: 100%; */
    height: auto;
    object-fit: contain;
}


/* Journal
ーーーーーーーーーーーーーーーーーーーーーーーーーー */

/* ロード画面 */
#loading-left,
#loading-right {
    background: #839bad;
    position: fixed;
    width: 50vw;
    height: 100vh;
}

#loading-left {
    left: 0;
    transform-origin: left top;
}

#loading-right {
    right: 0;
    transform-origin: right top;
}

/* スクロールバー */
#bar {
    background-color: #b5a399;
    position: fixed;
    top: 0;
    left: 0;
    height: 10px;
}


/* カバー画像 */
.cover-journal {
    background-image: url(../images/dogrun.png);
    background-position: right top;
}

/* 記事部分 */
.post {
    margin-bottom: 4rem;
}

.post-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.post-date {
    font-size: .875rem;
}

.post-cat {
    display: flex;
    gap: .5rem;
    list-style: none;
}

.post-cat a {
    color: #432;
    background-color: #b5a399;
    border-radius: 8px;
    font-size: .875rem;
    padding: .5rem .75rem;
}

.post-cat a:hover {
    background-color: #dae0c6;
}

.post-date {
    font-size: .875rem;
}

.post-thumbnail {
    margin-bottom: 1.5rem;
    line-height: 2;
    max-width: 100%;
    border-radius: 16px;
}

.post p {
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.side-menu {
    list-style: none;
    text-align: center;
    margin-bottom: 4rem;
}

.side-menu li {
    border-bottom: 1px solid #c9c2bc;
}

.side-menu a {
    color: #432;
    display: block;
    padding: 1rem;
}

.side-menu a:hover {
    color: #dae0c6;
}

/* Sandbox
ーーーーーーーーーーーーーーーーーーーーーーーーーー */

/* カバー画像 */
.cover-sandbox {
    background-image: url(../images/dogrun.png);
    background-position: right top;
}

.gallery-image {
    width: min(100%, calc(36rem - 2rem));
    margin: auto;
    position: relative;
}

.gallery-image::after {
    display: block;
    content: "";
    width: calc((100% - 2rem));
    height: calc((100% - 2.5rem));
    z-index: 3;
    border: 3px solid var(--white);
    top: 1rem;
    left: 1rem;
    position: absolute;
}

.gallery-image img {
    aspect-ratio: 3/4;
    object-fit: cover;
    width: 100%;
}

.gallery-thumbnails {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
    list-style: none;
    margin: 1rem 0;
}

.gallery-thumbnails img {
    aspect-ratio: 3/4;
    object-fit: cover;
    cursor: pointer;
}

/* フッター
ーーーーーーーーーーーーーーーーーーーーーーーーーー */
.page-footer {
    background-position: center;
    background-size: cover;
    padding-top: 12rem;
}

.place-info {
    width: 100%;
    max-width: 544px;
    margin: auto;
    padding: 0 1.5rem;
    border-spacing: 0;
}

.place-info th,
.place-info td {
    border-bottom: 1px solid #c9c2bc;
}

.place-info th {
    text-align: left;
    font-weight: normal;
    padding: 1rem;
}

.place-info td {
    padding: 1rem 0;
}

.copyright {
    background-color: #432;
    text-align: center;
    padding: 2rem 0;
    margin-top: 6rem;
    color: #fff;
}

/* デスクトップ版
ーーーーーーーーーーーーーーーーーーーーーーーーーー */
@media (min-width: 800px) {

    /* 見出し */
    .page-title {
        font-size: 6rem;
    }

    .heading-large {
        font-size: 4rem;
    }

    .post-title {
        font-size: 2rem;
    }

    /* ヘッダー */
    .page-header {
        display: flex;
        justify-content: space-between;
        padding-top: 1.5rem;
    }

    .main-nav {
        font-size: 2rem;
    }

    /* ヘッダーカバー画像 */
    .sub-cover {
        height: 500px;
        margin-bottom: 6rem;
    }

    .cover {
        background-size: cover;
        background-position: center top;
        height: 750px;
    }

    /* サイトについて */
    .about {
        margin: 4rem auto 0;
    }

    /* おともだち */
    .grid {
        gap: 3rem 2rem;
        grid-template-columns: repeat(3, 1fr);
    }

    /* JOURNAL */

    .cover-journal {
        background-position: center bottom;
    }

    .journal-contents {
        display: flex;
        justify-content: space-between;
    }

    .posts {
        width: 70%;
    }

    .sidebar {
        width: 22%;
    }

    .sidebar .heading-medium {
        line-height: 1;
        margin-bottom: 1rem;
    }

    /* SANDBOX */

    .cover-sandbox {
        background-position: center bottom;
    }

    .gallery-contents {
        display: flex;
        flex-direction: row;
    }

    /* .gallery {
        flex-direction: row;
    } */

    .gallery-image {
        width: 50vw;
        margin: 0;
    }

    .gallery-image img {
        height: 80vh;
    }

    .gallery-thumbnails {
        gap: 2vw;
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-thumbnails img:hover {
        box-shadow: 0 0 1rem rgba(0, 0, 0, .4);
        transition: .4s;
    }

    /* フッター */
    .page-footer {
        padding-top: 12rem;
    }

    .place-info th {
        padding-left: 2.5rem;
    }
}