/* ===== cocoanime / home.css（トップページ専用） ===== */

:root {
  --blue: #2478e5;
  --blue-dark: #1a5fc4;
  --blue-deep: #123f8c;
  --blue-bg: #eaf2fd;
  --navy: #1c2b4a;
  --red: #e8433f;
  --text-1: #222b3a;
  --text-2: #5a6577;
  --text-3: #8b95a7;
  --bg: #f2f6fb;
  --card: #ffffff;
  --border: #dfe7f2;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(20, 50, 100, .08);
  --font: "Noto Sans JP", sans-serif;
  --font-logo: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { font-family: var(--font); background: var(--bg); color: var(--text-1); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

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

/* ---------- ヘッダー ---------- */
.header-tagline { background: #fff; border-bottom: 1px solid var(--border); font-size: 11px; color: var(--text-2); padding: 4px 0; }
.site-header { background: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 4px rgba(20,50,100,.06); }
.header-main { display: flex; align-items: center; gap: 20px; padding: 10px 16px; max-width: 1200px; margin: 0 auto; }

.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-icon { width: 40px; height: 40px; flex-shrink: 0; }
.logo-text { font-family: var(--font-logo); font-weight: 800; font-size: 26px; color: var(--blue); line-height: 1.1; letter-spacing: .5px; }
.logo-text small { display: block; font-size: 9px; font-weight: 700; color: var(--blue-dark); letter-spacing: 3px; }

.header-search { flex: 1; max-width: 420px; position: relative; }
.header-search input { width: 100%; padding: 9px 40px 9px 16px; border: 1.5px solid var(--border); border-radius: 999px; background: #f5f8fc; font-size: 13px; font-family: var(--font); outline: none; transition: border-color .15s; }
.header-search input:focus { border-color: var(--blue); background: #fff; }
.header-search button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: none; background: none; cursor: pointer; color: var(--text-3); font-size: 15px; }

.header-links { display: flex; gap: 6px; margin-left: auto; }
.header-link { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 10px; border-radius: 8px; font-size: 10px; color: var(--text-2); transition: background .15s, color .15s; }
.header-link svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-link:hover { background: var(--blue-bg); color: var(--blue); }

/* グローバルナビ（青バー） */
.global-nav { background: var(--blue); }
.global-nav .container { display: flex; overflow-x: auto; scrollbar-width: none; }
.global-nav .container::-webkit-scrollbar { display: none; }
.global-nav a { flex: 1; white-space: nowrap; text-align: center; color: #fff; font-size: 13.5px; font-weight: 600; padding: 11px 16px; border-right: 1px solid rgba(255,255,255,.18); transition: background .15s; }
.global-nav a:first-child { border-left: 1px solid rgba(255,255,255,.18); }
.global-nav a:hover, .global-nav a.active { background: var(--blue-dark); }

/* ---------- ヒーローカルーセル ---------- */
.hero { position: relative; overflow: hidden; background: var(--blue-deep); }
.hero-track { display: flex; transition: transform .5s ease; }
.hero-slide { min-width: 100%; position: relative; min-height: 380px; display: flex; align-items: center; }
.hero-slide-inner { max-width: 1200px; margin: 0 auto; width: 100%; padding: 48px 60px; position: relative; z-index: 2; }

.hero-slide--main { background: url("img/hero-chara.jpg") center 45% / cover no-repeat; }
.hero-slide--main::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.55) 32%, rgba(255,255,255,0) 60%); }
.hero-slide--summer { background: linear-gradient(120deg, #0d3b66 0%, #1a5fc4 55%, #2ec4b6 100%); }
.hero-slide--danime { background: linear-gradient(120deg, #7b2ff7 0%, #2478e5 60%, #22d3ee 100%); }

.hero-catch { font-size: 34px; font-weight: 800; color: var(--navy); line-height: 1.4; }
.hero-catch .em { color: var(--blue); font-size: 44px; }
.hero-sub { margin-top: 14px; font-size: 15px; color: #33415e; font-weight: 500; }
.hero-sub .accent { color: var(--red); font-weight: 700; }
.hero-btn { display: inline-block; margin-top: 22px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 700; padding: 12px 28px; border-radius: 999px; box-shadow: 0 4px 12px rgba(36,120,229,.4); transition: transform .15s, background .15s; }
.hero-btn:hover { background: var(--blue-dark); transform: translateY(-2px); }

.hero-slide--summer .hero-catch, .hero-slide--danime .hero-catch,
.hero-slide--summer .hero-sub, .hero-slide--danime .hero-sub { color: #fff; }
.hero-slide--summer .hero-catch .em, .hero-slide--danime .hero-catch .em { color: #ffe66d; }
.hero-slide--summer .hero-btn, .hero-slide--danime .hero-btn { background: #fff; color: var(--blue-dark); }

.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(255,255,255,.85); color: var(--blue-deep); font-size: 18px; cursor: pointer; box-shadow: var(--shadow); transition: background .15s; }
.hero-arrow:hover { background: #fff; }
.hero-arrow--prev { left: 14px; }
.hero-arrow--next { right: 14px; }
.hero-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 8px; }
.hero-dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; }
.hero-dot.active { background: var(--blue); box-shadow: 0 0 0 2px #fff; }

/* ---------- レイアウト ---------- */
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; max-width: 1200px; margin: 28px auto 48px; padding: 0 16px; align-items: start; }
.layout > main { min-width: 0; }

/* ---------- セクション共通 ---------- */
.section { margin-bottom: 36px; }
.section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.section-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.section-title { font-size: 19px; font-weight: 800; color: var(--navy); }
.section-more { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--blue); }
.section-more:hover { text-decoration: underline; }

/* ---------- アニメカードレーン ---------- */
.card-row { display: grid; grid-auto-flow: column; grid-auto-columns: 152px; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.anime-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; position: relative; }
.anime-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(20,50,100,.15); }
.anime-card .cover { width: 100%; aspect-ratio: 3 / 4.2; object-fit: cover; background: var(--blue-bg); }
.badge-new { position: absolute; top: 6px; left: 6px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 4px; letter-spacing: .5px; }
.anime-card .body { padding: 8px 9px 10px; }
.anime-card .title { font-size: 12px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 35px; }
.anime-card .meta { margin-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.badge-onair { background: var(--blue); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.badge-score { font-size: 11px; color: #e8a33d; font-weight: 700; }
.anime-card .schedule { margin-top: 5px; font-size: 10.5px; color: var(--text-2); }
.row-msg { grid-column: 1 / -1; font-size: 13px; color: var(--text-3); padding: 12px 0; }

/* ---------- 注目の特集 ---------- */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.feature-card { position: relative; border-radius: 14px; overflow: hidden; min-height: 150px; display: flex; flex-direction: column; justify-content: center; padding: 22px 24px; color: #fff; box-shadow: var(--shadow); transition: transform .15s; }
.feature-card:hover { transform: translateY(-3px); }
.feature-card--spring { background: url("img/sakura.jpg") center / cover no-repeat; }
.feature-card--spring::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(215,60,120,.82), rgba(215,60,120,.25)); }
.feature-card--emotional { background: linear-gradient(120deg, #3a7bd5, #00d2ff); }
.feature-card--isekai { background: linear-gradient(120deg, #5f2c82, #9d50bb); }
.feature-card--best { background: linear-gradient(120deg, #141e30, #4a6491); }
.feature-card > * { position: relative; z-index: 1; }
.feature-card .f-title { font-size: 19px; font-weight: 800; line-height: 1.4; }
.feature-card .f-desc { margin-top: 6px; font-size: 12.5px; opacity: .92; }
.feature-card .f-link { margin-top: 12px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.6); align-self: flex-start; padding: 5px 14px; border-radius: 999px; }

/* ---------- 配信サービス比較 ---------- */
.streaming-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.streaming-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.streaming-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.sv-logo { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 17px; flex-shrink: 0; font-family: var(--font-logo); }
.streaming-card .sv-name { font-size: 14px; font-weight: 700; }
.streaming-card .sv-price { font-size: 12px; color: var(--text-2); }
.streaming-card .sv-badge { margin-left: auto; background: #fdeaea; color: var(--red); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }

.affiliate-banner { margin-top: 14px; display: flex; align-items: center; gap: 16px; background: linear-gradient(120deg, #ff7a18, #f4b03e); border-radius: 14px; padding: 18px 22px; color: #fff; box-shadow: var(--shadow); }
.affiliate-banner .af-title { font-size: 16px; font-weight: 800; }
.affiliate-banner .af-sub { font-size: 12.5px; opacity: .95; }
.affiliate-banner .af-btn { margin-left: auto; flex-shrink: 0; background: #fff; color: #e0670b; font-size: 13px; font-weight: 800; padding: 10px 20px; border-radius: 999px; }

/* ---------- ニュース・記事リスト ---------- */
.news-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.news-item { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--border); transition: background .15s; }
.news-item:last-of-type { border-bottom: none; }
.news-item:hover { background: var(--blue-bg); }
.news-cat { flex-shrink: 0; font-size: 10.5px; font-weight: 700; padding: 2px 9px; border-radius: 4px; background: var(--blue-bg); color: var(--blue-dark); }
.news-cat--new { background: #fdeaea; color: var(--red); }
.news-title { font-size: 13.5px; font-weight: 600; }
.news-arrow { margin-left: auto; color: var(--text-3); font-size: 12px; }
.news-more { display: block; text-align: center; background: #f7fafd; color: var(--blue); font-size: 13px; font-weight: 700; padding: 11px; border-top: 1px solid var(--border); }
.news-more:hover { background: var(--blue-bg); }

/* ---------- 検索キーワード ---------- */
.keyword-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.keyword-chip { background: #fff; border: 1.5px solid var(--border); color: var(--blue-dark); font-size: 12.5px; font-weight: 600; padding: 6px 14px; border-radius: 999px; transition: border-color .15s, background .15s; }
.keyword-chip::before { content: "#"; color: var(--blue); margin-right: 2px; font-weight: 800; }
.keyword-chip:hover { border-color: var(--blue); background: var(--blue-bg); }

/* ---------- サイドバー ---------- */
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 120px; }
.widget { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.widget-head { background: var(--blue); color: #fff; font-size: 14px; font-weight: 700; padding: 10px 16px; }
.widget-body { padding: 14px 16px 16px; }

/* カレンダー */
.cal-caption { text-align: center; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.cal-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-table th { font-size: 11px; color: var(--text-2); padding: 4px 0; font-weight: 600; }
.cal-table th.sat { color: var(--blue); }
.cal-table th.sun { color: var(--red); }
.cal-table td { text-align: center; font-size: 12px; padding: 5px 0; color: var(--text-1); }
.cal-table td.dim { color: #c3ccd9; }
.cal-table td.today { background: var(--blue); color: #fff; font-weight: 800; border-radius: 8px; }
.widget-btn { display: block; margin-top: 12px; text-align: center; border: 1.5px solid var(--blue); color: var(--blue); font-size: 12.5px; font-weight: 700; padding: 8px; border-radius: 999px; transition: background .15s, color .15s; }
.widget-btn:hover { background: var(--blue); color: #fff; }

/* 配信サービスタイル */
.sv-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sv-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sv-tile .sv-logo { width: 48px; height: 48px; font-size: 15px; }
.sv-tile span:last-child { font-size: 9.5px; color: var(--text-2); text-align: center; line-height: 1.3; }
.sv-tile:hover .sv-logo { opacity: .8; }

/* サービスカラー */
.sv--danime { background: #f5811f; }
.sv--unext { background: #0d0d14; }
.sv--netflix { background: #d40913; font-family: Arial, sans-serif; }
.sv--abema { background: #17b598; }
.sv--hulu { background: #1ce783; color: #0b0c0f; }
.sv--prime { background: #00a8e1; }
.sv--disney { background: #113ccf; }
.sv--dmm { background: #2e3138; }

/* 人気記事ランキング */
.rank-list { display: flex; flex-direction: column; }
.rank-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.rank-item:last-child { border-bottom: none; }
.rank-num { flex-shrink: 0; width: 24px; height: 24px; border-radius: 6px; background: #e6ecf5; color: var(--text-2); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.rank-num.n1 { background: #f6c344; color: #fff; }
.rank-num.n2 { background: #b9c4d4; color: #fff; }
.rank-num.n3 { background: #d29b6c; color: #fff; }
.rank-item .rank-title { font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.rank-item:hover .rank-title { color: var(--blue); }

/* COCO関連サイト */
.coco-link { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.coco-link:last-child { border-bottom: none; }
.coco-icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; flex-shrink: 0; }
.coco-sora { background: #38bdf8; }
.coco-yure { background: #f59e0b; }
.coco-anime { background: var(--blue); }
.coco-name { font-size: 13px; font-weight: 700; }
.coco-desc { font-size: 11px; color: var(--text-2); }
.coco-link:hover .coco-name { color: var(--blue); }

/* ---------- フッター ---------- */
.site-footer { background: #191d24; color: #cfd6e0; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 40px 16px 28px; display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.3fr; gap: 30px; }
.footer-brand .f-logo { font-family: var(--font-logo); font-weight: 800; font-size: 24px; color: #fff; }
.footer-brand .f-logo span { color: #6aa5f5; }
.footer-brand p { font-size: 12px; color: #97a2b3; margin-top: 10px; line-height: 1.8; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 12.5px; color: #97a2b3; padding: 4px 0; }
.footer-col a:hover { color: #6aa5f5; }
.footer-banner { position: relative; border-radius: 14px; overflow: hidden; background: url("img/hero-sky.jpg") center / cover no-repeat; display: flex; flex-direction: column; justify-content: center; padding: 22px; min-height: 130px; align-self: start; }
.footer-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,63,140,.88), rgba(36,120,229,.55)); }
.footer-banner > * { position: relative; }
.footer-banner .fb-label { font-size: 11px; font-weight: 700; color: #cfe2ff; }
.footer-banner .fb-title { font-size: 16px; font-weight: 800; color: #fff; margin-top: 4px; line-height: 1.5; }
.footer-copy { border-top: 1px solid #2a303b; text-align: center; font-size: 11.5px; color: #7d8798; padding: 16px; }
.footer-copy a { color: #9fb3d1; }

/* ---------- モバイル下部ナビ ---------- */
.ca-bottom-nav { display: none; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .header-main { flex-wrap: wrap; gap: 10px; }
  .header-search { order: 3; max-width: none; flex-basis: 100%; }
  .header-links { display: none; }
  .global-nav a { flex: none; }
  .hero-slide { min-height: 300px; }
  .hero-slide-inner { padding: 34px 24px; }
  .hero-catch { font-size: 24px; }
  .hero-catch .em { font-size: 31px; }
  .hero-sub { font-size: 13px; }
  .hero-arrow { display: none; }
  .features-grid, .streaming-grid { grid-template-columns: 1fr; }
  .affiliate-banner { flex-wrap: wrap; }
  .affiliate-banner .af-btn { margin-left: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  body { padding-bottom: 62px; }

  .ca-bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -2px 10px rgba(20,50,100,.08); }
  .ca-bn-link { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; font-size: 10px; color: var(--text-3); }
  .ca-bn-link svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .ca-bn-link.active { color: var(--blue); font-weight: 700; }
}
