@charset "utf-8";

/* ===== リセット ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ===== 基本 ===== */
body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  background: #f5f5f5;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== 導入文 ===== */
#intro-section {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  padding: 20px;
  margin-bottom: 24px;
}

#intro-title {
  font-size: 18px;
  font-weight: bold;
  color: #222;
  line-height: 1.5;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e53935;
}

#intro-lead {
  font-size: 14px;
  color: #444;
  line-height: 1.9;
  margin-bottom: 20px;
}

/* ===== 目的別ナビ ===== */
#purpose-nav {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 16px;
}

.purpose-nav-title {
  font-size: 13px;
  font-weight: bold;
  color: #888;
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: 0.05em;
}

.purpose-nav-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.purpose-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 13px 18px;
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.purpose-btn:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-color: #e53935;
}

.purpose-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.purpose-label {
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

.purpose-sub {
  display: none;
}

/* ===== FAQセクション ===== */
#faq-section {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  margin-bottom: 24px;
  overflow: hidden;
}

#faq-list {
  padding: 16px;
}

.faq-item {
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
  line-height: 1.5;
}

.faq-q::before {
  content: "Q";
  position: absolute;
  left: 0;
  color: #e53935;
  font-weight: bold;
  font-size: 15px;
}

.faq-a {
  font-size: 13px;
  color: #555;
  padding-left: 24px;
  position: relative;
  line-height: 1.8;
}

.faq-a::before {
  content: "A";
  position: absolute;
  left: 0;
  color: #1565c0;
  font-weight: bold;
  font-size: 15px;
}

/* ===== 18禁通知バー ===== */
#age-notice {
  background: #b71c1c;
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  line-height: 1.5;
}

#age-notice span {
  font-size: 16px;
  margin-right: 4px;
}

/* ===== ヘッダー ===== */
#header {
  background: #fff;
  border-bottom: 3px solid #e53935;
  padding: 16px 0;
}

#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

#site-title {
  font-size: 20px;
  font-weight: bold;
  color: #e53935;
  line-height: 1.3;
}

#site-title span {
  display: block;
  font-size: 12px;
  color: #888;
  font-weight: normal;
}

/* ===== グローバルナビ ===== */
#gnav {
  background: #e53935;
}

#gnav ul {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 860px;
  margin: 0 auto;
}

#gnav ul::-webkit-scrollbar {
  display: none;
}

#gnav ul li {
  flex-shrink: 0;
}

#gnav ul li a {
  display: block;
  color: #fff;
  font-size: 13px;
  padding: 12px 16px;
  white-space: nowrap;
  transition: background 0.2s;
}

#gnav ul li a:hover {
  background: rgba(0,0,0,0.15);
}

/* ===== メインレイアウト ===== */
#main {
  padding: 24px 0 40px;
}

/* ===== セクションタイトル ===== */
.section-title {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background: #e53935;
  padding: 10px 16px;
  border-radius: 4px 4px 0 0;
  margin-bottom: 0;
}

.section-title span {
  display: inline-block;
  font-size: 12px;
  font-weight: normal;
  margin-left: 8px;
  opacity: 0.85;
}

