/*
Theme Name: Kemust
Theme URI: https://example.com/kemust
Author: Your Name
Author URI: https://example.com
Description: アウトドアとフィッシングに特化したWordPressテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kemust
*/

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  background-color: #2c5530;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

/* Navigation */
.main-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.menu-item a {
  color: #fff;
  font-weight: 500;
  transition: color 0.2s;
}

.menu-item a:hover {
  color: #fcd34d;
}

/* Hero Section */
.hero {
  background-color: #2c5530;
  color: #fff;
  padding: 4rem 0;
  text-align: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4rem;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.1));
}

/* Search Form */
.search-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-field {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  font-size: 1rem;
}

.search-field:focus {
  outline: none;
}

.search-submit {
  background-color: #fcd34d;
  color: #1a1a1a;
  padding: 0.75rem 1.5rem;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-submit:hover {
  background-color: #fbbf24;
}

/* Categories */
.category-card {
  background: #fff;
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.category-icon {
  font-size: 2rem;
  color: #2c5530;
  margin-bottom: 1rem;
}

/* Posts */
.post-card {
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.post-content {
  padding: 1.5rem;
}

.post-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.5rem 0;
  line-height: 1.4;
}

.post-excerpt {
  color: #666;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background-color: #2c5530;
  color: #fff;
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  color: #fff;
  transition: color 0.2s;
}

.social-link:hover {
  color: #fcd34d;
}

/* Responsive */
@media (max-width: 768px) {
  .main-navigation {
    flex-direction: column;
    height: auto;
    padding: 1rem 0;
  }

  .menu {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 1rem 0;
  }

  .post-card {
    flex-direction: column;
  }

  .post-thumbnail {
    width: 100%;
  }
}

/* WordPress Core */
.aligncenter {
  display: block;
  margin: 0.5rem auto;
}

.alignleft {
  float: left;
  margin: 0.5rem 1rem 0.5rem 0;
}

.alignright {
  float: right;
  margin: 0.5rem 0 0.5rem 1rem;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: #666;
  text-align: center;
  margin-top: 0.5rem;
}