/*
Theme Name: 補助金採択ナビ
Theme URI: https://hojokin-navi.co.jp
Author: 採択ナビ行政書士事務所
Author URI: https://hojokin-navi.co.jp
Description: 補助金採択ナビ(採択ナビ行政書士事務所 運営予定)専用のオリジナルテーマ。情報メディア型、LINE登録誘導に最適化。
Version: 1.1.0
Requires at least: 5.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hojokin-saitaku-navi
Tags: business, blog, custom-menu, translation-ready
*/

:root {
  --primary: #1E3A8A;
  --primary-dark: #172554;
  --accent: #06B6D4;
  --gold: #F59E0B;
  --line: #06c755;
  --text: #1F2937;
  --text-light: #6B7280;
  --bg: #FFFFFF;
  --bg-gray: #F9FAFB;
  --border: #E5E7EB;
  --success: #10B981;
  --danger: #EF4444;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background: #fff;
}

a { color: var(--accent); }
img { max-width: 100%; height: auto; }

/* ヘッダー */
.hn-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.hn-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  line-height: 1.2;
}

.hn-logo-small {
  font-size: 0.75rem;
  color: var(--text-light);
  display: block;
  margin-top: 2px;
  font-weight: 400;
}

.hn-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.hn-nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hn-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.hn-nav a:hover { color: var(--accent); }

/* ファーストビュー */
.hn-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
}

.hn-hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #fff;
}

