@charset "UTF-8";

div.textbook_page {
  color: #3c2c1c;
  font-size: 14px;
  text-align: center;
  font-weight: normal;
}

#textbook-main h1,
#textbook-main h2,
#textbook-main h3,
#textbook-main ul li {
	position: unset;
	font-size: 18px;
	border: none;
	padding: 0;
	margin: 0;
	background: none;
	text-align: unset;
}
#textbook-main h1.page-title {
	line-height: unset;
	padding: 0;
	text-align: unset;
}
#textbook-main a {
  outline: none;
  overflow: hidden;
  font-weight: normal;
  text-decoration: none;
  cursor: pointer;
}
#textbook-main a:hover {
    text-decoration: underline;
}
#textbook-main a:visited {
  color: #3c2c1c;
  text-decoration: underline;
}
#textbook-main a:link {
  color: #3c2c1c;
}
#textbook-main a[class^=btn-] {
  touch-action: manipulation;
  display: inline-block;
  border-radius: 4px;
  vertical-align: top;
  text-decoration: none;
  margin-bottom: 20px;
}
#textbook-main a:hover[class^=btn-] {
    color: #3c2c1c;
}
#textbook-main img {
  vertical-align: middle;
  border-style: none;
}
#textbook-main .img-box:hover img{
    opacity:0.75
}

#textbook-main select {
  height: 30px;
  border-radius: 3px;
  border: 1px #dcd6d0 solid;
  background-color: #ffffff;
  vertical-align: middle;
  touch-action: manipulation;
}
main#textbook-main  {
  width: 100%;
  z-index: 0 !important;
  text-align: center;
}
main#textbook-main  section {
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 40px;
}
#textbook-index div {
  position: relative;
}
#textbook-index div .img-box {
	display: block;
	margin-bottom: 15px;
}
#textbook-index div .img-box img {
  width: 100%;
  height: auto;
}
#textbook-index div h2 {
  display: inline-block;
  position: absolute;
  width: auto;
}
#textbook-index div h2 img {
  color: #ffffff;
  display: inline-block;
  background-color: rgba(60,45,25,0.85);
}
#textbook-index div h2 span {
  vertical-align: top;
  display: inline-block;
  background-color: rgba(255,255,255,0.85);
}
#textbook-index div strong {
  display: block;
  margin-bottom: 10px;
  text-align: left;
  font-weight: 600;
}
#textbook-index div p {
	display: block;
	text-align: left;
	color: #887766;
}

#dic-cat-top .bx-sdw {
  text-align: left;
}
#dic-cat-top h2 {
  width: auto;
}
#dic-cat-top h2 a {
	display: block;
	background-color: #fcf9f3;
}
#dic-cat-top .ex-box {
  width: 100%;
}
#dic-cat-top .ex-box a {
	display: inline-block;
	float: right;
}
#dic-cat-top .ex-box a img {
  width: 100%;
  height: auto;
}

#textbook-detail div.content {
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
}
#textbook-detail h2,
#textbook-detail h3,
#textbook-detail ul li {
  font-size: 14px !important;
  font-weight: normal;
  overflow: hidden;
  line-height: 2;
  border-top: 1px #dcd6d0 solid;
  border-bottom: none!important;
}
#textbook-detail h2 span,
#textbook-detail h3 span,
#textbook-detail ul li span{
  display: inline-block;
  background-color: #fcf9f3;
}
#textbook-detail article strong {
  display: block;
  font-weight: 600;
}

#textbook-main .pager {
  display: block;
  margin: 0 auto;
  text-align: center;
}
#textbook-main .pager a,
#textbook-main .pager span {
  display: inline-block;
  line-height: 30px;
  border-radius: 15px;
  border: 1px #dcd6d0 solid;
  vertical-align: top;
  padding: 0 15px;
  margin: 5px 3px;
}
#textbook-main .pager a {
  text-decoration: none;
}
#textbook-main .pager span {
  color: #cccccc;
}
#textbook-main .pager a:hover {
  color: #fff;
  background-color: #3c2c1c;
  text-decoration: none;
}
#textbook-main .pager .prev {
  float: left;
}
#textbook-main .pager .next {
  float: right;
}

#textbook-main .bx-sdw {
	border: 1px #efe9e3 solid;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
