/*
Theme Name: ELFBAR Japan News
Theme URI: https://www.elfbar.co.jp/news/
Author: ELFBAR Japan
Description: ELFBAR Japan のニュース・取扱店向け情報専用テーマ。
Version: 1.0.0
Text Domain: elfbar-news
*/

:root {
  --ink: #171925;
  --muted: #626777;
  --line: #e5e6ec;
  --soft: #f6f7fa;
  --accent: #c33cff;
  --accent-2: #ff4fa3;
  --blue: #2667ff;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(20,21,30,.08); backdrop-filter: blur(16px); }
.header-row { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand img { display: block; width: 180px; max-height: 48px; object-fit: contain; object-position: left center; }
.nav { display: flex; align-items: center; gap: 24px; font-size: .92rem; font-weight: 700; }
.nav a { text-decoration: none; }
.nav a:hover, .nav a:focus-visible, .nav .is-current { color: #9c2edd; }
.nav-cta { padding: 10px 18px; color: #fff !important; background: #242631; border-radius: 999px; }
.nav-toggle { display: none; border: 0; background: transparent; font-size: 1.55rem; }

.notice-bar { padding: 10px 20px; color: #4e4653; background: #fbf5fc; text-align: center; font-size: .8rem; border-bottom: 1px solid #f1e4f4; }
.masthead { padding: 74px 0 56px; background: #f7f7fa; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 12px; color: #a72de3; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.masthead h1 { margin: 0; font-size: clamp(2.3rem, 6vw, 5rem); line-height: 1.04; letter-spacing: -.045em; }
.masthead p { max-width: 680px; margin: 20px 0 0; color: var(--muted); font-size: 1.05rem; }

.news-main { padding: 58px 0 90px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.post-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.post-card-link { display: block; text-decoration: none; height: 100%; }
.post-card-media { aspect-ratio: 16/10; background: var(--soft); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card-link:hover .post-card-media img { transform: scale(1.025); }
.post-card-body { padding: 24px; }
.post-card time { color: var(--muted); font-size: .78rem; letter-spacing: .04em; }
.post-card h2 { margin: 10px 0 12px; font-size: 1.25rem; line-height: 1.45; letter-spacing: -.02em; }
.post-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.read-more { display: inline-block; margin-top: 18px; color: #982bd4; font-size: .85rem; font-weight: 800; }
.empty-state { padding: 52px; background: var(--soft); border-radius: 18px; text-align: center; }
.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; }
.pagination a, .pagination span { min-width: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; text-align: center; text-decoration: none; }
.pagination .current { color: white; background: #23252f; border-color: #23252f; }

.breadcrumbs { padding: 24px 0; color: var(--muted); font-size: .82rem; }
.breadcrumbs a { color: #6f2a97; text-underline-offset: 3px; }
.article { padding-bottom: 90px; }
.article-hero { position: relative; overflow: hidden; min-height: 560px; border-radius: 24px; background: #eef4f8; }
.article-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-hero-overlay { position: relative; z-index: 2; width: min(590px, calc(100% - 64px)); margin: 40px; padding: 32px; background: rgba(255,255,255,.93); border: 1px solid rgba(255,255,255,.86); border-radius: 18px; box-shadow: 0 16px 48px rgba(20,32,52,.12); backdrop-filter: blur(14px); }
.article-label { display: inline-block; max-width: 100%; padding: 7px 11px; color: #7f277e; background: #fff1fb; border: 1px solid #f1cce9; border-radius: 8px; font-size: .75rem; font-weight: 800; line-height: 1.5; }
.article-hero h1 { margin: 14px 0 16px; font-size: clamp(2rem, 4.3vw, 3.8rem); line-height: 1.14; letter-spacing: -.04em; }
.article-hero .lead { margin: 0; color: #4f5667; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; color: #656b79; font-size: .82rem; }
.article-content { width: min(820px, calc(100% - 40px)); margin: 54px auto 0; font-size: 1.04rem; }
.article-content > p:first-child { font-size: 1.11rem; }
.article-content h2 { margin: 3.1rem 0 1rem; padding-top: .2rem; font-size: 1.62rem; line-height: 1.42; letter-spacing: -.015em; }
.article-content h2::before { content: ""; display: block; width: 42px; height: 3px; margin-bottom: 12px; background: var(--accent); }
.article-content p { margin: 1.1em 0; }
.article-content a { color: #075ea9; font-weight: 700; text-decoration-thickness: .08em; text-underline-offset: .18em; }
.article-content table { width: 100%; margin: 24px 0; border-collapse: collapse; font-size: .92rem; background: #fff; }
.article-content th, .article-content td { padding: 12px; border: 1px solid #dfe3e9; text-align: left; vertical-align: top; }
.article-content .answer-box, .article-content .source-note { margin: 22px 0; padding: 22px 24px; background: #f1f7fb; border-left: 4px solid #1479c9; border-radius: 10px; }
.article-content .source-note { color: #505b68; background: #f5f6f8; border-color: #929ba5; font-size: .9rem; }
.article-content .article-cta { margin-top: 3rem; padding: 28px; color: #fff; background: #20232d; border-radius: 14px; }
.article-content .article-cta a { display: inline-block; margin-top: 10px; padding: 10px 17px; color: #191b23; background: #fff; border-radius: 999px; text-decoration: none; }
.article-caption { margin: 10px auto 0; color: #6f7683; font-size: .78rem; text-align: center; }

.site-footer { padding: 42px 0; color: #d8dae2; background: #1f212a; }
.footer-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.site-footer a { color: #fff; text-underline-offset: 3px; }
.footer-brand { margin: 0 0 8px; color: #fff; font-weight: 800; letter-spacing: .04em; }
.footer-copy { margin: 0; max-width: 620px; font-size: .82rem; }

@media (max-width: 860px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 20px; right: 20px; top: 68px; padding: 20px; flex-direction: column; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 45px rgba(0,0,0,.12); }
  .nav.is-open { display: flex; }
  .article-hero { min-height: 700px; }
  .article-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 32%, rgba(255,255,255,.96) 70%); }
  .article-hero-overlay { position: absolute; left: 14px; right: 14px; bottom: 14px; width: auto; margin: 0; padding: 22px; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 24px, var(--max)); }
  .brand img { width: 150px; }
  .post-grid { grid-template-columns: 1fr; }
  .masthead { padding: 48px 0 38px; }
  .news-main { padding-top: 32px; }
  .article-hero { min-height: 680px; border-radius: 16px; }
  .article-hero > img { object-position: 78% center; }
  .article-hero h1 { font-size: clamp(1.6rem, 8vw, 2.1rem); }
  .article-content { width: min(100% - 26px, 820px); font-size: 1rem; }
  .article-content h2 { font-size: 1.38rem; }
  .article-content table { display: block; overflow-x: auto; }
  .footer-row { flex-direction: column; }
}

