/* ============================================================
   okusuri.com - Base Styles
   ============================================================ */

:root {
    --primary: #2c7a4b;
    --primary-light: #e8f5ee;
    --primary-dark: #1a5c34;
    --accent: #e8963e;
    --text: #333;
    --text-light: #666;
    --bg: #f5f7f5;
    --white: #fff;
    --border: #dce5dc;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 15px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* --- Layout --- */
.site-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.content-area {
    display: flex;
    gap: 24px;
    margin-top: 20px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 260px;
    flex-shrink: 0;
}

/* --- Header --- */
.site-header {
    background: var(--primary);
    color: var(--white);
    padding: 0;
}
.site-header .site-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.site-header .site-title {
    font-size: 20px;
    font-weight: 700;
}
.site-header .site-title a { color: var(--white); }
.site-header .site-title a:hover { text-decoration: none; opacity: 0.9; }
.site-header nav a {
    color: rgba(255,255,255,0.85);
    margin-left: 20px;
    font-size: 14px;
}
.site-header nav a:hover { color: var(--white); text-decoration: none; }

/* --- Breadcrumb --- */
.breadcrumb {
    font-size: 13px;
    color: var(--text-light);
    padding: 12px 0;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb span { margin: 0 6px; }

/* --- Card Grid --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.card a { color: inherit; display: block; }
.card a:hover { text-decoration: none; }

.card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: #f0f0f0;
    display: block;
}
.card-img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary-light), #d4e8d9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 36px;
}

.card-body {
    padding: 12px 14px;
}
.card-body h3 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
}
.card-category {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

/* --- Category List (top page) --- */
.category-section {
    margin-bottom: 32px;
}
.category-section h2 {
    font-size: 18px;
    font-weight: 700;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
    margin-bottom: 14px;
}
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.category-tag {
    display: inline-block;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 13px;
    transition: background 0.15s, border-color 0.15s;
}
.category-tag:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    text-decoration: none;
}
.category-tag .count {
    color: var(--text-light);
    font-size: 11px;
    margin-left: 4px;
}

/* --- Sidebar --- */
.sidebar-block {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    overflow: hidden;
}
.sidebar-block h3 {
    background: var(--primary);
    color: var(--white);
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
}
.sidebar-block ul {
    list-style: none;
    padding: 6px 0;
}
.sidebar-block li a {
    display: block;
    padding: 5px 14px;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.1s;
}
.sidebar-block li:last-child a { border-bottom: none; }
.sidebar-block li a:hover {
    background: var(--primary-light);
    text-decoration: none;
}
.sidebar-block li a .count {
    float: right;
    color: var(--text-light);
    font-size: 12px;
}

/* --- Product Detail --- */
.product-detail {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}
.product-header {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}
.product-image {
    width: 300px;
    flex-shrink: 0;
}
.product-image img {
    border-radius: var(--radius);
    width: 100%;
}
.product-image .card-img-placeholder {
    border-radius: var(--radius);
    aspect-ratio: 1;
    font-size: 64px;
}
.product-info h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}
.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
}
.product-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
}
.product-meta span { margin-right: 16px; }
.product-aff-btn {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 10px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: opacity 0.15s;
}
.product-aff-btn:hover {
    opacity: 0.85;
    text-decoration: none;
    color: var(--white);
}

.product-sections { margin-top: 24px; }
.product-section {
    margin-bottom: 20px;
}
.product-section h2,
.product-section h3 {
    font-size: 16px;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 6px;
    margin-bottom: 10px;
}
.product-section p, .product-section div {
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-line;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 24px 0;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 13px;
}
.pagination .current {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.pagination a:hover {
    background: var(--primary-light);
    text-decoration: none;
}

/* --- Footer --- */
.site-footer {
    background: #2a2a2a;
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 13px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .content-area {
        flex-direction: column;
    }
    .sidebar { width: 100%; }
    .product-header { flex-direction: column; }
    .product-image { width: 100%; }
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

/* --- Utility --- */
.section-title {
    font-size: 18px;
    font-weight: 700;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
    margin-bottom: 16px;
}
.empty-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-size: 14px;
}
.lead {
    color: var(--text-light);
    font-size: 14px;
    margin: -6px 0 24px;
    line-height: 1.8;
}

/* --- Review links --- */
.review-links { list-style: none; padding: 0; }
.review-links li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.review-links li:last-child { border-bottom: none; }
.review-src {
    display: block;
    color: var(--text-light);
    font-size: 12px;
    margin-top: 2px;
}
.review-note {
    color: var(--text-light);
    font-size: 12px;
    margin-top: 10px;
}

/* --- 取扱終了 --- */
.discontinued-notice {
    background: #fdecea;
    border: 1px solid #f5c6c2;
    color: #a12b21;
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.7;
}
.badge-end {
    display: inline-block;
    background: #a12b21;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 6px;
}
.discontinued-msg {
    background: #f7f7f7;
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-light);
}

/* --- コンテンツ内の詳細リンク --- */
.usage-note-label {
    color: var(--text-light);
    font-size: 12px;
    background: #f7f7f7;
    border-left: 3px solid var(--border);
    padding: 6px 10px;
    margin-bottom: 8px;
}
.content-detail-link {
    margin-top: 12px;
}
.content-detail-link a {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 8px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
}
.content-detail-link a:hover {
    opacity: 0.85;
    text-decoration: none;
    color: var(--white);
}
