@charset "utf-8";

/*
Theme Name: こうむらさんのぶろぐさん
Theme URI:
Author: 河村実花
Author URI:
Description: 小学生が使う様な可愛い自由帳をテーマに作ったブログです。
Version: 1.0
License:
License URI:
Tags:
Text Domain:
*/
body {
    color: #51362c;
    line-height: 1.5;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    background-color: #fcfbf2;
}

.inner {
    max-width: 1100px;
    width: 87.17%;
    margin-left: auto;
    margin-right: auto;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
    border-radius: 10px;
}

p {
    text-align: justify;
}

::selection {
    background-color: #f3d0a3;
}

/* index.html */
header .mobile {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 999;
}

header h1 {
    display: none;
}

header .mobile {
    padding: 10px 0;
    background-color: rgba(249, 247, 219, .8);
}

.mobile .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

header .logo {
    width: 70px;
}

/* チェックボックスを非表示にする */
.drawer_hidden {
    display: none;
}

/* ハンバーガーアイコンの設置スペース */
.drawer_open {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 20px;
    z-index: 100;
    /* 重なり順を一番上にする */
    cursor: pointer;
}

/* ハンバーガーメニューのアイコン */
.drawer_open span,
.drawer_open span:before,
.drawer_open span:after {
    content: '';
    display: block;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background: #f2ac50;
    transition: 0.5s;
    position: absolute;
}

/* 三本線の一番上の棒の位置調整 */
.drawer_open span:before {
    bottom: 8px;
}

/* 三本線の一番下の棒の位置調整 */
.drawer_open span:after {
    top: 8px;
}

/* アイコンがクリックされたら真ん中の線を透明にする */
#drawer_input:checked~.drawer_open span {
    background: rgba(255, 255, 255, 0);
}

/* アイコンがクリックされたらアイコンが×印になように上下の線を回転 */
#drawer_input:checked~.drawer_open span::before {
    bottom: 0;
    transform: rotate(45deg);
}

#drawer_input:checked~.drawer_open span::after {
    top: 0;
    transform: rotate(-45deg);
}

/* メニューのデザイン*/
/* メニューを画面の外に飛ばす */
.dl_content {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0%;
    left: 100%;
    z-index: 99;
    background: #fcfbf2;
    transition: .5s;
    text-align: center;
    padding-top: 20px;

    padding-left: 25px;
    padding-right: 25px;
}

header dl {
    padding-left: 50px;
    font-family: "Kaisei Opti", serif;
    font-weight: 400;
    font-style: normal;
}

header dd {
    padding-top: 70px;
    padding-bottom: 25px;
    color: #51362c;
    text-decoration: none;
    font-size: 25px;
    text-align: left;
}

header a:hover {
    color: #f2ac50;
    transition: all .2s;
}

header nav {
    list-style: disc;
}

header ul {
    text-align: left;
    margin-top: 0px;
    padding-top: 10px;
    padding-left: 10px;
    padding-bottom: 10px;
    background-color: #f9f7db;
}

header li {
    padding-bottom: 25px;
}

.header-search form {
    display: block;
    display: flex;
    justify-content: space-between;
}

.header-search .window {
    width: 80%;
    padding: 5px;
    border-radius: 5px;
    background-color: #fffffe;
    border: #f3d0a3 solid 1px;
}

#s {
    font-family: "Kaisei Opti", serif;
    font-weight: 400;
    font-style: normal;
}

.header-search .searchform button {
    width: 40px;
}

form [type="submit"] {
    padding: 10px;
    border-radius: 5px;
    background: #f9f7db;
    color: #51362c;
    font-size: 16px;
    font-family: "Kaisei Opti", serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
}

form [type="submit"]:hover {
    background-color: #fcfbf2;
    color: #f2ac50;
    transition: all .2s;
}


.dl-profile {
    padding-top: 50px;
}

header .profile {
    display: flex;
    align-items: start;
    padding: 10px;
    background-color: #f9f7db;
    border-radius: 10px;
}

header .profile img {
    width: 35%;
}

header .profile p {
    font-size: 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
}

.profile_content {
    padding-left: 10px;
    text-align: left;
}

/* アイコンがクリックされたらメニューを表示 */
#drawer_input:checked~.dl_content {
    left: 0;
}

/* main */
/* about */
.about h1 {
    padding: 100px 25px 40px;
    background-color: #f9f7db;
}

/* blog */
.blog h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 100px 0 50px;
    font-family: "Kaisei Opti", serif;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(20px, 3vw, 25px);
}

.blog h2::before,
.blog h2::after {
    border-top: 2px solid;
    content: "";
    width: max(39.9%, 40%);
}

.blog h2::before {
    margin-right: 1%;
}

.blog h2::after {
    margin-left: 1%;
}

/* allpost */
.allpost h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.allpost article {
    width: 100%;
    border-radius: 10px;
    padding: 15px;
    background-color: #f9f7db;
}

