/* ═══════════════════════════════════════
   MOVEMENT — Main Stylesheet
   ═══════════════════════════════════════ */

body { font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif; background-color: #f8f8f6; color: #1a1a1a; }
.mono-label { font-family: 'Space Mono', monospace; text-transform: uppercase; letter-spacing: 0.05em; }
.trend-score-panel { background: #111111; color: white; }
.accent-text { color: #32FFBB; }
.border-accent { border-color: #32FFBB; }

/* ─── Search ─── */
#search-wrapper { position: relative; }
#search-bar {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 300px;
  background: #fff;
  border: 1.5px solid #1a1a1a;
  box-shadow: 4px 4px 0 0 rgba(0,0,0,1);
  display: flex;
  align-items: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}
#search-bar.open { opacity: 1; pointer-events: all; transform: translateY(0); }
#search-input { border: none; background: transparent; padding: 10px 12px; font-size: 13px; flex: 1; outline: none; font-family: 'Space Grotesk', sans-serif; }
#search-submit { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 12px; height: 42px; background: #1a1a1a; color: #fff; border: none; cursor: pointer; font-family: 'Space Mono', monospace; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; transition: background .2s; flex-shrink: 0; }
#search-submit:hover { background: #32FFBB; color: #000; }

/* ─── Hamburger menu ─── */
#mobile-menu { transform: translateX(-100%); transition: transform 0.3s ease; }
#mobile-menu.open { transform: translateX(0); }
.hamburger-line { display: block; width: 22px; height: 2px; background: #1a1a1a; transition: all 0.3s ease; }
#hamburger.open .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#hamburger.open .hamburger-line:nth-child(2) { opacity: 0; }
#hamburger.open .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
#menu-overlay { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
#menu-overlay.open { opacity: 1; pointer-events: all; }
#mobile-menu input { font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif; }

/* ─── Article card thumbnail zoom (legacy, kept for compatibility) ─── */

/* Hero (Featured) thumbnail zoom */
.hero-thumb-zoom img { transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94); }
.hero-thumb-zoom:hover img { transform: scale(1.06); }

/* Related article thumbnail zoom */
.related-card .related-thumb img { transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94); }
.related-card:hover .related-thumb img { transform: scale(1.06); }

/* ─── Category section layout ─── */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (min-width: 1024px) {
  .cat-grid { grid-template-columns: 5fr 4fr; }
}
.cat-sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* SP: horizontal scroll */
@media (max-width: 767px) {
  .cat-grid-outer { overflow-x: auto; overflow-y: hidden; -ms-overflow-style: none; scrollbar-width: none; }
  .cat-grid-outer::-webkit-scrollbar { display: none; }
  .cat-grid { display: flex; gap: 16px; width: max-content; }
  .cat-card-main { width: 78vw; flex-shrink: 0; }
  .cat-sub-grid { flex-shrink: 0; display: flex; gap: 16px; }
  .cat-sub-grid .cat-card-sub { width: 78vw; flex-shrink: 0; }
}

/* ─── Nav Flip Animation ─── */
.nav-flip-link {
  perspective: 300px;
  display: inline-flex;
  align-items: center;
}
.nav-flip-inner {
  display: grid;
  transition: transform 0.4s ease;
  transform-style: preserve-3d;
}
.nav-flip-front,
.nav-flip-back {
  grid-area: 1 / 1;
  backface-visibility: hidden;
  text-align: center;
  white-space: nowrap;
  line-height: 1.6;
}
.nav-flip-back {
  transform: rotateX(180deg);
  color: #32FFBB;
}
.nav-flip-link:hover .nav-flip-inner {
  transform: rotateX(180deg);
}

/* Nav scrollbar hide */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ─── PICK UP hover effect ─── */
.pickup-section { cursor: pointer; }
.pickup-bg { transition: transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.8s ease; }
.pickup-overlay { transition: background 0.6s ease; }
.pickup-section:hover .pickup-bg { transform: scale(1.08); filter: saturate(1.4) brightness(1.15); }
.pickup-section:hover .pickup-overlay { background: rgba(0,0,0,0.4); }

/* ─── Archive tag filter ─── */
.archive-tags-scroll { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 767px) {
  .archive-tags-scroll { flex-wrap: nowrap; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; padding-bottom: 4px; }
  .archive-tags-scroll::-webkit-scrollbar { display: none; }
}
.archive-tag { font-family: "Space Mono", monospace; font-size: 11px; padding: 4px 12px; border: 1px solid #cbd5e1; color: #64748b; border-radius: 9999px; text-decoration: none; white-space: nowrap; transition: all 0.2s; flex-shrink: 0; }
.archive-tag:hover { border-color: #32FFBB; color: #32FFBB; }
.archive-tag.active { background: #1a1a1a; border-color: #1a1a1a; color: #32FFBB; }

/* ─── Footer ─── */
.footer-link { color: #9ca3af; transition: color 0.2s; }
.footer-link:hover { color: #32FFBB; }
.footer-section-title { font-family: 'Space Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; color: #6b7280; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid #2d2d2d; }

/* ─── SNS icons ─── */
.sns-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #2d2d2d; color: #9ca3af; transition: all 0.2s; }
.sns-btn:hover { border-color: #32FFBB; color: #32FFBB; }


/* ═══════════════════════════════════════
   ARTICLE PAGE
   ═══════════════════════════════════════ */

/* Progress bar */
#read-progress { position:fixed; top:0; left:0; height:2px; background:#32FFBB; z-index:999; transition:width .1s linear; width:0%; }

/* hero image */
.hero-img-wrap { position:relative; width:100%; aspect-ratio:16/9; background:#e0e0dc; overflow:hidden; border:1px solid #1a1a1a; }
.hero-img-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#e8e8e4,#d8d8d4); font-family:'Space Mono',monospace; font-size:11px; color:#aaa; letter-spacing:.1em; }
.img-credit { position:absolute; bottom:10px; right:12px; background:rgba(248,248,246,.9); font-family:'Space Mono',monospace; font-size:9px; color:#888; padding:3px 8px; letter-spacing:.05em; }

/* article 2-column layout */
.article-wrap { max-width:1200px; margin:0 auto; padding:48px 24px 80px; display:grid; grid-template-columns:1fr 300px; gap:64px; align-items:start; }
@media(max-width:1023px){ .article-wrap { grid-template-columns:1fr; gap:48px; } }

/* insight box */
.insight-box { background:#fff; border:1.5px solid #1a1a1a; padding:20px 24px; margin-bottom:36px; box-shadow:4px 4px 0 0 rgba(0,0,0,1); }
.insight-lead { font-family:'Space Mono',monospace; font-size:10px; letter-spacing:.12em; color:#888; text-transform:uppercase; margin-bottom:12px; }
.insight-list { list-style:none; display:flex; flex-direction:column; gap:8px; padding:0; }
.insight-list li { font-size:14px; color:#444; line-height:1.65; padding-left:20px; position:relative; }
.insight-list li::before { content:"→"; position:absolute; left:0; color:#1a1a1a; font-weight:700; }

/* section label */
.sec-label { font-family:'Space Mono',monospace; font-size:9px; letter-spacing:.18em; text-transform:uppercase; color:#aaa; margin-bottom:10px; display:flex; align-items:center; gap:8px; }
.sec-label::after { content:''; flex:1; height:1px; background:#e0e0dc; }

/* overview */
.overview-text { font-size:16px; line-height:1.8; color:#444; border-left:3px solid #1a1a1a; padding-left:16px; margin-bottom:36px; }

/* body text */
.body-text { font-size:16px; line-height:1.9; color:#1a1a1a; margin-bottom:40px; }
.body-text h2 { font-size:20px; font-weight:700; color:#1a1a1a; margin:40px 0 16px; padding-bottom:10px; border-bottom:2px solid #1a1a1a; line-height:1.4; }
.body-text h2:first-child { margin-top:0; }
.body-text h3 { font-size:17px; font-weight:700; color:#1a1a1a; margin:28px 0 12px; line-height:1.4; }
.body-text p { margin-bottom:1.2em; }
.body-text p:last-child { margin-bottom:0; }
.body-text ul, .body-text ol { margin-bottom:1.2em; padding-left:20px; }
.body-text li { margin-bottom:0.4em; }

/* marketing analysis */
.marketing-wrap { background:#111; border-left:4px solid #32FFBB; padding:28px; margin-bottom:40px; }
.marketing-label { font-family:'Space Mono',monospace; font-size:9px; letter-spacing:.18em; text-transform:uppercase; color:#555; margin-bottom:14px; display:flex; align-items:center; gap:8px; }
.marketing-label::after { content:''; flex:1; height:1px; background:#2a2a2a; }
.marketing-lead { font-size:16px; font-weight:700; color:#f0f0f0; line-height:1.6; margin-bottom:18px; border-bottom:1px solid #2a2a2a; padding-bottom:16px; }
.marketing-body { font-size:15px; line-height:1.9; color:#aaa; }
.marketing-body p { margin-bottom:1.1em; }
.marketing-body p:last-child { margin-bottom:0; }

/* source badge */
.source-badge { display:inline-flex; align-items:center; gap:8px; border:1px solid #1a1a1a; padding:8px 14px; font-family:'Space Mono',monospace; font-size:10px; letter-spacing:.08em; color:#1a1a1a; text-decoration:none; transition:all .2s; margin-bottom:40px; }
.source-badge:hover { background:#1a1a1a; color:#f8f8f6; }

/* share */
.share-section { margin-bottom:48px; }
.share-btn { display:inline-flex; align-items:center; gap:6px; border:1px solid #ccc; padding:8px 16px; font-family:'Space Mono',monospace; font-size:10px; letter-spacing:.08em; cursor:pointer; transition:all .2s; background:#f8f8f6; color:#666; margin-right:8px; margin-bottom:8px; }
.share-btn:hover { border-color:#1a1a1a; color:#1a1a1a; }
.share-btn.x-btn:hover { border-color:#1a1a1a; background:#1a1a1a; color:#fff; }

/* related articles */
.related-card { display:flex; gap:12px; margin-bottom:16px; cursor:pointer; }
.related-thumb { width:72px; height:54px; background:linear-gradient(135deg,#e8e8e4,#d8d8d4); flex-shrink:0; border:1px solid #e0e0dc; display:flex; align-items:center; justify-content:center; font-size:8px; font-family:'Space Mono',monospace; color:#ccc; letter-spacing:.05em; overflow:hidden; }
.related-thumb img { width:100%; height:100%; object-fit:cover; }
.related-title { font-size:12px; font-weight:700; line-height:1.4; color:#1a1a1a; flex:1; }
.related-title:hover { color:#32FFBB; }
.related-cat { font-family:'Space Mono',monospace; font-size:8px; color:#aaa; letter-spacing:.08em; margin-top:4px; }

/* sidebar */
.sidebar { position:sticky; top:80px; }
.sidebar-section { margin-bottom:32px; }
.sidebar-label { font-family:'Space Mono',monospace; font-size:9px; letter-spacing:.18em; text-transform:uppercase; color:#aaa; padding-bottom:8px; border-bottom:1px solid #e0e0dc; margin-bottom:16px; }


/* ═══════════════════════════════════════
   ARCHIVE PAGE
   ═══════════════════════════════════════ */
.archive-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:32px; }
@media(max-width:1023px){ .archive-grid { grid-template-columns:repeat(2,1fr); } }
@media(max-width:639px){ .archive-grid { grid-template-columns:1fr; } }
.arc-card { display:flex; flex-direction:column; cursor:pointer; }
.arc-card:hover .arc-title { color:#32FFBB; }
.arc-thumb { aspect-ratio:16/9; background:linear-gradient(135deg,#e8e8e4,#d8d8d4); border:1px solid #1a1a1a; display:flex; align-items:center; justify-content:center; font-family:"Space Mono",monospace; font-size:9px; color:#ccc; letter-spacing:.1em; margin-bottom:14px; overflow:hidden; position:relative; }
.arc-thumb img { width:100%; height:100%; object-fit:cover; filter:grayscale(100%); transition:filter .4s, transform .6s cubic-bezier(0.25,0.46,0.45,0.94); }
.arc-card:hover .arc-thumb img { filter:grayscale(0%); transform:scale(1.06); }
/* Top page cards: always color */
.arc-thumb--color img { filter:none; }
.arc-card:hover .arc-thumb--color img { filter:none; transform:scale(1.06); }
/* Mobile: show color (no hover concept on touch) */
@media (max-width:767px) {
  .arc-thumb img { filter:none; }
}
.arc-meta { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:8px; }
.arc-cat { font-family:"Space Mono",monospace; font-size:9px; letter-spacing:.12em; text-transform:uppercase; padding:3px 10px; border:1px solid #1a1a1a; color:#1a1a1a; }
.arc-country { font-family:"Space Mono",monospace; font-size:9px; background:#1a1a1a; color:#fff; padding:3px 8px; font-weight:700; }
.arc-date { font-family:"Space Mono",monospace; font-size:9px; color:#aaa; letter-spacing:.06em; }
.arc-title { font-size:16px; font-weight:700; line-height:1.4; color:#1a1a1a; margin-bottom:10px; transition:color .2s; }
.arc-summary { font-size:13px; color:#666; line-height:1.7; margin-bottom:12px; }
.arc-scores { display:flex; gap:8px; }
.arc-score { font-family:"Space Mono",monospace; font-size:9px; color:#aaa; border:1px solid #e0e0dc; padding:2px 8px; }
.arc-score.hi { border-color:#32FFBB; color:#28CC96; }
.pagination { display:flex; align-items:center; justify-content:center; margin-top:48px; }
.pagination ul.page-numbers { list-style:none; display:flex; align-items:center; justify-content:center; gap:4px; margin:0; padding:0; flex-wrap:wrap; }
.pagination ul.page-numbers li { margin:0; padding:0; }
.pagination ul.page-numbers li a,
.pagination ul.page-numbers li span { font-family:"Space Mono",monospace; font-size:11px; width:36px; height:36px; display:flex; align-items:center; justify-content:center; border:1px solid #ccc; color:#888; cursor:pointer; transition:all .2s; text-decoration:none; }
.pagination ul.page-numbers li a:hover { background:#1a1a1a; color:#fff; border-color:#1a1a1a; }
.pagination ul.page-numbers li span.current { background:#1a1a1a; color:#32FFBB; border-color:#1a1a1a; }
.pagination ul.page-numbers li a.prev,
.pagination ul.page-numbers li a.next { width:auto; padding:0 12px; }


/* ═══════════════════════════════════════
   SEARCH PAGE
   ═══════════════════════════════════════ */
.search-hero { background:#1a1a1a; padding:32px 24px; margin-bottom:0; }
.search-form-wrap { max-width:680px; display:flex; gap:0; border:1.5px solid #333; }
.search-form-wrap input { flex:1; background:#111; color:#f0f0f0; border:none; padding:14px 18px; font-size:15px; font-family:"Space Grotesk","Noto Sans JP",sans-serif; outline:none; }
.search-form-wrap input::placeholder { color:#555; }
.search-submit-btn { background:#32FFBB; color:#000; border:none; padding:0 24px; font-family:"Space Mono",monospace; font-size:11px; font-weight:700; letter-spacing:.1em; cursor:pointer; transition:background .2s; }
.search-submit-btn:hover { background:#fff; }
.result-count { font-family:"Space Mono",monospace; font-size:11px; color:#aaa; letter-spacing:.06em; margin-bottom:24px; }
.result-count strong { color:#1a1a1a; }
.no-result { text-align:center; padding:64px 0; }
.no-result-icon { font-size:48px; margin-bottom:16px; opacity:.3; }


/* ═══════════════════════════════════════
   STATIC / ABOUT PAGES
   ═══════════════════════════════════════ */

/* Static page */
.static-hero { background:#f0f0ec; border-bottom:2px solid #1a1a1a; padding:40px 24px 32px; }
.static-hero-label { font-family:"Space Mono",monospace; font-size:9px; letter-spacing:.2em; text-transform:uppercase; color:#aaa; margin-bottom:8px; }
.static-hero-title { font-size:clamp(24px,4vw,36px); font-weight:700; letter-spacing:-.02em; color:#1a1a1a; }
.static-wrap { max-width:760px; margin:0 auto; padding:56px 24px 80px; }
.static-updated { font-family:"Space Mono",monospace; font-size:10px; color:#aaa; letter-spacing:.06em; margin-bottom:40px; padding-bottom:16px; border-bottom:1px solid #e0e0dc; }
.static-toc { background:#f8f8f6; border:1px solid #e0e0dc; padding:20px 24px; margin-bottom:40px; }
.static-toc-title { font-family:"Space Mono",monospace; font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:#888; margin-bottom:12px; }
.static-toc ol { list-style:decimal; padding-left:20px; }
.static-toc li { font-size:13px; color:#666; margin-bottom:6px; line-height:1.5; }
.static-toc a { color:#1a1a1a; text-decoration:none; }
.static-toc a:hover { color:#32FFBB; }
.static-h2 { font-size:18px; font-weight:700; color:#1a1a1a; margin:40px 0 14px; padding-bottom:8px; border-bottom:2px solid #1a1a1a; }
.static-h3 { font-size:15px; font-weight:700; color:#1a1a1a; margin:24px 0 10px; }
.static-body { font-size:15px; line-height:1.9; color:#444; margin-bottom:16px; }
.static-body a { color:#1a1a1a; text-decoration:underline; }
.static-body a:hover { color:#32FFBB; }
.static-list { list-style:disc; padding-left:20px; margin-bottom:16px; }
.static-list li { font-size:15px; line-height:1.8; color:#444; margin-bottom:4px; }

/* About page */
.about-hero { background:#1a1a1a; padding:80px 24px; text-align:center; }
.about-hero-label { font-family:"Space Mono",monospace; font-size:10px; letter-spacing:.3em; text-transform:uppercase; color:#555; margin-bottom:16px; }
.about-hero-title { font-size:clamp(32px,6vw,56px); font-weight:700; color:#f0f0f0; line-height:1.1; letter-spacing:-.02em; margin-bottom:20px; }
.about-hero-title .accent { color:#32FFBB; }
.about-hero-sub { font-size:16px; color:#666; line-height:1.75; max-width:560px; margin:0 auto; }
.about-section { max-width:800px; margin:0 auto; padding:64px 24px; }
.about-lead { font-size:20px; font-weight:700; line-height:1.6; color:#1a1a1a; margin-bottom:32px; border-left:4px solid #32FFBB; padding-left:20px; }
.about-body { font-size:16px; line-height:1.9; color:#444; margin-bottom:40px; }
.about-body p { margin-bottom:1.4em; }
.concept-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin:48px 0; }
@media(max-width:767px){ .concept-grid { grid-template-columns:1fr; } }
.concept-card { background:#fff; border:1px solid #e0e0dc; border-top:3px solid #1a1a1a; padding:24px; }
.concept-num { font-family:"Space Mono",monospace; font-size:32px; font-weight:700; color:#e0e0dc; line-height:1; margin-bottom:12px; }
.concept-title { font-size:15px; font-weight:700; color:#1a1a1a; margin-bottom:10px; }
.concept-desc { font-size:13px; color:#666; line-height:1.7; }
.about-motive { background:#1a1a1a; padding:48px 24px; text-align:center; }
.motive-link { display:inline-flex; align-items:center; gap:10px; font-family:"Space Mono",monospace; font-size:11px; letter-spacing:.1em; color:#aaa; text-decoration:none; border:1px solid #333; padding:12px 24px; transition:all .2s; }
.motive-link:hover { border-color:#32FFBB; color:#32FFBB; }
