.txtc {
    text-align: center;
}

.dcolor,
.title {
    color: #3b5998;
}

.mgnt10 {
    margin-top: 10px;
}

.article_text {
    margin-top: 20px;
}

.article_text #count {
    text-align: right;
}

.article_text #count span {
    color: red;
    font-size: 20px;
    font-weight: 700;
}

.mgnt20,
.title {
    margin-top: 20px;
}

.bdrb,
.title {
    border-bottom: 2px solid #3b5998;
}

.article_text:after {
    content: ".";
    height: 0px;
    clear: both;
    visibility: hidden;
    font-size: 0.1em;
}

div#content {
    display: flex;
    align-items: flex-start;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    width: 100%;
    min-width: 600px;
    max-width: 2000px;
}

div#left_side {
    flex-shrink: 0;
    width: 200px;
    margin-left: 20px;
    margin-right: 20px;
}

div#right_side {
    flex-shrink: 0;
    order: 3;
    width: 200px;
    margin-left: 20px;
    margin-right: 20px;
}

div#center_main {
    flex: 1;
    order: 2;
    min-width: 0;
}

.breadcrumb {
    font-size: 12px;
    color: #888;
    margin: 8px 20px 12px;
}

.breadcrumb a {
    color: #888;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.fnts18 {
    font-size: 150%;
}

.fnts20 {
    font-size: 200%;
}

.fntw700 {
    font-weight: 700;
}

.fntw900 {
    font-weight: 900;
}

.fntfp {
    font-family: Verdana, monospace;
}

.fntc1 {
    color: #3b5998;
}

.fntc2 {
    color: #f00;
}

.mgnt20 {
    margin-top: 20px;
}

.psn-center {
    text-align: center;
}

.w100 {
    width: 100%;
    overflow: auto
}

.fl30 {
    float: left;
    width: 30%;
}

.fl40 {
    float: left;
    width: 40%;
}

.fl50 {
    float: left;
    width: 50%;
}

.fl60 {
    float: left;
    width: 60%;
}

.txtac {
    text-align: center;
}

.tbdrcll {
    border-collapse: collapse;
    /* 枠線の表示方法 */
}

.tbs1 {
    border: 1px solid #999;
}

.waku_block {
    padding: 20px;
    background: #fff;
    border: 5px #999 solid;
    box-shadow: 0 2px 3px 0 #ddd;
    -moz-box-shadow: 0 2px 3px 0 #ddd;
    -webkit-box-shadow: 0 2px 3px 0 #ddd;
}

#top_search form {
    margin-top: 10px;
}

/* トップ検索ボタン */
#top_search {
    background: #f5f9ff;
    border: 1px solid #c8deff;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 10px;
}

#top_search #search {
    width: 82%;
    height: 36px;
    border: 2px solid #8EC0FD;
    border-radius: 4px 0 0 4px;
    text-indent: 10px;
    font-size: 14px;
    vertical-align: middle;
}

#top_search #searchBtn {
    height: 42px;
    background: #8EC0FD;
    color: #fff;
    border: 2px solid #8EC0FD;
    border-radius: 0 4px 4px 0;
    margin-left: -4px;
    cursor: pointer;
    font-weight: 700;
    padding: 0 14px;
    vertical-align: middle;
}

#top_search #searchBtn:hover {
    background: #6aabf7;
    border-color: #6aabf7;
}

#keywordTag {
    margin-top: 8px;
    font-size: 12px;
    color: #777;
}

#keywordTag span {
    display: inline-block;
    background: #e8f0fe;
    color: #3b5998;
    border-radius: 12px;
    padding: 2px 10px;
    margin: 2px 4px 2px 0;
    font-size: 11px;
}

.price-display {
    color: #f00;
    font-family: Verdana, monospace;
    font-weight: 700;
    font-size: 24px;
}

/* トップ紹介エリア */
.intro-box {
    background: #f5f9ff;
    border-left: 4px solid #8EC0FD;
    padding: 14px 16px;
    border-radius: 0 4px 4px 0;
    line-height: 1.8;
    margin-top: 10px;
    color: #555;
}

/* アイテムカードグリッド */
.item-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    padding-bottom: 8px;
}

.item-card {
    display: block;
    width: 155px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.07);
    transition: box-shadow .2s, border-color .2s;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.item-card:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,.13);
    border-color: #8EC0FD;
}

.item-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.item-card .card-title {
    font-size: 11px;
    font-weight: 700;
    color: #3b5998;
    margin-top: 8px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.item-card .card-date {
    font-size: 10px;
    color: #aaa;
    margin-top: 4px;
}

.item-card .card-price {
    font-size: 14px;
    font-weight: 700;
    color: #e00;
    margin-top: 6px;
    font-family: Verdana, monospace;
}

.item-section {
    margin-bottom: 24px;
}

.more-link {
    text-align: right;
    margin-top: 8px;
    clear: both;
}

.more-link a {
    color: #3b5998;
    font-weight: 700;
    font-size: 13px;
}

.more-link a:hover {
    color: #8EC0FD;
}

@media (max-width: 768px) {
    /* ヘッダー */
    #header {
        width: 100% !important;
        height: auto !important;
        position: relative;
        padding: 8px 10px 0;
        box-sizing: border-box;
    }
    /* タイトルh1は非表示 */
    #header h1 {
        display: none !important;
    }
    /* ロゴを通常フローに */
    #header p#logo {
        position: static !important;
        display: block;
    }
    #header p#logo img {
        max-width: 140px;
        height: auto;
    }
    /* ログイン・登録リンク（インラインabsoluteを解除） */
    #header > div {
        position: static !important;
        text-align: right;
        padding: 2px 0 4px;
        font-size: 12px;
    }
    /* ナビメニュー */
    ul#menu {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        flex-wrap: wrap;
        background-image: none !important;
        clear: both;
        padding: 6px 0 4px;
        line-height: normal !important;
    }
    ul#menu li {
        float: none !important;
        background-image: none !important;
    }
    ul#menu li a {
        width: auto !important;
        float: none !important;
        padding: 4px 10px;
        display: inline-block !important;
        font-size: 12px;
        border: 1px solid #c8deff;
        border-radius: 4px;
        margin: 2px;
        background-color: #f5f9ff !important;
        line-height: 1.4 !important;
    }
    /* コンテンツレイアウト */
    div#content {
        min-width: 0 !important;
        flex-direction: column;
    }
    div#left_side,
    div#right_side {
        display: none;
    }
    div#center_main {
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
    .item-card {
        width: calc(50% - 6px);
    }
}