【特別編】コーポレートサイト/ソースコード

style.css

style.css

@charset "UTF-8";

html {
  font-size: 100%;
  font-family:helveticaneue,Helvetica,Arial,lucinda grande,hiragino kaku gothic pro,sans-serif;
}
body {
  color: #333;
}
a {
  color: #777;
  text-decoration: none;
}
a:hover {
  opacity: 0.7;
}
img {
  max-width: 100%;
}
li {
  list-style: none;
}

.wrapper {
  display: flex;
  justify-content:space-between;
  font-size: 0.9rem;
}
.container {
  margin: 40px 0 0 300px;
}
.section-wrapper {
  margin: 0 50px 100px 0;
}
.site-title {
  line-height: 1px;
  margin-bottom: 30px;
}
.site-title a {
  display: block;
}
.sec-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
}

/*-------------------------------------------
ヘッダー
-------------------------------------------*/
#header {
  width: 250px;
  padding: 40px 0 30px 45px;
  position: fixed;
}
#header .nav-menu {
  margin-bottom: 60px;
}
#header li {
  font-size: 0.9rem;
  padding: 8px 0;
}

/*-------------------------------------------
News
-------------------------------------------*/
#news dt {
  margin-bottom: 2px;
}
#news dd {
  margin-bottom: 20px;
}

/*-------------------------------------------
Service
-------------------------------------------*/
#service ul {
  display: flex;
  justify-content:space-between;
}
#service li {
  width: 31%;
}
#service li img {
  margin-bottom: 30px;
}
#service li .list-title {
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
}


/*-------------------------------------------
Company
-------------------------------------------*/
#company dl {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
#company dt {
  width: 15%;
  padding: 15px 0;
}
#company dd {
  width: 85%;
  padding: 15px 0;
}

/*-------------------------------------------
Work
-------------------------------------------*/
#work li {
  display: flex;
  margin-bottom: 20px;
}
#work li .work-img {
  width: 47%;
  margin-right: 3%;
}
#work li .work-content {
  width: 50%;
}
#work li .work-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 10px;
}
#work li .work-url {
  margin-bottom: 10px;
}

/*-------------------------------------------
Contact
-------------------------------------------*/
#contact dl {
  margin-bottom: 20px;
}
#contact dt {
  margin-bottom: 2px;
}
#contact dd {
  margin-bottom: 20px;
}
#contact dd input,
#contact dd textarea {
  width: 100%;
  border: solid 1px #c8c8c8;
  padding: 10px;
}
#contact dd textarea {
  height: 10rem;
}
.button {
  text-align: left;
}
.button input {
  width: 200px;
  background-color: #333;
  color: #fff;
  padding: 15px 0;
}
.button input:hover {
  opacity: 0.7;
}

/*-------------------------------------------
フッター
-------------------------------------------*/
#footer {
  background-color: #eff2f5;
  padding: 100px 10% 0;
}
#footer .footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 100px;
}
#footer .footer-text {
  width: 50%;
}
#footer .footer-text .concept {
  margin-bottom: 50px;
}
#footer .footer-menu {
  width: 10%;
}
#footer .footer-menu li {
  margin-bottom: 15px;
}
#footer .footer-menu li a {
  text-decoration: underline;
}
#footer .copyright {
  font-size: 0.5rem;
  text-align: center;
  padding: 10px;
}

/*-------------------------------------------
SP
-------------------------------------------*/
@media screen and (max-width: 960px) {
  .wrapper {
    flex-direction: column;
  }
  .container {
    width: 100%;
    margin: 70px 0 0 0;
    padding: 0 16px;
  }
  .section-wrapper {
    margin: -72px 0 60px 0;
    padding-top: 72px;
  }

  /*-------------------------------------------
  ヘッダー
  -------------------------------------------*/
  #header {
    width: 100%;
    padding: 16px;
    background-color: #fff;
  }
  #header .site-title {
    margin-bottom: 0;
  }
  #navi {
    display: block;
    position: fixed;
    top: 0;
    left: -300px;
    bottom: 0;
    width: 300px;
    padding: 25px;
    background: #fff;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: all .5s;
    z-index: 3;
    opacity: 0;
  }
  .open #navi {
    left: 0;
    opacity: 1;
  }
  #navi ul {
    margin: 0;
    padding: 0;
  }
  #navi ul.nav-menu {
    margin-bottom: 30px;
  }
  #navi ul li {
    position: relative;
    margin: 0;
    padding: 14px 0;
  }
  .toggle_btn {
    display: block;
    position: fixed;
    top: 22px;
    right: 18px;
    width: 30px;
    height: 30px;
    transition: all .5s;
    cursor: pointer;
    z-index: 3;
  }
  .toggle_btn span {
    display: block;
    position: absolute;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #333;
    border-radius: 4px;
    transition: all .5s;
  }
  .toggle_btn span:nth-child(1) {
    top: 4px;
  }
  .toggle_btn span:nth-child(2) {
    top: 14px;
  }
  .toggle_btn span:nth-child(3) {
    bottom: 4px;
  }
  .open .toggle_btn span {
    background-color: #fff;
  }
  .open .toggle_btn span:nth-child(1) {
    -webkit-transform: translateY(10px) rotate(-315deg);
    transform: translateY(10px) rotate(-315deg);
  }
  .open .toggle_btn span:nth-child(2) {
    opacity: 0;
  }
  .open .toggle_btn span:nth-child(3) {
    -webkit-transform: translateY(-10px) rotate(315deg);
    transform: translateY(-10px) rotate(315deg);
  }
  #mask {
    display: none;
    transition: all .5s;
  }
  .open #mask {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: .8;
    z-index: 2;
    cursor: pointer;
  }

  /*-------------------------------------------
  Service
  -------------------------------------------*/
  #service ul {
    flex-direction: column;
  }
  #service li {
    width: 100%;
    margin-bottom: 30px;
  }
  #service li img {
    margin-bottom: 10px;
  }

  /*-------------------------------------------
  Company
  -------------------------------------------*/
  #company dl {
    flex-direction: column;
  }
  #company dt {
    width: 100%;
    padding: 0;
    margin-bottom: 2px;
  }
  #company dd {
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
  }

  /*-------------------------------------------
  Work
  -------------------------------------------*/
  #work li {
    flex-direction: column;
    margin-bottom: 30px;
  }
  #work li .work-img {
    width: 100%;
    margin: 0 0 10px 0;
  }
  #work li .work-content {
    width: 100%;
  }

  /*-------------------------------------------
  フッター
  -------------------------------------------*/
  #footer {
    flex-direction: column;
    padding: 50px 25px 0;
  }
  #footer .footer-content {
    flex-direction: column;
  }
  #footer .footer-text {
    width: 100%;
    margin-bottom: 50px;
  }
  #footer .footer-text .concept {
    margin-bottom: 30px;
  }
  #footer .footer-menu {
    width: 100%;
  }
}