* { box-sizing: border-box; }
body { font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif; color: #333; margin: 0; background: #f9f9f9; }

.container { max-width: 800px; margin: 0 auto; padding: 0 16px; }

header { background: #4a9e5c; padding: 12px 0; display: flex; }
header .container { display: flex; align-items: center; justify-content: space-between; }
header .site-title { color: #fff; text-decoration: none; font-size: 20px; font-weight: bold; }
header nav a { color: rgba(255,255,255,0.9); text-decoration: none; font-size: 14px; }
header nav a:hover { color: #fff; }
footer { text-align: center; padding: 24px 0; color: #999; font-size: 13px; margin-top: 40px; }

main { padding: 24px 0; }

.flash { padding: 10px 16px; border-radius: 4px; margin-bottom: 16px; }
.flash-notice { background: #d4edda; color: #155724; }
.flash-alert  { background: #f8d7da; color: #721c24; }

/* Hero / subscribe form */
.hero { text-align: center; padding: 40px 0 32px; }
.hero h1 { font-size: 28px; margin-bottom: 8px; color: #4a9e5c; }
.hero p { color: #666; margin-bottom: 20px; }
.subscribe-form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.subscribe-form input[type=email] { padding: 10px 14px; border: 1px solid #ccc; border-radius: 4px; width: 280px; font-size: 15px; }
.subscribe-form input[type=submit] { padding: 10px 20px; background: #4a9e5c; color: #fff; border: none; border-radius: 4px; font-size: 15px; cursor: pointer; }
.subscribe-form input[type=submit]:hover { background: #3d8a4e; }
.note { font-size: 12px; color: #999; margin-top: 8px; }

/* Season preview */
.season-preview { margin: 20px 0 40px; }
.season-preview h2 { font-size: 18px; border-bottom: 2px solid #4a9e5c; padding-bottom: 6px; }
.season-category { margin-bottom: 16px; }
.season-category h3 { font-size: 15px; color: #666; margin-bottom: 8px; }
.season-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.season-tag { display: inline-block; padding: 6px 14px; background: #e8f5e9; color: #2e7d32; border-radius: 20px; font-size: 14px; text-decoration: none; }
.season-tag:hover { background: #c8e6c9; }
.season-tag.peak { background: #4a9e5c; color: #fff; }

/* Archives */
.archives h2 { border-bottom: 2px solid #4a9e5c; padding-bottom: 6px; }
.archives ul { list-style: none; padding: 0; }
.archives li { padding: 12px 0; border-bottom: 1px solid #eee; }
.archives li a { color: #333; text-decoration: none; font-size: 16px; }
.archives li a:hover { color: #4a9e5c; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #eee; }
.pagination a { color: #4a9e5c; text-decoration: none; font-size: 14px; }
.pagination a:hover { text-decoration: underline; }
.pagination-info { font-size: 13px; color: #999; }

/* Item cards (for issue show page) */
.item-card { border: 1px solid #ddd; border-radius: 6px; padding: 16px; margin-bottom: 16px; background: #fff; display: flex; gap: 16px; }
.item-card img { width: 160px; height: auto; border-radius: 4px; flex-shrink: 0; object-fit: contain; }
.item-info { flex: 1; min-width: 0; }
.item-name { font-size: 16px; font-weight: bold; margin: 0 0 4px; }
.item-name a { color: inherit; text-decoration: none; }
.item-name a:hover { color: #4a9e5c; }
.item-desc { font-size: 13px; color: #555; margin: 0 0 8px; line-height: 1.6; }
.item-price { font-size: 13px; color: #e74c3c; font-weight: bold; margin: 0 0 8px; }
.btn { display: inline-block; padding: 5px 12px; border-radius: 4px; font-size: 12px; text-decoration: none; font-weight: bold; }
.btn-rakuten { background: #BF0000; color: #fff; }
.btn-furusato { background: #d4760a; color: #fff; }

.category-section h2 { font-size: 16px; color: #4a9e5c; border-left: 4px solid #4a9e5c; padding-left: 8px; margin: 24px 0 12px; }
.furusato-section { background: #fff8f0; border: 1px solid #f0c080; border-radius: 6px; padding: 16px; margin: 24px 0; }
.furusato-section h2 { color: #d4760a; border-left-color: #d4760a; }

@media (max-width: 600px) {
  .item-card { flex-direction: column; }
  .item-card img { width: 100%; max-width: 200px; margin: 0 auto; }
}

/* Seasonal calendar page */
.month-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.month-nav a { padding: 6px 12px; border-radius: 4px; text-decoration: none; font-size: 14px; background: #e8f5e9; color: #2e7d32; }
.month-nav a:hover { background: #c8e6c9; }
.month-nav a.active { background: #4a9e5c; color: #fff; }

.season-info { font-size: 13px; color: #888; margin: 4px 0 0; }

.issue-date { color: #999; font-size: 14px; }
.no-issues { text-align: center; color: #999; padding: 40px 0; }

/* Unsubscribe */
.unsubscribe { max-width: 480px; margin: 40px auto; text-align: center; }
.unsubscribe input[type=submit] { padding: 10px 24px; background: #e74c3c; color: #fff; border: none; border-radius: 4px; font-size: 15px; cursor: pointer; margin-right: 12px; }

/* Seasonal item detail */
.item-detail { background: #fff; border: 1px solid #ddd; border-radius: 6px; padding: 24px; margin-bottom: 24px; }
.item-detail h1 { font-size: 24px; margin: 0 0 8px; }
.item-detail .meta { font-size: 14px; color: #888; margin-bottom: 12px; }
.item-detail .description { font-size: 15px; line-height: 1.8; color: #555; }
/* Rakuten products on item detail */
.rakuten-products { margin-bottom: 24px; }
.rakuten-products h2 { font-size: 16px; border-bottom: 2px solid #BF0000; padding-bottom: 6px; margin-bottom: 16px; }
.item-shop { font-size: 12px; color: #888; margin: 0 0 4px; }
.item-review { font-size: 13px; color: #f59e0b; margin: 0 0 8px; }

.past-issues { margin-top: 24px; }
.past-issues h2 { font-size: 16px; border-bottom: 1px solid #eee; padding-bottom: 6px; }
.past-issues ul { list-style: none; padding: 0; }
.past-issues li { padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.past-issues li a { color: #4a9e5c; text-decoration: none; }
