main{
    background-image: linear-gradient(rgba(210, 210, 210, 0.4) 1px, transparent 1px), linear-gradient(to right, rgba(210, 210, 210, 0.4) 1px, transparent 1px);
    background-size: 20px 20px;
    padding-bottom: 50px;
    min-height: 70vh;
}

h1{
  color: #333;
}

.question-icons a{
  text-decoration: none;
}

.cta {
  border: none;
  background: none;
    margin-left: 4%;
    margin-top: 25px;
    margin-bottom: 12px;
    cursor: pointer;
}

.cta span {
  padding-bottom: 7px;
  letter-spacing: 2px;
  font-size: 14px;
  padding-left: 15px;
  text-transform: uppercase;
}

.cta svg {
  /* 右から左へスライドインさせるため、正方向の移動量を +8px に */
  transform: translateX(8px) scaleX(-1);
  transition: all 0.3s ease;
}

.cta:hover svg {
  /* ホバー時に元の位置 (0) へ */
  transform: translateX(0) scaleX(-1);
}

.cta:active svg {
  /* 押下時に少し縮める (scale) のみ */
  transform: translateX(0) scaleX(-1) scale(0.9);
}

.hover-underline-animation {
  position: relative;
  color: black;
  padding-bottom: 20px;
}

.hover-underline-animation:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #000;
  /* 起点を右端に */
  transform-origin: bottom right;
  /* まずは横方向ゼロサイズに */
  transform: scaleX(0);
  transition: transform 0.25s ease-out;
}

.cta:hover .hover-underline-animation:after {
  /* 右端を固定したまま左へ向かって伸びる */
  transform: scaleX(1);
}

.label {
    position: relative;
    width: 92%;
    margin: 40px auto 60px;
    padding: 8px 16px;
    border-radius: 0 10px 10px 10px;
    background-color: white;
}

.label:before {
    font-size: 16px;
    position: absolute;
    top: -26px;
    left: -2px;
    height: 24px;
    padding: 0 20px;
    border-radius: 10px 10px 0 0;
}

.answer-label{
  margin-bottom: 0px;
}

.question-label{
  border: 2px solid #222;
}
.question-label::before{
  content: 'QUESTION';
  color: #fff;
  background: #222;
  line-height: 160%;
}

.answer-label{
  border: 2px solid #9b2c2c
}

.answer-label::before{
  content: 'ANSWER';
  color: #fff;
  background: var(--jukenred);
  line-height: 160%;
}

.label h1{
  font-size: 20px;
  margin-bottom: 3px;
}

.body{
  font-size: 13px;
    color: #333;
    text-align: justify;
    background-color: #fff;
    background-image: linear-gradient(90deg, transparent 0%, transparent 50%, #fff 50%, #fff 100%), /* 点線1の色 */ linear-gradient(180deg, #ccc 1px, transparent 1px);
    background-size: 8px 100%, /* 点線1のサイズ */ 100% 25px;
    line-height: 25px;
    padding-bottom: 1px;
    margin: 20px 0 10px;
      text-align: justify;
}



ul.question-meta {
    font-size: 14px;
    color: #333;
    margin-top: 5px;
}


.chara-header {
    display: flex;
    align-items: center;
    white-space: nowrap;
        flex-wrap: wrap;
}

span.questioner {
    font-size: 14px;
}

time {
    padding-left: 18px;
    margin-left: auto;
    font-size: 12px;
    margin-left: auto;
}

.question-icons, .reply-icons{
  display: flex;
  gap: 5px;
  
    flex-wrap: wrap;
}

/* ●共通スタイル */
.faculty-icon , .grade-icon{
    color: #fff;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.7em;
}

/* ●カラー別 */
.faculty-economics { background-color: #a35576; }  /* 紫 */
.faculty-commerce  { background-color: #f2b32b; }  /* 黄 */
.faculty-law       { background-color: #2d6778; }  /* 緑 */
.faculty-social    { background-color: #d35400; }  /* オレンジ */
.faculty-sds       { background-color: #4477a5; }  /* 青 */
.faculty-others       { background-color: #666666; }  /* グレー */

/* 学年ごとの背景色 */
.grade-high0   { background-color: #666;      }  /* 未定 */
.grade-high1   { background-color: #800000;    }  /* 高1 */
.grade-high2   { background-color: #2e62a0;      }  /* 高2 */
.grade-high3   { background-color: darkgreen; }  /* 高3 */
.grade-grad    { background-color: #fac03d;   }  /* 既卒（臙脂色） */
.grade-others  { background-color: #666;      }  /* その他 */

.grade-18   { background-color:  #800000;   }
.grade-19   { background-color: #2e62a0;      }
.grade-20   { background-color: darkgreen; }
.grade-21   { background-color: #fac03d;   }
.grade-others { background-color: #666;    }
/* .faculty-... は既存のまま */