#textbook-main .bx-sdw img {
  border: none !important;
}
#textbook-main .ttl-lower-page {
	background: none;
}
#textbook-main .page-title::after,
#textbook-main .ttl-lower-page::after {
  content: '';
  width: 50px;
  height: 6px;
  background-color: #3c2c1c;
  display: block;
  margin: 0 auto;
}
#textbook-main .textbook_page dt {
  font-weight: normal;
}
#textbook-main .btn-default,
#textbook-main .btn-default-s {
  color: #3c2c1c !important;
  border: 1px #3c2c1c solid;
  background-color: #ffffff;
  background-position: right top;
}
#textbook-main .btn-default:hover,
#textbook-main .btn-default-s:hover,
#textbook-main .btn-default:active,
#textbook-main .btn-default-s:active {
    color:#ffffff !important;
    text-decoration:none;
    background-color:#3c2c1c;
    background-position:right bottom;
  transition: background-color 0.1s linear; /* 追加 */
}
#textbook-main .hover,
#textbook-main .hover {
  color:#ffffff !important;
  text-decoration:none;
  background-color:#3c2c1c;
  transition: background-color 0.1s linear; /* 追加 */
}

#textbook-main p.read-more-r,
#textbook-main div.read-more-r {
  text-align: right !important;
}
#textbook-main a.read-more-r,
#textbook-main span.read-more-r,
#textbook-main .read-more-r>a {
	line-height: 1;
	padding-right: 18px;
	position: relative;
}
#textbook-main a.read-more-r::after,
#textbook-main span.read-more-r::after,
#textbook-main .read-more-r>a::after {
	content: '';
	width: 13px;
	height: 13px;
	display: inline-block;
	background: #3c2c1c url(../img/yajirushi.png) no-repeat center center;
	border-radius: 2px;
	position: absolute;
	top: 0;
	right: 0;
}

@media (max-width: 414px){
    #textbook-main h1.page-title {
    font-size: 30px !important;
    line-height: 36px;
    padding: 15px 0 20px 0;
    margin: 0 auto 35px auto !important;
    min-width: 320px;
  }
    #textbook-main .ttl-lower-page {
    font-size: 30px !important;
    line-height: 36px;
    padding: 0 0 10px 0;
    margin: 0 auto 25px auto !important;
  }
    #textbook-main .page-title::after, .ttl-lower-page::after {
        margin: 12px auto 0 auto;
  }
    #textbook-main .ttl-lower-page span {
    font-size: 16px;
    display: block;
    line-height: 24px;
  }
}

@media (max-width: 599px){
  main#textbook-main secton {
    width: 94%;
  }
  #textbook-index {
    width: 92%;
    margin: 0 auto;
  }
  #textbook-index div {
    width: 100%;
    max-width: 460px;
    margin: 0 auto 12px auto;
  }
  #textbook-index div h2 {
    top: 12%;
    left: 12px;
  }
  #textbook-index div h2 img {
    width: 44px;
    height: 44px;
  }
  #textbook-index div h2 span {
    font-size: 26px;
    padding: 0 13px;
    line-height: 44px;
    margin-left: -10px;
  }
  #textbook-index div strong {
    font-size: 16px;
    padding: 0 12px;
    margin-bottom: 10px;
  }
  #textbook-index div p {
    padding: 0 12px;
    margin-bottom: 10px;
  }
  #textbook-index .btn-default {
    width: 100%;
    max-width: 420px;
    line-height: 42px;
    background-image: url(../img/arrow-btn-def-20171229.png);
    background-repeat: no-repeat;
  }
  #textbook-index div a.btn-default {
    width: 92%;
    margin-bottom: 12px;
  }
  #dictionary-main #textbook-detail {
    width: 92%;
    margin: 0 auto;
    padding-top: 0;
  }
  #textbook-detail article {
    margin: 0 0 25px 0;
  }
  #textbook-detail h2,
  #textbook-detail h3,
  #textbook-detail ul li {
    margin: 0 0 7px 0;
  }
  #textbook-detail h2 span,
  #textbook-detail h3 span,
  #textbook-detail ul li span{
    padding: 0 6px;
    line-height: 24px;
  }
  #textbook-detail article strong {
    font-size: 18px;
    margin: 0 0 6px 0;
  }
  #dictionary-main #dic-nav {
    display: block;
    border: 2px #dcd6d0 solid;
    background-color: #fcf9f3;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
  }
  #dictionary-main aside#dic-sidebar {
    display: none;
  }
  #dic-nav select {
    height: 36px;
    padding: 8px 12px;
  }
  #dic-cat-top {
    width: 100%;
    margin: 0 auto;
    padding-top: 0;
  }
  #dic-cat-top .bx-sdw {
    margin: 0 0 12px 0;
  }
  #dic-cat-top h2 {
    width: auto;
    margin-bottom: 12px;
  }
  #dic-cat-top h2 a {
    display: block;
    background-color: #fcf9f3;
    font-size: 16px;
    line-height: 18px;
    padding: 8px 15px;
  }
  #dic-cat-top .ex-box {
    width: 100%;
    padding: 0 15px;
    margin: 0 0 6px 0;
  }
  #dic-cat-top .ex-box a {
    width: 80px;
    height: 80px;
    margin: 0 0 8px 15px;
  }
  #dic-cat-top .bx-sdw p {
    padding: 0 15px;
    margin: 0 0 7px 0;
  }
}

