@charset "UTF-8";

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

.zen-maru-gothic-regular {
  font-family: "Zen Maru Gothic", serif;
  font-weight: 400;
  font-style: normal;
}

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;
  z-index: 999;
  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 */

/* ここからメイン */
.section-top {
  margin-top: 100px;
  text-align: center;

  h2 {
    margin-top: 50px;
    font-size: 2em;
    line-height: 1.1;
    text-align: left;
    margin-left: 20px;
    letter-spacing: 0.2em;

    font-family: "Prompt", serif;
    font-weight: 500;
    font-style: normal;
  }

  .intro {
    text-align: left;
    line-height: 2;
    font-size: 1em;
    margin-left: 20px;
    margin-top: 5px;
  }

  img {
    width: 200px;
  }
}

.section-top-midle {
  height: 70vh;
  background-image: url(/img/bg-top-sp.png);
  background-position: center center;
  background-size: cover;
  padding: 20px 0;
  margin-top: 50px;

  .greeting {
    margin: 20px 0;
    text-align: center;
    line-height: 2;
    font-size: 1em;
  }
}

@media screen and (min-width: 767px) {
  .section-top {
    h2 {
      font-size: 5.5em;
      margin: 150px 0 40px 200px;
    }

    .intro {
      font-size: 2.5em;
      margin-bottom: 20px;
      margin-left: 200px;
      letter-spacing: 1;
    }
  }

  .section-top-midle {
    margin: 0 auto;
    background-image: url(/img/bg-top.png);
    background-position: center;

    background-size: cover;
    background-position-y: 50%;
    background-repeat: no-repeat;
    height: 60vh;
  }

  .qualification {
    margin: 50px;

    h4 {
      margin: 20px;
      font-size: 1.9em;
    }

    .qualification-text {
      font-size: 1.4em;
      line-height: 2;
    }
  }
}

/* ここからwork */

h3 {
  margin: 200px 0 50px 0;
  font-size: 3em;
  text-align: center;
}

.h3-title {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.h3-title::before,
.h3-title::after {
  content: "";
  flex: 1;
  /* 線の伸縮を均等にする */
  height: 1px; /* 線の太さ */
  background-color: #000; /* 線の色 */
  margin: 0 10px; /* テキストとの余白 */
}

.work {
  width: 70%;
  margin: 0 auto;
}

.work .box-f .box {
  width: 70%;
  margin: 50px auto;
}

.work .box-img img {
  width: 100%;
  height: auto; /* 高さは自動で調整 */
  object-fit: cover; /* 画像が枠に収まるように切り抜く */
  max-width: 600px; /* 最大幅を設定してサイズを均一に */
  max-height: 300px; /* 最大高さを設定 */
}

.box-subtitle {
  color: #a7a7a7;
  font-size: 0.8em;
  margin: 3px;
  text-align: left;
  white-space: nowrap;
}

.box-title {
  margin: 3px;
  text-align: left;
  white-space: nowrap;
}

.sample_btn {
  margin: 60px 0 ;
  display: inline-block;
  width: 200px;
  text-align: center;
  text-decoration: none;
  line-height: 60px;
  outline: none;
  color: #3dcdd5;
  font-weight: bold;
  border-radius: 9999px;
  background-color: #fff;
  position: relative;
  border: 2px solid #3dcdd5;
  transition: color 0.5s ease;
  letter-spacing: 0.2em;
}
.sample_btn:hover {
  color: #fff;
}
.sample_btn:hover::before {
  transform: scaleY(1);
}
.sample_btn::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: #3dcdd5;
  border-radius: 9999px;
  transform: scaleX(0);
  transition: all 0.5s ease;
  transition-property: transform;
}
.text {
  position: relative;
}






/* 以下はレイアウト調整用 */
body {
  vertical-align: middle;
  padding: 50px 0;
  text-align: center;
}

@media screen and (min-width: 767px) {
  h3 {
    letter-spacing: 0.1em;
  }

  .work {
    width: 80%;
    margin: 0 auto;
  }

  .box-f {
    display: flex;
    flex-wrap: wrap;
    /* 複数行に折り返し */
    gap: 50px;
    /* アイテム間の隙間 */
    justify-content: space-between;
    /* 左右に均等にスペースを配置 */
  }

  .work .box-img img {
    width: 100%;
    height: 20vw; /* 高さは自動で調整 */
    object-fit: cover; /* 画像が枠に収まるように切り抜く */
    max-width: 600px; /* 最大幅を設定してサイズを均一に */
    max-height: 350px; /* 最大高さを設定 */
  }

  .box {
    flex: 0 0 40%;
    /* 幅を48%に固定して隙間を作成 */
    text-align: center;
    /* 中央揃え */
    padding: 10px;
    /* 内側の余白 */
    box-sizing: border-box;
    /* パディングを幅に含める */

    .box-subtitle {
      font-size: 1.3em;
      margin-top: 10px;
    }

    .box-title {
      font-size: 1.5em;
      margin: 10px 0;
    }
  }
  .sample_btn {
    margin: 10px;
  }
}

