@charset "utf-8";

/* 共通 */
.wrapper{
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}
/* ヘッダー */
header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  position: sticky;
  top: 0;
  left: 0;
}

header h1{
  font-size: 32px;
}

nav ul{
  display: flex;
  gap: 40px;
}

.nav-link{
  display: flex;
  align-items: center;
  gap: 10px;
}

.fv video{
  width: 100%;
  height: calc(100vh - 100px);
}

@media screen and (min-width: 768px) {
  
  .main {
        flex-basis: 79.2%;
  }
  .header {
    position: relative;
        flex-basis: 20.8%;
    padding: 50px 20px;
  }
  .header_container {
    margin: 0 auto;
    position: sticky;
    top: 50px;
  }
  .header_logo {
    font-size: 30px;
    letter-spacing: 0.2em;
    line-height: 1.1;
  }
  .header_menu-button {
    display: none;
  }
  .header_contents {
    border: none;
    display: block;
  }
  .button {
    transition: background 0.3s, color 0.3s, opacity 0.3s;
  }
  .button:hover {
    background-color: #fff;
  }

  .button:hover .button_icon-path {
    fill: #4a4a4a;
  }
  
  .button_icon-path .pen{
    fill: #fff;
  }

  .button:hover .pen {
    fill: #4a4a4a ;
  }

  .button_icon-path .arm{
    fill: #fff;
  }

  .button:hover .button_icon-path .arm{
    fill: #4a4a4a;
  }

  .button:hover .b,
  .button:hover .c{
    stroke: #4a4a4a;
  }


  .button:hover .button_text {
    color: #4a4a4a;
  }
  .button--bg {
    color: #4a4a4a;
  }
  .button--bg:hover {
    opacity: 0.7;
  }
  .section_inner {
    max-width: 944px;
    margin: 0 auto;
  }
  .section_head {
    margin-bottom: 24px;
  }
  .section_head-main {
    font-size: 60px;
  }
  .fv_contents {
    background-image: url(../img/bg_fv.png) center center no-repeat;
    background-size: 100% auto;
    bottom: 100px;
    left: 0;
    width: 627px;
    height: 174px;
    padding-top: 24px;
    padding-left: 96px;
  }
  .service_list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8%;
  }
  .works_list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8%;
  }
  .about_container {
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
        -ms-flex-direction: row-reverse;
            flex-direction: row-reverse;
    gap: 40px;
  }
  .flow-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  #message {
    padding: 5rem 0;
  }
  .message_container {
    display: flex;
    gap: 40px;
  }
  .page-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (min-width: 768px) and (max-width:1024px) {
  .fv_contents {
    bottom: 50%;
    -webkit-transform: translateY(50%);
            transform: translateY(50%);
    max-width: 100%;
  }
  .about_container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
  .flow-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .message_container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
}