/* デバッグ用：確認後に外す */
/*
:lang(zh-Hans){
  outline: 2px solid rgba(255, 200, 0, .7);
  background: rgba(255, 235, 130, .35);
}
*/
body{
  background-color: #ffffff;
  color: #414141;
  padding: 0;
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN", Meiryo, メイリオ, "YuGothic", "游ゴシック", Helvetica, Arial, sans-serif;
  font-weight: normal;
  font-style: normal;
  line-height: 1.5;
  position: relative;
  cursor: auto;
  background-repeat: repeat;
  background-image: url(../img/bodyBK.png);
  background-size: 320px auto;
  background-position: 0px 0px;
  background-attachment: fixed;
  z-index: 1;
}

:lang(zh-Hans){
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Heiti SC", sans-serif;
  font-weight: 400;
}
/* call-dl内の簡体字（zh-Hans）は、call-dlと同じ太さにする */
.call-dl :lang(zh-Hans){
  font-weight: inherit;
}

.syllable-table  :lang(zh-Hans),
.rule-ttl  :lang(zh-Hans){
  font-weight: 700;
}
h2{
  border-top: solid 1px #ccc;
  border-bottom: solid 1px #ccc;
  padding: 10px;
  font-size: 140%;
  margin-top: 100px !important;
  clear: both;
}

h1+br+h2{
  margin-top: 20px !important;
}

h2 span{
  color: #559204;
}

#pr h2{
  border-top: 1px solid #EAA4A8;
  border-bottom: solid 1px #EAA4A8;
  padding: 10px;
  font-size: 140%;
  margin-top: 1em !important;
}

#pr h2 span{
  color: #559204;
}

h3{
  background-color: #C2BF7A;
  padding: 10px;
  border-left: solid 20px #559204;
  clear: both;
  margin-top: 80px !important;
}

h2+br+h3{
  margin-top: 5px !important;
}

#pr h3{
  background-color: transparent !important;
  font-weight: bold;
  border-left: none;
}

#pr h4{
  font-size: 22px;
  font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}

#pr h4 span{
  font-size: 26px;
  font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}

#pr h5 span{
  font-size: 26px;
  font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}

#pr h5{
  line-height: 40px;
  font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}

.crownchead{
  height: 80px;
  background-image: url(../img/crownc-jnew_logo.png);
  background-repeat: no-repeat;
  background-position: 98% 15px;
  background-size: auto 50px;
  z-index: -1;
  padding-right: 10px;
}

sup{
  color: #D23840 !important;
}

.caption{
  font-size: smaller;
}

i{
  font-family: FontAwesome;
  font-style: normal;
  padding-right: 0.2em;
  margin: 0 0 0 -3px;
  color: #C45545;
}

.columns{
  position: relative;
}

#content .panel.radius{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: none;
}

.book-sec{
  padding: 0.2rem 0;
  margin: 0 0 2.2rem;
}

#pr .book-sec > h2{
  margin: 2.4rem 0 0.9rem !important;
  padding: 0.55rem 0.7rem;
  background: transparent;
  letter-spacing: 0.02em;
}

#pr .book-sec{
  scroll-margin-top: 72px;
}

.py{
  font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
  color: #255DAE !important;
  margin: 0 0.15em;
  white-space: nowrap;
}

.ipa{
  font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
  color: #666;
  margin-left: 0.2em;
  white-space: nowrap;
}

.tone-dl, .sound-dl, .pair-dl{
  margin: 0.8rem 1rem 0;
}

.tone-dl dt, .sound-dl dt, .pair-dl dt{
  float: left;
  clear: left;
  width: 7em;
  font-weight: bold;
  padding: 0.2rem 0 0.1rem 0;
}

.tone-dl dd, .sound-dl dd, .pair-dl dd{
  margin-left: 7.5em;
  padding: 0.05rem 0 1rem 0;
}

.pair-dl dt:empty{
  width: 7em;
}

.lead2{
  margin-top: 1rem;
  font-weight: bold;
}

.ex-cn, .ex-py, .ex-ja{
  margin: 0.25rem 1rem;
}

