/* WordPress Gallery
------------------------------------------ */

.gallery:not(body) {
  margin-left: -0.5em;
  margin-right: -0.5em;
}

.gallery:not(body):after {
  display: table;
  content: "";
  clear: both;
}

.gallery-item {
  margin: 0;
  float: left;
  padding: 0.5em;
}

.gallery-item img {
  width: 100%;
}

.gallery-columns-1 .gallery-item {
  width: 100%;
  float: none;
}

.gallery-columns-2 .gallery-item {
  width: 50%;
}

.gallery-columns-3 .gallery-item {
  width: 33.3333%;
}

.gallery-columns-4 .gallery-item {
  width: 25%;
}

.gallery-columns-5 .gallery-item {
  width: 20%;
}

.gallery-columns-6 .gallery-item {
  width: 16.6667%;
}

.gallery-columns-7 .gallery-item {
  width: 14.2857%;
}

.gallery-columns-8 .gallery-item {
  width: 12.5%;
}

.gallery-columns-9 .gallery-item {
  width: 11.1111%;
}

.gallery-columns-2 .gallery-item:nth-of-type(2n + 1),
.gallery-columns-3 .gallery-item:nth-of-type(3n + 1),
.gallery-columns-4 .gallery-item:nth-of-type(4n + 1),
.gallery-columns-5 .gallery-item:nth-of-type(5n + 1),
.gallery-columns-6 .gallery-item:nth-of-type(6n + 1),
.gallery-columns-7 .gallery-item:nth-of-type(7n + 1),
.gallery-columns-8 .gallery-item:nth-of-type(8n + 1),
.gallery-columns-9 .gallery-item:nth-of-type(9n + 1) {
  clear: left;
}

/* WordPress Core
-------------------------------------------------------------- */
.alignnone {
  margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
  display: block;
  margin: 5px auto 5px auto;
}

.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

a img.alignnone {
  margin: 5px 20px 20px 0;
}

a img.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/*固定ページのクラシック版段落ブロックで画像を張り替えた際のマージン防止*/
body.page img.alignnone {
  margin: 0;
}

.wp-caption {
  background: #fff;
  border: 1px solid #f0f0f0;
  max-width: 96%;
  /* Image does not overflow the content area */
  padding: 5px 3px 10px;
  text-align: center;
}

.wp-caption.alignnone {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
  margin: 5px 0 20px 20px;
}

.wp-caption img {
  border: 0 none;
  height: auto;
  margin: 0;
  max-width: 98.5%;
  padding: 0;
  width: auto;
}

.wp-caption p.wp-caption-text {
  font-size: 11px;
  line-height: 17px;
  margin: 0;
  padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  white-space: nowrap;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-size: 0.875rem;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
  /* Above WP toolbar. */
}

.logged-in.admin-bar .l-header,
.logged-in.admin-bar .c-slidebar-button {
  margin-top: var(--wp-admin--admin-bar--height) !important;
}

.wp-embedded-content {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 16px;
  margin-bottom: 16px;
}

/* フォーム共通
-------------------------------------------------------------- */

.c-forms__radio.is-column-02 .error,
.c-forms__checkbox.is-column-02 .error {
  grid-column: 1 / -1;
}

.c-forms__file {
  position: relative;
}

/* MW WP Form
-------------------------------------------------------------- */

.mw_wp_form_input .u-hidden-mw-wp-input,
.mw_wp_form_confirm .u-hidden-mw-wp-confirm,
.mw_wp_form_complete .u-hidden-mw-wp-complete {
  display: none !important;
}

.mw_wp_form_confirm .c-forms__privacy {
  display: none !important;
}

.mw_wp_form_confirm #zipauto,
.mw_wp_form_confirm .c-forms__note,
.mw_wp_form_confirm .c-forms__block.is-privacy-policy {
  display: none !important;
}

