:root {
  --color-blue-hover: #f0f6fa;
  --color-blue: rgb(20, 110, 190);
  --color-brown-hover: #fefae7;
  --color-brown: #8a4b35;
  --h1: 2em;
  --h2: 1.5em;
  --h3: 1.125em;
  --h4: 1.05em;
}

#wrap:not(:root){
  background: #f5f2ec;
  color: #2c2c2c;
  font-family: var(--font-notosans);
}

#keyword-header {
  margin-bottom: 1em;
}

#keyword {
  font-size: max(2.8rem, min(5vw, 3.4rem));
  margin-bottom: 0.2em;
  margin-top: 0;
  position: relative;
  line-height: 1.3;
  font-weight: 600;
}

#reading {
  font-size: 1.4rem;
  color: #666;
  margin-bottom: 1em;
  font-weight: 500;
}

#synonyms {
  font-size: 1.6rem;
  display: none;
  background: #c0e1df;
  padding: 0.5em 1em;
  margin: 10px 0 1.2em;
}

#synonyms .synonym {
  margin-right: 2.5em;
  display: inline-block;
}
#synonyms .synonym a {
  position: relative;
  color: #2c2c2c;
  font-weight: 300;
  transition: .25s;
}
#synonyms .synonym a:hover,
#keywords .keyword a:hover,
#related-articles a:not(:root):hover{
  color: var(--color-brown);
  text-decoration: underline;
}
#synonyms .synonym a::before,
#keywords .keyword a::before,
#related-articles a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -22px;
  display: inline-block;
  width: 9px;
  height: 9px;
  margin: auto;
  -webkit-transform: rotate(45deg) translateY(-50%);
  transform: rotate(45deg) translateY(-50%);
  vertical-align: middle;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  border-bottom-color: transparent !important;
  border-left-color: transparent !important;
}

#synonyms:not(:empty)>div::before {
  content: "\540C\7FA9\8A9E";
  font-weight: 600;
  margin-right: 2.5em;
  white-space: nowrap;
}

#keyword.initiai-head{
  font-size: max(2.2rem, min(3vw, 2.6rem));
  font-weight: 600;
  padding-bottom: .1em;
}
.initial {
  font-size: max(3rem, min(4vw, 3.4rem));
  font-weight: 900;
  margin-right: 0.1em;
}

#definitions p {
  line-height: 1.8;
  text-align: justify;
  font-size: 1.6rem;
  margin-bottom: 0;
  font-weight: 300;
}

.content .source {
  font-size: 1.4rem;
}
.content .source .vol::before {
  content: "Vol.";
  margin-left: 5px;
}
.content .source .no::before {
  content: "No.";
  margin-left: 5px;
}

#definitions input[type="checkbox"] {
  display: none;
}

#definitions label {
  display: block;
  cursor: pointer;
  font-size: 1.6rem;
  position: relative;
  padding: 10px 0 5px 0;
  margin-bottom: 0;
  margin-top: 15px;
  transition: 0.25s;
  border-bottom: 10px solid #fff;
}
#definitions label:hover {
  color: var(--color-brown);
  background: var(--color-brown-hover);
}

#definitions label::before {
  position: absolute;
  top: 20%;
  left: 52px;
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: auto;
  content: "";
  -webkit-transform: rotate(135deg) translateY(-50%);
  transform: rotate(135deg) translateY(-50%);
  vertical-align: middle;
  border-top: 1px solid #2c2c2c;
  border-right: 1px solid #2c2c2c;
  border-bottom-color: transparent !important;
  border-left-color: transparent !important;
  transition: 0.25s;
}
#definitions label:hover::before {
  border-top-color: var(--color-brown);
  border-right-color: var(--color-brown);
}

#definitions input[type="checkbox"]:checked + label::before {
  content: "";
  top: 63%;
  left: 61px;
  -webkit-transform: rotate(-45deg) translateY(-50%);
  transform: rotate(-45deg) translateY(-50%);
}

.definition-header:not(:first-of-type)::after {
  content: "";
  width: 100%;
  position: absolute;
  left: 0;
  top: 0px;
}
#definitions input[type="checkbox"]:checked + .definition-header:hover {
  background: transparent;
}

