/* ==========================================================
   RSN Components — rsn-components.css
   コーディングガイド 02_coding-guide.md 準拠
   ========================================================== */

/* ==========================================================
   0. ユーティリティ
   ========================================================== */
.rsn-u-pc-only {
    display: none !important;
}

.rsn-u-sp-only {
    display: block !important;
}

@media screen and (min-width: 641px) {
    .rsn-u-pc-only {
        display: block !important;
    }

    .rsn-u-sp-only {
        display: none !important;
    }
}

.rsn-u-color-blue {
    color: #0051BF !important;
}

.rsn-u-color-red {
    color: #DD0000 !important;
}

/* ==========================================================
   1. レイアウト
   ========================================================== */

/* グローバル横スクロール防止 */
html {
    overflow-x: hidden;
}

.rsn-l-section {
    padding: var(--rsn-section-gap) 0;
}

.rsn-l-section--gray {
    background: var(--rsn-bg-section);
}

.rsn-l-grid {
    display: grid;
    gap: var(--rsn-card-gap);
}

.rsn-l-grid--2col {
    grid-template-columns: 1fr;
}

@media screen and (min-width: 641px) {
    .rsn-l-grid--2col {
        grid-template-columns: repeat(2, 1fr);
    }
}

.rsn-l-grid--3col {
    grid-template-columns: 1fr;
}

@media screen and (min-width: 641px) {
    .rsn-l-grid--3col {
        grid-template-columns: repeat(3, 1fr);
    }
}

.rsn-l-grid--4col {
    grid-template-columns: repeat(2, 1fr);
}

@media screen and (min-width: 641px) {
    .rsn-l-grid--4col {
        grid-template-columns: repeat(4, 1fr);
    }
}

.rsn-l-grid--5col {
    grid-template-columns: repeat(2, 1fr);
}

@media screen and (min-width: 641px) {
    .rsn-l-grid--5col {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* SP: 横スクロール */
.rsn-l-grid--scroll-sp {
    display: flex;
    overflow-x: auto;
    gap: var(--rsn-card-gap);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

@media screen and (max-width: 640px) {
    .rsn-l-grid--scroll-sp {
        gap: 18px;
        /* SP: overriding default gap for recent models */
    }
}

@media screen and (min-width: 641px) {
    .rsn-l-grid--scroll-sp {
        display: grid;
        overflow-x: visible;
    }
}


/* ==========================================================
   2. キャンペーンバナー帯 — 03: L34-37
   ========================================================== */
.rsn-campaign-bar {
    background: #222;
    color: #AAA;
    text-align: center;
    padding: 0 16px;
    font-size: 12px;
    position: sticky;
    top: 0;
    z-index: 501;
    min-height: 30px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.rsn-campaign-bar__text {
    margin: 0;
    width: 100%;
}

/* PC: header__campaign-text として表示、帯は非表示 */
@media screen and (min-width: 641px) {
    .rsn-campaign-bar {
        display: none;
    }

    .rsn-page .rsn-header {
        top: 0;
    }
}


/* ==========================================================
   3. ヘッダー — 02: §3.1, §3.2
   ========================================================== */
.rsn-header {
    background: var(--rsn-header-bg);
    color: var(--rsn-white);
    position: sticky;
    top: 30px;
    z-index: 500;
}

.rsn-header__main {
    padding: 10px 0;
}

.rsn-header__main>.rsn-l-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rsn-space-md);
    flex-wrap: wrap;
}

@media screen and (min-width: 641px) {
    .rsn-header__main>.rsn-l-container {
        /* ヘッダー専用: PC広幅コンテナ */
        width: 90%;
        max-width: 1900px;
    }
}

.rsn-header__logo img {
    height: 24px;
    width: auto;
}

@media screen and (min-width: 641px) {
    .rsn-header__logo img {
        height: 50px;
    }
}

/* PC中央: 検索エリア */
.rsn-header__search {
    flex: 1;
    max-width: 620px;
    margin: 0 auto 0 10px;
}

/* 1400px以下: 検索エリアを次の行に移動 */
@media screen and (min-width: 641px) and (max-width: 1400px) {
    .rsn-header__search {
        flex-basis: 100%;
        max-width: none;
        order: 10;
        margin: 0 0 10px;
    }
}

.rsn-header__campaign-text {
    font-size: 14px;
    color: #aaa;
    letter-spacing: 1.12px;
    margin: 0 0 4px 2em;
}

/* 検索バー */
.rsn-search-bar {
    display: flex;
    padding: 1px;
    background: #fff;
    border-radius: 5px;
    border: 1px solid #DDD;
    box-sizing: border-box;
    width: 100%;
}

.rsn-search-bar__input {
    flex: 1;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 4px 12px 4px 36px;
    border: none;
    border-right: none;
    border-radius: 5px 0 0 5px;
    font-size: 14px;
    outline: none;
    background: url(../img/icons/search.svg) no-repeat 10px center;
    background-size: 18px 18px;
}

.rsn-search-bar__input::placeholder {
    color: var(--rsn-text-muted);
    font-size: var(--rsn-text-sm);
}

/* アイコン群 */
.rsn-header__icons {
    display: flex;
    align-items: center;
    gap: 6px;
    /* SP */
}

.rsn-header__icon-link {
    display: flex;
    flex-direction: column;
    /* SP */
    align-items: center;
    gap: 3px;
    padding: 0;
    /* SP */
    color: var(--rsn-white) !important;
    text-decoration: none !important;
    font-size: 10px;
    /* SP */
    font-weight: normal;
    /* SP */
    letter-spacing: 0.05em;
    white-space: nowrap;
    transition: var(--rsn-transition);
}

.rsn-header__icon-link>span {
    display: inline-block;
    vertical-align: middle;
    line-height: 1.2;
}

.rsn-header__icon-sub {
    display: block;
    font-size: 11px;
    font-weight: normal;
    letter-spacing: 0;
    margin-top: 2px;
    text-align: left;
}

@media screen and (min-width: 641px) {
    .rsn-header__icons {
        gap: 4px;
    }

    .rsn-header__icon-link {
        flex-direction: row;
        padding: 4px 12px;
        font-size: 14px;
        font-weight: var(--rsn-weight-bold);
        gap: 8px;
    }

    .rsn-header__icon-link.rsn-u-pc-only {
        display: flex !important;
    }
}

.rsn-header__icon-link img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

.rsn-header__icon-link:hover {
    opacity: 0.7;
}

/* ハンバーガーボタン */
.rsn-header__menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--rsn-white);
}

.rsn-header__menu-icon {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    padding: 7px 0;
}

.rsn-header__menu-icon span {
    display: block;
    width: 18px;
    /* SP */
    height: 2px;
    background: var(--rsn-white);
    transition: all 0.3s ease;
}

.rsn-header__menu-btn.is-open .rsn-header__menu-icon {
    background: #fff;
    border-radius: 3px;
}

.rsn-header__menu-btn.is-open .rsn-header__menu-icon span {
    background: var(--rsn-black);
}

.rsn-header__menu-btn.is-open .rsn-header__menu-icon span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.rsn-header__menu-btn.is-open .rsn-header__menu-icon span:nth-child(2) {
    opacity: 0;
}

.rsn-header__menu-btn.is-open .rsn-header__menu-icon span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.rsn-header__menu-text {
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 0.05em;
}


/* ==========================================================
   4. グローバルナビ — 02 §3.1 / 03 L45-50
   ========================================================== */
.rsn-gnav {
    background: var(--rsn-nav-bg-dark);
}

.rsn-gnav__list {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0 auto;
    padding: 0;
}

.rsn-gnav__item {
    position: relative;
}

.rsn-gnav__item+.rsn-gnav__item {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.rsn-gnav__link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 13px 16px;
    color: var(--rsn-white) !important;
    text-decoration: none !important;
    font-size: 15px;
    line-height: 20px;
    font-weight: var(--rsn-weight-normal);
    letter-spacing: 0.6px;
    white-space: nowrap;
    transition: var(--rsn-transition);
}

.rsn-gnav__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.rsn-gnav__link:hover {
    background: var(--rsn-nav-hover);
}

.rsn-gnav__item:hover .rsn-gnav__arrow {
    transform: rotate(90deg);
}

/* gnav dropdown */
.rsn-gnav__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--rsn-nav-bg-dark);
    z-index: 210;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.rsn-gnav__item:hover .rsn-gnav__dropdown {
    display: block;
}

.rsn-gnav__dropdown a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    color: var(--rsn-white) !important;
    text-decoration: none !important;
    font-size: var(--rsn-text-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--rsn-transition);
}

.rsn-gnav__dropdown a:last-child {
    border-bottom: none;
}

.rsn-gnav__dropdown a:hover {
    background: var(--rsn-nav-hover);
}

.rsn-gnav__dropdown-arrow {
    font-size: 10px;
    opacity: 0.6;
}


/* ==========================================================
   5. SPドロワー — 03: §7
   ========================================================== */
.rsn-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 100%;
    height: 100%;
    background: #f4f4f4;
    z-index: 400;
    padding-top: 110px;
    padding-bottom: 60px;
    box-sizing: border-box;
    overflow-y: auto;
    transition: right 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
}

.rsn-drawer.is-open {
    right: 0;
    visibility: visible;
}

.rsn-drawer__overlay {
    position: fixed;
    inset: 0;
    background: var(--rsn-overlay);
    z-index: 299;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.rsn-drawer__overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.rsn-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--rsn-space-md);
    background: var(--rsn-header-bg);
}

.rsn-drawer__logo img {
    height: 20px;
    filter: brightness(0) invert(1);
}

.rsn-drawer__close {
    background: none;
    border: none;
    color: var(--rsn-white);
    font-size: 20px;
    cursor: pointer;
}

.rsn-drawer__search,
.rsn-drawer__photo-cta {
    padding: 10px 16px;
}

/* 写真CTA */
.rsn-photo-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 14px;
    background: #79664E;
    color: var(--rsn-white) !important;
    text-decoration: none !important;
    font-weight: var(--rsn-weight-bold);
    font-size: 16px;
    border-radius: 6px;
}

/* 4ボタン 2×2 */
.rsn-drawer__quick {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 16px 16px;
}

.rsn-drawer__quick-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 16px 12px;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    text-decoration: none !important;
    color: #000 !important;
    font-size: 14px;
    font-weight: var(--rsn-weight-bold);
}

.rsn-drawer__quick-link img {
    width: 28px;
    height: 28px;
}

/* 電話リンク */
.rsn-drawer__tel {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 16px 20px;
    padding: 16px;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    text-decoration: none !important;
    text-align: left;
}

.rsn-drawer__tel-text {
    flex: 1;
}

.rsn-drawer__tel-title {
    font-size: 14px;
    font-weight: var(--rsn-weight-bold);
    color: #000;
    line-height: 1.4;
}

.rsn-drawer__tel-sub {
    display: block;
    font-size: 12px;
    color: #333;
    font-weight: normal;
    margin-top: 4px;
}

/* ドロワーナビ（アコーディオン） */
.rsn-drawer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rsn-drawer-nav__group {
    margin: 0 16px 20px;
    padding: 16px;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
}

.rsn-drawer-nav__title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 8px 16px;
    background: #FFF;
    border: none;
    font-size: 18px;
    font-weight: var(--rsn-weight-bold);
    color: #000;
    cursor: pointer;
    text-align: left;
}

.rsn-drawer-nav__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #E5E5E5;
    border-radius: 50%;
    font-size: 16px;
    color: #000;
    transition: var(--rsn-transition);
}

.rsn-drawer-nav__list {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rsn-drawer-nav__list.is-open {
    border-top: 1px dashed #DDD;
    display: block;
    margin-top: 10px;
}

.rsn-drawer-nav__list li {
    border-bottom: 1px dashed #DDD;
}

.rsn-drawer-nav__list li:last-child {
    border-bottom: none;
}

.rsn-drawer-nav__list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 16px;
    color: #000 !important;
    text-decoration: none !important;
    font-size: 16px;
}