.mw_wp_form_confirm .c-forms__privacy a,
.mw_wp_form_confirm .c-forms__block a {
  text-decoration: none !important;
  color: inherit !important;
  pointer-events: none !important;
}

.c-forms__privacy-button-wrapper .mwform-checkbox-field.horizontal-item {
  width: 1.5rem;
}

.mw_wp_form .horizontal-item+.horizontal-item {
  margin-left: 0;
}

.mwform-file-delete {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

/* CF7
-------------------------------------------------------------- */

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

.c-forms__radio .wpcf7-not-valid-tip,
.c-forms__checkbox .wpcf7-not-valid-tip {
  font-size: 0;
}

/* 疑似要素でエラーメッセージをリライト表示 */
.c-forms__radio .wpcf7-not-valid-tip::before,
.c-forms__checkbox .wpcf7-not-valid-tip::before {
  content: "選択してください。";
  font-size: 1rem;
}

.wpcf7-form.submitting .wpcf7-submit {
  opacity: 0.5;
  filter: grayscale(1);
  pointer-events: none;
}

/* Comment
-------------------------------------------------------------- */

.comment-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.comment {
  margin: 20px 0;
  padding: 15px;
  border: 1px solid #ddd;
  background-color: #f5f6fa;
}

.comment-author {
  margin-bottom: 10px;
}

.comment-meta {
  font-size: 0.8em;
  color: #666;
}

.comment-form label {
  display: block;
  margin-bottom: 5px;
}

.comment-form textarea,
.comment-form input[type="text"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
}

.comment-reply-link {
  margin-top: 10px;
}

.comment-reply-link.c-button.is-sm {
  padding: 0.3rem 1.1rem;
  font-size: 0.75rem;
}

.comment-reply-link:after {
  display: none;
}

.comment-notes {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.comment-form .required {
  color: #ba0000;
}

.comment-form .logged-in-as {
  display: none;
}

.comment-form-cookies-consent {
  margin: 15px 0;
  display: flex;
}

.comment-form-cookies-consent>input {
  margin-top: 2px;
  margin-right: 5px;
}

#cancel-comment-reply-link {
  font-size: 1rem;
  margin-left: 1rem;
}

/* Breadcrumb
-------------------------------------------------------------- */

/*.c-breadcrumb__inner {*/
/*    white-space: nowrap;*/
/*    overflow: hidden;*/
/*    text-overflow: ellipsis;*/
/*}*/


/* overwrite */
.c-button-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.c-column-page__buttons {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}

@media screen and (width > 59.375em) {
  .p-case-page__block-image.is-md {
    width: 30%;
  }

  .p-case-page__block-image.is-sm {
    width: 25%;
  }
}

@media screen and (width < 59.375em) {
  .c-column-page__buttons {
    grid-template-areas:
      "prev next"
      "list list";
    grid-template-columns: 1fr 1fr;
  }

  .c-column-page__buttons .is-post-nav-back {
    grid-area: prev;
    justify-self: flex-start;
  }

  .c-column-page__buttons .is-post-nav-next {
    grid-area: next;
    justify-self: flex-end;
  }

  .c-column-page__buttons .is-post-nav-post {
    grid-area: list;
    justify-self: center;
  }
}

.checkbox input[type="checkbox"]:first-child {
  margin-right: 4px;
}

.c-post-thumbnail img {
  width: 100%;
}

.c-block-document__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-block-document__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
}

.p-case-page__block-image {
  aspect-ratio: initial;
}

.p-case-page__block-content {
  flex-grow: 1;
}

/* サイズフィールド（ラジオ）のリスト装飾（li::before の「・」）を除去 */
#growp-editor-wrapper .b-image-size-radio ul.acf-radio-list>li {
  padding-left: 0;
}

#growp-editor-wrapper .b-image-size-radio ul.acf-radio-list>li::before {
  content: none !important;
}

