.brandinfo_section .fshoplist-target--ttl::before,
.brandinfo_section .fshoplist-target--ttl::after {
    right: 30px;
    background: #fff;
}
#time-to-sell {
    padding: 0 4cqw;
}

#time-to-sell .acordion-list .number_list {
    font-size: 24px;
    padding: 4px 8px;
    border-radius: 5px;
    margin-right: 10px;
    display: inline-block;
    background-color: #e60012;
    color: #fff;
}

@media (max-width: 767px) {
    #time-to-sell .acordion-list .number_list {
        font-size: 14px;
        margin-right: 6px;
        padding: 3px 7px;
    }
}
#time-to-sell h2 {
    position: relative;
}

.time_to_sell_acc_wrap {
    cursor: pointer;
}

.time_to_sell_acc_wrap h2::after {
    content: "\002B";
    font-weight: 300;
    transition: transform 0.3s ease;
    position: absolute;
    top: 18%;
    bottom: 0;
    margin: auto;
    right: 5%;
    line-height: 1;
    font-size: min(3.6vw, 40px);
}

.time_to_sell_acc_wrap.open h2::after {
    content: "\2212";
}

@media (max-width: 767px) {
    .time_to_sell_acc_wrap h2::after {
        font-size: 9vw;
        top: 25%;
    }

    .time_to_sell_acc_content {
        width: 94%;
        margin: auto;
    }

    .time-to-sell__reason__content03 p {
        padding: 0 6% 6%;
    }
}
#enhanced-buyback .enhanced-buyback-text {
    margin-right: auto;
}

#enhanced-buyback .enhanced-buyback-container {
    padding: 0cqw 4cqw;
}

.bnd_recommend_model .bnd_model_accordion .bnd_model_accordion__item {
    background-color: #fff;
    border-radius: 24px;
    margin-top: 5%;
}

.bnd_recommend_model .bnd_model_accordion .bnd_model_accordion__trigger {
    background: #f2f2f2;
    border-radius: 36px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
    padding: 2% 9px;
}

.bnd_recommend_model .bnd_model_accordion .bnd_model_accordion__trigger:hover {
    background-color: #e8e8e8;
}

.bnd_recommend_model .bnd_model_accordion .bnd_model_accordion__trigger h3 {
    padding-right: 5%;
}

.bnd-model-icon {
    width: 13%;
    min-width: 50px;
    max-width: 70px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin-right: 5%;
}

.bnd_recommend_model .bnd_model_accordion .bnd_model_accordion__content {
    background: #fff;
    padding: 16px 24px;
    border-radius: 0 0 24px 24px;
}

.bnd_recommend_model .bnd_model_accordion .bnd_model_accordion__content dt {
    font-weight: 500;
}
/* 全体のコンテナ */
.recommend-models-container {
    padding: 20px;
    background-color: #f2f2f2;
    margin-top: 5%;
    border-radius: 24px;
}

/* 各アイテムのスタイル */
.recommend-item {
    margin-bottom: 20px;
    border-radius: 10px;
}

.item-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

/* 番号のスタイル */
.item-number {
    background-color: #e60012;
    /* 赤色 */
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: stretch;
    margin-right: 10px;
    flex-shrink: 0;
}

.item-title {
    margin: 0;
    font-size: var(--font-l);
    color: #000;
    font-weight: 700;
}

.item-description {
    margin: 0 0 10px 0;
    font-size: var(--font-l);
    color: #000;
}

.item-button {
    display: block;
    background-color: #e60012;
    color: #ffffff;
    text-decoration: none;
    padding: 15px;
    text-align: center;
    font-size: var(--font-l);
    font-weight: bold;
    border-radius: 30px;
    margin-bottom: 30px;
    position: relative;
    transition: background-color 0.3s;
}

/* ボタンの矢印 */
.item-button::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 50%;
    background-image: url(/brand/wp-content/themes/otakaraya/assets/img/common/icon_arrow_white01.png);
    background-size: 18px;
    background-position: center;
    background-repeat: no-repeat;
}

.item-button:hover {
    background-color: #c00024;
}

/* 下部リンクエリア */
.other-models-link {
    text-align: center;
    margin-top: 30px;
}

.other-models-link p {
    margin: 0 0 15px 0;
    font-weight: bold;
    line-height: 1.7;
}

/* その他モデル一覧ボタン */
.other-models-button {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 30px;
    padding: 15px;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    transition: background-color 0.3s;
}

/* プラスアイコン */
.other-models-button::after {
    content: "+";
    font-size: 24px;
    font-weight: normal;
    margin-left: 10px;
    color: #777;
}

.other-models-button:hover {
    background-color: #f0f0f0;
}

/* ボタンを配置するコンテナ */
.button-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* PCでは2列 */
    gap: 12px;
    padding: 10px 0;
}