.rsn-drawer-nav__arrow img {
    width: 20px;
    height: 20px;
}

.rsn-drawer__external {
    padding: 0 16px 30px;
    text-align: center;
    background: #F4F4F4;
}

.rsn-drawer__external-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 20px;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    color: #000 !important;
    font-weight: var(--rsn-weight-bold);
    font-size: 18px;
    text-decoration: none !important;
}


/* ==========================================================
   6. ヒーロー / 買取相場検索ボックス — 03: L52-58
   ========================================================== */
.rsn-hero {
    position: relative;
    margin-bottom: 40px;
    overflow: hidden;
}

/* スライダービューポート（表示領域をクリップ） */
.rsn-hero__viewport {
    width: 100%;
    overflow: hidden;
}

/* スライドトラック: 3枚横並び、translateXでスライド制御 */
.rsn-hero__track {
    display: flex;
    height: 486px;
    transition: transform 0.5s ease;
    /* 初期位置: スライド1を画面中央に配置（JSで上書き） */
    transform: translateX(calc(-1460px + (100vw - 1460px) / 2));
}

@media screen and (min-width: 641px) {
    .rsn-hero__track {
        transform: translateX(calc(-1460px + (max(100vw, 1030px) - 1460px) / 2));
    }
}

/* 各スライド: 1460 x 486 固定 */
.rsn-hero__slide {
    position: relative;
    width: 1460px;
    min-width: 1460px;
    height: 486px;
    flex-shrink: 0;
}

.rsn-hero__slide>a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.rsn-hero__slide>img,
.rsn-hero__slide>picture>img,
.rsn-hero__slide>a>picture>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 動画背景 */
.rsn-hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.rsn-hero__video video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* ヒーローオーバーレイ（検索ボックスを動画に重ねる） */
.rsn-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end !important;
    gap: 40px;
    padding: 0 200px 0 40px !important;
    box-sizing: border-box;
    z-index: 10;
}



/* 左右矢印ボタン */
.rsn-hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.rsn-hero__arrow:hover {
    opacity: 0.6;
}

.rsn-hero__arrow img {
    display: block;
    height: 60px;
    width: auto;
}

.rsn-hero__arrow--left {
    left: 0;
}

.rsn-hero__arrow--right {
    right: 0;
}

/* 右矢印: 180度回転 */
.rsn-hero__arrow--right img {
    transform: rotate(180deg);
}

/* ドットナビゲーション */
.rsn-hero__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
}

.rsn-hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #AAA;
    border: none;
    padding: 0;
    cursor: pointer;
    /* transition: all 0.3s ease; */
    box-sizing: border-box;
}

.rsn-hero__dot.is-active {
    background: #fff;
    border: 2px solid #AAA;
}

/* レガシー画像用（互換性） */
.rsn-hero__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 買取相場チェック — メインビジュアルに重なるオーバーレイ */
.rsn-kaitori-search {
    position: relative;
    padding: 0;
    background: none;
    flex-shrink: 0;
    width: 480px;
}

.rsn-kaitori-search__inner {
    background: #F0F0F0;
    /* SP Background */
    padding: var(--rsn-space-lg);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px;
    grid-template-rows: auto auto auto auto;
    gap: 8px 12px;
    align-items: center;
}

.rsn-kaitori-search__title {
    grid-column: 1 / -1;
    grid-row: 1;
}

.rsn-kaitori-search__brand-btn {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    overflow: hidden;
}

.rsn-kaitori-search__form {
    grid-column: 1;
    grid-row: 3;
    min-width: 0;
}

.rsn-kaitori-search__submit-btn {
    grid-column: 1;
    grid-row: 4;
    min-width: 0;
}

.rsn-kaitori-search__photo-btn {
    grid-column: 2;
    grid-row: 2 / 5;
    width: auto;
    height: 100%;
    margin-top: 0;
}

@media screen and (min-width: 641px) {
    .rsn-kaitori-search__inner {
        grid-template-columns: 1fr 180px;
        gap: 0 var(--rsn-space-md);
        background: rgba(255, 255, 255, 0.95);
        /* PC Background */
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    }
}

/* SP: スライダー無効化 */
@media screen and (max-width: 640px) {
    .rsn-hero__track {
        width: 100%;
        height: auto;
        /* SPスライダー有効化のためflexのままにするが、 JSでtranslateXするのでcolumnは外す */
        flex-direction: row;
        /* transform: none !important; を削除しJSに委ねる */
    }

    .rsn-hero__slide {
        width: 100vw;
        min-width: 100vw;
        height: auto;
        display: flex;
        flex-direction: column;
    }

    /* SPではメインスライドのみ表示 */
    .rsn-hero__slide--main {
        display: block;
    }

    .rsn-hero__video {
        position: relative;
        height: 370px;
        background: #000;
    }

    .rsn-hero__video video {
        object-fit: contain;
    }

    .rsn-hero__overlay {
        position: static;
        display: block;
        padding: 0;
        height: auto;
    }



    .rsn-kaitori-search {
        width: 100%;
    }

    /* SP スライダー 矢印とドットの表示・調整 */
    .rsn-hero__nav {
        background: #F0F0F0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        padding-top: 15px;
    }

    .rsn-hero__arrow {
        position: static;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transform: none;
    }

    .rsn-hero__arrow img {
        display: none;
    }

    .rsn-hero__arrow::before {
        content: '';
        display: block;
        width: 6px;
        height: 6px;
        border-top: 1.5px solid #1A1A1A;
        border-right: 1.5px solid #1A1A1A;
    }

    .rsn-hero__arrow--left::before {
        transform: rotate(-135deg);
        margin-left: 2px;
    }

    .rsn-hero__arrow--right::before {
        transform: rotate(45deg);
        margin-right: 2px;
    }

    .rsn-hero__dots {
        position: static;
        display: flex;
        justify-content: center;
        gap: 8px;
        /* Assuming dot gap based on image */
        width: auto;
    }

    /* PC/SP 切り替え用ユーティリティ */
    .rsn-u-pc-only {
        display: none !important;
    }
}

@media screen and (min-width: 641px) {
    .rsn-u-sp-only {
        display: none !important;
    }

    .rsn-hero__nav {
        display: contents;
        /* Allows PC absolute positioning to bypass this wrapper */
    }
}

/* The rule `.rsn-kaitori-search__inner` was moved up to be outside media queries */

.rsn-kaitori-search__title {
    position: relative;
    font-size: 14px;
    /* SP */
    font-weight: normal;
    color: #000;
    margin: 0 0 12px;
    text-align: center;
    padding: 0 32px;
    line-height: 1.4;
}

@media screen and (min-width: 641px) {
    .rsn-kaitori-search__title {
        font-size: 16px;
        /* PC */
        font-weight: bold;
        /* PC */
    }
}

.rsn-kaitori-search__title::before,
.rsn-kaitori-search__title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 1.5px;
    height: 90%;
    background: #000;
}

.rsn-kaitori-search__title::before {
    left: 15px;
    /* SP */
    transform: translateY(-50%) rotate(-18deg);
}

.rsn-kaitori-search__title::after {
    right: 15px;
    /* SP */
    transform: translateY(-50%) rotate(18deg);
}

@media screen and (min-width: 641px) {
    .rsn-kaitori-search__title::before {
        left: 40px;
        /* PC */
    }

    .rsn-kaitori-search__title::after {
        right: 40px;
        /* PC */
    }
}

.rsn-kaitori-search__title strong {
    display: block;
    font-size: 18px;
    /* SP */
    font-weight: bold;
    /* SP */
    color: #000;
    line-height: 1.2;
}

@media screen and (min-width: 641px) {
    .rsn-kaitori-search__title strong {
        font-size: 24px;
        /* PC */
    }
}

.rsn-kaitori-search__form {
    display: flex;
    margin: var(--rsn-space-md) 0;
}

.rsn-kaitori-search__brand-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: #FFFFFF;
    /* SP */
    border: 1px solid var(--rsn-border);
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    /* SP */
    font-size: var(--rsn-text-sm);
    cursor: pointer;
    white-space: nowrap;
    font-weight: var(--rsn-weight-bold);
    text-align: left;
}

@media screen and (min-width: 641px) {
    .rsn-kaitori-search__brand-btn {
        background: linear-gradient(180deg, #FFFFFF 0%, #EDEDED 100%);
        box-shadow: none;
    }
}

.rsn-kaitori-search__brand-arrow {
    margin-left: auto;
    width: 4px;
    height: 4px;
    border-right: 1px solid var(--rsn-text-sub);
    border-bottom: 1px solid var(--rsn-text-sub);
    transform: rotate(-45deg);
}

.rsn-kaitori-search__input {
    flex: 1;
    padding: 10px 0 10px 42px;
    border: 1px solid var(--rsn-border);
    border-right: none;
    border-radius: 5px 0 0 5px;
    font-size: var(--rsn-text-sm);
    outline: none;
    min-width: 0;
    background: #fff url(../img/icons/search.svg) no-repeat 16px center;
    background-size: 18px 18px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    /* SP */
}

@media screen and (min-width: 641px) {
    .rsn-kaitori-search__input {
        box-shadow: none;
    }
}

.rsn-kaitori-search__mic {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px 0 8px;
    background: #fff;
    border: 1px solid var(--rsn-border);
    border-left: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: var(--rsn-transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    /* SP */
}

@media screen and (min-width: 641px) {
    .rsn-kaitori-search__mic {
        box-shadow: none;
    }
}

.rsn-kaitori-search__mic:hover {
    opacity: 0.6;
}

.rsn-kaitori-search__submit-btn {
    display: block;
    width: 100%;
    padding: 14px 10px;
    background: var(--rsn-white);
    color: var(--rsn-gold);
    border: 1px solid var(--rsn-gold);
    border-radius: 100px;
    font-size: var(--rsn-text-sm);
    font-weight: var(--rsn-weight-bold);
    cursor: pointer;
    transition: var(--rsn-transition);
}

.rsn-kaitori-search__submit-btn:hover {
    background: var(--rsn-gold);
    color: var(--rsn-white);
}

.rsn-kaitori-search__photo-btn {
    display: flex;
    /* SP */
    flex-direction: column;
    /* SP */
    align-items: center;
    justify-content: center;
    gap: 6px;
    /* padding: 12px 20px; */
    background: var(--rsn-gold);
    color: var(--rsn-white) !important;
    text-decoration: none !important;
    font-weight: var(--rsn-weight-bold);
    font-size: var(--rsn-text-sm);
    border-radius: 10px;
    /* SP (Design image shows square-ish rounded corners) */
    white-space: nowrap;
    text-align: center;
}

.rsn-kaitori-search__photo-btn img {
    display: block;
}

@media screen and (max-width: 640px) {
    .rsn-kaitori-search__photo-btn img {
        margin: 15px auto;
        /* SP: centered margin */
    }
}

.rsn-kaitori-search__quick-link {
    color: var(--rsn-text-sub) !important;
    text-decoration: underline !important;
    font-size: var(--rsn-text-sm);
    white-space: nowrap;
    display: none;
}


/* ==========================================================
   7. セクション見出し — 02: §3.5
   ========================================================== */
.rsn-section-heading {
    text-align: left;
    margin-bottom: var(--rsn-space-xl);
    position: relative;
}

.rsn-section-heading__title {
    font-size: 24px;
    font-weight: var(--rsn-weight-bold);
    letter-spacing: 1.92px;
    margin: 0 0 4px;
}

.rsn-section-heading__sub {
    font-size: var(--rsn-text-sm);
    color: var(--rsn-gold);
    text-transform: uppercase;
    margin: 0;
}

.rsn-section-heading__more {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #000 !important;
}

.rsn-section-heading--center {
    text-align: center;
}

@media screen and (max-width: 640px) {
    .rsn-section-heading__more {
        top: 18px;
    }

    /* --- SP: 「すべて見る」かぶり修正（セクション個別） --- */

    /* 強化ブランド&カテゴリー */
    #section-brands .rsn-section-heading__title {
        margin-bottom: 50px;
    }

    #section-brands .rsn-section-heading__more {
        top: 50px;
    }

    /* 定額買取価格リスト */
    #section-teigaku .rsn-section-heading__title {
        margin-bottom: 50px;
    }

    #section-teigaku .rsn-section-heading__more {
        top: 80px;
    }

    /* よくある質問 TOP3 */
    #section-faq .rsn-section-heading__title {
        margin-bottom: 50px;
    }

    #section-faq .rsn-section-heading__more {
        top: 50px;
    }

    /* --- SP: えらべる無料査定 見出し内アイコン表示 --- */
    #section-service .rsn-section-heading__title img {
        display: inline-block;
    }
}


