/*
Theme Name: ENTAME PULSE
Theme URI: https://example.com/entame-pulse
Author: Yoshida Yurika
Description: 映画・音楽・ドラマ・カルチャーを軽快に届けるエンタメニューステーマ。
Version: 1.0.0
Text Domain: entame
*/

:root {
  --ink: #111224;
  --muted: #696a79;
  --paper: #f6f5f9;
  --white: #fff;
  --pink: #ff2f7d;
  --cyan: #18d6d0;
  --yellow: #ffe34e;
  --purple: #703cff;
  --line: rgba(17, 18, 36, .12);
  --shadow: 0 16px 42px rgba(28, 20, 63, .12);
  --radius: 22px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif; line-height: 1.8; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
button, input { font: inherit; }
.container { width: min(calc(100% - 40px), var(--wrap)); margin-inline: auto; }
.screen-reader-text { position: absolute; clip: rect(1px, 1px, 1px, 1px); }

.site-header { position: sticky; z-index: 50; top: 0; color: #fff; background: rgba(17,18,36,.95); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,.1); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 40px; aspect-ratio: 1; border-radius: 13px; background: linear-gradient(135deg,var(--pink),var(--purple)); font-weight: 900; box-shadow: 5px 5px 0 var(--cyan); transform: rotate(-4deg); }
.brand-text { font-size: 1.2rem; font-weight: 900; letter-spacing: .09em; line-height: 1; }
.brand-text small { display: block; margin-top: 6px; color: rgba(255,255,255,.58); font-size: .55rem; letter-spacing: .2em; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 27px; padding: 0; margin: 0; list-style: none; }
.main-nav a { position: relative; padding-block: 26px; color: rgba(255,255,255,.8); font-size: .84rem; font-weight: 700; }
.main-nav a:hover { color: #fff; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 19px; height: 3px; background: var(--pink); transition: .25s; }
.main-nav a:hover::after { right: 0; }
.header-search { display: grid; place-items: center; width: 39px; height: 39px; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; cursor: pointer; }
.header-search img { width: 18px; height: 18px; object-fit: contain; }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; color: #fff; background: none; border: 0; cursor: pointer; }
.menu-toggle-bars { position: relative; display: block; width: 22px; height: 16px; }
.menu-toggle-bars span { position: absolute; left: 0; display: block; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform .28s ease, opacity .2s ease, top .28s ease; }
.menu-toggle-bars span:nth-child(1) { top: 0; }
.menu-toggle-bars span:nth-child(2) { top: 7px; }
.menu-toggle-bars span:nth-child(3) { top: 14px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

body.is-search-open { overflow: hidden; }
.search-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s ease, visibility .35s ease; }
.search-modal[hidden] { display: none; }
.search-modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.search-modal-backdrop { position: absolute; inset: 0; background: rgba(9,10,23,.72); backdrop-filter: blur(10px); opacity: 0; transition: opacity .35s ease; }
.search-modal.is-open .search-modal-backdrop { opacity: 1; }
.search-modal-dialog { position: relative; z-index: 1; width: min(100%, 560px); padding: 40px 36px 36px; color: var(--ink); background: #fff; border-radius: 24px; box-shadow: var(--shadow); opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .4s ease, transform .4s cubic-bezier(.22,1,.36,1); }
.search-modal.is-open .search-modal-dialog { opacity: 1; transform: translateY(0) scale(1); }
.search-modal-close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; padding: 0; color: var(--muted); background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.search-modal-close:hover { color: var(--ink); }
.search-modal-kicker { margin: 0 0 6px; color: var(--pink); font: 800 .72rem/1 sans-serif; letter-spacing: .18em; }
.search-modal-title { margin: 0 0 24px; font-size: 1.7rem; line-height: 1.3; letter-spacing: -.03em; }
.search-modal-form { display: flex; gap: 8px; }
.search-modal-form input { flex: 1; min-width: 0; padding: 14px 17px; border: 1px solid var(--line); border-radius: 12px; outline: none; }
.search-modal-form input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(112,60,255,.15); }
.search-modal-form button { flex-shrink: 0; padding: 14px 22px; color: #fff; background: var(--pink); border: 0; border-radius: 12px; font-weight: 800; cursor: pointer; }
.search-modal-form button:hover { background: var(--purple); }

.ticker { overflow: hidden; color: var(--ink); background: var(--yellow); font-size: .78rem; font-weight: 800; }
.ticker-inner { display: flex; align-items: center; min-height: 38px; white-space: nowrap; }
.ticker-label { align-self: stretch; display: grid; place-items: center; padding: 0 18px; margin-right: 24px; color: #fff; background: var(--pink); letter-spacing: .1em; transform: skew(-10deg); }
.ticker-label span { transform: skew(10deg); }
.ticker-items { display: flex; gap: 42px; animation: ticker 28s linear infinite; }
.ticker-items span::before { content: "●"; margin-right: 9px; color: var(--pink); font-size: .55rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

.hero { position: relative; overflow: hidden; isolation: isolate; padding: 38px 0 60px; color: #fff; background: var(--ink); }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; width: 52vw; height: 52vw; min-width: 480px; min-height: 480px; border-radius: 50%; filter: blur(48px); opacity: .62; pointer-events: none; will-change: transform; mix-blend-mode: screen; }
.hero::before { top: -45%; left: -20%; background: radial-gradient(circle, rgba(255,47,125,1) 0 8%, rgba(112,60,255,.78) 28%, rgba(255,47,125,.25) 52%, transparent 72%); animation: heroGlowPink 8s ease-in-out infinite alternate; }
.hero::after { right: -22%; bottom: -62%; background: radial-gradient(circle, rgba(24,214,208,1) 0 8%, rgba(31,106,255,.68) 30%, rgba(24,214,208,.2) 54%, transparent 72%); animation: heroGlowCyan 10s ease-in-out infinite alternate; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.65fr) minmax(280px,.75fr); gap: 20px; }
@keyframes heroGlowPink {
  0% { transform: translate3d(-8%, -4%, 0) scale(.86); opacity: .42; }
  55% { transform: translate3d(42%, 25%, 0) scale(1.18); opacity: .82; }
  100% { transform: translate3d(88%, -2%, 0) scale(.94); opacity: .52; }
}
@keyframes heroGlowCyan {
  0% { transform: translate3d(12%, 8%, 0) scale(.92); opacity: .4; }
  50% { transform: translate3d(-48%, -28%, 0) scale(1.2); opacity: .78; }
  100% { transform: translate3d(-92%, 6%, 0) scale(.88); opacity: .48; }
}
.hero-main, .hero-side-card { position: relative; overflow: hidden; border-radius: var(--radius); isolation: isolate; }
.hero-main { min-height: 520px; }
.hero-media, .card-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img, .card-media img { height: 100%; object-fit: cover; transition: transform .6s ease; }
.hero-main:hover img, .hero-side-card:hover img, .post-card:hover img { transform: scale(1.045); }
.fallback-art { width: 100%; height: 100%; background: radial-gradient(circle at 72% 25%, var(--cyan) 0 8%, transparent 9%), radial-gradient(circle at 20% 70%, var(--pink) 0 17%, transparent 18%), linear-gradient(135deg, #472397, #111224 60%); }
.hero-main::after, .hero-side-card::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(8,7,20,.92) 0%, rgba(8,7,20,.72) 38%, rgba(8,7,20,.28) 68%, rgba(8,7,20,.08) 100%); }
.hero-content { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(24px,5vw,54px); text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; color: #fff; background: var(--pink); border-radius: 99px; font-size: .67rem; font-weight: 900; letter-spacing: .12em; text-shadow: none; }
.hero h1 { max-width: 770px; margin: 15px 0 12px; font-size: clamp(2rem,4.2vw,4rem); line-height: 1.2; letter-spacing: -.04em; }
.meta { display: flex; flex-wrap: wrap; gap: 15px; color: rgba(255,255,255,.85); font-size: .75rem; }
.hero-side { display: grid; gap: 20px; }
.hero-side-card { min-height: 250px; }
.hero-side-card .hero-content { padding: 24px; }
.hero-side-card h2 { margin: 11px 0 8px; font-size: 1.15rem; line-height: 1.5; }

.section { padding: 76px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-kicker { margin: 0 0 5px; color: var(--pink); font: 800 .72rem/1 sans-serif; letter-spacing: .18em; }
.section-title { margin: 0; font-size: clamp(1.65rem,3vw,2.6rem); line-height: 1.2; letter-spacing: -.03em; }
.section-title::after { content: "."; color: var(--pink); }
.more-link { color: var(--purple); font-size: .82rem; font-weight: 800; }
.post-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px; }
.post-card { overflow: hidden; background: #fff; border-radius: var(--radius); box-shadow: 0 8px 30px rgba(28,20,63,.07); transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card-thumb { position: relative; overflow: hidden; display: block; width: 100%; aspect-ratio: 16/10; background: #302665; }
.post-card-thumb img { height: 100%; object-fit: cover; transition: transform .6s; }
.post-card-thumb .fallback-art { position: absolute; inset: 0; }
.card-category { position: absolute; z-index: 2; left: 15px; bottom: 15px; }
.post-card-body { position: relative; z-index: 3; padding: 23px; background: #fff; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 10px; font-size: .68rem; font-weight: 800; line-height: 1.4; }
.post-tags a { color: var(--purple); transition: color .2s; }
.post-tags a:hover { color: var(--pink); }
.hero .post-tags { margin: 12px 0; }
.hero .post-tags a { color: #9ff6f2; text-shadow: 0 1px 10px rgba(0,0,0,.55); }
.post-card h3 { margin: 0 0 12px; font-size: 1.05rem; line-height: 1.65; }
.post-card .meta { color: var(--muted); }
.post-excerpt { margin: 13px 0 0; color: var(--muted); font-size: .83rem; }

.rank-section { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: linear-gradient(135deg,#221541,#111224); }
.rank-section::before, .rank-section::after { content: ""; position: absolute; z-index: -1; width: 48vw; height: 48vw; min-width: 440px; min-height: 440px; border-radius: 50%; filter: blur(54px); pointer-events: none; will-change: transform; mix-blend-mode: screen; }
.rank-section::before { top: -62%; left: -18%; background: radial-gradient(circle, rgba(255,47,125,.88) 0 8%, rgba(112,60,255,.66) 30%, transparent 70%); animation: rankGlowLeft 11s ease-in-out infinite alternate; }
.rank-section::after { right: -20%; bottom: -75%; background: radial-gradient(circle, rgba(24,214,208,.86) 0 8%, rgba(38,81,216,.55) 32%, transparent 70%); animation: rankGlowRight 13s ease-in-out infinite alternate; }
.rank-section > .container { position: relative; z-index: 1; }
@keyframes rankGlowLeft {
  0% { transform: translate3d(-10%, 0, 0) scale(.86); opacity: .42; }
  50% { transform: translate3d(54%, 30%, 0) scale(1.18); opacity: .8; }
  100% { transform: translate3d(105%, -2%, 0) scale(.92); opacity: .5; }
}
@keyframes rankGlowRight {
  0% { transform: translate3d(12%, 8%, 0) scale(.92); opacity: .4; }
  50% { transform: translate3d(-52%, -32%, 0) scale(1.2); opacity: .76; }
  100% { transform: translate3d(-104%, 5%, 0) scale(.88); opacity: .48; }
}
.rank-section .section-kicker { color: var(--cyan); }
.ranking { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; counter-reset: rank; }
.rank-card { counter-increment: rank; }
.rank-thumb { position: relative; overflow: hidden; aspect-ratio: 4/5; border-radius: 18px; background: #302665; }
.rank-thumb img { height: 100%; object-fit: cover; }
.rank-thumb::before { content: counter(rank, decimal-leading-zero); position: absolute; z-index: 2; left: 10px; bottom: -10px; color: #fff; font: italic 900 4.5rem/1 sans-serif; letter-spacing: -.1em; text-shadow: 3px 3px 0 var(--pink); }
.rank-category { position: absolute; z-index: 3; top: 12px; right: 12px; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-card h3 { margin: 14px 5px 0; font-size: .86rem; line-height: 1.65; }
.rank-card .post-tags { margin: 8px 5px 3px; }
.rank-card .post-tags a, .rank-card .post-tags span { color: var(--cyan); }
.rank-date { display: block; margin: 0 5px; color: rgba(255,255,255,.55); font-size: .68rem; font-weight: 700; letter-spacing: .06em; }

.category-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.category-chip { position: relative; overflow: hidden; padding: 30px 24px; color: #fff; border-radius: 17px; background: var(--purple); font-weight: 900; letter-spacing: .08em; }
.category-chip:nth-child(2) { background: var(--pink); }
.category-chip:nth-child(3) { color: var(--ink); background: var(--cyan); }
.category-chip:nth-child(4) { color: var(--ink); background: var(--yellow); }
.category-chip span { display: block; margin-top: 4px; font-size: .64rem; opacity: .75; letter-spacing: .15em; }
.category-chip::after { content: "→"; position: absolute; right: 18px; top: 50%; font-size: 1.5rem; transform: translateY(-50%); transition: transform .2s; }
.category-chip:hover::after { transform: translate(5px,-50%); }

.newsletter { padding: 0 0 78px; }
.newsletter-inner { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; padding: 48px; color: #fff; background: var(--pink); border-radius: 28px; }
.newsletter-inner::before { content: "PULSE"; position: absolute; right: -20px; bottom: -37px; color: rgba(255,255,255,.1); font: 900 7rem/1 sans-serif; }
.newsletter h2 { margin: 0 0 5px; font-size: 1.8rem; }
.newsletter p { margin: 0; color: rgba(255,255,255,.82); font-size: .86rem; }
.newsletter-form { position: relative; z-index: 1; display: flex; gap: 8px; }
.newsletter input { min-width: 260px; padding: 14px 17px; border: 0; border-radius: 10px; outline: none; }
.newsletter button { padding: 14px 22px; color: #fff; background: var(--ink); border: 0; border-radius: 10px; font-weight: 800; cursor: pointer; }

.archive-header { padding: 64px 0 44px; color: #fff; background: var(--ink); }
.archive-header h1 { margin: 8px 0; font-size: clamp(2rem,5vw,4rem); }
.archive-main { min-height: 55vh; }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; background: #fff; border-radius: 10px; font-weight: 700; }
.page-numbers.current { color: #fff; background: var(--pink); }

.single-wrap { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 55px; padding-block: 55px 90px; }
.article-header .eyebrow { margin-bottom: 18px; }
.article-title { margin: 0 0 18px; font-size: clamp(2rem,4vw,3.6rem); line-height: 1.35; letter-spacing: -.035em; }
.article-header .meta { color: var(--muted); }
.article-hero { overflow: hidden; margin: 34px 0; border-radius: 24px; }
.article-content { font-family: "Noto Serif JP", serif; font-size: 1rem; }
.article-content h2 { margin: 2.8em 0 1em; padding-left: 18px; border-left: 5px solid var(--pink); font-family: "Noto Sans JP", sans-serif; font-size: 1.7rem; line-height: 1.5; }
.article-content h3 { margin-top: 2.2em; font-family: "Noto Sans JP", sans-serif; }
.article-content a { color: var(--purple); text-decoration: underline; }
.article-content blockquote { margin: 2em 0; padding: 24px 28px; background: #fff; border-radius: 4px 18px 18px 4px; border-left: 5px solid var(--cyan); }
.article-content img { border-radius: 16px; }
.sidebar-box { padding: 24px; margin-bottom: 24px; background: #fff; border-radius: 18px; }
.sidebar-box h2 { margin: 0 0 18px; font-size: 1rem; }
.sidebar-list { display: grid; gap: 15px; padding: 0; margin: 0; list-style: none; }
.sidebar-list li { padding-bottom: 15px; border-bottom: 1px solid var(--line); font-size: .8rem; font-weight: 700; line-height: 1.6; }

.site-footer { padding: 60px 0 25px; color: rgba(255,255,255,.72); background: #090a17; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding-bottom: 45px; }
.footer-title { margin: 0 0 15px; color: #fff; font-size: 1.4rem; font-weight: 900; }
.footer-heading { margin: 0 0 16px; color: #fff; font-size: .85rem; }
.footer-menu { padding: 0; margin: 0; list-style: none; font-size: .78rem; line-height: 2.2; }
.copyright { padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .68rem; text-align: center; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 12px 20px 24px; background: rgba(17,18,36,.98); border-bottom: 1px solid rgba(255,255,255,.1); }
  .main-nav.is-open { display: block; }
  .main-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 14px 4px; }
  .main-nav a::after { display: none; }
  .header-search { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; }
  .hero-main { min-height: 460px; }
  .post-grid { grid-template-columns: repeat(2,1fr); }
  .ranking { grid-template-columns: repeat(3,1fr); }
  .single-wrap { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 26px),var(--wrap)); }
  .header-inner { min-height: 68px; }
  .brand-text small { display: none; }
  .ticker { display: none; }
  .hero { padding: 14px 0 35px; }
  .hero-main { min-height: 440px; }
  .hero-side { grid-template-columns: 1fr; }
  .hero-side-card { min-height: 220px; }
  .section { padding: 55px 0; }
  .post-grid { grid-template-columns: 1fr; }
  .ranking { grid-template-columns: repeat(2,1fr); }
  .rank-thumb::before { font-size: 3.4rem; bottom: -6px; }
  .category-strip { grid-template-columns: 1fr 1fr; }
  .newsletter-inner { grid-template-columns: 1fr; padding: 32px 24px; }
  .newsletter-form { flex-direction: column; }
  .newsletter input { min-width: 0; width: 100%; }
  .search-modal-dialog { padding: 32px 22px 24px; }
  .search-modal-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .rank-section::before, .rank-section::after, .ticker-items { animation: none; }
  .search-modal, .search-modal-backdrop, .search-modal-dialog, .menu-toggle-bars span { transition: none; }
}