.web-title     { background: #e53935; }
.iphone-title  { background: #1565c0; }
.android-title { background: #2e7d32; }

/* ===== 週ラベル ===== */
.week-label {
  background: #fafafa;
  border-bottom: 1px solid #eee;
  font-size: 12px;
  color: #888;
  padding: 6px 16px;
  text-align: right;
}

/* ===== ランキングセクション ===== */
.ranking-section {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  margin-bottom: 24px;
  overflow: hidden;
}

.ranking-list {
  padding: 16px;
}

/* ===== バナー画像 ===== */
.rank-banner-wrap {
  flex-shrink: 0;
  width: 120px;
}

.rank-banner {
  width: 120px;
  height: auto;
  border-radius: 4px;
  display: block;
}

.rank-banner-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rank-banner-placeholder span {
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  text-align: center;
  padding: 8px;
}

.rank-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 12px;
  background: #fff;
  transition: box-shadow 0.2s;
}

.rank-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.rank-card:last-child { margin-bottom: 0; }

.rank-num {
  font-size: 28px;
  font-weight: bold;
  color: #bbb;
  min-width: 36px;
  text-align: center;
  line-height: 1;
  padding-top: 4px;
}

.rank-card[data-rank="1"] .rank-num { color: #f9a825; }
.rank-card[data-rank="2"] .rank-num { color: #9e9e9e; }
.rank-card[data-rank="3"] .rank-num { color: #a1887f; }

.rank-body { flex: 1; }

.rank-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 4px;
}

.rank-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  color: #fff;
  margin-bottom: 8px;
  font-weight: bold;
}

.rank-desc {
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
  line-height: 1.7;
}

.rank-meta {
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
}

.rank-meta span {
  margin-right: 12px;
}

.rank-meta span::before {
  content: "● ";
  font-size: 10px;
}

.rank-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: bold;
  color: #fff !important;
  text-align: center;
  transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.85; }

.btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: bold;
  color: #555 !important;
  background: #f0f0f0;
  text-align: center;
  transition: background 0.2s;
}

.btn-secondary:hover { background: #e0e0e0; }

/* ===== 記事一覧 ===== */
#articles-section {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  margin-bottom: 24px;
  overflow: hidden;
}

.article-list {
  padding: 16px;
}

.article-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.article-item:last-child { border-bottom: none; }

.article-cat {
  flex-shrink: 0;
  align-self: flex-start;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  background: #e53935;
  color: #fff;
  white-space: nowrap;
  width: max-content;
  margin-top: 3px;
}

.article-title {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  line-height: 1.5;
}

.article-title:hover { color: #e53935; }

.article-date {
  font-size: 12px;
  color: #aaa;
  margin-top: 2px;
}

/* ===== 注意書き ===== */
#notice {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 12px;
  color: #795548;
  margin-bottom: 24px;
  text-align: center;
}

/* ===== 個別記事ページ ===== */
.entry-wrap {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  padding: 24px;
  margin-bottom: 24px;
}

.entry-title {
  font-size: 22px;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #222;
}

.entry-meta {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.entry-body h2 {
  font-size: 18px;
  font-weight: bold;
  border-left: 4px solid #e53935;
  padding: 6px 12px;
  margin: 24px 0 12px;
  background: #fafafa;
}

.entry-body h3 {
  font-size: 16px;
  font-weight: bold;
  margin: 20px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #eee;
}

.entry-body p { margin-bottom: 12px; }

.entry-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}

.entry-body th {
  background: #e53935;
  color: #fff;
  padding: 8px 12px;
  text-align: left;
}

.entry-body td {
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
}

.entry-body tr:nth-child(even) td { background: #fafafa; }

/* ===== フッター ===== */
#footer {
  background: #333;
  color: #aaa;
  padding: 24px 0;
  text-align: center;
  font-size: 12px;
}

#footer a { color: #ccc; }
#footer a:hover { color: #fff; }

.footer-nav {
  margin-bottom: 12px;
}

.footer-nav a {
  margin: 0 10px;
}

.footer-notice {
  font-size: 11px;
  color: #888;
  line-height: 1.7;
  margin-bottom: 8px;
}

/* ===== OS警告表示 ===== */
.os-warning {
  display: inline-block;
  font-size: 11px;
  color: #e65100;
  background: #fff3e0;
  border: 1px solid #ffcc80;
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 6px;
}

.mismatch-banner { opacity: 0.6; }

/* ===== OS不一致モーダル ===== */
#os-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
}

#os-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

#os-modal-box {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 28px 20px 20px;
  max-width: 340px;
  width: 92%;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 1;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

#os-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #888;
  line-height: 1;
  padding: 4px;
}

#os-modal-icon {
  font-size: 36px;
  text-align: center;
  margin-bottom: 8px;
}

#os-modal-msg {
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  text-align: center;
  margin-bottom: 16px;
}