.hn-hero-sub {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.hn-hero-badges {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 32px auto;
}

.hn-badge {
  background: rgba(255,255,255,0.1);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
}

.hn-badge strong {
  display: block;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.hn-badge small {
  font-size: 0.85rem;
  opacity: 0.85;
}

.hn-hero-note {
  margin-top: 32px;
  padding: 16px 24px;
  background: rgba(6, 182, 212, 0.15);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.95rem;
}

/* セクション共通 */
.hn-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.hn-section-gray {
  background: var(--bg-gray);
  max-width: 100%;
}

.hn-section-gray > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.hn-section h2 {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 48px;
  color: var(--primary);
}

.hn-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* 課題共感 */
.hn-issues {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.hn-issue-card {
  background: #fff;
  padding: 32px 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.hn-issue-card .num {
  display: inline-block;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  line-height: 48px;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

/* 選ばれる理由 */
.hn-reasons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.hn-reason-card {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  border-left: 6px solid var(--accent);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.hn-reason-card .label {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.hn-reason-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

/* サービス */
.hn-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.hn-service-card {
  background: #fff;
  padding: 40px 32px;
  border-radius: 20px;
  border: 2px solid var(--border);
  transition: all 0.3s;
  text-align: center;
}

.hn-service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.hn-service-card .icon { font-size: 3rem; margin-bottom: 16px; }
.hn-service-card h3 { font-size: 1.4rem; color: var(--primary); margin-bottom: 16px; }
.hn-service-card .amount {
  font-size: 2rem;
  color: var(--gold);
  font-weight: 900;
  margin: 16px 0;
}

.hn-service-card .link {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

/* 比較表 */
.hn-comparison {
  max-width: 1000px;
  margin: 0 auto;
  overflow-x: auto;
}

.hn-comparison table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.hn-comparison th {
  background: var(--primary);
  color: #fff;
  padding: 16px;
  text-align: center;
  font-weight: 700;
}

.hn-comparison th.us { background: var(--gold); }

.hn-comparison td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.hn-comparison td:first-child {
  text-align: left;
  font-weight: 600;
  background: var(--bg-gray);
}

.hn-comparison td.us {
  background: rgba(245, 158, 11, 0.1);
  font-weight: 700;
  color: var(--primary);
}

/* 料金 */
.hn-price-table {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.hn-price-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 32px;
  border: 2px solid var(--border);
  text-align: center;
}

.hn-price-card.featured {
  border-color: var(--gold);
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.hn-price-card .plan-name {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
}

.hn-price-card .price {
  font-size: 2.2rem;
  color: var(--gold);
  font-weight: 900;
  margin: 16px 0;
}

.hn-price-card ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  text-align: left;
}

.hn-price-card li {
  padding: 8px 0 8px 28px;
  position: relative;
}

.hn-price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 900;
}

/* FAQ */
.hn-faq { max-width: 900px; margin: 0 auto; }

.hn-faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.hn-faq-q {
  padding: 20px 24px;
  background: var(--bg-gray);
  font-weight: 700;
  cursor: pointer;
  position: relative;
  padding-right: 60px;
}

.hn-faq-q::before {
  content: "Q.";
  color: var(--accent);
  margin-right: 8px;
  font-weight: 900;
}

.hn-faq-q::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--text-light);
}

.hn-faq-item.open .hn-faq-q::after { content: "−"; }

.hn-faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
}

.hn-faq-item.open .hn-faq-a {
  padding: 16px 24px 24px;
  max-height: 500px;
}

.hn-faq-a::before {
  content: "A.";
  color: var(--gold);
  font-weight: 900;
  margin-right: 8px;
}

/* 最終CTA */
.hn-final-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 80px 32px;
  text-align: center;
}

.hn-final-cta h2 {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.hn-final-cta h2::after { display: none; }

/* フッター */
.hn-footer {
  background: var(--primary-dark);
  color: #fff;
  padding: 48px 32px 24px;
  text-align: center;
}

.hn-footer-logo { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }

.hn-footer-small {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 24px;
}

.hn-footer a {
  color: rgba(255,255,255,0.8);
  margin: 0 12px;
  text-decoration: none;
}

.hn-footer a:hover { color: var(--gold); }

/* 認定バッジ */
.hn-certifications {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px 0;
}

.hn-cert-badge {
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 16px 24px;
  text-align: center;
}

.hn-cert-badge .icon { font-size: 1.5rem; margin-bottom: 4px; }
.hn-cert-badge strong { display: block; color: var(--primary); font-size: 0.95rem; }
.hn-cert-badge small { color: var(--text-light); font-size: 0.8rem; }

/* プロフィール */
.hn-profile {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: center;
}

.hn-profile-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-gray);
  border-radius: 50%;
}

.hn-profile h3 { font-size: 1.6rem; color: var(--primary); margin-bottom: 12px; }

/* 動画 */
.hn-video { max-width: 900px; margin: 0 auto; }
.hn-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 16px;
  overflow: hidden;
}
.hn-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ブログ */
.hn-post-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.hn-post-item {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.hn-post-item:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.hn-post-item h2 {
  font-size: 1.3rem;
  margin: 0 0 8px;
}

.hn-post-item h2 a {
  color: var(--primary);
  text-decoration: none;
}

.hn-post-item .meta {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.hn-post-single {
  max-width: 800px;
  margin: 40px auto;
  padding: 40px 24px;
}

.hn-post-single h1 {
  color: var(--primary);
  font-size: 2rem;
  line-height: 1.4;
  margin-bottom: 16px;
}

.hn-post-single .meta {
  color: var(--text-light);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.hn-post-single h2 {
  color: var(--primary);
  margin-top: 40px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--accent);
}

.hn-post-single h3 {
  color: var(--primary-dark);
  margin-top: 32px;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .hn-header { padding: 10px 16px; }
  .hn-logo { font-size: 1.1rem; }
  .hn-nav ul { display: none; }

  .hn-hero { padding: 48px 16px; }
  .hn-hero h1 { font-size: 1.6rem; }
  .hn-hero-sub { font-size: 0.95rem; }
  .hn-hero-badges { grid-template-columns: repeat(2, 1fr); }

  .hn-section { padding: 48px 16px; }
  .hn-section h2 { font-size: 1.5rem; }

  .hn-issues { grid-template-columns: 1fr; }
  .hn-reasons { grid-template-columns: 1fr; }
  .hn-services { grid-template-columns: 1fr; }
  .hn-price-table { grid-template-columns: 1fr; }
  .hn-price-card.featured { transform: none; }
  .hn-profile { grid-template-columns: 1fr; text-align: center; }

  body { padding-bottom: 60px; }
}
