/*
Theme Name: CURATE
Theme URI: https://example.com/curate
Author: CURATE
Author URI: https://example.com
Description: WEBマーケティングの最前線を、毎日わかりやすくお届けするメディアテーマ。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: curate
Tags: blog, news, marketing
*/

/* ══════════════════════════════════════
   CURATE — Shared Styles
   ══════════════════════════════════════ */

:root {
  --asagi: #008486;
  --asagi-light: #E6F7F7;
  --asagi-lighter: #F2FBFB;
  --asagi-mid: #60B8B9;
  --asagi-dark: #006567;
  --asagi-deep: #004B4D;
  --asagi-glow: rgba(0, 132, 134, 0.12);
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #8B939A;
  --gray-500: #6C757D;
  --gray-600: #545B62;
  --gray-700: #495057;
  --gray-800: #343A40;
  --gray-900: #212529;
  --orange: #E8590C;
  --orange-bg: #FFF4E6;
  --purple: #7048E8;
  --purple-bg: #F3F0FF;
  --blue: #1C7ED6;
  --blue-bg: #E7F5FF;
  --green: #0CA678;
  --green-bg: #E6FCF5;
  --pink: #D6336C;
  --pink-bg: #FFF0F6;
  --teal-bg: #E6FCFC;
  --card-radius: 16px;
  --card-radius-sm: 12px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.18s ease;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.07);
  --shadow-asagi: 0 8px 30px rgba(0, 164, 166, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

body {
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Background Decorations ── */
.bg-grid {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; opacity: 0.018;
  background-image:
    linear-gradient(var(--asagi) 1px, transparent 1px),
    linear-gradient(90deg, var(--asagi) 1px, transparent 1px);
  background-size: 80px 80px;
}
.bg-orb {
  position: fixed; border-radius: 50%;
  pointer-events: none; z-index: 0; filter: blur(80px);
}
.bg-orb-1 {
  width: 600px; height: 600px; top: -200px; right: -100px;
  background: radial-gradient(circle, rgba(0,164,166,0.06) 0%, transparent 70%);
}
.bg-orb-2 {
  width: 400px; height: 400px; bottom: 20%; left: -100px;
  background: radial-gradient(circle, rgba(0,164,166,0.04) 0%, transparent 70%);
}
.content-wrapper { position: relative; z-index: 1; }


/* ══════════════════════════════════════
   Header
   ══════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(24px) saturate(180%);
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 1px 20px rgba(0,0,0,0.06); }
.header-inner { display: flex; align-items: center; padding: 0.85rem 0; }
.site-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--asagi), var(--asagi-dark));
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 1.05rem;
  font-family: 'Playfair Display', serif;
  box-shadow: 0 4px 12px rgba(0,164,166,0.25);
  transition: var(--transition);
}
.site-logo:hover .logo-mark { transform: rotate(-4deg) scale(1.05); }
.logo-img { height: 24px; width: auto; transition: var(--transition); }
.site-logo:hover .logo-img { opacity: 0.8; }
.logo-text {
  font-family: 'Playfair Display', serif; font-size: 1.55rem;
  font-weight: 600; color: var(--gray-900); letter-spacing: 2.5px;
}
.logo-text span { color: var(--asagi); }


/* ══════════════════════════════════════
   Category Badges (shared)
   ══════════════════════════════════════ */
.cat-seo { background: var(--teal-bg); color: var(--asagi-dark); }
.cat-ads { background: var(--orange-bg); color: #C74A07; }
.cat-sns { background: var(--pink-bg); color: #B52A5A; }
.cat-content { background: var(--blue-bg); color: #1864AB; }
.cat-analytics { background: var(--green-bg); color: #087F5B; }
.cat-ai { background: var(--purple-bg); color: #5F3DC4; }
.cat-mmm { background: #FFF0F6; color: #A61E4D; }


/* ══════════════════════════════════════
   Sidebar — Common
   ══════════════════════════════════════ */
.sidebar-section { margin-bottom: 1.75rem; overflow: hidden; }
.sidebar-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--card-radius); padding: 1.5rem;
  transition: var(--transition);
}
.sidebar-card:hover { box-shadow: var(--shadow-sm); }
.sidebar-title {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gray-800);
  padding-bottom: 0.85rem; margin-bottom: 1rem;
  border-bottom: 2px solid var(--asagi);
  display: flex; align-items: center; gap: 0.5rem;
}
.sidebar-title i { color: var(--asagi); font-size: 0.95rem; }

/* Profile Card */
.profile-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--card-radius); padding: 2rem 1.5rem;
  text-align: center; position: relative; overflow: hidden;
  transition: var(--transition);
}
.profile-card:hover { box-shadow: var(--shadow-sm); }
.profile-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 80px;
  background: linear-gradient(135deg, var(--asagi-lighter) 0%, var(--asagi-light) 100%);
}
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--asagi), var(--asagi-dark));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; position: relative; z-index: 1;
  border: 4px solid var(--white);
  box-shadow: 0 4px 16px rgba(0,164,166,0.2);
}
.profile-avatar i { font-size: 2rem; color: white; }
.profile-avatar-img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.profile-name { font-size: 1.05rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.15rem; }
.profile-role { font-size: 0.78rem; color: var(--asagi); font-weight: 600; letter-spacing: 0.5px; margin-bottom: 0.85rem; }
.profile-bio { font-size: 0.82rem; color: var(--gray-600); line-height: 1.8; font-weight: 300; margin-bottom: 1.25rem; }
.profile-stats {
  display: flex; justify-content: center; gap: 1.5rem;
  padding-top: 1rem; border-top: 1px solid var(--gray-100); margin-bottom: 1rem;
}
.profile-stat { text-align: center; }
.profile-stat-number { font-family: 'DM Sans', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--gray-900); display: block; line-height: 1.2; }
.profile-stat-label { font-size: 0.68rem; color: var(--gray-500); letter-spacing: 0.5px; }
.profile-socials { display: flex; justify-content: center; gap: 0.5rem; }
.profile-social-btn {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--gray-200); color: var(--gray-500);
  font-size: 0.85rem; transition: var(--transition-fast); cursor: pointer;
  text-decoration: none; background: var(--white);
}
.profile-social-btn:hover { border-color: var(--asagi); color: var(--asagi); background: var(--asagi-lighter); }