/* ==========================================================
   8. ブランドカード — 03: L65-70
   ========================================================== */
.rsn-brand-card {
    display: block;
    text-decoration: none !important;
    color: var(--rsn-text) !important;
    transition: var(--rsn-transition);
}

.rsn-brand-card:hover {
    opacity: 0.7;
}

.rsn-brand-card__image {
    position: relative;
    overflow: hidden;
    background: #F8F8F8;
}

.rsn-brand-card__image img {
    width: 100%;
    height: auto;
    display: block;
}

.rsn-brand-card__text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: table;
    text-align: left;
}

.rsn-brand-card__text p {
    display: table-cell;
    vertical-align: middle;
    padding-left: 43%;
    margin: 0;
    font-size: 22px;
    font-weight: var(--rsn-weight-bold);
    line-height: 1.3;
    color: #000;
    font-family: var(--rsn-font-serif);
}

.rsn-brand-card__text small {
    display: block;
    font-size: var(--rsn-text-xs);
    font-weight: normal;
    color: #000;
    margin-top: 2px;
    font-family: var(--rsn-font-base);
}

@media screen and (max-width: 640px) {
    .rsn-brand-card__text p {
        padding-left: 40%;
        font-size: var(--rsn-text-md);
    }

    .rsn-brand-card__text small {
        font-size: 10px;
    }
}

/* ==========================================================
   9. 商品カード — 02: §3.3 + Q4 スクショ③④
   2価格表示: 中古品キャンペーン価格 + 未使用品
   ========================================================== */
.rsn-product-card {
    position: relative;
    display: flex;
    /* 追加: __linkから移動 */
    background: var(--rsn-bg-white);
    border: 1px solid var(--rsn-border);
    border-radius: 5px;
    overflow: hidden;
    transition: var(--rsn-transition);
}

.rsn-product-card:hover {
    box-shadow: var(--rsn-shadow-md);
}

.rsn-product-card--noborder {
    border: none !important;
    background: transparent;
}

.rsn-product-card--noborder:hover {
    box-shadow: none !important;
}

.rsn-product-card--noborder .rsn-product-card__image {
    background: #fff;
    border: 1px solid var(--rsn-border);
    border-radius: 4px;
    padding: 10px;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    align-self: flex-start;
}

.rsn-product-card__link {
    /* flex削除: HTML構造変更により絶対配置へ(rsn-base.cssにて上書き) */
    text-decoration: none !important;
    color: var(--rsn-text) !important;
}

/* ラベル */
.rsn-product-card__label {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: var(--rsn-weight-bold);
    border-radius: 0;
    margin-bottom: 14px;
    width: fit-content;
}

.rsn-product-card__label--red {
    background: #C19500;
    color: #FFFFFF;
}

.rsn-product-card__label--blue {
    background: #0087C3;
    color: #FFFFFF;
}

.rsn-product-card__label--gold {
    background: #C19500;
    color: #FFFFFF;
}

.rsn-product-card__image {
    position: relative;
    flex: 0 1 120px;
    min-width: 90px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8F8F8;
}

@media screen and (min-width: 641px) {
    .rsn-product-card__image {
        flex: 0 0 250px;
    }
}

.rsn-product-card__image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.rsn-product-card__body {
    flex: 1;
    padding: var(--rsn-space-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rsn-product-card__brand {
    font-size: var(--rsn-text-xs);
    color: var(--rsn-text-muted);
    margin: 0 0 4px;
}

.rsn-product-card__name {
    font-size: var(--rsn-text-md);
    font-weight: var(--rsn-weight-bold);
    margin: 0 0 var(--rsn-space-sm);
    line-height: 1.3;
}

/* 価格エリア */
.rsn-product-card__prices {
    margin-top: var(--rsn-space-sm);
}

.rsn-product-card__price {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0 0 4px;
}

.rsn-product-card__price-type {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: var(--rsn-weight-bold);
    /* 中古品デフォルト: 薄赤背景 + 赤字 */
    background: #FFE8E8;
    color: #DD0000;
    border-radius: 2px;
    white-space: nowrap;
}

/* 未使用品: 薄青背景 + 黒字（検索結果と統一） */
.rsn-product-card__price--sub .rsn-product-card__price-type {
    background: #CFEAE7;
    color: #000;
}

.rsn-product-card__price-campaign {
    font-size: 10px;
    color: var(--rsn-price-red);
    white-space: nowrap;
}

/* 中古品価格: 赤字 */
.rsn-product-card__price-value {
    font-size: var(--rsn-text-lg);
    font-weight: var(--rsn-weight-bold);
    color: var(--rsn-price-red);
}

/* 未使用品価格: サブカラー */
.rsn-product-card__price--sub .rsn-product-card__price-value {
    font-size: var(--rsn-text-base);
    color: var(--rsn-text-sub);
}

.rsn-product-card__action {
    padding: 0 var(--rsn-space-md) var(--rsn-space-md);
    text-align: center;
}


/* --- 検索バーのグレー背景ラッパー（最新の買取実績用） --- */
.rsn-result-search-wrapper {
    background: #f4f4f4;
    padding: 16px 24px;
    border-radius: 4px;
    margin-bottom: var(--rsn-space-lg);
}

.rsn-result-search-wrapper .rsn-search-bar {
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================================
   10. 買取実績カード — 横型 / Q4 スクショ①②
   ========================================================== */
.rsn-result-card {
    display: flex;
    gap: 20px;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
}

.rsn-result-card__image {
    flex: 0 1 120px;
    min-width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--rsn-border);
    border-radius: 4px;
    padding: var(--rsn-space-sm);
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
}

@media screen and (min-width: 641px) {
    .rsn-result-card__image {
        flex: 0 0 231px;
    }
}

.rsn-result-card__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rsn-result-card__body {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.rsn-result-card__date {
    font-family: "Lato", var(--rsn-font-base);
    font-size: var(--rsn-text-base);
    font-weight: var(--rsn-weight-medium);
    color: var(--rsn-text);
    letter-spacing: 0.28px;
    margin: 0;
}

.rsn-result-card__tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.rsn-result-card__tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: var(--rsn-text-sm);
    font-weight: var(--rsn-weight-bold);
    border: 1px solid var(--rsn-border);
    border-radius: 2px;
    color: var(--rsn-text-sub);
}

.rsn-result-card__name {
    font-size: var(--rsn-text-md);
    font-weight: var(--rsn-weight-normal);
    margin: 0;
    line-height: 24px;
    letter-spacing: 0.8px;
}

.rsn-result-card__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
}

.rsn-result-card__price-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    font-size: var(--rsn-text-sm);
    font-weight: var(--rsn-weight-bold);
    color: var(--rsn-text);
    background: #F0F0F0;
    border-radius: 2px;
    min-width: 80px;
    min-height: 24px;
}

.rsn-result-card__price-value {
    font-family: "Lato", var(--rsn-font-base);
    font-size: 24px;
    font-weight: 900;
    color: var(--rsn-text);
    letter-spacing: 0.52px;
    line-height: 30px;
}


/* ==========================================================
   11. サービスカード（えらべる査定）— 03: L90-94
   PC: 4列 / SP: 2×2
   ========================================================== */
.rsn-service-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--rsn-card-gap);
    max-width: 100%;
    box-sizing: border-box;
}

@media screen and (min-width: 641px) {
    .rsn-service-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

.rsn-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--rsn-space-md) var(--rsn-space-sm);
    box-sizing: border-box;
    /* Reduced vertical padding */
    background: var(--rsn-bg-white);
    border: 1px solid var(--rsn-border);
    border-radius: 5px;
    text-decoration: none !important;
    color: var(--rsn-text) !important;
}

.rsn-service-card__icon {
    margin-bottom: 12px;
    /* Adjusted margin */
}

.rsn-service-card__icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.rsn-service-card__title {
    font-size: 16px;
    font-weight: var(--rsn-weight-bold);
    line-height: 24px;
    letter-spacing: 1px;
    margin: 0 0 8px;
    /* Adjusted margin */
}

.rsn-service-card__desc {
    font-size: 13px;
    line-height: 1.6;
    color: #000;
    /* Changed to #000 */
    margin: 0 0 var(--rsn-space-md);
    flex: 1;
}

.rsn-service-card__btn {
    border-radius: 9999px;
    width: 100%;
    max-width: 160px;
    box-sizing: border-box;
    font-size: 13px;
    padding: 10px 16px;
    justify-content: center;
}


/* ==========================================================
   12. 安心の理由
   ========================================================== */
.rsn-trust-reasons__wrapper {
    position: relative;
    border: 1px solid #000;
    /* New black border */
    border-radius: 5px;
    /* Radius 5px */
    padding: 40px var(--rsn-space-md) var(--rsn-space-md);
    margin-top: 20px;
    /* Space for the title to overlap */
}

.rsn-trust-reasons__title-img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 2;
    background: var(--rsn-bg-white);
    /* To hide the border behind the image */
    padding: 0 20px;
}

.rsn-trust-reasons__title-bg {
    display: block;
}

.rsn-trust-reasons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    /* Remove gap to use border for spacing */
}

@media screen and (min-width: 641px) {
    .rsn-trust-reasons {
        grid-template-columns: repeat(3, 1fr);
    }
}

.rsn-trust-reasons__item {
    text-align: center;
    padding: var(--rsn-space-xl) var(--rsn-space-md);
    background: transparent;
    border-radius: 0;
}

@media screen and (min-width: 641px) {
    .rsn-trust-reasons__item {
        border-right: 1px dotted #ccc;
        /* Dotted divider */
    }

    .rsn-trust-reasons__item:last-child {
        border-right: none;
    }
}

@media screen and (max-width: 640px) {
    .rsn-trust-reasons__item:nth-child(2) {
        border-top: 1px dotted #ccc;
        border-bottom: 1px dotted #ccc;
    }
}

