/* BASE & TYPOGRAPHY */
:root {
  --purple: #5a2e99;
  --purple-hover: #47227a;
  --dark-bg: #111111;
  --light-bg: #f9f9f9;
  --gray-bg: #e5e5e5;
  --text-main: #222222;
  --text-muted: #666666;
  --border-color: #eaeaea;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #ffffff;
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; transition: all .2s; }
img { max-width: 100%; height: auto; display: block; border-radius: 12px; object-fit: cover; }
ul { list-style: none; }
.container { width: 1200px; max-width: 92%; margin: 0 auto; }
.section-padding { padding: 60px 0; }
.bg-light { background: var(--light-bg); }
.bg-gray { background: var(--gray-bg); }
.margin-top-20 { margin-top: 20px; }
.margin-top-30 { margin-top: 30px; }

/* TYPOGRAPHY */
h1, h2, h3, h4, .logo-main { font-family: 'Merriweather', serif; }
.sec-title-center { font-size: 36px; font-weight: 900; text-align: center; margin-bottom: 10px; color: #000; }
.sec-title-center::after {
  content: ''; display: block; width: 60px; height: 4px; background: var(--purple); margin: 15px auto 30px;
}
.sec-sub-center { text-align: center; color: var(--text-muted); font-size: 16px; margin-bottom: 40px; }
.link-purple { color: var(--purple); font-weight: 600; }
.link-purple:hover { text-decoration: underline; }
.bold-link { font-weight: 700; margin-top: 15px; display: inline-block; }

/* HEADER */
.site-header { background: #f5f5f5; padding: 15px 0; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 999; }
.header-container { display: flex; justify-content: space-between; align-items: center; width: 1200px; max-width: 92%; margin: 0 auto; }
.menu-toggle { background: none; border: none; font-size: 24px; cursor: pointer; display: none; }
.logo { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-main { font-size: 24px; font-weight: 900; color: #000; letter-spacing: 1px; }
.logo-sub { font-size: 14px; font-weight: 900; color: var(--purple); letter-spacing: 3px; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.search-box { display: flex; align-items: center; background: #fff; border: 1px solid var(--border-color); border-radius: 20px; padding: 8px 15px; }
.search-box input { border: none; outline: none; font-size: 14px; width: 150px; background: transparent; }
.search-icon { margin-right: 5px; color: #999; }
.search-shortcut { font-size: 12px; color: #999; background: #f0f0f0; padding: 2px 6px; border-radius: 4px; margin-left: 10px; }
.action-btn { background: #fff; border: 1px solid var(--border-color); border-radius: 50%; width: 36px; height: 36px; cursor: pointer; font-size: 18px; color: #666; }
.lang-switch { font-size: 14px; font-weight: 600; cursor: pointer; }

/* GAMES GRID */
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.game-card { background: var(--light-bg); border-radius: 20px; padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.game-card img { width: 140px; height: 140px; border-radius: 20px; margin-bottom: 20px; object-fit: cover; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.game-card h3 { font-size: 22px; margin-bottom: 10px; font-weight: 900; }
.game-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 25px; flex: 1; }
.btn-purple { display: block; width: 100%; background: var(--purple); color: #fff; padding: 14px; border-radius: 10px; font-weight: 700; font-size: 15px; margin-bottom: 15px; }
.btn-purple:hover { background: var(--purple-hover); }
.link-play { font-size: 13px; font-weight: 600; color: var(--text-main); border-bottom: 1px solid transparent; }
.link-play:hover { color: var(--purple); border-color: var(--purple); }

/* ABOUT */
.about-text { font-size: 16px; color: #444; line-height: 1.8; max-width: 900px; margin: 0 auto 30px; }
.about-box { background: var(--light-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 30px; max-width: 900px; margin: 0 auto; }
.about-box h4 { font-size: 20px; margin-bottom: 20px; color: #000; }
.about-list li { margin-bottom: 15px; font-size: 15px; color: #444; display: flex; align-items: flex-start; gap: 10px; }
.about-list li span { color: var(--purple); font-weight: bold; }

/* RESOURCES */
.resources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.resource-card { background: var(--light-bg); border-radius: 12px; padding: 25px; display: flex; gap: 15px; align-items: flex-start; border: 1px solid transparent; }
.resource-card:hover { border-color: var(--purple); background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.res-icon { font-size: 32px; color: var(--purple); flex-shrink: 0; }
.resource-card h4 { font-size: 18px; margin-bottom: 8px; font-weight: 800; font-family: 'Inter', sans-serif; }
.resource-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* RELATED */
.related-block { max-width: 1000px; margin: 0 auto; }
.block-label { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 15px; display: flex; align-items: center; gap: 5px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { background: #fff; border-radius: 12px; padding: 20px; display: flex; gap: 15px; align-items: flex-start; border: 1px solid var(--border-color); }
.related-card:hover { border-color: var(--purple); }
.related-card h4 { font-size: 16px; margin-bottom: 5px; font-weight: 800; font-family: 'Inter', sans-serif; }
.related-card p { font-size: 13px; color: var(--text-muted); }

/* NEWS */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.news-card { display: flex; flex-direction: column; background: var(--light-bg); border-radius: 16px; overflow: hidden; padding-bottom: 20px; }
.news-card img { width: 100%; height: 180px; border-radius: 0; }
.news-card h3 { font-size: 18px; padding: 20px 20px 10px; line-height: 1.4; font-weight: 900; }
.news-card h3 a:hover { color: var(--purple); }
.news-card p { font-size: 14px; color: var(--text-muted); padding: 0 20px; margin-bottom: 10px; flex: 1; }
.news-ref { font-size: 13px; color: #888; }
.news-card .link-purple { padding: 0 20px; }

/* NEWSLETTER */
.newsletter-box { background: #f3effb; border: 1px solid #e0d4f5; border-radius: 16px; padding: 40px; max-width: 800px; margin: 0 auto; }
.newsletter-box h3 { font-size: 24px; margin-bottom: 10px; font-weight: 900; }
.newsletter-box p { font-size: 15px; color: #555; margin-bottom: 20px; }
.newsletter-notice { background: #fff; border: 1px solid #d5c4ec; border-radius: 8px; padding: 10px 15px; font-size: 13px; color: #666; margin-bottom: 15px; }
.newsletter-form { display: flex; gap: 15px; }
.newsletter-form input { flex: 1; padding: 15px; border: 1px solid #ccc; border-radius: 8px; outline: none; font-size: 14px; }

/* FAQ */
.faq-list { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.faq-item summary { padding: 20px 25px; font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-family: 'Inter', sans-serif; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '⌄'; font-size: 20px; color: #999; transition: transform .3s; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-content { padding: 0 25px 20px; color: #555; font-size: 15px; line-height: 1.7; }

/* FOOTER */
.site-footer { background: var(--dark-bg); color: #999; padding: 60px 0 30px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; border-bottom: 1px solid #333; padding-bottom: 40px; margin-bottom: 40px; }
.footer-logo { display: inline-block; border: 2px solid #fff; border-radius: 50%; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; font-weight: 900; color: #fff; margin-bottom: 20px; font-size: 18px; }
.footer-social { display: flex; gap: 10px; margin-bottom: 20px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: #333; border-radius: 50%; color: #fff; font-weight: bold; font-size: 14px; }
.footer-social a:hover { background: var(--purple); }
.footer-license { color: #4ade80; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.footer-links h4 { color: #fff; font-size: 16px; margin-bottom: 20px; font-family: 'Inter', sans-serif; font-weight: 700; }
.footer-links li { margin-bottom: 12px; }
.footer-links a:hover { color: #fff; }
.footer-mid { text-align: center; border-bottom: 1px solid #333; padding-bottom: 30px; margin-bottom: 30px; }
.footer-help { display: inline-block; background: #fce7f3; color: #be185d; padding: 10px 25px; border-radius: 30px; font-weight: 700; margin: 20px 0; }
.footer-badges { display: flex; justify-content: center; gap: 20px; align-items: center; margin-top: 20px; }
.badge-18 { border: 2px solid #ef4444; color: #ef4444; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.badge-ja { font-weight: 900; font-size: 24px; color: #fff; }
.badge-gamble { color: #f97316; font-weight: bold; font-style: italic; }
.footer-bottom { text-align: center; line-height: 1.8; color: #777; font-size: 13px; }
.footer-bottom a { color: #60a5fa; }
.footer-bottom a:hover { text-decoration: underline; }
.copyright { margin-top: 30px; color: #555; font-size: 12px; }

/* PAGINATION (List Page) */
.custom-pagination { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.custom-pagination a, .custom-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 15px; background: #fff; border: 1px solid var(--border-color); color: var(--text-main); border-radius: 8px; font-size: 15px; font-weight: 700; text-decoration: none; transition: all 0.3s; }
.custom-pagination a:hover, .custom-pagination .current { background: var(--purple); color: #fff; border-color: var(--purple); }

/* ARTICLE (Single Page) */
.article-wrapper { max-width: 800px; margin: 0 auto; background: #fff; padding: 40px; border-radius: 16px; border: 1px solid var(--border-color); }
.article-header { text-align: center; margin-bottom: 30px; border-bottom: 1px solid var(--border-color); padding-bottom: 30px; }
.article-header h1 { font-size: 36px; font-weight: 900; color: #000; line-height: 1.3; margin-bottom: 15px; }
.article-meta { display: flex; justify-content: center; gap: 20px; color: var(--text-muted); font-size: 14px; }
.article-content { font-size: 17px; line-height: 1.8; color: #333; }
.article-content p { margin-bottom: 20px; }
.article-content h2 { font-size: 26px; margin: 30px 0 15px; color: #000; font-family: 'Merriweather', serif; }
.article-footer { margin-top: 40px; border-top: 1px solid var(--border-color); padding-top: 30px; }
.article-nav { display: flex; justify-content: space-between; }
.article-nav div { flex: 1; }
.article-nav .nav-next { text-align: right; }
.article-nav span { font-size: 13px; color: var(--text-muted); display: block; margin-bottom: 5px; }
.article-nav a { color: var(--purple); font-weight: 700; font-size: 16px; }

/* RESPONSIVE */
@media(max-width: 1024px) {
  .games-grid, .resources-grid, .news-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media(max-width: 768px) {
  .menu-toggle { display: block; }
  .header-actions { display: none; }
  .games-grid, .resources-grid, .news-grid, .related-grid, .footer-top { grid-template-columns: 1fr; }
  .sec-title-center { font-size: 28px; }
  .newsletter-form { flex-direction: column; }
  .article-nav { flex-direction: column; gap: 20px; }
  .article-nav .nav-next { text-align: left; }
}