@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #faf9ff;
  color: #2d2a45;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px 80px; /* Space at bottom for floating mobile CTA */
}

/* --- Header --- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(139, 92, 246, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
}

.header-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-icon {
  font-size: 1.3rem;
}

.logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e1b4b;
  letter-spacing: -0.5px;
}

.header-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ec4899;
  background: #fdf2f8;
  padding: 4px 8px;
  border-radius: 4px;
}

/* --- Article Elements --- */
.article-wrapper {
  background: #ffffff;
  padding: 24px 16px;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.02);
}

@media(min-width: 680px) {
  .article-wrapper {
    padding: 40px 32px;
    margin-top: 16px;
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.05);
  }
}

.category-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #8b5cf6;
  background: #f5f3ff;
  padding: 4px 10px;
  border-radius: 30px;
  margin-bottom: 12px;
}

.article-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #1e1b4b;
  line-height: 1.45;
  margin: 0 0 16px;
  letter-spacing: -0.3px;
}

@media(min-width: 480px) {
  .article-title {
    font-size: 1.8rem;
  }
}

.meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 24px;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 16px;
}

/* --- Images --- */
.article-image {
  margin: 20px 0 28px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  background: #f3f4f6;
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.hero-image {
  margin-top: 0;
}

/* --- Paragraphs & Headings --- */
p {
  font-size: 0.98rem;
  color: #374151;
  margin: 0 0 20px;
  text-align: justify;
}

@media(min-width: 480px) {
  p {
    font-size: 1.02rem;
  }
}

h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e1b4b;
  padding: 12px 16px;
  border-left: 5px solid #ec4899;
  background: linear-gradient(90deg, #fdf2f8 0%, rgba(255, 255, 255, 0) 100%);
  margin: 44px 0 20px;
  border-radius: 0 8px 8px 0;
  line-height: 1.4;
}

@media(min-width: 480px) {
  h2 {
    font-size: 1.4rem;
    padding: 14px 20px;
    margin: 52px 0 24px;
  }
}

h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #312e81;
  margin: 32px 0 16px;
  display: flex;
  align-items: center;
  line-height: 1.45;
}

@media(min-width: 480px) {
  h3 {
    font-size: 1.18rem;
  }
}

h3::before {
  content: "◆";
  color: #ec4899;
  font-size: 0.75rem;
  margin-right: 8px;
}

/* --- Summary Box --- */
.summary-box {
  background: linear-gradient(135deg, #faf5ff 0%, #fdf2f8 100%);
  border: 1px solid #f3e8ff;
  border-radius: 16px;
  padding: 20px 20px;
  margin: 28px 0;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.02);
}

@media(min-width: 480px) {
  .summary-box {
    padding: 24px 28px;
  }
}

.summary-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-box li {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e1b4b;
  padding-left: 26px;
  position: relative;
  line-height: 1.5;
}

.summary-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  color: #ec4899;
  font-weight: 900;
  font-size: 1.1rem;
}

/* --- Speech Balloon --- */
.balloon {
  display: flex;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #f3e8ff;
  border-radius: 16px;
  padding: 16px 18px;
  margin: 24px 0;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.03);
}

@media(min-width: 480px) {
  .balloon {
    padding: 18px 24px;
    gap: 16px;
  }
}

.balloon-avatar {
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f3ff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
}

.balloon-content {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.6;
  font-weight: 500;
}

/* --- Note Block --- */
.note {
  background: #fffbef;
  border-left: 4px solid #f59e0b;
  padding: 16px 18px;
  margin: 24px 0;
  border-radius: 0 12px 12px 0;
  font-size: 0.88rem;
  color: #78350f;
  line-height: 1.6;
}

@media(min-width: 480px) {
  .note {
    padding: 18px 24px;
    font-size: 0.92rem;
  }
}

.note p {
  margin: 0;
  color: #78350f;
  font-weight: 500;
  font-size: inherit;
}

/* --- Spec Table --- */
.table-container {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: 12px;
  border: 1px solid #f3e8ff;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.02);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.spec-table th, .spec-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f3e8ff;
  line-height: 1.5;
}

