.top-update {
  display: -ms-grid;
  display: grid;
  -webkit-box-pack: normal;
      -ms-flex-pack: normal;
          justify-content: normal;
  gap: 60px;
}
@media screen and (min-width: 768px) {
  .top-update {
    gap: 80px;
  }
}
@media screen and (min-width: 992px) {
  .top-update {
    gap: 100px;
  }
}
.top-update__item {
  margin-bottom: 0 !important;
}
@media screen and (min-width: 992px) {
  .top-update__item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    width: 100%;
  }
}
.top-update__head {
  gap: 10px;
}
@media screen and (max-width: 575px) {
  .top-update__head {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
  }
}
@media screen and (min-width: 992px) {
  .top-update__head {
    display: block;
    -ms-flex-negative: 0;
        flex-shrink: 0;
    width: 30%;
  }
}
@media screen and (min-width: 1200px) {
  .top-update__head {
    width: 37.5%;
  }
}
@media screen and (min-width: 992px) {
  .top-update-main {
    -webkit-box-flex: 2;
        -ms-flex-positive: 2;
            flex-grow: 2;
  }
}
@media screen and (min-width: 576px) {
  .top-update .link-txt {
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
  }
}
@media screen and (min-width: 992px) {
  .top-update .link-txt {
    margin-top: 60px;
  }
}
@media screen and (min-width: 768px) {
  .top-update__social {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin-left: auto;
  }
}
@media screen and (min-width: 768px) {
  .top-update__social a {
    width: 260px;
  }
}
.top-update-blog__logo {
  margin-bottom: 0 !important;
}
@media screen and (max-width: 991px) {
  .top-update-blog__logo {
    margin-right: auto;
  }
}
@media screen and (min-width: 992px) {
  .top-update-blog__logo {
    margin-top: 20px;
  }
}
.top-update-blog__logo img {
  width: 150px;
}
@media screen and (max-width: 575px) {
  .top-update-blog__logo img {
    width: 100px;
  }
}

.p-blog-hero {
  position: relative;
  text-align: center;
}
.p-blog-hero:before, .p-blog-hero:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
}
.p-blog-hero:before {
  left: 0;
  background: #FBE9CD;
}
.p-blog-hero:after {
  right: 0;
  background: #E9E1DA;
}
.p-blog-hero img {
  position: relative;
  z-index: 10;
}

.works-list {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}
.works-list__item {
  width: 100%;
  margin: 0 !important;
}
.works-list__item a {
  padding: 0;
  text-decoration: none;
}
.works-list__item a:hover {
  -webkit-transform: scale(1);
          transform: scale(1);
}
@media screen and (min-width: 992px) {
  .works-list__item a:hover figure {
    -webkit-transform: scale(1.05);
            transform: scale(1.05);
  }
}
.works-list__item figure {
  aspect-ratio: 3/2;
  -webkit-transition: all 0.3s cubic-bezier(0.55, 0.085, 0.68, 0.53);
  transition: all 0.3s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}
.works-list__item figure img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.works-list-desc {
  position: absolute;
  width: 100%;
  bottom: 0;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.875rem;
  text-align: center;
  line-height: 1.3;
}
.works__data {
  margin-bottom: 0;
}
.works-detail__comment {
  margin-top: min(40px, 6vw);
}
.works-detail__comment p {
  letter-spacing: 0.1em;
  line-height: 2;
}


/* 20261201追加 contact form 7 */
.wpcf7 .wpcf7-form-control-wrap {
  display: inline-block;
  width: 100%;
}
.wpcf7 .wpcf7-not-valid-tip {
  margin-top: 8px;
}

.wpcf7 .field-table__head p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  @media screen and (max-width: 767px) {
    justify-content: flex-start;
  }
}
.wpcf7 .field-table__cnt p {
  width: 100%;
}
.wpcf7 .field-table__cnt .custom p br{
  display: none;
}
.wpcf7 .field-table__cnt .field-list .wpcf7-form-control-wrap:has(input[type="text"]) {
  margin-top: 15px;
}

.wpcf7 .wpcf7-list-item {
  margin: 0px;
}

