/*
Theme Name: My Custom Theme
Author: Human Park
Description: 日本語環境に最適化されたレスポンシブWordPressテーマ。WP-Craftにより生成されました。
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: my-custom-theme
*/


:root {
  --primary-color: #eb6924;
  --secondary-color: #1e40af;
  --text-color: #1f2937;
  --bg-color: #ffffff;
  --base-font-size: 16px;
  --border-radius: 4px;
  --container-width: 1140px;
  --font-family: 'Inter', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  --hero-gradient: linear-gradient(135deg, #eb6924, #1e40af);
}

/* リセット & ベース */
* { box-sizing: border-box; }
body {
  font-family: var(--font-family);
  font-size: var(--base-font-size);
  color: var(--text-color);
  background-color: var(--bg-color);
  margin: 0;
  line-height: 1.8;
  letter-spacing: 0.05em;
  word-break: break-all;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-color); text-decoration: none; transition: opacity 0.3s; }
a:hover { opacity: 0.7; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー */
header.site-header {
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .header-inner { flex-direction: row; justify-content: space-between; }
}

.site-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.02em;
}

nav.main-navigation ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav.main-navigation a {
  color: var(--text-color);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ヒーローセクション */
.hero {
  background: var(--hero-gradient);
  color: #ffffff;
  padding: 5rem 1rem;
  text-align: center;
}

.hero h1 { font-size: 2.5rem; margin-bottom: 1.5rem; line-height: 1.3; }
.hero p { font-size: 1.1rem; opacity: 0.9; max-width: 700px; margin: 0 auto 2.5rem; }

@media (min-width: 768px) {
  .hero { padding: 8rem 0; }
  .hero h1 { font-size: 3.5rem; }
}

.btn-primary {
  background: #ffffff;
  color: var(--primary-color);
  padding: 1rem 2.5rem;
  border-radius: var(--border-radius);
  display: inline-block;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* メインコンテンツ */
main.site-main { padding: 4rem 0; }
.main-container { display: flex; flex-direction: column; gap: 4rem; }

@media (min-width: 1024px) {
  .main-container { flex-direction: row; }
}

.content-area { flex: 1; min-width: 0; }

/* 記事スタイル */
article { margin-bottom: 4rem; }
.entry-title { font-size: 2.25rem; margin-bottom: 1rem; color: #111; }
.entry-meta { font-size: 0.85rem; color: #888; margin-bottom: 1.5rem; }
.post-thumbnail { margin-bottom: 2rem; border-radius: var(--border-radius); overflow: hidden; }
.entry-content p { margin-bottom: 1.5rem; }

/* サイドバー */
aside.widget-area { width: 100%; }
@media (min-width: 1024px) { aside.widget-area { width: 320px; flex-shrink: 0; } }

.widget {
  margin-bottom: 3rem;
  padding: 2rem;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: var(--border-radius);
}

.widget-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--primary-color);
}

/* フッター */
footer.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 5rem 0 3rem;
  text-align: center;
}

.footer-title { color: #ffffff; font-size: 1.5rem; font-weight: 700; margin-bottom: 2rem; }