.spec-table thead th {
  background: #fcfaff;
  color: #1e1b4b;
  font-weight: 700;
  border-bottom: 2px solid #e5e7eb;
}

.spec-table tbody th {
  background: #fcfaff;
  color: #312e81;
  font-weight: 700;
  width: 32%;
}

.spec-table td {
  background: #ffffff;
  color: #4b5563;
}

.spec-table tr:last-child th, .spec-table tr:last-child td {
  border-bottom: none;
}

/* --- FAQ --- */
.faq-container {
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #f3e8ff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.02);
}

.faq-question {
  font-size: 0.98rem;
  font-weight: 700;
  color: #1e1b4b;
  margin-bottom: 8px;
  position: relative;
  padding-left: 28px;
}

.faq-question::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: -1px;
  color: #ec4899;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}

.faq-answer {
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.6;
  padding-left: 28px;
  position: relative;
}

.faq-answer::before {
  content: "A";
  position: absolute;
  left: 0;
  top: -1px;
  color: #8b5cf6;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}

/* --- CTA Section --- */
.cta-area {
  background: #ffffff;
  border: 2px dashed #f472b6;
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  margin: 36px 0;
  box-shadow: 0 8px 30px rgba(236, 72, 153, 0.03);
}

@media(min-width: 480px) {
  .cta-area {
    padding: 32px 24px;
    margin: 44px 0;
  }
}

.cta-lead-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ec4899;
  margin-bottom: 16px !important;
  line-height: 1.4;
}

@media(min-width: 480px) {
  .cta-lead-text {
    font-size: 0.98rem;
  }
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff !important;
  background: linear-gradient(135deg, #ff4d88 0%, #ec4899 50%, #8b5cf6 100%);
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.35);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: none;
}

@media(min-width: 480px) {
  .cta-button {
    font-size: 1.15rem;
    padding: 18px 24px;
  }
}

.cta-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(45deg);
  animation: shine 3.5s infinite;
}

.cta-button:hover {
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.5);
}

.cta-button:active {
  transform: scale(0.98) translateY(0);
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* --- Highlighter (Dynamic Marker) --- */
.mk {
  background: linear-gradient(to right, #fef08a 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  transition: background-position 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  display: inline;
}

.mk.active {
  background-position: 0 0;
}

/* --- Footer --- */
.site-footer {
  background: #1e1b4b;
  color: #a5b4fc;
  padding: 24px 16px 40px;
  text-align: center;
  border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.footer-copy {
  font-size: 0.75rem;
  margin: 0;
  color: #818cf8;
}

/* --- Floating Mobile CTA --- */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(236, 72, 153, 0.15);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
  padding: 12px 16px;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-cta.active {
  transform: translateY(0);
}

.floating-cta-inner {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.floating-cta-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ec4899;
  text-align: center;
  letter-spacing: 0.2px;
}

.floating-cta-button {
  width: 100%;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff !important;
  background: linear-gradient(135deg, #ff4d88 0%, #ec4899 100%);
  border-radius: 30px;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  border: none;
}

@media(min-width: 480px) {
  .floating-cta-button {
    font-size: 1.05rem;
    padding: 14px 20px;
  }
}

.floating-cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.btn-arrow {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.floating-cta-button:hover .btn-arrow {
  transform: translateX(4px);
}

/* --- Related Articles --- */
.related-section {
  margin: 48px 0 24px;
  border-top: 2px solid #f3e8ff;
  padding-top: 32px;
}
.related-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e1b4b;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.related-title::before {
  content: "🔗";
}
.related-card {
  display: flex;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #f3e8ff;
  border-radius: 12px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.02);
  transition: all 0.3s ease;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.08);
  border-color: #f472b6;
}
.related-card-image {
  width: 100px;
  height: 75px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f3f4f6;
}
.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.related-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e1b4b;
  line-height: 1.4;
  transition: color 0.2s ease;
}
.related-card:hover .related-card-title {
  color: #ec4899;
}
.related-card-desc {
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
