/*
  itemsearch.css : itemsearch ページ専用CSS。style.css の後に読み込む。
  対象ページの body 最上位に id="karte-itemsearch-slider" を付与すること。
*/

/*
  以下は旧ローカル style.css の基底スタイル。
  本番 style.css を diamond 用スタイルに同期したため、itemsearch ページ表示維持のためここへ移行。
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans JP', sans-serif;
}

body {
    background-color: #fff;
    color: #333;
}

.header {
    display: flex;
    align-items: center;
    padding: 24px 20px;
    background-color: #fff;
}

.p-logo__img {
    width: 212px;
}



.logo img {
    height: 30px;
}

.banner {
    position: relative;
    width: 100%;
    background-color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fv {
    width: 100%;
    background-color: #7b1613;
    color: white;
    text-align: center;
    line-height: 1.1;
}

.fv picture {
    padding: 25px 0;
    max-width: 1200px;
    display: block;
    margin: 0 auto;
}

.container {
    width: 90%;
    max-width: 954px;
    margin: 0 auto 60px;
}

.container>.section-title.txt-left {
    width: 100%;
    max-width: 100%;
}

.txt-right {
    text-align: right;
}

.link-text {
    color: #41A0ff;
    text-decoration: underline;
}

.sale-title {
    font-size: 99px;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0 0 2px 0;
}

.sale-subtitle {
    font-size: 24px;
    font-weight: 400;
    margin: 0 0 5px 0;
}

.sale-discount {
    font-size: 38px;
    font-weight: 700;
    margin: 5px 0;
}

.sale-dates {
    font-size: 29px;
    font-weight: 400;
    margin: 5px 0 0 0;
}

.banner-items {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.7;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.btn-section {
    text-align: left;
    position: relative;
    max-width: 554px;
    margin: 0 auto;
}

.btn-section>p {
    font-size: 20px;
    margin-bottom: 20px;
}

.btn-section.line>.section-title {
    font-weight: bold;
}

.hero {
    margin: 15px auto;
    width: 90%;
    max-width: 954px;
}

.hero .c-text-s {
    margin-top: 10px;
}

.coupon-section {
    text-align: center;
    padding: 20px 0 0;
    position: relative;
}

.coupon-text {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
}

.coupon-text::before,
.coupon-text::after {
    content: " ";
    position: absolute;
    width: 2px;
    height: 40px;
    background: #4ea856;
    bottom: 0;
}

.coupon-text::before {
    transform: rotate(-20deg);
    left: -20px;
}

.coupon-text::after {
    transform: rotate(20deg);
    right: -20px;
}

.coupon-section a {
    line-height: 1.5;
}

.coupon-section .c-text-s {
    font-size: 18px;
}

.coupon-section .c-text-m {
    font-size: 22px;
}

.coupon-section .c-text-l {
    font-size: 32px;
    padding: 0 5px;
    letter-spacing: 2px;
}

._karte-g__bZla_ ._wrapper__bZla_ {
    margin-bottom: 0 !important;
}

.hero .c-text-s {
    font-size: 20px;
}

.section-subtitle {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.section-title.txt-left {
    font-weight: bold;
    text-align: left;
    margin: 60px auto 20px;
    font-size: 30px;
    max-width: 954px;
    width: 90%;
}

.line-button {
    position: relative;
    display: block;
    /* align-items/justify-contentはblockでは効かないので削除 */
    background-color: #4ea856;
    color: white;
    padding: 26px 30px;
    text-decoration: none;
    font-size: 27px;
    border-radius: 3px;
    width: 558px;
    margin: 0 auto;
    text-align: center;
}

.arrow-wrap {
    position: absolute;
    right: 14px;
    bottom: 45%;
    height: 10px;
    margin-top: -5px;
    display: flex;
    align-items: center;
}

.arrow {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 1px;
    border-radius: 9999px;
    background-color: #ffffff;
}

.arrow::before {
    content: "";
    position: absolute;
    top: calc(50% - 0.5px);
    right: 0;
    width: 13px;
    height: 1px;
    border-radius: 9999px;
    background-color: #ffffff;
    transform: rotate(45deg);
    transform-origin: calc(100% - 0.5px) 50%;
}

