/*
Theme Name: cartune-press
Theme URI: https://cartune.site/
Author: cartune.site
Author URI: https://cartune.site/
Description: 自動車ニュース・カスタム情報向けのシンプルで高速なテーマ。レスポンシブ対応・カスタムロゴ対応・サイドバー付き2カラムレイアウト。
Version: 1.2.0
Text Domain: cartune-press
*/

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
  line-height: 1.7;
  color: #222;
  background-color: #f5f5f5;
}

a {
  color: #0b79d0;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
}

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

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo img {
  max-height: 48px;
  width: auto;
  height: auto;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.site-title a {
  color: #222;
}

/* Navigation */

.primary-nav {
  display: flex;
  gap: 16px;
  font-size: 0.95rem;
}

.primary-nav a {
  color: #555;
}

.primary-nav a:hover {
  color: #0b79d0;
}

@media (max-width: 768px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Layout */

.site-main {
  padding: 24px 0 40px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.6fr) minmax(260px, 1fr);
  gap: 32px;
}

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

/* Article */

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

.post-title {
  font-size: 1.8rem;
  margin: 0 0 8px;
}

.post-meta {
  font-size: 0.85rem;
  color: #777;
}

.post-content {
  background-color: #ffffff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.post-content img {
  max-width: 100%;
  height: auto;
}

.post-content figure {
  margin: 0 0 1.5em;
}

.post-content h2 {
  font-size: 1.4rem;
  margin-top: 1.8em;
  border-left: 4px solid #0b79d0;
  padding-left: 0.6em;
}

.post-content h3 {
  font-size: 1.15rem;
  margin-top: 1.6em;
}

.post-content p {
  margin: 0 0 1em;
}

/* Sidebar */

.sidebar {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.widget {
  margin-bottom: 24px;
}

.widget-title {
  font-size: 1rem;
  margin: 0 0 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e5e5e5;
}

/* Search form */

.widget_search .search-form {
  display: flex;
  gap: 8px;
}

.widget_search .search-field {
  flex: 1;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.widget_search .search-submit {
  padding: 6px 12px;
  border-radius: 4px;
  border: none;
  background-color: #0b79d0;
  color: #fff;
  cursor: pointer;
}

.widget_search .search-submit:hover {
  background-color: #085f9f;
}

/* Post list */

.post-list-item {
  background-color: #ffffff;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.post-list-item h2 {
  font-size: 1.4rem;
  margin: 0 0 8px;
}

.post-list-item .entry-meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 8px;
}

/* Breadcrumbs */

.breadcrumbs {
  font-size: 0.85rem;
  margin-bottom: 16px;
  color: #777;
}

.breadcrumbs a {
  color: #777;
}

.breadcrumbs a:hover {
  color: #0b79d0;
}

/* Footer */

.site-footer {
  background-color: #111;
  color: #ccc;
  padding: 20px 0;
  font-size: 0.85rem;
}

.site-footer a {
  color: #fff;
}
