@charset "UTF-8";
/* 補助金マガジン 静的サイト版 - style.css
   元WordPress(Cocoon テーマ)のデザイントークンを再現 */

:root {
  --text-color: #333;
  --pallid-text-color: #777;
  --x-pallid-text-color: #999;
  --basic-border-color: #ccc;
  --thin-color: #ddd;
  --x-thin-color: #eee;
  --xx-thin-color: #f5f6f7;
  --xxx-thin-color: #fafbfc;
  --white-color: #ffffff;
  --black-color: #333333;
  --link-color: #1967d2;
  --link-hover-color: #e53900;
  --body-bg: #f4f5f7;
  --basic-border-radius: 4px;
  --badge-border-radius: 2px;
  --middle-border-radius: 8px;
  --accent-color: #1e63e9;
  --accent-hover-color: #144fc0;
  --default-font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --default-text-size: 16px;
  --wrap-width: 1256px;
  --main-width: 860px;
  --sidebar-width: 376px;
  --nav-item-width: 176px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--default-font);
  font-size: var(--default-text-size);
  line-height: 1.8;
  color: var(--text-color);
  background: var(--body-bg);
}
a { color: var(--link-color); text-decoration: none; }
a:hover { color: var(--link-hover-color); }
img { max-width: 100%; height: auto; }

.wrap {
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white-color);
  border-bottom: 1px solid var(--x-thin-color);
}
.site-header-inner {
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: 24px 16px 0;
  text-align: center;
}
.site-tagline {
  font-size: 0.9em;
  color: var(--pallid-text-color);
  margin: 0 0 16px;
}
.site-logo {
  display: inline-block;
  margin-bottom: 16px;
}
.site-logo img { max-height: 160px; width: auto; }
.site-title {
  font-size: 23px;
  font-weight: normal;
  color: var(--text-color);
  margin: 0;
}
.site-title a { color: inherit; }

