:root {
  --column-navy: #1d3557;
  --column-orange: #f97316;
  --column-warm: #fffaf3;
  --column-green: #16855b;
  --column-line: #dbe4ea;
  --column-text: #334155;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.article-container {
  width: min(820px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 60px 0 80px;
}

.article-header {
  margin-bottom: 36px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

.article-cat,
.article-status {
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 800;
}

.article-cat {
  color: #047857;
  background: #ecfdf5;
}

.article-status {
  color: #9a3412;
  background: #ffedd5;
}

.article-date {
  display: flex;
  align-items: center;
  color: #64748b;
  font-weight: 700;
}

.article-title {
  margin: 0;
  color: var(--column-navy);
  font-size: clamp(27px, 4.6vw, 40px);
  font-weight: 900;
  line-height: 1.38;
  overflow-wrap: anywhere;
  letter-spacing: 0;
}

.article-thumb {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 40px;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(29, 53, 87, .14);
}

.article-content {
  color: var(--column-text);
}

.article-content h2 {
  margin: 44px 0 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--column-orange);
  color: var(--column-navy);
  font-size: 25px;
  line-height: 1.45;
  letter-spacing: 0;
}

.article-content h3 {
  margin: 30px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--column-navy);
  color: var(--column-navy);
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0;
}

.article-content p,
.article-content li {
  font-size: 16px;
  line-height: 1.9;
}

.article-content p {
  margin: 0 0 22px;
}

.article-content a:not(.btn) {
  color: #0f766e;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 24px;
  padding: 22px 24px 22px 44px;
  border: 1px solid var(--column-line);
  border-radius: 8px;
  background: #f8fafc;
}

.article-content li + li {
  margin-top: 9px;
}

.note-box,
.warning-box,
.formula-box {
  margin: 28px 0;
  padding: 20px 22px;
  border-radius: 8px;
  line-height: 1.8;
}

.note-box {
  border: 1px solid #bbf7d0;
  color: #14532d;
  background: #f0fdf4;
}

.warning-box {
  border: 1px solid #fed7aa;
  color: #7c2d12;
  background: #fff7ed;
}

.formula-box {
  border: 1px solid #bfdbfe;
  color: var(--column-navy);
  background: #eff6ff;
  font-weight: 800;
  text-align: center;
}

.check-table {
  width: 100%;
  margin: 26px 0;
  border-collapse: collapse;
  font-size: 15px;
}

.check-table th,
.check-table td {
  padding: 13px 12px;
  border: 1px solid var(--column-line);
  vertical-align: top;
  line-height: 1.7;
  text-align: left;
}

.check-table th {
  color: var(--column-navy);
  background: #eff6ff;
}

.check-table td {
  background: #fff;
}

.faq {
  margin-top: 42px;
}

.faq details {
  margin-bottom: 12px;
  padding: 17px 18px;
  border: 1px solid var(--column-line);
  border-radius: 8px;
  background: #fff;
}

.faq summary {
  color: var(--column-navy);
  font-weight: 800;
  cursor: pointer;
}

.faq details p {
  margin: 14px 0 0;
}

.cta-box {
  margin-top: 54px;
  padding: 36px 32px;
  border-radius: 8px;
  color: #fff;
  background: var(--column-navy);
  text-align: center;
}

.cta-box h2,
.cta-box h3 {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  color: #fff;
}

.cta-box p {
  color: rgba(255, 255, 255, .9);
}

.cta-box .btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 13px 22px;
  border-radius: 6px;
  color: #fff;
  background: var(--column-orange);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 640px) {
  .article-container {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 42px 20px 68px;
  }

  .article-header,
  .article-content,
  .article-thumb {
    min-width: 0;
    max-width: calc(100vw - 40px);
  }

  .article-content > *,
  .article-header > * {
    max-width: calc(100vw - 40px);
  }

  .article-thumb {
    box-sizing: border-box;
    object-fit: contain;
  }

  .article-content {
    overflow-wrap: anywhere;
  }

  .article-content p,
  .article-content li {
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .article-content ul,
  .article-content ol {
    padding: 20px 18px 20px 30px;
  }

  .note-box,
  .warning-box,
  .formula-box {
    padding: 18px;
  }

  .article-mid-cta {
    box-sizing: border-box;
    max-width: 100%;
  }

  .article-mid-cta a {
    overflow-wrap: anywhere;
  }

  .cta-box {
    box-sizing: border-box;
    max-width: 100%;
  }

  .cta-box .btn {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .article-title {
    font-size: 27px;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .article-content h2 {
    font-size: 23px;
  }

  .check-table {
    display: block;
    overflow-x: auto;
  }

  .cta-box {
    padding: 30px 20px;
  }

  .cta-box .btn {
    width: 100%;
  }
}