/* ボタンの基本スタイル */
.bnd_model_accordion__content .button-grid-container .link-button {
    display: flex;
    align-items: center;
    /* テキストとアイコンを垂直方向中央に */
    justify-content: space-between;
    /* テキストを左、アイコンを右に配置 */
    padding: 16px 5%;
    background-color: #ffffff;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    color: #000;
    transition:
        background-color 0.2s,
        box-shadow 0.2s;
    min-height: 85px;
    /* ボタンの高さを確保 */
}

/* ホバー時の効果 */
.link-button:hover {
    background-color: #f9f9f9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* テキスト部分のコンテナ */
.button-text {
    flex-grow: 1;
    /* 残りのスペースを埋める */
}

/* ブランド名のスタイル */
.button-text .brand-name {
    font-size: var(--font-s);
    color: #888;
    margin-bottom: 4px;
    display: block;
    /* 改行させるため */
}

@media (max-width: 767px) {
    .button-text .brand-name {
        font-size: 2.3vw;
    }
}

/* モデル名のスタイル */
.button-text .model-name {
    font-size: var(--font-l);
    font-weight: bold;
    color: #000;
    line-height: 1.3;
}

/* 赤い丸の矢印アイコン */
.arrow-icon {
    /* ご提示の画像パスに合わせてください */
    background-image: url(/brand/wp-content/themes/otakaraya/assets/img/common/icon_arrow_red01.webp);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    flex-shrink: 0;
    /* コンテナが縮んでもアイコンサイズを維持 */
    margin-left: 10px;
    /* テキストとの間に余白 */
}

/* スマートフォン向けの調整 */

.recommend-models-container .bnd_model_accordion__item {
    border-radius: 0px;
}

.recommend-models-container .bnd_model_accordion__trigger {
    border-radius: 24px;
    background: #fff;
    border: 1px solid #545454;
}

.recommend-models-container .item-title {
    font-weight: 900;
    text-align: center;
}

.recommend-models-container .item-header {
    margin-bottom: 2%;
}

.recommend-models-container .bnd_model_accordion {
    margin-top: 5%;
}

.recommend-models-container .bnd_model_accordion__content {
    padding: 3% 0% 10%;
}
/* 人気素材セクション (デザイン更新) */
#popular-materials {
    margin-top: 40px;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 767px) {
    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.material-card {
    border: 2px solid #e60012;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.material-card__image {
    aspect-ratio: 1 / 1;
    margin-bottom: 10px;
}

.material-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.material-card__footer {
    display: flex;
    justify-content: center;
    /* 中央揃えに変更 */
    align-items: center;
    position: relative;
    /* アイコンを配置する基準 */
}

.material-card__name {
    margin: 0;
    font-size: var(--font-l);
    font-weight: bold;
    text-align: center;
}

.material-card__popup-trigger {
    border: 2px solid #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    transition: transform 0.2s;
    position: absolute;
    right: 0;
}

@media (min-width: 768px) {
    .material-card__popup-trigger {
        right: -5px;
        top: 0px;
        width: 23px;
        height: 23px;
    }

    .material-card__name {
        font-size: var(--font-s);
    }
}

.material-card__popup-trigger img {
    width: 100%;
    height: 100%;
    display: block;
    /* 画像下の余分な隙間を削除 */
}

.material-card__popup-trigger:hover {
    transform: scale(1.1);
}

/* モーダル（ポップアップ）のスタイル (変更なし) */
#material-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#material-modal-content {
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

#material-modal-close {
    position: absolute;
    top: 5%;
    right: 4%;
    font-size: 28px;
    color: #fff;
}

#material-modal-content h3 {
    font-size: var(--font-xl);
    color: var(--theme_color);
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 700;
}

#material-modal-content p {
    font-size: var(--font-m);
    line-height: 1.7;
    margin-bottom: 20px;
}

.modal-lines-container h4 {
    font-size: var(--font-m);
    font-weight: 700;
    margin-bottom: 10px;
    border-left: 4px solid #e60012;
    padding-left: 8px;
}

#modal-lines-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    font-size: var(--font-s);
}

#modal-lines-list span {
    background-color: #f2f2f2;
    padding: 5px 10px;
    border-radius: 5px;
}

#modal-link.item-button {
    width: 100%;
    box-sizing: border-box;
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
    .materials-grid {
        gap: 15px;
    }

    .material-card__name {
        font-size: 3.5vw;
        /* スマホでは画面幅に合わせる */
    }

    #material-modal-content {
        padding: 20px;
    }

    #material-modal-close {
        top: 5px;
        right: 10px;
    }
}

/* --- ここから追加・修正するスタイル --- */

/* モーダルコンテンツの基本スタイル */
#material-modal-content {
    padding: 0;
    border-radius: 8px;
    max-width: 500px;
}

/* モーダルヘッダー */
.modal-header {
    position: relative;
    text-align: center;
}

