/**
 * 七飯町ふるさと納税サイト - 返礼品カテゴリページ用スタイルシート
 * 
 * @package FurusatoNanaeRedesign
 * @version 0.2.3
 */

/* ===== 基本設定 ===== */
/* CSS変数は variables.css で統一管理 */

/* ===== レイアウト ===== */
.henreihin-category-page-container {
    font-family: 'Meiryo', 'Hiragino Sans', sans-serif;
    color: var(--color-primary);
    line-height: var(--line-height-base);
    background-color: var(--bg-primary);
}

/* henreihin-categoryページのheader-curve調整 - 削除してヘッダー統一 */
/* .henreihin-category-page-container .header-curve ellipse {
    transform: translateY(-50px);
} */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.henreihin-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: 40px;
}

/* ===== メインビジュアル ===== */
.category-hero {
    height: clamp(300px, 23.44vw, 450px);
    background-image: url('../images/category_vesi.JPEG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-hero-overlay > .container {
    margin: 164px auto 0;
}

.category-hero-content {
    text-align: center;
    color: white;
    z-index: 2;
}

.category-title {
    font-family:'Noto Serif JP';
    font-size: clamp(24px, 2.29vw, 44px);
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* カテゴリタイトルSVG表示 */
.category-title-svg {
    font-size: 0;
    width: clamp(180px, 18.75vw, 360px);
    height: clamp(50px, 5.21vw, 100px);
    margin-left: auto;
    margin-right: auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-indent:-9999px;
}

.category-title-svg[data-category="fruits-vegetables"] {
    background-image: url('../svg/Category01.svg');
}

.category-title-svg[data-category="meat"] {
    background-image: url('../svg/Category02.svg');
}

.category-title-svg[data-category="beverage"] {
    background-image: url('../svg/Category03.svg');
}

.category-title-svg[data-category="sake"] {
    background-image: url('../svg/Category04.svg');
}

.category-title-svg[data-category="processed"] {
    background-image: url('../svg/Category05.svg');
}

.category-title-svg[data-category="travel"] {
    background-image: url('../svg/Category06.svg');
}

.category-description {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.category-count {
    font-size: 1rem;
    padding: 15px;
    background: var(--gradient-button); /* producersページのボタングラデーション */
    border-radius: 20px;
    display: inline-block;
    color: white;
    font-family: 'メイリオ', 'Meiryo', sans-serif;
    transition: all 0.3s ease;
}

/* ===== セクション共通 ===== */
.section-title {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}


/* ===== 季節カレンダー ===== */
.season-calendar {
    margin-bottom: 40px;
    padding: 30px;
    background: white; /* producers\u30da\u30fc\u30b8\u3068\u540c\u3058\u8272 */
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.calendar-description {
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-text); /* #555 */
}

.months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.month-item {
    background: var(--bg-light-gray); /* #f8f9faに変更済み */
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.month-item:hover,
.month-item.current-month {
    background: white; /* producers\u30da\u30fc\u30b8\u3068\u540c\u3058\u8272 */
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 10px;
}

.month-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-primary);
}

.current-badge {
    background: var(--price-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.item-group {
    margin-bottom: 15px;
}

.group-title {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--color-primary);
}

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

.seasonal-item {
    display: inline-block;
    background: white; /* producers\u30da\u30fc\u30b8\u3068\u540c\u3058\u8272 */
    padding: 4px 8px;
    margin: 2px;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.seasonal-item:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.05);
}

.month-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.nav-button {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.nav-button:hover {
    background: var(--light-green);
}

.month-select {
    padding: 8px 16px;
    border: 2px solid var(--color-primary);
    border-radius: 20px;
    background: white; /* producers\u30da\u30fc\u30b8\u3068\u540c\u3058\u8272 */
    font-size: 1rem;
}

/* 季節の説明 */
.season-info {
    margin-top: 30px;
}

.tips-title {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    text-align: center;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tip-item {
    background: white; /* producers\u30da\u30fc\u30b8\u3068\u540c\u3058\u8272 */
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.tip-item h4 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

/* ===== 保存方法ガイド ===== */
.storage-guide {
    margin-bottom: 40px;
    padding: 30px;
    background: white; /* producers\u30da\u30fc\u30b8\u3068\u540c\u3058\u8272 */
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.guide-description {
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-text); /* #555 */
}

.guide-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.guide-item {
    background: var(--bg-light-gray);
    border-radius: 10px;
    padding: 25px;
}

.guide-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-primary);
}

.guide-icon {
    font-size: 2rem;
    margin-right: 15px;
}

.guide-type {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin: 0;
}

.method-item {
    margin-bottom: 15px;
    padding: 15px;
    background: white; /* producers\u30da\u30fc\u30b8\u3068\u540c\u3058\u8272 */
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
}

.method-name {
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.method-description {
    margin: 0;
    line-height: 1.5;
}

/* 保存のコツ */
.storage-tips {
    margin-top: 30px;
}

.tip-card {
    background: white; /* producers\u30da\u30fc\u30b8\u3068\u540c\u3058\u8272 */
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.tip-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.tip-title {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.additional-info {
    margin-top: 30px;
    padding: 25px;
    background: var(--light-green); /* producersページの緑系に変更 */
    border-radius: 10px;
    border-left: 5px solid var(--color-primary);
}

.info-title {
    color: var(--color-primary);
    margin-bottom: 20px;
}

.info-item {
    margin-bottom: 15px;
    padding: 15px;
    background: white; /* producers\u30da\u30fc\u30b8\u3068\u540c\u3058\u8272 */
    border-radius: 8px;
}

/* ===== 返礼品一覧 ===== */
.products-section {
    margin-bottom: 40px;
}

.subcategory-section {
    margin-bottom: 40px;
}

.subcategory-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 2px solid var(--color-primary);
}

.products-grid {
    display: grid;
    gap: 30px;
}

.no-products {
    text-align: center;
    padding: 40px;
    color: var(--secondary-text); /* #555 */
    font-size: 1.1rem;
}

/* ===== 返礼品カード ===== */
.product-item {
    margin-bottom: 30px;
}

/* .product-card styles moved to product-improvements.css (duplicate removed) */

/* .product-card:hover styles moved to product-improvements.css (duplicate removed) */

.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* .product-card:hover .product-image styles moved to product-improvements.css (duplicate removed) */

.seasonal-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--price-color);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.subcategory-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.subcategory-badge.fruits {
    background: var(--price-color); /* producersページのアクセント色 */
}

.subcategory-badge.vegetables {
    background: var(--light-green); /* producersページの緑系 */
}

.product-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    margin: 0 0 15px 0;
}

.product-title a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: var(--color-primary);
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 15px;
}

.price-label {
    font-size: 0.9rem;
    color: var(--secondary-text); /* #555 */
}

.price-amount {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--price-color);
}

.product-description {
    margin-bottom: 15px;
    color: var(--secondary-text); /* #555 */
    line-height: 1.6;
}

.product-excerpt {
    margin-bottom: 20px;
    color: var(--secondary-text); /* #555 */
    line-height: 1.6;
}

/* ポータルリンク */
.portal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.portal-button {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    transition: all 0.3s ease;
}

.portal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.portal-button.furusato-choice {
    background: #f39c12;
}

.portal-button.rakuten {
    background: #bf0000;
}

.portal-button.satofull {
    background: #0066cc;
}

.portal-button.au-paymarket {
    background: #ff6600;
}

.portal-button.other {
    background: #666;
}

/* 商品アクション */
.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.detail-button {
    background: var(--color-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.detail-button:hover {
    background: var(--light-green);
    transform: translateY(-2px);
}

.favorite-button {
    background: none;
    border: 2px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.favorite-button:hover {
    border-color: var(--price-color);
    color: var(--price-color);
}

.favorite-icon {
    font-size: 1.2rem;
}

/* 商品メタ情報 */
.product-meta {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.product-categories {
    margin-bottom: 10px;
}

.category-tag {
    display: inline-block;
    margin-right: 10px;
}

.category-tag a {
    background: var(--bg-light-gray);
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.category-tag a:hover {
    background: var(--color-primary);
    color: white;
}

.product-date {
    font-size: 0.8rem;
    color: var(--light-text); /* #777 */
}

.date-label {
    margin-right: 5px;
}

/* ===== レシピ集 ===== */
.recipe-collection {
    margin-bottom: 40px;
    padding: 30px;
    background: white; /* producers\u30da\u30fc\u30b8\u3068\u540c\u3058\u8272 */
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.recipe-description {
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-text); /* #555 */
}

.recipes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.recipe-card {
    background: var(--bg-light-gray);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.recipe-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.recipe-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.recipe-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recipe-card:hover .recipe-image {
    transform: scale(1.05);
}

.recipe-meta-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recipe-difficulty,
.recipe-time {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.recipe-content {
    padding: 25px;
}

.recipe-name {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.recipe-summary {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--secondary-text); /* #555 */
}

.recipe-toggle {
    width: 100%;
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recipe-toggle:hover,
.recipe-toggle.active {
    background: var(--light-green);
}

/* レシピ詳細 */
.recipe-details {
    padding: 25px;
    background: white; /* producers\u30da\u30fc\u30b8\u3068\u540c\u3058\u8272 */
    border-top: 2px solid var(--color-primary);
}

.ingredients-title,
.steps-title,
.tips-title {
    color: var(--color-primary);
    margin-bottom: 15px;
}

.ingredients-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.ingredient-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.ingredient-item:last-child {
    border-bottom: none;
}

.steps-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 15px;
    background: var(--bg-light-gray);
    border-radius: 10px;
}

.step-number {
    background: var(--color-primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-text {
    flex: 1;
    line-height: 1.6;
}

.recipe-tips {
    background: var(--light-green); /* producersページの緑系に変更 */
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
    margin-bottom: 25px;
}

.recipe-actions {
    display: flex;
    gap: 15px;
}

.print-recipe,
.share-recipe {
    flex: 1;
    background: white; /* producers\u30da\u30fc\u30b8\u3068\u540c\u3058\u8272 */
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.print-recipe:hover,
.share-recipe:hover {
    background: var(--color-primary);
    color: white;
}

/* レシピのワンポイントアドバイス */
.recipe-tips-section {
    margin-top: 40px;
}

.tips-section-title {
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 30px;
}

.tips-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* ===== サイドバー ===== */
.henreihin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: white; /* producers\u30da\u30fc\u30b8\u3068\u540c\u3058\u8272 */
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}

/* 人気ランキング */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background: var(--light-green); /* producersページの緑系に変更 */
    transform: translateX(5px);
}

.rank-number {
    background: var(--color-primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.rank-content {
    flex: 1;
}

.rank-title {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    line-height: 1.3;
}


/* カテゴリメニュー */
.category-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    border-bottom: 1px solid var(--border-color);
}

.category-item:last-child {
    border-bottom: none;
}

.category-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-item a:hover,
.category-item.current a {
    color: var(--color-primary);
}

.count {
    background: var(--bg-light-gray);
    color: var(--secondary-text); /* #555 */
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* 特集バナー */
.feature-banner {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.feature-banner a {
    display: block;
    color: white;
    text-decoration: none;
    position: relative;
}

.banner-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-banner:hover .banner-image {
    transform: scale(1.05);
}

.banner-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 20px 15px 15px;
}

.banner-text h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.banner-text p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.9;
}

/* お知らせ */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item {
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    display: block;
    color: var(--light-text); /* #777 */
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.news-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: var(--color-primary);
}

/* ===== 関連カテゴリ ===== */
.related-categories {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 3px solid var(--color-primary);
}

.category-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-link {
    text-decoration: none;
    color: var(--text-color);
}

.category-card {
    width: 100%;
    aspect-ratio: 568 / 274;
    background: #D9D9D9 center/cover no-repeat; /* producers\u30da\u30fc\u30b8\u3068\u540c\u3058\u8272 */
    border-radius: clamp(13px, 1.35vw, 26px);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(clamp(-4px, -0.42vw, -8px));
    box-shadow: 0 clamp(4px, 0.42vw, 8px) clamp(12px, 1.25vw, 24px) rgba(0, 0, 0, 0.2);
    background: #CCCCCC;
}

/* Category Card Images - Same as CategoryBox */
.related-categories .category-links .category-card:nth-child(1) { background-image: url('../images/category01.png'); }
.related-categories .category-links .category-card:nth-child(2) { background-image: url('../images/category02.png'); }
.related-categories .category-links .category-card:nth-child(3) { background-image: url('../images/category03.png'); }
.related-categories .category-links .category-card:nth-child(4) { background-image: url('../images/category04.png'); }
.related-categories .category-links .category-card:nth-child(5) { background-image: url('../images/category05.png'); }
.related-categories .category-links .category-card:nth-child(6) { background-image: url('../images/category06.png'); }

/* Category Card After Pseudo-element - Same as CategoryBox */
.category-card::after {
    content: '';
    position: absolute;
    top: 0.79vw;
    left: 0.79vw;
    right: 0.79vw;
    bottom: 0.79vw;
    border: 2px dashed #fff;
    border-radius: inherit;
    opacity: 0.5;
    pointer-events: none;
    z-index: 10;
}

/* Category Card Title Image - Same as CategoryBox CategoryTitleImg */
.category-card .CategoryTitleImg {
    font-size: clamp(24px, 2.50vw, 48px);
    text-align: center;
    color: black;
    font-family: "Noto Serif JP";
    font-weight: 700;
    z-index: 10;
    position: relative;
}

/* Category Card SVG replacements - Same as CategoryBox */
#categoryCard-1 .CategoryTitleImg {
    width: 21.98vw;
    height: clamp(60px,10vw,80px);
    background-image: url('../svg/Category01.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
    opacity: 1;
    font-size: 0;
}

#categoryCard-1 .CategoryTitleImg span {
    display: none;
}

#categoryCard-2 .CategoryTitleImg {
    width: 21.98vw;
    height: clamp(60px,10vw,80px);
    background-image: url('../svg/Category02.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
    opacity: 1;
    font-size: 0;
}

#categoryCard-2 .CategoryTitleImg span {
    display: none;
}

#categoryCard-3 .CategoryTitleImg {
    width: 21.98vw;
    height: clamp(60px,10vw,80px);
    background-image: url('../svg/Category03.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
    opacity: 1;
    font-size: 0;
}

#categoryCard-3 .CategoryTitleImg span {
    display: none;
}

#categoryCard-4 .CategoryTitleImg {
    width: 21.98vw;
    height: clamp(60px,10vw,80px);
    background-image: url('../svg/Category04.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
    opacity: 1;
    font-size: 0;
}

#categoryCard-4 .CategoryTitleImg span {
    display: none;
}

#categoryCard-5 .CategoryTitleImg {
    width: 21.98vw;
    height: clamp(60px,10vw,80px);
    background-image: url('../svg/Category05.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
    opacity: 1;
    font-size: 0;
}

#categoryCard-5 .CategoryTitleImg span {
    display: none;
}

#categoryCard-6 .CategoryTitleImg {
    width: 21.98vw;
    height: clamp(60px,10vw,80px);
    background-image: url('../svg/Category06.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
    opacity: 1;
    font-size: 0;
}

#categoryCard-6 .CategoryTitleImg span {
    display: none;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.category-name {
    position: relative;
    z-index: 2;
    font-size: clamp(16px, 1.5vw, 24px);
    font-weight: bold;
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* カテゴリ別ページでの.category-count（関連カテゴリセクション用） */
.related-categories .category-count {
    padding: 15px;
    margin: 0;
    color: white;
    font-size: 0.9rem;
    font-family: 'メイリオ', 'Meiryo', sans-serif;
}

/* ===== ページネーション ===== */
.pagination-wrapper {
    margin-top: 40px;
    text-align: center;
}

.page-numbers {
    display: inline-flex;
    gap: 10px;
}

.page-numbers a,
.page-numbers span {
    padding: 10px 15px;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.page-numbers a:hover,
.page-numbers .current {
    background: var(--color-primary);
    color: white;
}

/* ===== ハイライトアニメーション ===== */
.highlight {
    animation: highlight 3s ease-in-out;
}

@keyframes highlight {
    0%, 100% {
        background: transparent;
    }
    50% {
        background: rgba(46, 125, 50, 0.1);
        border-radius: 10px;
    }
}

/* ===== レスポンシブデザイン ===== */

/* タブレット (1024px以下) */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .henreihin-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .henreihin-sidebar {
        order: 1;
    }

    .henreihin-main {
        order: 1;
    }
    
    /* .product-card tablet styles moved to product-improvements.css (duplicate removed) */
    
    .product-image {
        height: 300px;
    }
    
    .category-title {
        font-size: 2.5rem;
    }
    
    .months-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .recipes-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .guide-container {
        grid-template-columns: 1fr;
    }
}

/* スマートフォン (768px以下) */
@media (max-width: 768px) {
    .category-hero {
        height: 400px;
        background-attachment: scroll;
    }

    .category-hero-overlay{
        .container{
            margin-top:0;
        }
    }
    
    .category-title {
        font-size: 2rem;
    }

    .category-title-svg{
        width:80%;
        height:70px;
    }
    
    .category-description {
        font-size: 1rem;
    }
    
    /* .product-card mobile styles moved to product-improvements.css (duplicate removed) */
    
    .product-image-wrapper {
        height: 250px;
    }
    
    .product-image {
        height: 250px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .portal-links {
        justify-content: center;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .months-grid {
        grid-template-columns: 1fr;
    }
    
    .recipes-container {
        grid-template-columns: 1fr;
    }
    
    .tips-grid,
    .tips-cards {
        grid-template-columns: 1fr;
    }
    
    .category-links {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .season-calendar,
    .storage-guide,
    .recipe-collection {
        padding: 20px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
    
    .recipe-actions {
        flex-direction: column;
    }
}

/* ===== SiteBoxスタイルのポータルリンク ===== */
.henreihin-list-item .SiteBoxContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: clamp(8px, 0.94vw, 12px);
    margin: clamp(10px, 1.5vw, 20px) 0;
}

.henreihin-list-item .SiteBox {
    background: white;
    border-radius: clamp(6px, 0.63vw, 12px);
    display: flex;
    justify-content: center;
    align-items: center;
    width: clamp(100px, 12vw, 150px);
    height: clamp(30px, 3vw, 40px);
    max-width: 150px;
    max-height: 40px;
    padding: clamp(0.25rem, 0.5vw, 0.5rem);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
    text-decoration: none;
}

.henreihin-list-item .SiteBox.inactive {
    opacity: 0.6;
    pointer-events: none;
}

.henreihin-list-item .SiteBox:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.henreihin-list-item .SiteBoxLogoImg {
    width: 100%;
    height: clamp(25px, 2.5vw, 35px);
    max-height: 35px;
    background: rgba(217, 217, 217, 0.46) center/contain no-repeat;
    border-radius: clamp(3px, 0.31vw, 6px);
}

/* 各ポータルサイトの背景画像 */
.henreihin-list-item .SiteBox:nth-child(1) .SiteBoxLogoImg { background-image: url('../images/portal01.png'); background-color: transparent; }
.henreihin-list-item .SiteBox:nth-child(2) .SiteBoxLogoImg { background-image: url('../images/portal02.png'); background-color: transparent; }
.henreihin-list-item .SiteBox:nth-child(3) .SiteBoxLogoImg { background-image: url('../images/portal03.png'); background-color: transparent; }
.henreihin-list-item .SiteBox:nth-child(4) .SiteBoxLogoImg { background-image: url('../images/portal04.png'); background-color: transparent; }
.henreihin-list-item .SiteBox:nth-child(5) .SiteBoxLogoImg { background-image: url('../images/portal05.png'); background-color: transparent; }
.henreihin-list-item .SiteBox:nth-child(6) .SiteBoxLogoImg { background-image: url('../images/portal06.png'); background-color: transparent; }
.henreihin-list-item .SiteBox:nth-child(7) .SiteBoxLogoImg { background-image: url('../images/portal07.png'); background-color: transparent; }
.henreihin-list-item .SiteBox:nth-child(8) .SiteBoxLogoImg { background-image: url('../images/portal08.png'); background-color: transparent; }
.henreihin-list-item .SiteBox:nth-child(9) .SiteBoxLogoImg { background-image: url('../images/portal09.png'); background-color: transparent; }
.henreihin-list-item .SiteBox:nth-child(10) .SiteBoxLogoImg { background-image: url('../images/portal10.png'); background-color: transparent; }
.henreihin-list-item .SiteBox:nth-child(11) .SiteBoxLogoImg { background-image: url('../images/portal11.png'); background-color: transparent; }
.henreihin-list-item .SiteBox:nth-child(12) .SiteBoxLogoImg { background-image: url('../images/portal12.png'); background-color: transparent; }
.henreihin-list-item .SiteBox:nth-child(13) .SiteBoxLogoImg { background-image: url('../images/portal13.png'); background-color: transparent; }
.henreihin-list-item .SiteBox:nth-child(14) .SiteBoxLogoImg { background-image: url('../images/portal14.png'); background-color: transparent; }
.henreihin-list-item .SiteBox:nth-child(15) .SiteBoxLogoImg { background-image: url('../images/portal15.png'); background-color: transparent; }

/* 小型スマートフォン (480px以下) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .category-hero {
        height: 300px;
    }
    
    .category-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .price-amount {
        font-size: 1.5rem;
    }
    
    .season-calendar,
    .storage-guide,
    .recipe-collection,
    .sidebar-widget {
        padding: 15px;
    }
    
    .month-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-button {
        width: 100%;
    }
    
    .category-links {
        grid-template-columns: 1fr;
    }
    
    .ranking-item {
        padding: 10px;
    }
    
    .recipe-card {
        margin-bottom: 20px;
    }
}