.tab-section {
    display: flex;
    margin: 30px auto;
}

.tab-section.diamond {
    margin-bottom: 15px;
}

.tab {
    font-size: 27px;
    flex: 1;
    padding: 3px;
    text-align: center;
    background-color: #fff;
    border: 1px solid #d7bb69;
    color: #d7bb69;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.itemsearch-fashion-secondary .tab {
    color: #000;
}

.tab.active {
    background-color: #d7bb69;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* itemsearch-fashion tabs */
.itemsearch-fashion-tab.tab-section {
    gap: 10px;
    margin: 30px auto;
}

.itemsearch-fashion-tab .tab {
    flex: 1;
    min-width: 0;
    height: auto;
    padding: 10px 5px;
    font-size: 16px;
    font-weight: bold;
    color: #000;
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 50px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.itemsearch-fashion-tab .tab.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.tab-content .c-text-s {
    font-size: 18px;
    margin-bottom: 16px;
}

.gender-button,
.category-button,
.brand-grid.recommend .brand-item {
    border: 1px solid #9b895a;
    color: #9b895a;
}

.brand-grid.recommend.center-item {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
}

.gender-button a,
.recommend .brand-item a {
    color: #9b895a;
}

.gender-button a:hover,
.sale-item a:hover,
.shop-item a:hover,
.recommend .brand-item a:hover {
    opacity: 0.7;
}

.brand-grid,
.product-grid,
.sale-grid,
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0 auto 65px;
    place-content: center;
    text-align: center;
    font-size: 12px;
}

.sale-grid {
    grid-template-columns: 1fr;
    height: auto;
    border: none;
    gap: 20px;
    font-size: 17px;
    width: 50%;
    max-width: 558px;
    margin-bottom: 30px;
}

.link-wrapper {
    margin: 0 auto 30px;
}

.recommend .brand-item a {
    transition: all .2s ease;
    /* durationを付与 */
    font-size: 16px;
}

.link-btn {
    border: 1px solid #e56667;
    border-radius: 5px;
    margin-bottom: 20px;
}

.link-btn a {
    position: relative;
    padding: 20px 40px;
    font-size: 27px;
    color: #e56667;
    display: block;
}

.link-btn a .arrow {
    background-color: #e56667;
    height: 2px;
}

.link-btn a .arrow::before {
    background-color: #e56667;
    height: 2px;
    top: calc(50% - 1px);
}

.link-btn .sub-text {
    display: block;
    font-size: 18px;
}

.sale-name {
    padding: 20px;
}

.brand-image,
.product-image {
    padding: 15px 10px 10px;
    overflow: hidden;
}

.recommend .brand-name,
.product-name {
    height: calc(222px - 158px);
}

#tab-content-01 .brand-name,
#tab-content-02 .brand-name {
    height: auto;
}

.brand-image,
.brand-name,
.product-image,
.product-name {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-item a:hover {
    opacity: 0.7;
}

.section-title {
    text-align: center;
    margin: 40px 0 20px;
    font-size: 26px;
    font-weight: normal;
}

.itemsearch-fashion .section-title {
    text-align: left;
}

.gender-section,
.category-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 70px;
    padding: 0 20px;
}

.gender-button,
.category-button {
    width: calc(50% - 5px);
    min-width: 282px;
    padding: 10px 0 14px;
    text-align: center;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 23px;
}

.s-lh {
    line-height: 1.3;
}

.sp-br {
    display: none;
}

/* >= 768px */
@media (min-width: 768px) {

    .brand-grid,
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .gender-button,
    .category-button {
        width: auto;
    }
}

