/*
Theme Name: HYUGA SAITAMA
Theme URI: https://hyuga.saitama.jp/
Author: ISAO HYUGA
Description: 狩猟・クレー射撃・バイオリン・アマチュア無線・電子工作の個人ブログ向けWordPressテーマ
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: hyuga-saitama
*/

:root {
  --bg: #10140f;
  --bg2: #182015;
  --card: #1d271a;
  --card2: #26331f;
  --text: #f6f3e8;
  --muted: #c9c3ad;
  --accent: #f28c28;
  --accent2: #ffb15f;
  --line: rgba(255,255,255,.12);
  --shadow: 0 14px 35px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #2b351f 0, var(--bg) 36%, #0b0d0a 100%);
  line-height: 1.85;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(16,20,15,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner, .container, .footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.site-branding { min-width: 220px; }
.site-title {
  margin: 0;
  font-size: 25px;
  letter-spacing: .08em;
  line-height: 1.2;
}
.site-title a { color: var(--text); }
.site-description {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.main-navigation ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  justify-content: flex-end;
}
.main-navigation a {
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
}
.main-navigation a:hover { color: var(--accent); text-decoration: none; }

.hero {
  padding: 86px 20px 74px;
  text-align: center;
  background:
    linear-gradient(rgba(16,20,15,.45), rgba(16,20,15,.9)),
    radial-gradient(circle at top, #3b4d2b, #10140f 65%);
  border-bottom: 1px solid var(--line);
}
.hero-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid rgba(242,140,40,.55);
  border-radius: 999px;
  color: var(--accent2);
  font-weight: 700;
  letter-spacing: .08em;
  font-size: 13px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 68px);
  line-height: 1.08;
  letter-spacing: .07em;
}
.hero p {
  max-width: 760px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 18px;
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #17120b;
  font-weight: 800;
  box-shadow: var(--shadow);
}
.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.container { padding-top: 42px; padding-bottom: 52px; }
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 30px;
}
.no-sidebar { max-width: 900px; margin: 0 auto; }

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: -26px auto 42px;
  position: relative;
  z-index: 2;
}
.hobby-card {
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 14px;
  box-shadow: var(--shadow);
  text-align: center;
}
.hobby-icon { font-size: 30px; display: block; margin-bottom: 7px; }
.hobby-card strong { display:block; color: var(--text); }
.hobby-card span { color: var(--muted); font-size: 12px; }

.card, article.post-card, .widget, .page-content, .single-content {
  background: rgba(29,39,26,.88);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.post-card { margin-bottom: 22px; }
.entry-title, .page-title {
  margin: 0 0 10px;
  line-height: 1.35;
  font-size: clamp(24px, 4vw, 36px);
}
.entry-title a { color: var(--text); }
.entry-meta, .entry-footer, .post-date {
  color: var(--muted);
  font-size: 14px;
}
.entry-content { margin-top: 18px; }
.entry-content p { margin: 0 0 1.2em; }
.read-more {
  display: inline-block;
  margin-top: 10px;
  font-weight: 800;
}

.sidebar { display: flex; flex-direction: column; gap: 18px; }
.widget h2, .widget-title {
  margin: 0 0 12px;
  font-size: 18px;
  border-left: 4px solid var(--accent);
  padding-left: 10px;
}
.widget ul { margin: 0; padding-left: 18px; }
.widget li { margin: 7px 0; }
.search-form { display:flex; gap:8px; }
.search-field {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0f130e;
  color: var(--text);
}
.search-submit {
  border:0;
  border-radius:8px;
  background: var(--accent);
  color:#17120b;
  font-weight:800;
  padding: 0 14px;
}

.wp-block-button__link { background: var(--accent); color: #17120b; font-weight: 800; }
.wp-block-quote { border-left: 4px solid var(--accent); padding-left: 18px; color: var(--muted); }
.wp-block-image img { border-radius: 14px; }

.nav-links, .post-navigation {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #0b0d0a;
  color: var(--muted);
}
.footer-inner {
  padding-top: 28px;
  padding-bottom: 28px;
  text-align: center;
}
.footer-inner strong { color: var(--text); }

@media (max-width: 900px) {
  .header-inner { display:block; padding-top:16px; padding-bottom:16px; }
  .main-navigation ul { justify-content:flex-start; margin-top:12px; }
  .layout { grid-template-columns: 1fr; }
  .hobby-grid { grid-template-columns: repeat(2, 1fr); margin-top: 22px; }
}
@media (max-width: 520px) {
  .hero { padding: 58px 18px; }
  .hobby-grid { grid-template-columns: 1fr; }
  .card, article.post-card, .widget, .page-content, .single-content { padding: 18px; border-radius: 14px; }
}
