/* ==========================
   의태어.css
   ========================== */

body {
  font-family: "Noto Sans KR", "Noto Sans JP", sans-serif;
  background-color: #f9fbff;
  margin: 0;
  padding: 0;
  color: #222;
}

/* --------------------------
   설명문
-------------------------- */
#sound-word-intro {
    background-color: #fffaf0; /* 부드러운 크림색 배경 */
    border-left: 5px solid #ff7f50; /* 포인트 컬러 강조선 */
    padding: 20px 25px;
    margin: 0 80px;
    margin-top: 70px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    font-family: 'Noto Sans KR', 'Noto Sans JP', sans-serif;
    line-height: 1.7;
    color: #333;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
  }

#sound-word-intro h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #ff6347; /* 제목 포인트 컬러 */
}

#sound-word-intro p {
    font-size: 1em;
    margin-bottom: 12px;
}

#sound-word-intro ul {
    list-style: disc inside;
    margin-left: 0;
    padding-left: 0;
}

#sound-word-intro li {
    margin-bottom: 10px;
}

#sound-word-intro em {
    font-style: normal;
    color: #ff4500; /* 단어 강조 색상 */
    font-weight: bold;
}

/* 마우스 오버 효과 */
#sound-word-intro:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}




/* --------------------------
   상단 버튼 영역
-------------------------- */
#heada {
  text-align: center;
  margin: 30px 0 20px;
}

.Topic {
  display: inline-flex;
  gap: 10px;
}

.button {
  background: #0078d4;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 10px 22px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.25s ease;
}

.button:hover {
  background: #005fa3;
  transform: translateY(-2px);
}

.button span {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* --------------------------
   테이블 디자인
-------------------------- */
.hiragana-container {
  width: 95%;
  max-width: 1000px;
  margin: 0 auto 60px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

thead {
  background-color: #0078d4;
  color: white;
}

th, td {
  padding: 14px 12px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

tbody tr:hover {
  background-color: #f1f9ff;
  transition: background-color 0.2s;
}

/* 첫 번째 열 (일본어) 강조 */
td:first-child {
  font-weight: 600;
  color: #005fa3;
  font-family: "Noto Sans JP", sans-serif;
}

/* 짝수 줄 줄무늬 효과 */
tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

/* 모바일 반응형 */
@media (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    padding: 10px;
  }

  td {
    border: none;
    display: flex;
    justify-content: space-between;
    padding: 8px 6px;
  }

  td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #0078d4;
  }
}


html body ruby rt {
  color: #0078d4;
  font-size: 0.8em;
  font-weight: 600;
}
