@charset "UTF-8";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

html {
  scroll-padding-top: 70px;
  scroll-behavior: smooth; /* スムーズスクロール */
}

img {
  width: 100%;
  vertical-align: bottom;
}

/* ここからヘッダー */
@media screen and (min-width:767px){
  .logo img{
    width: 100px !important;
    height: auto !important;
  }
}

.header {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100px;
}

/* header固定のため余白をつける。メニューのCSSには関係ない */
.main {
  margin-top: 60px;
}

@media only screen and (max-width: 768px) {
  .nav {
    position: fixed;
    right: -320px;
    /* 右から出てくる */
    top: 0;
    width: 300px;
    /* スマホに収まるサイズ */
    height: 100vh;
    padding-top: 60px;
    background-color: #fff;
    transition: all 0.6s;
    z-index: 200;
    overflow-y: auto;
    /* メニューが多くなったらスクロールできるように */
  }

  .hamburger {
    position: absolute;
    right: 15px;
    top: 8px;
    width: 40px;
    /* クリックしやすい幅 */
    height: 40px;
    /* クリックしやすい高さ */
    cursor: pointer;
    z-index: 300;
  }

  .nav_list {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .nav_item {
    text-align: center;
    padding: 0 14px;
  }

  .nav_item a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
  }

  .nav_item a:hover {
    background-color: #21dbe9;
  }

  .hamburger_border {
    position: absolute;
    left: 11px;
    width: 23px;
    height: 2px;
    background-color: #333;
    transition: all 0.6s;
  }

  .hamburger_border_top {
    top: 13px;
  }

  .hamburger_border_center {
    top: 20px;
  }

  .hamburger_border_bottom {
    top: 28px;
  }

  .black_bg {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    background-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s;
    cursor: pointer;
  }

  /* 表示された時用のCSS */

  /* ここからスマホ */
  .nav-open .nav {
    right: 0;
  }

  .nav-open .black_bg {
    opacity: 0.8;
    visibility: visible;
  }

  .nav-open .hamburger_border_top {
    transform: rotate(45deg);
    top: 20px;
  }

  .nav-open .hamburger_border_center {
    width: 0;
    left: 50%;
  }

  .nav-open .hamburger_border_bottom {
    transform: rotate(-45deg);
    top: 20px;
  }

  .header {
    height: 60px;
    /* ヘッダー全体の高さをスマホでも統一 */
  }

  .header-f {
    display: flex;
    align-items: center;
    /* 子要素を縦方向に中央揃え */
    height: 100%;
    /* 親要素（.header）の高さを引き継ぐ */
  }

  .logo img {
    display: block;
    /* インライン要素特有の余白を削除 */
    height: 60px;
    width: 60px;
    /* 画像の高さをスマホ用に調整 */
  }
}

/* ここまでスマホ */

/* ここからPC */

header {
  /* background-color: rgb(146, 174, 198); */
  width: 100%;
  padding: 15px 30px;
  height: 60px;
}

@media only screen and (min-width: 769px) {
  .logo {
    margin-left: 100px;
    display: flex;
    align-items: center;

    a {
      display: block;
    }
  }

  .inline-img {
    vertical-align: middle;
    /* 縦方向の微調整 (オプション) */
    height: 100px;
    /* 画像の高さをヘッダー内に収まるよう調整 */
  }

  .header-f {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* 子要素を縦方向に中央揃え */
    height: 100%;
    /* 親要素（.header）の高さを引き継ぐ */
  }

  .nav_list {
    /* background-color: aquamarine; */
    margin-right: 100px;
  }

  .nav_list li {
    display: inline-block;
    text-align: right;
    padding-left: 50px;
  }

  .nav_list li a {
    color: rgb(88, 88, 88);
    text-shadow: 2px 2px 1px #ffffff;
    font-weight: bold;
    font-size: 2.2em;
  }

  .nav_list li a:hover {
    border-bottom: 3px solid rgb(88, 88, 88);
  }
}

