@charset "utf-8";

html {
    scroll-behavior: smooth;
}

.pagetop {
    height: 40px;
    width: 40px;
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: #fff;
    border: solid 2px #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.pagetop__arrow {
    height: 10px;
    width: 10px;
    border-top: 3px solid #000;
    border-right: 3px solid #000;
    transform: translateY(20%) rotate(-45deg);
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: auto;
}

.main-post:first-child h2 {
    margin-bottom: 10px;
    height: auto;
}


h2 {
    font-size: 20px;
    font-weight: bold;
    height: 60px;
}


.main-post h2 {
    margin-bottom: 10px;
}

.post .text {
    height: 45px;
}

time {
    font-size: 13px;
}


img {
    max-width: 100%;
    width: auto;
    height: auto;
    vertical-align: middle;
    transition: box-shadow 0.3s ease;
    /* ふわっと変化させる */
}

main img:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    /* 影を追加 */
}

.inner {
    width: 87.8%;
    max-width: 1366px;
    margin-left: auto;
    margin-right: auto;
}


/*------------------------
header
-------------------------*/

header {
    min-height: 40vh;
    /* 最小40vhにして高さは内容に応じて伸びる */
    height: auto;
    padding: 10px 0 0;
    background-color: #A6EEF5;
    position: relative;
    overflow: hidden;
}


.surfboard {
    width: 40vw;
    /* 横幅に応じて可変 */
    max-width: 400px;
    position: absolute;
    top: 65%;
    /* 中央に配置 */
    left: 50%;
    transform: translate(-50%, -50%);

    width: 250px;
}

.tree:hover {
    animation: sway 0.6s ease-in-out infinite alternate;
}

.yasinokif {

    width: 350px;
    overflow-x: hidden;
    position: absolute;
    left: -100px;
}

.yasinokis {
    width: 350px;
    overflow-x: hidden;
    position: absolute;
    right: -100px;
}

body {
    font-family: sans-serif;
}

.page-label {
    font-size: 20px;
    text-align: center;
    position: relative;
}

/*---------------------------------
main
---------------------------------*/
main {
    background-color: #f9dab3;
    padding-bottom: 40px;
}

.all {
    width: 90%;
    margin: auto;
    max-width: 1080px;
    margin: auto;
}

.all .blog {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 40px;
    padding-top: 65px;
    margin-bottom: 30px;
    height: fit-content;
}

.wrapper {
    overflow: hidden;
    aspect-ratio: 13/9;
}

.wrapper a {
    width: 100%;
    display: block;
}

.all .blog .main-post:first-child {
    grid-column: 1 / -1;
}

/* 2ページ目以降 → 1記事目も普通のグリッド */
.paged .all .blog .main-post:first-child {
    grid-column: auto;
}

.archive .all .blog .main-post:first-child {
    display: contents;
}

.post {
    display: grid;
    grid-auto-flow: column;
    column-gap: 10%;
    width: fit-content;
}


.post article {
    max-width: 100%;
}

.main-post img {
    width: 100%;
}

.archive-post img {
    width: 100%;
    aspect-ratio: 13/9;
    overflow: hidden;
}


form {
    display: grid;
    grid-template-columns: 80% 20%;
    column-gap: 5%;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 0;
    border: 2px solid #aa89bd;
    border-radius: 8px;
}

.comment-area form {
    grid: none;
    border: none;
}

form .text {
    display: block;
    margin-left: 5%;
}

.btn {
    padding-bottom: 71px;
}

.search {
    width: 20px;
    align-self: center;
}

.search-no-results {
    width: 100%;
}

.search-results {
    width: 100%;
}

.archives {
    margin-top: 30px;
    background-color: #fff;
    border-radius: 11px;
}


.archives h2 {
    padding: 10px 0;
    color: #aa89bd;
    font-size: 17px;
    text-align: center;
}

.archives p {
    font-size: 15px;
}

.archives li {
    margin-bottom: 20px;
    text-align: center;
}