@media (min-width: 600px){
    #textbook-main .btn-default {
    font-size: 16px;
    line-height: 48px;
    background-image: url(../img/arrow-btn-def-20171229.png);
    background-repeat: no-repeat;
    padding: 0 40px;
  }
	#textbook-index {
    margin: 0 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-wrap: wrap;
    padding-top: 0;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
  }
  #textbook-index div {
    padding-bottom: 85px;
  }
  /*#textbook-index div a.btn-default {*/
    /*width: auto;*/
    /*position: absolute;*/
  /*}*/
  div#dictionary-main {
		display: -webkit-box;
		display: -ms-flexbox;
		display: -webkit-flex;
		display: flex;
		-webkit-box-pack: justify;
		-ms-flex-pack: justify;
		-webkit-justify-content: space-between;
		justify-content: space-between;
		margin-bottom: 40px;
  }
  #textbook-detail article {
    margin: 0 0 30px 0;
  }
  #textbook-detail h2,
  #textbook-detail h3,
  #textbook-detail ul li {
    margin: 0 0 10px 0;
  }
  #textbook-detail h2 span,
  #textbook-detail h3 span,
  #textbook-detail ul li span {
    padding: 0 10px;
    line-height: 30px;
  }
  #textbook-index div strong {
    font-size: 20px;
    margin: 0 0 8px 0;
  }
  div#dictionary-main #dic-cat-top {
    order: 2;
    flex: 1;
  }
  div#dictionary-main #textbook-detail {
    order: 2;
  }
  #dictionary-main aside#dic-sidebar {
    order: 1;
  }
  aside#dic-sidebar dl {
    text-align: left;
    border: 1px #dcd6d0 solid;
  }
  aside#dic-sidebar dl a {
    display: block;
  }
  aside#dic-sidebar dl dt:first-of-type {
    background-color: #887766;
  }
  aside#dic-sidebar dl dt:first-of-type a {
    color: #ffffff;
  }
  aside#dic-sidebar dl dt {
    position: relative;
    border-bottom: 1px #dcd6d0 solid;
    background-color: #fcf9f3;
  }
  aside#dic-sidebar dl dt a {
    line-height: 36px;
    position: relative;
    padding-left: 27px;
    margin-right: 32px;
    font-size: 13px;
    letter-spacing: -.08em;
  }
  aside#dic-sidebar dl dt a::after {
    content: '';
    width: 13px;
    height: 13px;
    display: inline-block;
    background: #3c2c1c url(../img/yajirushi.png) no-repeat center center;
    border-radius: 2px;
    position: absolute;
    top: 11px;
    left: 8px;
  }
  aside#dic-sidebar dl dd a {
    font-size: 13px;
    line-height: 1.24;
    padding: 4px 5px 3px 20px;
    background: url(../img/arrow-footer-20171229.png) no-repeat 10px 6px;
    border-bottom: 1px #dcd6d0 dotted;
  }
  aside#dic-sidebar dl dd.is-close {
    display: none;
  }
  aside#dic-sidebar dl dt span {
    display: block;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 100%;
    border: solid 1px #ffffff;
    background-color: #dcd6d0;
    cursor: pointer;
  }
  aside#dic-sidebar dl dt span::after {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 4px 0 4px;
    border-color: #887766 transparent transparent transparent;
    
  }
  #dictionary-main #dic-nav {
    display: none;
  }
  #dic-cat-top h2 {
    margin-bottom: 15px;
  }
  #dic-cat-top h2 a {
    font-size: 18px;
    line-height: 22px;
    padding: 10px 20px;
  }
  #dic-cat-top .ex-box {
    padding: 0 20px;
    margin: 0 0 6px 0;
  }
  #dic-cat-top .ex-box a {
    width: 100px;
    height: 100px;
    margin: 0 0 8px 15px;
  }
  #dic-cat-top .bx-sdw p {
    padding: 0 20px;
    margin: 0 0 10px 0;
  }
}

