@charset "utf-8";

html {
  font-size: 10px;
}

body {
  max-width: 900px;

  margin-right: auto;
  margin-left: auto;

  background-image: repeating-linear-gradient(90deg, #fc9, #fc9 1px, #fff 0, #fff 2px);
  color: #333;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.6;
  font-family: sans-serif;
}

nav {
  ul {
    display: flex;
    flex-wrap: wrap;

    row-gap: 0.5em;
    column-gap: 0.5em;

    padding-top: 0.5em;
    padding-right: 0.5em;
    padding-bottom: 0.5em;
    padding-left: 0.5em;

    border: 1px solid #f90;

    background-color: #fc9;

    li::before {
      content: '◇';
    }
  }
}

a {
  text-decoration: underline;
  word-break: break-all;

  &:link {
    color: #900;
  }

  &:visited {
    color: #909;
  }

  &:hover,
  &:active {
    background-color: #cc0;
    color: #090;
  }

  &[href$=".pdf"]::after {
    content: url(../image/common/pdficon_small.gif);
  }

  &[href*="//"]::after {
    content: url(../image/common/arrow004_green.gif);
  }
}

header {
  font-size: 1.4rem;

  .logo {
    margin-top: 0.5em;
    margin-bottom: 0.5em;

    text-align: right;

    img {
      max-width: 100%;
      min-height: 45px;
      object-fit: cover;
      object-position: top right;
    }
  }

  nav {
    @media (min-width: 375px) {
      min-height: 90px;
      align-content: center;

      padding-right: 120px;
      padding-left: 120px;

      border: 1px solid #f90;

      background-image: url(../image/common/P-top-l.jpg), url(../image/common/P-top-r.jpg);
      background-position: left center, right center;
      background-size: 120px auto;
      background-repeat: no-repeat;
      background-color: #fff;
    }

    ul {
      flex-direction: column;
      align-content: space-around;
    }
  }
}

main {
  padding-top: 0.5em;
  padding-right: 0.5em;
  padding-bottom: 0.5em;
  padding-left: 0.5em;

  border-right: 1px solid #f90;
  border-left: 1px solid #f90;


  background-color: #fff;

  h1 {
    margin-top: 0.5em;
    margin-bottom: 0.5em;

    color: #f60;
    font-weight: 600;
    font-size: 2.4rem;
    letter-spacing: 0.25em;

    text-shadow:
      2px 2px 0 #fff,
      -2px 2px 0 #fff,
      2px -2px 0 #fff,
      -2px -2px 0 #fff,
      2px 0 0 #fff,
      0 2px 0 #fff,
      -2px 0 0 #fff,
      0 -2px 0 #fff,
      3px 3px 0 #f60,
      -3px 3px 0 #f60,
      3px -3px 0 #f60,
      -3px -3px 0 #f60,
      3px 0 0 #f60,
      0 3px 0 #f60,
      -3px 0 0 #f60,
      0 -3px 0 #f60;

    &::after {
      padding-left: 0.25em;
      content: url(../image/common/h1-line.gif);

    }

  }

  h2 {
    margin-top: 0.5em;
    margin-bottom: 0.5em;

    padding-top: 0.5em;
    border-top: 1px solid #f90;
    color: #f60;
    font-weight: 500;
    font-size: 2rem;

    &::before {
      position: relative;
      top: -0.1em;
      left: -0.1em;
      font-size: 1.6rem;
      content: '■';
    }
  }

  p {
    text-indent: 1em;
  }

  ol {
    padding-left: 1em;
    list-style-type: decimal;
  }
}

footer {
  font-size: 1.4rem;

  address,
  .copyright {
    color: #696;
    text-align: center;
  }
}