/*
Theme Name: 無料スタンプまとめナビ
Description: 無料スタンプまとめナビのオリジナルテーマ。
Version: 0.1.0
Text Domain: stamp-matome
*/

:root { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; background: #f7f8fa; color: #24312c; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; line-height: 1.8; }
a { color: #08794d; text-underline-offset: .2em; }
.site-header, .site-footer { padding: 24px max(20px, calc((100% - 1040px) / 2)); background: #fff; }
.site-title { color: inherit; font-size: 1.3rem; font-weight: 700; text-decoration: none; }
.site-description { margin: 4px 0 0; }
.site-main { max-width: 1080px; margin: 32px auto; padding: 0 20px; min-height: 55vh; }
.entry { margin-bottom: 24px; padding: clamp(20px, 4vw, 40px); background: #fff; border: 1px solid #e1e8e3; border-radius: 12px; overflow-wrap: anywhere; }
h1, h2 { line-height: 1.5; }
img { max-width: 100%; height: auto; }
iframe { max-width: 100%; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.screen-reader-text:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; padding: 12px; clip-path: none; background: #fff; z-index: 100; }

/* Article renewal: white space, clear type and a green accent. */
:root { --accent: #07883e; --ink: #222; --muted: #73777a; --line: #e9ebed; }
body { background: #fff; color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #158a48; outline-offset: 4px; }
.site-header { padding: 0 28px; border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1120px; min-height: 108px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-title { font-size: 24px; letter-spacing: -.07em; font-weight: 800; }
.site-title::before { content: ''; display: inline-block; width: 11px; height: 22px; margin-right: 11px; border-radius: 3px; background: #06c755; vertical-align: -2px; }
.site-description { color: var(--muted); font-size: 11px; letter-spacing: .06em; margin: 3px 0 0 22px; }
.header-search { width: 320px; display: flex; align-items: center; background: #f5f6f7; border-radius: 6px; padding: 0 12px; }
.header-search input { width: 100%; min-width: 0; height: 44px; border: 0; background: transparent; font: inherit; font-size: 12px; }
.header-search button { display: grid; place-items: center; border: 0; background: none; padding: 8px; cursor: pointer; color: #555; }
.article-main { max-width: 1176px; margin: 0 auto; padding: 0 28px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 12px; padding: 25px 0; font-size: 11px; color: #85898c; }
.breadcrumbs a { color: #62676b; text-decoration: none; }
.advertising-disclosure { margin: 0 0 18px; padding: 10px 14px; background: #f5f6f5; color: #505650; font-size: 13px; line-height: 1.8; border-radius: 4px; }
.stamp-hero { display: grid; grid-template-columns: 1fr 1.12fr; align-items: center; gap: 72px; padding: 22px 28px 60px; border-bottom: 1px solid var(--line); }
.stamp-artwork { min-height: 350px; display: grid; place-items: center; background: #f8faf8; border-radius: 12px; padding: 44px; aspect-ratio: 1; }
.stamp-cover { display: block; width: 100%; max-width: 300px; max-height: 340px; object-fit: contain; }
.no-artwork { color: var(--muted); font-size: 14px; }
.eyebrow { margin: 0 0 17px; color: #858b88; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.stamp-categories { display: flex; flex-wrap: wrap; gap: 6px; }
.stamp-categories a, .article-tags a { padding: 3px 10px; border-radius: 3px; background: #f3f5f4; font-size: 11px; color: #636b66; text-decoration: none; }
.stamp-summary h1 { margin: 15px 0 18px; font-size: clamp(23px, 2.5vw, 30px); line-height: 1.65; letter-spacing: .015em; overflow-wrap: anywhere; }
.stamp-price { margin: 0 0 23px; font-size: 25px; font-weight: 700; color: var(--accent); }
.stamp-price span { margin-left: 13px; font-size: 12px; color: var(--muted); font-weight: 400; }
.deadline-box { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 24px; background: #f3f9f5; padding: 16px 20px; margin: 0 0 20px; border-radius: 5px; }
.deadline-box dt { font-size: 12px; color: #4a6253; }
.deadline-box dd { font-size: 19px; font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.deadline-box small { font-size: 12px; font-weight: 400; margin-left: 6px; }
.deadline-countdown { display: block; margin-top: 4px; color: var(--accent); font-size: 13px; font-weight: 700; }
.deadline-countdown.is-expired { color: #c62828; }
.stamp-primary-button, .entry-content .btn_dl { display: flex; justify-content: center; align-items: center; gap: 18px; min-height: 54px; padding: 14px 20px; background: #06a946; border-radius: 5px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; text-align: center; line-height: 1.6; }
.stamp-primary-button:hover, .entry-content .btn_dl:hover { background: #078b3d; }
.stamp-note { font-size: 11px; line-height: 1.8; color: var(--muted); margin: 12px 0 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 280px); gap: 80px; padding: 48px 0; scroll-margin-top: 24px; }
.article-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.article-section-heading h2 { margin: 0; font-size: 19px; }
.article-section-heading time { font-size: 11px; color: var(--muted); white-space: nowrap; }
.entry-content { font-size: 15px; line-height: 2.1; overflow-wrap: anywhere; }
.entry-content p { margin: 0 0 22px; }
.entry-content img { display: block; margin: 32px auto; }
.entry-content h2 { font-size: 21px; line-height: 1.8; margin: 44px 0 24px; border-bottom: 1px solid var(--line); padding-bottom: 17px; }
.entry-content h3 { font-size: 18px; }
.entry-content blockquote { margin: 28px 0; padding: 22px 25px; border-left: 3px solid #dbe6de; background: #f7f9f8; color: #626a66; font-size: 13px; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content .btn_dl { max-width: 480px; margin: 28px auto 12px; }
.entry-content .term { text-align: center; font-size: 13px; color: var(--accent); }
.entry-content .content-deadline-countdown { display: block; margin-top: 6px; color: #c62828; font-size: 14px; font-weight: 700; }
.stamp-adsense-before-first-h2 { margin: 30px 0 38px; text-align: center; }
.stamp-adsense-label { display: block; margin-bottom: 6px; color: #8a918d; font-size: 10px; line-height: 1.4; }
.stamp-adsense-before-first-h2 ins { min-height: 100px; }
.stamp-ad-free-space { text-align: center; }
.daily-stamp-copy .ending-today-notice { color: #c62828; font-weight: 700; }
.stamp-ad-page-title, .stamp-ad-page-bottom, .stamp-ad-listing-top, .stamp-ad-listing-bottom { width: 100%; margin: 28px 0; }
.stamp-ad-free-space img, .stamp-ad-free-space iframe { max-width: 100%; }
.stamp-ad-free-space-article-bottom { margin: 8px 0 42px; }
.stamp-ad-free-space-before-tags { margin: 30px 0; }
.stamp-ad-free-space-sidebar-top { margin: 0 0 28px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content td, .entry-content th { border: 1px solid var(--line); padding: 10px; }
.entry-content .wp-caption { max-width: 100%; }
.article-sidebar { border-left: 1px solid var(--line); padding-left: 27px; }
.article-sidebar h2 { font-size: 16px; margin: 0 0 14px; }
.latest-daily-banner { display: block; margin-bottom: 28px; padding: 20px 18px; border: 1px solid #cce7d5; border-radius: 8px; background: #edf8f1; color: #076d34; text-decoration: none; }
.latest-daily-label { display: block; font-size: 11px; margin-bottom: 9px; }
.latest-daily-banner strong { display: block; font-size: 17px; line-height: 1.7; }
.latest-daily-date { display: inline-block; margin-top: 12px; padding: 3px 9px; border-radius: 4px; background: #fff; font-size: 12px; }
.latest-daily-banner:hover { background: #dff2e6; border-color: var(--accent); }
.sidebar-keyword-search { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.keyword-search-form { display: flex; gap: 6px; }
.keyword-search-form input { min-width: 0; width: 100%; border: 1px solid #dce2de; border-radius: 4px; padding: 10px; font: inherit; font-size: 16px; }
.keyword-search-form button { flex-shrink: 0; padding: 10px 12px; border: 0; border-radius: 4px; background: var(--accent); color: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.keyword-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.keyword-tags a { padding: 7px 10px; border: 1px solid #e0e7e2; border-radius: 5px; background: #f7f9f8; color: #42644f; text-decoration: none; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; max-width: 100%; }
.keyword-tags a:hover { background: #e9f5ed; border-color: var(--accent); }
.article-sidebar p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 2; }
.article-sidebar ul { padding: 10px 0; list-style: none; }
.article-sidebar li { border-bottom: 1px solid var(--line); }
.article-sidebar li a { display: block; padding: 12px 0; color: #444; font-size: 13px; text-decoration: none; }
.article-sidebar li a:hover { color: var(--accent); }
.browse-all { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; text-decoration: none; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
.article-share { margin-top: 36px; padding: 28px 0; border-top: 1px solid var(--line); }
.article-share h2 { margin: 0 0 18px; text-align: center; font-size: 16px; }
.article-share-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.article-share-button { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px; border-radius: 5px; background: #171717; color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; }
.article-share-button.share-threads { background: #fff; color: #171717; border: 1px solid #171717; }
.article-share-button.share-line { background: #06C755; }
.article-share-button { gap: 8px; }
.share-service-icon { display: block; width: 20px; height: 20px; flex: 0 0 20px; filter: invert(1); }
.share-threads .share-service-icon { filter: none; }
.article-share-button:hover { opacity: .8; }
.article-navigation { border-top: 1px solid var(--line); padding: 30px 0 55px; }
.article-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.article-navigation a { display: flex; align-items: center; gap: 16px; color: #444; text-decoration: none; font-size: 12px; }
.article-navigation .article-nav-copy { display: block; min-width: 0; }
.article-navigation .article-nav-label { display: block; color: #85898c; margin-bottom: 6px; font-size: 11px; }
.article-navigation .article-nav-title { display: block; overflow-wrap: anywhere; }
.article-navigation .article-nav-countdown { display: block; margin-top: 6px; color: #c62828; font-size: 12px; font-weight: 700; }
.article-navigation .article-nav-thumbnail { width: 120px; height: 120px; flex: 0 0 120px; object-fit: contain; border-radius: 6px; background: #f7f9f8; }
.article-navigation .nav-next { grid-column: 2; text-align: right; }
.article-navigation .nav-next a { flex-direction: row-reverse; }
.article-navigation a:hover .article-nav-title { color: var(--accent); }
.site-footer { background: #f7f8f8; border-top: 1px solid var(--line); text-align: center; color: #747a77; padding: 30px 20px; font-size: 12px; }
@media (max-width: 800px) {
 .header-inner { min-height: 88px; gap: 20px; }
 .site-title { font-size: 19px; }
 .header-search { width: 240px; }
 .stamp-hero { padding: 15px 0 36px; gap: 28px; }
 .stamp-artwork { min-height: 0; padding: 25px; }
 .article-layout { gap: 30px; grid-template-columns: minmax(0, 1fr) 210px; }
}
@media (max-width: 600px) {
 .site-header { padding: 20px; }
 .header-inner { display: block; min-height: 0; }
 .site-title { font-size: 20px; }
 .site-description { font-size: 10px; letter-spacing: 0; }
 .header-search { width: 100%; margin-top: 17px; }
 .header-search input { height: 40px; font-size: 16px; }
 .article-main { padding: 0 20px; }
 .breadcrumbs { padding: 18px 0; font-size: 10px; gap: 8px; }
 .stamp-hero { grid-template-columns: 1fr; gap: 25px; padding-top: 0; }
 .stamp-artwork { aspect-ratio: auto; min-height: 260px; padding: 28px; }
 .stamp-cover { max-width: 210px; max-height: 240px; }
 .stamp-summary .eyebrow { display: none; }
 .stamp-summary h1 { font-size: 23px; margin: 12px 0; }
 .stamp-price { margin-bottom: 17px; }
 .article-layout { display: block; padding: 30px 0; }
 .article-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
 .entry-content { font-size: 14px; }
 .entry-content h2 { font-size: 18px; }
 .entry-content blockquote { margin: 24px 0; padding: 18px; }
 .article-sidebar { margin-top: 45px; padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
 .stamp-ad-free-space-sidebar-top { display: none; }
 .article-sidebar ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
 .article-navigation .nav-links { gap: 20px; }
 .article-navigation a, .article-navigation .nav-next a { flex-direction: column; align-items: flex-start; gap: 10px; }
 .article-navigation .nav-next a { align-items: flex-end; }
 .article-navigation .article-nav-thumbnail { width: 120px; height: 120px; flex-basis: 120px; }
}
.stamp-summary, .stamp-artwork, .article-body, .site-brand { min-width: 0; }
@media (max-width: 600px) { .stamp-hero { grid-template-columns: minmax(0, 1fr); } }

/* Shared stamp listings. */
.recent-articles { padding: 32px 0 56px; border-top: 1px solid var(--line); }
.recent-articles-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.recent-articles-heading h2 { margin: 0; font-size: 21px; }
.recent-articles-heading > a { font-size: 13px; font-weight: 700; text-decoration: none; }
.stamp-grid.recent-articles-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stamp-ad-free-space-recent-bottom { width: 100%; margin-top: 32px; }
@media (max-width: 950px) { .stamp-grid.recent-articles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
 .stamp-grid.recent-articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .recent-articles-heading h2 { font-size: 18px; }
}
.listing-main { max-width: 1176px; padding: 0 28px; margin: 40px auto 60px; }
.listing-heading { margin-bottom: 26px; }
.listing-heading .eyebrow { margin-bottom: 10px; }
.listing-heading h1 { font-size: clamp(23px, 3vw, 30px); margin: 0 0 14px; overflow-wrap: anywhere; }
.listing-heading > p:not(.eyebrow), .listing-description { font-size: 13px; color: #626a66; }
.listing-categories { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.listing-categories a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: #545d57; font-size: 12px; }
.listing-categories a[aria-current], .listing-categories a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; margin-top: 30px; }
.listing-results { min-width: 0; }
.listing-toolbar { display: flex; justify-content: space-between; margin-bottom: 22px; color: #73777a; font-size: 12px; }
.stamp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
.stamp-card { min-width: 0; }
.stamp-card-link { display: block; height: 100%; color: inherit; text-decoration: none; }
.stamp-card-image { display: grid; place-items: center; aspect-ratio: 1; padding: 24px; background: #f6f9f7; border-radius: 9px; }
.stamp-card-image img { width: 100%; height: 100%; max-height: 200px; object-fit: contain; }
.stamp-card-placeholder { font-size: 12px; color: var(--muted); }
.stamp-card-content { padding: 14px 2px 0; }
.stamp-card-price { display: inline-block; padding: 2px 9px; border-radius: 5px; background: #c62828; color: #fff; font-weight: 700; font-size: 12px; line-height: 1.6; }
.stamp-card h2 { margin: 6px 0 12px; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.stamp-card p { margin: 4px 0 0; font-size: 11px; }
.stamp-card-deadline { color: #73777a; }
.stamp-card-countdown { color: #c62828; font-weight: 700; }
.stamp-card-link:hover h2 { color: var(--accent); }
.stamp-card-link:hover .stamp-card-image { background: #ebf4ee; }
.listing-results .pagination { margin-top: 44px; }
.listing-results .pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; }
.listing-results .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 6px 10px; color: #4c5750; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; font-size: 13px; }
.listing-results .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.listing-empty { padding: 40px 0; }
.listing-empty h2 { font-size: 19px; }
.listing-empty p { color: var(--muted); font-size: 14px; }
@media (max-width: 950px) {
 .listing-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 25px; }
 .stamp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
 .listing-main { padding: 0 20px; margin-top: 28px; }
 .listing-layout { display: block; }
 .listing-layout .article-sidebar { margin-top: 40px; border-left: 0; border-top: 1px solid var(--line); padding: 28px 0 0; }
 .stamp-grid { gap: 26px 14px; }
 .stamp-card-image { padding: 16px; }
 .stamp-card h2 { font-size: 13px; }
 .listing-categories { gap: 7px; }
 .listing-categories a { padding: 6px 11px; font-size: 11px; }
}

/* Optional editorial layout for WordPress pages. */
.blog-page-main { max-width: 1016px; margin: 0 auto 64px; padding: 0 28px; }
.blog-page-header { max-width: 800px; margin: 25px auto 32px; }
.blog-page-header h1 { font-size: clamp(26px, 3.5vw, 38px); line-height: 1.65; margin: 0 0 24px; overflow-wrap: anywhere; }
.blog-page-dates { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 12px; color: #68726b; }
.blog-page-cover { margin: 0 0 42px; background: #f4f8f5; border-radius: 12px; overflow: hidden; }
.blog-page-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.blog-page-body { max-width: 740px; margin: 0 auto; }
.blog-page-body .entry-content { font-size: 16px; line-height: 2.2; }
.blog-page-body .entry-content h2 { margin-top: 48px; border-left: 4px solid #06c755; padding: 6px 0 6px 18px; border-bottom: 0; font-size: 24px; }
.blog-page-body .entry-content li { margin-bottom: 10px; }
.blog-page-body .entry-content .wp-block-button__link { background: var(--accent); color: #fff; border-radius: 5px; padding: 12px 24px; text-decoration: none; }
.blog-page-back { text-align: center; font-size: 14px; margin: 24px 0 0; }
@media (max-width: 600px) {
 .blog-page-main { padding: 0 20px; }
 .blog-page-header { margin-top: 16px; }
 .blog-page-header h1 { font-size: 26px; }
 .blog-page-cover { margin-bottom: 28px; border-radius: 7px; }
 .blog-page-body .entry-content { font-size: 15px; }
 .blog-page-body .entry-content h2 { font-size: 21px; }
}

/* Saved daily-list snapshots: no live countdown. */
.daily-stamp-list { display: grid; gap: 14px; }
.daily-stamp-item { border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.daily-stamp-item > a { display: flex; align-items: center; gap: 20px; color: inherit; text-decoration: none; }
.entry-content .daily-stamp-item img { width: 100px; height: 100px; flex: 0 0 100px; margin: 0; object-fit: contain; border-radius: 6px; }
.daily-stamp-copy { min-width: 0; }
.daily-stamp-copy strong { display: block; font-size: 15px; line-height: 1.8; }
.daily-stamp-copy > span { display: block; margin-top: 8px; color: #68726b; font-size: 12px; }
.daily-stamp-item a:hover strong { color: var(--accent); }
@media (max-width: 600px) {
 .daily-stamp-item { padding: 12px; }
 .daily-stamp-item > a { gap: 12px; }
 .entry-content .daily-stamp-item img { width: 72px; height: 72px; flex-basis: 72px; }
 .daily-stamp-copy strong { font-size: 13px; }
}

/* Editorial guides, separate from stamp offers. */
.stamp-grid.guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-card-image { aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: #edf5ef; }
.guide-card-image img { width: 100%; height: 100%; object-fit: cover; }
.guide-card-image > span { padding: 12px; color: #52745e; letter-spacing: .08em; font-size: 11px; }
.guide-card time { font-size: 11px; color: var(--muted); }
.sidebar-guides { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.article-sidebar .sidebar-guides-list { display: block; margin: 0 0 16px; padding: 0; }
.article-sidebar .sidebar-guides-list li a { display: flex; align-items: center; gap: 10px; padding: 12px 0; }
.sidebar-guide-image { display: grid; place-items: center; flex: 0 0 72px; width: 72px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #edf5ef; color: #52745e; font-size: 10px; }
.sidebar-guide-image img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-guide-title { min-width: 0; line-height: 1.7; overflow-wrap: anywhere; }
.sidebar-guides-all { display: block; padding: 10px; border: 1px solid var(--line); border-radius: 5px; text-align: center; font-size: 12px; font-weight: 700; text-decoration: none; }
@media (max-width: 450px) { .stamp-grid.guide-grid { grid-template-columns: minmax(0, 1fr); } }