/* Sidebar Banner */
.sidebar-banner-link {
  display: block; border-radius: var(--card-radius); overflow: hidden;
  max-width: 100%; transition: var(--transition);
}
.sidebar-banner-link:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.sidebar-banner-img {
  display: block; width: 100%; max-width: 100%; height: auto;
  border-radius: var(--card-radius); object-fit: cover;
}

/* Ranking */
.ranking-item {
  display: flex; gap: 0.85rem; padding: 0.75rem 0.5rem;
  border-radius: 10px; transition: var(--transition-fast); cursor: pointer;
}
.ranking-item:not(:last-child) { border-bottom: 1px solid var(--gray-100); }
.ranking-item:hover { background: var(--asagi-lighter); }
.rank-number {
  font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700;
  color: var(--gray-500); line-height: 1; min-width: 30px;
  display: flex; align-items: flex-start; padding-top: 2px;
  transition: var(--transition-fast);
}
.ranking-item:hover .rank-number { color: var(--asagi); }
.rank-number.top { color: var(--asagi); }
.rank-content { flex: 1; }
.rank-title { font-size: 0.84rem; font-weight: 600; color: var(--gray-800); line-height: 1.5; margin-bottom: 0.25rem; }
.rank-title a { color: inherit; text-decoration: none; }
.rank-meta { font-size: 0.7rem; color: var(--gray-500); display: flex; align-items: center; gap: 0.75rem; }
.rank-bar { height: 3px; border-radius: 3px; background: var(--gray-100); margin-top: 0.4rem; overflow: hidden; }
.rank-bar-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--asagi), var(--asagi-mid));
  transition: width 0.6s ease;
}