.rsn-trust-reasons__title {
    font-size: var(--rsn-text-lg);
    font-weight: var(--rsn-weight-bold);
    margin: 0 0 var(--rsn-space-sm);
    display: inline;
    background-image: linear-gradient(transparent 60%, #FDFACE 60%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    padding: 0 4px;
}

.rsn-trust-reasons__desc {
    font-size: var(--rsn-text-sm);
    color: #000;
    margin: var(--rsn-space-sm) 0 0;
    line-height: 1.6;
}


/* ==========================================================
   カテゴリリンク (強化ブランド＆カテゴリ下部)
   ========================================================== */
.rsn-category-links {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.rsn-category-links .rsn-category-link-item {
    min-width: 160px;
    background: var(--rsn-white);
    color: #000 !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-weight: var(--rsn-weight-normal);
    justify-content: center;
    padding: 12px 16px;
    transition: none;
}

@media screen and (max-width: 640px) {
    .rsn-category-links .rsn-category-link-item {
        min-width: unset;
        font-size: 13px;
    }
}

/* ==========================================================
   13. おトクなご案内 — 03: L104-109
   ========================================================== */
.rsn-info-banner {
    background: var(--rsn-bg-white);
    border: 1px solid var(--rsn-border-light);
    border-radius: var(--rsn-radius-md);
    overflow: hidden;
    padding: 30px;
}

@media screen and (max-width: 640px) {
    .rsn-info-banner {
        display: flex;
        flex-direction: row;
        gap: 16px;
        padding: 16px;
        align-items: stretch;
    }
}

.rsn-info-banner__image img {
    width: 100%;
    height: auto;
    display: block;
}

@media screen and (max-width: 640px) {
    .rsn-info-banner__image {
        flex: 0 0 120px;
    }

    .rsn-info-banner__image img {
        height: 100%;
        object-fit: cover;
    }
}

.rsn-info-banner__body {
    padding: 20px 0 0;
    text-align: center;
}

@media screen and (max-width: 640px) {
    .rsn-info-banner__body {
        padding: 0;
        text-align: left;
    }
}

.rsn-info-banner__title {
    font-size: 15px;
    font-weight: var(--rsn-weight-bold);
    margin: 0 0 16px;
    border: 1px solid #333;
    padding: 6px 0;
    text-align: center;
    letter-spacing: 0.1em;
}

@media screen and (max-width: 640px) {
    .rsn-info-banner__title {
        display: inline-block;
        font-size: 12px;
        padding: 2px 20px;
        margin: 0 0 8px;
    }
}

.rsn-info-banner__subtitle {
    font-size: 16px;
    font-weight: var(--rsn-weight-bold);
    color: var(--rsn-text);
    margin: 0 0 16px;
    letter-spacing: 0.05em;
}

@media screen and (max-width: 640px) {
    .rsn-info-banner__subtitle {
        font-size: 14px;
        line-height: 1.4;
        margin: 0 0 12px;
    }
}

.rsn-info-banner__list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: inline-block;
    /* 箇条書きブロック全体を中央寄せするため */
}

.rsn-info-banner__list li {
    font-size: 13px;
    position: relative;
    padding-left: 14px;
    margin-bottom: 6px;
    line-height: 1.5;
}

@media screen and (max-width: 640px) {
    .rsn-info-banner__list li {
        font-size: 12px;
        margin-bottom: 4px;
    }
}

.rsn-info-banner__list li::before {
    content: "・";
    position: absolute;
    left: 0;
    top: 0;
}

/* ==========================================================
   14. レビュー・スライダー — 03: L118-121
   ========================================================== */
.rsn-review-slider__track {
    display: flex;
    flex-direction: column;
    gap: var(--rsn-card-gap);
}

.rsn-review-card {
    background: var(--rsn-bg-white);
    border: 1px solid var(--rsn-border-light);
    border-radius: var(--rsn-radius-md);
    padding: var(--rsn-space-lg);
}

.rsn-review-card__stars {
    color: #FEC94E;
    margin-bottom: var(--rsn-space-sm);
    letter-spacing: 2px;
}

.rsn-review-card__text {
    font-size: var(--rsn-text-md);
    line-height: 22px;
    letter-spacing: 0.8px;
    color: var(--rsn-text);
    margin: 0 0 var(--rsn-space-md);
}

.rsn-review-card__author {
    font-size: var(--rsn-text-xs);
    color: var(--rsn-text-muted);
    margin: 0;
}

/* --- 詳細版レビューカード用 (.rsn-review-card--detailed) --- */

.rsn-review-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.rsn-review-card__icon {
    border-radius: 50%;
}

.rsn-review-card__customer {
    font-size: 13px;
    font-weight: var(--rsn-weight-bold);
    color: #000;
    margin: 0 0 4px;
}

.rsn-review-card__type {
    font-size: 12px;
    color: var(--rsn-text-sub);
    margin: 0;
}

.rsn-review-card__product {
    font-size: 15px;
    font-weight: var(--rsn-weight-bold);
    color: #000;
    margin: 0 0 8px;
}

.rsn-review-card__divider {
    border: none;
    border-top: 1px dotted #ccc;
    margin: 16px 0;
}

.rsn-review-card__title {
    font-size: 15px;
    font-weight: var(--rsn-weight-bold);
    color: #000;
    margin: 0 0 12px;
    line-height: 1.5;
}

.rsn-review-card--detailed .rsn-review-card__text {
    font-size: 13px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 12px;
    max-height: calc(1.8em * 3);
    /* 3行分 */
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.rsn-review-card--detailed .rsn-review-card__text.is-expanded {
    max-height: 1000px;
}

.rsn-review-card__toggle {
    display: inline-block;
    background: none;
    border: none;
    color: #8C7C6D;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.rsn-review-card__toggle:hover {
    text-decoration: underline;
}

.rsn-review-card__action {
    text-align: left;
}

.rsn-review-card__btn {
    border-radius: 20px;
    padding: 10px 24px;
    color: #8C7C6D !important;
    /* ボタン文字 茶色系 */
    border: 1px solid #8C7C6D !important;
    background: #fff;
    font-size: 13px;
    font-weight: bold;
}

@media screen and (max-width: 640px) {
    .rsn-review-card__btn.rsn-btn--sm {
        width: 100%;
    }
}


/* ==========================================================
   15. FAQ アコーディオン — 03: L123-127
   XD: カード型 bg白/border #DDD/radius 5px,
        質問 18px Bold, 回答 16px Regular lh24
   ========================================================== */
.rsn-faq__item {
    background: var(--rsn-bg-white);
    border: 1px solid var(--rsn-border);
    border-radius: 5px;
    margin-bottom: var(--rsn-card-gap);
    padding: 0 31px;
}

.rsn-faq__item:last-child {
    margin-bottom: 0;
}

.rsn-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    font-size: var(--rsn-text-lg);
    font-weight: var(--rsn-weight-bold);
    color: var(--rsn-text);
    line-height: 24px;
    letter-spacing: 0.9px;
    cursor: pointer;
    text-align: left;
}

.rsn-faq__icon {
    font-size: 20px;
    color: var(--rsn-text-muted);
    transition: var(--rsn-transition);
    flex-shrink: 0;
    margin-left: var(--rsn-space-md);
}

.rsn-faq__answer {
    display: none;
    overflow: hidden;
}

.rsn-faq__answer.is-open {
    display: block;
}

.rsn-faq__answer-inner {
    padding: 0 0 20px;
    font-size: var(--rsn-text-md);
    color: var(--rsn-text);
    line-height: 24px;
    letter-spacing: 0.8px;
    border-top: 1px dotted var(--rsn-border);
    padding-top: 20px;
}


/* ==========================================================
   16. 店舗カード — 03: L622-635
   XD: W300, border 1px #DDD, radius 5px, padding 20px
        名前 18px Bold ls0.9 lh24, 住所 16px lh24,
        時間 14px, ボタン 200x40 #796447 radius 100px 16px Bold
   ========================================================== */
.rsn-store-card {
    border-radius: 5px;
    overflow: hidden;
    background: var(--rsn-bg-white);
    border: 1px solid var(--rsn-border);
    padding: 30px 20px;
}

/* SPのみ来店案内の4カラムグリッドを1カラムに強制（他への影響を避けるため店舗カード親に限定） */
@media screen and (max-width: 640px) {
    .rsn-l-grid:has(> .rsn-store-card) {
        grid-template-columns: 1fr;
    }
}

.rsn-store-card__image {
    aspect-ratio: 260 / 153;
    overflow: hidden;
    border-radius: 5px;
    margin: 0;
}

.rsn-store-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rsn-store-card__body {
    padding: var(--rsn-space-md) 0;
    text-align: left;
}

.rsn-store-card__name {
    font-size: var(--rsn-text-lg);
    font-weight: var(--rsn-weight-bold);
    margin: 0 0 var(--rsn-space-sm);
    letter-spacing: 0.9px;
    line-height: 24px;
    padding: 0 0 var(--rsn-space-sm);
}

.rsn-store-card__address,
.rsn-store-card__tel {
    font-size: var(--rsn-text-md);
    color: var(--rsn-text);
    line-height: 24px;
    letter-spacing: 0.8px;
    margin: 0 0 2px;
}

.rsn-store-card__address-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

@media screen and (min-width: 641px) {
    .rsn-store-card__address-row {
        min-height: 98px;
        /* 住所エリアの高さを揃える（PCのみ） */
    }
}

.rsn-store-card__address-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.rsn-store-card__copy-btn,
.rsn-store-card__map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    transition: var(--rsn-transition);
    text-decoration: none !important;
}

.rsn-store-card__copy-btn img,
.rsn-store-card__map-btn img {
    width: 30px;
    height: 30px;
}

.rsn-store-card__copy-btn:hover,
.rsn-store-card__map-btn:hover {
    opacity: 0.6;
}

.rsn-store-card__hours {
    font-size: var(--rsn-text-md);
    color: var(--rsn-text);
    line-height: 24px;
    letter-spacing: 0.8px;
    margin: 0 0 var(--rsn-space-md);
}

.rsn-store-card__map {
    margin: var(--rsn-space-md) 0;
}

.rsn-store-card__map iframe {
    width: 100%;
    max-width: 100%;
    border-radius: 5px;
}

/* 店舗カード内ボタン XD: 200x40, border #796447, radius 100px, 16px Bold */
.rsn-store-card__action {
    text-align: center;
}

.rsn-store-card .rsn-btn {
    width: 200px;
    min-height: 40px;
    font-size: var(--rsn-text-md);
    font-weight: var(--rsn-weight-bold);
    color: #796447 !important;
    border: 1px solid #796447;
    border-radius: 100px;
    background: transparent;
}


/* ==========================================================
   17. パンくず — 02: §3.6
   ========================================================== */
.rsn-breadcrumb {
    padding: var(--rsn-space-md) 0;
}

.rsn-breadcrumb__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0;
    font-size: var(--rsn-text-sm);
}

.rsn-breadcrumb__item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--rsn-text-muted);
}

.rsn-breadcrumb__item:not(:last-child)::after {
    content: ">";
    color: var(--rsn-text-muted);
}

.rsn-breadcrumb__link {
    color: var(--rsn-text-sub) !important;
    text-decoration: none !important;
}

.rsn-breadcrumb__link:hover {
    text-decoration: underline !important;
}


/* ==========================================================
   18. フッター — 03: L600-620, bg: #333
   XD: ナビヘッダー 15px Bold 白 ls0.75/lh30,
        リンク 14px Regular #DDD lh30 ls0.7,
        コピー 14px 中央
   ========================================================== */
.rsn-footer {
    background: var(--rsn-footer-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--rsn-space-2xl) 0 var(--rsn-space-lg);
    clear: both;
}

.rsn-footer__top {
    text-align: center;
    margin-bottom: var(--rsn-space-xl);
}

.rsn-footer__logo {
    margin-bottom: var(--rsn-space-sm);
}

.rsn-footer__logo img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.rsn-footer__catchphrase {
    font-size: var(--rsn-text-base);
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 var(--rsn-space-md);
}

.rsn-footer__sns {
    display: flex;
    justify-content: center;
    gap: var(--rsn-space-md);
    margin-bottom: var(--rsn-space-xl);
}

.rsn-footer__sns-link {
    font-size: 18px;
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.5) !important;
    transition: var(--rsn-transition);
}

.rsn-footer__sns-link:hover {
    color: var(--rsn-white) !important;
}

/* 4カラムナビ */
.rsn-footer__nav-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--rsn-space-lg);
    margin-bottom: var(--rsn-space-xl);
}

@media screen and (min-width: 641px) {
    .rsn-footer__nav-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.rsn-footer__nav-col h4 {
    font-size: 15px;
    font-weight: var(--rsn-weight-bold);
    color: var(--rsn-white);
    letter-spacing: 0.75px;
    line-height: 30px;
    margin: 0 0 10px;
}

.rsn-footer__nav-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rsn-footer__nav-col li {
    margin-bottom: 2px;
    position: relative;
    padding-left: 1.2em;
}

.rsn-footer__nav-col li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: #DDDDDD;
}