/* ここからskill */

.skill {
  width: 70%;
  margin: 0 auto;
}

.skill-box {
  margin: 80px 0;

  .skill-title {
    text-align: center;
    font-size: 20px;
    margin: 15px;
  }
}

.skill-box-f {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.skill-img {
  width: 100px;
}

.skill-text {
  max-width: 80vw;
  /* 画面幅に対して相対的に設定 */
  font-size: 0.7em;
  margin-left: 20px;
  text-align: justify;
  line-height: 1.6;
}

h4 {
  text-align: center;
}

.qualification {
  p {
    font-size: 0.7em;
    text-align: center;
    margin: 5px;
    line-height: 1.6;
  }
}

@media screen and (min-width: 767px) {
  .skill {
    width: 80%;
  }

  .skill-f {
    background-color: #eceef370;
    display: flex;
    justify-content: space-evenly;
    /* 等間隔に配置 */
    gap: 15px;
    /* 各ボックスの間隔を調整 */
    padding: 20px;
  }

  .skill-box {
    flex: 1;
    /* 各ボックスの幅を均等にする */
    max-width: 380px;
    /* 必要に応じて最大幅を設定 */
    text-align: center;
    background-color: #fff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    /* ボックスに影を追加 */

    .skill-title {
      font-size: 1.8em;
    }
  }

  .skill-box-f {
    display: block;
  }

  .skill-img {
    margin: 10px auto;
  }

  .skill-img img {
    max-width: 100%;
    /* 画像が親要素を超えないように設定 */
    height: auto;
    margin: 0 auto;
  }

  .skill-text {
    text-align: justify;
    padding: 5px 10px;
    margin: 10px 0;
    font-size: 1em;
    /* 読みやすいフォントサイズに調整 */
    line-height: 1.9;
    /* 行間を広げる */
  }
}

/* ここからabout */

.about {
  width: 70%;
  margin: 0 auto;
  text-align: center;

  img {
    width: 200px;
  }

  .name {
    margin: 30px 0 0;
    font-size: 40px;
    white-space: nowrap;
  }

  .en-name {
    font-size: 20px;
    margin-bottom: 30px;
    white-space: nowrap;
  }

  /* p:nth-of-type(3)  */

  .about-intro {
    max-width: 80vw;
    /* 画面幅に対して相対的に設定 */
    line-height: 2;
    font-size: 1em;
    height: 180px;
    text-align: justify;
    color: #6a6a6a;
  }
}

@media screen and (min-width: 767px) {
  .about-f {
    width: 80%;
    margin: 100px 0 100px 100px;
    display: flex;
    justify-content: center;
    gap: 20px;
  }

  .about-box {
    max-width: 500px;
    margin-left: 100px;
  }

  .about-img {
    width: 300px;
  }

  .about-img img {
    width: 300px;
  }

  .about-intro {
    text-align: left;
    line-height: 2;
  }

  .about-box-f {
    display: flex;
    justify-content: left;
    align-items: baseline;

    .name {
      margin: 0;
      font-size: 40px;
    }

    .en-name {
      font-size: 20px;
      margin-left: 20px;
    }
  }
}

/* ここからcontact */

.contact {
  width: 70%;
  margin: 0 auto;

  p:first-of-type {
    color: #aaaaaa;
    margin: 10px 0 4px 0;
    white-space: nowrap;
  }

  p:nth-of-type(2) {
    width: fit-content;
    border-bottom: 1px solid black;
    font-size: 22px;
    margin: 0 auto;
    letter-spacing: 0.1em;
  }

  p:nth-of-type(3) {
    font-size: 0.7em;
    margin: 100px 0 50px 0;
  }
}

@media screen and (min-width: 767px) {
  .contact {
    width: 80%;
    margin: 0 auto;

    p:first-of-type {
      margin: 100px 0 30px 0;
    }

    p:nth-of-type(2) {
      width: fit-content;
      font-size: 2.3em;
    }

    p:nth-of-type(3) {
      font-size: 1em;
    }
  }
}

/* ここからfooter */

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

  img {
    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 {
      align-items: center;
      margin: 0px 50px 0 50px;
    }
  }

  .footer-logo {
    img {
      width: 100px;
    }
  }

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

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

  color: #202020;
}
