* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
       color: #1f2937; background: #f8fafc; line-height: 1.7; }
img { max-width: 100%; }
a { color: #0f766e; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.site-header { background: #0f766e; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center;
                     gap: 8px 20px; padding: 12px 16px; }
.site-name { color: #fff; font-size: 20px; font-weight: 700; }
.site-name:hover { text-decoration: none; }
.global-nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.global-nav a { color: #ccfbf1; font-size: 13px; }

.ad-note { background: #ecfdf5; border-bottom: 1px solid #d1fae5; }
.ad-note .wrap { font-size: 11px; color: #047857; padding: 4px 16px; }

main.wrap { padding: 24px 16px 40px; }
h1 { font-size: 24px; margin-bottom: 8px; }
h2 { font-size: 19px; margin: 24px 0 12px; }
.lead { color: #475569; margin-bottom: 8px; }
.cat-section h2 a { color: #1f2937; }
.more { text-align: right; font-size: 14px; margin-top: 8px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
         gap: 14px; }
.card { position: relative; background: #fff; border: 1px solid #e2e8f0;
        border-radius: 10px; overflow: hidden; display: flex; flex-direction: column;
        transition: box-shadow .15s; }
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); text-decoration: none; }
.card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.card-body { padding: 10px 12px 12px; }
.card-name { font-size: 13px; color: #1f2937; min-height: 2.6em; }
.card-price { font-size: 16px; font-weight: 700; color: #dc2626; margin-top: 4px; }
.card-review { font-size: 12px; color: #b45309; }
.rank-badge { position: absolute; top: 8px; left: 8px; z-index: 1;
              background: #dc2626; color: #fff; font-size: 12px; font-weight: 700;
              padding: 2px 8px; border-radius: 9999px; }

.breadcrumb { font-size: 12px; color: #64748b; margin-bottom: 12px; }
.item-main { display: flex; gap: 24px; flex-wrap: wrap; background: #fff;
             border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; }
.item-img { width: 320px; max-width: 100%; object-fit: contain; align-self: flex-start; }
.item-info { flex: 1; min-width: 260px; }
.item-price { font-size: 28px; font-weight: 700; color: #dc2626; }
.item-price .tax { font-size: 13px; color: #64748b; font-weight: 400; }
.item-meta { font-size: 14px; color: #475569; margin-top: 6px; }
.btn-rakuten { display: inline-block; background: #bf0000; color: #fff;
               font-size: 16px; font-weight: 700; padding: 12px 32px;
               border-radius: 8px; margin-top: 16px; }
.btn-rakuten:hover { opacity: .9; text-decoration: none; }
.fetched { font-size: 12px; color: #64748b; margin-top: 10px; }
.item-caption { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
                padding: 20px; margin-top: 16px; font-size: 14px; }
.item-caption .src { color: #94a3b8; font-size: 12px; margin-top: 8px; }

.search-controls { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 20px; }
.search-controls input, .search-controls select {
    padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; }
.search-controls input { flex: 1; min-width: 200px; }

.about-table { border-collapse: collapse; margin: 12px 0; }
.about-table th, .about-table td { border: 1px solid #e2e8f0; padding: 8px 16px;
                                   font-size: 14px; text-align: left; }
.about-table th { background: #f1f5f9; }

.site-footer { background: #134e4a; color: #99f6e4; margin-top: 40px; }
.site-footer .wrap { padding: 24px 16px; font-size: 12px; }
.site-footer a { color: #ccfbf1; }
.site-footer .credit { margin-top: 8px; }

.summary-box { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 12px;
               padding: 16px 20px; margin-top: 16px; }
.summary-box h2 { margin: 0 0 8px; font-size: 16px; color: #065f46; }
.summary-box ul { margin: 0; padding-left: 1.3em; }
.summary-box li { margin: 2px 0; }
.item-caption ul { padding-left: 1.3em; }

.item-review { font-size: 22px; font-weight: 700; color: #d97706; margin-top: 8px;
               display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item-review-count { font-size: 14px; color: #92400e; font-weight: 600; }

.related { margin-top: 36px; }

.rank-note { font-size: 12px; color: #64748b; margin: 4px 0 16px; }
.rank-list { list-style: none; display: flex; flex-direction: column; gap: 16px; padding: 0; }
.rank-item { display: flex; gap: 16px; background: #fff; border: 1px solid #e2e8f0;
             border-radius: 12px; padding: 18px; }
.rank-no { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
           background: #64748b; color: #fff; font-weight: 700; font-size: 18px;
           display: flex; align-items: center; justify-content: center; }
.rank-no span { font-size: 11px; }
.rank-no.top1 { background: #d4a017; }
.rank-no.top2 { background: #9ca3af; }
.rank-no.top3 { background: #b87333; }
.rank-img { flex: 0 0 140px; }
.rank-img img { width: 140px; height: 140px; object-fit: contain; }
.rank-body { flex: 1; min-width: 0; }
.rank-name { font-size: 17px; font-weight: 700; color: #1f2937; }
.rank-review { color: #b45309; font-weight: 700; margin-top: 4px; }
.rank-review span { font-size: 12px; font-weight: 600; }
.rank-price { color: #dc2626; font-weight: 700; margin-top: 2px; }
.rank-price span { font-size: 11px; color: #64748b; font-weight: 400; }
.rank-points { margin: 8px 0 0; padding-left: 1.2em; font-size: 13.5px; }
.rank-desc { margin-top: 8px; font-size: 13.5px; color: #475569; }
.rank-actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.btn-small { font-size: 13px; padding: 8px 20px; margin-top: 0; }
.rank-more { font-size: 13px; }
@media (max-width: 560px) {
  .rank-item { flex-wrap: wrap; }
  .rank-img { flex-basis: 96px; }
  .rank-img img { width: 96px; height: 96px; }
}

.article-meta { color: #64748b; font-size: 13px; }
.article-body { line-height: 1.9; }
.article-body h2 { margin-top: 28px; border-bottom: 2px solid #e2e8f0; padding-bottom: 6px; }
.article-body h3 { margin-top: 20px; }
.article-body table { border-collapse: collapse; margin: 12px 0; }
.article-body th, .article-body td { border: 1px solid #e2e8f0; padding: 8px 12px; font-size: 14px; }
.article-body .card { max-width: 260px; margin: 16px auto; }
.article-list { list-style: none; padding: 0; }
.article-list li { padding: 12px 0; border-bottom: 1px solid #e2e8f0; }
.article-date { color: #64748b; font-size: 12px; margin-left: 8px; }
.article-desc { color: #475569; font-size: 13.5px; margin: 4px 0 0; }