/* ここまでPC */

/* ここからメイン */

.btn {
  width: 150px;
  margin: 50px auto;
  display: block;
  text-decoration: none;
  cursor: pointer;
  border-radius: 9999px;
  color: #fff;
  background: #3dcdd5;
  text-align: center;
  font-size: 15px;
  line-height: 1;
  padding: 10px;
}

section {
  margin-top: 100px;
}

h2 {
  margin-left: 15px;
  font-size: 2.5em;
}

h3 {
  margin-left: 70px;
  font-size: 1em;
}

.xd-img1{
  width: 80%;
  display: flex;
  justify-content: space-evenly;
  margin: 100px auto;
  gap: 50px;

  .xd-img-box1{
    width: 40%;
    height: 100%;
    border: 1px solid rgb(144, 144, 144);
  }

  .xd-img-box2{
    width: 20%;
    border: 1px solid rgb(144, 144, 144);
  }


}


@media only screen and (min-width: 769px) {
  h2 {
    margin-left: 10%;
    font-size: 3em;
  }

  h3 {
    margin-left: 15%;
    font-size: 1em;
  }
}

/* ここからwork */

.title {
  width: 80%;
  margin: 100px 0 20px 10%;

  p {
    margin: 5px 0;

  }

  p:first-of-type {

    font-size: 0.8em;
    color: #6a6a6a;
  }

  p:nth-child(2) {
    font-size: 0.8em;

  }

  a {
    color: #4eb5b2;
    margin-left: 2em;
  }
}
@media only screen and (min-width: 769px) {
}
.work-img {
  width: 80%;
  margin: 0 auto;
}

.work-text {
  width: 85%;
  margin: 0 auto;

  dl {
    margin: 50px 10px;
    

    dt {
      white-space: nowrap;
      margin: 10px 0;
    }

    dd {
      width: 100%;
      color: #6a6a6a;
    }
  }
}

@media only screen and (min-width: 769px) {

  .title {
    margin: 100px 0 20px 15%;
  p {
    margin: 5px 0;

  }

  p:first-of-type {

    font-size: 1.2em;
    color: #6a6a6a;
  }

  p:nth-child(2) {
    font-size: 1.5em;
  }

  a {
    color: #4eb5b2;
    margin-left: 2em;
    font-size: 1.2em;
  }
  }



  
  .work-text {
    dl {
      display: flex;
      justify-content: space-evenly;

      dt {
        width: 50px;
        text-align: center;
        font-size: 1.3em;
        font-weight: bold;
      }

      dd {
        max-width: 500px;
        color: #6a6a6a;
      }
    }
  }
}




/* ここからfooter */

footer {
  /* height: 100px; */
  margin-top: 100px;
  margin-bottom: 100px;
  padding-top: 50px;
  /* background-color: #d0d0d0; */
  margin: 0 auto;
  text-align: center;

  img {
    /* padding-top: 30px; */
    width: 50px;
  }

  .footer-f {
    /* height: 150px; */
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 0px 50px 0 50px;
  }


  small {
    text-align: center;
  }

  #page-top a {
    display: block;
    width: 5px;
    height: 5px;
    object-fit: cover;
    background-image: url(/img/top3.png);
    background-size: contain;
    background-repeat: no-repeat;
    bottom: 5%;
    right: 5%;

    padding: 20px;
    position: fixed;
    z-index: 333;
  }
}

@media screen and (min-width: 767px) {
  footer {
    background-color: #fff;

    .footer-f {
      /* height: 150px; */
      align-items: center;
      /* display: flex;
      justify-content: space-between; */
      margin: 0px 50px 0 50px;
    }
  }

  .footer-logo {
    /* margin-bottom: 100px;
    margin-right: 100px; */

    img {
      width: 100px;
    }
  }

  #page-top a {
    width: 10px;
    height: 10px;
  }
}

body {
  font-family: "Kosugi Maru", serif;
  font-weight: 400;
  font-style: normal;
}