@charset "utf-8";

/*-------------------------------------
変数
-------------------------------------*/

:root {
  --NotoSansJP: "Noto Sans JP", sans-serif;
}





/*-------------------------------------
共通
-------------------------------------*/

/********************/
/* タグ */
/********************/

.body {
  font-family: var(--NotoSansJP);
  line-height: 1.4;
  color: #000;
}
.body.no-scroll {
  overflow: hidden;
}

img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

figure {
  margin: 0;
}



/********************/
/* PC版とsp版で表示非表示の切り替え */
/********************/

.sp-only {
  display: none;
}

@media screen and (max-width: 767.98px) {
  .sp-only {
    display: block;
  }
  .pc-only {
    display: none;
  }
}



/********************/
/* スマホはタップで通話できるが、PCではクリックさせない */
/********************/

@media screen and (min-width: 768px) {
	a[href^="tel:"] {
		pointer-events: none;
	}
}



/********************/
/* ボタン */
/********************/

a {
  display: inline-block;
  transition: 0.3s;
}
@media (hover: hover) {
  a:hover {
    opacity: 0.7;
  }
}

button {
  display: inline-block;
  transition: 0.3s;
}
@media (hover: hover) {
  button:hover {
    opacity: 0.7;
  }
}



/********************/
/* インナー */
/********************/

.common-inner {
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: 20px;
}





/*-------------------------------------
mainとheaderとfooter
-------------------------------------*/

main {
  margin-top: 100px;
  margin-bottom: 100px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: #BABABA;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

footer {
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  background-color: #000;
}





/*-------------------------------------
404
-------------------------------------*/

.p-404 {
  min-height: calc(100svh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.p-404__title {
  text-align: center;
  font-weight: 700;
  font-size: 28px;
  text-transform: uppercase;
}

.p-404__text {
  margin-top: 32px;
  text-align: center;
  font-size: 20px;
}

.p-404__back {
  margin-top: 64px;
}

.p-404__back-link {
  font-size: 18px;
  text-decoration: underline;
}

@media screen and (max-width: 767.98px) {
  .p-404__title {
    font-size: 24px;
  }
  .p-404__text {
    font-size: 16px;
  }
  .p-404__back {
	  margin-top: 40px;
	}
  .p-404__back-link {
    font-size: 16px;
  }
}





/*-------------------------------------
お問い合わせ
-------------------------------------*/

.p-contact-form {
  margin-top: 24px;
}

.p-contact-form__list:not(:first-child) {
  margin-top: 24px;
}

.p-contact-form__label-zone {
  display: inline-block;
}
.p-contact-form__list--must .p-contact-form__label-zone {
  position: relative;
}
.p-contact-form__list--must .p-contact-form__label-zone::before {
  position: absolute;
  top: 0;
  left: calc(100% + 2px);
  content: "*";
  color: red;
}

.p-contact-form__label {
  font-size: 16px;
}

.p-contact-form__data {
  margin: 8px 0 0 0;
}

.p-contact-form__input {
  width: 100%;
  padding: 10px;
  border-radius: 0;
  border: 1px solid #000;
  text-align: left;
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}
.p-contact-form__input::placeholder {
  text-align: left;
  font-size: 16px;
  color: #BABABA;
}

.p-contact-form__textarea {
  width: 100%;
  height: 200px;
  padding: 10px;
  border-radius: 0;
  border: 1px solid #000;
  background-color: #fff;
  font-weight: 400;
  font-size: 16px;
  resize: vertical;
}
.p-contact-form__textarea::placeholder {
  font-weight: 400;
  font-size: 16px;
  color: #BABABA;
}

/* ラジオボタン */
input[type="radio"] {
  opacity: 0;
  position: absolute;
  visibility: hidden;
}
.p-contact-form__radio-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}
.p-contact-form__radio-label .wpcf7-list-item {
  margin-left: 0;
}
.p-contact-form__radio-label .wpcf7-list-item label {
  display: flex;
  align-items: center;
  font-weight: 400;
  font-size: 16px;
  cursor: pointer;
}
.p-contact-form__radio-label .wpcf7-list-item-label {
  display: flex;
  align-items: center;
}
.p-contact-form__radio-label .wpcf7-list-item-label::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 1px solid #000;
  border-radius: 50%;
  background-color: #fff;
  display: inline-block;
  margin-right: 5px;
}
.p-contact-form__radio-label .wpcf7-list-item input[type="radio"]:checked + .wpcf7-list-item-label::before {
  background-color: #000;
  box-shadow: inset 0 0 0 3px #fff;
}

/* セレクトボックス */
.p-contact-form__select-zone {
  position: relative;
}
.p-contact-form__select-zone::before {
  position: absolute;
  top: 20px;
  right: 14px;
  content: "";
  width: 12px;
  height: 9px;
  background-color: #000;
  clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
  pointer-events: none;
  z-index: 2;
}
.p-contact-form__select {
  width: 100%;
  padding: 10px 35px 10px 5px;
  border-radius: 0;
  border: 1px solid #000;
  background-color: #fff;
  font-weight: 400;
  font-size: 16px;
  color: #000;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.p-contact-form__select option {
  color: #000;
}

/* プライバシーポリシーチェック */
input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  visibility: hidden;
}
.p-contact-form__check {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}
.p-contact-form__check-label {
  display: inline-block;
}
.p-contact-form__check-label .wpcf7-list-item {
  margin-left: 0;
}
.p-contact-form__check-text {
  padding-left: 25px;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.08em;
  position: relative;
  cursor: pointer;
}
.p-contact-form__check-label span.wpcf7-list-item-label {
  display: flex;
  align-items: flex-start;
}
.p-contact-form__check-label .wpcf7-list-item-label::before {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  content: "";
  width: 20px;
  height: 20px;
  border: 1px solid #BABABA;
  border-radius: 3px;
  background-color: #fff;
  vertical-align: middle;
}
.p-contact-form__check-label input[type="checkbox"]:checked + .wpcf7-list-item-label::before {
  background-color: #BABABA;
}
.p-contact-form__check-label input[type="checkbox"]:checked + .wpcf7-list-item-label::after {
  position: absolute;
  top: 5px;
  left: 4px;
  content: "";
  width: 12px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  cursor: pointer;
}
.p-contact-form__policy-link {
  display: inline-block;
  text-decoration: underline;
}

