/* ================================================================
   speaking/rhythm-stress — local.css
   ================================================================ */

/* 比較テーブル */
.rs-compare-wrap {
  overflow-x: auto;
  margin: 1.2rem 0 1.5rem;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
}
.rs-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  min-width: 360px;
}
.rs-compare-table thead th {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  padding: .6rem 1rem;
  text-align: left;
  font-family: 'Raleway', sans-serif;
  font-size: .74rem;
  letter-spacing: .05em;
}
.rs-compare-table thead th:first-child {
  width: 5.5rem;
  border-radius: 8px 0 0 0;
}
.rs-compare-table thead th:last-child {
  border-radius: 0 8px 0 0;
}
.rs-compare-table tbody tr:nth-child(odd) {
  background: var(--lb5);
}
.rs-compare-table tbody tr:nth-child(even) {
  background: #fff;
}
.rs-compare-table tbody td {
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
  line-height: 1.6;
  vertical-align: top;
}
.rs-lang {
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}

/* ストレス表記ブロック */
.rs-stress-block {
  background: var(--blue);
  color: #fff;
  font-family: 'Courier New', Courier, monospace;
  font-size: .92rem;
  padding: .9rem 1.25rem;
  border-radius: 8px;
  margin: 1rem 0;
  line-height: 1.8;
  letter-spacing: .04em;
}
.rs-stress-block strong {
  color: var(--orange);
  font-weight: 800;
}

/* 言い換えブロック */
.rs-rephrase {
  background: rgba(70,162,218,.07);
  border-left: 3px solid var(--lb);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.3rem;
  margin: .8rem 0 1.2rem;
}
.rs-rephrase__before {
  font-family: 'Courier New', Courier, monospace;
  font-size: .88rem;
  color: var(--gray);
  margin: 0 0 .5rem;
  line-height: 1.6;
}
.rs-rephrase__arrow {
  font-size: 1.3rem;
  color: var(--lb);
  line-height: 1;
  margin-bottom: .55rem;
}
.rs-rephrase__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.rs-rephrase__list li {
  font-family: 'Courier New', Courier, monospace;
  font-size: .88rem;
  color: var(--black);
  padding-left: 1.4em;
  position: relative;
  line-height: 1.65;
}
.rs-rephrase__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--lb);
  font-family: sans-serif;
  font-size: .82rem;
}

/* ステップカード */
.rs-step {
  display: flex;
  gap: 1.1rem;
  margin-bottom: 1.2rem;
  padding: 1.2rem 1.3rem;
  background: #fff;
  border: 1px solid rgba(4,63,109,.1);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(4,63,109,.05);
}
.rs-step__num {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--lb);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Raleway', sans-serif;
  margin-top: .1rem;
}
.rs-step__body {
  flex: 1;
  min-width: 0;
}
.rs-step__title {
  font-weight: 700;
  color: var(--blue);
  margin-bottom: .5rem;
  font-size: .97rem;
  line-height: 1.4;
}
.rs-step__body > p {
  margin-bottom: .6rem;
}
.rs-step__body > p:last-child {
  margin-bottom: 0;
}

/* シュワ音ボックス */
.rs-info-box {
  background: rgba(4,63,109,.05);
  border: 1px solid rgba(4,63,109,.13);
  border-radius: 8px;
  padding: .9rem 1.1rem;
  margin-top: .9rem;
}
.rs-info-box__title {
  font-size: .76rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: 'Raleway', sans-serif;
  margin-bottom: .5rem;
}
.rs-info-box p {
  font-size: .88rem;
  line-height: 1.8;
  color: var(--gray);
  margin: 0;
}

@media (max-width: 640px) {
  .rs-step {
    flex-direction: column;
    gap: .65rem;
  }
  .rs-stress-block {
    font-size: .82rem;
    padding: .75rem .9rem;
    word-break: break-word;
  }
  .rs-rephrase__list li {
    font-size: .83rem;
  }
}