.archives li:hover {
    border-bottom: 1.5px solid black;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

section.archives {
    padding: 10px 30px;
}

.archive-title {
    display: none;
}

.categories h2 {
    padding: 10px 0;
    color: #aa89bd;
    font-size: 17px;
    text-align: center;
}

.categories .kinds {
    display: block;
    column-gap: 100px;
    padding: 10px 0 20px 0px;
}


.categories li {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 40px;
}

.categories h2 {
    padding: 10px 0;
    font-size: 17px;
    text-align: center;
    color: #92a2ee;
}

.categories {
    margin-top: 55px;
    background-color: #fff;
    border-radius: 11px;
}

s .kinds {
    padding-bottom: 10px;
}

.kinds li {
    display: block;
    margin-bottom: 20px;
}

.kinds li:hover {
    border-bottom: 1.5px solid black;
}


.kinds li {
    font-size: 17px;
}

.pagination-wrapper {
    grid-column: 1 / -1;
    /* 必要に応じてグリッド内で幅を取る場合 */
    text-align: center;
    margin: 30px 0;
}

.nav-links {
    display: inline-block;
    font-size: 15px;
}

/*----------------------------------
footer
----------------------------------*/

.profile {
    background: linear-gradient(to bottom, #4facfe, #00f2fe);
    padding: 40px 20px;
}



.profile h2 {
    color: #aa89bd;
    text-align: center;
    font-size: 17px;
}

.overiew {
    display: grid;
    grid-template-columns: 140px 1fr;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.overiew img {
    width: 120px;
}

.overiew dl {
    align-self: center;
}

.overiew dl dt {
    margin-bottom: 5px;
    font-size: 20px;
}

.overiew dl span {
    font-size: 15px;
}

.overiew dd {
    margin-bottom: 3px;
    font-size: 12px;
}

footer .copyright {
    background-color: #a6eef6;
}

/* コメント全体の余白 */

/* 見出し */
.comments .widget_title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 20px;
    /* アクセントカラー */
    padding-left: 10px;
}

/* コメントリスト */
.comments .commets-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comments .commets-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.comments .commets-list li:last-child {
    border-bottom: none;
}

/* アバター画像 */
.comments .commets-list .avatar {
    border-radius: 50%;
    margin-right: 15px;
}

/* コメント内容 */
.comments .commets-list .comment-body {
    flex: 1;
}

.comments .commets-list .comment-author {
    font-weight: bold;
    margin-bottom: 5px;
}

.comments .commets-list .comment-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

/* コメントフォーム */
.comments form {
    margin-top: 30px;
    width: 66%;
    /* 横幅を3分の2に */
    margin: 0 auto;
    /* 左右を自動にして中央寄せ */
}

.comments h3.comment-reply-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 2px solid black;
    padding-bottom: 5px;
}


.comments form p {
    margin-bottom: 15px;
}

.comments form p.form-submit {
    text-align: right;
    /* 送信ボタンを右に */
}

.comments form input[type="submit"] {
    display: inline-block;
    /* インライン要素にして右寄せ */
}

.comments form input[type="text"],
.comments form input[type="email"],
.comments form textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid black;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.comments form textarea {
    min-height: 120px;
}

.comments form input[type="submit"] {
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    border: 2px solid black;
    border-radius: 8px;

}

.comments form input[type="submit"]:hover {
    background: #fff;
}

.nav-links {
    font-size: 15px;
}

@media screen and (min-width: 600px) {
    header {
        min-height: 60vh;
        /* 最小40vhにして高さは内容に応じて伸びる */
        height: auto;
        padding: 10px 0 0;
        background-color: #A6EEF5;
        position: relative;
        overflow: hidden;
    }

    .surfboard {
        width: 35vw;
        /* 横幅に応じて可変 */
        position: absolute;
        top: 65%;
        /* 中央に配置 */
        left: 50%;
        transform: translate(-50%, -50%);

    }

    .yasinokif {
        height: 60vh;
        width: 60vh;
        bottom: -2px;
        left: -5%;
    }

    .yasinokis {
        height: 60vh;
        width: 60vh;
        bottom: -2px;
        right: -5%;
    }

    .page-label {
        font-size: 30px;
        text-align: center;
        position: relative;
    }

    .main-post p {
        font-size: 42px;
    }

    .post {
        grid-template-columns: repeat(2, 50%);
        column-gap: 68px;
    }

    .post p {
        font-size: 24px;
    }


    .post img {
        max-width: 100%;
    }

    .main-post:first-child h2 {
        min-height: 40px;
    }

    .all {
        display: grid;
        grid-template-columns: 70% 30%;
        column-gap: 20px;
    }

    .sidebar {
        margin-top: 47px;
    }


    .main-post h2 {
        font-size: 25px;
        font-weight: bold;
        height: auto;
    }

    .main-post time {
        font-size: 20px;
    }

    .nav-links {
        font-size: 20px;
    }

    h2 {
        font-size: 30px;
        font-weight: bold;
    }


    .post img {
        width: 265px;
    }

    .post {
        grid-template-columns: auto;
        column-gap: 30px;
    }

    .overiew {
        grid-template-columns: 500px 1fr;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
        margin-top: 40px;
    }

    .categories h2 {
        padding: 10px 0;
        color: #aa89bd;
        font-size: 17px;
        text-align: center;
    }

    .categories .kinds {
        display: block;
        column-gap: 100px;
        padding: 10px 0 20px 0px;
    }



    .kinds p {
        font-size: 20px;
        padding: 0 50px;
    }


    .profile h2 {
        font-size: 50px;
    }

    .overiew img {
        width: 300px;
    }

    .overiew dl dt {
        font-size: 30px;
    }

    .overiew dd {
        font-size: 20px;
    }

    small {
        font-size: 20px;
    }

    .pagetop {
        width: 60px;
        height: 60px;
    }

    form .inner {
        margin-top: 0;
    }



}

@keyframes sway {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(3deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(-3deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* single_page */

.single {

    html {
        scroll-behavior: smooth;
    }

    .yasinokif {
        display: none;
    }

    .yasinokis {
        display: none;
    }

    .surfboard {
        width: 100px;
        position: static;
        transform: none;
    }

    body {
        padding-top: 55px;
        font-weight: bold;
    }

    img:hover {
        box-shadow: none;
    }


    header {
        height: 7vh;
        min-height: 60px;
        padding-top: 10px;
        padding-bottom: 10px;
        background-color: #a6eef6;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        position: static;
    }

    header .inner {
        display: grid;
        grid-auto-flow: column;
        column-gap: 130px;
    }

    header a {
        font-size: 20px;
        font-weight: bold;
        align-self: center;
    }


    header h1 {
        width: 100px;
    }

    .mainvisual {
        padding-top: 50px;
    }

    .mainvisual h2 {
        font-size: 20px;
    }

    .mainvisual img {
        width: 100%;
    }

    .posts article {
        margin: 60px 0;
    }

    .posts h3 {
        font-size: 20px;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .posts p {
        font-size: 15px;
    }

    .mainvisual img {
        width: 100%;
        aspect-ratio: 13 / 9;
        overflow: hidden;
    }

    .breadcrumbs {
        padding-top: 20px;
        padding-left: 5%;
        font-size: 12px;
        display: grid;
        grid-auto-flow: column;
        column-gap: 10px;
        width: fit-content;
        margin-right: auto;
        max-width: 1080px;
    }

    /*---------------------------
wp-block
----------------------------*/
    .posts {
        margin-top: 30px;
    }

    .wp-block-list li {
        list-style-type: circle;
        margin-left: 20px;
    }

    .wp-block-list ul {
        margin-left: 20px;
    }

    .wp-block-list ol li {
        list-style-type: decimal;
    }

    .wp-block-list ol {
        margin-left: 20px;
        list-style-type: decimal;
    }

    .posts h1 {
        font-size: 30px;
        font-weight: bold;
        margin-bottom: 20px;
    }

    .posts h2 {
        font-size: 25px;
        margin-bottom: 20px;
    }

    .posts .wp-block-quote {
        padding: 0.5em 1em;
        margin: 20px 0;
        font-style: italic;
    }

    .wp-block-quote p {
        margin-bottom: 20px;
    }

    .btn {
        display: grid;
        grid-auto-flow: column;
        width: fit-content;
        column-gap: 20px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn p {
        align-self: center;
        font-weight: bold;
    }

    table thead {
        background-color: #e5e7ee;
    }

    table tr th {
        vertical-align: middle;
        text-align: center;
    }

    table tr th a:hover {
        border-bottom: 1.5px solid black;
    }

    table td {
        vertical-align: middle;
    }

    .posts dl dt {
        font-size: 20px;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .posts dl dd {
        font-size: 15px;
        margin-bottom: 20px;

    }





    @media screen and (min-width: 600px) {


        header p {
            text-align: end;
        }

        .all {
            display: grid;
            grid-template-columns: 70% 30%;
            column-gap: 20px;
            width: 80%;
        }

        .mainvisual img {
            width: 100%;
        }

        time {
            font-size: 20px;
        }

        .breadcrumbs {
            font-size: 15px;
            padding-left: 10%;
            margin-right: auto;
        }
    }

    .archive-title {
        align-self: center;
    }

    .archive h2 {
        margin-bottom: 15px;
        font-size: 15px;
        height: auto;
    }

    /* ------------------------
検索結果ページ
------------------------- */
    .search .blog {
        grid: none;
    }


    .blog .search-results {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 20px;
        row-gap: 40px;
    }

    .blog .search-no-results {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 20px;
        row-gap: 40px;
    }

    .blog .content-results {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 20px;
        row-gap: 40px;
    }


    .archive main {
        background-color: #f9dab3;
    }

    .search-results {
        width: 100%;
        background-color: #f9dab3;
    }

    .content-results {
        width: 100%;
        background-color: #f9dab3;
    }

    .search-no-results {
        width: 100%;
        background-color: #f9dab3;
    }

    .search-post {
        overflow: hidden;
    }

    .search-post a {
        display: block;
        color: inherit;
        text-decoration: none;
    }

    .search-post .thumb img {
        width: 100%;
        aspect-ratio: 13 / 9;
        overflow: hidden;
    }

    .archive .thumb img {
        width: 100%;
        aspect-ratio: 13 / 9;
        overflow: hidden;
    }

    .archive h3 {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 12px;
        height: 54px;
    }

    .archive h2 {
        margin-bottom: 15px;
    }

    .archive time {
        font-size: 13px;
    }

    .search-post img:hover {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
        /* 影を追加 */
    }

    .search-post .content {
        padding-bottom: 15px;
    }

    .search-post h3 {
        font-size: 15px;
        font-weight: bold;
    }

    .search-post time {
        font-size: 15px;
    }

    @media screen and (min-width: 600px) {
        .archive h3 {
            font-size: 25px;
        }


        .archive time {
            font-size: 20px;
        }

        .archive h2 {
            font-size: 25px;
        }

        .search-post h3 {
            font-size: 25px;
            font-weight: bold;
        }

        .search-post time {
            font-size: 20px;
        }

        .search-results p {
            font-size: 20px;
        }

        .archive h3 {
            height: auto;
        }

    }
}