.departmentTextDiv {
  width: 70%;
  height: 100%;
  overflow: hidden;
}

.departmentImg {
  height: Auto;
  max-width: 500px;
  width: 30%;
  min-width: 350px;
  transition: all 0.3s;
}

.departmentImg:hover {
  transform: scale(1.1);
}

.departmentText {
  font-size: 30px;
  margin-bottom: 0;
}

.newArticlbody {
  width: 100%;
  margin-top: 0;
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  /* ブラウザがサポートしていない場合のフェールセーフ */
  max-height: 100px;
}

.newArticl {
  text-align: left;
}

.newArticl2 {
  display: flex;
  width: 95%;
  margin: auto;
}

@media screen and (max-width:440px) {
  .newArticl2 {
    overflow: scroll;
  }
}

.rticltile {
  width: 25%;
  margin: auto;
  padding: 20px;
  min-width: 170px;
  /* border: 1px solid #727272; */
}

.rticltile img {
  width: 100%;
}

.newArticldate {
  padding-top: 0;
  text-align: right;
}

.rticltile {
  width: 300px;
  min-width: auto;
  margin: 0;
  padding: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all .25s ease;
}

.rticltile:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.rticltile a {
  display: block;
  color: #333;
  text-decoration: none;
}

.rticltile img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.newArticldate {
  padding: 15px 20px 0;
  margin: 0;
  text-align: right;
  color: #666;
  font-size: 0.9rem;
}

.newArticltitle {
  padding: 10px 20px;
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #1d4b89;
  min-height: 70px;
}

.newArticlbody {
  padding: 0 20px 20px;
  line-height: 1.8;
  color: #555;
}/* 導入文 (#abstract) の視認性・行間・レスポンシブ調整 */
#abstract {
  padding: 18px 20px;
  box-sizing: border-box;
  border-radius: 8px;
  line-height: 1.8;
}

#abstract p {
  margin: 0 0 14px 0;
  line-height: 1.85;
  text-align: left;
}

#abstract p:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 600px) {
  #abstract {
    padding: 14px 16px;
    font-size: 15px;
  }
  #abstract p {
    margin-bottom: 12px;
    line-height: 1.8;
  }
}

#area-3 { 
  background-color: white !important;
  padding-bottom: 60px;
}

/* ==========================================================================
   クイズ記事用スタイル (Quiz Styles)
   ========================================================================== */
.quiz-container {
  width: 100%;
  margin: 25px 0;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.quiz-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(11, 58, 112, 0.08);
  padding: 24px;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quiz-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px dashed #edf2f7;
}

.quiz-badge {
  background: linear-gradient(135deg, #0b3a70, #17549c);
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.quiz-theme {
  font-size: 16px;
  font-weight: bold;
  color: #0b3a70;
}

.quiz-question {
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.6;
  color: #1a202c;
  margin-bottom: 18px;
  text-align: left;
}

.quiz-options {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media screen and (max-width: 600px) {
  .quiz-options {
    grid-template-columns: 1fr;
  }
  .quiz-card {
    padding: 18px 14px;
  }
  .quiz-header {
    flex-wrap: wrap;
    gap: 8px;
  }
}

.quiz-option-item {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  color: #2d3748;
  font-weight: 500;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.quiz-option-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #e2e8f0;
  color: #0b3a70;
  font-weight: bold;
  font-size: 13px;
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
}

/* アコーディオン (details / summary) */
.quiz-details {
  border-radius: 8px;
  overflow: hidden;
  margin-top: 10px;
}

.quiz-summary {
  list-style: none;
  cursor: pointer;
  background: linear-gradient(135deg, #0b3a70, #1b5bb0);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 15px;
  text-align: center;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.quiz-summary::-webkit-details-marker {
  display: none;
}

.quiz-summary:hover {
  opacity: 0.92;
}

.quiz-summary::after {
  content: '▼';
  font-size: 11px;
  transition: transform 0.3s ease;
  display: inline-block;
  margin-left: 6px;
}

.quiz-details[open] .quiz-summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.quiz-details[open] .quiz-summary::after {
  transform: rotate(180deg);
}

.quiz-answer-body {
  background: #fffdfa;
  border: 2px solid #feebc8;
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 18px 20px;
  animation: quizFadeIn 0.25s ease;
}

@keyframes quizFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-correct {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #feb2b2;
  font-weight: bold;
  font-size: 15px;
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.quiz-explanation-title {
  font-weight: bold;
  color: #744210;
  margin-bottom: 6px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.quiz-explanation-text {
  font-size: 14.5px;
  line-height: 1.8;
  color: #4a5568;
  margin: 0;
  text-align: left;
}
