/* 砂図鑑 - Frontend Styles */

.sz-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ===== 一覧ページ ===== */

.sz-archive-header {
    text-align: center;
    margin-bottom: 30px;
}

.sz-archive-title {
    font-size: 2em;
    color: #16404a;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.sz-archive-lead {
    color: #4a7480;
    font-size: 1em;
    max-width: 600px;
    margin: 0 auto;
}

.sz-tax-nav {
    background: linear-gradient(135deg, #eaf6f8 0%, #d9edf1 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.sz-tax-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.sz-tax-group-label {
    font-weight: 700;
    color: #1d5f6e;
    font-size: 0.85em;
    margin-right: 8px;
}

.sz-tax-pill {
    display: inline-block;
    padding: 6px 14px;
    background: white;
    color: #1d5f6e;
    border: 1px solid #a8d4dc;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85em;
    transition: all 0.25s;
}

.sz-tax-pill:hover {
    background: #1c7c8c;
    color: white;
    border-color: #1c7c8c;
}

.sz-tax-pill.is-active {
    background: #1c7c8c;
    color: white;
    border-color: #1c7c8c;
    font-weight: 700;
}

.sz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 22px;
    margin-bottom: 30px;
}

.sz-card {
    display: block;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    box-shadow: 0 2px 8px rgba(22, 64, 74, 0.1);
    border: 1px solid #dcedf0;
    transition: all 0.3s;
}

.sz-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(22, 64, 74, 0.18);
}

.sz-card-thumb {
    position: relative;
    padding-top: 75%;
    background: linear-gradient(135deg, #cdeaef 0%, #a9d8e0 100%);
    overflow: hidden;
}

.sz-card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sz-card-noimg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a99a8;
}

.sz-card-noimg .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
}

.sz-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(28, 124, 140, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
}

.sz-card-body {
    padding: 16px;
}

.sz-card-title {
    font-size: 1.1em;
    margin: 0 0 8px 0;
    color: #16404a;
    font-weight: 700;
}

.sz-card-excerpt {
    font-size: 0.88em;
    color: #5d8892;
    line-height: 1.6;
    margin: 0;
}

.sz-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #4a99a8;
}

.sz-pagination {
    text-align: center;
    margin-top: 30px;
}

.sz-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    background: white;
    border: 1px solid #a8d4dc;
    border-radius: 6px;
    color: #1d5f6e;
    text-decoration: none;
}

.sz-pagination .page-numbers.current {
    background: #1c7c8c;
    color: white;
}

/* ===== 詳細ページ ===== */

.sz-breadcrumb {
    font-size: 0.85em;
    color: #4a99a8;
    margin-bottom: 20px;
}

.sz-breadcrumb a {
    color: #1c7c8c;
    text-decoration: none;
}

.sz-single-header {
    margin-bottom: 24px;
}

.sz-single-badges {
    margin-bottom: 12px;
}

.sz-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 0.8em;
    font-weight: 600;
    text-decoration: none !important;
    margin-right: 6px;
}

.sz-badge-category {
    background: #1c7c8c;
    color: white !important;
}

.sz-single-title {
    font-size: 2.2em;
    color: #16404a;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.sz-single-lead {
    font-size: 1.05em;
    color: #4a7480;
    line-height: 1.7;
}

.sz-single-thumb {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.sz-single-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.sz-section {
    margin-bottom: 40px;
    padding: 28px;
    border-radius: 14px;
}

.sz-section-basic {
    background: #f3fafb;
    border: 1px solid #dcedf0;
}

.sz-section-usage {
    background: linear-gradient(135deg, #eaf6f8 0%, #e0f1f4 100%);
    border: 1px solid #cbe6ea;
}

.sz-section-title {
    font-size: 1.4em;
    color: #16404a;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.sz-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.sz-info-table th,
.sz-info-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e9f4f6;
}

.sz-info-table th {
    width: 200px;
    background: #eaf6f8;
    color: #1d5f6e;
    font-weight: 600;
    font-size: 0.9em;
}

.sz-info-table td {
    color: #333;
}

.sz-info-table tr:last-child th,
.sz-info-table tr:last-child td {
    border-bottom: none;
}

.sz-section-content {
    line-height: 1.9;
    color: #33484c;
}

.sz-usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.sz-usage-card {
    background: white;
    border-radius: 10px;
    padding: 18px;
    border: 1px solid #cbe6ea;
}

.sz-usage-card-title {
    font-size: 0.95em;
    color: #1d5f6e;
    margin: 0 0 8px 0;
    font-weight: 700;
    padding-bottom: 8px;
    border-bottom: 2px solid #b8dee4;
}

.sz-usage-card-body {
    font-size: 0.92em;
    color: #444;
    line-height: 1.7;
    margin: 0;
}

.sz-back-link {
    margin-top: 30px;
}

.sz-back-link a {
    color: #1c7c8c;
    text-decoration: none;
    font-weight: 600;
}

/* 扱いやすさ（星） */
.sz-stars {
    color: #d9822b;
    font-size: 1.15em;
    letter-spacing: 1px;
}

/* 商品リンク */
.sz-product-links {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed #b8dee4;
}

.sz-product-links-title {
    font-size: 0.95em;
    color: #1d5f6e;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.sz-product-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sz-product-link-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #1d5f6e;
    color: white !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    transition: background 0.25s;
}

.sz-product-link-btn:hover {
    background: #16404a;
}

/* ===== レスポンシブ ===== */

@media (max-width: 768px) {
    .sz-container {
        padding: 20px 15px;
    }

    .sz-single-title {
        font-size: 1.6em;
    }

    .sz-section {
        padding: 18px;
    }

    .sz-info-table th {
        width: 130px;
        font-size: 0.8em;
    }

    .sz-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
    }
}
