/* Gamekaitori.jp風 詳細デザイン */

/* 全体設定 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ヘッダートップ */
.ec-headerTop {
    background-color: #f0f0f0;
    font-size: 12px;
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

.ec-headerTop__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ec-headerTop__link {
    color: #666;
    margin-left: 15px;
    text-decoration: none;
}

.ec-headerTop__link:hover {
    color: #ff6600;
}

/* ヘッダーメイン */
.ec-headerMain {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 2px solid #ff6600;
}

.ec-headerMain__inner {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 20px;
    align-items: center;
}

.ec-headerLogo h1 {
    margin: 0;
    font-size: 24px;
}

.ec-headerLogo a {
    color: #ff6600;
    text-decoration: none;
    font-weight: bold;
}

/* 検索エリア */
.ec-headerSearchArea {
    width: 100%;
}

.ec-headerSearchForm__top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-bottom: 5px;
}

.ec-headerSearchForm__select {
    padding: 5px;
    font-size: 12px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}

.ec-headerSearchForm__bottom {
    display: flex;
    gap: 5px;
}

.ec-headerSearchForm__input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.ec-headerSearchForm__btn {
    padding: 8px 20px;
    background-color: #ff6600;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.ec-headerSearchForm__btn:hover {
    background-color: #ff4400;
}

/* ヘッダーアクション */
.ec-headerActions {
    display: flex;
    gap: 20px;
}

.ec-headerActions__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 12px;
}

.ec-headerActions__link:hover {
    color: #ff6600;
}

.ec-headerActions__link i {
    font-size: 20px;
    margin-bottom: 3px;
}

.ec-headerActions__badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff0000;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
}

.ec-headerActions__item {
    position: relative;
}

/* ヘッダーナビ */
.ec-headerNav {
    background-color: #333;
}

.ec-headerNav__inner {
    display: flex;
    align-items: center;
}

.ec-headerNav__category {
    position: relative;
}

.ec-headerNav__categoryBtn {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
}

.ec-headerNav__categoryBtn:hover {
    background-color: #ff4400;
}

.ec-headerNav__categoryMenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 250px;
    display: none;
    z-index: 1000;
}

.ec-headerNav__category:hover .ec-headerNav__categoryMenu {
    display: block;
}

