:root {
  color-scheme: light;
}

.toeic-part-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  width: 100%;
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 3rem) clamp(1rem, 3vw, 2.5rem);
  box-sizing: border-box;
}

.toeic-part-ad {
  display: none;
  flex: 0 0 clamp(160px, 14vw, 220px);
}

.toeic-part-ad ins.adsbygoogle {
  display: block;
  width: 100%;
}

.toeic-part-article {
  width: 60%;
  max-width: 1100px;
  background-color: #ffffff;
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  box-sizing: border-box;
  line-height: 1.75;
  color: #1f2933;
}

.article-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0f4c81;
  text-transform: uppercase;
}

.toeic-part-article h1 {
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.3;
  color: #0f172a;
}

.toeic-part-article .article-intro {
  margin: 0.5rem 0 2rem;
  font-size: 1rem;
  color: #334155;
}

.article-section {
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

#summary.article-section {
  padding: clamp(1.5rem, 2.8vw, 2rem);
  border-radius: 18px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.article-section h2 {
  position: relative;
  margin: 0 0 1rem;
  padding-left: 0.85rem;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  color: #0f172a;
}

.article-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2563eb, #38bdf8);
}

.article-section p {
  margin: 0 0 1rem;
}

.article-section ul,
.article-section ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

.article-section li {
  margin-bottom: 0.5rem;
}

.accuracy-table-wrapper {
  overflow-x: auto;
}

.accuracy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.95rem;
}

.accuracy-table thead {
  background: #e2e8f0;
}

.accuracy-table th,
.accuracy-table td {
  padding: 0.7rem 0.85rem;
  border: 1px solid #cbd5f5;
  text-align: center;
}

.accuracy-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.table-wrapper {
  margin: clamp(1.25rem, 3vw, 1.75rem) 0;
  overflow-x: auto;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #dbeafe;
  background: #ffffff;
  font-size: 0.95rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.article-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  color: #0f172a;
  padding: 0.5rem 0;
}

.article-table thead {
  background: linear-gradient(90deg, rgba(191, 219, 254, 0.65), rgba(96, 165, 250, 0.55));
  color: #0f172a;
}

.article-table th,
.article-table td {
  padding: 0.8rem 1rem;
  border: 1px solid #bfdbfe;
  text-align: left;
  vertical-align: top;
}

.article-table tbody tr:nth-child(even) {
  background: #f8fbff;
}

.article-table tbody tr:hover {
  background: rgba(191, 219, 254, 0.35);
}

.tip-card-list {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: 1fr;
}

.tip-card {
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(14, 165, 233, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.tip-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  color: #1d4ed8;
}

.tip-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #1f2933;
}

.article-toc {
  position: relative;
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2.5rem, 4vw, 3rem);
  padding: clamp(1.25rem, 2.5vw, 1.85rem) clamp(1.25rem, 2.7vw, 2.2rem);
  border-radius: 20px;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(30, 144, 255, 0.18);
}

.article-toc::before {
  content: "";
  position: absolute;
  inset: clamp(0.5rem, 1vw, 0.75rem);
  border-radius: 16px;
  border: 1px dashed rgba(30, 144, 255, 0.22);
  pointer-events: none;
}

.article-toc h2 {
  position: relative;
  margin: 0 0 1rem;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: #0f2a59;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-toc ol {
  position: relative;
  margin: 0;
  padding-left: 1.4rem;
  color: #1f2937;
  z-index: 1;
}