/* post */
.post {
    margin-top: 25px;
    margin-bottom: 25px;
}

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

.post .text {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
}

.post h3 {
    font-size: 20px;
}

.post p {
    text-align: left;
}

.post dl {
    display: flex;
    margin-top: 15px;
    font-size: 12px;
    font-family: "Kaisei Opti", serif;
    font-weight: 400;
    font-style: normal;
}

.text-category,
.text-day {
    display: flex;
    flex-direction: row;
}

.text-category {
    margin-left: 30px;
}

.post dd a {
    width: 60px;
}

dd #text {
    width: 40px;
}

/* number */
.number {
    display: flex;
    justify-content: center;
    margin: 50px 0 100px;
    text-align: center;
}

.number a {
    margin-left: 10px;
}

.number a:hover {
    color: #f2ac50;
    transition: all .2s;
}

.number i {
    width: 1.8%;
}

/* colum */
.colum {
    display: none;
}

.colum a:hover {
    color: #f2ac50;
    transition: all .2s;
}

/* search */
.search h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 100px 0 50px;
    font-size: clamp(10px, 2.5vw, 22px);
    font-family: "Kaisei Opti", serif;
    font-weight: 400;
    font-style: normal;
}

.search h2::before,
.search h2::after {
    border-top: 2px solid;
    content: "";
    width: 35%;
}

.search form {
    display: block;
    display: flex;
    justify-content: space-between;
}

.window {
    width: 70%;
    padding: 5px;
    border-radius: 5px;
    background-color: #fffffe;
    border: #f3d0a3 solid 1px;
}

.searchform button {
    width: 40px;
}

button:hover {
    cursor: pointer;
}


/* category  */

.category h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 70px 0 50px;
    font-size: clamp(10px, 2.5vw, 22px);
    font-family: "Kaisei Opti", serif;
    font-weight: 400;
    font-style: normal;
}

.category h2::before,
.category h2::after {
    border-top: 2px solid;
    content: "";
    width: 15%;
}

.category h2::before {
    margin-right: 1%;
}

.category h2::after {
    margin-left: 1%;
}

.category nav {
    padding: 20px 20px 20px;
    border-radius: 10px;
    background-color: #f9f7db;
    font-family: "Kaisei Opti", serif;
    font-weight: 400;
    font-style: normal;
    list-style-type: disc;
}

.category li {
    margin-bottom: 10px;
    font-size: 18px;
}

/* profile */
.profile {
    margin-bottom: 70px;
}

.profile h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 70px 0 50px;
    font-size: clamp(5px, 2vw, 22px);
    font-family: "Kaisei Opti", serif;
    font-weight: 400;
    font-style: normal;
}

.profile h2::before,
.profile h2::after {
    border-top: 2px solid;
    content: "";
    width: 15%;
}

.profile h2::before {
    margin-right: 1%;
}

.profile h2::after {
    margin-left: 1%;
}

.profile .content {
    padding: 15px;
    background-color: #f9f7db;
    border-radius: 10px;
}

.profile p {
    margin-top: 10px;
    font-size: 15px;
}

/* footer */
.foot {
    display: block;
    margin-top: auto;
    padding: 70px;
    background-color: #fae5ce;
    text-align: center;
}

small {
    font-size: 18px;
    font-family: "Kaisei Opti", serif;
    font-weight: 400;
    font-style: normal;
}

/* single.php */
/* header */

/* main */
.all:hover {
    transition: all .2s;
}

/* news */
.news h1 {
    margin-top: 100px;
    font-size: 33px;
}

.news dl {
    display: flex;
    margin: 25px 0 75px;
    font-size: 14px;
}

.news dd {
    margin-left: 25px;
}

.news .btn {
    text-align: center;
    margin-bottom: 50px;
    font-family: "Kaisei Opti", serif;
    font-weight: 400;
    font-style: normal;
}

.btn ul {
    display: flex;
    justify-content: center;
}

.btn .back {
    margin-right: 25px;
}

.btn .next {
    margin-left: 25px;
}

.btn a:hover {
    color: #f2ac50;
    transition: all .2s;
}

.news .content {
    margin-bottom: 50px;
    border: #fae5ce solid 2px;
    border-radius: 10px;
}

.news .content h2 {
    margin: 35px 0;
    padding-left: 40px;
    font-weight: bold;
}

.news .content h3 {
    margin-left: 20px;
    font-weight: bold;
}

.news .content p {
    margin: 25px 20px;
    font-size: 18px;
}

.news h2 {
    margin-left: 20px;
    font-size: 25px;
}

.news .last {
    margin-bottom: -30px;
}

.news .pic {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.pic img {
    width: 47%;
}

/* coment-area */
.comment-area h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 70px 0 50px;
    font-size: clamp(20px, 2vw, 25px);
    font-family: "Kaisei Opti", serif;
    font-weight: 400;
    font-style: normal;
}

.comment-area h2::before,
.comment-area h2::after {
    border-top: 2px solid;
    content: "";
    width: clamp(35%, 2vw, 50%);
}