.ex-cn{
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.ex-py{
  white-space: nowrap;
}

.ex-ja{
  color: #666;
  font-size: 0.98rem;
}

.pairline{
  font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
  color: #255DAE;
  letter-spacing: 0.02em;
}

.rule-ol{
  margin: 0.8rem 0 0 1rem;
}

.rule-ttl{
  font-weight: bold;
  margin: 0 1rem 0.2rem;
}

.r-list{
  margin: 0.7rem 1rem 0;
}

.r-list li{
  margin: 0.25rem 0;
}

#pr .tone-dl,
#pr .pair-dl{
  display: grid;
  grid-template-columns: 3.5em 1fr;
  column-gap: 0.5em;
  row-gap: 0;
  margin: 0.8rem 1rem 0;
}


#pr .sound-dl{
  display: grid;
  grid-template-columns: 8em 1fr;
  column-gap: 0.5em;
  row-gap: 0;
  margin: 0.8rem 1rem 0;
}

#pr .tone-dl dt, #pr .sound-dl dt, #pr .pair-dl dt,
#pr .tone-dl dd, #pr .sound-dl dd, #pr .pair-dl dd{
  float: none !important;
  clear: none !important;
  width: auto !important;
  margin: 0 !important;
}

#pr .tone-dl dt, #pr .sound-dl dt, #pr .pair-dl dt{
  align-self: start;
  font-weight: 700;
  padding: 0.2rem 0 0.1rem 0;
}

#pr .tone-dl dd, #pr .sound-dl dd, #pr .pair-dl dd{
  align-self: start;
  padding: 0.05rem 0 1rem 0;
}

#pr .tone-dl dd + dt:empty + dd,
#pr .sound-dl dd + dt:empty + dd,
#pr .pair-dl dd + dt:empty + dd{
  margin-top: -0.8rem;
}

#pr .pair-dl dt:empty,
#pr .tone-dl dt:empty,
#pr .sound-dl dt:empty{
  padding: 0;
}

.syllable-table{
  border-collapse: collapse;
  table-layout: fixed;
  background: rgba(255,255,255,0.92);
    border: solid 0px #ffffff!important;
    
}

.syllable-table th,
.syllable-table td{
/*  background: transparent !important;*/
    text-align: center !important;
}

.syllable-table thead th{
/*  background: transparent;*/
}

.syllable-table thead tr:last-child th{
  border-bottom: 2px solid #333;
}

.syllable-table tbody tr:nth-child(even){
/*  background: #f5f5f5;*/
}

.syllable-scroll{
  overflow-x: auto;
}

.syllable-table .ipa{
  font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
  color: #666;
  margin-left: .2em;
}

.syllable-notes .note{
  margin: .35rem 0;
  font-size: 0.95rem;
  color: #333;
}

.call-dl{
  margin: .5rem 0 1rem;
}

.call-dl dt{
  font-weight: bold;
  float: left;
  clear: left;
  width: 12em;
}

.call-dl dd{
  margin-left: 12.5em;
  margin-bottom: .35rem;
}



.syllable-table th,.syllable-table td{
  padding: .35rem .45rem;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
    text-align: center !important;
}

.syllable-table col.cw90{
  width: 90px;
}
.syllable-table col.cw60{
  width: 60px;
}
.syllable-table col.cw100{
  width: 100px;
}

.bl-thin{
  border-left: 1px solid rgba(0,0,0,.22) !important;
}

.br-thin{
  border-right: 1px solid rgba(0,0,0,.22) !important;
}

.bt-thin{
  border-top: 1px solid rgba(0,0,0,.22) !important;
}

.bb-thin{
  border-bottom: 1px solid rgba(0,0,0,.22) !important;
}

.bl-medium{
  border-left: 3px solid rgba(0,0,0,.70) !important;
}

.br-medium{
  border-right: 3px solid rgba(0,0,0,.70) !important;
}

.bt-medium{
  border-top: 3px solid rgba(0,0,0,.70) !important;
}

.bb-medium{
  border-bottom: 3px solid rgba(0,0,0,.70) !important;
}

.bl-none{
  border-left: none !important;
}

.br-none{
  border-right: none !important;
}

