@charset "utf-8";

/* ========== COLOR VARIABLES ========== */
:root {
  --primary: #0f766e;
  --primary-light: #0ea5a0;
  --text-dark: #1b1f24;
  --text-gray: #5c6b7a;
  --text-light: #e2e8f0;
  --bg-white: #ffffff;
  --bg-light: #f5f3ef;
  --border: #e1ded7;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ========== GLOBAL ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  background: #f9f7f3;
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.8;
  font-family:
    "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", "Meiryo",
    sans-serif;
}

#wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ========== HEADER ========== */
#header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

#header-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}

#headname {
  font-size: 28px;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text-dark);
}

#headname a {
  color: var(--text-dark);
}

#headname a:hover {
  color: var(--primary);
}

#sitedescription {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
}

#main-nav {
  background: #0f172a;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
}

#main-nav .menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

#main-nav a {
  display: block;
  padding: 14px 20px;
  color: var(--text-light);
  font-weight: 500;
}

#main-nav a:hover {
  background: #1f2937;
  text-decoration: none;
}

/* ========== MAIN LAYOUT ========== */
#container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  flex: 1;
}

#contents {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ========== ARTICLE/POST ========== */
.post {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.post-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.post-lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
  background: #f0faf8;
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 24px;
  border-left: 4px solid var(--primary);
}

.post-image {
  margin: 24px 0;
}

.post-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ========== SECTIONS ========== */
.section-block {
  margin: 24px 0 0;
}

.section-block h2 {
  font-size: 22px;
  color: var(--text-dark);
  margin: 24px 0 16px;
  font-weight: 700;
}

.section-block p {
  color: var(--text-gray);
  margin-bottom: 14px;
  line-height: 1.8;
}

/* ========== LISTS ========== */
.check-list,
.icon-list {
  list-style: none;
  margin: 16px 0;
  padding: 0;
}

.check-list li,
.icon-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: var(--text-gray);
  line-height: 1.7;
}

.check-list li:before {
  content: "●";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.icon-list li:before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Sitemap list */
.sitemap-list {
  list-style: none;
  margin: 16px 0;
  padding: 0;
}

.sitemap-list li {
  margin-bottom: 12px;
  padding-left: 0;
}

.sitemap-list a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.sitemap-list a:hover {
  text-decoration: underline;
}

/* ========== PLACEHOLDER ========== */
.image-placeholder {
  background: #f0faf8;
  border: 2px solid var(--border);
  border-radius: 6px;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-gray);
  font-size: 14px;
  margin: 20px 0;
}

/* ========== TABLE ========== */
.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  font-size: 14px;
}

.comparison-table th {
  background: #f0faf8;
  padding: 12px 14px;
  text-align: left;
  font-weight: bold;
  color: var(--text-dark);
  border: 1px solid var(--border);
}

.comparison-table td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  color: var(--text-gray);
}

/* ========== QUOTE ========== */
.highlight-quote {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dark);
  padding: 16px 20px;
  background: #f9fafb;
  border-left: 4px solid var(--primary);
  margin: 20px 0;
}

/* ========== CTA ========== */
.cta {
  background: linear-gradient(135deg, #f0faf8, #eef5ff);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  margin: 28px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  align-items: center;
}

.cta-content h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.cta-content p {
  font-size: 14px;
  margin-bottom: 14px;
}

.cta-button {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary);
  color: white;
  border-radius: 24px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}

.cta-button:hover {
  background: var(--primary-light);
  text-decoration: none;
}

/* ========== SIDEBAR ========== */
#sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidemenu {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.sidemenu h3 {
  background: #0f172a;
  color: white;
  padding: 14px 16px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.sidemenu-body {
  padding: 16px;
}

.sidemenu-body p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.7;
}

/* ========== FOOTER ========== */
#footer {
  background: #0f172a;
  color: var(--text-light);
  padding: 28px 20px 16px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#footer-navi {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#footer-navi ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

#footer-navi a {
  color: var(--text-light);
  font-size: 13px;
}

#footer-navi a:hover {
  color: white;
}

#copyright {
  max-width: 1200px;
  margin: 12px auto 0;
  padding: 12px 20px 0;
  font-size: 12px;
  color: var(--text-light);
}

#copyright a {
  color: var(--text-light);
}

#page-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: none;
  background: var(--primary);
  padding: 12px 18px;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

#page-top a {
  color: white;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

#page-top a:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  #container {
    grid-template-columns: 1fr 280px;
    gap: 28px;
    padding: 32px 20px;
  }
}

@media (max-width: 768px) {
  #container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 20px;
  }

  #sidebar {
    display: none;
  }

  #headname {
    font-size: 24px;
  }

  .post {
    padding: 24px;
  }

  .post-title {
    font-size: 22px;
  }

  .section-block h2 {
    font-size: 19px;
  }

  .cta {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  #header-top {
    padding: 16px 16px;
  }

  #headname {
    font-size: 20px;
  }

  #sitedescription {
    font-size: 13px;
  }

  #container {
    padding: 16px 16px;
  }

  .post {
    padding: 16px;
    border-radius: 6px;
  }

  .post-title {
    font-size: 18px;
  }

  .section-block h2 {
    font-size: 16px;
  }

  .check-list li,
  .icon-list li {
    font-size: 14px;
  }

  .comparison-table {
    font-size: 12px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 8px 10px;
  }

  #footer-navi ul {
    flex-direction: column;
    gap: 8px;
  }
}

.ad-wrapper-fixed a:first-of-type img {
  width: 300px !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
}

/* 2番目以降のimg（計測用ドット）は元のサイズ(1x1)を維持する */
.ad-wrapper-fixed img:nth-of-type(2) {
  width: 1px !important;
  height: 1px !important;
  display: inline;
}
