/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
*/

/* トップページWORKSセクション */
body.home .works-list {
  display: grid;
  padding-top: 20px;
  grid-template-columns: repeat(4, 1fr);
  gap: 80px 40px;
  margin-bottom: 80px;
}

body.home .works-list .work-item {
  display: flex;
  flex-direction: column;
  background-color: #fafafa;
  text-align: left;
  border: 2px solid #333;
  box-shadow: 3px 3px #333;
  border-radius: 10px;
  overflow: hidden;
}

.works-card-banner .thumb,
.works-card-illust .thumb {
  display: flex;
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

/* タイトルの位置を統一 */
body.home .work-title {
  font-size: 18px;
  font-weight: 400;
  color: #222;
  border-bottom: 1px solid #333;
  margin-top: 10px !important; /* 固定値で統一 */
  margin-bottom: 5px !important;
  padding-bottom: 3px;
}

body.home .work-title p {
  margin: 5px 10px 0 10px;
  font-size: 16px;
  font-weight: 400;
  /* border-top: 2px solid #18c16e; */
}
h3.work-title a {
  color: #222;
  font-weight: 500;
  text-decoration: none !important;
}

h3.work-title a:hover {
  filter: opacity(0.6);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  body.home .works-list {
    grid-template-columns: 1fr;
    gap: 60px 20px;
    margin-top: 60px;
  }

  body.home .works-list .work-item {
    width: 80%; /* スマホでは幅を広げる */
    max-width: 400px; /* 最大幅を設定 */
    margin: 0 auto;
  }

  body.home .work-title {
    font-size: 18px;
    margin-top: 15px !important;
  }
}

/* WORKSページ */

.site-content {
  background-color: #faf7ee;
}

.title-container {
  text-align: center;
  margin-top: 50px;
}

.archive-works .title-container h1 {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 400;
  font-size: 68px;
  color: #333;
  margin-top: -50px;
  letter-spacing: 0.05em;
}

/* スマホ用 */
@media (max-width: 767px) {
  .archive-works .title-container h1 {
    font-size: 48px;
  }
}

.title-container p {
  display: block;
  font-size: 20px;
  font-weight: 400;
  color: #333;
  padding: 0px 30px 1px 30px;
  margin-top: -10px;
  letter-spacing: 0.14em;
}

/* スマホ用 */
@media (max-width: 767px) {
  .title-container p {
    font-size: 16px;
  }
  .archive-works_h3 {
    margin-left: 20px;
  }
}

.archive-works_h3 {
  display: inline-block;
  color: #222;
  border-left: 5px solid #059641;
  font-size: 24px;
  font-weight: 500;
  margin-top: 80px;
  padding: 0px 10px;
  letter-spacing: 1px;
}

.works-list {
  display: grid;
  padding-top: 20px;
  grid-template-columns: repeat(4, 1fr);
  gap: 80px 40px;
  margin-bottom: 80px;
}

.works-list a:hover {
  filter: brightness(92%);
}

.works-card-banner,
.works-card-pop,
.works-card-illust,
.works-card-Web,
.works-card-goods {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  background-color: #fff8f8;
  border: 2px solid #333;
  box-shadow: 2px 2px #333;
  border-radius: 8px;
}

.fadein {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.2s ease-out;
  visibility: hidden;
}

.fadein.scrollin {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0s;
}

.works-card-banner .thumb,
.works-card-illust .thumb {
  display: flex;
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

.works-card-pop .thumb {
  display: flex;
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}
.pop-list .works-card-pop:nth-last-child(-n + 3) .thumb {
  aspect-ratio: 2/1;
  min-height: 250px;
}
.pop-list .works-card-pop:nth-last-child(-n + 3) .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0 8px;
}

.works-card-pop .thumb img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 8px 0;
  filter: drop-shadow(3px 3px 5px #dbdada);
}

.works-card-goods .thumb {
  aspect-ratio: 1/ 1;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

.works-card-goods .thumb img {
  object-fit: cover;
  max-height: 100%;
  width: 100%;
}

.works-card-Web .thumb {
  aspect-ratio: 1/ 1;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

.works-card-Web .thumb img {
  object-fit: cover;
  max-height: 100%;
  width: 100%;
}

/* テキスト部分 */
.works-card-content {
  background-color: #fafafa;
  padding: 8px;
  min-height: 80px; /* テキスト部分の最小高さ */
}

.works-card-content .title {
  color: #222;
  font-size: 18px;
  margin: 8px 0 5px 0;
  font-weight: 500;
  line-height: 1.4;
  border-bottom: 1px solid #333;
  padding-bottom: 3px;
}

.works-card-content p {
  display: inline;
  color: #222;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.1em;
}

.works-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 72px;
}
.btn1 {
  position: relative;
  background-color: #f7ca58;
  color: #333;
  border: 1px solid #333;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.7px;
  box-sizing: border-box;
  padding: 6px 70px 6px 20px;
  text-align: center;
  border-radius: 30px;
  box-shadow: 3px 3px #333;
  min-width: 128px;
  text-decoration: none;
  animation: poyopoyo 2s ease-out infinite;
}

/* スマホ用 */
@media (max-width: 767px) {
  .works-btn {
    margin-bottom: 64px;
  }
  .btn1 {
    font-size: 21px;
  }
}

.btn1::after {
  position: absolute;
  content: url("img/icon-mail.svg");
  width: 32px;
  height: 32px;
  right: 28px;
  bottom: 10px;
}

@keyframes poyopoyo {
  0%,
  40%,
  60%,
  80% {
    transform: scale(1);
  }
  50%,
  70% {
    transform: scale(0.95);
  }
}

.btn1:hover {
  color: #fff;
  background-color: #333;
  transition: all 300ms ease-in;
}

.btn1:hover::after {
  content: url("img/icon-mail-hover.svg");
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .works-list {
    grid-template-columns: 1fr;
    gap: 60px 20px;
    margin-top: 60px;
  }

  .works-card-banner,
  .works-card-pop,
  .works-card-illust,
  .works-card-Web,
  .works-card-goods {
    width: 80%; /* スマホでは幅を広げる */
    max-width: 400px; /* 最大幅を設定 */
    justify-self: center;
  }

  .works-card-banner .thumb,
  .works-card-pop .thumb,
  .works-card-illust .thumb,
  .works-card-Web .thumb,
  .works-card-goods .thumb {
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .works-card-banner .thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  body.home .work-title {
    font-size: 18px;
    margin-top: 15px !important;
  }
}

/* single-works */
.site-main {
  height: auto;
}

.works-single {
  padding: 0 20px;
}

.works-single h1 {
  margin-top: 40px;
  font-size: 1.8rem;
  font-weight: 500;
  color: #222;
  letter-spacing: 0.05em;
  padding-bottom: 10px;
}

.works-single p {
  display: inline-block;
  color: #4c4c4c;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.single-works-overview-wrapper ul {
  list-style: none;
  margin-left: 0;
}

.overview-list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.overview-list-item h3 {
  padding: 5px 10px;
  font-size: 20px;
  font-weight: 500;
  color: #222;
  letter-spacing: 0.05em;
  width: 180px; /* 好きなラベル幅 */
  flex-shrink: 0;
}

.works-single .single-thumb img {
  max-width: 540px;
  height: auto;
  box-shadow: 4px 4px 4px rgba(23, 23, 23, 0.15);
}

.single-thumb {
  text-align: center;
}

.works-detail-images {
  display: flex;
  align-items: start;
  justify-content: center;
  gap: 64px;
  padding: 72px;
}

.works-image {
  flex: 0 1 540px;
  height: auto;
}

.portfoliosite .works-detail-images:has(.works-image:only-child) .works-image {
  flex: 1 1 900px;
  max-width: 900px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .works-single .single-thumb img {
    width: 100%;
    height: auto;
  }
  .works-detail-images {
    flex-direction: column;
    padding: 40px 0px;
    gap: 40px;
  }
  .works-image {
    flex-basis: 100%;
    flex: none;
  }

  .portfoliosite
    .works-detail-images:has(.works-image:only-child)
    .works-image {
    flex: none;
    max-width: 100%;
  }
}

.single-page_btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 56px;
}
.single-page_btn .btn {
  background-color: #333;
  color: #fff;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.7px;
  box-sizing: border-box;
  padding: 6px 20px;
  text-align: center;
  border-radius: 30px;
  min-width: 128px;
  text-decoration: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .works-single h1 {
    font-size: 22px;
  }

  .works-single p {
    font-size: 16px;
  }

  .overview-list-item {
    display: block;
  }

  .overview-list-item h3 {
    font-size: 18px;
  }

  .single-page_btn .btn {
    font-size: 21px;
    margin-top: 20px;
  }
}

.btn:hover {
  color: #fff;
  background-color: #5d5555;
}

/* コンタクトフォーム */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%; /* 横幅いっぱい */
  max-width: 1024px; /* 最大幅を指定 */
  box-sizing: border-box;
}
.wpcf7 label {
  display: block;
  font-weight: bold;
}

.wpcf7 p:first-of-type {
  color: #222;
  text-align: center;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .wpcf7 p:first-of-type {
    font-size: 15px;
    margin-top: 40px;
    text-align: left;
  }
}

.wpcf7 p:nth-child(2) {
  margin-bottom: 72px;
}

.wpcf7 input[type="submit"] {
  display: block;
  background-color: #333;
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.7px;
  font-size: 26px;
  margin: 20px auto 0;
  border-radius: 30px;
  cursor: pointer;
}

.wpcf7 input[type="submit"]:hover {
  color: #fff;
  background-color: #5d5555;
  transition: all 300ms ease-in;
}

/* 氏名・メールアドレスのラベルに必須マークを付ける */
.required-label::after {
  content: "\5FC5\9808";
  display: inline-block;
  background: #e60033;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

.top-works-sec,
.top-works-sec .e-con,
.top-works-sec .e-con-inner {
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
}