.bt-none{
  border-top: none !important;
}

.bb-none{
  border-bottom: none !important;
}



/* 上罫線を消す：ヘッダー左上ブロック（1行目・2行目の先頭3セル）だけ */
.syllable-table thead tr:nth-child(-n+2) > th:nth-child(-n+3){
  border-top: none !important;
}

/* 左罫線を消す：ヘッダー左上ブロック（1行目・2行目の先頭3セル）だけ */
.syllable-table thead tr:nth-child(-n+2) > th:nth-child(-n+3){
  border-left: none !important;
}


.syllable-table col.cw180{
  width: 180px;
}


.syllable-table tbody td{
  height: 78px;
  vertical-align: middle !important;
}




.syllable-table th:nth-child(3){
  text-align: right !important;
}


.syllable-table th:nth-child(2),
.syllable-table td:nth-child(2){
  position: sticky !important;
  background: #fff !important;
  z-index: 6;
    
}


/* 薄い影を追加 */
.syllable-table th:nth-child(2)::before,
.syllable-table td:nth-child(2)::before{
  content: "";
  position: absolute;
  top: -1px;
  right: -10px;
  width: 10px;
  height: calc(100% + 2px);
  pointer-events: none;
  box-shadow: 8px 0 10px rgba(0,0,0,0.9);
}


.syllable-table th:nth-child(2),
.syllable-table td:nth-child(2){
 position: sticky !important;
  background: #fff !important;
  left: 0;
  z-index: 6;

}



/* Syllable table sizing (restored) */
.syllable-table{
  width: 100%;
  min-width: 1400px; /* 必要なら 1600px などに */
  table-layout: fixed;
}


.audiojs,.audiojs *{
  float: none !important;
}




.syllable-table tbody td{
  height: 78px;
  vertical-align: middle !important;
}

.syllable-table td.audio-cell{
  padding: 0 !important;
  vertical-align: middle !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
}

.syllable-table th.vowel-head{
  background: #fff !important;
}

@media (min-width: 960px) {
  #fixed-hscroll{
    position: fixed;
    bottom: 0;
    height: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    z-index: 9999;

    /* 見えない問題を潰す */
    background: rgba(255,255,255,.9);
    border-top: 2px solid #E1906E;
  }
  #fixed-hscroll-inner{ height: 1px; }
}
/* =========================================================
   Syllable table: force white background for specific header cells
   - Only the top-left block (row 1, col 1-3)
   - And the "声母" cell (row 2, col 1)
========================================================= */

/* 1) 左上ブロック（1行目・左3セル）を白 */
.syllable-table thead tr:nth-child(1) > th:nth-child(-n+3){
  background: #fff !important;
    border-top:none !important;
     border-left:none !important;
}

/* 2) 「声母」セル（2行目・1セル目）を白 */
.syllable-table thead tr:nth-child(2) > th:nth-child(-n+3){
  background: #fff !important;
}
/* 1列目（tbody の先頭列）を強制的に白 */
.syllable-table tbody td:first-child{
  background: #fff !important;
  background-color: #fff !important;
}

@media only screen and (max-width:40em){
  #pr h5 span{
    font-size: 20px;
    font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
  }
  #pr h5{
    line-height: 40px;
  }
  .crownchead{
    height: 65px;
    background-image: url(../img/crownc-jnew_logo.png);
    background-repeat: no-repeat;
    background-position: 15px 15px;
    background-size: auto 40px;
    z-index: -1;
    padding-right: 20px;
  }
  .tone-dl dt, .sound-dl dt, .pair-dl dt{
    float: none;
    width: auto;
  }
  .tone-dl dd, .sound-dl dd, .pair-dl dd{
    margin-left: 0;
  }
  #pr .book-sec{
    scroll-margin-top: 64px;
  }
  #pr .tone-dl,
  #pr .sound-dl,
  #pr .pair-dl{
    grid-template-columns: 1fr;
  }
  .syllable-table{
    min-width: 980px;
  }
  .call-dl dt{
    float: none;
    width: auto;
  }
  .call-dl dd{
    margin-left: 0;
  }
}