/* ---------- Global nav ---------- */
.global-nav {
  border-top: 1px solid var(--x-thin-color);
  background: var(--white-color);
}
.global-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.global-nav li {
  width: var(--nav-item-width);
  text-align: center;
}
.global-nav a {
  display: block;
  padding: 18px 8px;
  font-size: 14px;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.global-nav a:hover { background: #f5f8fa; color: var(--text-color); }
.global-nav .menu-highlight-btn a {
  background-color: var(--accent-color) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 10px 24px !important;
  margin: 8px;
  display: inline-block;
}
.global-nav .menu-highlight-btn a:hover {
  background-color: var(--accent-hover-color) !important;
}

/* ---------- Layout ---------- */
.content-wrap {
  max-width: var(--wrap-width);
  margin: 24px auto;
  padding: 0 16px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.main-col {
  flex: 1 1 var(--main-width);
  background: var(--white-color);
  padding: 36px 29px;
  border-radius: var(--basic-border-radius);
  min-width: 0;
}
.sidebar {
  flex: 0 0 var(--sidebar-width);
  width: var(--sidebar-width);
}
@media (max-width: 960px) {
  .content-wrap { flex-direction: column; }
  .sidebar { width: 100%; }
}

/* ---------- Article cards (listing) ---------- */
.entry-card-list { list-style: none; margin: 0; padding: 0; }
.entry-card {
  display: flex;
  gap: 16px;
  padding: 1.5em 0;
  border-bottom: 1px solid var(--x-thin-color);
}
.entry-card:hover { background: #f5f8fa; }
.entry-card-thumb { flex: 0 0 160px; width: 160px; position: relative; }
.entry-card-thumb img { border-radius: var(--basic-border-radius); aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.cat-label {
  display: inline-block;
  background: var(--text-color); color: #fff;
  font-size: 11px; padding: 2px 7px; border-radius: var(--badge-border-radius);
  margin-bottom: 6px;
}
.entry-card-content { flex: 1; min-width: 0; }
.entry-card-content > a { display: block; }
.entry-card-title { font-size: 16px; font-weight: bold; line-height: 1.6; margin: 0 0 6px; }
.entry-card-snippet { font-size: 0.8em; line-height: 1.3; color: var(--pallid-text-color); margin: 0 0 6px; }
.entry-card-meta { font-size: 0.8em; color: var(--x-pallid-text-color); }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin: 24px 0; }
.pagination a, .pagination span {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--thin-color);
  border-radius: var(--basic-border-radius);
}
.pagination .current { background: var(--xx-thin-color); }

/* ---------- Single article ---------- */
.article-title { font-size: 22px; line-height: 1.3; margin: 0 0 16px; }
.article-meta { color: var(--x-pallid-text-color); font-size: 0.85em; margin-bottom: 24px; }
.article-body { line-height: 1.8; }
.article-body h2 {
  font-size: 21px; background: var(--xx-thin-color); padding: 16px 20px;
  border-radius: var(--badge-border-radius); margin: 2em 0 1em;
}
.article-body h3 { font-size: 19px; border-left: 7px solid #888; padding-left: 12px; margin: 1.8em 0 0.8em; }
.article-body h4, .article-body h5, .article-body h6 { font-size: 17px; margin: 1.5em 0 0.6em; }
.article-body p { margin: 0 0 1.2em; }
.cat-link {
  display: inline-block; background: var(--text-color); color: #fff;
  font-size: 12px; padding: 2px 8px; border-radius: var(--badge-border-radius);
}
.supervisor-note {
  font-size: 0.9em; color: #666; border-top: 1px solid var(--x-thin-color);
  padding-top: 12px; margin-top: 24px;
}

/* ---------- Sidebar widgets ---------- */
.widget { background: var(--white-color); border-radius: var(--basic-border-radius); padding: 1.5em; margin-bottom: 24px; }
.widget-title { font-size: 15px; font-weight: bold; margin: 0 0 1em; border-bottom: 2px solid var(--xx-thin-color); padding-bottom: 0.5em; }
.search-box { display: flex; }
.search-box input[type="text"] {
  flex: 1; padding: 10px 12px; border: 1px solid var(--thin-color);
  border-radius: var(--basic-border-radius) 0 0 var(--basic-border-radius);
}
.search-box button {
  border: none; background: var(--accent-color); color: #fff; padding: 0 16px;
  border-radius: 0 var(--basic-border-radius) var(--basic-border-radius) 0; cursor: pointer;
}
.ad-widget { text-align: center; }
.ad-widget img { border-radius: var(--basic-border-radius); display: block; width: 100%; }
.ad-widget .sponsor-label { font-size: 0.7em; color: var(--x-pallid-text-color); display: block; margin-bottom: 6px; }
.ad-placeholder {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 300/538; background: var(--xx-thin-color);
  border: 1px dashed var(--thin-color); border-radius: var(--basic-border-radius);
  color: var(--x-pallid-text-color); font-size: 0.85em; text-align: center; padding: 16px;
}
.category-list { list-style: none; margin: 0; padding: 0; }
.category-list li { border-bottom: 1px solid var(--x-thin-color); }
.category-list a { display: block; padding: 10px 4px; font-size: 14px; }
.recent-list { list-style: none; margin: 0; padding: 0; }
.recent-list li { padding: 10px 0; border-bottom: 1px solid var(--x-thin-color); }
.recent-list a { font-size: 14px; line-height: 1.5; }
.recent-list .meta { font-size: 0.8em; color: var(--x-pallid-text-color); }

/* ---------- Contact form (コンプラガイドと統一・3ステップ) ---------- */
.cf-card {
  background: var(--white-color); border-radius: var(--middle-border-radius);
  padding: 28px 30px; margin: 24px 0; border: 1px solid var(--x-thin-color);
}
.cf-title { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 0 0 10px; }
.cf-bar { display: inline-block; width: 5px; height: 20px; background: #2f7d74; border-radius: 2px; }
.cf-lead { color: var(--pallid-text-color); font-size: 14px; margin: 0 0 20px; }
.cf-steps { display: flex; gap: 8px; margin-bottom: 24px; }
.cf-step {
  flex: 1; text-align: center; padding: 12px 8px; border-radius: var(--basic-border-radius);
  background: #eef0f3; color: var(--pallid-text-color); font-size: 14px; font-weight: bold;
}
.cf-step.is-active { background: #16284a; color: #fff; }
.cf-step.is-done { background: #d9e4e2; color: #2f7d74; }
.cf-field { margin-bottom: 20px; }
.cf-label { display: block; font-weight: bold; font-size: 14px; margin-bottom: 8px; }
.cf-badge {
  display: inline-block; font-size: 11px; font-weight: bold; border-radius: 3px;
  padding: 2px 8px; vertical-align: 1px; margin-left: 4px;
}
.cf-badge-required { background: #e2574c; color: #fff; }
.cf-badge-optional { background: #eef0f3; color: #777; }
.cf-field input[type="text"], .cf-field input[type="email"], .cf-field select, .cf-field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 14px;
  border: 1px solid var(--thin-color); border-radius: var(--basic-border-radius);
}
.cf-help { color: var(--x-pallid-text-color); font-size: 12.5px; margin: 6px 0 0; }
.cf-error { color: #c0392b; font-size: 13px; min-height: 1em; margin: 0 0 8px; }
.cf-actions { margin: 20px 0 0; }
.cf-btn {
  border: none; font-size: 15px; font-weight: bold; padding: 12px 28px;
  border-radius: var(--basic-border-radius); cursor: pointer; margin-right: 8px;
}
.cf-btn-primary { background: #16284a; color: #fff; }
.cf-btn-primary:hover { background: #0e1c38; }
.cf-btn-primary:disabled { opacity: 0.6; cursor: wait; }
.cf-btn-ghost { background: #eef0f3; color: var(--text-color); }
.cf-btn-ghost:hover { background: #e2e5ea; }
.cf-confirm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cf-confirm-table th, .cf-confirm-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--x-thin-color); vertical-align: top; }
.cf-confirm-table th { width: 160px; color: var(--pallid-text-color); font-weight: normal; }
.cf-confirm-table td.cf-pre { white-space: pre-wrap; }
.cf-status { color: var(--pallid-text-color); font-size: 13px; min-height: 1em; margin: 16px 0 0; }
.cf-complete { text-align: center; padding: 24px 0; font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white-color); border-top: 1px solid var(--x-thin-color); margin-top: 24px; }
.site-footer-inner { max-width: var(--wrap-width); margin: 0 auto; padding: 32px 16px; text-align: center; }
.footer-links { list-style: none; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; padding: 0; margin: 0 0 16px; font-size: 14px; }
.copyright { font-size: 0.8em; color: var(--x-pallid-text-color); }
