/* サブページで、テンプレートで対応しきれないスタイルをこちらに記入します。ASのみ書き込み可能 */

/*全体の表示サイズ調整*/
main {
width: 100%;
max-width: 1280px;
margin: 0 auto;
}

@media (max-width:768px) {
.breadcrumb {
flex-wrap: wrap;
}
}

/*子供向けページ*/

.kids-main {
    background-image: url(../images/kids/bg_kids_top.png); /* 背景画像の指定 */
    background-repeat: repeat-y;/* 背景画像の繰り返しの指定 */
	background:#f2f218 url(../images/kids/bg_kids_top.png) center top repeat-y;
  font-family: "M PLUS 1", serif;
  font-optical-sizing: auto;
  font-style: normal;
    max-width: 100%;
padding-bottom:1em;
}

.kids-main #intro {
margin:0;
}

.kids-main h2 {
margin: 0em auto;
/*max-width:1280px;*/
}
.kids-main .kids-container h2 {
font-size: 2.5em;
color:#292966;
border-bottom: dotted 4px #ccc;
/*padding: 0.5em 5%;*/
	padding: 0.5em 0 0.1em;
	width:90%;
	margin-bottom:1em;
    line-height: 1.5em;
}

.kids-main h2 img{
padding:0 0.25em;
}

.kids-main h3 {
font-size: 1.125em;
padding:0;
/*margin: 1em 2% 0 2%;*/
margin: 1em 2%;
border-bottom:#ccc dotted 4px;
}

.kids-entrance {
background: #fff;
/*border: 1px solid #000;*/
border: 3px solid #000;
border-radius: 20px;
padding: 1em 0;
width: auto;
max-width:1200px;
    box-shadow: 7px 7px 0px rgba(0, 0, 0, 0.4);
}

.kids-entrance#cont1{
	border-color:#292966;}

.kids-entrance#cont2{
	border-color:#1a4a9e;}

.kids-entrance#cont3{
	border-color:#7a4e00;}

.kids-entrance#cont4{
	border-color:#235a07;}

.kids-main .item p:nth-child(2){
display:inline;
font-size:1.5em;
line-height:1.5em;
padding-right:2em;
}

.kids-entrance .item div:after{
position: absolute;
    bottom: 2em;
    right: 1.5em;
    content: '';
    width: 1em;
    height: 1em;
    margin: 0.5em;
/*    border-top: 0.25em solid #fff;
    border-right: 0.25em solid #fff;
    transform: rotate(45deg);*/
right:0.8rem;
width:16px;
height:25px;
background:transparent url(../images/kids/ar_item.png) center center no-repeat;}

@media (min-width: 577px) {
.img-pc {
display:inline-block;
}
.img-smp {
display:none;
}
.hr-smp {
display:none;
}
}

@media (max-width: 576px) {
.img-pc {
display:none;
}
.img-smp {
display:inline-block;
width:100%;
}

/*.kids-main h2, .kids-main h2 img{
padding:0;
margin:0;
}*/

.kids-main h2{
	padding:0;}

.kids-main h2 img{
padding:0;
margin:0;
}

.kids-main .kids-entrance {
margin:0;
border:none;
border-radius:0;
}

.hr-smp {
display:block;
/*width:80%;*/
margin:1.5em auto;
}
}

@media (max-width:1280px) and (min-width: 577px) {
.kids-main .kids-entrance {
margin:1em 3%;
}
}

.kids-container {
    background: #fff;
    width: 100%;
    max-width: 1280px;
    margin: 0em auto;
}
.kids-main .item {
border-radius:10px;
border: #ccc 1px solid;
}

.kids-entrance rt {
font-size:40%;
}

/*子供向けページトップ　ゴシック対応*/
.f-gth{
font-family:gothic;
}


/*個別ページ*/
.c05-picture, .c05-picture-2, .c05-picture-3 {
    width: 80%;
    margin: 0.5em auto;
    text-align: center;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: top;
    align-items: top;
}
.c05-picture figure {
    width: 50%;
    margin: 0 auto 2% auto;
}
/*大サイズ図版のfigureに設定*/
.c05-picture .width-max {
width: 100%;
}

.c05-picture figure img, .c05-picture-2 figure img, .c05-picture-3 figure img {
    width: 70%;
    margin: 0 auto;
}

.teacher {
    width: 100%;
    display: flex;
    -webkit-justify-content: end;
    justify-content: end;
    -webkit-align-items: center;
    align-items: center;
    padding: 0.5em 5%;
    flex-direction: row-reverse;
}
.student {
    width: 100%;
    display: flex;
    -webkit-justify-content: start;
    justify-content: start;
    -webkit-align-items: center;
    align-items: center;
    padding: 0.5em 5%;
}
.teacher-box {
    width: 20%;
    text-align: left;
    padding-left: 3%;
}
.teacher-box img, .student-box img {
    width: 100%;
    min-width: 70px;
    max-width: 150px;
}
.c02 p, .c03 p, .c04 p, .c05 p, .c06 p {
    width: 95%;
    margin: 0 auto;
    text-indent: 1em;
}
.teacher-dialogue {
    padding: 2%;
    border: 3px solid #333;
    border-radius: 10px;
    background: #cff0e4;
    position: relative;
    width: 50%;
}
.teacher-dialogue:before {
  content: "";
  position: absolute;
  top: 50%;
  right: -24px;
  margin-top: -12px;
  border: 12px solid transparent;
  border-left: 12px solid #cff0e4;
  z-index: 2;
}

.teacher-dialogue:after {
  content: "";
  position: absolute;
  top: 50%;
  right: -30px;
  margin-top: -14px;
  border: 14px solid transparent;
  border-left: 14px solid #333;
  z-index: 1;
}

