/*
Theme Name: 厳選！コスパ宿＆温泉トラベルガイド 専用テーマ (Cospa Travel SEO)
Theme URI: https://tabi.website/zenkoku/
Author: K Sugasawa
Author URI: https://tabi.website/zenkoku/
Description: 全国のホテル・温泉宿・ビジネスホテル紹介に特化した超高速＆SEO最適化WordPressテーマ。gogog.xsrv.jpスタイルの洗練されたカード型レイアウト、Hotel/LodgingBusiness構造化データ(JSON-LD)、パンくずリスト、高CVR予約CTAボタン、モバイル完全対応。
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: travel, hotel, review, responsive-layout, seo, clean, fast
Text Domain: cospa-travel
*/

/* Reset & Global Variables */
:root {
  --primary-color: #0f2b48;
  --primary-light: #1e3a5f;
  --accent-color: #0284c7;
  --accent-hover: #0369a1;
  --cta-orange: #ff7a00;
  --cta-hover: #ea580c;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--accent-hover);
}

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background-color: var(--card-bg);
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.site-branding {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
}

.site-title a {
  color: var(--primary-color);
}

.site-description {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Navigation */
.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.main-navigation a {
  color: var(--text-main);
  font-weight: 600;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.main-navigation a:hover {
  color: var(--accent-color);
  background-color: #f1f5f9;
}

/* Hero Section */
.hero-banner {
  background: linear-gradient(135deg, #0f2b48 0%, #1e3a5f 50%, #0284c7 100%);
  color: #ffffff;
  padding: 40px 20px;
  text-align: center;
  border-radius: var(--radius-md);
  margin: 24px 0 32px;
  box-shadow: var(--shadow-md);
}

.hero-banner h1,
.hero-banner h2,
.hero-banner .hero-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.4;
}

.hero-banner p {
  font-size: 15px;
  opacity: 0.92;
  max-width: 680px;
  margin: 0 auto;
}

/* Main Layout (2 Columns) */
.layout-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  margin-bottom: 50px;
}

@media (max-width: 860px) {
  .layout-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Posts Grid */
.section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-color);
  border-left: 5px solid var(--accent-color);
  padding-left: 12px;
  margin-bottom: 20px;
}

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

@media (max-width: 640px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

/* Hotel Card */
.hotel-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.hotel-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #e2e8f0;
  overflow: hidden;
}

.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hotel-card:hover .card-thumbnail img {
  transform: scale(1.04);
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--accent-color);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  gap: 10px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
}

.card-title a {
  color: var(--text-main);
}

.card-title a:hover {
  color: var(--accent-color);
}

.card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-btn {
  display: inline-block;
  background-color: #f1f5f9;
  color: var(--accent-color);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
}

.hotel-card:hover .card-btn {
  background-color: var(--accent-color);
  color: #ffffff;
}

/* Single Post Page */
.single-post-container {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .single-post-container {
    padding: 20px 16px;
  }
}

.breadcrumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--accent-color);
}

.entry-header {
  margin-bottom: 24px;
}

.entry-category {
  display: inline-block;
  background-color: #e0f2fe;
  color: var(--accent-color);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.entry-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--primary-color);
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  .entry-title {
    font-size: 20px;
  }
}

.entry-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 14px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.entry-thumbnail {
  margin: 24px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* Content Typography & Components */
.entry-content h2 {
  font-size: 20px;
  color: var(--primary-color);
  border-left: 5px solid var(--accent-color);
  background-color: #f8fafc;
  padding: 10px 14px;
  margin: 36px 0 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.entry-content h3 {
  font-size: 18px;
  color: var(--primary-light);
  border-bottom: 2px solid #cbd5e1;
  padding-bottom: 6px;
  margin: 28px 0 14px;
}

.entry-content p {
  margin-bottom: 18px;
  line-height: 1.85;
}

.entry-content ul, .entry-content ol {
  margin: 0 0 20px 24px;
  line-height: 1.8;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.entry-content th, .entry-content td {
  border: 1px solid var(--border-color);
  padding: 12px 14px;
}

.entry-content th {
  background-color: #f1f5f9;
  font-weight: 700;
  width: 25%;
  text-align: left;
}

/* Sidebar */
.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.widget {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-color);
  border-left: 4px solid var(--accent-color);
  padding-left: 10px;
  margin-bottom: 16px;
}

.widget ul {
  list-style: none;
}

.widget li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 14px;
}

.widget li:last-child {
  border-bottom: none;
}

/* Search Box */
.search-form {
  display: flex;
  gap: 6px;
}

.search-field {
  flex-grow: 1;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
}

.search-field:focus {
  border-color: var(--accent-color);
}

.search-submit {
  background-color: var(--accent-color);
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-submit:hover {
  background-color: var(--accent-hover);
}

/* Footer */
.site-footer {
  background-color: var(--primary-color);
  color: #cbd5e1;
  padding: 40px 0 24px;
  margin-top: 60px;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 24px;
  margin-bottom: 20px;
}

.footer-nav ul {
  display: flex;
  list-style: none;
  gap: 18px;
}

.footer-nav a {
  color: #cbd5e1;
}

.footer-nav a:hover {
  color: #ffffff;
}

.copyright {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 32px 0;
}

.pagination a, .pagination span {
  display: inline-block;
  padding: 8px 14px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.pagination .current {
  background-color: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
}