.ec-headerNav__categoryGroup {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.ec-headerNav__categoryTitle {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.ec-headerNav__categoryList {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ec-headerNav__categoryList li {
    padding: 5px 0;
}

.ec-headerNav__categoryList a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
}

.ec-headerNav__categoryList a:hover {
    color: #ff6600;
}

.ec-headerNav__menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.ec-headerNav__menuLink {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.ec-headerNav__menuLink:hover {
    background-color: #444;
}

.ec-headerNav__menuItem--buy .ec-headerNav__menuLink {
    background-color: #ff6600;
}

.ec-headerNav__menuItem--buy .ec-headerNav__menuLink:hover {
    background-color: #ff4400;
}

/* 商品グリッド改良 */
.ec-shelfGrid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.ec-shelfGrid__item {
    background-color: white;
    border: 1px solid #e0e0e0;
    padding: 8px;
    text-align: left;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ec-shelfGrid__item:hover {
    border-color: #ff6600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.ec-shelfGrid__item > a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ec-shelfGrid__badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: #ff0000;
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    font-weight: bold;
}

.ec-shelfGrid__badge--new {
    background-color: #00aa00;
}

.ec-shelfGrid__badge--sale {
    background-color: #ff0000;
}

.ec-shelfGrid__item-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    margin-bottom: 5px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ec-shelfGrid__item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ec-shelfGrid__brand {
    font-size: 10px;
    color: #666;
    margin-bottom: 2px;
}

.ec-shelfGrid__title {
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 5px;
    height: 32px;
    overflow: hidden;
    font-weight: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ec-shelfGrid__price {
    color: #ff0000;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 3px;
    margin-top: auto;
}

.ec-shelfGrid__price--normal {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
    margin-right: 5px;
}

.ec-shelfGrid__stock {
    font-size: 11px;
    margin-bottom: 5px;
}

.ec-shelfGrid__stock--in {
    color: #00aa00;
}

.ec-shelfGrid__stock--few {
    color: #ff6600;
}

.ec-shelfGrid__stock--out {
    color: #ff0000;
}

.ec-shelfGrid__item form {
    margin-top: auto;
}

.ec-blockBtn--action {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 6px 8px;
    font-size: 11px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background-color 0.3s ease;
}

.ec-blockBtn--action:hover {
    background-color: #ff4400;
}

.ec-blockBtn--action:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.ec-blockBtn--action i {
    font-size: 12px;
}

/* 買取価格エリア */
.ec-buyPriceArea {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    padding: 15px;
    margin-bottom: 20px;
}

.ec-buyPriceArea__title {
    font-size: 16px;
    font-weight: bold;
    color: #856404;
    margin-bottom: 10px;
}

.ec-buyPriceArea__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.ec-buyPriceArea__item {
    background-color: white;
    padding: 10px;
    border: 1px solid #ffc107;
    text-align: center;
}

.ec-buyPriceArea__name {
    font-size: 12px;
    margin-bottom: 5px;
}

.ec-buyPriceArea__price {
    font-size: 18px;
    font-weight: bold;
    color: #ff0000;
}

/* 情報密度の高いレイアウト */
.ec-mainContent {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 15px;
    margin-top: 20px;
}

.ec-mainContent__side {
    background-color: #f8f8f8;
    padding: 10px;
}

.ec-mainContent__main {
    background-color: white;
}

/* レスポンシブ調整 */
@media (max-width: 1200px) {
    .ec-shelfGrid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .ec-mainContent {
        grid-template-columns: 180px 1fr 180px;
    }
}

@media (max-width: 992px) {
    .ec-shelfGrid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ec-headerMain__inner {
        grid-template-columns: 1fr;
    }
    
    .ec-headerSearchForm__top {
        grid-template-columns: 1fr;
    }
    
    .ec-mainContent {
        grid-template-columns: 1fr;
    }
    
    .ec-mainContent__side {
        display: none;
    }
}

@media (max-width: 576px) {
    .ec-shelfGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 追加スタイル */

/* 緊急告知バナー */
.ec-alertBanner {
    background-color: #ff6600;
    color: white;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
}

/* サイドナビ */
.ec-sideNav {
    background-color: white;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

.ec-sideNav__title {
    background-color: #f0f0f0;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: bold;
    margin: 0;
    border-bottom: 1px solid #ddd;
}

.ec-sideNav__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ec-sideNav__list li {
    border-bottom: 1px solid #eee;
}

.ec-sideNav__list a {
    display: block;
    padding: 8px 10px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
}

.ec-sideNav__list a:hover {
    background-color: #fff5ee;
    color: #ff6600;
}

/* サイドランキング */
.ec-sideRanking {
    background-color: white;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

.ec-sideRanking__title {
    background-color: #ff6600;
    color: white;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: bold;
    margin: 0;
}

.ec-sideRanking__list {
    list-style: none;
    padding: 10px;
    margin: 0;
}

.ec-sideRanking__list li {
    padding: 8px 0;
    border-bottom: 1px dotted #ddd;
    font-size: 12px;
}

.ec-sideRanking__list .rank {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #ff6600;
    color: white;
    text-align: center;
    line-height: 20px;
    font-size: 11px;
    margin-right: 5px;
}

.ec-sideRanking__list .price {
    float: right;
    color: #ff0000;
    font-weight: bold;
}

/* タブエリア */
.ec-tab {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 2px solid #ff6600;
}

.ec-tab__item {
    padding: 10px 20px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-bottom: none;
    margin-right: 5px;
    cursor: pointer;
    font-size: 14px;
}

.ec-tab__item.active {
    background-color: white;
    color: #ff6600;
    font-weight: bold;
}

.ec-tabContent {
    padding: 20px 0;
}

/* カテゴリセクション */
.ec-categorySection {
    margin-top: 40px;
}

/* サイドニュース */
.ec-sideNews {
    background-color: white;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

.ec-sideNews__title {
    background-color: #f0f0f0;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: bold;
    margin: 0;
    border-bottom: 1px solid #ddd;
}

.ec-sideNews__list {
    list-style: none;
    padding: 10px;
    margin: 0;
}

.ec-sideNews__list li {
    padding: 5px 0;
    font-size: 12px;
}

.ec-sideNews__list .date {
    color: #666;
    font-size: 11px;
    margin-right: 5px;
}

/* サイドバナー */
.ec-sideBanners a {
    display: block;
    margin-bottom: 10px;
}

.ec-sideBanners img {
    width: 100%;
    height: auto;
}

/* SNSボタン */
.ec-sideSns {
    background-color: white;
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
}

.ec-sideSns__title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}

.ec-sideSns__buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.ec-sideSns__buttons a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    color: white;
    font-size: 18px;
}

.ec-sideSns__buttons .twitter { background-color: #1da1f2; }
.ec-sideSns__buttons .facebook { background-color: #1877f2; }
.ec-sideSns__buttons .instagram { background-color: #e4405f; }
.ec-sideSns__buttons .youtube { background-color: #ff0000; }

/* 下部バナー */
.ec-bottomBanners {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.ec-bottomBanners img {
    width: 100%;
    height: auto;
}