/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;700;900&family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

/* CSS Variables for design tokens */
:root {
  --primary-color: #00d084;
  --primary-dark: #00b074;
  --primary-light: #eefbf7;
  --primary-border: #bcead8;
  --accent-color: #ff6900;
  --text-main: #333333;
  --text-muted: #666666;
  --bg-main: #faf9f6; /* Warm beige cream */
  --bg-card: #ffffff;
  --font-family-rounded: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  --font-family-sans: "Noto Sans JP", sans-serif;
  --box-shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.04);
  --box-shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.08);
  --border-radius-lg: 16px;
  --border-radius-md: 8px;
}

/* Global Reset & Base Styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: #f0f0f0; /* Desktop margin background */
  font-size: 16px;
}

body {
  font-family: var(--font-family-sans);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.8;
  width: 100%;
  max-width: 600px; /* Optimal reading column width */
  margin: 0 auto;
  min-height: 100vh;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
  position: relative;
  padding-bottom: 80px; /* Space for persistent CTA */
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}

/* Header */
.head {
  background-color: var(--bg-card);
  padding: 14px 20px;
  border-bottom: 2px solid var(--primary-light);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.head__inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.head__logo {
  height: 36px;
  display: flex;
  align-items: center;
}

.head__logo img {
  height: 100%;
  width: auto;
  max-width: 180px;
}

/* Main Content Area */
main {
  padding: 20px 16px;
}

/* Article Styling */
article {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 24px 16px;
  box-shadow: var(--box-shadow-soft);
}

/* Article Title & Eye Catch */
.article-header {
  margin-bottom: 24px;
}

.article-title {
  font-family: var(--font-family-rounded);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.4;
  color: #2c5e4a;
  margin-bottom: 16px;
  position: relative;
  padding-left: 12px;
}

.article-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 5px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

.image-container {
  width: 100%;
  margin: 16px 0;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--box-shadow-soft);
  background-color: #f7f7f7;
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}

.image-container img:hover {
  transform: scale(1.02);
}

/* Headings Styling */
h2 {
  font-family: var(--font-family-rounded);
  font-size: 18px;
  font-weight: 700;
  color: #2c5e4a;
  background-color: var(--primary-light);
  border-left: 5px solid var(--primary-color);
  padding: 12px 16px;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  margin: 36px 0 16px;
  line-height: 1.4;
  clear: both;
}

h3 {
  font-family: var(--font-family-rounded);
  font-size: 16px;
  font-weight: 700;
  color: #357258;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 6px;
  margin: 28px 0 12px;
  position: relative;
  line-height: 1.4;
  clear: both;
}

h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

/* Paragraphs & Text Styles */
p {
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.8;
}

/* Markers styling */
.mk {
  font-weight: 700;
  padding: 0 2px;
  border-radius: 3px;
}

.mk:not(.js-marker) {
  background: linear-gradient(transparent 60%, rgba(255, 230, 0, 0.5) 60%);
}

.mk.js-marker {
  background: linear-gradient(transparent 50%, rgba(0, 208, 132, 0.25) 50%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.mk.js-marker.is-highlighted {
  background-size: 100% 100%;
}

/* Custom Block: Summary Box */
.summary-box {
  background-color: var(--primary-light);
  border: 2px solid var(--primary-border);
  border-radius: var(--border-radius-lg);
  padding: 20px 20px 10px;
  margin: 24px 0;
  box-shadow: var(--box-shadow-soft);
}

.summary-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.summary-box li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 14.5px;
  color: #2c5e4a;
  line-height: 1.6;
  font-weight: 700;
}

.summary-box li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  top: -1px;
  color: var(--primary-dark);
  font-weight: 900;
  font-size: 18px;
}

/* Custom Block: Note */
.note {
  background-color: #f7f7f7;
  border-left: 4px solid #888888;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  padding: 16px;
  margin: 20px 0;
  font-size: 13.5px;
  color: #555555;
  line-height: 1.7;
}

.note p {
  margin-bottom: 8px;
  font-size: 13.5px;
}

.note p:last-child {
  margin-bottom: 0;
}