/* ══════════════════════════════════════
   Section Dividers
   ══════════════════════════════════════ */
.section-divider {
  display: flex; align-items: center; gap: 0.85rem;
  margin: 2.25rem 0 1.5rem;
}
.section-divider .divider-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--asagi-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--asagi); font-size: 0.85rem; flex-shrink: 0;
}
.section-divider .divider-text {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gray-700);
}
.section-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--gray-200), transparent);
}

/* Meta Items */
.meta-item { display: flex; align-items: center; gap: 0.3rem; }
.meta-item i { font-size: 0.78rem; }


/* ══════════════════════════════════════
   Footer
   ══════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--gray-200);
  padding: 2.5rem 0 1.5rem; margin-top: 3rem;
  background: var(--gray-50);
}
.footer-main {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 2rem; margin-bottom: 2rem;
}
.footer-brand p {
  font-size: 0.82rem; color: var(--gray-700);
  line-height: 1.8; font-weight: 300; margin-top: 0.75rem; max-width: 360px;
}
.footer-links { display: flex; align-items: center; gap: 1.75rem; flex-shrink: 0; }
.footer-links a {
  font-size: 0.82rem; color: var(--gray-700);
  text-decoration: none; transition: var(--transition-fast); white-space: nowrap;
}
.footer-links a:hover { color: var(--asagi); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.5rem; border-top: 1px solid var(--gray-200);
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: 0.75rem; color: var(--gray-700); font-weight: 300; }
.footer-socials { display: flex; gap: 0.5rem; }
.social-btn {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--gray-200); color: var(--gray-500);
  font-size: 0.9rem; transition: var(--transition-fast); cursor: pointer;
  text-decoration: none; background: var(--white);
}
.social-btn:hover { border-color: var(--asagi); color: var(--asagi); background: var(--asagi-lighter); }


/* ══════════════════════════════════════
   Animations
   ══════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.55s ease forwards; opacity: 0; }
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
.delay-5 { animation-delay: 0.4s; }
.delay-6 { animation-delay: 0.48s; }
.delay-7 { animation-delay: 0.56s; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--asagi-mid); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--asagi); }


/* ══════════════════════════════════════
   Responsive
   ══════════════════════════════════════ */

/* ── Tablet (≤991px) ── */
@media (max-width: 991.98px) {
  :root {
    --card-radius: 12px;
    --card-radius-sm: 10px;
  }

  .header-inner { padding: 0.7rem 0; }
  .logo-img { height: 22px; }

  .footer-main { flex-direction: column; gap: 1.25rem; }
  .footer-links { flex-wrap: wrap; gap: 1rem; }
  .footer-brand p { max-width: 100%; }

  /* Bootstrap col-lg-4 stacks here */
  .row.g-4 > .col-lg-4 { margin-top: 2rem; }

  /* Sidebar: center when stacked */
  .sidebar-section { max-width: 480px; margin-left: auto; margin-right: auto; }
  .sidebar-banner-link { max-width: 100%; }
  .profile-card { max-width: 100%; }

  .section-divider { margin: 1.75rem 0 1.25rem; }
}

