@charset "utf-8";

html {
    font-size: 100%;
}
body {
    font-family: 'Cabin Sketch','Kranky', 'League Spartan', 'Rubik Microbe', cursive , sans-serif;
    background: #6d543c url(../img/background.jpeg);
    background-size: 100%;
    object-fit: cover;
    margin: 0 auto;
    color: #6d543c;
}
.container {
    background: #fff;
    margin: 0 auto;
    border-left: 1px solid #6d543c;
    border-right: 1px solid #6d543c;
    padding: 20px;
}

/* header */
header {
    max-width: 1000px;
    margin: 2.5rem auto 0;
    background: #fff;
    height: 170px;
    text-align: center;
    border-top: 1px solid #6d543c;
    border-left: 1px solid #6d543c;
    border-right: 1px solid #6d543c;
}
h1 {
    font-size: 2.5rem;
    margin: 20px;
    padding-top: 25px;
}
p {
    font-size: 16px;
}

/* main */
.post-title {
    padding-bottom: 10px;
    background-image: linear-gradient(45deg, #faf7f5 30%, #a86 30%, #faf7f5 50%, #a86 50%, #faf7f5 80%, #a86 80%, #faf7f5 100%);
    background-size: 6px 6px;
    margin-bottom: 1.5rem;
}
.post-title h2 {
    background: #fff;
    padding: 0 .5rem .5rem;
    font-size: 1.2rem;
    font-weight: 500;
    line-height:  1.5;
}
.post-title h2:hover {
    color: #a86;
}
.post-title a {
    text-decoration: none;
}

.post-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 40% 70% 50% 30%/50%;
}
.post-thumb {
    margin: 0 0 1rem 10px;
    position: relative;
}
.post-date {
    background: #a86;
    border-radius: 40% 30% 40% 30%/50% 40% 50% 40%;
    width: 80px;
    height: 70px;
    font-size: 18px;
    text-align: center;
    position: absolute;
    top: 0;
    padding: 12px;
}
.post-date span {
    font-size: 20px;
    border-bottom: 1px rgb(0, 0, 0, .5) solid;
    display: block;
    padding-bottom: 5px;
    width: 70%;
    margin: 0 auto;
}

.btn {
    text-align: right;
    margin:15px 15px 30px 15px;
    color: #000;
}
.btn a {
    padding: 10px 20px;
    background: #a86;
    box-shadow: 0 0 0 5px #a86;
    border: 2px dashed  #6d543c;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}
.btn a:hover {
    color: #fff;
    background: #6d543c;
    box-shadow: 0 0 0 5px #6d543c;
    border: 2px dashed #a86;
}

/* page */
.pagination {
    max-width: 1000px;
    background: #fff;
    display: flex;
    justify-content: center;
    font-size: 1.5rem;
    text-align: center;
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 20px;
    border-left: 1px solid #6d543c;
    border-right: 1px solid #6d543c;
    border-bottom: 1px solid #6d543c;
}
.pagination a:hover {
    background: #a86;
}
.pagination a, .pagination .current {
    border-radius: 50%;
    padding-top: 4px;
    display: inline-block;
    width: 36px;
    height: 36px;
    margin: 0 6px;
}
.pagination .current{
    background: #6d543c;
    color: #fff;
}

/* aside */
.side-box {
    margin-top: 3rem;
    margin-bottom: 4rem;
    border: 1px solid #6d543c;
    outline: 2px solid #6d543c;
    outline-offset: 4px;
    border-radius: 5px;
    padding: .875rem;
    position: relative;

}
.side-box::before {
    display: block;
    width: 2rem;
    height: 2rem;
    text-align: center;
    background: #fff;
    position: absolute;
    top: -1rem;
    left: 0;
    right: 0;
    margin:auto;

    /* FontAwesome */
    font-family: 'Font Awesome 6 Pro';
    font-weight: 900;
    color: #6d543c;
    font-size: 1.5rem;
    content: '\f6c8';
}
h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
}