/* モーダルヘッダーのタイトル */
.modal-header .brand-title {
    color: #333;
    font-size: 14px;
    font-weight: normal;
    margin: 0;
}

/* 閉じるボタン */
#material-modal-close {
    position: absolute;
    top: -45px;
    right: 0%;
    font-size: 28px;
    color: #fff;
}

/* モーダルボディ */
.modal-body {
    padding: 5% 20px 0%;
}

#material-modal-content .modal-body {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    max-width: 700px;
    width: 100%;
    max-height: 500px;
    overflow: auto;
    background: white;
    border-radius: 8px;
}

/* モーダル内のタイトル（例: モノグラム） */
#material-modal-content h3 {
    font-size: var(--font-xl);
    /* フォントサイズを調整 */
    font-weight: bold;
    color: #e60012;
    /* 赤色に変更 */
    text-align: center;
    /* 左揃えに変更 */
    margin-bottom: 3%;
}

/* 説明文 */
#material-modal-content #modal-description {
    font-size: var(--font-l);

    line-height: 1.3;
    margin-bottom: 14px;
    border-bottom: 1px solid #000;
    padding-bottom: 8px;
}

/* ライン一覧のコンテナ */
.modal-lines-container {
    margin-bottom: 5%;
}

/* ライン一覧の小見出し */
.modal-lines-container h4 {
    font-size: 16px;
    font-weight: bold;
    border-left: none;
    /* 左のボーダーを削除 */
    padding-left: 0;
    margin-bottom: 8px;
}

/* ライン一覧の各項目 */
#modal-lines-list {
    display: block;
    /* フレックスボックスを解除 */
    font-size: 15px;
    margin-bottom: 0;
}

#modal-lines-list span {
    display: block;
    background-color: transparent;
    padding: 2% 0;
    border-radius: 0;
    font-size: var(--font-m);

    color: #000;
    line-height: 1.2;
}

#modal-lines-list span span {
    border-bottom: none;
    color: #a3a3a3;
    padding: 0px 0;
}

/* 英語表記のスタイル */
.line-en {
    display: block;
    font-size: 12px;
    color: #888;
}

/* リンクボタン */
#modal-link.item-button {
    font-size: 16px;
    margin-top: 5%;
}

/* --- ここまで --- */
#brand-section2 .container {
    padding: 0 4cqw;
}

.brandinfo_section .fshoplist-target--ttl::before,
.brandinfo_section .fshoplist-target--ttl::after {
    right: 30px;
    background: #fff;
}

.points_content_text_link {
    text-align: right;
    font-size: 16px;
    margin-top: 1rem;
    font-weight: 700;
}

.points_content_text_link a,
.points_content_text_link a:link,
.points_content_text_link a:visited {
    color: #d82300;
    text-decoration: underline;
}

.brandinfo_section .fshoplist-target__list {
    padding: 0;
}

.brandinfo_section
    .brand_about_repeat_parent_wrap
    .high_price_purchase_points_content_lead {
    display: none;
    margin-top: 1rem;
    font-size: 1rem;
}

.brandinfo_section
    .brand_about_repeat_parent_wrap.open
    .high_price_purchase_points_content_lead {
    display: block;
}

.brandinfo_section .fshoplist-target--ttl::before,
.brandinfo_section .fshoplist-target--ttl::after {
    right: 30px;
    background: #fff;
}

.brand_about_repeat_parent_wrap .fshoplist-target--ttl::before,
.brand_about_repeat_parent_wrap .fshoplist-target--ttl::after {
    background: #d82300;
}

.brandinfo_section .brand_about_repeat_parent_wrap {
    margin: 1rem 0;
}

.brandinfo_section .fshoplist-target--ttl {
    padding: 10px 15px;
}

.brand_about_repeat_parent_wrap .horizonlist {
    margin: 0;
    padding: 15px;
}

.brandinfo_section .titleSub {
    padding-right: 30px;
}

.brandinfo_section .brandinfo__main {
    margin-top: 1rem;
}

.brandinfo_section .brandinfo__header__title {
    padding: 0px 15px;
}

.brandinfo_section .brandinfo__body {
    padding: 1rem 1rem 1rem;
    background: #fcf1db;
}

.brandinfo_section .brandinfo__body__text {
    margin-top: 0rem;
}

.brandinfo_section .brandinfo__body__img {
    margin-bottom: 1em;
}

.brandinfo_section .brandinfo_red_repeat .brandinfo__body__text::after,
.brandinfo_red_repeat .brandinfo__body__text::after {
    background: none;
}

.brand_about_repeat_parent_wrap .horizonlist--text {
    word-break: break-all;
}

.brandinfo_section .fshoplist-target__list {
    cursor: auto;
}

.brandinfo_section .fshoplist-target--ttl {
    cursor: pointer;
}