.rsn-footer__nav-col a {
    color: #DDDDDD !important;
    text-decoration: none !important;
    font-size: 13px;
    line-height: 24px;
    letter-spacing: 0.7px;
    transition: var(--rsn-transition);
}

.rsn-footer__nav-col a:hover {
    color: var(--rsn-white) !important;
}

.rsn-footer__info {
    border-top: 1px dotted rgba(255, 255, 255, 0.4);
    padding-top: var(--rsn-space-xl);
    font-size: 12px;
    text-align: center;
    color: #DDDDDD;
}

.rsn-footer__info p {
    margin: 0 0 8px;
    line-height: 1.6;
    letter-spacing: 0.7px;
}

.rsn-footer__admin-title {
    font-weight: var(--rsn-weight-bold);
    margin-bottom: 12px !important;
}

.rsn-footer__copyright {
    margin: 20px 0 30px !important;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5) !important;
}

.rsn-footer__info a {
    color: #DDDDDD !important;
    text-decoration: underline !important;
}


/* ==========================================================
   19. SP追従バー — 03: L139-143
   クラス名統一: rsn-sticky-bar（rsn-sp-sticky-bar から変更）
   ========================================================== */
.rsn-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #DDDDDD;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.rsn-sticky-bar__inner {
    display: flex;
    height: 50px;
    padding: 10px 0;
}

.rsn-sticky-bar__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: var(--rsn-weight-bold);
    text-decoration: none !important;
    text-align: center;
    color: #000 !important;
}

.rsn-sticky-bar__btn--line {
    /* Base modifier (no background distinct from container) */
}

.rsn-sticky-bar__btn--tel {
    border-left: 1px dotted #999;
}


/* ==========================================================
   20. ボタン — 02: §3.4
   ========================================================== */
.rsn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--rsn-space-sm);
    padding: 14px 24px;
    border-radius: var(--rsn-radius-xl);
    font-size: var(--rsn-text-base);
    font-weight: var(--rsn-weight-bold);
    cursor: pointer;
    transition: var(--rsn-transition);
    text-decoration: none !important;
    border: none;
}

.rsn-btn--primary {
    background: var(--rsn-gold);
    color: var(--rsn-white) !important;
}

.rsn-btn--primary:hover {
    background: var(--rsn-gold-hover);
}

.rsn-btn--secondary {
    background: var(--rsn-white);
    color: var(--rsn-gold) !important;
    border: 2px solid var(--rsn-gold);
}

.rsn-btn--outline {
    background: var(--rsn-white);
    color: var(--rsn-gold) !important;
    border: 1px solid var(--rsn-gold);
}

.rsn-btn--outline:hover {
    background: var(--rsn-gold);
    color: var(--rsn-white) !important;
}

.rsn-btn--search {
    background: var(--rsn-black);
    color: var(--rsn-white) !important;
    border-radius: 5px;
    padding: 0 15px;
}

@media screen and (max-width: 640px) {
    .rsn-btn--search {
        font-size: 12px;
        padding: 0 8px;
    }
}

.rsn-btn--sm {
    padding: 8px 16px;
    font-size: var(--rsn-text-sm);
}

.rsn-btn--lg {
    padding: 16px 80px;
    border-radius: 99px;
    font-size: var(--rsn-text-md);
}

.rsn-btn--full {
    width: 100%;
}


/* ==========================================================
   21. 商品詳細ページ固有 — 03: §3
   ========================================================== */
.rsn-detail {
    padding: var(--rsn-space-lg) 16px;
    max-width: 100%;
    box-sizing: border-box;
}

.rsn-detail__grid {
    display: grid;
    gap: var(--rsn-space-xl);
}

/* CSS Grid Blowout 対策: min-width: auto による画像幅（600px）の拡張を防ぐ */
.rsn-detail__grid>* {
    min-width: 0;
}

@media screen and (min-width: 641px) {
    .rsn-detail__grid {
        grid-template-columns: 450px 1fr;
        gap: var(--rsn-space-2xl);
    }
}

/* SP: 画像とコンテンツが画面幅に収まるようにする */
.rsn-detail__left,
.rsn-detail__right {
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.rsn-detail__gallery {
    max-width: 100%;
}

.rsn-detail__gallery img {
    max-width: 100%;
    height: auto;
}

/* テーブル（チャート等）の横はみ出し対策 — SP横スクロール */
.rsn-detail table,
.rsn-detail .transition-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* PC: テーブル横スクロール解除 → 幅いっぱいに表示 */
@media screen and (min-width: 641px) {
    .rsn-detail table {
        display: table;
        overflow-x: visible;
    }

    .rsn-detail .transition-table {
        overflow-x: visible;
    }
}

/* Chart.jsのcanvasも幅制限 */
.rsn-detail canvas {
    max-width: 100% !important;
    height: auto !important;
}

.rsn-detail__main-image {
    border-radius: 10px;
    overflow: hidden;
    background: #F8F8F8;
}

.rsn-detail__main-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ラベル + ハッシュタグ行 — XD: flex row, gap 8px */
.rsn-detail__labels {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: var(--rsn-space-sm);
}

/* ステータスラベル — XD: bg #C19500, radius 2px, 15px Bold white, ls0.75 */
.rsn-detail__status-label {
    display: inline-block;
    padding: 4px 10px;
    background: #C19500;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: var(--rsn-weight-bold);
    letter-spacing: 0.75px;
    line-height: 20px;
    border-radius: 2px;
    white-space: nowrap;
}

.rsn-detail__status-label--blue {
    background: #0084CC;
}

/* ハッシュタグ — XD: 14px Regular #000 ls0.7 lh20 */
.rsn-detail__hashtags {
    display: flex;
    gap: var(--rsn-space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--rsn-space-md);
}

.rsn-detail__hashtag {
    font-size: 14px;
    color: var(--rsn-text) !important;
    text-decoration: none !important;
    letter-spacing: 0.7px;
    line-height: 20px;
    background: #FFFFFF;
    border: 1px solid #DDDDDD;
    border-radius: 100px;
    padding: 4px 12px;
}

.rsn-detail__hashtag:hover {
    text-decoration: underline !important;
}

/* シェアボタン — SPのみ表示 */
.rsn-detail__share {
    display: none;
    margin-left: auto;
    align-items: center;
    padding: 4px;
}

@media (max-width: 767px) {
    .rsn-detail__share {
        display: flex;
    }
}

/* 商品情報 — XD: H1 24px Bold #000 lh32 ls1.2 */
.rsn-detail__brand {
    font-size: 14px;
    color: var(--rsn-text-muted);
    line-height: 20px;
    letter-spacing: 0.7px;
    margin: 0 0 4px;
}

.rsn-detail__name {
    font-size: 24px;
    font-weight: var(--rsn-weight-bold);
    line-height: 32px;
    letter-spacing: 1.2px;
    margin: 0 0 4px;
}

.rsn-detail__ref {
    font-size: 14px;
    color: var(--rsn-text-muted);
    line-height: 20px;
    letter-spacing: 0.7px;
    margin: 0 0 var(--rsn-space-lg);
}

/* 価格（3種類）— XDカンプ準拠 */
.rsn-detail__prices {
    margin-bottom: var(--rsn-space-md);
}

/* 価格テーブル — XD: row h46 radius 2px,
   label 13px Bold center, price Lato 32px(main)/28px(sub,ref) */
.rsn-detail__price {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px dotted #CCCCCC;
}

.rsn-detail__price:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rsn-detail__price:first-child {
    padding-top: 0;
}

.rsn-detail__price--main {
    background: transparent;
}

.rsn-detail__price--sub {
    background: transparent;
}

.rsn-detail__price--ref {
    background: transparent;
}

.rsn-detail__price--main .rsn-detail__price-type {
    background: #FFE8E8;
}

.rsn-detail__price--sub .rsn-detail__price-type {
    background: #DEF4F1;
}

.rsn-detail__price--ref .rsn-detail__price-type {
    background: #FFFFFF;
    border: none;
}

.rsn-detail__price-type {
    flex: 0 0 auto;
    min-width: 100px;
    max-width: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 13px;
    font-weight: var(--rsn-weight-bold);
    border-radius: 2px;
    white-space: normal;
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-align: center;
    box-sizing: border-box;
}

.rsn-detail__price--main .rsn-detail__price-type {
    color: #DD0000;
}

.rsn-detail__price--sub .rsn-detail__price-type {
    color: #000000;
}

.rsn-detail__price--ref .rsn-detail__price-type {
    color: var(--rsn-text);
}

.rsn-detail__price-campaign {
    font-size: 14px;
    font-weight: var(--rsn-weight-bold);
    color: var(--rsn-price-red);
    letter-spacing: 0.28px;
    line-height: 30px;
}

.rsn-detail__price-num {
    /* size is set on parent */
}

.rsn-detail__price--main .rsn-detail__price-value {
    font-size: 32px;
    font-weight: 900;
    color: var(--rsn-price-red);
    letter-spacing: 0.64px;
    font-family: 'Lato', sans-serif;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.rsn-detail__price-diff {
    font-size: 14px;
    font-weight: var(--rsn-weight-bold);
    color: var(--rsn-price-red);
    font-family: var(--rsn-font-base);
    letter-spacing: 0.5px;
}

.rsn-detail__price--sub .rsn-detail__price-value {
    font-size: 28px;
    font-weight: 500;
    color: var(--rsn-text);
    letter-spacing: 0.56px;
    font-family: 'Lato', sans-serif;
}

.rsn-detail__price--ref .rsn-detail__price-value {
    font-size: 28px;
    font-weight: 500;
    color: var(--rsn-text);
    letter-spacing: 0.56px;
    font-family: 'Lato', sans-serif;
}

/* バッジ（4つ）— XD: 14px Regular #FFF, h33 radius 2px, 各色分け */
.rsn-detail__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--rsn-space-lg);
}

.rsn-detail__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.7px;
    line-height: 20px;
    border-radius: 2px;
    background: #666;
}

.rsn-detail__badge:nth-child(2) {
    background: #666;
}

.rsn-detail__badge:nth-child(3) {
    background: #666;
}

.rsn-detail__badge:nth-child(4) {
    background: #666;
}

.rsn-detail__cta {
    margin-bottom: var(--rsn-space-lg);
}

/* 宅配サポート — 3要素構成: 画像→コピー→CTA */
.rsn-support-badge {
    padding: var(--rsn-space-md) var(--rsn-space-lg);
    background: #FFFFFF;
    border: none;
    border-radius: 5px;
    margin-bottom: var(--rsn-space-xl);
    display: flex;
    align-items: center;
    gap: var(--rsn-space-md);
}

.rsn-support-badge__image img {
    border-radius: 4px;
}

.rsn-support-badge__text {
    margin: 0;
    font-size: 16px;
    color: var(--rsn-text);
    line-height: 24px;
    letter-spacing: 0.8px;
    flex: 1;
}

.rsn-support-badge__text strong {
    font-size: 20px;
    font-weight: var(--rsn-weight-bold);
    line-height: 26px;
    letter-spacing: 1.6px;
    display: block;
    margin-bottom: 2px;
}

.rsn-support-badge__cta {
    white-space: nowrap;
}

/* 価格チャート — XD: title 20px Bold lh26 ls1.6,
   th 14px Bold white on #D2C193, td 13px, border #DDD */
.rsn-price-chart {
    margin-bottom: var(--rsn-space-xl);
    background: #FFFFFF;
    border-radius: 5px;
    padding: 30px;
}

.rsn-price-chart__product-name {
    font-size: 16px;
    font-weight: var(--rsn-weight-normal);
    line-height: 24px;
    letter-spacing: 0.8px;
    margin: 0 0 4px;
}

.rsn-price-chart__title {
    font-size: 20px;
    font-weight: var(--rsn-weight-bold);
    line-height: 26px;
    letter-spacing: 1.6px;
    margin: 0 0 var(--rsn-space-md);
    flex-wrap: wrap;
}

