/* ============================
   マネタイズ研究室 - Global
   ============================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700;900&display=swap');

:root {
  --teal: #61b1c8;
  --teal-dark: #4a98ae;
  --teal-light: #eaf5f9;
  --bg: #ffffff;
  --bg-alt: #f7f9fb;
  --text: #3f3b3f;
  --muted: #777;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 2;
  color: var(--text);
  background: var(--bg);
  letter-spacing: 0.02em;
  word-break: break-all;
  overflow-wrap: break-word;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================
   Header
   ============================ */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--teal);
  padding: 0 20px;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.site-logo {
  display: flex;
  flex-direction: column;
}
.site-logo .name {
  font-size: 22px;
  font-weight: 900;
  color: var(--teal);
  letter-spacing: .5px;
}
.site-logo .tagline {
  font-size: 11px;
  color: var(--muted);
}
.site-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}
.site-nav a {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.site-nav a:hover { color: var(--teal); text-decoration: none; }

/* ============================
   Wrapper / Layout
   ============================ */
.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px 60px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: start;
}

/* ============================
   Article
   ============================ */
.article-header { margin-bottom: 24px; }

.article-category {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
  letter-spacing: .5px;
}

.article-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--text);
}

.article-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.article-meta span { display: flex; align-items: center; gap: 4px; }

/* Eye-catch banner */
.eyecatch {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--teal) 0%, #3a8ca3 60%, #2e7490 100%);
  border-radius: var(--radius);
  margin: 16px 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ============================
   TOC
   ============================ */
.toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 36px;
}
.toc-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.toc ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.toc li { font-size: 13px; }
.toc a { color: var(--teal); }

/* ============================
   Headings
   ============================ */
.article-body h2 {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  padding: 10px 16px;
  margin: 40px 0 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--teal-dark);
  margin: 28px 0 10px;
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--teal);
}
.article-body p { margin-bottom: 24px; font-size: 15px; line-height: 2.1; }
.article-body p + p { margin-top: 0; }

/* ============================
   Merit / Demerit Cards
   ============================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 16px 0 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.card-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
}
.card-body strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}
.card-body span { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ============================
   Numbered Steps
   ============================ */