.modal-alt-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.modal-alt-item:last-child { border-bottom: none; }

.modal-alt-header {
  margin-bottom: 6px;
}

.modal-alt-name {
  display: block;
  font-weight: bold;
  font-size: 16px;
  color: #222;
  margin-bottom: 2px;
}

.modal-alt-desc {
  display: block;
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

.modal-alt-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  color: #fff !important;
  text-align: center;
  text-decoration: none;
}

/* モーダルスクロールヒント */
#os-modal-scroll-hint {
  position: sticky;
  bottom: 0;
  padding: 20px 0 6px;
  background: linear-gradient(transparent, #fff 55%);
  text-align: center;
  font-size: 12px;
  color: #e53935;
  font-weight: bold;
  pointer-events: none;
}
#os-modal-scroll-hint .hint-arrow {
  display: inline-block;
  animation: modal-bounce 0.7s ease-in-out infinite;
  font-size: 18px;
}
@keyframes modal-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ===== 関連サイト ===== */
#related-sites {
  background: #f9f9f9;
  border-top: 1px solid #eee;
  padding: 24px 0;
  margin-top: 8px;
}

.related-sites-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.related-site-btn {
  display: block;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 12px;
  color: #333;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.related-site-btn:hover {
  border-color: #e53935;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.related-site-btn-pr {
  background: #fff3e0;
  border-color: #ff9800;
  color: #e65100;
  font-weight: bold;
}

/* ===== TOPへ戻るボタン（全ページ共通） ===== */
#fab-top {
  position: fixed;
  bottom: 24px;
  right: 16px;
  width: 52px;
  height: 52px;
  background: #e53935;
  color: #fff !important;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 8000;
  text-decoration: none;
}

#fab-top span { font-size: 9px; }

/* ===================================================
   記事ページ専用スタイル
   =================================================== */

/* ナビゲーション */
#site-nav {
  background: #fff;
  border-bottom: 2px solid #e53935;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.nav-logo {
  font-size: 15px;
  font-weight: bold;
  color: #e53935 !important;
  padding: 12px 0;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 12px;
  color: #555 !important;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.2s;
}

