@charset "utf-8";

img {
  max-width: 768px;
  max-height: 100%;
  margin-bottom: 2em;
}

#body {
  margin-right: auto; //コンテンツにだけ中央寄せを指定
  margin-left: auto;
  min-height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
}

.outer {
  text-align: left;
  margin: 10vh 10% 10vh 10%;
  max-width: 1024px;
}

.inner {
  max-width: 1024px;
}

/* 【次へ】ボタン */
.parent {
  margin: 0 auto;
}

ul.btn-pn {
  padding: 0;
  width: 150px;
  text-align: center;
}
.btn-pn-prev {
  /* 戻るボタン */
  display: block;
  float: left;
  width: 55px;
}
.btn-pn-prev a {
  display: block;
  position: absolute;
  margin-left: 10px;
  width: 55px;
  color: #fff;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
  z-index: 5;
  line-height: 26px;
  padding: 0 10px;
  margin-top: -15px;
}
.btn-pn-prev a:before {
  content: "";
  display: block;
  position: absolute;
  left: 4px;
  top: 0;
  width: 17px;
  height: 17px;
  -webkit-transform-origin: left top;
  -webkit-transform: rotate(45deg);
  -moz-transform-origin: left top;
  -moz-transform: rotate(45deg);
  transform-origin: left top;
  transform: rotate(45deg);
  background: #0d5287;
  border-left-color: #0d5287;
  border-bottom-color: #0d5287;
  border-width: 1px;
  border-style: solid;
  border-radius: 3px;
  border-right: none;
  border-top: none;
  z-index: -1;
}
.btn-pn-prev a:after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 55px;
  height: 23px;
  background: #0d5287;
  border-top-color: #0d5287;
  border-right-color: #0d5287;
  border-bottom-color: #0d5287;
  border-width: 1px;
  border-style: solid;
  border-radius: 7px;
  border-left: none;
  z-index: -2;
}
.btn-pn-prev:hover a:before {
  /* 戻るボタンマウスオーバー時 */
  background: #0585e8;
  border-color: #0585e8;
}
.btn-pn-prev:hover a:after {
  background: #0585e8;
  border-color: #0585e8;
}
.btn-pn-next {
  /* 次へボタン */
  display: block;
  float: right;
  width: 35px;
}
.btn-pn-next a {
  display: block;
  position: absolute;
  width: 55px;
  margin-left: 10px;
  color: #fff;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
  z-index: 5;
  line-height: 26px;
  padding: 0 15px 0 5px;
  margin-top: -15px;
}
.btn-pn-next a:before {
  content: "";
  display: block;
  position: absolute;
  left: -8px;
  top: 0;
  width: 54px;
  height: 23px;
  background: #0d5287;
  border-top-color: #0d5287;
  border-left-color: #0d5287;
  border-bottom-color: #0d5287;
  border-width: 1px;
  border-style: solid;
  border-radius: 7px;
  border-right: none;
  z-index: -1;
}
.btn-pn-next a:after {
  content: "";
  display: block;
  position: absolute;
  left: 44px;
  top: 0;
  width: 17px;
  height: 17px;
  -webkit-transform-origin: left top;
  -webkit-transform: rotate(45deg);
  -moz-transform-origin: left top;
  -moz-transform: rotate(45deg);
  transform-origin: left top;
  transform: rotate(45deg);
  background: #0d5287;
  border-top-color: #0d5287;
  border-right-color: #0d5287;
  border-width: 1px;
  border-style: solid;
  border-radius: 3px;
  border-left: none;
  border-bottom: none;
  z-index: -2;
}
.btn-pn-next:hover a:before {
  /* 次へボタンマウスオーバー時 */
  background: #0585e8;
  border-color: #0585e8;
}
.btn-pn-next:hover a:after {
  background: #0585e8;
  border-color: #0585e8;
}
.clearfix:after {
  /* 回り込み解除 */
  content: ".";
  display: block;
  height: 0;
  font-size: 0;
  clear: both;
  visibility: hidden;
}

/*多階層メニュー*/
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -6px;
  margin-left: -1px;
  -webkit-border-radius: 0 6px 6px 6px;
  -moz-border-radius: 0 6px 6px;
  border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

.dropdown-submenu > a:after {
  display: block;
  content: " ";
  float: right;
  width: 0;
  height: 0;
  border-color: transparent;
  border-style: solid;
  border-width: 5px 0 5px 5px;
  border-left-color: #ccc;
  margin-top: 5px;
  margin-right: -10px;
}

.dropdown-submenu:hover > a:after {
  border-left-color: #fff;
}

.dropdown-submenu.pull-left {
  float: none;
}

.dropdown-submenu.pull-left > .dropdown-menu {
  left: -100%;
  margin-left: 10px;
  -webkit-border-radius: 6px 0 6px 6px;
  -moz-border-radius: 6px 0 6px 6px;
  border-radius: 6px 0 6px 6px;
}

#footer {
  position: relative;
  margin-top: 40px;
  color: #fff;
  grid-row-start: 2;
  grid-row-end: 3;
}

#footer a {
  text-decoration: none;
  color: #fff;
}
#footer a:hover {
  text-decoration: underline;
}
#footer .primary {
  padding: 40px 20px;
  background: #ddd;
}
#footer .secondary {
  display: flex;
  padding: 40px 20px;
  background: #343a40 !important;
}

.pic_frame {
  display: inline-block;
  text-align: center;
}
