/* ==========================================================================
   HTML5 Boilerplate styles - h5bp.com (generated via initializr.com)
   ========================================================================== */

html,
button,
input,
select,
textarea {
  color: #222;
}

body {
  font-size: 1em;
  line-height: 1.4;
}

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

img {
  vertical-align: middle;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

.chromeframe {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
  font-family: "メイリオ", Meiryo, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "ＭＳ Ｐゴシック", "MS PGothic", Osaka, sans-serif;
}

/* basic table layout */
table {
  border-collapse: collapse;
  border: 1px solid #e2dfd4;
  background: #fff;
  width: 100%;
}
.t_heads {
  width: 20%;
}
th {
  vertical-align: top;
  text-align: left;
  font-weight: normal;
  border: 1px solid #e2dfd4;
  background: #f5f3eb;
  padding: 10px 30px;
}
td {
  border: 1px solid #e2dfd4;
  padding: 10px 30px;
}

.wrapper {
  width: 960px;
  margin: 0 auto;
  position: relative;
}

#header {
  margin: 0;
  padding: 0;
  border-bottom: 6px solid #d25258;
}
#header h1 {
  margin: 0;
  position: absolute;
  bottom: 67px;
  left: 0;
}
.desc {
  font-size: 68.8%;
  margin: 5px 16em 0 0;
  position: absolute;
  top: 0;
  left: 0;
}
header nav {
  margin: 48px 0 0;
  font-size: 87.5%;
}
.global-nav {
  margin: 10px 0 0;
  font-size: 1%;
}
header nav ul {
  text-align: right;
  margin: 0 13em 0 330px;
  padding: 0;
}
.global-nav ul {
  text-align: left;
  margin: 0;
  height: 60px;
  overflow: hidden;
  background: url(../img/common/bg_global-nav.gif) no-repeat left top;
}
header nav li {
  display: inline;
  margin: 0 0 0 15px;
  padding: 0 0 0 14px;
  background: url(../img/common/bullet.gif) no-repeat left center;
}
.global-nav li {
  float: left;
  display: block;
  margin: 0;
  padding: 0;
  background: none;
}
header .tel {
  position: absolute;
  top: 11px;
  right: 0;
  background: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
header .tel dl {
  margin: 0;
  font-weight: bold;
}
header .tel dt {
  color: #d25258;
  border: solid 2px #f4d6d8;
  border-radius: 3px;
  line-height: 2;
  margin: 0 0 5px;
}
header .tel dd {
  margin: 0;
  font-size: 125%;
  color: #009;
}
header .tel a,
header .tel a:link,
header .tel a:visited {
  color: #009;
  margin: 0 0 0 2px;
}
header .tel a:hover,
header .tel a:active {
  color: #03b;
}

header nav a {
  text-decoration: none;
  color: #333;
}
header nav a:hover,
header nav a:active {
  color: #666;
}
.global-nav a {
  display: block;
  height: 60px;
  width: 180px;
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
  background: url(../img/common/global-nav.png) 0 0;
  -moz-transition: all 0.5s;
  -webkit-transition: all 0.5s;
  -o-transition: all 0.5s;
  -ms-transition: all 0.5s;
  transition: all 0.5s;
}
.nav_home a {
  width: 60px;
}
.nav_home a.on,
.nav_home a:hover,
.nav_home a:active {
  background-position: 0 -100px;
}
.nav_course a {
  background-position: -60px 0;
}
.nav_course a.on,
.nav_course a:hover,
.nav_course a:active {
  background-position: -60px -100px;
}
.nav_facilities a {
  background-position: -240px 0;
}
.nav_facilities a.on,
.nav_facilities a:hover,
.nav_facilities a:active {
  background-position: -240px -100px;
}
.nav_price a {
  background-position: -420px 0;
}
.nav_price a.on,
.nav_price a:hover,
.nav_price a:active {
  background-position: -420px -100px;
}
.nav_access a {
  background-position: -600px 0;
}
.nav_access a.on,
.nav_access a:hover,
.nav_access a:active {
  background-position: -600px -100px;
}
.nav_contact a {
  background-position: -780px 0;
}
.nav_contact a.on,
.nav_contact a:hover,
.nav_contact a:active {
  background-position: -780px -100px;
}

footer {
  background: #f0c6c8;
}
.up {
  font-size: 87.5%;
  font-weight: bold;
  line-height: 40px;
}
.up a {
  float: right;
  color: #333;
  background: url(../img/common/bullet_up.gif) no-repeat left center;
  padding: 0 0 0 14px;
  text-decoration: none;
}
footer section {
  background: #fff;
  width: 960px;
  margin: 0 auto;
}
footer h1 {
  font-weight: normal;
  font-size: 100%;
  float: left;
  margin: 10px 0;
}
footer .tel {
  float: left;
  margin: 10px 1em 0;
  color: #c51f24;
}
footer .tel a {
  color: #c51f24;
  text-decoration: none;
  margin: 0 0 0 0.2em;
}
.copyright {
  float: right;
  margin: 12px 0;
  font-size: 68.8%;
}
footer nav {
  background: #f5f3eb;
  border-bottom: 1px solid #d25258;
  font-size: 93.8%;
  line-height: 1.8;
  padding: 20px 0 0;
}
footer ul {
  width: 960px;
  margin: 0 auto 14px;
  padding: 0;
}
footer li {
  display: inline;
  margin: 0;
}
footer li:after {
  content: "|";
  margin: 0 0.2em 0 0.5em;
  color: #ccc;
}
.last:after {
  content: "";
  margin: 0;
  display: none;
}
footer nav a {
  text-decoration: none;
  color: #333;
}
footer nav a:hover,
footer nav a:active {
  color: #666;
}

section {
  position: relative;
  width: 960px;
  margin: 0 auto;
}
h2 {
  margin: 30px 0 20px;
}
h2 img {
  display: block;
  line-height: 0;
}

h3 {
  border-bottom: 3px solid #ecb5b7;
  font-size: 125%;
  margin: 0 0 20px;
  height: 1.4em;
}
h3 span {
  margin: 0 0.5em 0 0;
  position: relative;
  color: #d25258;
  height: 1.4em;
  float: left;
}
h3 span:after {
  display: block;
  height: 3px;
  width: 100%;
  position: absolute;
  bottom: -3px;
  left: 0;
  content: "";
  background: #d25258;
}

.miyajima-shiwacc {
  margin: 0 auto;
  width: 960px;
  height: 30px;
  position: relative;
  z-index: 1000;
}
.miyajima-shiwacc dl {
  background: #f0c6c8;
  margin: 0;
  padding: 10px;
  border-radius: 5px;
  width: 460px;
  position: absolute;
  bottom: -40px;
}
.miyajima-shiwacc dt {
  float: right;
  margin: 0 0 0 10px;
}
.miyajima-shiwacc dd {
  overflow: hidden;
  font-size: 68.8%;
  margin: 0;
  font-weight: bold;
  line-height: 1.5;
}
.miyajima-shiwacc img {
  display: block;
  width: 260px;
  height: 50px;
}
.fixed-menu {
  box-sizing: border-box;
  position: fixed;
  right: 0;
  bottom: 50%;
  z-index: 1000;
  width: 160px;
  height: 160px;
  font-family: "Noto Sans JP", serif;
  font-optical-sizing: auto;
  color: #d25157;
  text-decoration: none;
  background: linear-gradient(45deg, #d25157 20px, #d25157 20px), linear-gradient(135deg, transparent 20px, #d25157 20px), linear-gradient(225deg, #d25157 20px, #d25157 20px), linear-gradient(315deg, #d25157 20px, #d25157 20px);
  background-position: bottom left, top left, top right, bottom right;
  background-size: 50% 50%;
  background-repeat: no-repeat;
  transition: opacity 0.6s;
  &:hover {
    opacity: 0.75;
  }
  div {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #ffe9bc 20px, #ffe9bc 20px), linear-gradient(135deg, transparent 20px, #ffe9bc 20px), linear-gradient(225deg, #ffe9bc 20px, #ffe9bc 20px), linear-gradient(315deg, #ffe9bc 20px, #ffe9bc 20px);
    background-position: bottom left, top left, top right, bottom right;
    background-size: 50% 50%;
    background-repeat: no-repeat;
  }
  *,
  &::before,
  &::after {
    box-sizing: border-box;
  }
  strong {
    width: 110px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-weight: 900;
    font-size: 40px;
    line-height: 1;
    text-align: center;
  }
  small {
    width: 110px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 24px;
    &::before {
      display: none;
    }
    &::after {
      content: "";
      margin-left: 8px;
      display: block;
      height: calc(tan(60deg) * 20px / 2);
      width: 15px;
      clip-path: polygon(0 0, 100% 50%, 0 100%);
      background: #d25157;
    }
  }
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 35em) {
}

@media print, (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.ir {
  background-color: transparent;
  border: 0;
  overflow: hidden;
}

.ir:before {
  content: "";
  display: block;
  width: 0;
  height: 150%;
}

.hidden {
  display: none !important;
  visibility: hidden;
}

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}

.invisible {
  visibility: hidden;
}

.clearfix:before,
.clearfix:after {
  content: " ";
  display: table;
}

.clearfix:after {
  clear: both;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
  * {
    background: transparent !important;
    color: #000 !important; /* Black prints faster: h5bp.com/s */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }

  abbr[title]:after {
    content: " (" attr(title) ")";
  }

  /*
     * Don't show links for images, or javascript/internal links
     */

  .ir a:after,
  a[href^="javascript:"]:after,
  a[href^="#"]:after {
    content: "";
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  thead {
    display: table-header-group; /* h5bp.com/t */
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  img {
    max-width: 100% !important;
  }

  @page {
    margin: 0.5cm;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
