/*
Theme Name: Obasanchi
Theme URI: https://ktpk5103.icu
Description: おばさんち — 熟女・人妻特化ブログ、暖かみのあるベージュ系デザイン
Version: 1.0
Text Domain: obasanchi
*/

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

:root {
  --bg:       #fdf6ec;
  --bg-card:  #fffaf3;
  --bg-nav:   #fff8f0;
  --main:     #d97757;
  --main-dk:  #b85e3e;
  --sub:      #8b6f47;
  --sub-lt:   #c9a87a;
  --text:     #3d2817;
  --text2:    #7a5c40;
  --text3:    #b09070;
  --border:   #e8d8c4;
  --shadow:   rgba(139,111,71,0.12);
}

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', 'Yu Gothic', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 15px;
}
a { color: var(--main); text-decoration: none; }
a:hover { color: var(--main-dk); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ========== ヘッダー ========== */
.site-header {
  background: linear-gradient(135deg, #fff8f0 0%, #fdebd8 100%);
  border-bottom: 3px solid var(--main);
  padding: 0;
}
.site-header .inner {
  max-width: 1120px; margin: 0 auto; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.header-logo { flex: 1; min-width: 0; }
.site-title {
  font-size: 26px; font-weight: 900; color: var(--main);
  letter-spacing: 0.02em; line-height: 1.2;
}
.site-title a { color: var(--main); text-decoration: none; }
.site-title a:hover { text-decoration: none; opacity: 0.85; }
.site-desc {
  font-size: 12px; color: var(--text3); margin-top: 3px;
}

/* 検索 */
.header-search {
  flex-shrink: 0;
}
.header-search form {
  display: flex; align-items: center;
  border: 1px solid var(--border); border-radius: 24px;
  overflow: hidden; background: #fff;
}
.header-search input {
  border: none; outline: none; padding: 7px 14px;
  font-size: 13px; color: var(--text); background: transparent;
  width: 180px;
}
.header-search button {
  border: none; background: var(--main); color: #fff;
  padding: 7px 14px; cursor: pointer; font-size: 13px;
  transition: background 0.2s;
}
.header-search button:hover { background: var(--main-dk); }

/* ========== ナビ ========== */
.site-nav {
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.site-nav .inner {
  max-width: 1120px; margin: 0 auto; padding: 0 16px;
  display: flex; gap: 0;
}
.site-nav a {
  display: block; padding: 10px 15px; font-size: 13px; font-weight: 500;
  color: var(--text2); white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.site-nav a:hover {
  color: var(--main); border-bottom-color: var(--main);
  text-decoration: none;
}

/* ========== メインレイアウト ========== */
.site-content {
  max-width: 1120px; margin: 0 auto; padding: 24px 16px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}
.main-content { min-width: 0; }

/* ========== セクションタイトル ========== */
.section-title {
  font-size: 16px; font-weight: 700; color: var(--sub);
  margin-bottom: 16px; padding: 8px 14px;
  border-left: 4px solid var(--main);
  background: linear-gradient(to right, #fff3e8, transparent);
}

/* ========== 記事カード一覧 ========== */
.post-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 8px;
}
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.15s;
}
.post-card:hover {
  box-shadow: 0 4px 18px var(--shadow);
  transform: translateY(-2px);
}
.post-card .thumb {
  position: relative; padding-top: 56.25%;
  overflow: hidden; background: #f0e8dc;
}
.post-card .thumb img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .info { padding: 12px 14px; }
.post-card .info h2 {
  font-size: 13px; font-weight: 600; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 8px; color: var(--text);
}
.post-card .info h2 a { color: inherit; }
.post-card .info h2 a:hover { color: var(--main); text-decoration: none; }
.post-card .post-meta {
  font-size: 11px; color: var(--text3);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.post-card .cat-badge {
  display: inline-block; font-size: 10px; padding: 1px 7px;
  border-radius: 3px; background: var(--main); color: #fff;
  font-weight: 600;
}

/* ========== ページネーション ========== */
.pagination {
  margin: 28px 0; padding: 0;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 5px;
}
.pagination .nav-links { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.pagination a, .pagination span,
.pagination .nav-links a, .pagination .nav-links span {
  display: inline-block; padding: 7px 13px;
  border: 1px solid var(--border); border-radius: 5px;
  font-size: 13px; color: var(--text2); background: #fff;
  transition: all 0.2s;
}
.pagination a:hover { background: var(--main); color: #fff; border-color: var(--main); text-decoration: none; }
.pagination .current { background: var(--main); color: #fff; border-color: var(--main); }

/* ========== 個別記事 ========== */
.single-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 30px;
}
.entry-title {
  font-size: 22px; font-weight: 800;
  line-height: 1.55; margin-bottom: 14px; color: var(--text);
}
.entry-meta {
  font-size: 12px; color: var(--text3);
  margin-bottom: 20px;
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}
.entry-meta a { color: var(--sub); }
.entry-meta a:hover { color: var(--main); }

/* パンくず */
.breadcrumb {
  font-size: 12px; color: var(--text3);
  margin-bottom: 18px;
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
}
.breadcrumb a { color: var(--sub); }
.breadcrumb a:hover { color: var(--main); }
.breadcrumb .sep { color: var(--border); }

.entry-body {
  line-height: 1.9; font-size: 15px; color: #4a3020;
  margin-bottom: 24px;
}
.entry-body p { margin-bottom: 1em; }
.entry-body img {
  border-radius: 6px; max-width: 100%; height: auto;
  margin: 0 auto 16px; display: block;
}
.entry-body a > img { display: block; margin: 0 auto; }

/* 動画ボタン */
.video-btn { text-align: center; margin: 26px 0; }
.video-btn a {
  display: inline-block; padding: 15px 52px;
  background: linear-gradient(135deg, var(--main), var(--main-dk));
  color: #fff; border-radius: 8px;
  font-weight: 800; font-size: 17px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(217,119,87,0.4);
  transition: all 0.2s;
}
.video-btn a:hover {
  background: linear-gradient(135deg, var(--main-dk), #8b3e28);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217,119,87,0.5);
  text-decoration: none;
}

/* タグ */
.entry-tags { margin: 20px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.entry-tags a {
  display: inline-block; padding: 4px 10px;
  border: 1px solid var(--border); border-radius: 4px;
  font-size: 12px; color: var(--text2); background: #fff;
}
.entry-tags a:hover {
  background: var(--main); color: #fff;
  border-color: var(--main); text-decoration: none;
}

/* シェアボタン */
.share-buttons {
  margin: 24px 0; padding: 16px;
  background: #fff3ea; border-radius: 8px;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.share-buttons .share-label {
  font-size: 13px; font-weight: 600; color: var(--text2); flex-shrink: 0;
}
.share-btn {
  display: inline-block; padding: 7px 16px; border-radius: 5px;
  font-size: 12px; font-weight: 600; color: #fff;
  transition: opacity 0.2s;
}
.share-btn:hover { opacity: 0.85; text-decoration: none; }
.share-twitter { background: #1da1f2; }
.share-line { background: #06c755; }

/* 関連記事 */
.related-section {
  margin-top: 30px; padding-top: 20px;
  border-top: 1px solid var(--border);
}
.related-section .section-title { margin-bottom: 14px; }

/* ========== サイドバー ========== */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.widget-title {
  font-size: 14px; font-weight: 700; color: #fff;
  padding: 9px 14px;
  background: linear-gradient(135deg, var(--main), var(--sub-lt));
  margin: 0;
}
.widget-body { padding: 14px; }

/* サイドバー最新記事 */
.sidebar-post-list { list-style: none; padding: 0; margin: 0; }
.sidebar-post-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px; line-height: 1.5;
}
.sidebar-post-list li:last-child { border-bottom: none; }
.sidebar-post-list a { color: var(--text2); }
.sidebar-post-list a:hover { color: var(--main); }

/* サイドバーカテゴリ */
.sidebar-cat-list { list-style: none; padding: 0; margin: 0; }
.sidebar-cat-list li { border-bottom: 1px solid var(--border); }
.sidebar-cat-list li:last-child { border-bottom: none; }
.sidebar-cat-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 4px; font-size: 13px; color: var(--text2);
}
.sidebar-cat-list a:hover { color: var(--main); text-decoration: none; }
.sidebar-cat-list .count {
  font-size: 11px; background: var(--sub-lt); color: #fff;
  border-radius: 10px; padding: 1px 7px; font-weight: 600;
}

/* サイト紹介 */
.about-widget-text {
  font-size: 13px; line-height: 1.8; color: var(--text2);
}

/* ========== フッター ========== */
.site-footer {
  background: #3d2817;
  border-top: 4px solid var(--main);
  margin-top: 40px; padding: 32px 0 16px;
}
.site-footer .inner { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.footer-widgets {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px;
  margin-bottom: 24px;
}
.footer-widget-title {
  font-size: 14px; font-weight: 700; color: #fff;
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.footer-widget-text { font-size: 12px; color: #c8a88a; line-height: 1.8; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 7px; }
.footer-links a { font-size: 12px; color: #c8a88a; }
.footer-links a:hover { color: var(--sub-lt); text-decoration: none; }
.footer-bottom {
  text-align: center; font-size: 11px; color: #8a6a50;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.footer-bottom a { color: #8a6a50; }
.footer-bottom a:hover { color: #c8a88a; }

/* 広告・パーツ */
.kok-ads { margin: 20px 0; }
.article-bottom-parts { margin: 20px 0; }

/* ========== アーカイブ・検索ページ タイトル ========== */
.archive-header, .search-header {
  margin-bottom: 20px; padding: 14px 18px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; border-left: 4px solid var(--main);
}
.archive-header h1, .search-header h1 {
  font-size: 18px; font-weight: 700; color: var(--text);
}
.archive-header p, .search-header p {
  font-size: 13px; color: var(--text3); margin-top: 4px;
}

/* ========== 404 ページ ========== */
.error-404-wrap {
  text-align: center; padding: 60px 20px;
  background: var(--bg-card); border-radius: 8px;
  border: 1px solid var(--border);
}
.error-404-wrap h1 { font-size: 60px; color: var(--main); font-weight: 900; }
.error-404-wrap p { font-size: 16px; color: var(--text2); margin: 12px 0 24px; }
.error-404-wrap a {
  display: inline-block; padding: 12px 30px;
  background: var(--main); color: #fff; border-radius: 6px;
  font-weight: 700; font-size: 15px;
}
.error-404-wrap a:hover { background: var(--main-dk); text-decoration: none; }

/* ========== レスポンシブ ========== */
@media (max-width: 900px) {
  .site-content { grid-template-columns: 1fr; gap: 20px; }
  .sidebar { display: none; }
}
@media (max-width: 768px) {
  .site-header .inner { padding: 12px 16px; }
  .site-title { font-size: 21px; }
  .header-search { display: none; }
  .post-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .post-card .info h2 { font-size: 12px; }
  .single-wrap { padding: 18px 16px; }
  .entry-title { font-size: 18px; }
  .footer-widgets { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .post-grid { grid-template-columns: 1fr; }
}