/* <= 767px */
@media (max-width: 767px) {

    .p-logo__img {
        width: 140px;
    }

    .sp-br {
        display: block;
    }

    .fv picture {
        padding: 0;
    }

    .brand-grid.recommend {
        grid-template-columns: repeat(2, 1fr);
    }

    .brand-grid.recommend.center-item {
        width: 100%;
    }

    .sale-title {
        font-size: 77px;
    }

    .sale-subtitle {
        font-size: 19px;
    }

    .sale-discount {
        font-size: 30px;
    }

    .sale-dates {
        font-size: 22px;
    }

    .tab {
        font-size: 17px;
        padding: 10px 4px;
    }

    #karte-itemsearch-slider {
        letter-spacing: -1px;
    }

    .line-button {
        font-size: 17px;
        padding: 14px;
        max-width: 450px;
        width: 100%;
    }

    .link-btn a {
        padding: 20px 15px;
        font-size: 16px;
    }

    .sale-grid {
        width: 90%;
    }

    .section-title {
        max-width: 90%;
        font-size: 24px;
        margin: 35px auto 20px;
    }

    .itemsearch-fashion .section-title {
        max-width: 100%;
    }

    .section-title.m-text {
        font-size: 20px;
    }

    .coupon-section {
        padding: 20px 0 0;
    }

    .coupon-section a {
        line-height: 1.5;
    }

    .coupon-text {
        font-size: 20px;
    }

    .coupon-text::before {
        width: 2px;
        height: 30px;
        left: -15px;
    }

    .coupon-text::after {
        width: 2px;
        height: 30px;
        right: -15px;
    }

    .coupon-section .c-text-s {
        font-size: 16px;
    }

    .coupon-section .c-text-m {
        font-size: 20px;
    }

    .coupon-section .c-text-l {
        font-size: 30px;
        padding: 0 5px;
        letter-spacing: 2px;
    }

    .btn-section.line>.section-title {
        text-align: left;
        margin: 35px 0 20px;
    }

}

.container_beige {
    background-color: #F6F4EF;
    width: 100%;
    max-width: 954px;
    margin: 0 auto 60px;
    padding: 0.5% 5%;
}

/* itemsearch ページ専用の差分 */

/* クーポン受け取りボタン（左:COUPONバッジ / 中央:テキスト / 右:丸い矢印） */
.line-button--coupon {
    display: flex;
    align-items: center;
    justify-content: center;
    /* バッジ・矢印（絶対配置）と重ならないよう左右対称の余白を確保し、テキストを中央維持 */
    background-color: #4EA856;
    padding: 22px 96px;
    width: 558px;
    max-width: 90%;
    box-sizing: border-box;
}

/* 中央のテキスト */
.line-button--coupon .line-button__text {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.3;
    text-align: center;
}

/* 左側のCOUPONバッジ（白背景画像） */
.line-button--coupon .coupon-badge {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    height: auto;
    border-radius: 3px;
}

/* 右側の丸い矢印（白丸 + グリーンのシェブロン） */
.line-button--coupon .line-button__circle-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #fff;
}

.line-button--coupon .line-button__circle-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 46%;
    width: 7px;
    height: 7px;
    border-top: 2px solid #4EA856;
    border-right: 2px solid #4EA856;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* 検索方法セクションの見出し（左右に破線の装飾） */
.section-title--deco {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #9b895a;
    font-weight: bold;
}

.section-title--deco::before,
.section-title--deco::after {
    content: "";
    width: 64px;
    border-top: 2px dashed #9b895a;
}

/* 検索方法セクションのタブ（角丸のピル型） */
.tab-section--pill {
    gap: 8px;
}

.tab-section--pill .tab {
    flex: 1;
    padding: 12px 5px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    background-color: #ededed;
    color: #333;
}

.tab-section--pill .tab.active {
    background-color: #8c7c4d;
    color: #fff;
}

