@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Noto+Serif+JP:wght@400;700&family=Noto+Sans+JP:wght@400;700&display=swap');

:root {
  --bg: #ffffff;
  --bg2: #f5f5f5;
  --bg3: #efefef;
  --red: #ec1c24;
  --red-dark: #c0141b;
  --amber: #7a592d;
  --text: #000000;
  --text-muted: #767676;
  --border: #e0e0e0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

/* ======== HEADER ======== */
header {
  background: #fff;
  border-top: 3px solid var(--red);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
}
.site-title {
  text-decoration: none;
  display: inline-block;
  line-height: 1;
}
.site-logo {
  height: 44px;
  width: auto;
  display: block;
  filter: invert(1);
}
.logo-online {
  display: flex;
  justify-content: space-between;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(0,0,0,0.65);
  margin-top: 4px;
}

/* ======== NAV ======== */
nav {
  padding: 0 40px;
  display: flex;
  border-top: 1px solid var(--border);
}
nav a {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  padding: 13px 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  transition: color 0.2s;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.2s;
}
nav a:hover { color: var(--red); }
nav a:hover::after { transform: scaleX(1); }
nav a.active { color: var(--red); }
nav a.active::after { transform: scaleX(1); }

.nav-genre { position: relative; }
.nav-genre:hover .genre-dropdown { display: block; }
.genre-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  min-width: 210px;
  z-index: 200;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.genre-dropdown a {
  display: block;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  font-size: 13px;
  color: #404040;
}
.genre-dropdown a:hover { background: var(--bg3); color: var(--red); }

/* ======== TICKER ======== */
.ticker {
  background: var(--red);
  padding: 7px 0;
  overflow: hidden;
}
.ticker-inner { display: flex; align-items: center; }
.ticker-label {
  background: #000;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 0 16px;
  white-space: nowrap;
  letter-spacing: 2px;
  flex-shrink: 0;
  height: 24px;
  display: flex;
  align-items: center;
}
.ticker-track {
  flex: 1;
  overflow: hidden;
}
.ticker-content {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  animation: scroll-ticker 40s linear infinite;
  padding: 0 40px;
}
@keyframes scroll-ticker {
  from { transform: translateX(100vw); }
  to { transform: translateX(-100%); }
}

/* ======== FOOTER ======== */
footer {
  background: #f7f7f7;
  border-top: 3px solid var(--red);
  padding: 64px 40px 32px;
}
.footer-inner { max-width: 1300px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  margin-bottom: 12px;
  text-decoration: none;
  display: inline-block;
}
.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
  opacity: 0.85;
  filter: invert(1);
}
.footer-logo-online {
  display: flex;
  justify-content: space-between;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: rgba(0,0,0,0.5);
  margin-top: 4px;
}
.footer-desc { font-size: 14px; color: var(--text-muted); line-height: 1.8; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #404040; text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* ======== COMMON UTILITIES ======== */
.tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.tag-red { background: var(--red); color: #fff; }
.tag-amber { background: var(--amber); color: #000; }
.tag-blue { background: #1d4ed8; color: #fff; }
.tag-green { background: #15803d; color: #fff; }
.tag-outline { border: 1px solid #999; color: var(--text-muted); }

.btn-read {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 14px 32px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-read:hover { background: var(--red-dark); }

/* ======== HEADER AUTH BUTTONS ======== */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-login {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #1a1a1a;
  text-decoration: none;
  padding: 7px 18px;
  border: 1px solid #ccc;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-login:hover { border-color: #1a1a1a; color: #000; }
.btn-register {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  background: var(--red);
  text-decoration: none;
  padding: 7px 18px;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-register:hover { background: var(--red-dark); }
.header-auth-bar {
  display: none;
}
@media (max-width: 768px) {
  .btn-auth-desktop { display: none; }
  .header-auth-bar {
    display: flex;
    gap: 10px;
    padding: 10px 24px;
    border-bottom: 1px solid var(--border);
  }
  .header-auth-bar .btn-login { font-size: 11px; padding: 7px 18px; }
  .header-auth-bar .btn-register { font-size: 11px; padding: 7px 18px; }
}

/* ======== HAMBURGER BUTTON ======== */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #404040;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ======== MOBILE NAV ======== */
.mobile-nav {
  display: none;
  background: #fff;
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  color: #404040;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s, background 0.15s;
}
.mobile-nav a:hover { color: var(--red); background: var(--bg3); }
.mobile-nav a.active { color: var(--red); }

/* CINEMA リンクを目立たせる */
.mobile-nav-cinema {
  border-left: 3px solid var(--red) !important;
  padding-left: 21px !important;
}
.mobile-nav-cinema .mnc-label { color: #000; }
.mobile-nav-cinema .mnc-sub {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: none;
  color: var(--red);
}

/* ======== SEARCH UI ======== */

/* ヘッダー内コンパクト検索 */
.header-search-wrap {
  margin-left: auto;
  position: relative;
  display: flex;
  align-items: center;
}
.header-search-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 10px;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1;
  transition: color 0.15s;
}
.header-search-icon:hover { color: var(--red); }
.header-search-box {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  width: 280px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  padding: 8px;
  z-index: 200;
}

/* 汎用入力欄 */
.search-input-box {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  display: block;
  box-sizing: border-box;
}
.search-input-box:focus { border-color: var(--red); }

/* 大型検索ボタン */
.search-btn {
  padding: 10px 18px;
  background: var(--red);
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.search-btn:hover { background: var(--red-dark); }

/* ドロップダウン共通 */
.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  z-index: 1000;
  max-height: 380px;
  overflow-y: auto;
}
.search-section-label {
  padding: 7px 12px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg3);
}
.search-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--bg3);
  transition: background 0.15s;
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--bg2); }
.search-item-icon { font-size: 18px; flex-shrink: 0; line-height: 1.3; }
.search-item-title { font-size: 13px; font-weight: 700; line-height: 1.3; }
.search-item-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.search-no-result { padding: 14px; font-size: 13px; color: var(--text-muted); text-align: center; }

/* 大型検索セクション（トップページ） */
.site-search-section {
  background: var(--bg2);
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
}
.site-search-wrap {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  position: relative;
}
.site-search-wrap .search-input-box {
  border-right: none;
  flex: 1;
}
.site-search-wrap .search-dropdown {
  top: 100%;
  border-top: none;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 1024px) {
  .header-top { padding: 12px 24px; }
  nav { padding: 0 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  footer { padding: 48px 24px 24px; }
}
@media (max-width: 768px) {
  .site-title { font-size: 32px; }
  nav { display: none; }
  .nav-toggle { display: flex; }
  .footer-top { grid-template-columns: 1fr; }
  .ticker { display: none; }
  .site-search-section { padding: 14px 20px; }
  .header-search-box { width: 220px; }
}

/* ======== LANG TOGGLE ======== */
.lang-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 12px;
  flex-shrink: 0;
}
.lang-btn {
  background: none;
  border: none;
  color: #999;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 5px;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: color 0.15s;
  line-height: 1;
}
.lang-btn:hover { color: var(--red); }
.lang-btn.active { color: #fff; }
.lang-sep { color: #444; font-size: 10px; line-height: 1; }

/* ======== ACTION BAR (いいね / シェア) ======== */
.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0 0;
  padding: 18px 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
}
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 20px;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0;
}
.like-btn:hover:not(:disabled) { border-color: #e53e3e; color: #e53e3e; }
.like-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.like-btn.liked { border-color: #e53e3e; color: #e53e3e; }
.like-heart { font-size: 18px; line-height: 1; }
.like-count { font-size: 14px; font-weight: 700; min-width: 24px; }
.share-buttons { display: flex; gap: 8px; }
.share-x,
.share-fb,
.share-insta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: border-color 0.2s, background 0.2s;
  font-family: 'Noto Sans JP', sans-serif;
}
.share-x { color: #fff; background: #000; border-color: #000; }
.share-x:hover { background: #222; border-color: #222; }
.share-fb { color: #fff; background: #1877F2; border-color: #1877F2; font-weight: 900; font-size: 20px; }
.share-fb:hover { background: #0b5fcc; border-color: #0b5fcc; }
.share-insta { color: #fff; background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: #c13584; font-size: 12px; letter-spacing: -0.5px; }
.share-insta:hover { opacity: 0.85; }
.action-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #222;
  color: #eee;
  font-size: 13px;
  padding: 12px 24px;
  border: 1px solid #444;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  z-index: 9999;
  font-family: 'Noto Sans JP', sans-serif;
  white-space: nowrap;
}
.action-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
