@charset "UTF-8";

/* KV */

.kv {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: black;
  background-size: cover;
}

.kv h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Lora", serif;
  font-size: 3.2rem;
  font-style: italic;
  color: #2d9830;
}
/* KV中のポインター風アニメーションの設定 */
.kv h1 span::after {
  content: " |";
  animation: pointColor 1s infinite;
}

@keyframes pointColor {
  0% {
    color: black;
  }
  50% {
    color: black;
  }
  100% {
    color: #2d9830;
  }
}

/* メイン共通 */

section {
  margin: 10px 0;
}

h2.heading-about,
h2.heading-works,
h2.heading,
h2.heading-sns,
h2.heading-contact,
h2.heading-contents,
.heading-primary,
.heading-news {
  font-family: "Lora", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 50px;
  text-align: center;
  letter-spacing: 0.15em;
  /* margin-top: 100px; */
  margin-bottom: 20px;
  color: #2d9830;
}

p.under-head {
  font-size: 14px;
  text-align: center;
  margin-bottom: 40px;
}

/* about */

.about-container {
  display: block; /* flexboxで画像と文字を分ける */
  align-items: flex-start;
  text-align: center; /*ウィンドウ幅を狭めた時に画像を中心に持っていく*/
}

.avatar img {
  width: 200px;
}

.text-about {
  margin: 20px;
  text-align: left;
  font-size: 14px;
}

.text-about h3 {
  font-size: 1.7rem;
  padding: 10px;
  text-align: center;
}

.text-about dt {
  padding: 10px;
}
/* aboutレスポンシブ対応 */
@media (min-width: 768px) {
  .about-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .about-container div {
    width: 40%;
  }

  .avatar img {
    width: 400px;
  }
}

/* works */
ul.works-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.works-col li {
  margin-bottom: 20px;
}

div.col3 {
  display: inline-block;
}

.to-work {
  width: 100%;
  margin-left: 70%;
  margin-top: 40px;
  text-align: center;
  font-size: 30px;
  color: #2d9830;
  border-width: 1px;
  border-radius: 50%;
}

/* worksレスポンシブ対応 */
@media (min-width: 768px) {
  ul.works-col {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .works-contents:last-child {
    margin-right: 0px;
  }
}

/* otherworksレスポンシブ対応 */
@media (min-width: 768px) {
  ul.otherworks-col {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    /* margin: 60px; */
  }
  .otherworks-contents:last-child {
    margin-right: 0px;
  }
}

/* sns */
.sns {
  text-align: center;
}

.insta {
  margin: auto;
}

@media (min-width: 768px) {
  .insta {
    width: 50%;
    margin: 30px auto;
  }
}

/* contact */

.contact {
  padding-bottom: 100px; /*特に必要はないけど、ヘッダーのナビから飛んだ場合位置が微妙になっちゃうので、下に空白を入れて位置を調整*/
}

.contact p {
  font-size: 14px;
  text-align: center;
  margin-bottom: 40px;
}

.list-icon {
  text-align: center;
}

.sns-icon {
  display: inline-block;
  font-size: 30px;
  margin-right: 30px;
  margin-bottom: 40px;
}

.sns-icon:hover {
  color: #2d9830;
}
/* 一番右のiconだけmargin-rightを無効にする */
.sns-icon:last-child {
  margin-right: 0px;
}

/* 制作物一覧用スタイル */
.heading-moreworks {
  font-family: "Lora", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 50px;
  text-align: center;
  letter-spacing: 0.15em;
  margin-top: 100px;
  margin-bottom: 20px;
  color: #2d9830;
}

.under-head {
  font-size: 14px;
  text-align: center;
  margin-bottom: 40px;
}

.work-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
  border: 1px solid #2d9830;
  border-radius: 3px;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 40px;
  gap: 20px;
}

.work-img {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.work-text {
  width: 100%;
  font-size: 1rem;
  line-height: 1.6;
}

h3 {
  font-size: 1.5rem;
  color: #2d9830;
}

.work-button {
  display: inline-block;
  margin-top: 1em;
  padding: 0.6em 1.2em;
  background-color: #007acc;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.work-button:hover {
  background-color: #005fa3;
}

/* PCスタイル（768px以上） */
@media (min-width: 768px) {
  .work-section {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
  }

  .work-text,
  .work-img {
    width: 50%;
  }

  .work-section.reverse {
    flex-direction: row-reverse;
  }
}

.works-jump {
  padding-top: 50px;
  text-align: center;
}

/* ページネーション装飾 */
.wp-pagenavi a,
.wp-pagenavi span,
a.page-numbers,
span.page-numbers {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 12px;
  text-decoration: none;
  border: 1px solid #2d9830;
  color: #fff;
  background-color: #2d9830;
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* カレント */
.pagination .current {
  background-color: #005fa3;
  color: #fff;
}

/* ホバー */
.wp-pagenavi a:hover,
a.page-numbers:hover {
  border-color: #2d9830;
  font-weight: bold;
  background-color: #d8f0db;
  color: #2d9830;
}

/* カードスタイル */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card .card_body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card .card_label {
  position: absolute;
  top: 10px;
  left: 0;
  z-index: 1000;
}

.card .card_label .label {
  margin-right: 5px;
}

.card .card_pic {
  margin-bottom: 15px;
  overflow: hidden;
  height: 0;
  padding-bottom: 57.1428571429%;
}

.card .card_pic:hover img {
  transform: scale(1.1);
}

.card .card_pic img {
  width: 100%;
  height: auto;
  transition: transform 0.6s ease;
}

.card .card_title {
  font-weight: bold;
  line-height: 1.2;
  padding-bottom: 10px;
  font-size: 18px;
}

.card time {
  margin-top: auto;
  font-size: 12px;
}

.card-wrapper {
  display: block;
  margin-bottom: 0;
}

.card-wrapper .card {
  margin-bottom: 30px;
}

.cardList {
  display: flex;
  flex-direction: column;
}

.cardList.cardList-1row .cardList_item {
  padding-bottom: 0;
}

.cardList .cardList_item {
  width: 100%;
  margin: 0 auto 20px;
  padding: 0 15px 30px;
}

.cardList .cardList_item:last-child {
  margin-bottom: 0;
}

.cardList .cardList_item a {
  text-decoration: none;
  color: #000;
  transition: 0.3s;
}

.cardList .cardList_item a:hover {
  opacity: 0.8;
}

/* ===== PC・タブレット向け（768px以上） ===== */
@media (min-width: 768px) {
  .card .card_title {
    padding-bottom: 15px;
  }

  .card-wrapper {
    margin-bottom: -30px;
  }

  .cardList {
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0 -15px;
  }

  .cardList .cardList_item {
    width: 33.3333333333%;
    padding: 0 15px 80px;
    margin: 0;
  }

  .cardList .cardList_item:nth-child(3n) {
    margin-right: 0;
  }

  .cardList .cardList_item:last-child {
    margin-bottom: 0;
  }
}