.brandinfo_section .fshoplist-target--ttl::before,
.brandinfo_section .fshoplist-target--ttl::after {
    top: 50%;
}

.fshoplist-target--item.existence_img .horizonlist--text {
    width: 100%;
    max-width: 100%;
}

.brandinfo_section .is_table .horizonlist--text h4 {
    width: 30%;
    padding: 0px 10px;
    font-size: 15px;
}

.brandinfo_section .is_table .horizonlist--text .points_content_text {
    width: 70%;
    border-left: 1px solid #b8b8b8;
    padding: 10px;
}

.brandinfo_section .is_table .horizonlist--text {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
}

.is_table .horizonlist {
    padding: 0px 15px;
}

.is_table .horizonlist--text .titleH4 {
    margin-bottom: 0rem;
}

.is_table .horizonlist--link {
    border: 1px solid #b8b8b8;
    /* border-top: none; */
}

.is_table .fshoplist-target--ttl + .fshoplist-target--item .horizonlist--link {
    border-top: 1px solid #b8b8b8;
}

.brandinfo_section .fshoplist-target__list.is_table {
    /* padding-bottom: 1rem; */
}

/* Styles for modellist section */
.modellist_now_and_out_flex {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    width: 100%;
    margin: 0rem auto 4rem;
    align-items: flex-start;
    justify-content: space-between;
}

.modellist_nowbox_wrap {
    position: relative;
    display: block;
    width: calc(50% - 20px);
    margin: 0px 0px 40px;
}

.modellist_nowbox {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    border-radius: 24px;
    padding: 16px 16px 24px;
    margin: 2rem auto 0rem;
    background-color: #f2f2f2;
    font-size: 14px;
}

.modellist_nowbox_wrap div {
    width: 100%;
    position: relative;
    display: block;
    line-height: 1.2;
    margin-top: 16px;
    word-break: break-all;
}

.modellist_nowbox div.modellist_now_left {
    display: none;
}

.modellist_now_openbtn_wrap {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    margin-top: 20px !important;
}

.modellist_now_openbtn {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 248px !important;
    height: 28px !important;
    line-height: 28px !important;
    background-color: #d82300;
    border-radius: 24px;
    text-align: center;
    font-size: 0.875rem;
    color: #ffffff;
    margin: 0px auto;
    cursor: pointer;
}

.modellist_now_openbtn:hover {
    opacity: 0.8;
}

.modellist_now_tilte {
    font-size: 18px;
    font-weight: 700;
    margin-top: 20px !important;
    margin-bottom: 10px;
    width: 100% !important;
    border-bottom: 2px solid #d82300;
    color: #d82300;
}

@media (max-width: 767px) {
    .brandinfo_section .brandinfo__header__title {
        padding: 0.5rem 45px;
    }

    .brandinfo_section .fshoplist-target--ttl::before,
    .brandinfo_section .fshoplist-target--ttl::after {
        right: 15px;
    }

    .brandinfo_section .fshoplist-target--ttl {
        padding: 10px 18px;
    }

    .brand_about_repeat_parent_wrap .horizonnumblist .horizonlist--img {
        margin-right: 10px;
        margin-bottom: 10px;
        width: 100%;
    }

    .brand_about_repeat_parent_wrap .horizonlist--link {
        display: flex;
        align-items: center;
    }

    .brand_about_repeat_parent_wrap .horizonlist--text {
        max-width: 100%;
        width: 100%;
    }

    .brand_about_repeat_parent_wrap .horizonlist--text .titleH4 {
        margin-bottom: 4rem;
    }

    .brand_about_repeat_parent_wrap .fshoplist-target--item {
        padding: 0 10px;
    }

    .brand_about_repeat_parent_wrap .sp_text_wrap {
        display: flex;
    }

    .is_table .horizonlist--text .titleH4 {
        margin-bottom: 0rem;
    }

    .brandinfo_section .is_table .horizonlist--text {
        flex-direction: column;
    }

    .brandinfo_section .is_table .horizonlist--text .points_content_text {
        width: 90%;
        border-left: none;
        border-top: none;
    }

    .brandinfo_section .is_table .horizonlist--text h4 {
        width: 100%;
        padding: 10px 10px;
        font-size: 15px;
        text-align: center;
    }

    /* Styles for modellist section */
    .modellist_nowbox_wrap {
        width: 100%;
        margin: 0px 0px 40px;
    }

    .modellist_nowbox {
        font-size: 12px;
    }

    .modellist_now_tilte {
        font-size: 14px;
    }

    .modellist_nowbox_wrap div {
        width: 100%;
    }
}

.brandinfo_section
    .fshoplist-target--ttl.high_price_purchase_points_content_lead::before,
.brandinfo_section
    .fshoplist-target--ttl.high_price_purchase_points_content_lead::after {
    display: none;
}
