html {
  height: 100%;
  margin: 0;
  padding: 0;
}


body {
  font-family: "Montserrat", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 15px;
  letter-spacing: .05em;
  color: #3e4550;
}

.error-img {
  width: 100%;
  height: 100%;
  position: relative;
}


.error-img a {
  transition: opacity .3s;
  text-decoration: none;
  color: #1ca9e3;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  border-style: none;
  object-fit: cover;
}

ul,
li,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: #1ca9e3;
}

.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

:root {
  --main--color: #3e4550;
}

/*--------------------------------
 フォントオーサム
---------------------------------*/
.fa-home {
  margin-right: 1px;
  align-self: baseline;
  font-size: 11px;
}

/*--------------------------------
 レイアウト
---------------------------------*/

.error-block {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.error-block h1 {
  font-size: 30px;
}

.error-block p {
  margin-top: 16px;
}

.error-num {
  font-size: 50px;
}

.wrapper {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


.section {
  margin: 60px;
}

/* 
.section:nth-of-type(odd) {
  background-color: #f8f6f6;

} */

.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 40px;
}

.content {
  flex: 1;
}

.cpmtact-block {
  background-color: #fff;
}

/*--------------------------------
スクロール
---------------------------------*/
.scrollarrow__down {
  position: absolute;
  top: 50%;
  bottom: 1%;
  right: 50%;
  animation: arrowmove 1s ease-in-out infinite;
}

@keyframes arrowmove {
  0% {
    bottom: 1%;
  }

  50% {
    bottom: 3%;
  }

  100% {
    bottom: 1%;
  }
}

.scrollarrow__down span {
  position: absolute;
  left: -20px;
  bottom: 10px;
  color: #000000;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  -ms-writing-mode: tb-rl;
  -webkit-writing-mode: vertical-rl;
  writing-mode: vertical-rl;
}

.scrollarrow__down:before {
  content: "";
  position: absolute;
  bottom: 0;
  right: -6px;
  width: 1px;
  height: 20px;
  background: #000000;
  transform: skewX(-31deg);
}

.scrollarrow__down:after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 1px;
  height: 50px;
  background: #000000;
}

/*--------------------------------
 見出し
---------------------------------*/
.title {
  font-size: 34px;
  font-weight: bold;
  line-height: 1;
  text-align: center;
  letter-spacing: .05em;
  color: #3e4550;
  position: relative;
  padding-top: 60px;
  margin-bottom: 40px;
}

.page-title {
  padding-top: 30px;
  margin-bottom: 20px;
}

.title::after {
  display: block;
  content: "";
  border-bottom: 1px solid #3e4550;
  width: 70px;
  margin: 0 auto;
  padding-bottom: 10px;
}

.lead {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}

/*--------------------------------
ヘッダー
---------------------------------*/
.header {
  position: fixed;
  top: 0;
  z-index: 1;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 5px 10px -6px rgba(0, 0, 0, .1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
}

.header-logo {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
  margin-right: 20px;
  letter-spacing: .05em;
}

.header-logo a {
  color: var(--main--color);
}

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

.gnav-item:not(:last-child) {
  margin-right: 20px;
}

.gnav-item a {
  position: relative;
  font-size: 13px;
  font-weight: normal;
  display: inline-block;
  padding: 5px 0;
  font-size: 16px;
  font-weight: normal;
  transition: .3s;
  letter-spacing: .05em;
  color: var(--main--color);
}

.gnav-item a:after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  content: "";
  transition: .3s;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: var(--main--color);
}

.gnav-item a:hover:after {
  width: 100%;
}

/*--------------------------------
 メインビジュアル
---------------------------------*/
.mv {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 71px);
  text-align: center;
  position: relative;
  background: linear-gradient(to bottom, #ffffff, #e6f7ff);
  z-index: 0;
}


/*流体シェイプ*/
.fluid {
  position: absolute;
  top: 2%;
  left: 3%;
  bottom: 0;
  width: 40vh;
  height: 40vh;
  background: #68c4e9;
  animation: fluidrotate 30s ease 0s infinite;
  z-index: -1;
}

.fluid-bottom {
  position: absolute;
  top: 50%;
  right: 3%;
  bottom: 0;
  width: 30vh;
  height: 30vh;
  background: #68c4e9;
  animation: fluidrotate 30s ease 0s infinite;
  z-index: -1;
}

