/*
Theme Name: Oshigama Room Theme
Theme URI: http://example.com/
Author: Antigravity AI
Description: みやすく、おしゃれで、可愛いおしがま作品まとめ専用の特化型WordPressテーマ（ZIP版）
Version: 1.0.0
*/

:root {
  --primary: #FFB703;       /* 濃いめの可愛いイエロー */
  --secondary: #FFE382;     /* 柔らかいパステルイエロー */
  --accent: #8ECAE6;        /* 爽やかな水色 (おしゅし/水っぽさ) */
  --bg: #FEFCF5;            /* ほんのりイエローな優しい背景色 */
  --surface: #FFFFFF;
  --text-main: #4A4A4A;     /* 柔らかいダークグレー */
  --text-light: #999999;
  --border: #F0F0F0;
  --radius: 16px;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  background-image: linear-gradient(120deg, #FEFCF5 0%, #F5FAFE 100%);
  color: var(--text-main);
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Meiryo', sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}
a:hover {
  color: var(--accent);
  opacity: 0.8;
}

/* --- Layout --- */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.site-header {
  background: var(--surface);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  text-align: center;
  border-bottom: 3px solid var(--primary);
}
.site-title {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
}
.site-title a {
  color: var(--text-main);
}
.site-desc {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 5px;
}

/* Main Container */
.container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  gap: 30px;
  flex: 1;
}

/* Content Area */
.main-content {
  flex: 1;
  min-width: 0;
}

/* Sidebar Area */
.sidebar {
  width: 300px;
  flex-shrink: 0;
}
@media (max-width: 800px) {
  .container {
    flex-direction: column;
  }
  .sidebar { width: 100%; }
}

/* --- Archive Grid --- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.post-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(255, 183, 3, 0.15); /* イエローの影 */
}
.post-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 3px solid var(--secondary);
}
.post-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 10px 0;
  line-height: 1.5;
}
.post-card-title a {
  color: var(--text-main);
}
.post-card-excerpt {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
  flex: 1;
}
.btn-readmore {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 50px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(255, 183, 3, 0.3);
}
.btn-readmore:hover {
  background: var(--accent);
  box-shadow: 0 4px 10px rgba(142, 202, 230, 0.4);
}

/* --- Single Post --- */
.single-post-article {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  margin-bottom: 40px;
}
@media (max-width: 600px) {
  .single-post-article { padding: 20px; }
}
.post-header {
  margin-bottom: 30px;
  text-align: center;
}
.post-title {
  font-size: 26px;
  margin: 0 0 15px 0;
  line-height: 1.5;
  color: var(--text-main);
  border-bottom: 2px dashed var(--secondary);
  padding-bottom: 15px;
}
.post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.post-content {
  font-size: 16px;
  line-height: 2;
}
.post-content h2 {
  font-size: 22px;
  color: var(--primary);
  background: #FFFBF0;
  padding: 15px 20px;
  border-radius: 8px;
  border-left: 5px solid var(--primary);
  margin: 40px 0 20px 0;
}
.post-content h3 {
  font-size: 18px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 5px;
  margin: 30px 0 15px 0;
}
.post-content h4 {
  font-size: 16px;
  margin: 20px 0 10px 0;
  padding-left: 10px;
  border-left: 3px solid var(--secondary);
}
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

/* Review Box Custom Setup (If used in single posts) */
.review-box {
  background: var(--surface);
  border: 2px solid var(--accent);
  padding: 20px;
  border-radius: 12px;
  margin: 30px 0;
  box-shadow: 3px 3px 0px var(--accent);
}

/* Custom button inside single post */
.custom-btn {
  display: inline-flex;
  padding: 15px 35px;
  background: linear-gradient(135deg, var(--primary), #FF8C00);
  color: white !important;
  font-weight: bold;
  border-radius: 50px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(255, 183, 3, 0.4);
  transition: all 0.3s;
  margin: 30px 0;
}
.custom-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 183, 3, 0.5);
}

/* --- Sidebar --- */
.widget {
  background: var(--surface);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
  margin-bottom: 20px;
}
.widget-title {
  font-size: 16px;
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 10px;
}
.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.widget li {
  margin-bottom: 10px;
  border-bottom: 1px dashed #eee;
  padding-bottom: 10px;
}
.widget li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Footer */
.site-footer {
  background: var(--surface);
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
