/* 全体 */

* {
  padding: 0;
  margin: 0;
}

/* body */

body {
  background: ghostwhite;
  font-family: Verdana, "meiryo", "Hiragino Kaku Gothic ProN", "HiraKakuProN-W3", Osaka, "ms pgothic", sans-serif;
  font-size: .9em;
  line-height: 1.5;
}

/* ナビゲーション */

nav ul {
  background: mintcream;
  padding: 1em 0 1em 5px;

  li {
    display: inline;
    padding: 0 5px;

    &:first-child:before {
      font-family: 'Material Icons';
      content: 'home';
    }
  }
}

@media screen and (max-width: 980px) {
  body {
    font-size: 16px;
    line-height: 1.5em;
  }

  nav {
    font-size: 1.25em;
  }
}

/* 見出し */

header {
  color: white;
  background: rgba(65, 105, 225, 0.5);

  hgroup {
    background: rgba(65, 105, 225, 0.5);
    line-height: .9;
    padding: 1em 5px;
  }

  p {
    margin: 0;
    padding: .125em 0 .125em 5px;
  }
}

h1 {
  color: white;
  font-size: 2.4em;
  font-weight: normal;
}

.h1-padding {
  padding: .125em 0 0 5px;
}

h2 {
  font-size: 1.4em;
  font-weight: normal;
  border-bottom: double;
  margin: 1em 0;

  .caption {
    font-weight: normal;
    font-size: smaller;
    margin-left: 1em;
  }
}

.h2-font-weight-bold {
  font-weight: bold;
}

h3 {
  font-size: 1.3em;
  font-weight: normal;
}

h4 {
  font-size: 1.2em;
  font-weight: normal;
}

h5 {
  font-size: 1.1em;
  font-weight: normal;
}

h6 {
  font-size: 1em;
  font-weight: normal;
}

/* ブロック */

p {
  margin: 1em 0 1em 0;
}

pre {
  font-size: 120%;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow: auto;
  border-bottom: dashed 1px gray;
  margin-bottom: 10px;
}

/* リスト */

ul {
  padding: 0;
  margin: 0;

  &.border {
    border: 1px solid #3d6ab3;
    padding: 1em;
  }
}

li {
  list-style: none;

  &.disc {
    list-style: disc;
  }
}

dl {
  margin: 1em 0 1em 0;
}

dt, dd {
  margin: 0.5em 0 0.5em 0;
}

/* フォーム */

input {
  padding: 1px 6px;
  width: 90%;
}

textarea {
  width: 90%;
}

button {
  width: auto;
}

input {
  &[type="button"], &[type="submit"], &[type="reset"], &[type="file"] {
    width: auto;
  }
}

/* インライン */

a {
  text-decoration: underline;

  &:hover {
    color: orange;

    img {
      opacity: 0.7;
      filter: alpha(opacity = 70);
    }
  }
}

amp-img {
  max-width: 100%;
  display: inline-block;
}

i {
  font-style: normal;
}

/* フッター */

footer {
  display: table;
  background: rgba(65, 105, 225, 0.5);
  width: 100%;
  height: 3em;

  p {
    display: table-cell;
    font-size: larger;
    text-align: right;
    vertical-align: middle;
    padding-right: 1em;
  }

  small {}
}