/* エラーメッセージ */
.Form .wpcf7-not-valid-tip,
.hiragana-error,
.email-match-error {
  color: red;
  font-size: 14px;
}
.p-contact-form__select-zone:has(.wpcf7-not-valid-tip) {
  margin-bottom: 36px;
}
.p-contact-form__list.p-contact-form__list--dummy {
  position: absolute;
  margin-top: 0;
  width: 0;
  height: 0;
  opacity: 0;
  z-index: -9;
  pointer-events: none;
}

/* ボタン */
.p-contact-form__submit {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  column-gap: 12px;
}
.p-contact-form__submit-buttonZone {
  position: relative;
}
.p-contact-form__submit-buttonZone::before {
  position: absolute;
  top: 50%;
  left: calc(50% + 62px);
  transform: translateY(-50%);
  content: "";
  width: 10px;
  height: 8px;
  background-color: #fff;
  clip-path: polygon(100% 50%, 0% 0%, 0% 100%);
  pointer-events: none;
  transition: all 0.3s;
}
.p-contact-form__submit-button {
  width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #000;
  background-color: #000;
  padding: 7px 24px 7px 7px;
  text-align: center;
  font-size: 16px;
  color: #fff;
  transition: all 0.3s;
  cursor: pointer;
}
.confirm_area__bottom .p-contact-form__submit-buttonZone::before {
  left: calc(50% + 45px);
}
.p-contact-form__back-buttonZone {
  position: relative;
}
.p-contact-form__back-button {
  width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #f7f7f7;
  background-color: #f7f7f7;
  padding: 7px;
  text-align: center;
  font-size: 16px;
  transition: all 0.3s;
  cursor: pointer;
}
.p-contact-form__submit-button:disabled {
  cursor: not-allowed;
}
.Form:has(.hiragana-error) .p-contact-form__submit-buttonZone,
.Form:has(.email-match-error) .p-contact-form__submit-buttonZone {
  cursor: not-allowed;
}
.Form:has(.hiragana-error) .p-contact-form__submit-button,
.Form:has(.email-match-error) .p-contact-form__submit-button {
  pointer-events: none;
}
.p-contact-form:has(input[data-honeypot-filled="true"]) .p-contact-form__submit-button {
  pointer-events: none;
}
@media (hover: hover) {
  /* 矢印ホバー */
  .p-contact-form__submit-buttonZone:has(.p-contact-form__submit-button:hover)::before {
    background-color: #000;
  }
  /* エラーがある時の矢印ホバー */
  .p-contact-form__submit-buttonZone:has(.p-contact-form__submit-button:disabled)::before {
    background-color: #fff;
  }
  .Form:has(.hiragana-error) .p-contact-form__submit-buttonZone::before,
  .Form:has(.email-match-error) .p-contact-form__submit-buttonZone::before {
    background-color: #fff;
  }
  /* ボタンホバー */
  .p-contact-form__submit-button:hover {
    opacity: 1;
    background-color: #fff;
    color: #000;
  }
  /* エラーがある時のボタンホバー */
  .p-contact-form__submit-buttonZone:has(.p-contact-form__submit-button:disabled) .p-contact-form__submit-button:hover {
    background-color: #000;
    color: #fff;
  }
  .Form:has(.hiragana-error) .p-contact-form__submit-button:hover,
  .Form:has(.email-match-error) .p-contact-form__submit-button:hover {
    background-color: #000;
    color: #fff;
  }
}
.p-contact-form__submit-buttonZone .wpcf7-spinner {
  display: none;
}

