/*パンくずリスト*/
.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    line-height: 1.3;
}

.bread-wrap {
    padding: 10px;
}

/*ページトップへ*/
.ec-blockTopBtn{
    background-color: unset;
    bottom: 60px;
}

@media only screen and (min-width: 768px) {
    .ec-blockTopBtn {
        bottom: 70px;
    }
}
.heder-logo {
    width: 120px;
    flex-shrink: 0;
    margin-bottom: 0;
}
.custom-nav{
    height: 40px;
}
.custom-nav .custom-nav__list{
    gap: 14px;
    padding: 0 16px;
}

.custom-nav .custom-nav__item a{
    font-size:clamp(0.875rem, 0.705rem + 0.73vw, 1.25rem);
}

.ec-headerNav .ec-headerNav__itemIcon.is-sp {
  display: inline-block;
  color: black;
}

.ec-headerNaviRole{
    max-width: 100%;
    padding-bottom: 10px;
}
.ec-headerNav__item{
    font-weight: bold;
}

.ec-headerNav__item+.ec-headerNav__item {
    margin-left: 6px;
}

.ec-headerNav__item.login__btn{
    background-color: #fed500;
    padding: 3px 10px;
    border-radius: 4px;
}

.ec-headerNaviRole .ec-headerNaviRole__left {
    width: auto;
    max-width: 50%;
    margin-left: auto;
}

.ec-headerNaviRole .ec-headerNaviRole__right {
    width: auto;
    margin-left: auto;
}
.ec-headerNav .ec-headerNav__itemIcon {
    color: white;
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
}

.ec-headerNav .ec-headerNav__itemIcon.fa-lock {
    color: black;
}
    .ec-headerSearch .ec-headerSearch__keyword {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0; 
    }
    .ec-headerSearch .ec-headerSearch__category .ec-select.ec-select_search {
        border-top-right-radius: 0; 
        border-top-left-radius: 0;
    }


