/*
Theme Name: Edamame Navi Simple
Theme URI: https://example.com/
Author: Edamame Koukokusha
Description: 川西市・宝塚市の地域ポータル「えだまめナビ」向けのシンプルなWordPressテーマ。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: edamame-navi
*/

:root {
  --green: #4f8f3a;
  --green-dark: #2f5f25;
  --yellow: #f5d76e;
  --cream: #fffaf0;
  --ink: #222;
  --muted: #666;
  --line: #e6e0d4;
  --white: #fff;
  --bg: #f8f6ef;
  --radius: 18px;
  --max: 1080px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .8; }
img { max-width: 100%; height: auto; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.site-header {
  background: rgba(255,250,240,.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.logo { font-weight: 800; font-size: 24px; color: var(--green-dark); letter-spacing: .03em; }
.logo span { color: var(--green); }
.site-nav ul { display: flex; list-style: none; gap: 18px; padding: 0; margin: 0; font-size: 14px; }
.nav-toggle { display:none; border:1px solid var(--line); background:var(--white); border-radius:999px; padding:8px 12px; }

.hero { padding: 72px 0 52px; background: linear-gradient(135deg, #fffaf0 0%, #eef7e8 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display:grid; grid-template-columns: 1.2fr .8fr; gap: 42px; align-items: center; }
.badge { display:inline-block; padding:6px 12px; border-radius:999px; background:var(--yellow); font-size:13px; font-weight:700; margin-bottom:16px; }
h1 { font-size: clamp(32px, 5vw, 54px); line-height:1.25; margin:0 0 18px; }
.lead { color: var(--muted); font-size: 17px; margin: 0 0 28px; }
.btn-row { display:flex; gap:12px; flex-wrap:wrap; }
.btn { display:inline-block; padding: 12px 18px; border-radius:999px; font-weight:700; border:1px solid var(--green); }
.btn-primary { background:var(--green); color:white; }
.btn-secondary { background:white; color:var(--green-dark); }
.hero-card { background:white; border:1px solid var(--line); border-radius:var(--radius); padding:26px; box-shadow: 0 10px 24px rgba(0,0,0,.05); }
.hero-card h2 { margin-top:0; font-size:22px; }
.hero-card ul { padding-left: 1.2em; margin-bottom:0; }

.section { padding: 56px 0; }
.section-title { font-size: 28px; margin: 0 0 10px; }
.section-desc { color: var(--muted); margin: 0 0 26px; }
.grid-3 { display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; }
.grid-2 { display:grid; grid-template-columns: repeat(2, 1fr); gap:18px; }
.card { background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:22px; }
.card h3 { margin-top:0; font-size:20px; }
.card p { color: var(--muted); margin-bottom:0; }
.post-card { padding:0; overflow:hidden; }
.post-card-body { padding:20px; }
.post-meta { color:var(--muted); font-size:13px; margin-bottom:8px; }
.post-card h3 { margin:0 0 8px; }
.thumbnail-placeholder { aspect-ratio: 16/9; background: linear-gradient(135deg,#eaf4e4,#fff0b8); display:flex; align-items:center; justify-content:center; color:var(--green-dark); font-weight:700; }

.content-layout { display:grid; grid-template-columns: 1fr 300px; gap:28px; padding: 48px 0; }
.main-content, .sidebar-widget { background:white; border:1px solid var(--line); border-radius:var(--radius); padding:26px; }
.entry-title { font-size: clamp(28px, 4vw, 42px); line-height:1.3; margin-top:0; }
.entry-content h2 { border-left: 5px solid var(--green); padding-left: 12px; margin-top: 36px; }
.entry-content a { color: var(--green-dark); text-decoration: underline; }
.sidebar { display:flex; flex-direction:column; gap:18px; }
.sidebar-widget h2, .sidebar-widget h3 { margin-top:0; font-size:18px; }

.shop-info { list-style:none; padding:0; margin:18px 0 0; }
.shop-info li { border-top:1px solid var(--line); padding:10px 0; }
.shop-info strong { display:inline-block; min-width:82px; color:var(--green-dark); }

.pagination { display:flex; gap:10px; justify-content:center; margin-top:30px; }
.page-numbers { padding:8px 12px; background:white; border:1px solid var(--line); border-radius:999px; }
.page-numbers.current { background:var(--green); color:white; border-color:var(--green); }

.site-footer { background:var(--green-dark); color:white; padding:34px 0; margin-top: 48px; }
.footer-inner { display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.footer-inner p { margin:0; opacity:.9; }

@media (max-width: 780px) {
  .header-inner { min-height:64px; }
  .nav-toggle { display:block; }
  .site-nav { display:none; position:absolute; left:0; right:0; top:64px; background:var(--cream); border-bottom:1px solid var(--line); padding:16px; }
  .site-nav.is-open { display:block; }
  .site-nav ul { flex-direction:column; width:min(var(--max), calc(100% - 32px)); margin:0 auto; }
  .hero { padding:48px 0 36px; }
  .hero-grid, .grid-3, .grid-2, .content-layout { grid-template-columns:1fr; }
}
