.header h4 {
  margin: 25px auto 10px;
  padding: 0 25px;
  font-size: 1rem;
  line-height: 1.3em;
}
#navi{
  position: sticky;
  top: 0px;
  background-color: rgba(228,210,198,0.9);
  z-index: 2;
  text-align: center;
  padding: 15px;
}

#diarysearch{
  margin: 0px auto;
}
#diarysearch input{
  margin-top: 0.5rem;
  padding: 5px;
  width: 16em;
  max-width: 300px;
  font-size: 1rem;
}

#diarytext p{
  font-size: 1rem;
  text-align: justify;
  line-height: 1.5em;
  font-family: "ヒラギノ明朝 Pro W3","Hiragino Kaku Mincho Pro W3","ＭＳ Ｐ明朝","MS PMincho","ＭＳ 明朝","MS Mincho",serif;
}
#diarytext p.title{
  font-size: 1rem;
  text-align: left;
  margin: 1em 0 0.5em 0;
  font-family: sans-serif;
  font-weight: normal;
}
#diarytext p.title span.date{
  font-weight: bold;
  padding-right: 1em;
}
#diarytext span.refword{
  padding-bottom: 2px;
  border-width: 0 0 1px 0;
  border-color: #666;
  border-style: dashed;
  cursor: pointer;
}
#diarytext span.refword:hover{
  background-color: #fda;
}
#diarytext span.refword sup{
  font-size: 0.6rem;
  display: inline-block;
  padding: 0 0.25em;
   /*display: none;*/
}

#diarytext ul {
  margin: 1em 0 1em 0;
}
#diarytext li {
  font-size: 0.9em;
  text-align: left;
  line-height: 1.4em;
}
#diarytext ul.right li{
  text-align: right;
}
#diarytext ul.right p{
  text-align: right;
  font-size: 0.8em;
  line-height: 1.5em;
  font-family: sans-serif;
}

#diarytext span.hidedate{
  display: none;
}

#diarytext ul.note{
  text-align: left;
}
#diarytext ul.note li{
  font-size: 0.8em;
  line-height: 1.5em;
  margin-top: 0.75em;
  text-align: justify;
}

.pswp__custom-caption {
  background-color: rgba(0,0,0,0.3) !important;
  text-align: center !important;
  border-radius: 0 !important;
  color: #ccc;
}
.pswp__custom-caption small{
  font-size: 0.7em;
  color: #ccc;
}
.pswp__caption--empty {
  display: block !important;
}