.p-case-page__summary {
  padding: 32px 40px;
  margin-bottom: 40px;
  border: 1px solid #09a5ff;
  border-radius: 8px;
  background-color: #f3faff;
}

.l-post-content .p-case-page__summary-title {
  padding-bottom: 12px;
  margin-top: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(9, 165, 255, 0.3);
  color: #087fc4;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.l-post-content mark {
  background-color: #ffd0d1;
}

.p-case-page__summary-content> :first-child {
  margin-top: 0;
}

.p-case-page__summary-content> :last-child {
  margin-bottom: 0;
}

.p-case-page__summary-content ul,
.p-case-page__summary-content ol {
  padding-left: 1.5em;
}

.p-case-page__summary-content ul {
  list-style: disc;
}

.p-case-page__summary-content ol {
  list-style: decimal;
}

.p-case-page__summary-content li::marker {
  color: #09a5ff;
  font-weight: 700;
}

.p-case-page__summary-content li {
  padding-left: 0;
}

.p-case-page__summary-content li::before {
  content: none;
}

@media screen and (width < 46.875em) {
  .p-case-page__summary {
    padding: 24px;
    margin-bottom: 20px;
  }

  .l-post-content .p-case-page__summary-title {
    margin-bottom: 16px;
    font-size: 18px;
  }
}


.c-document-page__gallery-main img {
  height: 100%;
}

.c-document-page__slide {
  aspect-ratio: 164 / 110;
}

.c-document-page__gallery-thumbnail img {
  height: 100%;
}

:where(:where(.l-post-content)) figure:not(:first-child) {
  margin-top: 1em;
}

/* .l-post-content 内のテーブルスタイル */
:where(.l-post-content) .wp-block-table table {
  margin-top: 0;
  border-collapse: separate;
}

:where(.l-post-content) .wp-block-table table th,
:where(.l-post-content) .wp-block-table table td {
  padding: 17px 24px 18px 24px;
  border: none;
  border-bottom: 1px solid #dedede;
}

:where(.l-post-content) .wp-block-table table th:not(:first-child),
:where(.l-post-content) .wp-block-table table td:not(:first-child) {
  border-left: 1px solid #dedede;
}

:where(.l-post-content) .wp-block-table table:not(thead) {
  border: 1px solid #dedede;
  border-bottom: none;
  border-radius: 8px;
  overflow: hidden;
}

:where(.l-post-content) .wp-block-table table tbody tr:first-child th,
:where(.l-post-content) .wp-block-table table tbody tr:first-child td {
  border-top: none;
}

:where(.l-post-content) .wp-block-table table:not(thead) tbody tr:first-child th:first-child,
:where(.l-post-content) .wp-block-table table:not(thead) tbody tr:first-child td:first-child,
:where(.l-post-content) .wp-block-table table:not(thead) tbody tr:first-child th:last-child,
:where(.l-post-content) .wp-block-table table:not(thead) tbody tr:first-child td:last-child {
  border-radius: 0;
}

.wp-block-embed.wp-block-embed-youtube {
  margin-inline: auto;
  max-width: 45.125rem;
  width: 100%;
  height: 25.375rem;
}

.wp-element-caption:not(:first-child) {
  margin-top: .5em;
  font-size: .85em;
}

.u-text-summary {
  border: 1px solid #FFC000;
  background-color: #FFF2CC;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 50px;
  font-weight: 700;
  font-size: 1.1em;
}

.c-column-page__aside-categoreis.is-secondary a {
  border-color: rgba(#09A5FF, 0.75);
}

@media screen and (width < 46.875em) {
  .p-top-column .js-card-slider .swiper-wrapper {
    height: auto;
  }

  .p-top-column .js-card-slider .swiper-slide:nth-child(n+4) {
    display: none !important;
  }
}

@media screen and (width < 46.875em) {
  .c-card-case__categories {
    flex-wrap: wrap;
  }

  .c-card-case__unit {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}