/* ブランド一覧：画像全面＋ブランド名を白文字でオーバーレイ（2カラム） */
.brand-grid--overlay {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

.brand-grid--overlay .brand-item a {
    position: relative;
    display: block;
}

.brand-grid--overlay .brand-image {
    padding: 0;
}

.brand-grid--overlay .brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.brand-grid--overlay .brand-name {
    position: absolute;
    inset: 0;
    height: auto;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* グレーアウトを重ねるタイプ（白文字の視認性を確保） */
.brand-grid--overlay-dark .brand-name {
    background-color: rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease;
}

.brand-grid--overlay-dark .brand-item a:hover .brand-name {
    background-color: rgba(0, 0, 0, 0.15);
}

/* 店舗一覧：画像全面＋店名を白文字でオーバーレイ＋グレーアウト（2カラム） */
.shop-grid--overlay {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

.shop-grid--overlay .shop-item a {
    position: relative;
    display: block;
}

.shop-grid--overlay .shop-image {
    padding: 0;
    aspect-ratio: 7 / 5;
    overflow: hidden;
}

.shop-grid--overlay .shop-logo {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
}

.shop-grid--overlay .shop-name {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.shop-grid--overlay-dark .shop-name {
    background-color: rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s ease;
}

.shop-grid--overlay-dark .shop-item a:hover .shop-name {
    background-color: rgba(0, 0, 0, 0.15);
}

/* おすすめブランド：ゴールド枠の2列テーブル風グリッド */
.brand-grid--table {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background-color: #c9bd93;
    border: 1px solid #c9bd93;
    margin: 20px auto 24px;
}

/* 各セクションの余白を統一（ベージュ背景の上下を均等に） */
.container_beige {
    padding: 24px 5%;
}

.brand-grid.recommend.brand-grid--table .brand-item {
    border: none;
    background-color: #fff;
}

/* ブランド一覧を見るリンクを中央寄せ */
.brand-grid--table+.link-txt {
    text-align: center;
}

.brand-grid--table .brand-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 5px;
    color: #9b895a;
}

.brand-grid--table .brand-name {
    height: auto;
    font-size: 16px;
}

/* PC（>= 768px）は4列表示 */
@media (min-width: 768px) {
    .brand-grid--overlay {
        grid-template-columns: repeat(4, 1fr);
    }

    .brand-grid--overlay .brand-name {
        font-size: 16px;
    }

    /* 店舗は3列（6店舗が2行で収まる） */
    .shop-grid--overlay {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 価格帯・商品ランクタブのリンクボタン（白背景・ゴールド枠・左寄せ・丸い矢印） */
#tab-content-01 .link-btn,
#tab-content-02 .link-btn {
    border: 1px solid #c9bd93;
    border-radius: 4px;
    margin-bottom: 16px;
}

#tab-content-01 .link-btn a,
#tab-content-02 .link-btn a {
    padding: 18px 60px 18px 24px;
    font-size: 17px;
    color: #8a7a4f;
    text-align: left;
    line-height: 1.4;
}

#tab-content-01 .link-btn .sub-text,
#tab-content-02 .link-btn .sub-text {
    font-size: 14px;
}

/* 右端の丸いゴールド矢印（白いシェブロン） */
#tab-content-01 .link-btn .arrow-wrap,
#tab-content-02 .link-btn .arrow-wrap {
    right: 20px;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #8a7a4f;
    justify-content: center;
}

#tab-content-01 .link-btn .arrow,
#tab-content-02 .link-btn .arrow {
    width: 7px;
    height: 7px;
    background-color: transparent;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    border-radius: 0;
    transform: rotate(45deg);
    margin-left: -2px;
}

#tab-content-01 .link-btn .arrow::before,
#tab-content-02 .link-btn .arrow::before {
    content: none;
}

/* スマホ表示（<= 767px） */
@media (max-width: 767px) {
    .line-button--coupon {
        padding: 16px 80px;
        width: 100%;
        max-width: 450px;
    }

    .line-button--coupon .line-button__text {
        font-size: 16px;
    }

    .line-button--coupon .coupon-badge {
        left: 12px;
        width: 52px;
    }

    .line-button--coupon .line-button__circle-arrow {
        right: 12px;
        width: 24px;
        height: 24px;
    }

    /* 詳細度を上げて m-text の20px指定を上書きし、1行に収める */
    .section-title.m-text.section-title--deco {
        gap: 8px;
        font-size: 15px;
        max-width: 100%;
        white-space: nowrap;
    }

    .section-title--deco::before,
    .section-title--deco::after {
        width: 28px;
    }

    .tab-section--pill .tab {
        font-size: 14px;
        padding: 10px 4px;
    }

    .brand-grid--overlay .brand-name {
        font-size: 15px;
    }
}