/* category */
.side-box ul li {
    border-bottom: 1px dotted #6d543c;
    padding-top: 5px;
    padding-bottom: 5px;
}
.side-box ul li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6d543c;
    display: inline-block;
    margin: 0 8px 2px 0;
}

.side-box form {
    font-family: sans-serif;
    margin: 15px 0;
}
.side-box label {
    display: flex;
    justify-content: space-between;
    margin: 4px;
}
.side-box label input {
    border: 1px solid #6d543c;
    padding: 4px 150px 4px 4px;
    margin-left: 4px;
    width: 90%;
}
.side-box button {
    background: #6d543c;
    width: 10%;
    color: #fff;
    padding: 2px 4px;
}
.side-box button:hover {
    background: #a86;
    color: #000;
}

/* footer */
footer {
    background: #6d543c;
    color: #fff;
    text-align: center;
    padding: 20px;
}
.footer ul {
    display: flex;
    justify-content: center;
}
.footer ul li {
    margin: 10px 5px;
}
.footer a:hover {
    color: #a86;
}
.footer p {
    margin: 5px;
}

/* link先 */
.main-title {
    padding: 10px 0 .1px 0;
    background-image: linear-gradient(45deg, #faf7f5 30%, #a86 30%, #faf7f5 50%, #a86 50%, #faf7f5 80%, #a86 80%, #faf7f5 100%);
    background-size: 10px 10px;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}
.main-title h3 {
    background: #fff;
    padding: .5rem 1rem;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5rem;
    text-align: left;
}
.main-topic {
    margin-top: 4.8rem;
}
.main-topic ul {
    margin: 10px;
    font-size: 20px;
    font-weight: bolder;
}
.main-topic ul li {
    margin: 5px 0;
    font-weight: normal;
    font-size: 16px;
}
.main-topic ul li::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\e51a";
    color: #a86;
}

.main-topic img {
    width: 100%;
    border-radius: 30px;
    margin: 20px 0;
}

.main-topic h4 {
    font-size: 20px;
    font-weight: bold;
    margin: 15px 0;
}
.main-topic ol {
    margin-bottom: 40px;
}
.main-topic ol li {
    counter-increment: list;
    margin: 7px 0;
}
.main-topic ol li::before {
    content: counter(list);
    color: #a86;
    display: inline-block;
    margin-right: 8px;
}
.main-topic p {
    font-size: 16px;
    margin-bottom: 40px;
}
.main-topic p span {
    padding-bottom: 2px;
}
.main-topic span a {
    color: rgb(196, 158, 111);
    border-bottom: 1px solid rgb(196, 158, 111);
}

.main-topic blockquote {
    position: relative;
    padding: 1.5rem 2rem .05rem 2.5rem;
    margin-bottom: 1rem;
}
.main-topic blockquote::before, .main-topic blockquote::after {
    font-size: 5rem;
    font-family: geordia, sans-serif;
    color: #a86;
    position: absolute;
    line-height: 0;
}
.main-topic blockquote::before {
    content: '\201C';
    top: 2.5rem;
    left: 0;
}
.main-topic blockquote::after {
    content: '\201D';
    bottom: .5rem;
    right: 0;
}

/* DESCTOP-SIZE */
@media (min-width: 846px) {
    /* header */
    h1 {
        font-size: 3rem;
    }
    p {
        font-size: 1rem;
        padding-bottom: 2rem;
    }
    .container {
        max-width: 1000px;
        display: flex;
        justify-content: space-between;
        padding: 1rem 2.5rem 2.5rem;
    }
    main {
        width: 68%;
        margin-bottom: 0;
    }
    .post-img {
        width: 220px;
        height: 180px;
        margin-top: 10px;
    }
    .post-thumb {
        margin: 0 4rem 4rem 1rem;
        shape-outside: circle();
        float: left;
    }
    aside {
        width: 26%;
    }
    /* newselecter */
    .side-box label input {
        padding: 4px 6px 4px 4px;
        width: 70%;
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
    }
    .side-box button {
        padding: 4px;
        width: 30%;
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
    }
}