﻿/*
Theme Name: Osaka Local Guide
Theme URI: https://example.com/
Author: You
Description: Practical Osaka travel guide theme matching the Osaka Local Guide static design.
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: osaka-local-guide
*/
/* Osaka Local Guide — white-based, red & blue accents */

:root {
  --color-bg: #fafbfc;
  --color-surface: #ffffff;
  --color-text: #1a1d21;
  --color-text-muted: #5c6370;
  --color-border: #e8eaed;
  --color-accent-red: #c41e3a;
  --color-accent-red-hover: #a01830;
  --color-accent-blue: #1e4d8c;
  --color-accent-blue-soft: #e8f0fa;
  --color-accent-red-soft: #fceef1;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius-lg: 16px;
  --radius-md: 12px;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --container: min(1120px, 100% - 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--color-accent-red);
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.5rem;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.35rem 0.2rem;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover {
  color: var(--color-accent-blue);
  background: rgba(30, 77, 140, 0.06);
  text-decoration: none;
}

.nav a:focus-visible {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.25rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    display: none;
  }

  .nav.nav--open {
    display: flex;
  }

  .nav a {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav a:last-child {
    border-bottom: none;
  }
}

/* Hero */

.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: flex-end;
  padding: 3rem 0 4rem;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-color: #1a1d21;
  background-image: var(--hero-bg);
  background-position: var(--hero-pos, center);
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.35s ease-in-out;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }

  .hero-slide:not(.is-active) {
    opacity: 0;
    visibility: hidden;
  }

  .hero-slide.is-active {
    opacity: 1;
    visibility: visible;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(18, 22, 30, 0.82) 0%,
    rgba(18, 22, 30, 0.48) 38%,
    rgba(26, 29, 33, 0.2) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 640px;
  padding-bottom: 0.25rem;
}

.hero-eyebrow {
  margin: 0 0 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b8d4f0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
  margin: 0 0 1.125rem;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
  max-width: 36ch;
}

.hero-intro {
  margin: 0 0 1.875rem;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 48ch;
  line-height: 1.65;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.625rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-accent-red);
  color: #fff;
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.35), var(--shadow-sm);
  border-color: transparent;
}

.btn-primary:hover {
  background: var(--color-accent-red-hover);
  box-shadow: 0 4px 16px rgba(196, 30, 58, 0.4), var(--shadow-md);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}

@media (max-width: 480px) {
  .hero {
    min-height: min(92vh, 640px);
    padding: 2rem 0 3rem;
  }

  .btn {
    width: 100%;
  }
}

/* Sections */

.section {
  padding: 4rem 0;
}

.section-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.section-lead {
  margin: 0 0 2.5rem;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 48ch;
}

.categories {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

/* Category cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 1.625rem 1.625rem 1.75rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: #d0d4db;
}

.card--accent {
  background: linear-gradient(145deg, #ffffff 0%, var(--color-accent-red-soft) 100%);
  border-color: #e8c4cf;
  border-left: 3px solid rgba(196, 30, 58, 0.42);
  padding-left: 1.5rem;
}

.card--accent .card-icon--red {
  transform: rotate(-3deg);
  transition: transform 0.2s ease;
}

.card--accent:hover .card-icon--red {
  transform: rotate(0deg);
}

.card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.card-icon--blue {
  background: var(--color-accent-blue-soft);
  color: var(--color-accent-blue);
}

.card-icon--red {
  background: var(--color-accent-red-soft);
  color: var(--color-accent-red);
}

.card-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
}

.card-text {
  margin: 0 0 1.125rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  flex: 1 1 auto;
}

.card-link {
  margin-top: auto;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-accent-blue);
  text-decoration: none;
}

.card-link:hover {
  color: var(--color-accent-red);
  text-decoration: none;
}

/* Articles */

.articles {
  padding-bottom: 4.5rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
}

.article-thumb {
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 16 / 10;
  min-height: 200px;
  background-color: #dfe3e8;
  background-image: var(--thumb);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.article-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.375rem 1.5rem;
}

.article-date {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.article-title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}

.article-title a {
  color: var(--color-text);
  text-decoration: none;
}

.article-title a:hover {
  color: var(--color-accent-red);
}

.article-excerpt {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* Footer */

.site-footer {
  background: var(--color-text);
  color: #d1d5db;
  font-size: 1rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  padding: 3.25rem 0 2.25rem;
  align-items: start;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.625rem;
  letter-spacing: -0.02em;
}

.footer-brand p {
  margin: 0;
  max-width: 38ch;
  font-size: 1rem;
  line-height: 1.65;
  color: #b8bcc4;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b929e;
  margin-bottom: 0.375rem;
}

.footer-links a {
  font-size: 1rem;
  line-height: 1.5;
  color: #d1d5db;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
}

.footer-bar p {
  margin: 0;
  font-size: 0.875rem;
  color: #9ca3af;
  text-align: center;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* WordPress: single post and archives */

.article-page-hero {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 2.5rem 0 2rem;
}

.article-page-hero-inner {
  max-width: 42rem;
}

.article-page-date {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent-blue);
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.article-page-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.article-page-lead {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  max-width: 40ch;
}

.article-page-featured {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

.article-page-featured-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.article-page-body {
  padding-top: 2.5rem;
}

.article-page-content {
  max-width: 40rem;
}

.entry-content {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.25rem 0 0.75rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.entry-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
  color: var(--color-text);
}

.entry-content p {
  margin: 0 0 1.25rem;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.entry-content li {
  margin-bottom: 0.35rem;
}

.entry-content a {
  font-weight: 600;
}

.entry-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--color-accent-blue);
  background: var(--color-accent-blue-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: normal;
}

.entry-content img {
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.entry-content .wp-block-image {
  margin: 1.5rem 0;
}

.page-links {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.archive-section .section-lead {
  margin-bottom: 2rem;
}

.archive-desc {
  max-width: 52ch;
}

.archive-desc p {
  margin: 0;
}

.article-card-link {
  display: block;
  line-height: 0;
}

.article-card-link:hover .article-thumb {
  opacity: 0.92;
}

.pagination {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination .nav-links {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0 0.65rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
}

.pagination a:hover {
  border-color: var(--color-accent-blue);
  color: var(--color-accent-blue);
  text-decoration: none;
}

.pagination span.current {
  background: var(--color-accent-blue-soft);
  border-color: var(--color-accent-blue);
  color: var(--color-accent-blue);
}

.pagination .dots {
  border: none;
  background: transparent;
}