/* ==========================================================
   商品詳細 SP調整
   ========================================================== */
@media screen and (max-width: 640px) {

    /* ラベル: 12px / 幅110px固定 / padding調整 */
    .rsn-detail__price-type {
        font-size: 12px;
        width: 110px;
        min-width: 110px;
        max-width: 110px;
        padding: 10px 5px;
    }

    /* 中古品キャンペーン価格: 28px */
    .rsn-detail__price--main .rsn-detail__price-value {
        font-size: 28px;
    }

    /* 未使用品・参考定価: 25px */
    .rsn-detail__price--sub .rsn-detail__price-value,
    .rsn-detail__price--ref .rsn-detail__price-value {
        font-size: 25px;
    }

    /* CTAボタン */
    .rsn-detail__cta .rsn-btn--primary.rsn-btn--lg {
        padding: 16px 60px;
    }

    /* 安心宅配サポートパック: 縦並び + 装飾線 */
    .rsn-support-badge {
        flex-direction: column;
        text-align: center;
        padding: 24px 16px;
    }

    .rsn-support-badge__text {
        text-align: center;
    }

    .rsn-support-badge__text strong {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 18px;
        margin-bottom: 6px;
    }

    .rsn-support-badge__text strong::before,
    .rsn-support-badge__text strong::after {
        content: '';
        display: inline-block;
        width: 1px;
        height: 1.1em;
        background: currentColor;
    }

    .rsn-support-badge__text strong::before {
        transform: rotate(-20deg);
    }

    .rsn-support-badge__text strong::after {
        transform: rotate(20deg);
    }

    .rsn-support-badge__text span {
        display: block;
        font-size: 14px;
    }

    .rsn-support-badge__cta {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

.rsn-price-chart__table-wrap {
    overflow-x: auto;
    margin-top: var(--rsn-space-md);
}

.rsn-price-chart__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    white-space: nowrap;
}

/* PC: nowrap解除 → セル内折り返し可 */
@media screen and (min-width: 641px) {
    .rsn-price-chart__table {
        white-space: normal;
    }
}

.rsn-price-chart__table th,
.rsn-price-chart__table td {
    padding: 8px 12px;
    border: 1px solid #DDDDDD;
    text-align: right;
}

.rsn-price-chart__table th {
    background: #D2C193;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: var(--rsn-weight-bold);
    text-align: center;
}

.rsn-price-chart__table td:nth-child(2) {
    background: #F9F7F0;
}

/* --- .transition-table: 本番 post_content から出力される推移表 ---
   the_content() で出力される旧フォーマットの表を RSN デザインに合わせる */
.rsn-price-chart .transition-table {
    overflow-x: auto;
    margin-top: var(--rsn-space-md);
}

.rsn-price-chart .transition-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    white-space: nowrap;
}

/* PC: nowrap解除 */
@media screen and (min-width: 641px) {
    .rsn-price-chart .transition-table table {
        white-space: normal;
    }
}

.rsn-price-chart .transition-table td {
    padding: 8px 12px;
    border: 1px solid #DDDDDD;
    text-align: right;
}

/* ヘッダー行（1行目: タイトル, 2行目: 列名）*/
.rsn-price-chart .transition-table tr:nth-child(1) td {
    background: var(--rsn-gold, #D2C193);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: var(--rsn-weight-bold, 700);
    text-align: center;
}

.rsn-price-chart .transition-table tr:nth-child(2) td {
    background: #EDE8D8;
    color: #333;
    font-size: 13px;
    font-weight: var(--rsn-weight-bold, 700);
    text-align: center;
}

/* 買取金額列（2列目）ハイライト */
.rsn-price-chart .transition-table tr:nth-child(n+3) td:nth-child(2) {
    font-weight: var(--rsn-weight-bold, 700);
    background: #F9F7F0;
}

/* 日付列（1列目）中央寄せ */
.rsn-price-chart .transition-table td:first-child {
    text-align: center;
}

/* Canvas（Chart.js）レスポンシブ */
.rsn-price-chart__graph canvas {
    max-width: 100%;
    height: auto !important;
}


/* 適応条件 — XD: container bg #FFF radius 5px,
   title 20px Bold lh26 ls1.6,
   group h4 16px Bold center bg未使用品#CFEAE7/中古品#FFE8E8 radius 2px,
   li 16px Regular #000 lh24 ls0.8, checkmark icon */
.rsn-condition-list {
    margin-top: var(--rsn-space-xl);
}

.rsn-condition-list__title {
    font-size: 20px;
    font-weight: var(--rsn-weight-bold);
    line-height: 26px;
    letter-spacing: 1.6px;
    margin: 0 0 var(--rsn-space-xs);
}

.rsn-condition-list__desc {
    font-size: 13px;
    color: var(--rsn-text);
    line-height: 20px;
    letter-spacing: 0.39px;
    margin: 0 0 var(--rsn-space-md);
}

.rsn-condition-list__group h4 {
    font-size: 16px;
    font-weight: var(--rsn-weight-bold);
    text-align: center;
    line-height: 1.4;
    letter-spacing: 1.6px;
    padding: 6px 32px;
    border-radius: 2px;
    margin: 0 0 var(--rsn-space-md);
}

/* SP版での適応条件リストのマージン調整 */
.rsn-detail__right .rsn-condition-list {
    margin: var(--rsn-space-lg) 0;
    background: #FFFFFF;
    border: 1px solid var(--rsn-border-light);
    border-radius: var(--rsn-radius-md);
    padding: var(--rsn-space-lg) var(--rsn-space-md);
}

/* 未使用品 = pale green, 中古品 = pale pink */
.rsn-condition-list__group--unused h4 {
    background: #DEF4F1;
    display: inline-block;
    padding: 6px 32px;
}

.rsn-condition-list__group--unused {
    text-align: center;
    background: #FFFFFF;
    border-radius: 5px;
    padding: 16px 20px 24px;
    margin-bottom: 12px;
}

.rsn-condition-list__group--used h4 {
    background: #FFE8E8;
    display: inline-block;
    padding: 6px 32px;
}

.rsn-condition-list__group--used {
    text-align: center;
    background: #FFFFFF;
    border-radius: 4px;
    padding: 16px 20px 24px;
}

.rsn-condition-list__group ul {
    list-style: none;
    margin: 16px 0 0;
    padding-left: 0;
    font-size: 15px;
    color: var(--rsn-text);
    line-height: 1.6;
    letter-spacing: 0.75px;
    text-align: left;
}

.rsn-condition-list__group li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 10px;
}

.rsn-condition-list__group li:last-child {
    margin-bottom: 0;
}

.rsn-condition-list__group li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    background: url('../img/icons/check_black.svg') no-repeat center / contain;
}

.rsn-condition-list__note {
    font-size: 13px;
    color: var(--rsn-text);
    margin-top: 4px;
    text-align: left;
}

.rsn-condition-list__note--red {
    color: var(--rsn-price-red);
}

/* 注意事項 */
.rsn-detail__notice {
    padding: 10px 30px;
    background: #FFF;
    border-radius: 5px;
}

.rsn-detail__notice-item {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.rsn-detail__notice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #EEEEEE;
    border-radius: 50%;
    font-size: 16px;
    color: var(--rsn-text);
}

.rsn-detail__notice-inner {
    border-top: 1px dotted #DDDDDD;
    padding: 20px 0;
}

.rsn-detail__notice-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    font-size: 13px;
    color: var(--rsn-text);
    line-height: 1.8;
}

.rsn-detail__notice-list li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 12px;
}

.rsn-detail__notice-list li:last-child {
    margin-bottom: 0;
}

.rsn-detail__notice-list li::before {
    content: "※ ";
    position: absolute;
    left: 0;
    top: 0;
}


/* ==========================================================
   22. フロー — XD: single white container border #231815 r5,
   STEP 13px Lato, title 20px Bold, desc 16px, dashed separators
   ========================================================== */
.rsn-flow-steps {
    display: flex;
    align-items: stretch;
    background: #FFFFFF;
    border: 1px solid #000;
    border-radius: 5px;
    overflow: hidden;
}

.rsn-flow-steps__item {
    flex: 1;
    text-align: center;
    padding: var(--rsn-space-lg) var(--rsn-space-md);
    border-right: 1px dotted #CCCCCC;
}

.rsn-flow-steps__item:last-of-type {
    border-right: none;
}

.rsn-flow-steps__num {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--rsn-text);
    letter-spacing: 0.26px;
    line-height: 1.2;
    margin-bottom: var(--rsn-space-sm);
    background: #FFFCE0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.rsn-flow-steps__num small {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.rsn-flow-steps__num strong {
    font-size: 22px;
    font-weight: 900;
}

.rsn-flow-steps__title {
    font-size: 20px;
    font-weight: var(--rsn-weight-bold);
    line-height: 28px;
    letter-spacing: 1px;
    margin: 0 0 var(--rsn-space-xs);
}

.rsn-flow-steps__desc {
    font-size: 16px;
    color: var(--rsn-text);
    line-height: 24px;
    letter-spacing: 0.8px;
    margin: 0;
}

.rsn-flow-steps__arrow {
    display: none;
}

@media screen and (max-width: 640px) {
    .rsn-flow-steps {
        flex-direction: column;
    }

    .rsn-flow-steps__item {
        display: grid;
        grid-template-columns: 60px 1fr;
        grid-template-areas:
            "badge title"
            "badge desc";
        gap: 2px 16px;
        text-align: left;
        border-right: none;
        border-bottom: 1px dotted #CCCCCC;
        padding: 24px 20px;
        align-items: center;
    }

    .rsn-flow-steps__item:last-of-type {
        border-bottom: none;
    }

    .rsn-flow-steps__num {
        grid-area: badge;
        margin-bottom: 0;
        margin-top: 0;
    }

    .rsn-flow-steps__title {
        grid-area: title;
        font-size: 16px;
        line-height: 1.4;
        margin: 0;
        align-self: end;
    }

    .rsn-flow-steps__desc {
        grid-area: desc;
        font-size: 13px;
        line-height: 1.6;
        margin: 0;
        align-self: start;
    }

    .rsn-flow-steps__desc br {
        display: none;
    }
}


/* ==========================================================
   23. 相談CTA — XD: white outline pill btns #796447,
   phone Lato 36px 900 #796447, hours 16px Bold #796447
   ========================================================== */
.rsn-consult-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--rsn-space-md);
    max-width: 480px;
    margin: 0 auto;
}

.rsn-consult-cta__tel-section {
    width: 100%;
    max-width: 800px;
    background: #FFFFFF;
    padding: var(--rsn-space-lg);
    border-radius: var(--rsn-radius-md);
    text-align: center;
    margin-top: var(--rsn-space-md);
}

.rsn-consult-cta__tel-heading {
    font-size: var(--rsn-text-md);
    font-weight: var(--rsn-weight-bold);
    margin: 0 0 var(--rsn-space-sm);
}

.rsn-consult-cta__tel-label {
    font-size: var(--rsn-text-base);
    font-weight: var(--rsn-weight-normal);
    margin: 0 0 4px;
    color: var(--rsn-text-sub);
}

.rsn-consult-cta__tel-note {
    font-size: var(--rsn-text-sm);
    font-weight: var(--rsn-weight-normal);
    color: var(--rsn-text-sub);
    margin: var(--rsn-space-sm) 0;
    line-height: 1.6;
}

.rsn-consult-cta__tel-btn {
    margin-top: var(--rsn-space-sm);
}

@media screen and (min-width: 641px) {
    .rsn-consult-cta {
        flex-direction: row;
        flex-wrap: wrap;
        max-width: none;
        justify-content: center;
    }
}