#definitions label[for="definition1"]+.definitions-one {
  margin-top: 1.8em !important;
  padding-top: 2em !important;
}
#definitions label[for="definition1"]{
  display: none;
}
#definitions .definition {
  display: none;
  overflow: hidden;
}

#definitions input[type="checkbox"]:checked + .definition-header + .definition {
  display: block;
  background: #fff;
  padding: max(0em, min(1.5vw, 1em)) max(1.5em, min(4vw, 2.5em)) max(2em, min(3vw, 2.5em));
}

#keywords {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1em;
  font-size: 1.6rem;
  align-items: center;
  padding: max(1.2em, min(3vw, 2em)) max(1em, min(3vw, 2em));
  background-color: #fff;
  border-top: dashed 2px;
}

#keywords .keyword a {
  text-decoration: none;
  margin-left: 20px;
  position: relative;
  display: block;
  color: inherit;
  transition: .25s;
}
#keywords .keyword a::before {
  top: 45%;
  border-color: #fabc2c;
}
#latest-words #keywords {
  padding: 1em 1em 2em 1em;
}

/* 下部の注釈 */
#notifications {
  margin: max(3.5em, min(6vw, 5em)) 0 0;
}

#notifications p {
  font-size: 1.2rem;
  margin-bottom: .4em;
  padding-left:1.2em;
  text-indent:-1.2em;
  color: #808080;
}
#notifications p:last-of-type{
  margin-bottom: 0;
}
#notifications p::before {
  content: "※";
  margin-right: 2px;
  position: relative;
  top: -1px;
}

/* 出典書籍 */
#contents-main a.source {
  display: flex;
  align-items: flex-start;
  gap: max(10px, min(2vw, 15px));
  color: #4d4c49;
  border: 1px solid #ddd;
  padding: max(1em, min(3vw, 1.4em)) max(1em, min(4vw, 2em))
    max(1em, min(3vw, 1.4em)) max(1em, min(3vw, 1.4em));
  margin-top: 20px;
  position: relative;
  max-width: 88%;
  margin-left: auto;
  transition: 0.25s;
}
a.source::before,
.sell-article::before {
  content: "";
  background: url(/jikkenigaku/keyword/image/source-head.png) no-repeat;
  left: -62px;
  top: 0;
  position: absolute;
  transition: 0.25s;
  width: 50px;
  height: 22px;
  background-size: contain;

}
#contents-main a.source:hover,
#contents-main .sell-article:hover {
  text-decoration: none;
  background: var(--color-brown-hover);
  border-color: var(--color-brown);
}
a.source:hover::before,
#contents-main .sell-article:hover::before {
  color: var(--color-brown);
  border-color: var(--color-brown);
}
a.source * {
  line-height: 1.4;
}
a.source img {
  width: max(75px, min(10vw, 85px));
  border: 1px solid #ddd;
}
a.source h1 {
  margin: 0 0 4px;
  font-size: max(1.6rem, min(3vw, 1.8rem));
  font-weight: 600;
}
a.source h2 {
  margin: 0 0 8px;
  font-size: max(1.2rem, min(3vw, 1.4rem));
  font-weight: 600;
}
a.source .authors {
  font-size: max(1.2rem, min(2vw, 1.4rem));
  font-weight: 300;
}
#definitions a.source .page {
  font-size: 1.3em;
  margin-top: 4px;
  margin-bottom: 0;
  line-height: 1.4;
}

a.source .page::after {
  content: "\30DA\30FC\30B8\306B\63B2\8F09";
}

/* キーワードが使われている記事一覧 */
#related-articles {
  font-size: 1.4rem;
  position: relative;
  margin: 4em 0 0;
  border-top: dashed 2px;
  padding-top: 5px;
}
#related-articles::before {
  content: "\3053\306E\30AD\30FC\30EF\30FC\30C9\304C\4F7F\308F\308C\3066\3044\308B\8A18\4E8B";
  margin-bottom: 1em;
  display: block;
  font-weight: 600;
  font-size: 1.6rem;
  color: #4d4c49;
}
/* #related-articles::after {
  font: var(--fa-font-solid);
  content: "\f00c";
  font-size: 140%;
  position: absolute;
  top: 1em;
  left: 1.2em;
  color: #92908c;
} */
#related-articles a:not(:root) {
  display: block;
  position: relative;
  margin-left: 2em;
  color: inherit;
  font-weight: 300;
  transition: .25s;
  font-size: 1.5rem;
  text-decoration: none;
}
#related-articles a::before{
  border-color: #2c2c2c;
  border-width: 1px;
  width: 7px;
  height: 7px;
  top: 49%;
  left: -18px;
}
#related-articles a:not(:last-of-type){
  margin-bottom: .8em;
}