.student-box {
    width: 20%;
    text-align: right;
    padding-right: 3%;
}
.student-box img {
    margin-right: 3%;
}
.student-box p {
    padding-right: 1.2em;
}
.student-dialogue {
    padding: 2%;
    border: 3px solid #333;
    border-radius: 10px;
    background: #cce3f1;
    position: relative;
    width: 50%;
}
.student-dialogue:before {
  content: "";
  position: absolute;
  top: 50%;
  left: -24px;
  margin-top: -12px;
  border: 12px solid transparent;
  border-right: 12px solid #cce3f1;
  z-index: 2;
}

.student-dialogue:after {
  content: "";
  position: absolute;
  top: 50%;
  left: -30px;
  margin-top: -14px;
  border: 14px solid transparent;
  border-right: 14px solid #333;
  z-index: 1;
}


/*ルビのサイズ調整*/
main rt {
font-size:70%;
letter-spacing:-1px;
}

.kids-link {
font-size:2em;
padding:1em;
}

/*ページ移動ボタン*/
.btn-pgn{
display: inline-block;
margin: 0.5em 1.5em;
padding: 0.5em;
text-decoration: none;
color: #337ab7;
border: 1px solid #337ab7;
border-radius: 6px;
line-height: 60px;
}

.btn-pgn img{
width:50px;
height:50px;
object-fit:cover;
vertical-align:middle;
margin: 0 0.5em;
}
/*
.btn-pgn:after {
    content: "\f054";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}
*/

/*北前船関連ページ*/
.kitamae-container {
    width: 100%;
    padding: 0 5em 2em 5em;
}

.contents-wrap {
margin-bottom:1em;
}

.kitamae-container ul{
    list-style: square;
    padding-left: 1em;
}
.kitamae-container ul li{
    padding-bottom: 1em;
}

.kitamae-container figure{
text-align:center;
margin-bottom:0.5em;
}

.kitamae-container figcaption{
    line-height: normal;
}

.dsp-ib {
display:inline-block;
vertical-align:top;
}

.w-30 {
width: 29%;
}

.w-70 {
width: 70%;
}

.w-100 {
width: 100%;
}


.kitamae-wrap {
display:flex;
flex-wrap: wrap;
}

.kitamae-wrap div{
margin: 5px;
width:48%;
height: auto;
}

.kitamae-wrap table, .kitamae-wrap td {
border:1px solid #000;
border-collapse:collapse;
padding:1em;
}
.kitamae-wrap table {
width:100%;
}
.kitamae-wrap td {
width:50%;
}

.kitamae-wrap td img{
max-height:250px;
}

@media (max-width:768px) {
.kitamae-container {
    padding: 5%;
}
.w-30, .w-70 {
width: 100%;
}

.kitamae-wrap div{
margin: 5px;
height: auto;
width:100%;
}

.kitamae-wrap td {
display:inline-block;
width:100%;
}
}

.kitamae-rel {
width:80%;
margin: 1em auto;
padding:0.25em 1em;
border-radius:10px;
border:1px solid #333;
}

.kitamae-rel h4 {
font-size:1.25em;
padding-bottom:0.25em;
}

.kitamae-rel img {
width:90%;max-width:400px;
}

/*各館案内ページ*/
/*「一覧を見る」ボタン*/
.btn-all{
text-align:center;
}

.btn-all a{
    display: inline-block;
    color: #18507E;
    color: #222;
    font-size: 150%;
    border: 1px solid rgba(34, 34, 34, 0.1);
    background-color: rgba(24, 80, 126, 0.08);
    background-color: rgba(34, 34, 34, 0.08);
    padding: 1.5rem 2.5rem;
    line-height: 1.0;
    text-decoration: none;
    margin: 0.5em auto;
}

/*test バーチャル展示室入口*/
.vtour {
    overflow: hidden;
    display: grid;
    grid-template:
        "img ttl" max-content
        "img intro" 1fr
        "img link" max-content / 0.2fr 1fr;
    margin: auto;
    border: 1px solid #333;
    background-color: #ffffff;
}

.vtour img {
    transition: transform .6s ease;
    object-fit: cover;
    width: 100%;
    height: 100%;
    max-width: 200px;
    transition: transform .6s ease;
    object-fit: cover;
}

.vtour > div {
    grid-area: img;
}
.vtour > h3 {
    font-size: 1.25rem;
    line-height: 2rem;
    grid-area: ttl;
    padding: 1.5rem 2rem 0.5rem;
}

.vtour p {
    padding: 1rem 2rem 2rem;
    font-size: 1.05rem;
    line-height: 2rem;
    grid-area: intro;}

@media (max-width: 576px) {
.vtour {
display:inline-block;
}
.vtour img {
height:150px;
max-width:100%;
}
}

@media (max-width:768px) {

.vr-entrance .item {
    display: block;
}

.vr-entrance .item img {
    width: 100%;
    max-height: 250px;
    max-width: 100%;
}
}

.vr-entrance .item img{
  display: block;
  transition-duration: .5s;
}

.vr-entrance .item img:hover {
transform: scale(1.1);
}

.virtual-desc {
padding:0 10%;
}

.virtual-desc h3{
text-align:left;
font-size:2em;
}

.virtual-desc h4{
text-align:left;
font-size:1.5em;
}

.virtual-desc p{
margin:0 1em;
}

.virtual-desc ul{
list-style:disc;
margin-left:2em;
}
.virtual-desc ul li ul{
list-style:none;
margin-left:2em;
}
.virtual-desc figure{
text-align:center;
margin:0.5em auto;
}
.virtual-desc figcaption{
margin-top:-1em;
}