@keyframes fluidrotate {

  0%,
  100% {
    border-radius: 63% 37% 54% 46%/55% 48% 52% 45%;
  }

  14% {
    border-radius: 40% 60% 54% 46%/49% 60% 40% 51%;
  }

  28% {
    border-radius: 54% 46% 38% 62%/49% 70% 30% 51%;
  }

  42% {
    border-radius: 61% 39% 55% 45%/61% 38% 62% 39%;
  }

  56% {
    border-radius: 61% 39% 67% 33%/70% 50% 50% 30%;
  }

  70% {
    border-radius: 50% 50% 34% 66%/56% 68% 32% 44%;
  }

  84% {
    border-radius: 46% 54% 50% 50%/35% 61% 39% 65%;
  }

}


.mv-container {
  padding: 0 40px;
}

.mv-title {
  font-size: 60px;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 5px;
  letter-spacing: .1em;
}

.mv-subtitle {
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 40px;
  letter-spacing: .08em;
}

.mv-text {
  font-size: 16px;
  line-height: 1.8;
}

/*--------------------------------
 Works
---------------------------------*/
.works-list {
  display: grid;
  column-gap: 2%;
  row-gap: 30px;
  grid-template-columns: repeat(4, 1fr);
}

.works-item {
  margin-right: 1.58730%;
  margin-bottom: 40px;
  color: #333;
}

.works-item:hover {
  opacity: .9;
}

.works-item:nth-of-type(3n) {
  margin-right: 0;
}

.works-img img {
  border: 1px solid #e6e6e6;
}

.work-img img:hover {
  opacity: 0.8;
}



.works-info {
  font-size: 10px;
  margin-top: 5px;
  text-align: left;
}

.works-txt {
  font-size: 12px;
  margin-top: 5px;
  line-height: 1.8;
  text-align: left;
}

.works-name {
  font-size: 12px;
  margin-top: 10px;
  font-weight: bold;
  text-align: left;

}

/*--------------------------------
 Skill
---------------------------------*/
.skill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: -50px;
}

.skill-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 80%;
  margin: 24px auto;

}

.wp-block-heading,
.is-style-heading-border-left {
  border-left: 4px solid #333;
  padding-left: 15px;
}

.skill-img {
  width: 60px;
  height: auto;
  margin-right: 20px;
}

.skill-body {
  flex: 1;
}

.skill-name {
  margin-bottom: 10px;
}

.skill-text {
  font-size: 14px;
  line-height: 1.8;
}

/*--------------------------------
 About
---------------------------------*/
.profile {
  display: flex;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}


.profile-img {
  width: 100%;
  display: inline-block;
  margin-right: 30px;
  border-radius: 50%;
}


.profile-body {
  flex: 1;
  margin: 24px 0;
}

.profile-title {
  font-size: 1.8em;
  border-left: 4px solid #333;
  padding-left: 10px;
  margin-bottom: 10px;
}

.profile-body p {
  font-size: 15px;
  line-height: 1.8;
}

.profile-body p:not(:last-child) {
  margin-bottom: 30px;
}

.back-link {
  margin-top: 40px;
  text-align: center;
}

/*--------------------------------
 Contact
---------------------------------*/

.contact-lead {
  text-align: center;
}

.contact-item:not(:last-child) {
  margin-right: 10px;
}

.contact-text {
  margin-top: 10px;
}

/*--------------------------------
 ページトップ
---------------------------------*/
.page-top {
  font-weight: bold;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  background-color: #4c4c4c;
}

.page-top .material-icons-outlined {
  vertical-align: bottom;
  color: #fff;
}

/*--------------------------------
 フッター
---------------------------------*/
.footer {
  padding: 50px 20px 30px 20px;
  width: 100%;
  background-color: #333;
}

.copyright {
  font-size: 10px;
  text-align: center;
  color: #797979;
  margin-top: 30px;
}

/*footer-nav*/
.footer-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
}

.footer-item {
  margin: 0 20px;
}

.footer-link {
  color: #fff;
  font-size: 14px;
  font-weight: normal;
}

.footer-link:hover {
  opacity: 0.8;
  animation: scale 0.5s ease-in-out;
}