/* 出典記事 */
#contents-main .sell-article{
  color: #4d4c49;
  border: 1px solid #ddd;
  padding: .8em 1em;
  margin-top: 20px;
  margin-left: auto;
  position: relative;
  max-width: 88%;
  transition: 0.25s;
  font-size: max(1.6rem, min(2vw, 1.8rem));
  display: block;
  font-weight: 600;
}
.sell-article span{
  display: block;
  font-size: max(1.2rem, min(2vw, 1.4rem));
  font-weight: 300;
  margin-top: 4px;
}

.index-list-wrap{
  max-width: 400px;
  margin-inline: auto;
}
#index-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0;
  border-left: 1px solid #222;
  border-right: 1px solid #222;
  border-top: 1px solid #222;
  border-bottom: 1px solid #ece9e3;
  position: relative;
}

#index-list.num {
  grid-template-columns: 1fr;
  width: 100%;
  justify-content: flex-start;
  border-bottom: none;
  border-right: none;
  border-top: none;
}

#contents-main #index-list a {
  color: inherit;
  font-weight: 400;
  background: #fff;
  display: block;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0 10px;
}
#contents-main #index-list li:not(:nth-child(-n + 5)) a {
  border-top: 1px solid #ece9e3;
}
#contents-main #index-list:not(.num) li:not(:nth-child(5n)) a {
  border-right: 1px solid #ece9e3;
}
#contents-main #index-list.num a {
  border-top: none;
  border-bottom: 1px solid #222;
  border-right: 1px solid #222;
  padding: 0;
}
#contents-main #index-list a:hover {
  background: var(--color-brown-hover);
  color: var(--color-brown);
  text-decoration: none;
  position: relative;
}
#contents-main #index-list a:hover::before {
  content: "";
  box-shadow: 0px 0px 0 3px var(--color-brown);
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* article以外の部分 */
#contents-main {
  display: flex;
  justify-content: center;
  max-width: 1100px;
  margin-top: 50px;
  font-size: 10px;
  margin-inline: auto;
}

#contents-main a {
  color: var(--color-brown);
}

.main {
  width: 57vw;
  margin-bottom: 7em;
}

#widget {
  width: 260px;
  height: 100%;
  margin-bottom: 8em;
}

.widget-logo{
  display: none;
  margin-bottom: 30px;
  margin-inline: auto;
  max-width: 198px;
}

#widget-menu{
  background: #ece9e3;
  padding: 18px;
}

#widget h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 0px;
  margin-bottom: 15px;
  color: #4d4c49;
}

#widget h3 svg {
  margin-right: 8px;
  fill: #92908c;
  width: 20px;
  height: auto;
  position: relative;
  top: 2px;
}

#widget a {
  cursor: pointer;
  transition: 0.25s;
}

#widget ul {
  padding-left: 0em;
}

#widget li {
  list-style: none;
  font-weight: 400;
}

/* 検索 */
#search-area {
  margin: 0 0 35px;
  margin-inline: auto;
  width: 100%;
}
#search-area input {
  border-radius: 50px 0 0 50px;
  font-size: 16px;
  box-shadow: none;
  border: 2px solid #222;
  border-right: none;
}
#search-area input::placeholder {
  font-weight: 500;
  font-size: 14px;
  color: rgb(170, 170, 170);
}
#search-area button {
  border-radius: 0 50px 50px 0;
  background: #222;
  border-color: #222;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  padding: 7px 11px 7px 8px;
}
#search-area button svg{
  width: 17px;
  fill: #fff
}
.input-group-btn:last-child > .btn,
.input-group-btn:last-child > .btn-group {
  margin-left: 0;
}
.input-lg,
.form-horizontal .form-group-lg .form-control {
  height: 36px;
}

