@charset "utf-8";
body {
  font-family: "Ryumin Regular KL","Yu Mincho","YuMincho","Hiragino Mincho Pro",serif;
}
header {
  width: 100%;
  background: #ffffff;
  font-size: 16px;
  letter-spacing: 1px;
  font-family: "Shimanami JIS2004",serif;
}
header img {
  width: 270px;
  height: 60px;
  display: block;
  transition: 600ms;
}
header img:hover {
  opacity: 0.6;
}
header nav {
  width: 96%;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-top: 8px;
  margin-right: auto;
  margin-left: auto;
}
header nav ul {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  text-align: center;
  padding-top: 14px;
  padding-right: 24px;
}
header nav ul:before {
  width: 120px;
  position: absolute;
  top: 40px;
  left: -120px;
  content: '';
  border-bottom: 1px solid;
  border-image: linear-gradient(90deg,#b66b00 0%,#feef00 60%,#ffcc00 80%,#daad00 100%);
  border-image-slice: 1;
}
header nav ul:after {
  height: 14px;
  position: absolute;
  top: 34px;
  left: 350px;
  content: '';
  border-right: 1px solid;
  border-image: linear-gradient(135deg,#daad00 0%,#ffcc00 60%,#daad00 80%,#b66b00 100%);
  border-image-slice: 1;
}
header nav ul li {
  width: 120px;
  line-height: 3.2em;
}
header nav ul li a {
  display: inline-block;
  position: relative;
}
header nav ul li a:after {
  width: 0%;
  position: absolute;
  top: 40px;
  left: 50%;
  content: '';
  border-bottom: 1px solid;
  border-image: linear-gradient(90deg,#b66b00 0%,#daad00 48%,#ffcc00 60%,#daad00 72%,#b66b00 100%);
  border-image-slice: 1;
  transform: translateX(-50%);
  transition: 600ms;
}
header nav ul li a:hover {
  color: #000099;
}
header nav ul li a:hover:after {
  width: 160%;
}
main {
  width: 100%;
  position: relative;
  font-size: 16px;
  letter-spacing: 1px;
}
main:before {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0px;
  left: 0px;
  content: '';
  z-index: -1;
  background-image: url(../img/bg1.jpg);
  background-repeat: repeat-x;
  background-position: 0% 0%;
  background-size: calc((1 / 20) * -100vw * 1% + 160px) auto;
  animation: bgroop 30s linear infinite,fadeout 30s alternate infinite;
}
main:after {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0px;
  left: 0px;
  content: '';
  z-index: -1;
  background-image: url(../img/bg2.jpg);
  background-repeat: repeat-x;
  background-position: 0% 420%;
  background-size: 80% 80%;
}
@keyframes bgroop {
  from {
    background-position: 0px 0px;
  }
  to {
    background-position: -600px 0px;
  }
}
@keyframes fadeout {
  90% {
    opacity :1;
  }
  100% {
    opacity: 0;
  }
}
picture {
  width: 96%;
  max-width: 1200px;
  display: block;
  background: #ffffff;
  margin-right: auto;
  margin-left: auto;
  border-radius: 60px 12px 0px 0px / 40px 12px 0px 0px;
}
picture img {
  width: 100%;
  object-fit: cover;
  border-radius: 60px 12px 0px 0px / 40px 12px 0px 0px;
  box-shadow: 0px 0px 36px rgba(200,180,160,0.8);
  opacity: 0;
  transition: 1200ms;
}
picture img.visible {
  opacity: 1;
}
section {
  width: 96%;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 40px;
  padding-bottom: 60px;
  margin-right: auto;
  margin-left: auto;
  opacity: 0;
  transform: translate(0px,60px);
  transition: 1200ms;
}
section.visible {
  opacity: 1;
  transform: translate(0px,0px);
}
section a {
  display: inline-block;
  position: relative;
}
section a:after {
  width: 0%;
  position: absolute;
  top: 20px;
  left: 0px;
  content: '';
  border-bottom: 1px solid;
  border-image: linear-gradient(90deg,#b66b00 0%,#daad00 48%,#ffcc00 60%,#daad00 72%,#b66b00 100%);
  border-image-slice: 1;
  transition: 600ms;
}
section a:hover {
  color: #000099;
}
section a:hover:after {
  width: 100%;
}
section h1 {
  height: 72px;
  font-size: 24px;
  padding-left: 12px;
  border-left: 2px solid;
  border-image: linear-gradient(180deg,#b66b00 0%,#daad00 40%,#ffcc00 80%,#daad00 100%);
  border-image-slice: 1;
}
section nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-bottom: 24px;
}
section nav ul li {
  display: flex;
  flex-wrap: wrap;
  padding-top: 6px;
  margin-left: 24px;
}
section nav ul li i {
  font-size: 12px;
  font-style: normal;
  padding: 1px 4px 2px 4px;
  margin-right: 12px;
  border: 1px solid #000066;
}
section nav dl {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}
section nav dl dt {
  font-size: 12px;
  font-weight: normal;
  font-family: "Sei Kaisho CB1",serif;
  padding-top: 8.4px;
}
section nav dl dd {
  padding-top: 6px;
  margin-left: 24px;
}
footer {
  width: 100%;
  background: #000066;
  color: #ffffff;
  font-size: 12px;
  text-align: center;
  letter-spacing: 1px;
  font-family: "Yu Gothic Medium","YuGothic","Meiryo","Hiragino Kaku Gothic Pro",sans-serif;
  padding-top: 40px;
  padding-bottom: 40px;
}
footer nav {
  display: none;
  position: fixed;
  bottom: 16px;
  right: 16px;
}
footer nav a {
  width: 60px;
  display: block;
  background: #ffffff;
  color: #000066;
  font-size: 30px;
  font-family: "Verdana",sans-serif;
  padding-top: 12px;
  padding-bottom: 12px;
  border: 1px solid #000066;
  border-radius: 60px;
  opacity: 0.8;
  transition: 600ms;
}
footer nav a:hover {
  background: #000066;
  color: #ffffff;
}

@media (min-width:1800px) {
  @keyframes bgroop {
    from {
      background-position: 0px 0px;
    }
    to {
      background-position: -480px 0px;
    }
  }
}
@media (max-width:1280px) {
  header nav ul:before {
    border: 0px;
  }
  header nav ul:after {
    border: 0px;
  }
  main:before {
    background-image: url(../img/bg2.jpg);
    background-size: 100% 100%;
    animation: none;
  }
  main:after {
    background-image: none;
  }
}
@media (max-width:960px) {
  picture {
    width: 100%;
  }
  picture img {
    border-radius: 0px;
    box-shadow: none;
  }
  section {
    padding-top: 30px;
    padding-bottom: 45px;
  }
  section h1 {
    width: 1em;
    height: 108px;
    padding-left: 6px;
  }
  section nav ul {
    flex-direction: column;
    margin-bottom: 12px;
  }
  section nav ul li {
    justify-content: flex-end;
    margin-bottom: 12px;
  }
  section nav dl dt {
    padding-top: 9.4px;
  }
  section nav dl dd {
    margin-left: 12px;
  }
  footer {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  footer p:first-letter {
    font-family: "Arial",sans-serif;
  }
}
@media (max-width:720px) {
  header {
    font-size: 14px;
  }
  header nav {
    padding-top: 6px;
  }
  header nav img {
    width: 216px;
    height: 48px;
  }
  header nav ul {
    padding-top: 12px;
    padding-right: 12px;
  }
  header nav ul li {
    width: 72px;
    line-height: 2.8em;
  }
  header nav ul li a:after {
    top: 30px;
  }
  header nav ul li a:hover:after {
    width: 140%;
  }
}
@media (max-width:480px) {
  header {
    font-size: 12px;
    font-family: "Ryumin Medium KL",serif;
  }
  header nav {
    padding-top: 4px;
  }
  header nav img {
    width: 162px;
    height: 36px;
  }
  header nav ul {
    padding-top: 10px;
    padding-right: 9px;
  }
  header nav ul li {
    width: 60px;
    line-height: 2.4em;
  }
  header nav ul li a:after {
    top: 22px;
  }
  header nav ul li a:hover:after {
    width: 120%;
  }
  section {
    font-size: 12px;
    padding-top: 20px;
    padding-bottom: 30px;
  }
  section h1 {
    height: 94px;
    font-size: 18px;
  }
  section nav ul {
    margin-bottom: 6px;
  }
  section nav ul li {
    margin-bottom: 4px;
    margin-left: 0px;
  }
  section nav ul li i {
    font-size: 8px;
    margin-right: 6px;
  }
  section nav dl {
    flex-direction: column;
    text-align: right;
  }
  section nav dl dt {
    font-size: 8px;
    padding-right: 1px;
  }
  section nav dl dd {
    margin-left: 0px;
  }
  footer {
    font-size: 10px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

/* legacy */
@media (max-width:360px) {
  header nav ul li {
    width: 40px;
  }
}
@media all and (-ms-high-contrast: none) {
  section nav ul li i {
    height: 1.6em;
    padding: 1px 4px 1px 4px;
  }
}