/* ── Mobile (≤767px) ── */
@media (max-width: 767.98px) {
  body { line-height: 1.75; font-size: 15px; }

  /* Prevent horizontal overflow */
  html, body { overflow-x: hidden; }
  * { word-break: break-word; overflow-wrap: break-word; }

  /* Bootstrap container override — tighter padding */
  .container,
  .container-sm { padding-left: 16px !important; padding-right: 16px !important; }

  /* Bootstrap row gutter override */
  .row.g-4 { --bs-gutter-x: 0; --bs-gutter-y: 0; }
  .row.g-4 > .col-lg-8,
  .row.g-4 > .col-lg-4 { padding-left: 0; padding-right: 0; }
  .row.g-4 > .col-lg-4 { margin-top: 2.5rem; }

  /* Sidebar: full width on mobile, no max-width constraint */
  .sidebar-section { max-width: 100%; margin-left: 0; margin-right: 0; }

  /* Header */
  .header-inner { padding: 0.55rem 0; }
  .logo-text { font-size: 1.2rem; letter-spacing: 1.5px; }
  .logo-mark { width: 30px; height: 30px; font-size: 0.85rem; border-radius: 8px; }
  .logo-img { height: 18px; }
  .site-header { backdrop-filter: blur(16px) saturate(160%); }

  /* Background decorations — hide on mobile for performance */
  .bg-orb { display: none; }
  .bg-grid { opacity: 0.008; }

  /* Sidebar shared */
  .sidebar-section { margin-bottom: 1.25rem; }
  .sidebar-card { padding: 1rem; border-radius: var(--card-radius); }
  .sidebar-title { font-size: 0.68rem; letter-spacing: 1.5px; padding-bottom: 0.65rem; margin-bottom: 0.85rem; }

  .sidebar-banner-link { max-width: 100%; border-radius: var(--card-radius); }
  .sidebar-banner-img { border-radius: var(--card-radius); }

  .profile-card { max-width: 100%; padding: 1.5rem 1.15rem; border-radius: var(--card-radius); }
  .profile-card::before { height: 56px; }
  .profile-avatar { width: 60px; height: 60px; border-width: 3px; }
  .profile-name { font-size: 0.92rem; }
  .profile-role { font-size: 0.72rem; margin-bottom: 0.65rem; }
  .profile-bio { font-size: 0.78rem; line-height: 1.7; margin-bottom: 1rem; }
  .profile-stats { gap: 0.85rem; padding-top: 0.85rem; margin-bottom: 0.85rem; }
  .profile-stat-number { font-size: 1rem; }
  .profile-stat-label { font-size: 0.62rem; }
  .profile-social-btn { width: 30px; height: 30px; font-size: 0.78rem; border-radius: 6px; }

  .ranking-item { padding: 0.55rem 0.25rem; gap: 0.6rem; }
  .rank-number { font-size: 1.2rem; min-width: 22px; }
  .rank-title { font-size: 0.78rem; }
  .rank-meta { font-size: 0.65rem; gap: 0.5rem; }

  .section-divider { margin: 1.25rem 0 0.85rem; gap: 0.5rem; }
  .section-divider .divider-icon { width: 24px; height: 24px; font-size: 0.72rem; border-radius: 6px; }
  .section-divider .divider-text { font-size: 0.65rem; letter-spacing: 1.8px; }

  .meta-item { font-size: 0.68rem; gap: 0.2rem; }
  .meta-item i { font-size: 0.7rem; }

  /* Footer */
  .site-footer { padding: 1.75rem 0 1.15rem; margin-top: 2rem; }
  .footer-main { gap: 1rem; }
  .footer-brand p { font-size: 0.75rem; }
  .footer-links { gap: 0.75rem; justify-content: center; }
  .footer-links a { font-size: 0.75rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.75rem; padding-top: 1rem; }
  .footer-copy { font-size: 0.68rem; }
  .social-btn { width: 30px; height: 30px; font-size: 0.8rem; border-radius: 6px; }

  /* Animations — reduce on mobile */
  .animate-in { animation-duration: 0.35s; }
}

/* ── Small Mobile (≤480px) ── */
@media (max-width: 480px) {
  body { font-size: 14px; }

  .container,
  .container-sm { padding-left: 12px !important; padding-right: 12px !important; }

  .logo-text { font-size: 1.05rem; letter-spacing: 1px; }
  .logo-img { height: 16px; }

  .profile-card { padding: 1.25rem 0.85rem; }
  .profile-avatar { width: 52px; height: 52px; }
  .profile-bio { font-size: 0.72rem; }

  .rank-title { font-size: 0.75rem; }
  .rank-number { font-size: 1.1rem; }

  /* Footer */
  .footer-brand p { font-size: 0.7rem; line-height: 1.7; }
  .footer-links a { font-size: 0.7rem; }
  .footer-copy { font-size: 0.62rem; }
}