/*キーワード集トップ*/
#keyword-logo {
  max-width: 440px;
  margin-inline: auto;
  width: 76%;
  margin-top: 0;
}

#foreword {
  background: url(/jikkenigaku/keyword/image/key-deco.svg) no-repeat;
  background-position: top left;
  padding: max(2em, min(6vw, 5em)) 0 1.5em max(4em, min(8vw, 7em));
  background-size: max(35px, min(6.5vw, 55px));
  margin-top: 3.5em;
  margin-bottom: max(3em, min(6vw, 5em));
}
.foreword-head {
  font-size: max(2rem, min(4vw, 2.4rem));
  font-weight: 500;
  line-height: 1.4;
}
.foreword-head small{
  font-size: 80%;
}
#foreword p:not([class]) {
  font-size: max(1.6rem, min(3vw, 1.8rem));
  font-weight: 300;
  line-height: 1.7;
}
#latest-words {
  font-size: max(1.6rem, min(3vw, 1.8rem));
  position: relative;
}
#latest-words::after {
  content: '…ほか';
  font-size: 80%;
  font-weight: 400;
  margin-left: 0.5em;
  position: absolute;
  bottom: 1em;
  right: 1em;
}

#latest-words h2 {
  font-size: 2rem;
  margin-bottom: 0.5em;
  margin-top: 0;
  position: relative;
  line-height: 1.3;
  font-weight: 600;
}
#latest-words ul {
  padding: 0;
}
#latest-words ul li {
  list-style-type: none;
}


/* 関連書籍_start */
#recommendbox {
	background-color:#ece9e3;
	margin-top:5em;
	
}

#recommendbox h5 {
	font-size: 1.4rem;
	color: #4d4c49;
}

#recommendbox h5 span {
	color: #92908c;
}

#recommendbox #recommendlist {
	height:145px;
	padding:5px;
	background-color:white;
	overflow:hidden;
	white-space:nowrap;
	font-size:0;
	position:relative;
}

#recommendbox #recommendlist li {
	padding:0px 7px;
	margin:0px;
	position:relative;
}

#recommendbox #recommendlist li img {
	vertical-align: bottom;
}

#recommendbox .recommendchange {
	display:none;
	border-radius:10px;
	padding:5px 10px;
	background-image:url("/images/recommend_arrow_back.png");
	color:gray;
	cursor:pointer;
	font-size:x-large;
}

#recommendforward {
	position:absolute;
	top:85px;
	right:10px;
}

#recommendbackward {
	position:absolute;
	top:85px;
	left:10px;
}
/* 関連書籍_end */





@media (min-width: 990px) {
  #widget {
    margin-left: 50px;
    position: sticky;
    top: 0;
    left: 0;
  }

  #contents-main .visible-sp {
    display: none;
  }
}

@media not all and (min-width: 990px) {
  #contents-main {
    display: block;
  }
  .main {
    width: 100%;
    margin: 2.5em auto 0;
  }

  #keyword-logo{
    margin-top: 1.2em;
  }

  #keywords {
    grid-template-columns: auto;
  }

  #widget .widget-logo{
    display: none;
  }
  #widget{
    margin: max(5em, min(10vw, 9em)) calc(50% - 50vw) 0;
    width: auto;
    display: grid;
  }
  #widget-menu {
    padding: 34px 20px 40px;
  }
  #widget h3{
    font-size: 1.8rem;
    max-width: 400px;
    margin-inline: auto;
  }
  #widget h3 svg{
    width: 22px;
  }

  #contents-main .sp-title {
    margin: 0;
    border-radius: 0;
    height: max(40px, min(5vw, 45px));
    justify-content: space-between;
    align-items: center;
    z-index: 5;
    border-bottom: 2px solid #fff;
    display: none;
  }
  #contents-main .sp-title .toIndex img {
    width: max(160px, min(17vw, 170px));
  }
  #contents-main .sp-title .toSearch img {
    width: max(52px, min(7vw, 60px));
  }
  #contents-main .hidden-sp {
    display: none;
  }

  #search-area {
    max-width: 400px;
  }
  .input-lg,
  .form-horizontal .form-group-lg .form-control {
    height: 42px;
  }
  #search-area button {
    padding-left: 10px;
    padding-right: 13px;
  }

  #contents-main #index-list a {
    height: calc(60px - 1vh);
  }

  #foreword{
    padding-right: 5px;
  }
}

