/*
Theme Name: グダグダ部 Official
Theme URI: https://gudaguda-bu.example.com
Author: グダグダ部
Description: グダグダ部公式サイト専用テーマ。ゆるく、のんびり、それでいい。
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: gudaguda
*/

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sky: #1a9cc4;
  --sky-dark: #127a9e;
  --sky-light: #e8f6fb;
  --cream: #fffdf5;
  --cream-border: #e0d9c5;
  --ink: #2a2010;
  --ink-mid: #5a4e38;
  --ink-light: #a09070;
  --white: #ffffff;
  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-soft: 0 2px 12px rgba(26,156,196,0.10);
}

html { font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: #f4f0e8;
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--sky); text-decoration: none; }
a:hover { color: var(--sky-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================
   LAYOUT
   ============================================ */
.site-wrapper {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-area {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  padding: 36px 0 60px;
  align-items: start;
}

@media (max-width: 740px) {
  .content-area { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--sky);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 980px;
  margin: 0 auto;
}

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

.site-branding img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.4);
}

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

.site-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.site-tagline {
  font-size: 10px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.12em;
}

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

.main-nav a {
  display: block;
  padding: 6px 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  border-radius: 20px;
  border: 1px solid transparent;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.35);
  text-decoration: none;
  color: white;
}

@media (max-width: 580px) {
  .main-nav { display: none; }
}

/* ============================================
   HERO (トップページのみ)
   ============================================ */
.hero-section {
  background: var(--cream);
  border: 0.5px solid var(--cream-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(26,156,196,0.06);
}

.hero-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-light);
  margin-bottom: 16px;
}

.hero-copy {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--ink);
  line-height: 2;
  margin-bottom: 12px;
}

.hero-deco {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
  color: var(--sky);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--sky);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.05em;
}

.section-header::before,
.section-header::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1.5px;
  background: var(--sky);
  flex-shrink: 0;
}

/* ============================================
   BLOG POST CARDS (一覧)
   ============================================ */
.post-list { display: flex; flex-direction: column; gap: 16px; }

.post-card {
  background: var(--white);
  border: 0.5px solid var(--cream-border);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.post-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.post-date {
  font-size: 11px;
  color: var(--ink-light);
  letter-spacing: 0.08em;
  font-family: var(--font-sans);
}

.post-category {
  display: inline-block;
  font-size: 10px;
  background: var(--sky-light);
  color: var(--sky-dark);
  padding: 2px 10px;
  border-radius: 12px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.post-card-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
}

.post-card-title a { color: var(--ink); }
.post-card-title a:hover { color: var(--sky); text-decoration: none; }

.post-card-excerpt {
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.7;
}

.post-card-footer {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.read-more {
  font-size: 12px;
  color: var(--sky);
  border: 1px solid var(--sky);
  padding: 3px 12px;
  border-radius: 12px;
  transition: all 0.2s;
}

.read-more:hover {
  background: var(--sky);
  color: white;
  text-decoration: none;
}

/* ============================================
   SINGLE POST
   ============================================ */
.single-post {
  background: var(--white);
  border: 0.5px solid var(--cream-border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
}

.single-post-header { margin-bottom: 2rem; }

.single-post-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 12px;
}

.single-post-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.single-post-content {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
}

.single-post-content p { margin-bottom: 1.4em; }
.single-post-content h2 { font-family: var(--font-serif); font-size: 20px; margin: 2em 0 0.8em; border-left: 4px solid var(--sky); padding-left: 12px; }
.single-post-content h3 { font-family: var(--font-serif); font-size: 17px; margin: 1.5em 0 0.6em; color: var(--sky-dark); }
.single-post-content ul, .single-post-content ol { margin: 1em 0 1em 1.5em; }
.single-post-content li { margin-bottom: 0.4em; }
.single-post-content blockquote { border-left: 3px solid var(--cream-border); padding: 0.5em 1em; margin: 1.5em 0; color: var(--ink-mid); font-style: italic; background: var(--cream); border-radius: 0 var(--radius) var(--radius) 0; }
.single-post-content img { border-radius: var(--radius); margin: 1.5em auto; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 13px;
  border: 1px solid var(--cream-border);
  color: var(--ink-mid);
  background: var(--white);
  transition: all 0.2s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--sky);
  color: white;
  border-color: var(--sky);
  text-decoration: none;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.widget {
  background: var(--cream);
  border: 0.5px solid var(--cream-border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
}

.widget-title {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink-light);
  margin-bottom: 14px;
  font-weight: 500;
  text-align: center;
}

/* Members widget */
.member-list { display: flex; flex-direction: column; gap: 10px; }

.member-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  font-weight: 500;
  flex-shrink: 0;
  border: 2px solid rgba(26,156,196,0.25);
}

.member-name {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}

.member-role {
  font-size: 11px;
  color: var(--ink-light);
}

/* Category widget */
.category-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }

.category-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-mid);
  padding: 5px 8px;
  border-radius: var(--radius);
  transition: all 0.15s;
}

.category-list li a:hover {
  background: var(--sky-light);
  color: var(--sky-dark);
  text-decoration: none;
}

.cat-count {
  font-size: 11px;
  background: var(--white);
  border: 0.5px solid var(--cream-border);
  color: var(--ink-light);
  padding: 1px 7px;
  border-radius: 10px;
}

/* About widget */
.about-widget-text {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-mid);
  text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--sky);
  padding: 1.8rem 20px;
  text-align: center;
  margin-top: 0;
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 18px;
  color: white;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.08em;
}

.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.1em;
}

/* ============================================
   RETRO DECORATIONS
   ============================================ */
.retro-divider {
  text-align: center;
  color: var(--ink-light);
  font-size: 14px;
  letter-spacing: 0.3em;
  margin: 1.5rem 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 580px) {
  .single-post { padding: 1.2rem 1rem; }
  .single-post-title { font-size: 19px; }
  .hero-copy { font-size: 17px; }
}
