@charset "utf-8";

/* Reset */
* {
  box-sizing: border-box;
  font-size: 100%;
  font-style: inherit;
  font-weight: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #fff;
  font-family: "Arial", "Hiragino Kaku Gothic Pro", "BIZ UDPGothic", sans-serif;
  font-size: 16px;
  letter-spacing: .03em;
  line-height: 1.8;
  -webkit-text-size-adjust: none;
}
a {
  color: rgba(1, 9, 114, 1);
  cursor: pointer;
  display: inline-block;
  text-decoration: underline;
  text-decoration-color: rgba(1, 9, 114, .2);
  transition: color, text-decoration-color;
  transition-duration: 200ms;
}
a:hover {
  color: #800000;
  text-decoration-color: transparent;
}
p {
  margin: 1em 0;
}
ul, ol {
  list-style: none outside none;
}
fieldset, img {
  border: medium none;
}
table {
  border-collapse: collapse;
  margin: 1em 0;
}
td, th {
  vertical-align: top;
}
th {
  padding-right: 1em;
  text-align: left;
}
strong {
  font-weight: bold;
}
small {
  font-size: smaller;
}

/* Generic */
.loose {
  letter-spacing: .15em;
}
.nowrap {
  white-space: nowrap;
}
.clearfix:after {
  clear: both;
  content: "";
  display: block;
}
a.disabled {
  cursor: default;
}
@media (min-width: 576px) {
  .d-sm-none {
    display: none !important;
  }
}

/* Phone */
@media (max-width: 959.98px) {
  #base {
    margin: 1rem .5rem;
    width: auto;
  }
  header {
    display: flex;
    flex-wrap: wrap;
  }
  header .logo img {
    display: block;
    height: 24px;
  }
  header .logo_ja {
    font-size: 14px;
    font-weight: normal;
    line-height: 20px;
    margin-left: 1rem;
  }
  #navi {
    margin: 1.5rem 0 0 0;
    width: 100%;
  }
  #navi ul {
    display: flex;
  }
  #navi li::before {
    content: "/";
    margin: 0 .5rem;
  }
  #navi li:first-child::before {
    display: none;
  }
  #navi a {
    color: inherit;
    text-decoration: none;
  }
  #navi a:hover {
    background: #800000;
    color: white;
  }
  main {
    margin-left: 0;
    width: auto;
  }
  h1 {
    border-top: 2px solid #800000;
    display: flex;
    font-size: 1.4rem;
    letter-spacing: .05em;
    margin-top: 4rem;
  }
  main > h1:first-child {
    margin-top: 2rem;
  } 
  h1 span {
    background: #fff;
    display: block;
    margin-top: calc(-2px - 1.4rem / 2 - 1px);
    padding-right: 1rem;
  }
  footer {
    border-top: 2px solid #800000;
    font-size: 85%;
    margin-top: 4em;
    padding: .5rem 0;
    text-align: center;
    width: 100%;
  }
}

/* Tablet */
@media (min-width: 768px) {
  #base {
    margin: 2rem;
    width: auto;
  }
}

/* PC */
@media (min-width: 960px) {
  #base {
    display: flex;
    flex-wrap: wrap;
    margin: 4rem auto;
    width: 960px;
  }
  header {
    display: flex;
    height: 4rem;
    position: relative;
    width: 100%;
  }
  header a {
    color: #000000;
    text-decoration: none;
  }
  header a:hover {
    color: #003388;
    text-decoration: underline;
  }
  header .logo {
    display: block;
    width: 170px;
  }
  header .logo img {
    display: block;
    margin: auto;
  }
  header .logo_ja {
    display: block;
    font-weight: normal;
    font-size: 17px;
    left: 230px;
    line-height: 1;
    letter-spacing: .1em;
    position: absolute;
    top: 5px;
  }
  header a:hover {
    color: #000000;
    text-decoration: none;
  }
  #navi {
    border-bottom: 2px solid #800000;
    border-top: 2px solid #800000;
    left: 0;
    padding: .5rem 0;
    position: absolute;
    text-align: center;
    top: 4rem;
    width: 170px;
  }
  #navi li {
    margin: .5rem 0;
  }
  #navi a {
    display: inline-block;
    letter-spacing: .1em;
    padding: 0 .5em;
    transition: background;
    transition-duration: 200ms;
    white-space: nowrap;
  }
  #navi a:hover {
    background: #800000;
    color: white;
  }
  #navi a:active {
    opacity: .8;
  }

  main {
    margin-left: 230px;
    min-height: 20rem;
    position: relative;
    width: auto;
  }
  h1 {
    border-top: 2px solid #800000;
    display: flex;
    font-size: 1.4rem;
    letter-spacing: .05em;
    margin-top: 4rem;
  }
  main > h1:first-child {
    margin-top: 0;
  } 
  h1 span {
    background: #fff;
    display: block;
    margin-top: calc(-2px - 1.4rem / 2 - 1px);
    padding-right: 1.5rem;
  }
  h2 {
    font-size: 120%;
    font-weight: bold;
    letter-spacing: 0.1em;
    margin-top: 1.667em;
  }
  h3 {
    font-size: 100%;
    font-weight: bold;
    letter-spacing: 0.1em;
    margin-top: 2em;
  }
  footer {
    border-top: 2px solid #800000;
    font-size: 85%;
    margin-top: 4em;
    padding: .5rem 0;
    text-align: center;
    width: 100%;
  }
}
