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

:root {
    --main-bg: #ffffff;
    --sub-bg: #f8f8f8;
    --border-color: #e0e0e0;
    --text-color: #333333;
    --link-color: #0066cc;
    --price-color: #ff0000;
    --button-bg: #ff6600;
    --button-hover: #ff4400;
    --header-bg: #ffffff;
}

/* リセット */
* {
    box-sizing: border-box;
}

body {
    font-family: "メイリオ", Meiryo, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "MS Pゴシック", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--main-bg);
    margin: 0;
    padding: 0;
}

/* ヘッダー */
.ec-headerNaviRole {
    background-color: var(--header-bg);
    border-bottom: 2px solid var(--border-color);
    padding: 10px 0;
}

.ec-headerNaviRole .container {
    max-width: 1200px;
}

.ec-headerTitle__title {
    font-size: 24px;
    font-weight: normal;
}

.ec-headerTitle__title a {
    color: var(--text-color);
    text-decoration: none;
}

.ec-headerNav__item a {
    color: var(--text-color);
    font-size: 12px;
    padding: 5px 10px;
}

.ec-headerSearch__category {
    background-color: var(--sub-bg);
    border: 1px solid var(--border-color);
    padding: 5px;
    font-size: 12px;
}

.ec-headerSearch__keyword {
    border: 1px solid var(--border-color);
    padding: 5px;
    font-size: 12px;
    width: 300px;
}

.ec-headerSearch__keywordBtn {
    background-color: var(--button-bg);
    color: white;
    border: none;
    padding: 5px 15px;
    font-size: 12px;
    cursor: pointer;
}

.ec-headerSearch {
    display: flex;
    align-items: center;
    gap: 5px;
}

.searchform {
    display: flex;
    width: 100%;
    gap: 5px;
}

/* ヘッダーメニュー */
.ec-headerMenuArea {
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

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

.ec-headerMenu__item {
    margin: 0;
}

.ec-headerMenu__item a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.ec-headerMenu__item a:hover {
    background-color: #fff;
    color: var(--button-bg);
}

/* メインビジュアル */
.ec-sliderRole {
    margin-bottom: 20px;
}

.main_visual img {
    width: 100%;
    height: auto;
}

/* カテゴリメニュー */
.ec-categoryNav {
    background-color: var(--sub-bg);
    border: 1px solid var(--border-color);
    padding: 10px;
    margin-bottom: 20px;
}

.ec-categoryNav__title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

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

.ec-categoryNav__item {
    padding: 3px 0;
}

.ec-categoryNav__link {
    color: var(--link-color);
    font-size: 12px;
    text-decoration: none;
}

.ec-categoryNav__link:hover {
    text-decoration: underline;
}

/* メインコンテンツ */
.ec-mainContent {
    display: flex;
    gap: 20px;
}

.ec-mainContent__main {
    flex: 1;
}

.ec-mainContent__side {
    width: 200px;
}

/* 商品リスト */
.ec-shelfRole {
    background-color: white;
    padding: 15px;
    border: 1px solid var(--border-color);
}

.ec-shelfGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.ec-shelfGrid__item {
    background-color: white;
    border: 1px solid var(--border-color);
    padding: 10px;
    text-align: center;
}

.ec-shelfGrid__item-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    margin-bottom: 10px;
}

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

.ec-shelfGrid__title {
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 5px;
    height: 32px;
    overflow: hidden;
}

.ec-shelfGrid__price {
    color: var(--price-color);
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.ec-blockBtn--action {
    background-color: var(--button-bg);
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    width: 100%;
}

.ec-blockBtn--action:hover {
    background-color: var(--button-hover);
}

/* セクションヘッダー */
.ec-secHeading {
    font-size: 16px;
    font-weight: bold;
    padding: 10px;
    background-color: var(--sub-bg);
    border-left: 4px solid var(--button-bg);
    margin-bottom: 15px;
}

/* 情報セクション */
.ec-infoSection {
    background-color: var(--sub-bg);
    border: 1px solid var(--border-color);
    padding: 15px;
    margin-bottom: 20px;
}

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

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

.ec-infoSection__item {
    padding: 5px 0;
    border-bottom: 1px dotted var(--border-color);
}

.ec-infoSection__link {
    color: var(--link-color);
    font-size: 12px;
    text-decoration: none;
}

/* バナーエリア */
.ec-bannerArea {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.ec-bannerArea__item {
    background-color: var(--sub-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
}

.ec-bannerArea__title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.ec-bannerArea__text {
    font-size: 12px;
    color: #666;
}

/* フッター */
.ec-footerRole {
    background-color: var(--sub-bg);
    border-top: 2px solid var(--border-color);
    padding: 20px 0;
    margin-top: 40px;
}

.ec-footerNavi__link {
    color: var(--text-color);
    font-size: 12px;
    margin: 0 10px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .ec-mainContent {
        flex-direction: column;
    }
    
    .ec-mainContent__side {
        width: 100%;
    }
    
    .ec-shelfGrid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ec-bannerArea {
        grid-template-columns: 1fr;
    }
    
    .ec-headerSearch__keyword {
        width: 100%;
    }
}

/* トップページ専用スタイル */
.front_page .ec-topBanner {
    margin-bottom: 20px;
}

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

.front_page .ec-newsSection {
    background-color: white;
    border: 1px solid var(--border-color);
    padding: 15px;
    margin-bottom: 20px;
}

.front_page .ec-newsSection__title {
    font-size: 14px;
    font-weight: bold;
    padding: 5px 10px;
    background-color: var(--sub-bg);
    margin-bottom: 10px;
}

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

.front_page .ec-newsSection__item {
    padding: 8px 0;
    border-bottom: 1px dotted var(--border-color);
}

.front_page .ec-newsSection__date {
    color: #666;
    font-size: 11px;
    margin-right: 10px;
}

.front_page .ec-newsSection__text {
    font-size: 12px;
}

/* 買取手順 */
.ec-flowSection {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
}

.ec-flowSection__title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.ec-flowSection__list {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
}

.ec-flowSection__item {
    text-align: center;
    flex: 1;
}

.ec-flowSection__number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: var(--button-bg);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-bottom: 10px;
}

.ec-flowSection__text {
    font-size: 12px;
}