.wpcf7 .wpcf7-form-control.wpcf7-checkbox,.wpcf7 .wpcf7-form-control.wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 30px;
}
.wpcf7 .wpcf7-form-control-wrap:has(input[type="file"]):first-of-type {
  display: inline-block;
  margin-top: 0px;

}
.wpcf7 .wpcf7-form-control-wrap:has(input[type="file"]) {
  display: inline-block;
  margin-top: 25px;

}
/* チェックボックス */
.wpcf7 .wpcf7-form-control.wpcf7-checkbox .wpcf7-list-item label {
    display: inline-block;
    padding-left: 30px;
    position: relative;
    cursor: pointer;
}
.wpcf7 .wpcf7-checkbox .wpcf7-list-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}
.wpcf7 .wpcf7-form-control.wpcf7-checkbox .wpcf7-list-item label::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 7px;
    display: block;
    margin-top: -7px;
    width: 7px;
    height: 11px;
    border-right: 3px solid #0b3a7b;
    border-bottom: 3px solid #0b3a7b;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s linear;
    z-index: 2;
}
.wpcf7 .wpcf7-form-control.wpcf7-checkbox .wpcf7-list-item label::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    margin-top: -12px;
    width: 24px;
    height: 24px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    transition: background 0.3s, border 0.3s;
    z-index: 1;
}

.wpcf7 .wpcf7-checkbox .wpcf7-list-item label:has(input[type="checkbox"]:checked)::before {
    opacity: 1;
}
.wpcf7 .wpcf7-checkbox .wpcf7-list-item label:has(input[type="checkbox"]:checked)::after {
    border-color: #0b3a7b;
}

.wpcf7 .wpcf7-checkbox .wpcf7-list-item label:has(input[type="checkbox"]:focus-visible)::after {
    outline: 2px solid #0b3a7b;
    outline-offset: 3px;
}


/* ラジオボタン */
.wpcf7 .wpcf7-radio .wpcf7-list-item label {
    display: inline-block;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
}
.wpcf7 .wpcf7-radio .wpcf7-list-item input[type="radio"] {
    position: absolute;
    opacity: 0;
}
.wpcf7 .wpcf7-radio .wpcf7-list-item label::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #0b3a7b;
    opacity: 0;
    transition: opacity 0.2s linear;
    z-index: 2;
}
.wpcf7 .wpcf7-radio .wpcf7-list-item label::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 50%;
    background: #fff;
    transition: background 0.3s, border 0.3s;
    z-index: 1;
}

.wpcf7 .wpcf7-radio .wpcf7-list-item label:has(input[type="radio"]:checked)::before {
    opacity: 1;
}
.wpcf7 .wpcf7-radio .wpcf7-list-item label:has(input[type="radio"]:checked)::after {
    border-color: #0b3a7b;
}
.wpcf7 .wpcf7-radio .wpcf7-list-item label:has(input[type="radio"]:focus-visible)::after {
    outline: 2px solid #0b3a7b;
    outline-offset: 3px;
}

/* 入力欄 */
.form-wrap .wpcf7 input[type="text"], .form-wrap .wpcf7 input[type="tel"], .form-wrap .wpcf7 input[type="url"], .form-wrap .wpcf7 input[type="email"], .form-wrap .wpcf7 textarea {
  appearance: none;
  box-sizing: border-box;
  font-family: YakuHanJP, "Noto Sans JP", sans-serif;
  vertical-align: baseline;
  width: 100% !important;
  height: 50px;
  font-size: 100% !important;
  padding: 0px 1em;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(204, 204, 204);
  border-image: none;
  background: rgb(255, 255, 255);
  border-radius: 4px;
}
.form-wrap .wpcf7 textarea {
    height: 200px;
    padding: 1em;
}

.form-wrap .custom {
    position: relative;
    max-width: auto;
    border: none;
    border-radius: 0;
    background: transparent;
    z-index: 10;
}
.form-wrap .custom i {
  top: 22px;
  z-index: 11;
}
.form-wrap .custom .wpcf7-form-control.wpcf7-select {
  max-width: 300px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  z-index: 10;
}
.wpcf7 .wpcf7-spinner {
  display: none;
}
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
  border-color: #dc3232!important;
  color: #dc3232;
  text-align: center;
  line-height: 1.5;
  padding: 13px 13px 15px;
  background: rgba(236, 24, 52, 0.1);
  border-color: transparent;
  @media screen and (max-width: 500px) { 
    text-align: left;
  }
}