@media only screen and (min-width: 768px) {
    .bread-wrap {
    padding: 20px 0 0 40px;
    }
    .ec-headerNav .ec-headerNav__itemIcon{
    margin-left: 0;
    }
      .ec-headerNav .ec-headerNav__itemIcon.is-sp {
    display: none; /* または inline / block など必要に応じて */
  }
    .ec-headerNaviRole .ec-headerNaviRole__search {
        width: 100%;
        margin-top: 0;
    }
    
    .ec-headerNaviRole .ec-headerNaviRole__left {
    width: 52%;
    padding-top: 5px;
}

.ec-headerNaviRole .ec-headerNaviRole__right {
    width: 370px;
    flex: 1 0 auto;
}

    .ec-headerSearch .ec-headerSearch__keyword {
        float: left;
        width: 70%;
        border-bottom-left-radius: 0;
        border-top-right-radius: 0; 
        border-bottom-right-radius: 0; 
    }

    .ec-headerSearch .ec-headerSearch__category {
        float: right;
        width: 28%;
    }

    .ec-headerSearch .ec-headerSearch__category .ec-select.ec-select_search {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
    
.ec-headerNaviRole {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-left: 3%;
    padding-right: 3%;
}

.heder-logo {
    width: 160px;
}

.ec-headerNaviRole__left {
    flex: 1 1 auto;
    min-width: 0; /* 省略可能だが推奨 */
}
.ec-headerNaviRole .ec-headerNaviRole__nav a{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 0;
}
.ec-headerNav .ec-headerNav__itemLink{
    margin-right: 0;
}
}

/*footer*/
.footer-flex {
  display: flex;
  max-width: 1100px; /* ← たぶん意図と違うので後述します */
  width: 100%;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-direction: column;
}

.footer-flex .left {
  flex: 0 1 32%;
  max-width: 300px;
  min-width: 200px;
  margin: 20px auto 0;
}

.footer-flex .left img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.footer-flex .center {
  flex: 0 1 50%;
}

.footer-flex .right {
  flex: 0 1 130px;
  max-width: 130px;
  margin: 0 auto;
}

.footer-flex .ec-headerNav__item:nth-of-type(2) {
    display: none;
}

.footer-flex .ec-headerNav {
    flex-direction: column;
}

.footer-flex .ec-headerNav .ec-headerNav__item {
    width: 100%;
    text-align: center;
}

.footer-flex .ec-headerNav .ec-headerNav__item:nth-of-type(1) {
    background-color: #fff;
    padding: 0;
    border-radius: 4px;
    margin-bottom: 5px;
}

.footer-flex .ec-headerNav .ec-headerNav__itemLink {
    display: inline;
}

.footer-flex .ec-headerNav__item.login__btn {
    margin-left: 0;
    padding: 0; 
}

@media only screen and (min-width: 768px) {
    .ec-footerNavi .ec-footerNavi__link a {
        text-decoration: none;
    }
    .footer-flex {
    flex-direction: row;
    align-items: center;
  }
    .footer-flex .left .footer-logo{
        margin-bottom: 0;
    }
    .footer-flex .left {
      margin: 0 auto;
}
    .footer-flex .center {
      flex: 0 1 50%;
      padding-top: 20px;
    }
    .ec-footerRole__inner .ec-headerNav__item a{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 0;
    }
}

/*top*/
.top-main{
    padding-top: 40px;
}

.top-main a{
    color: #000000;
}
.blk-title {
    border-bottom: 1px solid #EDEDED;
    margin-bottom: 10px;
}

.blk-title .under-red {
    border-bottom: 1px solid #DD5F5F;
    display: inline-block; /* 下線をspanに適用するため */
    font-weight: bold;
}

.top-main .book-item {
        width: 100%;
    }
.top-main .book-list {
    display: flex;
    flex-wrap: wrap;           /* 複数行に折り返す */
    gap: 16px;                 /* アイテム間の隙間 */
    justify-content: flex-start;
    padding: 0 24px;
}

.top-main .img-wrap{
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background-color: #EDEDED;
    padding: 20px 10px;
}

.top-main .img-wrap img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.top-main .rank {
    position: absolute;
    top: 0;
    left: 0;
    background: red;
    width: 30px;
    line-height: 1.5;
    color: #fff;
    text-align: center;
    font-weight: bold;
    font-size: 20px;
}

.top-main .category {
    width: fit-content;
    padding: 0 8px;
    font-size:12px;
    border: 1px solid #000;
}

.top-main .title{
    font-size: 15px;
    font-weight: bold;
}

.top-main .author{
    font-size: 10px;
    font-weight: bold;
}

.top-main .description{
    font-size: 12px;
}

.top-main .book-item p+p{
    margin-top: 6px;
}

.ec-secHeading {
    color: #ffffff;
    text-align: center;
    background-color: #222B2f;
    line-height: 3.3em;
    font-size: 20px;
    border-radius: 4px 4px 0 0;
    margin-bottom: 0;
}

.ec-secHeading img.comment {
    width: 34px;
    height: 34px;
}

.ec-newsRole .ec-newsRole__news {
    box-sizing: border-box;
    background-color: rgb(248, 248, 248);
}

.ec-newsRole .ec-newsRole__newsDate {
     margin: 0; 
    padding: 10px;
}
.ec-newsRole .ec-newsRole__newsColumn {
    padding: 10px;
}
.ec-newsRole__newsItem.is_active .ec-newsRole__newsDescription {
    padding: 10px;
}
.ec-newsRole .ec-newsRole__newsItem {
    color: #000;
    font-weight: bold;
}

.ec-newsRole .ec-newsRole__newsTitle {
    color: #000;
}
@media (min-width: 768px) {
.top-main .book-item {
    width: calc((100% - (16px * 4)) / 5);  /* 5個並ぶよう幅を計算 */
    box-sizing: border-box;
    margin-top: 24px;
}
.ec-newsRole .ec-newsRole__newsDate {
    padding: 0px;
    padding-top: 4px;
}
.ec-newsRole .ec-newsRole__newsColumn {
    padding: 0px;
}
.ec-newsRole__newsItem.is_active .ec-newsRole__newsDescription {
    padding: 0px;
}
}

/*login*/
.ec-login__actions .ec-blockBtn--cancel{
    background-color: #dd5f5f;
    border: none;
    border-radius: 4px;
}
.ec-login .ec-grid2 {
         display: block; 
    }

.ec-login .ec-grid2 .ec-grid2__cell {
    width: 100%;
    text-align: center;
}

.ec-login .ec-login__actions {
    margin-bottom: 20px;
}

/*product-detail*/
.ec-productRole{
    padding-top: 0px;
}

@media (min-width: 768px) {
.ec-productRole{
    padding-top: 40px;
}
}