/* カスタムプロパティ */
:root {
    --color-01: #ffc440;
}

/* 上書き */
.title_ptn02 {
    color: white;
}

.blog_cnt_box {
    padding: 6em 2em;
    border-radius: 1em;
    background-color: white;
}

.blog_cnt_box * {
    color: black;
}

@media (max-width: 599px) {
    .blog_cnt_box {
        padding: 3em 1em;
    }
}

/* 全体設定 */
.up-clearfix {
    display: block;
}

.up-clearfix::before,
.up-clearfix::after {
    content: "";
    display: block;
    clear: both;
}

a:hover {
    text-decoration: none;
}

/* 見出し */
.blog-heading {
    margin-bottom: 1.5em;
    font-weight: bold;
    font-size: 3em;
}

.index-box {
    width: 100%;
    max-width: 700px;
    margin: 3em auto;
    padding: 2em 1.5em;
    border: 3px solid var(--color-01);
    background-color: white;
}

.index-heading {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -ms-flex-align: center;
    margin: 0 auto 1em auto;
    font-size: 2.25em;
    color: var(--color-01);
}

.index-heading .icon {
    width: 2.6em;
    height: 2.6em;
    display: inline-block;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin-top: 0.2em;
    margin-right: 0.5em;
}

.index-heading .icon img {
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    -o-object-position: center center;
    object-position: center center;
    border-radius: unset !important;
}

.list-index li {
    padding: 0.25em;
    border-bottom: 1px dashed var(--color-01);
}

.list-index li a {
    color: black;
}

.list-index li+li {
    margin-top: 0.75em;
}

@media (max-width: 599px) {
    .index-heading {
        font-size: 1.35em;
    }
}

/* 本文のセクション */
.blog-box-wrap {
    margin-top: 6em;
}

.blog-box {
    padding: 2em 1.5em 3em;
    border-radius: 1em;
}

.blog-box-wrap .blog-box:nth-child(even) {
    background-color: rgba(255, 196, 64, 0.05);
}

.blog-box-wrap .blog-box+.blog-box {
    margin-top: 3em;
}

.blog-title {
    margin-top: -3em;
    margin-bottom: 1em;
    padding-top: 4em;
    font-weight: bold;
    font-size: 2.75em;
}

.blog-title:first-letter {
    color: var(--color-01);
}

@media (max-width: 599px) {
    .blog-title {
        font-size: 2.5em;
    }
}

/* 商品 */
.list-merchant-wrap {
    margin-top: 6em;
}

.merchant-heading {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto 1em;
    font-weight: bold;
    font-size: 1.8em;
    letter-spacing: 0.1em;
    text-align: center;
    background: -webkit-gradient(linear, left top, left bottom, color-stop(60%, transparent), color-stop(60%, var(--color-01)));
    background: linear-gradient(transparent 60%, var(--color-01) 60%);
}

.list-merchant {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;

    gap: 1em;
}

.list-merchant li {
    width: calc((100% - (1em * 1)) / 2);
}

.list-merchant li a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    overflow: hidden;
    color: inherit;
    border-radius: 10px;
    -webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
}

.list-merchant li a:hover {
    -webkit-box-shadow: unset;
    box-shadow: unset;
}

.list-merchant li a .merchant-img {
    width: 30%;
    display: block;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    position: relative;
}

.list-merchant li a .merchant-img::after {
    content: "";
    display: block;
    padding-top: 100%;
}

.list-merchant li a .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;
}

.list-merchant li a .merchant-contents {
    width: 10%;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    padding: 0.5em;
}

.list-merchant li a .merchant-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: bold;
    font-size: 110%;
    text-overflow: ellipsis;

    line-clamp: 2;
    -webkit-line-clamp: 2;
}

.list-merchant li a .merchant-price {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin-left: auto;
    font-size: 80%;
    font-size: gray;
}

.list-merchant li a .text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 1em;
    font-size: 90%;
    line-height: 1.3;
    text-overflow: ellipsis;

    line-clamp: 3;
    -webkit-line-clamp: 3;
}

@media (max-width: 1024px) {
    .list-merchant li {
        width: 100%;
    }
}

/* ボタン */
.btn-01 {
    width: 90%;
    max-width: 300px;
    margin: 5em auto 0;
}

.btn-01 a {
    width: 100%;
    display: block;
    padding: 12px 0;
    font-weight: 500;
    font-size: 16px;
    color: #000;
    line-height: 24px;
    text-align: center;
    border: 1.5px solid var(--color-01);
    border-radius: 10px;
    background: var(--color-01);
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

.btn-01 a:hover {
    border: 1.5px solid black;
    background: white;
}

/* 著者 */
.author-box {
    margin: 2em 0;
}

.author-item {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    width: 200px;
    max-width: 50%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -ms-flex-align: center;
    margin-left: auto;
}

.author-img {
    width: 25%;
    display: block;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 100%;
    position: relative;
}

.author-img::after {
    content: "";
    display: block;
    padding-top: 100%;
}

.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-name {
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    padding: 1em;
    font-size: 85%;
    color: gray;
}

/* 非表示 */
.ec-parent:not(:has(.ec-child:not(:empty))) {
    display: none;
}

.eca-parent:not(:has(.eca-child a:not(:empty))) {
    display: none;
}