.note strong {
  color: #333333;
}

/* Custom Block: Balloon */
.balloon {
  position: relative;
  background-color: #eef5fc;
  border: 1px solid #d2e4f7;
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0 20px 16px;
  font-size: 14.5px;
  color: #2a4c70;
  line-height: 1.7;
  font-weight: 500;
}

.balloon::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 20px;
  border-style: solid;
  border-width: 10px 10px 10px 0;
  border-color: transparent #eef5fc transparent transparent;
  display: block;
  width: 0;
  z-index: 1;
}

.balloon::after {
  content: "";
  position: absolute;
  left: -11px;
  top: 20px;
  border-style: solid;
  border-width: 10px 10px 10px 0;
  border-color: transparent #d2e4f7 transparent transparent;
  display: block;
  width: 0;
  z-index: 0;
}

/* Custom Block: Spec Table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 13.5px;
  line-height: 1.5;
  background-color: #ffffff;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--box-shadow-soft);
}

.spec-table th, .spec-table td {
  padding: 10px 12px;
  border: 1px solid #eeeeee;
  text-align: left;
}

.spec-table th {
  background-color: var(--primary-light);
  color: #2c5e4a;
  font-weight: 700;
  white-space: nowrap;
}

.spec-table tr:nth-child(even) td {
  background-color: #fafafa;
}

/* Custom Block: CTA Area & Button */
.cta-area {
  background: linear-gradient(135deg, #eefbf7 0%, #dcf7ec 100%);
  border: 2px dashed var(--primary-color);
  border-radius: var(--border-radius-lg);
  padding: 24px 16px;
  margin: 32px 0;
  text-align: center;
  box-shadow: var(--box-shadow-soft);
}

.cta-area p {
  font-size: 14px;
  font-weight: 700;
  color: #2c5e4a;
  margin-bottom: 16px;
  line-height: 1.5;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  font-size: 16.5px;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(0, 208, 132, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  max-width: 100%;
  box-sizing: border-box;
  animation: cta-pulse 2s infinite;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 208, 132, 0.45);
}

@keyframes cta-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 208, 132, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 208, 132, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 208, 132, 0);
  }
}

/* Bullet list overrides */
article ul:not(.summary-box ul) {
  padding-left: 20px;
  margin-bottom: 16px;
}

article li:not(.summary-box li) {
  font-size: 15px;
  color: var(--text-main);
  margin-bottom: 8px;
}

/* Floating Persistent CTA */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding: 12px 16px;
  box-sizing: border-box;
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0, 208, 132, 0.15);
}

.floating-cta.is-visible {
  transform: translateX(-50%) translateY(0);
}

.floating-cta .cta-button {
  width: 100%;
  font-size: 15.5px;
  padding: 12px 24px;
  text-align: center;
}

/* Footer Styling */
footer {
  background-color: var(--bg-card);
  padding: 30px 20px;
  border-top: 1px solid var(--primary-light);
  text-align: center;
  margin-top: 20px;
}

.footer__txt {
  font-size: 12px;
  color: var(--text-muted);
}

/* Related Articles Card styling */
.related-articles {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #eeeeee;
}

.related-articles__title {
  font-family: var(--font-family-rounded);
  font-size: 15px;
  font-weight: 700;
  color: #2c5e4a;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.related-articles__title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background-color: var(--primary-color);
  margin-right: 8px;
  border-radius: 2px;
}

.related-articles__card {
  display: flex;
  background-color: #f7fbf9;
  border: 1px solid #e2f2eb;
  border-radius: var(--border-radius-md);
  padding: 12px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  align-items: center;
}

.related-articles__card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 208, 132, 0.08);
  border-color: var(--primary-border);
}

.related-articles__thumb {
  width: 80px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  margin-right: 12px;
  flex-shrink: 0;
}

.related-articles__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-articles__info {
  flex-grow: 1;
}

.related-articles__link-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #2c5e4a;
  line-height: 1.4;
  margin-bottom: 4px;
}

.related-articles__meta {
  font-size: 11px;
  color: var(--text-muted);
}