/* 最初は確認画面を非表示 */
.confirm_area {
  display: none;
}

/*デフォルトのサンクスメッセージを非表示*/
.wpcf7-response-output{
  display: none;
}


/* PC版項目横並びの場合 */
@media screen and (min-width: 768px) {
  .p-contact-form__list {
    display: flex;
    column-gap: 16px;
  }
  .p-contact-form__title {
    width: 300px;
    padding-top: 10px;
  }
  .p-contact-form__data {
    flex: 1;
    margin-top: 0;
  }
}




/*-------------------------------------
実績一覧ページ
-------------------------------------*/

.work-archive__container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.work-archive__title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
}

.work-archive__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
}

.work-card {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.work-card__link {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
@media (hover: hover) {
  .work-card__link:hover {
    opacity: 1;
  }
}

.work-card__recommend-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background-color: #ff6b6b;
  border-radius: 4px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

.work-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #f5f5f5;
}

.work-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

@media (hover: hover) {
  .work-card:hover .work-card__image img {
    transform: scale(1.05);
  }
}

.work-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.work-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.work-card__title {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

.work-card__categories {
  margin-left: auto;
}

.work-card__category {
  display: inline-block;
  min-width: 70px;
  padding: 4px 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  background-color: #000;
  border-radius: 4px;
  white-space: nowrap;
}

.work-card__excerpt {
  margin-top: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.work-card__date {
  margin-top: auto;
  display: block;
  font-size: 13px;
  color: #999;
}

.work-archive__no-posts {
  text-align: center;
  font-size: 16px;
  color: #666;
  padding: 60px 20px;
}

/* ページネーション */
.pagination {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.pagination .page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e0e0e0;
  background-color: #fff;
  color: #000;
  text-decoration: none;
  transition: all 0.3s;
}

.pagination .page-numbers.current {
  background-color: #000;
  color: #fff;
  border-color: #000;
}

@media (hover: hover) {
  .pagination .page-numbers:hover {
    background-color: #f5f5f5;
    opacity: 1;
  }
  .pagination .page-numbers.current:hover {
    background-color: #000;
  }
}

/* スマートフォン対応 */
@media screen and (max-width: 767.98px) {
  .work-archive__title {
    font-size: 24px;
    margin-bottom: 32px;
  }

  .work-archive__list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .work-card__title {
    font-size: 16px;
  }

  .work-card__excerpt {
    font-size: 13px;
  }
}




/*-------------------------------------
実績詳細ページ
-------------------------------------*/

.work-detail__container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 60px 20px 0;
}

/* 1. サムネイル画像 */
.work-detail__thumbnail {
  width: 100%;
  margin-bottom: 40px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.work-detail__thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 2 / 1;
}

/* 2. タイトル */
.work-detail__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 24px;
  color: #000;
}

/* 3. 日付・カテゴリー */
.work-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 40px;
  border-bottom: 2px solid #e0e0e0;
}