.nav-links a:hover { background: #f5f5f5; color: #e53935 !important; }

/* 記事ヘッダー */
.article-header-wrap {
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  border-bottom: 1px solid #eee;
  padding: 24px 16px 20px;
}

.article-header-inner {
  max-width: 860px;
  margin: 0 auto;
}

.article-breadcrumb {
  font-size: 12px;
  color: #888;
  margin-bottom: 12px;
}

.article-breadcrumb a { color: #e53935 !important; }

.article-h1 {
  font-size: 22px;
  font-weight: bold;
  line-height: 1.5;
  color: #222;
  margin-bottom: 10px;
}

.article-meta {
  font-size: 12px;
  color: #888;
}

/* 記事上部CTA */
.article-cta-top {
  max-width: 860px;
  margin: 20px auto;
  padding: 0 16px;
  background: #fff;
  border-radius: 8px;
  border: 2px solid #f9a825;
  padding: 16px;
}

.article-cta-title {
  font-weight: bold;
  font-size: 14px;
  color: #f9a825;
  margin-bottom: 12px;
}

.article-cta-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.article-cta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 8px 10px;
  flex: 1;
  min-width: 140px;
}

.cta-rank {
  font-size: 11px;
  font-weight: bold;
  color: #f9a825;
  white-space: nowrap;
}

.cta-banner { width: 60px; height: 45px; object-fit: cover; border-radius: 4px; }
.cta-banner-placeholder {
  width: 60px; height: 45px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #fff; font-weight: bold; text-align: center;
}

.cta-btn {
  font-size: 11px;
  font-weight: bold;
  color: #fff !important;
  padding: 6px 10px;
  border-radius: 20px;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.article-cta-week {
  font-size: 11px;
  color: #888;
  text-align: center;
  margin-bottom: 8px;
}

.article-cta-more {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  color: #e53935 !important;
  padding: 8px;
  border: 1px solid #e53935;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}

.article-cta-more:hover { background: #fff5f5; }

/* 記事本文 */
.article-body {
  max-width: 860px;
  margin: 0 auto 32px;
  padding: 24px 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  line-height: 1.9;
}

.article-body h2 {
  font-size: 20px;
  font-weight: bold;
  color: #222;
  border-left: 4px solid #e53935;
  padding-left: 12px;
  margin: 28px 0 14px;
  line-height: 1.5;
}

.article-body h3 {
  font-size: 17px;
  font-weight: bold;
  color: #333;
  margin: 22px 0 10px;
  padding-left: 8px;
  border-left: 3px solid #f9a825;
}

.article-body p { margin-bottom: 14px; }
.article-body ul, .article-body ol { padding-left: 20px; margin-bottom: 14px; }
.article-body li { margin-bottom: 6px; line-height: 1.8; list-style: disc; }
.article-body ul[style*="list-style: none"] > li,
.article-body ul[style*="list-style:none"] > li { list-style: none !important; }
.article-body strong { color: #c62828; }
.article-body a { color: #1565c0; text-decoration: underline; }
.article-body a[style*="border-radius"] { background: linear-gradient(135deg,#e53935,#b71c1c) !important; color: #fff !important; text-decoration: none !important; }
.article-body table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.article-body th { background: #e53935; color: #fff; padding: 10px; text-align: left; }
.article-body td { padding: 10px; border: 1px solid #ddd; }
.article-body tr:nth-child(even) { background: #fff9f9; }

/* 記事下部ランキング誘導 */
.article-ranking-guide {
  max-width: 860px;
  margin: 0 auto 32px;
  padding: 24px 16px;
  background: #fff;
  border-radius: 8px;
  border-top: 4px solid #e53935;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.ranking-guide-title {
  font-size: 18px;
  font-weight: bold;
  color: #e53935;
  margin-bottom: 12px;
}

.article-ranking-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.btn-category {
  display: inline-block;
  padding: 8px 16px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 13px;
  color: #555 !important;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-category:hover { background: #ffebee; border-color: #e53935; color: #e53935 !important; }

.btn-back-top {
  display: block;
  text-align: center;
  padding: 12px;
  background: #e53935;
  color: #fff !important;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  margin-top: 16px;
  transition: opacity 0.2s;
}

.btn-back-top:hover { opacity: 0.85; }

/* 関連記事 */
.related-articles {
  max-width: 860px;
  margin: 0 auto 32px;
  padding: 0 16px;
}

.related-title {
  font-size: 17px;
  font-weight: bold;
  color: #333;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eee;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.related-item {
  display: block;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 14px;
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.related-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-color: #e53935;
}

.related-item-title {
  font-size: 13px;
  color: #333;
  line-height: 1.6;
  display: block;
}

/* ===== レスポンシブ ===== */
@media (max-width: 600px) {
  #site-title { font-size: 16px; }
  .rank-card { flex-wrap: wrap; gap: 10px; }
  .rank-banner-wrap { width: 100%; }
  .rank-banner { width: 100%; max-width: 300px; margin: 0 auto; }
  .rank-banner-placeholder { width: 100%; max-width: 300px; height: 100px; margin: 0 auto; }
  .rank-num { font-size: 22px; }
  .rank-name { font-size: 16px; }
  .entry-title { font-size: 14px; }
  .entry-wrap { padding: 16px; }
  #gnav ul li a { padding: 12px 14px; font-size: 13px; }
  .purpose-nav-grid { grid-template-columns: repeat(2, 1fr); }
  #intro-title { font-size: 16px; }
  .article-h1 { font-size: 18px; }
  .article-cta-grid { flex-direction: column; }
  .article-cta-item { min-width: unset; }
  .related-grid { grid-template-columns: 1fr; }
  #site-nav { gap: 8px; }
  .nav-links a { font-size: 11px; padding: 5px 8px; }
}