.steps { counter-reset: step; margin: 16px 0 24px; display: flex; flex-direction: column; gap: 16px; }
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-num {
  counter-increment: step;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-body strong { display: block; font-size: 14px; margin-bottom: 4px; }
.step-body p { font-size: 13px; color: var(--muted); margin: 0; }

/* ============================
   Tips List
   ============================ */
.tips-list { list-style: none; margin: 12px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.tips-list li {
  padding-left: 24px;
  position: relative;
  font-size: 14px;
}
.tips-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* ============================
   CTA Button
   ============================ */
.cta-box {
  background: var(--teal-light);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin: 28px 0;
}
.cta-box p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.btn-cta {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: var(--radius);
  transition: background .2s;
  text-decoration: none;
  letter-spacing: .5px;
}
.btn-cta:hover { background: var(--teal-dark); text-decoration: none; }
.btn-cta.large { font-size: 17px; padding: 16px 48px; }

/* ============================
   Summary Box
   ============================ */
.summary-box {
  background: var(--bg-alt);
  border-left: 4px solid var(--teal);
  padding: 18px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  font-size: 14px;
}

/* ============================
   Sidebar
   ============================ */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.widget-title {
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
}
.widget-body { padding: 16px; }

/* Profile */
.profile-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), #3a8ca3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 10px;
}
.profile-name { text-align: center; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.profile-desc { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.6; }

/* Related */
.related-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.related-list li { font-size: 13px; }
.related-list a { color: var(--text); }
.related-list a:hover { color: var(--teal); text-decoration: none; }

/* Sidebar CTA */
.sidebar-cta-banner {
  background: linear-gradient(135deg, var(--teal) 0%, #3a8ca3 100%);
  padding: 20px;
  text-align: center;
  color: #fff;
}
.sidebar-cta-banner p { font-size: 12px; margin-bottom: 10px; line-height: 1.6; }
.btn-sidebar-cta {
  display: inline-block;
  background: #fff;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius);
  text-decoration: none;
}
.btn-sidebar-cta:hover { opacity: .9; text-decoration: none; }

/* ============================
   Footer
   ============================ */
.site-footer {
  background: #2b2b2b;
  color: #aaa;
  text-align: center;
  font-size: 12px;
  padding: 20px;
}
.site-footer a { color: #ccc; }

/* ============================
   Homepage - Post Cards
   ============================ */
.home-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px 60px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: start;
}

.section-heading {
  font-size: 16px;
  font-weight: 900;
  color: var(--text);
  border-left: 4px solid var(--teal);
  padding: 6px 12px;
  background: var(--teal-light);
  margin-bottom: 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.post-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); text-decoration: none; }

.post-card-thumb {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #fff;
  font-weight: 900;
  letter-spacing: 1px;
}
.thumb-affiliate { background: linear-gradient(135deg, #61b1c8 0%, #3a8ca3 100%); }
.thumb-seo       { background: linear-gradient(135deg, #f9a825 0%, #e65100 100%); }
.thumb-sns       { background: linear-gradient(135deg, #7c4dff 0%, #448aff 100%); }
.thumb-fukugyo   { background: linear-gradient(135deg, #43a047 0%, #1de9b6 100%); }

.post-card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.post-card-cat {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: .5px;
  width: fit-content;
}
.post-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text);
}
.post-card-excerpt {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}
.post-card-meta {
  font-size: 11px;
  color: #aaa;
}

/* Tag Cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px; }
.tag-cloud a {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  transition: background .15s;
}
.tag-cloud a:hover { background: var(--teal-light); color: var(--teal-dark); text-decoration: none; }

/* ============================
   Contact Form
   ============================ */
.contact-form-wrap { margin-top: 24px; }
.form-group { margin-bottom: 20px; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 700; }
.required { background: #e63946; color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 3px; margin-left: 6px; vertical-align: middle; }
.form-group input,
.form-group textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--teal); }
.form-group textarea { resize: vertical; }

/* ============================
   Profile Hero
   ============================ */
.profile-hero {
  background: linear-gradient(135deg, var(--teal-light) 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
  padding: 24px 20px;
}
.profile-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.profile-hero-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 240px;
}
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), #3a8ca3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}
.profile-hero-name { font-weight: 900; font-size: 15px; margin-bottom: 4px; }
.profile-hero-bio { font-size: 13px; color: var(--muted); line-height: 1.7; }
.profile-hero-bio strong { color: var(--teal-dark); }

.achievement-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.achievement-item {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 18px;
  box-shadow: var(--shadow);
  min-width: 80px;
}
.achievement-num {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: var(--teal-dark);
  line-height: 1.2;
}
.achievement-num small { font-size: 12px; }
.achievement-label { font-size: 11px; color: var(--muted); }

/* ============================
   Coming Soon Cards
   ============================ */
.post-card--soon {
  position: relative;
  opacity: .75;
  cursor: default;
  pointer-events: none;
}
.coming-soon-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #888;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: .5px;
}

/* ============================
   Popular List Ranks
   ============================ */
.popular-list { gap: 10px !important; }
.popular-list li { display: flex; align-items: flex-start; gap: 8px; }
.rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  margin-top: 1px;
}
.rank-1 { background: #e6a817; }
.rank-2 { background: #9e9e9e; }
.rank-3 { background: #a0674a; }
.text-muted { color: var(--muted); font-size: 13px; }

/* ============================
   Newsletter
   ============================ */
.newsletter-section {
  background: linear-gradient(135deg, var(--teal) 0%, #3a8ca3 100%);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  color: #fff;
  margin-top: 8px;
}
.newsletter-title { font-size: 17px; font-weight: 900; margin-bottom: 8px; }
.newsletter-desc { font-size: 13px; opacity: .9; margin-bottom: 18px; line-height: 1.7; }
.newsletter-form { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; }
.newsletter-input {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.newsletter-btn {
  background: #fff;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: opacity .2s;
}
.newsletter-btn:hover { opacity: .85; }

/* ============================
   Responsive
   ============================ */
@media (max-width: 768px) {
  .wrapper { grid-template-columns: 1fr; }
  .home-wrapper { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .achievement-grid { gap: 10px; }
  .newsletter-form { flex-direction: column; }
  .profile-hero-inner { flex-direction: column; align-items: flex-start; }
}
