/**
* YUI 3.5.0 - reset.css (http://developer.yahoo.com/yui/3/cssreset/)
* http://cssreset.com
* Copyright 2012 Yahoo! Inc. All rights reserved.
* http://yuilibrary.com/license/
*/
/*
TODO will need to remove settings on HTML since we can't namespace it.
TODO with the prefix, should I group by selector or property for weight savings?
*/
html {
  color: #2F2F2F;
  background: #FFF;
  font-family: noto-sans-cjk-jp, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 100%;
}

/*
TODO remove settings on BODY since we can't namespace it.
*/
/*
TODO test putting a class on HEAD.
- Fails on FF.
*/
main,
article,
section {
  display: block;
}

body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
textarea,
p,
blockquote,
th,
td {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

fieldset,
img {
  border: 0;
}

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.cf:after {
  clear: both;
  content: "";
  display: block;
}

/*
TODO think about hanlding inheritence differently, maybe letting IE6 fail a bit...
*/
address,
caption,
cite,
code,
dfn,
em,
strong,
th,
var {
  font-style: normal;
  font-weight: normal;
}

ol,
ul {
  list-style: none;
}

caption,
th {
  text-align: left;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal;
}

q:before,
q:after {
  content: '';
}

abbr,
acronym {
  border: 0;
  font-variant: normal;
}

/* to preserve line-height and selector appearance */
sup {
  vertical-align: text-top;
}

sub {
  vertical-align: text-bottom;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}

/*to enable resizing for IE*/
input,
textarea,
select {
  *font-size: 100%;
}

/*because legend doesn't inherit in IE */
legend {
  color: #000;
}

/* YUI CSS Detection Stamp */
#yui3-css-stamp.cssreset {
  display: none;
}

/* ------------------------------
 common - width: all
------------------------------ */
html,
body {
  min-width: 1180px;
}

.ajtxt {
  text-align: justify;
  text-justify: inter-ideograph;
}

a:hover {
  opacity: 0.6;
  -webkit-transition: .4s;
  -o-transition: .4s;
  transition: .4s;
}

.op {
  display: block !important;
}

.os {
  display: none !important;
}

header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  padding: 20px 0 19px;
  background-color: #fff;
  border-bottom: 1px solid #D1D1D1;
  z-index: 10000;
}

header .wrapper {
  padding: 0 40px;
  max-width: 1180px;
  margin: 0 auto;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

header .wrapper .logo {
  width: 240px;
  display: block;
}

header .wrapper .logo img {
  width: 100%;
  display: block;
}

header .wrapper .gnav {
  width: 645px;
  padding-top: 10px;
}

header .wrapper .gnav ul {
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

header .wrapper .gnav ul li a {
  width: 150px;
  height: 40px;
  display: block;
  text-decoration: none;
  background-color: #00126A;
  color: #fff;
  line-height: 40px;
  text-align: center;
  font-size: 16px;
}

header .spmenu {
  position: fixed;
  background-color: #fff;
  top: 100px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10000;
  display: none;
}

header .spmenu .spwrapper ul {
  width: 1100px;
  margin: 0 auto;
}

header .spmenu .spwrapper ul li {
  border-bottom: 1px solid #EAEAEA;
}

header .spmenu .spwrapper ul li a {
  display: block;
  text-decoration: none;
  font-size: 18px;
  padding: 15px 0;
  color: #00126A;
  background-image: url(../img/icon_tri01.svg);
  background-size: 10px auto;
  background-position: center right 30px;
  background-repeat: no-repeat;
}

header .spmenu .close {
  width: 60px;
  position: fixed;
  top: 20px;
  left: calc(50% + 490px);
  display: block;
}

main {
  margin-top: 100px;
}

footer {
  background-color: #00126A;
  padding: 20px 0;
}

footer .wrapper {
  padding: 0 40px;
  max-width: 1180px;
  margin: 0 auto;
}

footer .wrapper .logo {
  width: 240px;
  display: block;
}

footer .wrapper .logo img {
  width: 100%;
  display: block;
}

/* ------------------------------
 common - width: < $width-1
------------------------------ */
@media screen and (max-width: 1024px) {
  html,
  body {
    min-width: 375px;
  }
  .op {
    display: none !important;
  }
  .os {
    display: block !important;
  }
  header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    padding: 15px 0 14px;
    background-color: #fff;
  }
  header .wrapper {
    padding: 0 15px;
  }
  header .wrapper .logo {
    width: 120px;
    display: block;
  }
  header .wrapper .logo img {
    width: 100%;
    display: block;
  }
  header .ham {
    display: block;
    width: 30px;
  }
  header .spmenu {
    position: fixed;
    background-color: #fff;
    top: 60px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    display: none;
  }
  header .spmenu .spwrapper ul {
    width: 100%;
    margin: 0 auto;
  }
  header .spmenu .spwrapper ul li {
    border-bottom: 1px solid #EAEAEA;
  }
  header .spmenu .spwrapper ul li a {
    display: block;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 15px;
    color: #00126A;
    background-image: url(../img/icon_tri01.svg);
    background-size: 10px auto;
    background-position: center right 30px;
    background-repeat: no-repeat;
  }
  header .spmenu .close {
    width: 30px;
    position: fixed;
    top: 15px;
    right: 15px;
    left: auto;
    display: block;
  }
  main {
    margin-top: 60px;
  }
  footer {
    background-color: #00126A;
    padding: 30px 0;
  }
  footer .wrapper {
    padding: 0 40px;
  }
  footer .wrapper .logo {
    width: 31.46667vw;
    display: block;
    margin: 0 auto;
  }
  footer .wrapper .logo img {
    width: 100%;
    display: block;
  }
}
