/* style.css */
:root {
  --primary-color: #008960;
  --primary-light: #e6f7f0;
  --primary-dark: #006043;
  --secondary-color: #f97316;
  --secondary-hover: #ea580c;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --highlight-color: rgba(254, 240, 138, 0.75); /* soft highlighter yellow */
}

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-body);
  line-height: 1.85;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* Base Layout for Mobile-first 1-column */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.header-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--secondary-color);
  border-radius: 50%;
}

.main-container {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 24px 16px 120px; /* high bottom padding for sticky CTA space */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  min-height: 100vh;
}

/* Article Styling */
.article-title {
  font-size: 22px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.article-meta {
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.article-image {
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  background-color: #f1f5f9;
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Headings */
h2 {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text-dark);
  margin: 44px 0 20px;
  padding: 12px 16px;
  background: var(--primary-light);
  border-left: 6px solid var(--primary-color);
  border-radius: 0 8px 8px 0;
  position: relative;
}

h3 {
  font-size: 16.5px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--primary-color);
  margin: 32px 0 16px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
h3::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 3px;
}

p {
  margin-bottom: 18px;
  text-align: justify;
}

/* Custom Highlight Markers */
.mk.js-marker {
  background: linear-gradient(transparent 60%, var(--highlight-color) 60%);
  font-weight: 700;
  padding: 0 2px;
}

/* Summary Box */
.summary-box {
  background: #f0fdf4;
  border-left: 4px solid #10b981;
  border-radius: 4px 12px 12px 4px;
  padding: 18px;
  margin: 24px 0;
}
.summary-box ul {
  list-style: none;
  padding-left: 0;
}
.summary-box li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--primary-dark);
  line-height: 1.5;
}
.summary-box li:last-child {
  margin-bottom: 0;
}
.summary-box li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #10b981;
  font-weight: bold;
}

/* Standard bullet list */
.custom-list {
  list-style: none;
  padding-left: 0;
  margin: 20px 0;
}
.custom-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.6;
}
.custom-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
}

/* Step List */
.step-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.step-list li {
  background: #fafafa;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.step-num {
  background: var(--primary-color);
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.step-text {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.5;
}

/* Balloon (Conversational quote card) */
.balloon {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
  position: relative;
  font-size: 14.5px;
  color: #334155;
  border: 1px solid #e2e8f0;
}
.balloon::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 30px;
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: #f1f5f9 transparent;
  display: block;
  width: 0;
}
.balloon::before {
  content: "";
  position: absolute;
  bottom: -11px;
  left: 30px;
  border-width: 11px 11px 0;
  border-style: solid;
  border-color: #e2e8f0 transparent;
  display: block;
  width: 0;
  z-index: -1;
}

/* Spec Table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.spec-table th, .spec-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  line-height: 1.5;
}
.spec-table th {
  background: #f1f5f9;
  color: var(--text-dark);
  font-weight: 700;
  width: 30%;
}
.spec-table td {
  background: #ffffff;
}
.spec-table td.eval-type {
  font-weight: 700;
  font-size: 13.5px;
  width: 30%;
}
.spec-table td.eval-type.positive {
  color: var(--primary-color);
}
.spec-table td.eval-type.negative {
  color: #e11d48; /* soft red */
}

/* Note section */
.note {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: 4px 12px 12px 4px;
  padding: 16px;
  margin: 24px 0;
  font-size: 14px;
  color: #78350f;
  line-height: 1.6;
}
.note p {
  margin-bottom: 0;
}

/* CTA Box */
.cta-area {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 2px solid var(--primary-color);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  margin: 36px 0;
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.08);
}
.cta-lead {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px !important;
  line-height: 1.5;
}
.cta-button {
  display: inline-block;
  width: 100%;
  max-width: 320px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-hover) 100%);
  color: white !important;
  font-weight: 700;
  font-size: 17px;
  padding: 14px 24px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
  transition: all 0.2s ease-in-out;
  border: none;
  cursor: pointer;
}
.cta-button:hover, .cta-button:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.5);
}

/* Bottom Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 12px 16px;
  z-index: 999;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.floating-cta.is-active {
  transform: translateY(0);
}
.floating-cta-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.floating-cta-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.cta-badge {
  background: #e11d48; /* red */
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
}
.cta-main-text {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 !important;
  white-space: nowrap;
}
.floating-cta-btn {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-hover) 100%);
  color: white !important;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.25);
  white-space: nowrap;
  transition: all 0.2s ease-in-out;
}
.floating-cta-btn:active {
  transform: scale(0.97);
}

/* Footer styling */
.site-footer {
  background: #f1f5f9;
  border-top: 1px solid var(--border-color);
  padding: 24px 16px;
  text-align: center;
}
.footer-inner {
  max-width: 640px;
  margin: 0 auto;
}
.site-footer p {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 0;
  text-align: center;
}

/* Related Articles Section */
.related-articles {
  margin: 48px 0 12px;
  padding-top: 32px;
  border-top: 2px dashed var(--border-color);
}
.related-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 16px;
  border-bottom: none;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.related-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 14px;
  background: var(--primary-color);
  border-radius: 2px;
}
.related-card {
  display: flex;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.related-card:hover, .related-card:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.04);
  border-color: var(--primary-color);
}
.related-img {
  width: 100px;
  height: 75px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}
.related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-info {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.related-card-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-dark);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card-desc {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* Responsive adjustments */
@media (min-width: 641px) {
  body {
    background-color: #f1f5f9;
  }
  .main-container {
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
  }
}
