@charset "UTF-8";

/* ==========================================================================
   Base
   ========================================================================== */
:root {
  --primary-color: #1d4ed8; /* Blue for trust */
  --secondary-color: #3b82f6;
  --accent-color: #f97316; /* Orange for CTA */
  --text-color: #333333;
  --bg-color: #f8fafc;
  --white: #ffffff;
  --border-color: #e2e8f0;
  --light-gray: #f1f5f9;
}

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

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

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

a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.site-header {
  background-color: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.site-logo {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.main-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--white);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.03);
  padding-bottom: 80px; /* Space for fixed CTA */
}

.article-container {
  padding: 30px 20px;
}

.site-footer {
  background-color: #333;
  color: var(--white);
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  margin-bottom: 80px; /* Space for fixed CTA */
}

/* ==========================================================================
   Article Elements
   ========================================================================== */
.article-title {
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #111;
}

.eyecatch {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

.article-body p {
  margin-bottom: 20px;
  font-size: 16px;
}

.article-body h2 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin: 40px 0 20px;
  padding: 12px 15px;
  background-color: var(--light-gray);
  border-left: 5px solid var(--primary-color);
  border-radius: 0 4px 4px 0;
  line-height: 1.4;
}

.article-body h3 {
  font-size: 1.2rem;
  color: #222;
  margin: 30px 0 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
}

.article-body ul {
  margin-bottom: 20px;
  padding-left: 25px;
}

.article-body li {
  margin-bottom: 8px;
}

/* ==========================================================================
   Images inside Article
   ========================================================================== */
.section-image {
  margin: 0 0 25px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.section-image img {
  display: block;
  width: 100%;
}

/* ==========================================================================
   Custom Components
   ========================================================================== */
.summary-box {
  background-color: #fffbeb;
  border: 2px solid #fcd34d;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
}

.summary-box ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.summary-box li {
  font-weight: bold;
  color: #b45309;
}

.note {
  background-color: #f1f5f9;
  border-left: 4px solid #64748b;
  padding: 15px 20px;
  margin-bottom: 25px;
  border-radius: 0 4px 4px 0;
}

.note p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: #334155;
}

.balloon {
  position: relative;
  background: #e0f2fe;
  padding: 15px 20px;
  border-radius: 10px;
  margin: 25px 0;
  color: #0369a1;
  font-weight: bold;
  text-align: center;
}

.balloon:after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  margin-left: -10px;
  border: 8px solid transparent;
  border-top: 15px solid #e0f2fe;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
  background-color: var(--white);
}

.spec-table th, .spec-table td {
  border: 1px solid var(--border-color);
  padding: 12px;
  text-align: left;
}

.spec-table th {
  background-color: var(--light-gray);
  font-weight: bold;
  width: 35%;
}

.mk.js-marker {
  background: linear-gradient(transparent 60%, #fef08a 60%);
  font-weight: bold;
}

/* ==========================================================================
   CTA Area
   ========================================================================== */
.cta-area {
  background-color: #fff7ed;
  border: 2px solid #fdba74;
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  margin: 35px 0;
}

.cta-area p {
  font-weight: bold;
  color: #c2410c;
  margin-bottom: 15px;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  padding: 16px 20px;
  border-radius: 30px;
  text-decoration: none;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 6px rgba(249, 115, 22, 0.3);
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #ea580c;
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--white);
}

/* ==========================================================================
   Related Articles
   ========================================================================== */
.related-articles {
  margin: 40px 0;
  padding: 20px;
  background-color: var(--light-gray);
  border-radius: 8px;
}

.related-articles h3 {
  font-size: 1.2rem !important;
  color: #222 !important;
  margin: 0 0 15px 0 !important;
  padding-bottom: 8px !important;
  border-bottom: 2px solid var(--border-color) !important;
  background-color: transparent !important;
}

.related-articles ul {
  list-style-type: none;
  padding-left: 0 !important;
  margin-bottom: 0 !important;
}

.related-articles li {
  margin-bottom: 12px !important;
  padding-left: 20px;
  position: relative;
}

.related-articles li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 0.8rem;
  top: 4px;
}

.related-articles a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
}

.related-articles a:hover {
  text-decoration: none;
}

/* ==========================================================================
   Fixed CTA Button
   ========================================================================== */
.fixed-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 12px 20px;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  display: flex;
  justify-content: center;
}

.fixed-cta.is-show {
  transform: translateY(0);
}

.fixed-cta .cta-button {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
  padding: 14px 20px;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 600px) {
  .article-title {
    font-size: 1.4rem;
  }
  
  .article-body h2 {
    font-size: 1.3rem;
  }
  
  .article-body h3 {
    font-size: 1.1rem;
  }
  
  .spec-table th, .spec-table td {
    padding: 10px;
    font-size: 0.9rem;
  }
}