@media (max-width: 768px) and (min-width: 415px){
  main#textbook-main  section {
    width: 92%;
  }

  #textbook-main h1.page-title {
    font-size: 36px !important;
    line-height: 40px !important;
    padding: 30px 0 20px 0 !important;
    margin: 0 auto 30px auto !important;
  }
    #textbook-main .ttl-lower-page {
    font-size: 36px !important;
    line-height: 40px;
    padding: 0 0 10px 0;
    margin: 0 auto 30px auto !important;
  }
    #textbook-main .page-title::after,
    #textbook-main .ttl-lower-page::after {
    margin: 15px auto 0 auto;
  }
    #textbook-main .ttl-lower-page span {
    font-size: 20px;
    display: block;
    line-height: 30px;
  }
}

@media (max-width: 768px) and (min-width: 600px){
  main#textbook-main  {
    padding-bottom: 10px;
  }
  main#textbook-main  section {
    width: 92%;
    padding: 0 0 50px 0;
  }
  #textbook-index {
    width: 90%;
  }
  #textbook-index div {
    width: 49%;
    margin-bottom: 20px;
  }
  #textbook-index div h2 {
    top: 11%;
    left: 15px;
  }
  #textbook-index div strong {
    font-size: 16px;
    padding: 0 15px;
    margin-bottom: 10px;
  }
  #textbook-index div h2 img {
    width: 40px;
    height: 40px;
  }
  #textbook-index div h2 span {
    font-size: 26px;
    padding: 0 10px;
    line-height: 40px;
    margin-left: -10px;
  }
  #textbook-index div p {
    padding: 0 15px;
  }
  #textbook-index div a.btn-default {
    bottom: 15px;
    left: 15px;
    right: 15px;
  }
    #textbook-main .ttl-lower-page {
    font-size: 36px !important;
    line-height: 40px;
    padding: 0 0 10px 0;
    margin: 0 auto 30px auto !important;
  }
    #textbook-main .page-title::after,
    #textbook-main .ttl-lower-page::after {
    margin: 15px auto 0 auto;
}
	aside#dic-sidebar dl {
    width: 180px;
  }
  #dic-cat-top .bx-sdw {
    width: 100%;
    margin-bottom: 15px;
  }
	#dic-cat-top .ex-box {
	    padding: 0 20px;
	}
  div#dictionary-main {
    width: 92%;
    margin: 0 auto;
  }
  div#dictionary-main #textbook-detail {
    width: auto;
    padding: 0 0 0 25px;
  }
}
@media (max-width: 768px){
    #textbook-main .pager {
    width: 100%;
  }
    #textbook-main .pager .top {
    display: block;
  }
}

@media (min-width: 769px){
	#main h1,
  main#textbook-main  h1 {
    width: 960px;
	}
  main#textbook-main  {
    padding-bottom: 20px;
  }
  main#textbook-main  section {
    width: 960px;
    padding: 0 0 50px 0;
  }
  #textbook-main h1.page-title {
    font-size: 44px !important;
    line-height: 48px !important;
    padding: 30px 0 10px 0 !important;
    margin: 0 auto 30px auto !important;
  }
  #textbook-main h2:before,
  #textbook-main .h2:before {
      content: none;
  }
  section#textbook-detail {
    width: 760px;
    padding: 0 0 0 30px;
  }
    #textbook-detail div.content {
        width: 730px;
    }
  #textbook-index {
    width: 960px;
  }
  #textbook-index div {
    width: 460px;
    margin-bottom: 30px;
  }
  #textbook-index div h2 {
    top: 75px;
    left: 20px;
  }
	#textbook-index div h2 img {
    width: 50px;
    height: 50px;
  }
  #textbook-index div h2 span {
    font-size: 32px;
    padding: 0 13px;
    line-height: 50px;
    margin-left: -7px;
  }
  #textbook-index div strong {
    font-size: 17px;
    padding: 0 20px;
    margin-bottom: 10px;
  }
  #textbook-index div p {
    padding: 0 20px;
  }
  /*#textbook-index div a.btn-default {*/
    /*bottom: 20px;*/
    /*left: 20px;*/
    /*right: 20px;*/
  /*}*/
	div#dictionary-main {
		width: 960px;
		margin: 0 auto;
	}
    #textbook-main .ttl-lower-page {
    font-size: 44px !important;
    line-height: 48px;
    padding: 10px 0 10px 0;
    margin: 0 auto 40px auto !important;
	}
    #textbook-main .ttl-lower-page span {
	    font-size: 24px;
	    display: block;
	    line-height: 36px;
	}
    #textbook-main .page-title::after,
    #textbook-main .ttl-lower-page::after {
    margin: 20px auto 0 auto;
  }
  #dic-cat-top {
    width: 760px;
    padding: 0 0 0 30px;
  }
  #dic-cat-top .dic-wrap {
    width: 730px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  #dic-cat-top .bx-sdw {
    width: 355px;
    margin-bottom: 20px;
  }
}