.comment-area h2::before {
    margin-right: 1%;
}

.comment-area h2::after {
    margin-left: 1%;
}

.comment-area p {
    margin: 0;
}

.author,
.email,
#comment {
    width: 100%;
    margin: 15px 0 25px;
    padding: 5px;
    border: #fae5ce solid 2px;
    border-radius: 10px;
}

#comment {
    display: flex;
    justify-content: space-between;
}

/* 送信ボタン */
.comment-form .submit {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.comment-form .submit:hover {
    cursor: pointer;
    color: #f2ac50;
}

/* 返信 */
.comment-body {
    margin-bottom: 25px;
    padding-left: 10px;
    border-left: #f2ac50 solid 5px;
}

.comment-meta {
    display: flex;
    padding-bottom: 5px;
    font-size: 15px;
}

.comment-metadata {
    padding-left: 10px;
    font-size: 13px;
}

.comment-content {
    padding-bottom: 10px;
}

.comment-content p {
    font-size: 20px;
}

.comment-reply-link {
    display: block;
    width: 50px;
    padding: 5px;
    border-radius: 5px;
    background-color: #f9f7db;
    font-size: 15px;
    text-align: center;
    font-family: "Kaisei Opti", serif;
    font-weight: 400;
    font-style: normal;
}

.comment-reply-link:hover {
    background-color: #fcfbf2;
    color: #f2ac50;
    transition: all .2s;
}

/* 注意事項 */
.note p {
    margin: 50px 0 95px;
    padding: 10px;
}

/* archive.php */

.blog .list {
    margin-top: 50px;
    margin-bottom: 50px;
    font-size: 20px;
    font-family: "Kaisei Opti", serif;
    font-weight: 400;
    font-style: normal;
}

.blog .all {
    margin-top: 25px;
    margin-bottom: 50px;
    font-size: 18px;
    font-family: "Kaisei Opti", serif;
    font-weight: 400;
    font-style: normal;
}

.blog .all {
    text-align: left;
}

.blog .all:hover {
    color: #f2ac50;
}

/* 404 */
.notpage header {
    background-color: #f9f7db;
    text-align: center;
}

.notpage .logo {
    width: 70px;
    padding: 10px;
}

.not-page .inner {
    display: block;
}

.container img {
    width: 100%;
    margin: 100px 0;
}

.container p {
    margin-bottom: 50px;
    font-size: clamp(20px,
            3vw,
            25px);
    text-align: center;
}

.container a {
    display: block;
    width: 150px;
    margin: 0 auto 100px;
    padding: 5px 0;
    border-bottom: solid 2px;
    font-size: 20px;
    font-family: "Kaisei Opti", serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
}

.container a:hover {
    color: #f2ac50;
    transition: all .2s;
}

.wrap {
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 100%;
    min-height: 100vh;
}

/* pc版 */
@media (min-width:768px) {

    /* index.html */
    /* header */
    header {
        padding: 0;
    }

    header h1 {
        display: block;
        width: 100%;
        padding: 55px;
        background-color: #f9f7db;
    }

    header .mobile {
        display: none;
    }

    /* main */
    .main .inner {
        display: flex;
        justify-content: space-between;
    }

    /* about */
    .about h1 {
        display: none;
    }

    /* blog */
    .blog {
        width: 70%;
    }

    .blog article {
        width: 100%;
        margin-bottom: auto;
    }

    .text-day,
    .text-category {
        display: flex;
        flex-direction: column;
    }

    /* allpost */
    .allpost {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-column: repeat(3, 100px);
        column-gap: 30px;
        row-gap: 50px;

        flex: 1;
    }

    .post {
        margin-top: 0;
        margin-bottom: auto;
        padding: 20px;
        position: relative;
        overflow: hidden;
    }

    .post::after {
        content: "check!";
        font-size: 20px;
        font-family: "Kaisei Opti", serif;
        font-weight: 400;
        font-style: normal;

        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 100%;
        transform: skewY(1deg);
        transition: .3s;
        background-color: rgba(249, 247, 219, .8);

        display: flex;
        justify-content: center;
        align-items: center;
    }

    .post:hover::after {
        top: 0;
        transform: skewY(0);

        cursor: pointer;
    }

    .allpost h3 {
        font-size: 2vw;
    }

    .allpost p {
        font-size: 1.5vw;
    }

    .allpost dl {
        font-size: 1.2vw;
    }

    /* post */
    .post {
        display: block;
    }

    .post img {
        width: 100%;
    }

    /* colum */
    .colum {
        display: inline-block;
        width: 21.74%
    }

    /* solo.html */
    .solo .mobile {
        display: block;
    }

    .solo .nav {
        display: none;
    }

    .solo .category {
        margin-top: 70px;
    }

    /* news */
    .news {
        width: 70%;
    }

    /* 404 */
    .notpage .logo {
        width: 100px;
        padding: 10px;
    }


}