/* カスタムプロパティ */
:root {
    --color-01: #6f4f25;
}

/* 全体設定 */
.up-clearfix {
    display: block;
}

.up-clearfix::before,
.up-clearfix::after {
    content: '';
    display: block;
    clear: both;
}

a,
a:hover {
    color: #6f4f2c;
    text-decoration: none;
}

/* 著者 */
.author-box {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    max-width: 50%;
    margin-left: auto;
    min-width: 30%;
}

.author-box .author-img {
    width: 80px;
    overflow: hidden;
    border-radius: 100%;
    display: block;
    position: relative;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.author-box .author-img::after {
    content: "";
    display: block;
    padding-top: 100%;
}

.author-box .author-img img {
    width: 100%;
    height: 100% !important;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: 50% 50%;
    object-position: 50% 50%;
    position: absolute;
    top: 0;
    left: 0;
}

.author-box .author-item {
    width: 10%;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    padding: 1em;
}

.author-box .author-item .author-name {
    font-weight: bold;
    margin-bottom: 0.25em;
}

.author-box .author-item .author-message {
    font-size: 75%;
    line-height: 1.2;
}

.author-box:not(:has(.author-name:not(:empty))) {
    display: none;
}

@media (max-width: 599px) {
    .author-box {
        max-width: 80%;
    }

    .author-box .author-img {
        width: 60px;
    }

    .author-box .author-item {
        padding: 0.5em;
    }
}

/* 目次 */
.blog-index {
    max-width: 90%;
    width: 500px;
    margin: 80px auto;
    background-color: white;
    padding: 2em;
    border: 2px solid #6F4F2C;
}

.blog-index .blog-index-heading {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 1em;
}

.blog-index .list-blog-index {
    padding-left: 0;
}

.blog-index .list-blog-index li+li {
    margin-top: 0.5em;
}

.blog-index .list-blog-index li a {
    text-decoration: underline;
    font-size: 90%;
}

.list-blog-index li:not(:has(a:not(:empty))) {
    display: none;
}

/* ブログの記事セクション */
.blog-section {
    background-color: white;
    padding: 2em;
}

.blog-section+.blog-section {
    margin-top: 2em;
}

.blog-section:not(:has(h2:not(:empty))) {
    display: none;
}

.blog-section h2 {
    color: #6F4F2C;
    font-size: 150%;
    font-weight: bold;
    margin-bottom: 1em;
    padding: 0.5em 0.5em 1em 0.5em;
    border-bottom: 3px dotted #6F4F2C;
}

@media (max-width: 599px) {
    .blog-section {
        padding: 2em 1em;
    }
}

/* 商品リスト */
.blog-merchant-list {
    margin-top: 80px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 1em;
    padding-left: 0;
}

.blog-merchant-list li {
    width: calc((100% - 1em) / 2);
}

.blog-merchant-list li a {
    height: 100%;
    background-color: white;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    text-decoration: none !important;
}

.blog-merchant-list li a .blog-merchant-img {
    width: 35%;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    display: block;
    position: relative;
}

.blog-merchant-list li a .blog-merchant-img::after {
    content: "";
    display: block;
    padding-top: 65%;
}

.blog-merchant-list li a .blog-merchant-img img {
    width: 100%;
    height: 100% !important;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: 50% 50%;
    object-position: 50% 50%;
    position: absolute;
    top: 0;
    left: 0;
}

.blog-merchant-list li a .blog-merchant-content {
    width: 10%;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    padding: 1em;
}

.blog-merchant-list li a .blog-merchant-content h3 {
    font-size: 110%;
    color: #6F4F2C;
    font-weight: bold;
    margin-bottom: 0.5em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1em;
    line-height: 1.3;
    text-overflow: ellipsis;

    line-clamp: 2;
    -webkit-line-clamp: 2;
}

.blog-merchant-list li a .blog-merchant-content .blog-merchant-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    text-overflow: ellipsis;

    line-clamp: 3;
    -webkit-line-clamp: 3;
    font-size: 70%;
}

.blog-merchant-list li:not(:has(.blog-merchant-content h3:not(:empty))) {
    display: none;
}

@media (max-width: 599px) {
    .blog-merchant-list li {
        width: 100%;
    }
}

/* ボタン */
.btn-01 {
    margin: 80px auto 0;
    max-width: 90%;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
}

.btn-01 a {
    -webkit-transition: 0.3s linear;
    transition: 0.3s linear;
    text-align: center;
    border-radius: 3em;
    display: block;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    background-color: white;
    color: #6F4F2C;
    font-size: 1.25em;
    line-height: 1.2;
    padding: 1em 2em;
    border: 2px solid #6F4F2C;
    text-decoration: none !important;
}

.btn-01 a:hover {
    color: white;
    background-color: #6F4F2C;
}

.btn-01:not(:has(a:not(:empty))) {
    display: none;
}

/* 本文下の記事一覧、前後の記事のリンク */
.p-low .pagination ul li a {
    color: white;
}

.p-low .pagination ul li.back a {
    color: inherit;
}

.p-low .pagination ul li:not(:has(>a:not(:empty))) {
    display: none;
}