@media (min-width: 767px) {
  #synonyms>div{
  display: flex;
  }
}

@media not all and (min-width: 767px) {
  #synonyms:not(:empty)>div::before {
    margin-right: 20px;
  }
  .synonyms-inner {
    display: inline-block;
  }
  #synonyms .synonym {
    margin-right: 20px;
  }
  #synonyms .synonym a {
    word-break: break-all;
    display: inline-block;
    line-height: 1.3;
    margin-left: 17px;
    font-size: 14px;
  }
}

@media not all and (min-width: 640px) {
  #contents-main .sell-article{
    padding: .8em;
  }
  a.source::before, .sell-article::before{
    left: -43px;
    width: 39px;
  }
  a.source h1 {
    padding-right: 0;
  }

  #related-articles::after{
    left: 1em;
  }
}


/* 実験医学ヘッダ部分 */
#headerUp {
  position: relative;
}

div#header #headerUp .logo-main {
  margin-left: 0;
  width: min(22%, 240px);
}

div#header #headerUp .commonmenu {
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 0;
  display: flex;
  flex-direction: row-reverse;
  width: 50%;
}

.navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus{
  background-color: #b5e5df;
}

div#header #headerUp .commonmenu ul.yodo_custome_menu {
  display: grid;
  grid-template-columns: auto auto auto;
  margin: 0 10px;
}
div#header #headerUp .commonmenu ul.yodo_custome_menu li {
  padding-right: 8px;
  padding-left: 8px;
}
div#header #headerUp .commonmenu ul.yodo_custome_menu .cart {
  margin: auto;
  padding-left: 12px;
}
div#header #headerUp .commonmenu ul.yodo_custome_menu a {
  display: grid;
  justify-content: center;
  transition: all 0.25s;
  gap: 2px;
}
div#header #headerUp .commonmenu ul.yodo_custome_menu a:hover {
  text-decoration: none;
  opacity: 0.65;
}
a img[src*="login-i"] {
  margin: 0 auto;
}
a img[src*="-i"] + p,
a img[src*="-i"] + span + p {
  margin: 0;
  text-align: center;
  font-size: 10px;
  color: #333;
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ",
    Meiryo, sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
}
.yodo_custome_menu img[src*="-i"] {
  width: 28px;
  margin: auto;
}
p img[src*="-txt"] {
  width: 38px;
}
p img[src*="login-txt"] {
  width: 41px;
}
p img[src*="loggingin-txt"] {
  width: 51px;
}

@media (min-width: 768px) {
  div#header .navbar-template #headerUp {
    padding: 15px max(10px, min(2.5vw, 30px));
  }
}
@media not all and (min-width: 940px) {
  div#header #headerUp .logo-main {
    margin-top: 1.5vh;
  }
}
@media not all and (min-width: 990px) {
  .navbar-toggle {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  #contents-main {
    padding: 0;
    margin: 0;
  }
  .breadcrumb {
    margin-top: 0 !important;
    margin-bottom: 0;
    padding: max(12px, min(1.5vw, 15px)) 0 0;
    border-radius: 0;
  }
  div#header .navbar-template #headerUp {
    padding-left: 15px;
  }
  div#header #headerUp .logo-main {
    width: min(40%, 140px);
    margin-top: 15px;
  }

  a img[src*="faq-i"],
  a img[src*="login-i"] {
    width: 23px;
    margin: auto;
  }
  a img[src*="-i"] + p,
  a img[src*="-i"] + span + p {
    line-height: 1;
  }
  p img[src*="-txt"] {
    width: 30px;
  }
  p img[src*="login-txt"],
  p img[src*="loggingin-txt"] {
    margin-top: 1px;
  }
  p img[src*="loggingin-txt"] {
    width: 40px;
  }
  p img[src*="login-txt"] {
    width: 33px;
  }

  .sp-icon-wrap {
    position: absolute;
    right: 75px;
    top: -5px;
    display: inline-flex;
  }
  .sp-icon-wrap a {
    display: grid;
    gap: 2px;
  }
}

