/* カスタマイズ用CSS */

/* 変数上書き */
:root {
    --padding-mobile: 10px;
    /*--padding-desktop: 20px;*/
    --padding-desktop: 40px; /* カートボタンの数字、画像の>が見切れないギリギリ */
    --padding-1200: 20px;
    --padding-tablet: 15px;
    --margin-mobile: 35px;
    --head-letter-spacing: 0.1em;
}

/* 画面全体の横スクロールを抑制（商品詳細ページでの問題の対応） */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* p要素の文字透明度をリセット */
p {
  opacity: 1 !important;
}

/* 二重スクロールになる、要確認 */
.ec-layoutRole {
    overflow: hidden;
}

/* ヘッダー */
/* ロゴ */
.header .header-inner .logo {
    width: auto;
}

/* --padding-mobile変更によるボタン位置調整 */
.header .header-inner .header-btn {
    margin-inline-end: -0.2em;
}

/* フッター */
.footer .footer-top-inner {
    justify-content: space-between;
}

.footer .footer-top .footer-top-inner .submenu {
    margin: 1rem 0 0 0 !important;
}

/* トップページ */
.sec-title {
    margin: 0 0 1rem 0;
}

/* VIEW MORE */
.btn-arrow {
    margin-block-start: 0.5rem;
    margin-top: 1rem !important;
}

/* TODO:スマホサイズでのhover時のアイコンの大きさ要調整 */
@media screen and (max-width: 992px) {
    .btn-arrow a {
        font-size: 1.1rem;
        padding: 0 22px 0 0;
    }
    
    .btn-arrow a::before {
        width: 18px;
        height: 18px;
    }

    .btn-arrow a::after {
        inset: 50% 1px auto auto;
    }
}

/* ボタンレイアウト調整 */
@media screen and (max-width: 768px) {
    .header .header-inner .header-btn > div a {
        width: 30px;
    }
}

/*動画プラグイン */
/* 動画表示時の不要なレイヤーを非表示 */
.modal-backdrop.fade.show {
    display: none;
}

/* ボタンスタイル調整 */
#detaildoga_area.ec-productRole__code {
    padding: 0 0 14px 0;
    margin-top: 30px;
    border: 0;
}

/* ボタン色変更、ほか */
#detaildoga_area .btn-success {
    background: rgb(17, 17, 17);
    border: 0;
    white-space: nowrap;
}

/* MATERIAL・INFOタブはボタン非表示 */
.ec-productRole__tab-content .tab-content-item:nth-child(2) #detaildoga_area.ec-productRole__code,
.ec-productRole__tab-content .tab-content-item:nth-child(3) #detaildoga_area.ec-productRole__code {
    display: none;
}

/* ボタンの配置変更、余白調整 */
.ec-productRole__tab-content .tab-content-item:nth-child(1) {
    display: flex;
    flex-direction: column;
}

.ec-productRole__tab-content .tab-content-item:nth-child(1) .item-description {
    order: 2;
    margin-bottom: 20px !important;
}

.ec-productRole__tab-content .tab-content-item:nth-child(1) .ec-productRole__code {
    order: 1;
    margin: 5px 0 10px 0 !important;
}

.ec-productRole__tab-content .tab-content-item:nth-child(1) .ec-productRole__code-category {
    order: 3;
}

/* レイヤーの順序変更 */
.ec-productRole {
    position: relative;
    z-index: 1;
}

/* 背景色 */
#detaildoga_area .modal.fade.show {
    background: rgba(0, 0, 0, 0.8);
}

/* ブログプラグイン */
/* レイアウト調整 */
.ec-blogPostsGrid {
    margin-top: 15px;
}

.ec-recommandBlogsRole .ec-recommandBlogsRole__list {
    gap: 10px 10px !important;
    justify-content: space-between !important;
    align-items: flex-start;
}

.ec-recommandBlogsRole .ec-recommandBlogsRole__listItem {
    width: calc(50% - 5px) !important;
}

.ec-blogPostsGrid .ec-blogPostsGrid__item {
    width: calc(50% - 5px);
}

.editorjs__blog-image img {
    height: auto !important;
}

.ec-blogPostsGrid .ec-blogPostsGrid__item img {
    height: auto !important;
}