.rsn-consult-cta__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 56px;
    background: #FFFFFF;
    border: 1px solid #796447;
    border-radius: 100px;
    font-weight: var(--rsn-weight-bold);
    font-size: 17px;
    color: #796447 !important;
    letter-spacing: 0.68px;
    line-height: 25px;
    text-decoration: none !important;
    transition: var(--rsn-transition);
}

.rsn-consult-cta__btn:hover {
    background: #796447;
    color: #fff !important;
}

@media screen and (min-width: 641px) {
    .rsn-consult-cta__btn {
        width: auto;
    }
}

.rsn-consult-cta__btn--line {
    /* same outline style as default */
}

.rsn-consult-cta__btn--mail {
    /* same outline style as default */
}

.rsn-consult-cta__tel {
    text-align: center;
    width: 100%;
    margin-top: var(--rsn-space-md);
}

.rsn-consult-cta__tel-number {
    font-family: 'Lato', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: #796447 !important;
    letter-spacing: 0.72px;
    line-height: 30px;
    text-decoration: none !important;
}

.rsn-consult-cta__tel-hours {
    font-size: 16px;
    font-weight: var(--rsn-weight-bold);
    color: #796447;
    letter-spacing: 0.32px;
    line-height: 30px;
    margin: 4px 0 0;
}

@media screen and (max-width: 640px) {

    /* 相談CTA: LINE・メールボタン */
    .rsn-consult-cta__btn--line,
    .rsn-consult-cta__btn--mail {
        white-space: nowrap;
        height: 50px;
    }

    /* 相談CTA: 電話ラベル */
    .rsn-consult-cta__tel-label {
        font-size: 32px;
    }

    .rsn-consult-cta__tel-label img {
        display: unset;
    }

    /* 相談CTA: 電話ボタン */
    .rsn-consult-cta__tel-btn {
        padding: 8px;
        width: 80%;
    }
}


/* ==========================================================
   24. モーダル — 03: §6
   ========================================================== */
.rsn-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rsn-modal[hidden] {
    display: none;
}

.rsn-modal__overlay {
    position: absolute;
    inset: 0;
    background: var(--rsn-overlay);
}

.rsn-modal__content {
    position: relative;
    background: var(--rsn-white);
    border-radius: var(--rsn-radius-lg);
    width: 90%;
    max-width: 400px;
    overflow: hidden;
}

.rsn-modal__header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px var(--rsn-space-lg);
    background: #000000;
    color: var(--rsn-white);
    position: relative;
}

.rsn-modal__title {
    margin: 0;
    font-size: 18px;
    font-weight: var(--rsn-weight-bold);
    letter-spacing: 0.9px;
}

.rsn-modal__close {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--rsn-white);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    font-weight: 300;
}

.rsn-modal__body {
    padding: 24px 24px 32px;
}

.rsn-modal__sub {
    text-align: center;
    color: #000;
    font-weight: var(--rsn-weight-bold);
    font-size: 16px;
    margin: 0 0 4px;
    letter-spacing: 0.8px;
}

.rsn-modal__sub+.rsn-modal__sub {
    font-size: 14px;
    font-weight: var(--rsn-weight-normal);
    margin: 0 0 24px;
}

.rsn-modal__tel-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rsn-modal__tel-list li {
    padding: 0;
    border: none;
}

.rsn-modal__tel-link {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid #EBEBEB;
    border-radius: 4px;
    text-decoration: none !important;
    color: #000 !important;
    transition: var(--rsn-transition);
}

.rsn-modal__tel-link:hover {
    background: #FAFAFA;
}

.rsn-modal__tel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.rsn-modal__tel-name {
    font-size: 15px;
    font-weight: var(--rsn-weight-bold);
    color: #000;
    flex: 1;
}

.rsn-modal__tel-num {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    margin-right: 12px;
}

.rsn-modal__tel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ==========================================================
   商品カード 価格・ラベルの調整 (XDカンプ準拠)
   ========================================================== */
.rsn-product-card__prices {
    margin-top: 12px;
}

.rsn-product-card__price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px !important;
    position: relative;
}

.rsn-product-card__price--sub {
    margin-top: 16px;
    margin-bottom: 0 !important;
}

.rsn-product-card__price-type {
    display: inline-block;
    width: 76px;
    padding: 6px 0;
    font-size: 13px;
    font-weight: var(--rsn-weight-bold);
    text-align: center;
    border-radius: 2px;
    white-space: nowrap;
    line-height: 1;
}

/* 中古品 (Main) */
.rsn-product-card__price:not(.rsn-product-card__price--sub) .rsn-product-card__price-type {
    background: var(--rsn-price-row-campaign);
    color: var(--rsn-price-red);
}

/* 未使用品 (Sub) */
.rsn-product-card__price--sub .rsn-product-card__price-type {
    background: var(--rsn-price-row-unused);
    color: var(--rsn-text);
}

.rsn-product-card__price-value {
    font-size: 24px !important;
    font-weight: var(--rsn-weight-bold);
    line-height: 1;
}

.rsn-product-card__price:not(.rsn-product-card__price--sub) .rsn-product-card__price-value {
    color: var(--rsn-price-red) !important;
}

.rsn-product-card__price--sub .rsn-product-card__price-value {
    color: var(--rsn-text) !important;
}

.rsn-product-card__price-campaign {
    position: absolute;
    top: -16px;
    left: 88px;
    /* 76px(width) + 12px(gap) */
    font-size: 11px;
    font-weight: var(--rsn-weight-bold);
    color: var(--rsn-price-red);
}

.rsn-product-card__action {
    display: flex;
    justify-content: center;
    padding: 16px 0 0 !important;
}

.rsn-product-card__action .rsn-btn {
    width: 100%;
    border-radius: 9999px;
    /* ボタンの角丸が崩れないように維持 */
}

/* ホバー時にテキストが確実に白になるよう強制（aタグ等から継承される黒を上書き） */
.rsn-product-card:hover .rsn-product-card__action .rsn-btn--secondary,
.rsn-product-card__action .rsn-btn--secondary:hover {
    color: #fff !important;
}

/* ==========================================================
   最近見たモデル カード (XDカンプ準拠)
   ========================================================== */
.rsn-product-card--recent {
    flex-direction: column;
    border: none;
    background: transparent;
    border-radius: 0;
    box-shadow: none !important;
}

@media screen and (max-width: 640px) {
    .rsn-product-card--recent {
        min-width: 170px;
        width: 170px;
    }
}

.rsn-product-card--recent .rsn-product-card__header {
    display: block;
    line-height: 1;
}

.rsn-product-card--recent .rsn-product-card__label {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    margin-bottom: 5px;
    border-radius: 2px 2px 0 0;
}

.rsn-product-card--recent .rsn-product-card__label--gold {
    background: #C19500 !important;
}

.rsn-product-card--recent .rsn-product-card__image-link {
    display: block;
    text-decoration: none;
    margin-bottom: 12px;
}

