/*----------

共通
-----------*/

img {
  max-width: 100%;
}

.title {
  text-align: center;
  margin-bottom: 40px;
}

.container {
  font-family: "Lato", sans-serif;
}

.text {
  font-family: sans-serif;
}

a {
  text-decoration: none;
}

/*----------

header
-----------*/

.header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 16px 0;
}

.h1-first {
  margin-bottom: 0px;
}

.ul-first {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0px;
}

li {
  padding: 16px;
  text-align: center;
}

li a {
  color: black;
  text-decoration: none;
}

/*----------スマホ----*/

@media screen and (max-width: 768px) {
  .h1-first {
    padding: 16px;
  }

  .header-menu {
    width: 100%;
  }
  .ul-first {
    padding: 0;
  }

  li {
    width: 50%;
    border: 1px solid #d8d8d8;
  }
}

/*----------

about


-----------*/
.about-area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 40px;
}

.about-area-image {
  width: 50%;
}

.about-area-description {
  width: 50%;
  padding: 16px;
}

.about-area-description-icon {
  font-size: 50px;
  display: flex;
  justify-content: space-around;
  padding: 16px;
}

.about-area-description-icon a:hover {
  opacity: 0.6;
}

.fa-twitter {
  color: #1da1f2;
  opacity: 0.8;
}

.fa-facebook-f {
  color: 1877f2;
  opacity: 0.8;
}

.fa-blog {
  color: black;
  opacity: 0.8;
}

/*----------スマホ----*/

@media screen and (max-width: 768px) {
  .about-area-image {
    width: 100%;
  }

  .about-area-description {
    width: 100%;
    padding: 16px;
  }
}

/*----------

skill

-----------*/

h3 {
  text-align: center;
  margin-bottom: 40px;
}

.skill-icon {
  text-align: center;
  font-size: 60px;
  margin-bottom: 40px;
  color: #777474;
}

/*----------

Works

-----------*/
/* @media screen and (min-width: 576px) {
  .works-wrap-wide {
    max-width: 1440px;
  }
} */

.works-wrap-wide {
  margin: 0 auto;
  max-width: 100%;
  position: relative;
  padding: 0 2rem; /* 左右32px  */
  text-align: center;
  width: auto;
}

.list-works {
  display: flex;
  list-style: none;
  justify-content: space-between;
  flex-wrap: wrap;
}

.work {
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 4px 6px 6px rgba(0, 0, 0, 0.2);
  position: relative;
  height: fit-content;

  /* スライドの設定 */
  transition: all 0.5s; /* 変化時間を指定する */
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
}

@media screen and (min-width: 1024px) {
  .work {
    margin-bottom: 5rem; /* 80px */
    width: calc(50% - 2rem); /* li要素を常に50%にして32px分ひく */
  }
  .right:nth-child(even) {
    margin-top: 5rem;
    margin-left: 4rem;
  }
}

/* スライド初期位置 */
.left {
  opacity: 0;
  transform: translate(-800px, 0); /* x軸上、左へ */
}

.right {
  opacity: 0;
  transform: translate(800px, 0); /* x軸上、左へ */
}

.left.show {
  opacity: 1;
  transform: translate(0px, 0) !important; /* x軸上、左へ */
}

.right.show {
  opacity: 1;
  transform: translate(0px, 0) !important; /* x軸上、左へ */
}

/* .list-works li::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  transform-origin: right top;
  transform: scale(0, 1);
  transition: transform 0.35s;
}
 */
.media_thumb {
  position: relative;
  width: 100%;
  overflow: hidden;
  /*   height: 100px;
 */
}

.media_thumb::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.media_thumb img {
  position: absolute;
  object-fit: cover;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}

.work-title {
  text-align: left;
  font-size: 1.25rem;

  margin-bottom: 0.5rem;
}
.work-detail p {
  text-align: left;
  margin-bottom: 0.5rem;
}

/* ----------------

スマホ、タブレット

----------------*/

@media screen and (max-width: 1023px) {
  .works-wrap-wide {
    padding: 0;
  }

  .list-works {
    display: block;
    width: 100%;
    padding: 0;
  }

  .work {
    width: 100%;
    margin-bottom: 16px;
  }

  .left {
    opacity: 1;
    transform: none; /* x軸上、左へ */
  }

  .right {
    opacity: 1;
    transform: none; /* x軸上、左へ */
  }

  .left.show {
    transform: none !important; /* x軸上、左へ */
  }

  .right.show {
    transform: none !important; /* x軸上、左へ */
  }
}

/*----------

Contact

-----------*/
.form {
  width: 400px;
  margin: 0 auto;
}

label {
  display: block;
}

input {
  display: block;
  width: 100%;
}

textarea {
  display: block;
  width: 100%;
}

.form-content {
  margin-bottom: 16px;
}

.submit-btn {
  display: block;
  background-color: gray;
  color: white;
  margin: 0 auto;
  padding: 16px;
  width: 250px;
  text-align: center;
}

.footer {
  text-align: center;
  margin-top: 16px;
}

/*----------スマホ----*/

@media screen and (max-width: 768px) {
  .form {
    width: 100%;
  }
}