/*--------------------------------
 下層：Worksページ
---------------------------------*/

.article {
  padding-top: 80px;
}

.article-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-title {
  padding-top: 80px;
  text-align: center;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  margin-bottom: 80px;
}

.article-body p {
  margin-top: 10px;
}

.article-body h3 {
  position: relative;
  font-size: 18px;
  margin-bottom: 5px;
  padding-left: 1em;
}

.article-body h3:not(:first-child) {
  margin-top: 50px;
}

.article-body h3::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  content: "";
  border-radius: 3px;
  background-color: #333;
}

.article-body p {
  font-size: 15px;
  line-height: 1.8;
}

.home-link {
  text-align: center;
}


.btn-block {
  display: flex;
  width: 220px;
  text-align: center;
  margin: 40px auto;
}


.btn-link {
  background-color: #fff;
  border: #1ca9e3 solid 1px;
  padding: 1.2em 2em;
  display: inline-block;
  letter-spacing: 0.05em;
  transition: 0.3s;
  border-radius: 30px;
  font-weight: bold;
  font-size: 12px;
}

.btn-link:hover {
  opacity: 0.6;
}

/*タグ
----------------------------------------------------*/
.page-title {
  text-align: center;
}

.tags-item {
  margin-top: 45px;
}

.tags-item:hover {
  opacity: 0.8;
}

.tags-list {
  display: grid;
  column-gap: 2%;
  row-gap: 30px;
  grid-template-columns: repeat(4, 1fr);
}

.tags-title {
  font-size: 14px;
  margin-top: 10px;
  text-align: left;
  word-break: normal;
}

/* breadcrumb */
.breadcrumb {
  padding: 20px 0;
  font-size: 11px;
}

.breadcrumb a {
  color: #1ca9e3;
  text-decoration: none;
  font-size: 11px;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #333;
  font-weight: bold;
  font-size: 11px;
}

.breadcrumb-title,
.breadcrumb-taxonomy,
.breadcrumb-search,
.breadcrumb-404,
.breadcrumb-tag,
.breadcrumb-author,
.breadcrumb-date,
.breadcrumb-archive {
  font-weight: bold;
  color: #333;
}

.pagination-container {
  clear: both;
  /* 上のコンテンツと重ならないように */
  margin-top: 20px;
  /* 上部との間隔 */
  text-align: center;
  /* 中央に配置 */
}

.wp-pagenavi {
  margin: 60px auto;
  text-align: center;
}

.wp-pagenavi .pages {
  display: none;
}

.wp-pagenavi .page {
  display: inline-block;
  text-align: center;
  width: 42px;
  line-height: 42px;
  margin: auto 6px;
  transition: 0.3s ease-out;
}


.wp-pagenavi .current {
  display: inline-block;
  text-align: center;
  width: 42px;
  line-height: 42px;
  color: #1ca9e3;
  border-radius: 21px;
  margin: auto 6px;
}

.wp-pagenavi .previouspostslink,
.wp-pagenavi .nextpostslink,
.wp-pagenavi .extend,
.wp-pagenavi .first,
.wp-pagenavi .last {
  line-height: 42px;
  margin: auto 8px;
  transition: 0.3s ease-out;
}

.wp-pagenavi,
.page {
  color: #333;
}

