/* header */
#header {
  background-color: $bgColor01;
  #head01 {
    align-items: center;
    display: flex;
    padding: 10px 0;
    justify-content: space-between;
    > h1 {
      margin-bottom: 0;
      margin-left: 10px;
      width: 250px;
    }
    i {
      border: 2px solid $black;
      border-radius: 5px;
      color: $black;
      padding: 3px;
    }
    #head-right {
      align-items: flex-end;
      display: flex;
      justify-content: flex-end;
      margin-right: 7px;
      position: relative;
      #jma-hfs {display: none;}
      #office-hfs {display: none;}
      .head-free-space p {
        margin-left: 15px;
        display: inline;
      }
      .icons {
        white-space: nowrap;
        img {
          height:28px;
          width:auto;
          margin-right: 5px;
        }
        a:last-child img {margin-right: 0;}
      }
      ul {
        li {
          margin-left: 5px;
          text-align: right;
          #search {width: 215px!important;}
          #default-font-size {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            font-size: $sFontSize;
            p, form {display: inline-block;}
            p {margin-right: 5px;}
            @include switch-btn;
            input[type="radio"] {
              + label {
                padding: 2px 10px;
              }
            }
          }
          div {padding-top: 5px;}
          #gsearch {
            display: none;
            font-size: $sFontSize;
            padding-top: 7px;
            input[type="text"] {
              padding: 2px 5px!important;
              width: 200px!important;
            }
            button {
              background: linear-gradient(180deg, #6e87a5, $mainColor);
              box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
              border: 1px solid $mainColor;
              border-radius: 3px;
              color: $white;
              cursor: pointer;
              display: inline-block;
              margin: 0 0 0 5px;
              padding: 2px 10px;
              transition: none;
              white-space: nowrap;
            }
          }
        }
      }
    }
    #head-right-sp {display: none;}
  }
  #head-navi {
    border-top: 3px solid $subColor;
    box-shadow: 0 1px 3px $boxShadowColor;
    background-color: $officesColor;
    ul {
      border-left: 1px dotted $white;
      border-right: 1px dotted $white;
      display: flex;
      li {
        border-right: 1px dotted $white;
        color: $white;
        cursor: pointer;
        display: inline-block;
        margin: 0;
        text-align: center;
        transition: background-color 0.2s;
        width: 14.2%;
        &:last-child {
          border-right: none;
          width: 14.8%;
        }
        a {
          color: $white;
          display: inline-block;
          padding: 10px 0;
          text-decoration: none;
          width: 100%;
        }
        &.hover {
          background-color: $white;
          color: $subColor;
          font-weight: bold;
          a {
            background-color: $white;
            color: $subColor;
            text-decoration: none;
          }
        }
      }
    }
  }
}

/* footer */
#footer {
  background-color: $officesColor;
  color: $footerTextColor;
  h2 {
    color: $footerTextColor;
    margin: 0;
    padding: 0 5px 2px 0;
  }
  p {
    color: $footerTextColor;
    padding: 15px;
  }
  a {
    color: $white;
    &:hover {text-decoration: underline;}
  }
  #foot-navi {
    .border-dotted {
      border-left: 1px dotted $white;
      border-right: 1px dotted $white;
    }
  }
  #foot-link {
    display: flex;
    padding: 15px 15px 0 15px;
    div {
      width:25%;
    }
    ul {
      padding:0 20px 25px 15px;
    }
    li {
      line-height: 1.7;
    }
  }
}

/* ad */
@mixin ad {
  display: none;
  width: 100%;
}
#main {
  #head-ad {
    @include ad;
    margin-bottom: 15px;
  }
  #foot-ad {
    @include ad;
  }
}