.ec-recommandBlogsRole__listItem {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ec-recommandBlogsRole__listItemHeading {
    margin: 0 !important;
    padding-top: 85px;
}

.ec-recommandBlogsRole .ec-secHeading__en {
    margin-bottom: 30px;
    font-weight: normal !important;
}

/*
.ec-recommandBlogsRole .ec-secHeading__en,
.ec-recommandBlogsRole .ec-inlineBtn--top {
    position: relative;
    bottom: 30px
}
*/

.ec-recommandBlogsRole__listItemHeading .ec-secHeading__line,
.ec-recommandBlogsRole__listItemHeading .ec-secHeading__ja {
    display: none;
}

.editorjs-blogRole .cdx-block{
    padding-left: 0;
    padding-right: 0;
}

.editorjs-blogRole .cdx-block.cdx-list {
    padding-left: 20px;
}

@media screen and (max-width: 767px) {
    .ec-recommandBlogsRole__listItemDatetime,
    .ec-recommandBlogsRole .ec-recommandBlogsRole__listItemTitle,
    .ec-blogPostsGrid__datetiem,
    .ec-blogPostsGrid__title {
        font-size: 12px !important;
    }
    .ec-blogPostsGrid {
        gap: 20px 10px;
    }
    /*
    .mv {
        height: 425px !important;
    }
    */
    /* mvのサイズ変更は当該blockのtwigの設定を利用する */
}

.ec-recommandBlogsRole__listItemHeading .ec-inlineBtn--top {
    font-size: 1.2rem;
    padding: 8px 12px;
}

@media only screen and (min-width: 768px) {
    .ec-recommandBlogsRole {
        margin: 0 auto var(--margin) auto;
        padding: 0 var(--padding);
        max-width: var(--max-width);
    }
}

/* 一覧の件数表示など非表示（商品という表示になるため） */
.blog_page .ec-searchnavRole__topicpath,
.blog_page .ec-searchnavRole__infos {
    display: none;
}

/* 一覧の並び */
@media (min-width: 1280px) {
    .ec-blogPostsGrid .ec-blogPostsGrid__item {
        width: calc(25% - 30px) !important;
    }
}

.ec-recommandBlogsRole {
    padding: 0 var(--padding) 40px var(--padding) !important;
}

/* 再入荷通知プラグイン */
/* メールアドレス入力欄レイアウト調整 */
#back-in-stock-container-email {
    box-sizing: border-box;
}

/* カレンダー */
/* レイアウト調整 */
.ec-calendar {
    margin-bottom: 40px;
    align-items: flex-start;
}

.ec-role_calendar {
    padding-left: var(--padding);
    padding-right: var(--padding);
}

@media screen and (max-width: 767px) {
    .ec-calendar {
        flex-direction: row !important;
        gap: 15px !important;
    }
    .ec-calendar .ec-calendar__month {
        flex: 1 !important;
        margin-top: 10px;
    }
    .ec-calendar th {
        font-size: 14px !important;
        white-space: nowrap;
        padding: 8px 2px;
    }
    .ec-calendar td {
        font-size: 12px !important;
        white-space: nowrap;
        padding: 8px 2px;
    }
}

/* 関連商品 */
/* レイアウト調整 */
#RelatedProduct-product_area {
    margin-top: 40px;
}

/* 商品詳細画面 */
/* タブエリアレイアウト調整 */
.tab-content-item .item-description {
    margin: 0 !important;
}

.tab-content-item .item-description h3 {
    margin: 2.5rem 0 0 0;
}

.tab-content-item .item-description p,
.tab-content-item .item-description ul {
    margin: 1rem 0;
}

.tab-content-item .item-description ul {
    list-style: disc;
    margin-left: 2rem
}

/* 数量入力エリア非表示（問合せボタン、再入荷通知ボタン干渉のため */
.ec-productRole__btn .quantity-area {
    display: none !important;
}

.ec-productRole__btn {
    flex-direction: column;
    margin-top: 1.5rem !important;
}

.ec-productRole__btn .ec-blockBtn--action.add-cart,
.ec-productRole__btn .ec-blockBtn--action.add-cart:hover,
.ec-productRole__btn .ec-blockBtn--action.add-cart:active,
.ec-productRole__btn .ec-blockBtn--action.add-cart:focus,
.ec-productRole__btn .ec-blockBtn--cancel,
.ec-productRole__btn .ec-blockBtn--cancel:hover,
.ec-productRole__btn .ec-blockBtn--cancel:active,
.ec-productRole__btn .ec-blockBtn--cancel:focus {
    width: 100%    
}

