/*
Theme Name: Ranking Theme
Theme URI: https://example.com/ranking-theme
Author: Your Name
Author URI: https://example.com
Description: ランキング・ディレクトリ特化型WordPressテーマ。不動産アドバイザーランキングサイトの実証テスト用。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ranking-theme
Tags: ranking, directory, real-estate, custom-colors, custom-logo
*/

/* Theme base styles - Admin UI styles are in dist/assets/main.css */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #2563EB;
  --color-primary-light: #3B82F6;
  --color-primary-dark: #1D4ED8;
  --color-secondary: #0F172A;
  --color-accent: #F59E0B;
  --color-bg: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-text: #1E293B;
  --color-text-muted: #64748B;
  --color-border: #E2E8F0;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.10), 0 4px 6px rgba(0,0,0,0.05);
  --font-sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =============================================
   HEADER
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Inter:wght@400;500;600;700&display=swap');

.rt-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.rt-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Background variants */
.rt-header--bg-transparent { background: transparent; }
.rt-header--bg-white {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.rt-header--bg-dark { background: #0F172A; }

/* Sticky scroll-down effect */
.rt-header--sticky.rt-header--scrolled {
  background: rgba(15,23,42,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 28px rgba(0,0,0,0.18);
}

/* Logo */
.rt-header__logo { text-decoration: none; display: flex; align-items: center; }
.rt-logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.rt-header--bg-white .rt-logo-text { color: #0F172A; }
.rt-logo-img { height: 40px; width: auto; object-fit: contain; }

/* Navigation */
.rt-nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.rt-nav__list a {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.rt-header--bg-white .rt-nav__list a { color: #334155; }
.rt-nav__list a:hover { color: #C9A84C; }

/* Admin bar */
.admin-bar .rt-header { top: 32px; }

/* Responsive */
@media (max-width: 768px) {
  .rt-header { height: 60px; padding: 0 20px; }
  .rt-nav { display: none; }
  .admin-bar .rt-header { top: 46px; }
}

/* =============================================
   FOOTER
   ============================================= */
.rt-footer {
  background: #0F172A;
  color: rgba(255,255,255,0.5);
  padding: 52px 40px 36px;
  font-family: 'Inter', sans-serif;
}

.rt-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.rt-footer__sns {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rt-footer__sns-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.rt-footer__sns-link:hover {
  border-color: #C9A84C;
  color: #C9A84C;
  background: rgba(201,168,76,0.1);
}
.rt-footer__sns-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.rt-footer__divider {
  width: 48px;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.rt-footer__copy {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-align: center;
}