.rsn-product-card--recent .rsn-product-card__image {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid var(--rsn-border, #ddd);
    border-top-left-radius: 0;
    border-radius: 4px;
    background: #fff;
    padding: 10px;
    box-sizing: border-box;
}

.rsn-product-card--recent .rsn-product-card__header+.rsn-product-card__image-link .rsn-product-card__image {
    border-top-left-radius: 0;
}

.rsn-product-card--recent .rsn-product-card__body {
    padding: 0;
    display: block;
}

.rsn-product-card--recent .rsn-product-card__name {
    font-size: 13px;
    font-weight: normal;
    color: var(--rsn-text, #333);
    line-height: 1.5;
    margin-bottom: 16px;
    /* Optional truncation */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 38px;
}

.rsn-product-card--recent .rsn-product-card__prices {
    margin-top: 0;
}

.rsn-product-card--recent .rsn-product-card__price {
    gap: 8px;
    margin-bottom: 12px !important;
}

.rsn-product-card--recent .rsn-product-card__price-type {
    width: 50px;
    font-size: 11px;
    padding: 4px 0;
    text-align: center;
    background: #FFEDED;
    /* Light pink background */
    color: #D80000;
    /* Red text */
}

.rsn-product-card--recent .rsn-product-card__price-campaign {
    left: 58px;
    top: -14px;
    font-size: 10px;
    color: #D80000;
}

.rsn-product-card--recent .rsn-product-card__price-value {
    font-size: 20px !important;
}

.rsn-product-card--recent .rsn-product-card__price--sub {
    margin-top: 8px;
    margin-bottom: 0 !important;
}

.rsn-product-card--recent .rsn-product-card__price--sub .rsn-product-card__price-type {
    background: #E6F5F2;
    /* Light cyan background */
    color: #000;
    /* Black text */
}

.rsn-product-card--recent .rsn-product-card__price--sub .rsn-product-card__price-value {
    font-size: 18px !important;
}

.rsn-product-card--recent .rsn-product-card__action {
    padding: 16px 0 0 !important;
}

.rsn-product-card--recent .rsn-product-card__action .rsn-btn {
    font-size: 14px;
    font-weight: bold;
    color: #847250;
    border: 1px solid #847250;
    padding: 10px 16px;
    border-radius: 100px;
    background: transparent;
}

/* ==========================================================
   PC左下追従 買取相場チェック
   ========================================================== */
.rsn-sticky-search {
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 100;
    width: 270px;
    height: 295px;
    display: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media screen and (min-width: 641px) {
    .rsn-sticky-search.rsn-u-pc-only {
        display: block;
    }
}

/* ✕ボタン・localStorage用: 即時非表示（アニメーションなし） */
.rsn-sticky-search.is-hidden {
    display: none !important;
}

/* FVスクロール用: 下方向スライドアウト（アニメーション付き） */
.rsn-sticky-search.is-slide-out {
    transform: translateY(calc(100% + 20px));
}

.rsn-sticky-search__inner {
    position: relative;
    background: #fff;
    border: 3px solid #000;
    border-radius: 12px;
    width: 100%;
    height: 100%;
    padding: 24px 16px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rsn-sticky-search__close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 0;
}

.rsn-sticky-search__title {
    position: relative;
    font-size: 11px;
    font-weight: bold;
    color: #000;
    margin: 0 0 4px;
    text-align: center;
    padding: 0 20px;
    line-height: 1.4;
}

.rsn-sticky-search__title::before,
.rsn-sticky-search__title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 1.5px;
    height: 120%;
    background: #000;
}

.rsn-sticky-search__title::before {
    left: 8px;
    transform: translateY(-50%) rotate(-15deg);
}

.rsn-sticky-search__title::after {
    right: 8px;
    transform: translateY(-50%) rotate(15deg);
}

.rsn-sticky-search__title strong {
    display: block;
    font-size: 14px;
    color: #000;
    line-height: 1.2;
    margin-top: 4px;
}

/* 内部フォーム等の余白調整 */
.rsn-sticky-search .rsn-kaitori-search__brand-btn {
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid #DDD;
    background: linear-gradient(180deg, #FFFFFF 0%, #EDEDED 100%);
}

.rsn-sticky-search .rsn-kaitori-search__form {
    margin: 0;
    display: flex;
}

.rsn-sticky-search .rsn-kaitori-search__input {
    flex: 1;
    padding: 8px 0 8px 36px;
    border: 1px solid var(--rsn-border, #DDD);
    border-right: none;
    border-radius: 5px 0 0 5px;
    font-size: 13px;
    font-weight: bold;
    background: #fff url(../img/icons/search.svg) no-repeat 12px center;
    background-size: 16px 16px;
    outline: none;
    min-width: 0;
}

.rsn-sticky-search .rsn-kaitori-search__input::placeholder {
    color: var(--rsn-text-muted, #767676);
    font-weight: normal;
}

.rsn-sticky-search .rsn-kaitori-search__mic {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px 0 8px;
    background: #fff;
    border: 1px solid var(--rsn-border, #DDD);
    border-left: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: var(--rsn-transition, 0.3s ease);
}

.rsn-sticky-search__submit-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: var(--rsn-white, #fff);
    color: var(--rsn-gold, #796447);
    border: 1px solid var(--rsn-gold, #796447);
    border-radius: 100px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
    text-align: center;
}

.rsn-sticky-search__submit-btn:hover {
    background: var(--rsn-gold, #796447);
    color: var(--rsn-white, #fff);
}

.rsn-sticky-search__photo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    background: var(--rsn-gold, #796447);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 14px;
    border-radius: 6px;
    box-sizing: border-box;
    transition: 0.3s ease;
}

.rsn-sticky-search__photo-btn:hover {
    opacity: 0.8;
}

.rsn-sticky-search__photo-btn img {
    filter: brightness(0) invert(1);
}


/* ==========================================================
   25. ブランドモーダル固有スタイル
   ベース: .rsn-modal（§24）
   ========================================================== */

/* モーダルコンテンツ — ブランド用はフルスクリーン寄り */
.rsn-modal--brand .rsn-modal__content {
    max-width: 980px;
    width: 94%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: #F0F0F0;
    font-family: var(--rsn-font-base);
}

.rsn-modal--brand .rsn-modal__body {
    overflow-y: auto;
    padding: 25px 60px 60px;
    flex: 1;
}

/* --- 注目ブランド: rsn-brand-card を3列で再利用 --- */
.rsn-brand-modal__featured-label {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: 0.5px;
}

.rsn-modal--brand .rsn-brand-modal__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.rsn-modal--brand .rsn-brand-card {
    border: 1px solid #DDD;
    border-radius: 5px;
}

/* モーダル内ではカードのテキストサイズを縮小 */
.rsn-modal--brand .rsn-brand-card__text p {
    font-size: 15px;
}

.rsn-modal--brand .rsn-brand-card__text small {
    font-size: 10px;
}

/* --- あいうえお行ナビ --- */
.rsn-brand-modal__kana-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.rsn-brand-modal__kana-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 30px;
    font-size: 12px;
    color: var(--rsn-text) !important;
    text-decoration: none !important;
    border-radius: 50px;
    background: #FFF;
    transition: background 0.2s, border-color 0.2s;
}

.rsn-brand-modal__kana-nav a:hover {
    background: #F5F5F5;
    border-color: #999;
}

/* --- ブランド行セクション --- */
.rsn-brand-modal__section {
    margin-bottom: 16px;
    background: #FFF;
    border-radius: 5px;
    padding: 16px;
}

.rsn-brand-modal__section-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: 0.5px;
}

.rsn-brand-modal__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 70px;
}

.rsn-brand-modal__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 6px;
    cursor: pointer;
    transition: background 0.15s;
    border-top: 1px dotted #DDD;
    min-width: 0;
}

.rsn-brand-modal__item>img {
    flex-shrink: 0;
}

.rsn-brand-modal__item:hover {
    opacity: 0.7;
}

.rsn-brand-modal__item img:first-child {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    background: #FFF;
}

.rsn-brand-modal__item-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.rsn-brand-modal__item-en {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--rsn-font-serif);
}

.rsn-brand-modal__item-ja {
    font-size: 12px;
    color: #000;
    line-height: 1.3;
    letter-spacing: 0.3px;
    font-family: var(--rsn-font-base);
}


/* レスポンシブ */
@media screen and (max-width: 640px) {
    .rsn-modal--brand .rsn-modal__content {
        max-width: none;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }

    .rsn-modal--brand .rsn-modal__body {
        padding: 30px 15px 60px;
    }

    .rsn-modal--brand .rsn-modal__header {
        position: sticky;
        top: 0;
        z-index: 10;
        border-radius: 0;
    }

    .rsn-modal--brand .rsn-brand-modal__grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .rsn-brand-modal__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .rsn-brand-modal__kana-nav {
        gap: 8px;
    }

    .rsn-brand-modal__kana-nav a {
        width: calc(20% - 7px);
        height: 32px;
        font-size: 13px;
        border: 1px solid #EBEBEB;
    }
}

/* ==========================================================
   20. GNサーチ 検索結果ページ (.rsn-ec-search)
   ========================================================== */
.rsn-ec-search {
    padding: 30px 0 60px;
    background: #fff;
}

.rsn-ec-search__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.rsn-ec-search__status {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: bold;
    color: #1a1a2e;
}

.rsn-ec-search__layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* --- サイドバー --- */
.rsn-ec-search__sidebar {
    flex: 0 0 260px;
    min-width: 260px;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.rsn-ec-search__sidebar-title {
    font-size: 16px;
    font-weight: bold;
    color: #1a1a2e;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #c9a96e;
}

/* --- メインエリア --- */
.rsn-ec-search__main {
    flex: 1;
    min-width: 0;
}

.rsn-ec-search__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.rsn-ec-search__pagination {
    margin-top: 30px;
    text-align: center;
}

.rsn-ec-search__history {
    margin-top: 40px;
}

/* --- GNサーチ コンポーネント上書き --- */
.rsn-ec-search ._ec_component ._attributegroup>._group {
    font-size: 14px;
    font-weight: bold;
    color: #1a1a2e;
    margin-top: 16px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e8e8e8;
}

/* --- GNサーチ結果のグリッド化 & カードデザイン適用 --- */
.rsn-ec-search ._ec_component ._searchresults>._items {
    display: grid !important;
    gap: 20px 10px;
    padding: 0;
    border: none;
    grid-template-columns: repeat(2, 1fr);
}

@media screen and (min-width: 769px) {
    .rsn-ec-search ._ec_component ._searchresults>._items {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.rsn-ec-search ._ec_component ._searchresults>._items>._item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0 !important;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    /* card max height prevention when image fails */
    max-height: none;
}

/* 画像ラッパー 1:1アスペクト比で404でもレイアウトを保つ */
.rsn-ec-search ._ec_component ._searchresults>._items>._item>._image {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    background-color: #f5f5f5;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

.rsn-ec-search ._ec_component ._searchresults>._items>._item>._image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 買取強化ラベル (additional_text1等で出力されると想定) */
.rsn-ec-search ._ec_component ._item [class*="_additional_text"],
.rsn-ec-search ._ec_component ._item ._marker {
    position: relative;
}

/* 商品タイトル */
.rsn-ec-search ._ec_component ._item ._title {
    font-size: 12px;
    line-height: 1.4;
    padding: 12px 12px 0;
    margin: 0;
    color: #333;
    /* 2行でクリップ */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    height: 3.4em;
    /* ~2.8 to 3.4 for 2 lines depending on lh */
}

@media screen and (min-width: 769px) {
    .rsn-ec-search ._ec_component ._item ._title {
        font-size: 14px;
    }
}

/* テキスト情報まとめエリア（価格、ボタン等） */
.rsn-ec-search ._ec_component ._item ._detail {
    padding: 10px 12px 16px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 4px 8px;
    flex-grow: 1;
    align-content: start;
}

/* 買取強化商品 (リボン) */
.rsn-ec-search ._ec_component ._item ._additional_text1 {
    position: absolute;
    top: 0;
    left: 0;
    background: #0084CC;
    color: #FFF !important;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
    margin: 0;
}

/* 中古品ラベル */
.rsn-ec-search ._ec_component ._item ._additional_text2 {
    background: #FFE8E8;
    color: #D00;
    padding: 4px 0;
    text-align: center;
    border-radius: 2px;
    font-size: 11px;
    font-weight: bold;
    width: 76px;
    margin: 0;
}

/* 中古品価格 (キャンペーン価格) */
.rsn-ec-search ._ec_component ._item ._additional_text3 {
    color: #D00;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    display: flex;
    flex-direction: column;
    /* トップページの「キャンペーン価格」という赤文字に寄せる */
}

.rsn-ec-search ._ec_component ._item ._additional_text3::before {
    content: "キャンペーン価格";
    font-size: 9px;
    color: #D00;
    margin-bottom: 2px;
}

/* 未使用品ラベル */
.rsn-ec-search ._ec_component ._item ._additional_text4 {
    background: #CFEAE7;
    color: #333;
    padding: 4px 0;
    text-align: center;
    border-radius: 2px;
    font-size: 11px;
    font-weight: bold;
    width: 76px;
    margin: 0;
}

/* 未使用品価格 */
.rsn-ec-search ._ec_component ._item ._additional_text5 {
    color: #333;
    font-size: 16px;
    font-weight: normal;
    margin: 0;
}

/* 買取金額推移を見る (擬似CTAボタン) */
/* GNサーチのカード全体が<a>タグであることを活かし、ボタン部分をCSSで描画 */
.rsn-ec-search ._ec_component ._item ._detail::after {
    content: "買取金額推移を見る";
    display: block;
    grid-column: 1 / -1;
    margin-top: 12px;
    padding: 8px 0;
    border: 1px solid #79664E;
    border-radius: 9999px;
    text-align: center;
    color: #79664E;
    font-size: 13px;
    font-weight: bold;
    background: #fff;
    transition: all 0.3s;
}

.rsn-ec-search ._ec_component ._item:hover ._detail::after {
    background: #79664E;
    color: #fff;
}

/* --- SP レスポンシブ --- */
@media screen and (max-width: 768px) {
    .rsn-ec-search {
        padding: 20px 0 40px;
    }

    .rsn-ec-search__layout {
        flex-direction: column;
        gap: 20px;
    }

    .rsn-ec-search__sidebar {
        flex: none;
        min-width: 100%;
        position: static;
        max-height: none;
        overflow-y: visible;
    }
}

/* ==========================================================
   12. SPスティッキーフッター（商品詳細用）
   ========================================================== */
.rsn-sp-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex !important;
    background: var(--rsn-white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.rsn-sp-sticky-footer__inner {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    gap: 12px;
    width: 100%;
}

.rsn-sp-sticky-footer__img {
    flex: 0 0 56px;
}

.rsn-sp-sticky-footer__img img {
    width: 100%;
    height: auto;
    display: block;
}

.rsn-sp-sticky-footer__content {
    flex: 1;
    min-width: 0;
}

.rsn-sp-sticky-footer__title {
    font-size: 13px;
    font-weight: var(--rsn-weight-bold);
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 6px;
}

.rsn-sp-sticky-footer__price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 4px;
}

.rsn-sp-sticky-footer__badge {
    background: var(--rsn-price-row-campaign, #FFE8E8);
    color: var(--rsn-price-red, #DD0000);
    font-size: 10px;
    font-weight: var(--rsn-weight-bold);
    padding: 4px 6px;
    border-radius: 2px;
    white-space: nowrap;
}

.rsn-sp-sticky-footer__price {
    color: var(--rsn-price-red, #DD0000);
    font-size: 12px;
    font-weight: var(--rsn-weight-bold);
    display: inline-flex;
    align-items: baseline;
}

.rsn-sp-sticky-footer__price-num {
    font-size: 16px;
    margin-left: 2px;
}

.rsn-sp-sticky-footer__cta {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #000 !important;
    font-weight: var(--rsn-weight-bold);
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

.rsn-sp-sticky-footer__cta img {
    transform: rotate(90deg);
    width: 16px;
    height: 16px;
}

@media screen and (min-width: 641px) {
    .rsn-sp-sticky-footer {
        display: none !important;
    }
}

/* SPスティッキーフッター表示時のbody余白 */
@media screen and (max-width: 640px) {
    body:has(.rsn-sp-sticky-footer) {
        padding-bottom: 90px;
    }

    /* 商品詳細ページ: to-topボタンをスティッキーフッターの上に配置 */
    body:has(.rsn-sp-sticky-footer) .to-top {
        bottom: 120px !important;
    }
}

/* ==========================================================
   ドロワーオープン時: sticky→fixed切り替え
   body.overflow=hidden で sticky が無効化されるため、
   ドロワー表示中はヘッダー/キャンペーンバーを fixed に切替
   ========================================================== */
body.rsn-drawer-open .rsn-campaign-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

body.rsn-drawer-open .rsn-header {
    position: fixed;
    top: 30px;
    left: 0;
    right: 0;
}