.work-detail__date {
  font-size: 14px;
  color: #666;
}

.work-detail__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-detail__category {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background-color: #000;
  border-radius: 4px;
}

/* 4. コンテンツの内容 */
.work-detail__content {
  margin-bottom: 60px;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.work-detail__content p {
  margin-bottom: 1.5em;
}

.work-detail__content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #000;
}

.work-detail__content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 16px;
}

.work-detail__content ul,
.work-detail__content ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.work-detail__content li {
  margin-bottom: 0.5em;
}

.work-detail__content img {
  max-width: 100%;
  height: auto;
  margin: 24px 0;
}

/* 5. カスタムフィールドの内容 */
.work-detail__custom-fields {
  background-color: #f9f9f9;
  padding: 48px 40px;
  margin-bottom: 60px;
  border-radius: 8px;
}

.work-detail__fields-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.work-detail__field-column {
  background-color: #fff;
  padding: 32px 28px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.work-detail__field-heading {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 3px solid #000;
  color: #000;
}

.work-detail__field-item {
  margin-bottom: 24px;
}

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

.work-detail__field-label {
  font-size: 14px;
  font-weight: 700;
  color: #666;
  margin-bottom: 8px;
  display: block;
}

.work-detail__field-value {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin: 0;
}

.work-detail__link {
  color: #0066cc;
  text-decoration: underline;
  word-break: break-all;
}

@media (hover: hover) {
  .work-detail__link:hover {
    opacity: 0.7;
  }
}

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

.work-detail__list li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
  line-height: 1.2;
}

.work-detail__list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: #000;
  font-weight: 700;
}

.work-detail__list li:last-child {
  margin-bottom: 0;
}

/* 一覧に戻るリンク */
.work-detail__back {
  text-align: center;
  margin-top: 60px;
}

.work-detail__back-link {
  display: inline-block;
  padding: 14px 48px;
  font-size: 16px;
  font-weight: 500;
  color: #000;
  background-color: #fff;
  border: 2px solid #000;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s;
}

@media (hover: hover) {
  .work-detail__back-link:hover {
    opacity: 1;
    color: #fff;
    background-color: #000;
  }
}

/* スマートフォン対応 */
@media screen and (max-width: 767.98px) {
  .work-detail__thumbnail {
    margin-bottom: 32px;
  }

  .work-detail__title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .work-detail__meta {
    margin-bottom: 32px;
    padding-bottom: 20px;
  }

  .work-detail__content {
    margin-bottom: 48px;
    font-size: 15px;
  }

  .work-detail__content h2 {
    font-size: 20px;
    margin: 32px 0 16px;
  }

  .work-detail__content h3 {
    font-size: 18px;
    margin: 24px 0 12px;
  }

  .work-detail__custom-fields {
    padding: 32px 20px;
    margin-bottom: 48px;
  }

  .work-detail__fields-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .work-detail__field-column {
    padding: 24px 20px;
  }

  .work-detail__field-heading {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .work-detail__field-value {
    font-size: 15px;
  }

  .work-detail__back {
    margin-top: 48px;
  }

  .work-detail__back-link {
    padding: 12px 32px;
    font-size: 15px;
  }
}