.article-toc li {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.article-toc a {
  color: #1e3a8a;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.article-toc a:hover,
.article-toc a:focus {
  color: #0f74d1;
  text-decoration: underline;
}

.article-latest {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e2e8f0;
}

.article-latest ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 3px solid rgba(30, 144, 255, 0.3);
  overflow-x: hidden;
}

.article-latest li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.6rem;
  border-radius: 12px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.article-latest li:hover {
  background-color: rgba(30, 144, 255, 0.08);
  transform: translateX(4px);
}

.article-latest li:last-child {
  margin-bottom: 0;
}

.article-latest-date {
  color: #1e90ff;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  min-width: 5.6rem;
}

.article-latest a {
  color: #1f2937;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.4;
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.article-latest a:hover,
.article-latest a:focus {
  text-decoration: underline;
}

.toeic-reference-section {
  margin-top: clamp(2.5rem, 4vw, 3rem);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.toeic-reference-section h2 {
  margin-bottom: clamp(1.35rem, 3vw, 1.8rem);
  padding-left: 1.75rem;
}

.toeic-reference-section h2::before {
  width: 12px;
  height: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  border-radius: 4px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.toeic-reference-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
  width: 100%;
}

.toeic-reference-section .book-item {
  background: #f9f9f9;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  padding: clamp(1rem, 2.2vw, 1.4rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 2vw, 1.1rem);
  box-sizing: border-box;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.toeic-reference-section .book-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}


.toeic-reference-section .book-content {
  display: flex;
  align-items: stretch;
  gap: clamp(0.9rem, 2.5vw, 1.5rem);
  flex: 1;
}


.toeic-reference-section .book-image {
  flex: 0 0 clamp(110px, 16vw, 140px);
  width: clamp(110px, 16vw, 140px);
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  border-radius: 8px;
  overflow: hidden;
  padding: 0.35rem;
  aspect-ratio: 3 / 4;
}

.toeic-reference-section .book-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.toeic-reference-section .book-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  gap: 0.4rem;
}

.toeic-reference-section .book-info h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  color: #1f2937;
}

.toeic-reference-section .book-info p {
  margin: 0;
  line-height: 1.6;
  color: #374151;
}


.toeic-reference-section .book-link {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.15rem;
  min-height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #1f2937;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 12px 20px rgba(249, 115, 22, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  align-self: flex-start;
}

.toeic-reference-section .book-link:hover,
.toeic-reference-section .book-link:focus {
  filter: brightness(1.05);
  box-shadow: 0 16px 28px rgba(249, 115, 22, 0.28);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .toeic-reference-section {
    padding: clamp(1.35rem, 5vw, 1.75rem);
  }
}

@media (max-width: 640px) {
  .article-table thead {
    display: none;
  }

  .article-table tr {
    display: block;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    background: #ffffff;
  }

  .article-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border: none;
    padding: 0.5rem 0;
  }

  .article-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #1d4ed8;
    flex: 0 0 40%;
    max-width: 10rem;
  }
  
  .toeic-reference-section .book-item {
    width: 100%;
  }

  .toeic-reference-section .book-content {
    flex-direction: column;
    align-items: center;
    gap: clamp(0.85rem, 5vw, 1.2rem);
    text-align: center;
  }

  .toeic-reference-section .book-image {
    flex: 0 0 auto;
    width: clamp(120px, 55vw, 160px);
    margin: 0;
  }

  .toeic-reference-section .book-info {
    text-align: center;
    align-items: center;
  }

  .toeic-reference-section .book-link {
    align-self: center;
  }
}

.article-footer-callout {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding: 1.5rem 1.75rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(59, 130, 246, 0.12));
  border: 1px solid rgba(37, 99, 235, 0.18);
  color: #0f172a;
}

.article-summary {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
}

.article-summary h2 {
  margin-bottom: 1.2rem;
}

.article-link-section {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e2e8f0;
}

.article-link-section h2 {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding-left: 1.75rem;
  font-size: clamp(1.25rem, 2.1vw, 1.5rem);
  color: #0d3b66;
  letter-spacing: 0.015em;
}

.article-link-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, #1e90ff, #7c3aed);
  transform: translateY(-50%) rotate(45deg);
  box-shadow: 0 10px 18px rgba(30, 64, 175, 0.2);
}

.article-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 3px solid rgba(30, 144, 255, 0.3);
}

.article-link-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.6rem;
  border-radius: 12px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.article-link-list li:last-child {
  margin-bottom: 0;
}

.article-link-list li:hover {
  background-color: rgba(30, 144, 255, 0.08);
  transform: translateX(4px);
}

.article-link-date {
  color: #1e90ff;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  min-width: 5.6rem;
}

.article-link-list a {
  color: #1f2937;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.4;
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.article-link-list a:hover,
.article-link-list a:focus {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .article-link-section {
    padding-top: 2rem;
  }

  .article-latest {
    padding-top: 2rem;
  }

  .article-latest ul {
    border-left: none;
  }

  .article-latest li {
    padding: 0.6rem 0;
    margin-bottom: 0.5rem;
    align-items: flex-start;
  }

  .article-latest-date {
    min-width: auto;
  }

  .article-link-list {
    border-left: none;
  }

  .article-link-list li {
    padding: 0.6rem 0;
    margin-bottom: 0.5rem;
  }

  .article-link-date {
    min-width: auto;
  }
}

@media (min-width: 1100px) {
  .toeic-part-ad {
    display: block;
    position: sticky;
    top: 1.5rem;
  }
}

@media (max-width: 1023px) {
  .toeic-part-layout {
    flex-direction: column;
    padding-inline: clamp(1rem, 4vw, 1.5rem);
  }

  .toeic-part-article {
    width: 100%;
    max-width: none;
    box-shadow: none;
    border-radius: 12px;
    padding: clamp(1.25rem, 4vw, 1.75rem);
  }
}

@media (max-width: 599px) {
  .tip-card-list {
    grid-template-columns: 1fr;
  }

  .toeic-part-article {
    padding: 1.25rem;
  }
}