@charset "UTF-8";

@import url("https://fonts.googleapis.com/css2?family=Kiwi+Maru:wght@400;500&display=swap");

/* カスタムプロパティ */
:root {
    --color-01: #011689;
    --color-02: #6e6e6e;
}

/* 全体設定 */
.wrapper{
  background: #f5f5f5;
}

.up-clearfix {
    display: block;
}

.up-clearfix::before,
.up-clearfix::after {
    content: '';
    display: block;
    clear: both;
}

/* ##### 全体のフォント指定 ##### */
html{
  font:inherit;
}

body * {
    font-family: "Kiwi Maru", serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.3;
}

ul {
    list-style: none;
}

/* 共通 */
.contents-wrap {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
}

.contents-section {
    width: 96%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5em 0 5em;
}

.contract-section {
    margin: 4em 0;
}

a{
    transition: opacity 0.3s !important;
}

a:hover,
a:focus,
a:active {
    text-decoration: none;
    color: inherit;
    opacity: .5;
}

@media(max-width:599px){
  .contents-section{
    padding: 2em 0 3em;
  }
}

.article-head .ttl{
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px dashed var(--color-01);
  font-size: 30px;
  line-height: 1.2;
  margin-top: 10px;
  color: var(--color-02);
}

.article-head .cat {
    padding: 6px 20px;
    line-height: 1;
    background: var(--color-01);
    color: #fff;
    width: fit-content;
    border-radius: 4px;
}

@media (max-width:1024px){
  .article-head .ttl {
      font-size: 24px;
      margin-bottom: 20px;
      padding-bottom: 10px;
  }
}

@media (max-width:599px){
  .article-head .ttl {
      font-size: 22px;
      margin-bottom: 10px;
      padding-bottom: 10px;
  }
}

/* .category-image.-blue img {
    filter: brightness(0) saturate(100%) invert(12%) sepia(92%) saturate(3346%) hue-rotate(230deg) brightness(77%) contrast(120%);
} */

.category-image.-blue:before{
    background-color: unset;
}

/* 著者 */
.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;
    margin-left: auto;
}

.author-box .author-item .author-name {
    font-weight: bold;
    margin-bottom: 0.25em;
}

.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 var(--color-01);
}

.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%;
    color: var(--color-02);
}

.list-blog-index li:not(:has(a:not(:empty))) {
    display: none;
}

/* ブログの記事セクション */
.anker-section{
  margin-top: -150px;
  padding-top: 150px;
}

.anker-section+.anker-section .blog-section {
    margin-top: 2em;
}

.anker-section:not(:has(h2:not(:empty))) {
    display: none;
}

.blog-section h2 {
    color: var(--color-01);
    font-size: 150%;
    font-weight: bold;
    margin-bottom: 1em;
    padding: 0.5rem 0 1rem;
    border-bottom: 3px dotted var(--color-01);
}

@media(max-width:1024px){
  .anker-section{
    margin-top: -84px;
    padding-top: 84px;
  }

  .blog-section h2 {
      font-size: 130%;
      padding: 0 0 0.5em;
      margin-bottom: .8em;
  }
}

@media(max-width:599px){
  .anker-section{
    margin-top: -165px;
    padding-top: 165px;
  }
}

/* 商品リスト */
.blog-merchant-list-wrap{
        overflow-x: scroll;
    width: 100%;
    padding-bottom: 20px;
    margin-bottom: 50px;
}

.blog-merchant-list {
    margin-top: 80px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    gap: 1em;
    padding-left: 0;
    white-space: nowrap;
}

.blog-merchant-list li a {
    height: 100%;
    background-color: white;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    border-radius: 5px;
    overflow: hidden;
    width: calc(100vw / 5);
}

.blog-merchant-list li a .blog-merchant-img {
    width: 100%;
    -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;
    border-radius: 0 !important;
}

.blog-merchant-list li a .blog-merchant-content {
    width: 100%;
    -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: var(--color-01);
    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:1024px){
  .blog-merchant-list li a{
    width: calc(100vw / 4);
  }
}

@media (max-width: 599px) {
    .blog-merchant-list li a{
      width: calc(100vw / 1.5);
    }
}

/* 本文下の記事一覧、前後の記事のリンク */
.p-low .pagination ul{
  display: flex;
  justify-content: center;
  gap: 20px;
    align-items: center;
    padding-left: 0;
}

.p-low .pagination ul li a {
    color: white;
}

.p-low .pagination ul li.next{
  width: 130px;
    height: 50px;
}

.p-low .pagination ul li.next a {
    background-color: #e8b702;
    color: rgb(255, 255, 255);
    width: 100%;
    height: 100%;
    border-radius:5px;
        display: flex;
    align-items: center;
    justify-content: center;
}

.p-low .pagination ul li.prev{
  width: 130px;
    height: 50px;
}

.p-low .pagination ul li.prev a {
    background-color: #e8b702;
    color: rgb(255, 255, 255);
    width: 100%;
    height: 100%;
    border-radius: 5px;
        display: flex;
    align-items: center;
    justify-content: center;
}

.p-low .pagination ul li.back a {
    color: inherit;
}

.p-low .pagination ul li:not(:has(>a:not(:empty))) {
    display: none;
}
