* { box-sizing: border-box; }
body { margin: 0; font-family: "Noto Sans JP", sans-serif; background: #fff; color: #1a1a1a; font-size: 16px; line-height: 1.7; }

.mfk-topbar { background: #f0faf5; padding: 8px 16px; color: #1a1a1a; border-bottom: 1px solid #d4ede3; }
.mfk-topbar-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.mfk-topbar-brand { display: flex; align-items: center; gap: 10px; }
.mfk-topbar-logo { color: #1D9E75; font-size: 15px; font-weight: 800; letter-spacing: 0.04em; }
.mfk-topbar-sep { color: #bbb; font-size: 13px; }
.mfk-topbar-section { color: #666; font-size: 12px; font-weight: 400; }
.mfk-topbar-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: #1D9E75; text-decoration: none;
  background: #fff;
  border: 1px solid #1D9E75;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 12px; font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.mfk-topbar-link:hover { background: #1D9E75; color: #fff; text-decoration: none; }

.mfk-hero {
  background:
    linear-gradient(112deg, transparent 26%, rgba(255,255,255,0.05) 34%, transparent 42%),
    linear-gradient(112deg, transparent 56%, rgba(255,255,255,0.03) 64%, transparent 72%),
    radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(135deg, #1A9070 0%, #3DC99A 55%, #72DFBA 100%);
  background-size: 100% 100%, 100% 100%, 22px 22px, 100% 100%;
  padding: 40px 16px;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.mfk-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  pointer-events: none;
}
.mfk-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 38%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  pointer-events: none;
}
.mfk-hero-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex !important; flex-direction: row !important;
  align-items: center !important; gap: 24px !important;
  position: relative; z-index: 1;
}
.mfk-hero-inner::before {
  content: '';
  position: absolute;
  left: -30px; top: 50%;
  transform: translateY(-50%);
  width: 210px; height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.13) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
@keyframes mfk-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.mfk-hero-robot {
  height: 144px !important; width: auto !important;
  flex-shrink: 0 !important; display: block !important;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.3)) !important;
  animation: mfk-float 3.5s ease-in-out infinite !important;
  position: relative; z-index: 1;
}
.mfk-hero-text { flex: 1 !important; min-width: 0 !important; position: relative; z-index: 1; }
@media (max-width: 640px) { .mfk-hero-robot { height: 80px !important; } }
.mfk-hero-brand { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: 0.08em; color: #fff; margin-bottom: 8px; text-shadow: 0 2px 12px rgba(0,0,0,0.15); }
.mfk-hero-badge { display: inline-block; font-size: 12px; font-weight: 700; background: rgba(255,255,255,0.2); border-radius: 999px; padding: 4px 12px; margin-bottom: 10px; }
.mfk-hero-title { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); line-height: 1.4; }
.mfk-hero-desc { margin: 0; font-size: 14px; line-height: 1.8; opacity: 0.9; max-width: 760px; }

.mfk-breadcrumb { background: #f5f5f5; border-bottom: 1px solid #e5e5e5; padding: 10px max(16px, calc((100vw - 1280px) / 2 + 16px)); font-size: 14px; color: #666; }
.mfk-breadcrumb a { color: #1D9E75; text-decoration: none; }
.mfk-breadcrumb a:hover { text-decoration: underline; }
.mfk-breadcrumb-sep { margin: 0 6px; color: #999; }

.mfk-main { max-width: 1280px; margin: 0 auto; padding: 28px 16px 64px; }
.mfk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 960px) { .mfk-layout { grid-template-columns: 1fr; } }

.mfk-section-title { font-size: 22px; margin: 0 0 16px; }
.mfk-result-head { margin: 0 0 14px; font-size: 17px; color: #555; font-weight: 600; }

.mfk-post-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  background: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 10px;
}
.mfk-post-item:hover { border-color: #1D9E75; }
.mfk-post-item:hover .mfk-post-title { text-decoration: underline; }
@media (max-width: 640px) { .mfk-post-item { grid-template-columns: 1fr; } }

.mfk-post-thumb { width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #eef8f4; display: flex; align-items: center; justify-content: center; }
.mfk-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mfk-post-body { display: flex; flex-direction: column; min-height: 100%; }
.mfk-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; background: #E1F5EE; color: #0F6E56; border-radius: 4px; }
.mfk-post-body .mfk-tag { align-self: flex-start; }
.mfk-post-title { margin: 8px 0; font-size: 18px; line-height: 1.6; }
.mfk-post-excerpt { margin: 0 0 8px; font-size: 15px; color: #666; line-height: 1.7; }
.mfk-post-meta { font-size: 14px; color: #888; margin-top: auto; text-align: right; }

.mfk-article { background: #fff; border: none; border-radius: 10px; padding: 20px; }
.mfk-article-cat { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; background: #E1F5EE; color: #0F6E56; border-radius: 4px; margin-bottom: 10px; }
.mfk-article-title { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); line-height: 1.5; }
.mfk-article-date { font-size: 12px; color: #888; margin-bottom: 16px; }
.mfk-article-thumb { margin-bottom: 18px; border-radius: 8px; overflow: hidden; }
.mfk-article-thumb img { width: 100%; height: auto; display: block; }
.mfk-article-content { font-size: 18px; line-height: 2.1; }
.mfk-article-content p { margin: 0 0 1.6em; }

/* 記事内見出し */
.mfk-article-content h1,
.mfk-article-content h2,
.mfk-article-content h3,
.mfk-article-content h4 {
  display: block !important;
  font-weight: 700 !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  border-radius: 0 6px 6px 0 !important;
}
.mfk-article-content h1::before, .mfk-article-content h1::after,
.mfk-article-content h2::before, .mfk-article-content h2::after,
.mfk-article-content h3::before, .mfk-article-content h3::after,
.mfk-article-content h4::before, .mfk-article-content h4::after { display: none !important; }

/* H1 */
.mfk-article-content h1 {
  font-size: clamp(22px, 3vw, 26px) !important;
  margin: 2.6em 0 1em !important;
  padding: 6px 14px !important;
  color: #0B5C47 !important;
  background: linear-gradient(to right, #c8ede0, #eaf8f2) !important;
  border-left: 8px solid #0F6E56 !important;
}
/* H2 */
.mfk-article-content h2 {
  font-size: clamp(19px, 2.5vw, 22px) !important;
  font-weight: 700 !important;
  margin: 2.2em 0 0.9em !important;
  padding: 12px 16px !important;
  color: #fff !important;
  background:
    linear-gradient(135deg, transparent 80%, rgba(255,255,255,0.18) 80%),
    linear-gradient(to right, #1A9070, #3DC99A) !important;
  border: none !important;
  border-radius: 6px !important;
}
/* H3 */
.mfk-article-content h3 {
  font-size: 20px !important;
  font-weight: 700 !important;
  margin: 1.8em 0 0.7em !important;
  padding: 10px 14px !important;
  color: #1a1a1a !important;
  background: #edf7f3 !important;
  border: none !important;
  border-left: 5px solid #1D9E75 !important;
  border-radius: 0 4px 4px 0 !important;
}
/* H4 */
.mfk-article-content h4 {
  font-size: 18px !important;
  margin: 1.4em 0 0.6em !important;
  padding: 0 !important;
  color: #1a1a1a !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  font-weight: 600 !important;
}
.mfk-article-content h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 1.6em 0 0.6em;
  color: #1D9E75;
}
.mfk-article-content ul,
.mfk-article-content ol { margin: 0 0 1.4em 1.4em; }
.mfk-article-content li { margin-bottom: 0.4em; }
.mfk-article-content img { max-width: 100%; height: auto; border-radius: 6px; margin: 1em 0; }

.mfk-sidebar-box { background: #fff; border: none; border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.mfk-sidebar-title { margin: 0 0 10px; font-size: 17px; color: #1D9E75; font-weight: 700; border-left: 3px solid #1D9E75; padding-left: 8px; }
.mfk-search-form { display: flex; gap: 8px; }
.mfk-search-form input { width: 100%; height: 38px; border: 1px solid #d4d4d4; border-radius: 8px; padding: 0 10px; font-size: 15px; }
.mfk-search-form button { height: 38px; min-width: 64px; border: none; border-radius: 8px; padding: 0 12px; background: #1D9E75; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; flex-shrink: 0; }

.mfk-side-list { list-style: none; margin: 0; padding: 0; }
.mfk-side-list li { font-size: 15px; line-height: 1.7; border-top: 1px solid #f0f0f0; padding: 8px 0; }
.mfk-side-list li:first-child { border-top: none; padding-top: 0; }
.mfk-side-list a { color: #1a1a1a; text-decoration: none; }
.mfk-side-list a:hover { color: #1D9E75; text-decoration: underline; }
.mfk-side-list a.is-active { color: #0F6E56; font-weight: 700; }
.mfk-side-link {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.mfk-side-thumb {
  width: 88px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #eef8f4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mfk-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mfk-side-thumb-placeholder {
  font-size: 11px;
  font-weight: 600;
  color: #78a89a;
}
.mfk-side-content {
  min-width: 0;
}
.mfk-side-title {
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 4px;
  color: #1a1a1a;
}
.mfk-side-date { font-size: 13px; color: #888; }
@media (max-width: 640px) {
  .mfk-side-link { grid-template-columns: 72px minmax(0, 1fr); gap: 8px; }
  .mfk-side-thumb { width: 72px; }
}
/* カテゴリ・アーカイブ共通テーブル */
.mfk-side-list.mfk-cat-list {
  border: 1px solid #d4ede3;
  border-radius: 6px;
  overflow: hidden;
}
.mfk-side-list.mfk-cat-list > li {
  border-top: 1px solid #d4ede3 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.mfk-side-list.mfk-cat-list > li:first-child { border-top: none !important; }
.mfk-side-list.mfk-cat-list > li > a {
  display: block !important;
  padding: 9px 12px !important;
  background: #f5fbf8 !important;
  font-weight: 600 !important;
  color: #1558b0 !important;
  text-decoration: none !important;
  border: none !important;
}
.mfk-side-list.mfk-cat-list > li > a:hover {
  background: #eaf6f0 !important;
  color: #0d3d7a !important;
  text-decoration: underline !important;
}
.mfk-side-list.mfk-cat-list > li > a.is-active {
  background: #ddf2e8 !important;
  color: #0F6E56 !important;
  font-weight: 700 !important;
}

/* 子カテゴリ */
.mfk-cat-children {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #f5fbf8;
  font-weight: 600 !important;
}
.mfk-cat-children li {
  border-top: 1px solid #edf7f3 !important;
  padding: 8px 12px 8px 28px !important;
}
.mfk-cat-children li a { color: #1558b0 !important; text-decoration: none !important; }
.mfk-cat-children li a:hover { color: #0d3d7a !important; text-decoration: underline !important; }
.mfk-cat-children li a.is-active { color: #0F6E56 !important; font-weight: 700 !important; }

/* Scroll to top */
.mfk-totop {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #1D9E75;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.2s;
  z-index: 999;
}
.mfk-totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.mfk-totop:hover { background: #0F6E56; }
@media (max-width: 640px) { .mfk-totop { bottom: 20px; right: 20px; width: 42px; height: 42px; } }

/* Footer */
.mfk-footer {
  background:
    linear-gradient(112deg, transparent 26%, rgba(255,255,255,0.05) 34%, transparent 42%),
    linear-gradient(112deg, transparent 56%, rgba(255,255,255,0.03) 64%, transparent 72%),
    radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(135deg, #0B5C47 0%, #1D9E75 55%, #4DC99A 100%);
  background-size: 100% 100%, 100% 100%, 22px 22px, 100% 100%;
  color: #fff;
  padding: 56px 16px 32px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.mfk-footer::before {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  pointer-events: none;
}
.mfk-footer::after {
  content: '';
  position: absolute;
  top: -50px; right: 15%;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}
.mfk-footer-inner { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; }
.mfk-footer-brand {
  font-size: 36px; font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
  margin-bottom: 10px;
}
.mfk-footer-tagline { font-size: 13px; opacity: 0.85; margin: 0 0 28px; line-height: 1.7; }
.mfk-footer-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: #fff; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 999px;
  padding: 8px 24px;
  font-size: 13px; font-weight: 600;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.1);
  transition: background 0.2s, border-color 0.2s;
  margin-bottom: 32px;
}
.mfk-footer-link:hover { background: rgba(255,255,255,0.22); border-color: #fff; color: #fff; text-decoration: none; }
.mfk-footer-copy { font-size: 11px; opacity: 0.55; margin: 0; }

.mfk-pagination {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  margin-top: 28px !important;
  flex-wrap: wrap !important;
}
.mfk-pagination .page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 36px !important;
  height: 36px !important;
  padding: 0 6px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  color: #1a1a1a !important;
  background: #fff !important;
  border: 1px solid #d4d4d4 !important;
  box-shadow: none !important;
  transition: border-color 0.15s, color 0.15s !important;
  line-height: 1 !important;
  margin: 0 !important;
}
.mfk-pagination a.page-numbers:hover {
  border-color: #1D9E75 !important;
  color: #1D9E75 !important;
  text-decoration: none !important;
}
.mfk-pagination .page-numbers.current {
  background: #1D9E75 !important;
  color: #fff !important;
  border-color: #1D9E75 !important;
}
.mfk-pagination .page-numbers.dots {
  border: none !important;
  background: transparent !important;
  min-width: 24px !important;
  box-shadow: none !important;
}
.mfk-pagination .prev.page-numbers,
.mfk-pagination .next.page-numbers {
  font-size: 20px !important;
  color: #555 !important;
}