.btn-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/*media Queries 767
----------------------------------------------------*/
@media screen and (max-width: 767px) {
  body {
    font-size: 14px;
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }

  /* 見出し */
  .title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .lead {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  /* breadcrumb */
  .breadcrumb {
    margin-top: 20px;
    font-size: 11px;
  }

  /* レイアウト */
  .wrapper {
    padding-top: 0;
  }

  .section {
    padding: 30px 0;
  }

  .container {
    padding: 0 20px;
  }

  /* ヘッダー */
  .header .container {
    padding: 15px;
    justify-content: center;
    flex-direction: column;
  }

  .header-logo {
    font-size: 15px;
    margin-right: 15px;

  }

  .gnav-item:not(:last-child) {
    margin-right: 10px;
  }

  .gnav-item a {
    font-size: 10px;
  }

  .gnav-item a:after {
    display: none;
  }

  /*  メインビジュアル */


  .mv-container {
    padding: 0 20px;
  }

  .mv-title {
    font-size: 30px;
  }

  .mv-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .mv-text {
    font-size: 14px;
    line-height: 1.7;
  }


  /* Works */
  .works-info {
    margin-top: 3px;
  }

  .works-list {
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 20px;
  }

  .works-item {
    flex: 0 0 48%;
    margin-right: 0;
    margin-bottom: 30px;
    text-align: center;
  }

  .article-title {
    padding-top: 30px;
  }

  /* Skill */
  .skill-list {
    display: block;
    margin-bottom: 0;
  }

  .skill-item {
    width: 100%;
    margin-bottom: 35px;
  }

  .skill-item:last-child {
    margin-bottom: 0;
  }

  .skill-name {
    margin-bottom: 5px;
  }

  .skill-text {
    font-size: 13px;
    line-height: 1.7;
  }

  /* About */
  .profile {
    display: block;
  }


  .profile-body p {
    font-size: 14px;
    line-height: 1.7;
  }

  .profile-body p:not(:last-child) {
    margin-bottom: 20px;
  }

  /* フッター */


  .footer-list {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer-item {
    margin: 0;
  }

  .footer-link {
    color: #fff;
    font-size: 14px;
    font-weight: normal;
  }

  /* 下層ページ */
  .article {
    padding: 50px 0;
  }

  .article-body h3 {
    font-size: 16px;
    padding-left: .8em;
  }

  .article-body h3:not(:first-child) {
    margin-top: 30px;
  }

  .article-body p {
    font-size: 14px;
    line-height: 1.7;
  }

  /*流体シェイプ*/
  .fluid {
    position: absolute;
    top: 2%;
    left: 3%;
    bottom: 0;
    width: 30vh;
    height: 30vh;
    background: #68c4e9;
    animation: fluidrotate 30s ease 0s infinite;
    z-index: -1;
  }

  .fluid-bottom {
    position: absolute;
    top: 50%;
    right: 3%;
    bottom: 0;
    width: 20vh;
    height: 20vh;
    background: #68c4e9;
    animation: fluidrotate 30s ease 0s infinite;
    z-index: -1;
  }

  @keyframes fluidrotate {

    0%,
    100% {
      border-radius: 63% 37% 54% 46%/55% 48% 52% 45%;
    }

    14% {
      border-radius: 40% 60% 54% 46%/49% 60% 40% 51%;
    }

    28% {
      border-radius: 54% 46% 38% 62%/49% 70% 30% 51%;
    }

    42% {
      border-radius: 61% 39% 55% 45%/61% 38% 62% 39%;
    }

    56% {
      border-radius: 61% 39% 67% 33%/70% 50% 50% 30%;
    }

    70% {
      border-radius: 50% 50% 34% 66%/56% 68% 32% 44%;
    }

    84% {
      border-radius: 46% 54% 50% 50%/35% 61% 39% 65%;
    }

  }

  /*タグ
----------------------------------------------------*/
  .page-title {
    text-align: center;
  }

  .tags-item {
    margin-top: 45px;
  }

  .tags-item:hover {
    opacity: 0.8;
  }

  .tags-list {
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 15px;
  }

  .tags-title {
    font-size: 12px;
    margin-top: 10px;
    word-break: normal;
    text-align: left;
  }

}

.contact-lead {
  margin-bottom: 1.5em;
}

/*WP-PageNavi*/

/*WP-PageNavi*/
.wp-pagenavi {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}
 .wp-pagenavi a,
.wp-pagenavi span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;   /* ボタンの横幅（縦と同じに） */
  height: 40px;  /* ボタンの高さ */
  margin: 0 4px;
  font-size: 16px;
  text-align: center;
  line-height: 1;
}

.wp-pagenavi a:hover {
  background-color: #1ca9e3;
  color: #fff;
   opacity:0.8;
}

/* 現在ページ */
.wp-pagenavi .current {
  background-color: #1ca9e3;
  color: #fff;
  font-weight: bold;
}

/* 「次へ」「前へ」は数字ボタンと同じ高さで幅は自動 */
.wp-pagenavi .previouspostslink,
.wp-pagenavi .nextpostslink {
  width: auto;
  padding: 0 16px;
  border-radius: 8px;
}