/* 商品詳細 */
.detailsDl p {
    margin-bottom: 0.5rem
}

.detailsDl .detailsDt::after {
    content: " : ";
}

.add-cart {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ec-layoutRole__mainBottom {
    margin-top: 2rem;
}

/* サイドメニュー */
.drawer-menu .drawer-search form {
    margin-top: 0 !important;
    margin-bottom: 1rem;
}

/* 会員登録（入力） */
.mailAttention {
    color: #c00;
    padding-left: 2rem;
    list-style: disc;
}

/* ログイン */
.pwAttention {
    color: #c00;
    border: solid 1px #c00;
    background: #ffc;
    margin: var(--padding);
    padding: 1rem;
}

@media screen and (max-width: 767px) {
    .pwAttention {
        font-size: 1.2rem;
    }
}

/* カテゴリーヘッダーの文字サイズ */
.ec-categoryHeader h1 {
    font-size: clamp(2rem, 3vw, 3rem);
}

/* トップページ、一覧ペーサムネイル画像 */
.item-list-item .image img {
    /*aspect-ratio: auto;*/
    aspect-ratio: 16 / 18;
}

.ec-shelfGrid .ec-shelfGrid__item .ec-shelfGrid__item-image img {
    aspect-ratio: auto;
}

/* FAQページ調整 */
.faqContent .ec-borderedDefs [class^="fa-"] {
    position: relative;
    top: 0.7rem;
    flex-shrink: 0
}

.faqContent .ec-borderedDefs dt,
.faqContent .ec-borderedDefs dd {
    display: flex;
    align-items: start !important;
    gap: 1rem;
    margin: 0 0 1rem 0;
    padding: 0;
    font-weight: var(--body-font-weight-normal);
    width: 100%;
}

/* 商品詳細画像のサムネイル化（および三点リーダー非表示） */
@media screen and (max-width: 767px) {
    .pv-thumbnail {
        display: grid !important;
        grid-template-columns: repeat(6, 1fr) !important;
        margin-top: 10px;
        /*padding: 0 var(--padding);*/
    }
    .swiper-pagination {
        display: none !important;
    }
}

/* スマホ・タブレットはsubheader非表示（表示内容なしの前提） */
@media screen and (max-width: 992px) {
    .subheader {
        display: none;
    }
}

/* topページレイアウト調整 */
@media screen and (max-width: 992px) {
    .mv2::after {
        content: none !important;
    }
    .mv2 {
        margin-bottom: 0 !important;
    }
}

/* Recommend コメント非表示 */
.recommenditemsslide .comment {
    display: none;
}

/* googleログイン調整 */
@media screen and (max-width: 767px) {
    .gal42-block {
        margin-bottom: 20px;
    }
}

/* Main Visualブロック内共通 */
.swiper-slide .left .title {
    font-size: 1.5rem !important;
    font-weight: bold;
}

.swiper-slide .left p {
    font-size: 1.2rem;
    margin-top: 8px !important;
}

/* footer調整 */
@media screen and (max-width: 992px) {
    .footer .footer-top .footer-top-inner .title {
        margin: 3rem 0 1rem 0 !important;
    }
}

/* pickup画像サイズ調整 */
@media only screen and (min-width: 768px) {
    .pickup .pickup-content .pickup-slide .image {
        position: static;
    }
}

/* INFO */
@media screen and (max-width: 992px) {
    .news .news-content .btn-arrow {
        margin-top: 0.2rem !important;
    }
        
    .news .news-content .date {
        margin: 0 0 0.2rem 0 !important;
    }
    
    .news .news-content ul {
        row-gap: 20px;
    }
}

/* 関連カテゴリ、商品コード 非表示 */
.ec-productRole__code-category {
    display: none !important;
}

/* Youtube */
.youtube .text {
    justify-content: end;
    padding-bottom: 30px;
}

/* 一覧商品名、価格 */
.ec-shelfGrid__item .prodName {
    letter-spacing: 0.1rem;
}

.ec-shelfGrid__item .prodName,
.ec-shelfGrid__item .price02-default {
    font-size: 1.3rem;    
}