/*
Theme Name: Petite Graine WP
Theme URI: 
Author: Manus AI
Author URI: 
Description: ヴァイオリン教室のウェブサイトを再現したWordPressテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: petite-graine-wp
Domain Path: /languages
*/

/* Import base styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600&display=block');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&display=swap');

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

html, body {
  height: 100%;
  width: 100%;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: #FDFCF9;
  color: #333;
  line-height: 1.6;
}

a {
  color: #7C9DB5;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  background-color: #7C9DB5;
  background-color: rgba(124, 157, 181, 0.95);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 1.5rem;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 3rem;
  width: auto;
}

.logo-text {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  color: white;
}

.menu {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  background-color: #7C9DB5;
  width: 100%;
  padding: 1rem;
  margin-top: 1rem;
}

.menu a {
  color: white;
  transition: opacity 0.3s ease;
}

.menu a:hover {
  opacity: 0.8;
}

@media (min-width: 1024px) {
  .menu {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    width: auto;
    padding: 0;
    margin-top: 0;
    background-color: transparent;
  }
}

.menu-button {
  display: block;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 1024px) {
  .menu-button {
    display: none;
  }
}

/* Main content */
main {
  margin-top: 5rem;
  min-height: calc(100vh - 5rem);
}

/* Footer */
footer {
  background-color: #4A5D6A;
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
  margin-top: 3rem;
}

footer p {
  margin: 1rem 0;
}

/* Archive/Blog list */
.archive-container {
  padding: 2rem 1.5rem;
}

.archive-header {
  text-align: left;
  margin-bottom: 3rem;
  padding-top: 2rem;
}

.archive-header h1 {
  font-size: 2.25rem;
  color: #7C9DB5;
  margin-bottom: 1rem;
}

.archive-header p {
  color: #666;
  font-size: 1rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.post-card {
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.post-card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

.post-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.post-card-content {
  padding: 1.5rem;
}

.post-date {
  color: #999;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.post-card h3 {
  color: #333;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.post-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Single post */
.single-post {
  padding: 2rem 1.5rem;
}

.post-header {
  max-width: 800px;
  margin: 0 auto 2rem;
  padding-top: 2rem;
}

.post-header h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 1rem;
}

.post-meta {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

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

.post-body {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.post-body p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: #555;
}

.post-body img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 0.5rem;
}

.sidebar {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.sidebar h3 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #7C9DB5;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 0.75rem;
}

.sidebar a {
  color: #7C9DB5;
  font-size: 0.95rem;
}

.sidebar a:hover {
  text-decoration: underline;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.pagination a,
.pagination span {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
  color: #7C9DB5;
  text-decoration: none;
}

.pagination a:hover {
  background-color: #f0f0f0;
}

.pagination .current {
  background-color: #7C9DB5;
  color: white;
  border-color: #7C9DB5;
}
