/* PRIME GEAR dedicated design, adapted from the supplied child theme. */
:is(.post_content,.editor-styles-wrapper) :is(h2,h3,h4):not(:where(.reset-heading,.custom-heading,.is-style-pg-section-title,.is-style-section_ttl,.pg-about-editorial__heading,.pg-profile-editorial__heading,[data-pg-motion-about-editorial-owned],[data-pg-motion-profile-editorial-owned],[class*="wp-block-primegear-"] *,[data-type^="primegear/"] *,[class*="swell-block-"] *,[data-type^="loos/"] *,.wp-block-cover *,[data-type="core/cover"] *,.pg-full-wide *,.widget *,.p-toc *,.p-postList *,#pg-home-chapters *,.pg-section *,.faq_q,.p-postList__title)){background:none;border:0;border-radius:0;box-shadow:none;padding:0;}
:is(.post_content,.editor-styles-wrapper) :is(h2,h3,h4):not(:where(.reset-heading,.custom-heading,.is-style-pg-section-title,.is-style-section_ttl,.pg-about-editorial__heading,.pg-profile-editorial__heading,[data-pg-motion-about-editorial-owned],[data-pg-motion-profile-editorial-owned],[class*="wp-block-primegear-"] *,[data-type^="primegear/"] *,[class*="swell-block-"] *,[data-type^="loos/"] *,.wp-block-cover *,[data-type="core/cover"] *,.pg-full-wide *,.widget *,.p-toc *,.p-postList *,#pg-home-chapters *,.pg-section *,.faq_q,.p-postList__title))::before,:is(.post_content,.editor-styles-wrapper) :is(h2,h3,h4):not(:where(.reset-heading,.custom-heading,.is-style-pg-section-title,.is-style-section_ttl,.pg-about-editorial__heading,.pg-profile-editorial__heading,[data-pg-motion-about-editorial-owned],[data-pg-motion-profile-editorial-owned],[class*="wp-block-primegear-"] *,[data-type^="primegear/"] *,[class*="swell-block-"] *,[data-type^="loos/"] *,.wp-block-cover *,[data-type="core/cover"] *,.pg-full-wide *,.widget *,.p-toc *,.p-postList *,#pg-home-chapters *,.pg-section *,.faq_q,.p-postList__title))::after{content:none;background:none;border:0;box-shadow:none;transform:none;position:absolute;inset:auto;padding:0;}
@media screen and (min-width: 781px) {
  
  .c-postTitle__ttl {
    font-size: var(--font-title-size-pc);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.015em;
    color: #000;

    
    text-wrap: wrap;
    word-break: normal;
    line-break: strict;
    overflow-wrap: break-word;
    hyphens: none;
  }

}
@media screen and (max-width: 780px) {
  
  .c-postTitle__ttl {
    font-size: var(--font-title-size-sp);
    font-weight: 700;
    line-height: 1.42;
    letter-spacing: -0.01em;
    color: #000;

    
    text-wrap: wrap;
    word-break: normal;
    line-break: strict;
    overflow-wrap: break-word;
    hyphens: none;
  }

}


.c-postTitle__ttl .pg-title-word {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
  vertical-align: baseline;
}


:is(.post_content,.editor-styles-wrapper) h2:not(:where(.reset-heading,.custom-heading,.is-style-pg-section-title,.is-style-section_ttl,.pg-about-editorial__heading,.pg-profile-editorial__heading,[data-pg-motion-about-editorial-owned],[data-pg-motion-profile-editorial-owned],[class*="wp-block-primegear-"] *,[data-type^="primegear/"] *,[class*="swell-block-"] *,[data-type^="loos/"] *,.wp-block-cover *,[data-type="core/cover"] *,.pg-full-wide *,.widget *,.p-toc *,.p-postList *,#pg-home-chapters *,.pg-section *,.faq_q,.p-postList__title)) {
  position: relative;
  padding-bottom: 20px;
  font-size: var(--font-h2-size);
  font-weight: 700;

  line-height: 1.4;
  letter-spacing: 0.005em;
  margin: 2.4em 0 1.15em;

  
  text-wrap: wrap;
  word-break: normal;
  line-break: strict;
}

:is(.post_content,.editor-styles-wrapper) h2:not(:where(.reset-heading,.custom-heading,.is-style-pg-section-title,.is-style-section_ttl,.pg-about-editorial__heading,.pg-profile-editorial__heading,[data-pg-motion-about-editorial-owned],[data-pg-motion-profile-editorial-owned],[class*="wp-block-primegear-"] *,[data-type^="primegear/"] *,[class*="swell-block-"] *,[data-type^="loos/"] *,.wp-block-cover *,[data-type="core/cover"] *,.pg-full-wide *,.widget *,.p-toc *,.p-postList *,#pg-home-chapters *,.pg-section *,.faq_q,.p-postList__title))::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 5px 0 5px; 
  border-color: var(--pg-brand-accent) transparent transparent transparent;
}


:is(.post_content,.editor-styles-wrapper) h2:not(:where(.reset-heading,.custom-heading,.is-style-pg-section-title,.is-style-section_ttl,.pg-about-editorial__heading,.pg-profile-editorial__heading,[data-pg-motion-about-editorial-owned],[data-pg-motion-profile-editorial-owned],[class*="wp-block-primegear-"] *,[data-type^="primegear/"] *,[class*="swell-block-"] *,[data-type^="loos/"] *,.wp-block-cover *,[data-type="core/cover"] *,.pg-full-wide *,.widget *,.p-toc *,.p-postList *,#pg-home-chapters *,.pg-section *,.faq_q,.p-postList__title)) .pg-auto-first-line {
  display: inline-block;
  font-size: 80%;
  white-space: nowrap;
}


:is(.post_content,.editor-styles-wrapper) h3:not(:where(.reset-heading,.custom-heading,.is-style-pg-section-title,.is-style-section_ttl,.pg-about-editorial__heading,.pg-profile-editorial__heading,[data-pg-motion-about-editorial-owned],[data-pg-motion-profile-editorial-owned],[class*="wp-block-primegear-"] *,[data-type^="primegear/"] *,[class*="swell-block-"] *,[data-type^="loos/"] *,.wp-block-cover *,[data-type="core/cover"] *,.pg-full-wide *,.widget *,.p-toc *,.p-postList *,#pg-home-chapters *,.pg-section *,.faq_q,.p-postList__title)) {
  font-size: var(--font-h3-size);
  font-weight: 700;
  margin: 2.1em 0 0.85em;
  position: relative;
  line-height: 1.45;
  letter-spacing: 0.005em;

}

:is(.post_content,.editor-styles-wrapper) h3:not(:where(.reset-heading,.custom-heading,.is-style-pg-section-title,.is-style-section_ttl,.pg-about-editorial__heading,.pg-profile-editorial__heading,[data-pg-motion-about-editorial-owned],[data-pg-motion-profile-editorial-owned],[class*="wp-block-primegear-"] *,[data-type^="primegear/"] *,[class*="swell-block-"] *,[data-type^="loos/"] *,.wp-block-cover *,[data-type="core/cover"] *,.pg-full-wide *,.widget *,.p-toc *,.p-postList *,#pg-home-chapters *,.pg-section *,.faq_q,.p-postList__title))::before {
  content: "";
  position: absolute;
  top: -0.6em; 
  left: 0;
  width: 18%;
  max-width: 120px;
  height: 2px;
  background-color: var(--pg-brand-accent);
}


:is(.post_content,.editor-styles-wrapper) h4:not(:where(.reset-heading,.custom-heading,.is-style-pg-section-title,.is-style-section_ttl,.pg-about-editorial__heading,.pg-profile-editorial__heading,[data-pg-motion-about-editorial-owned],[data-pg-motion-profile-editorial-owned],[class*="wp-block-primegear-"] *,[data-type^="primegear/"] *,[class*="swell-block-"] *,[data-type^="loos/"] *,.wp-block-cover *,[data-type="core/cover"] *,.pg-full-wide *,.widget *,.p-toc *,.p-postList *,#pg-home-chapters *,.pg-section *,.faq_q,.p-postList__title)) {
  font-size: var(--font-h4-size);
  font-weight: 600;
  position: relative;
  padding-left: 35px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin: 1.7em 0 0.65em;

}

:is(.post_content,.editor-styles-wrapper) h4:not(:where(.reset-heading,.custom-heading,.is-style-pg-section-title,.is-style-section_ttl,.pg-about-editorial__heading,.pg-profile-editorial__heading,[data-pg-motion-about-editorial-owned],[data-pg-motion-profile-editorial-owned],[class*="wp-block-primegear-"] *,[data-type^="primegear/"] *,[class*="swell-block-"] *,[data-type^="loos/"] *,.wp-block-cover *,[data-type="core/cover"] *,.pg-full-wide *,.widget *,.p-toc *,.p-postList *,#pg-home-chapters *,.pg-section *,.faq_q,.p-postList__title)):before,
:is(.post_content,.editor-styles-wrapper) h4:not(:where(.reset-heading,.custom-heading,.is-style-pg-section-title,.is-style-section_ttl,.pg-about-editorial__heading,.pg-profile-editorial__heading,[data-pg-motion-about-editorial-owned],[data-pg-motion-profile-editorial-owned],[class*="wp-block-primegear-"] *,[data-type^="primegear/"] *,[class*="swell-block-"] *,[data-type^="loos/"] *,.wp-block-cover *,[data-type="core/cover"] *,.pg-full-wide *,.widget *,.p-toc *,.p-postList *,#pg-home-chapters *,.pg-section *,.faq_q,.p-postList__title)):after {
  content: '';
  position: absolute;
}

:is(.post_content,.editor-styles-wrapper) h4:not(:where(.reset-heading,.custom-heading,.is-style-pg-section-title,.is-style-section_ttl,.pg-about-editorial__heading,.pg-profile-editorial__heading,[data-pg-motion-about-editorial-owned],[data-pg-motion-profile-editorial-owned],[class*="wp-block-primegear-"] *,[data-type^="primegear/"] *,[class*="swell-block-"] *,[data-type^="loos/"] *,.wp-block-cover *,[data-type="core/cover"] *,.pg-full-wide *,.widget *,.p-toc *,.p-postList *,#pg-home-chapters *,.pg-section *,.faq_q,.p-postList__title)):before { 
  top: 0.3em;
  left: 0.3em;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  border: 2px solid var(--pg-brand-accent);
}

:is(.post_content,.editor-styles-wrapper) h4:not(:where(.reset-heading,.custom-heading,.is-style-pg-section-title,.is-style-section_ttl,.pg-about-editorial__heading,.pg-profile-editorial__heading,[data-pg-motion-about-editorial-owned],[data-pg-motion-profile-editorial-owned],[class*="wp-block-primegear-"] *,[data-type^="primegear/"] *,[class*="swell-block-"] *,[data-type^="loos/"] *,.wp-block-cover *,[data-type="core/cover"] *,.pg-full-wide *,.widget *,.p-toc *,.p-postList *,#pg-home-chapters *,.pg-section *,.faq_q,.p-postList__title)):after { 
  top: 0.4em;
  left: 0.7em;
  width: 14px;
  height: 14px;
  transform: rotate(60deg);
  background: color-mix(in srgb,var(--pg-brand-accent) 50.0%,transparent);
}


@media (max-width: 780px){
  :is(.post_content,.editor-styles-wrapper) h2:not(:where(.reset-heading,.custom-heading,.is-style-pg-section-title,.is-style-section_ttl,.pg-about-editorial__heading,.pg-profile-editorial__heading,[data-pg-motion-about-editorial-owned],[data-pg-motion-profile-editorial-owned],[class*="wp-block-primegear-"] *,[data-type^="primegear/"] *,[class*="swell-block-"] *,[data-type^="loos/"] *,.wp-block-cover *,[data-type="core/cover"] *,.pg-full-wide *,.widget *,.p-toc *,.p-postList *,#pg-home-chapters *,.pg-section *,.faq_q,.p-postList__title)) {
    font-size: var(--font-h2-size-sp);
    margin: 2.15em 0 1.0em;
    line-height: 1.4;
  }
  :is(.post_content,.editor-styles-wrapper) h2:not(:where(.reset-heading,.custom-heading,.is-style-pg-section-title,.is-style-section_ttl,.pg-about-editorial__heading,.pg-profile-editorial__heading,[data-pg-motion-about-editorial-owned],[data-pg-motion-profile-editorial-owned],[class*="wp-block-primegear-"] *,[data-type^="primegear/"] *,[class*="swell-block-"] *,[data-type^="loos/"] *,.wp-block-cover *,[data-type="core/cover"] *,.pg-full-wide *,.widget *,.p-toc *,.p-postList *,#pg-home-chapters *,.pg-section *,.faq_q,.p-postList__title))::after { border-width: 8px 5px 0 5px; }
  :is(.post_content,.editor-styles-wrapper) h3:not(:where(.reset-heading,.custom-heading,.is-style-pg-section-title,.is-style-section_ttl,.pg-about-editorial__heading,.pg-profile-editorial__heading,[data-pg-motion-about-editorial-owned],[data-pg-motion-profile-editorial-owned],[class*="wp-block-primegear-"] *,[data-type^="primegear/"] *,[class*="swell-block-"] *,[data-type^="loos/"] *,.wp-block-cover *,[data-type="core/cover"] *,.pg-full-wide *,.widget *,.p-toc *,.p-postList *,#pg-home-chapters *,.pg-section *,.faq_q,.p-postList__title)) {
    font-size: var(--font-h3-size-sp);
    margin: 1.9em 0 0.8em;
    line-height: 1.45;
  }
  :is(.post_content,.editor-styles-wrapper) h3:not(:where(.reset-heading,.custom-heading,.is-style-pg-section-title,.is-style-section_ttl,.pg-about-editorial__heading,.pg-profile-editorial__heading,[data-pg-motion-about-editorial-owned],[data-pg-motion-profile-editorial-owned],[class*="wp-block-primegear-"] *,[data-type^="primegear/"] *,[class*="swell-block-"] *,[data-type^="loos/"] *,.wp-block-cover *,[data-type="core/cover"] *,.pg-full-wide *,.widget *,.p-toc *,.p-postList *,#pg-home-chapters *,.pg-section *,.faq_q,.p-postList__title))::before { width: 22%; max-width: 100px; }
  :is(.post_content,.editor-styles-wrapper) h4:not(:where(.reset-heading,.custom-heading,.is-style-pg-section-title,.is-style-section_ttl,.pg-about-editorial__heading,.pg-profile-editorial__heading,[data-pg-motion-about-editorial-owned],[data-pg-motion-profile-editorial-owned],[class*="wp-block-primegear-"] *,[data-type^="primegear/"] *,[class*="swell-block-"] *,[data-type^="loos/"] *,.wp-block-cover *,[data-type="core/cover"] *,.pg-full-wide *,.widget *,.p-toc *,.p-postList *,#pg-home-chapters *,.pg-section *,.faq_q,.p-postList__title)) {
    font-size: var(--font-h4-size-sp);
    margin: 1.65em 0 0.65em;
    line-height: 1.5;
  }
}

:is(.post_content,.editor-styles-wrapper) h2:not(:where(.reset-heading,.custom-heading,.is-style-pg-section-title,.is-style-section_ttl,.pg-about-editorial__heading,.pg-profile-editorial__heading,[data-pg-motion-about-editorial-owned],[data-pg-motion-profile-editorial-owned],[class*="wp-block-primegear-"] *,[data-type^="primegear/"] *,[class*="swell-block-"] *,[data-type^="loos/"] *,.wp-block-cover *,[data-type="core/cover"] *,.pg-full-wide *,.widget *,.p-toc *,.p-postList *,#pg-home-chapters *,.pg-section *,.faq_q,.p-postList__title)):where(:not(.has-text-align-left):not(.has-text-align-right)){text-align:center;}

:is(.post_content,.editor-styles-wrapper) p strong,
:is(.post_content,.editor-styles-wrapper) p b,
:is(.post_content,.editor-styles-wrapper) > ul.wp-block-list:where(:not([class*="is-style-"]):not(.pg-list-flex):not(.is-style-horizontal):not(.is-style-index)) strong,
:is(.post_content,.editor-styles-wrapper) > ul.wp-block-list:where(:not([class*="is-style-"]):not(.pg-list-flex):not(.is-style-horizontal):not(.is-style-index)) b,
:is(.post_content,.editor-styles-wrapper) > ol.wp-block-list:where(:not([class*="is-style-"]):not(.pg-list-flex):not(.is-style-horizontal):not(.is-style-index)) strong,
:is(.post_content,.editor-styles-wrapper) > ol.wp-block-list:where(:not([class*="is-style-"]):not(.pg-list-flex):not(.is-style-horizontal):not(.is-style-index)) b {
  font-weight: 600;
}


/* 提供された子テーマと同じ対象で、本文直下のリストの間隔を調整 */
.post_content > ul.wp-block-list,
.post_content > ol.wp-block-list,
.post_content > ul:not([class]),
.post_content > ol:not([class]) {
  margin-top: 1.35em;
  margin-bottom: 1.55em;
}

.post_content > ul.wp-block-list > li + li,
.post_content > ol.wp-block-list > li + li,
.post_content > ul:not([class]) > li + li,
.post_content > ol:not([class]) > li + li {
  margin-top: 0.38em;
}

/* ネストしたリストは親項目との距離だけ少し確保 */
.post_content > ul.wp-block-list > li > ul,
.post_content > ul.wp-block-list > li > ol,
.post_content > ol.wp-block-list > li > ul,
.post_content > ol.wp-block-list > li > ol,
.post_content > ul:not([class]) > li > ul,
.post_content > ul:not([class]) > li > ol,
.post_content > ol:not([class]) > li > ul,
.post_content > ol:not([class]) > li > ol {
  margin-top: 0.55em;
  margin-bottom: 0.65em;
}

:is(.post_content,.editor-styles-wrapper) .reset-heading { all: revert !important; }
:is(.post_content,.editor-styles-wrapper) .reset-after::after { all: unset !important; content: "" !important; }

:is(.post_content,.editor-styles-wrapper) .custom-heading {
  font-size: 1.6rem !important;
  display: inline-block !important;
  background: linear-gradient(
    90deg,
    var(--color-gradient-start) 0%,
    var(--color-gradient-middle) 45%,
    #fd9f9d 70%,
    #db1a0c 85%,
    var(--color-gradient-end) 90%
  ) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

:is(.textlink_border_custom,:is(.post_content,.editor-styles-wrapper) p:not([class*="is-style-btn"]):not(.pg-button):not(.pg-blogLink) a:not(:where([class*="pg-btn"],[class*="pg-button"],[class*="blogCard"],[class*="blogLink"],.wp-block-button__link,.pg-btn *,.pg-button *,[class*="wp-block-primegear-"] *,[data-type^="primegear/"] *,[class*="swell-block-"] *,[data-type^="loos/"] *, .wp-block-embed *,.appreach *,.pochipp-box *))) {
  color: inherit !important;
  font-weight: inherit;
  text-decoration-line: underline !important;
  text-decoration-color: #a8a8a8 !important;
  text-decoration-thickness: 1.5px !important;
  text-underline-offset: 0.25em;
  text-decoration-skip-ink: auto;
  transition:
    text-decoration-color 0.18s ease,
    text-decoration-thickness 0.18s ease;
}


:is(.textlink_border_custom,:is(.post_content,.editor-styles-wrapper) p:not([class*="is-style-btn"]):not(.pg-button):not(.pg-blogLink) a:not(:where([class*="pg-btn"],[class*="pg-button"],[class*="blogCard"],[class*="blogLink"],.wp-block-button__link,.pg-btn *,.pg-button *,[class*="wp-block-primegear-"] *,[data-type^="primegear/"] *,[class*="swell-block-"] *,[data-type^="loos/"] *, .wp-block-embed *,.appreach *,.pochipp-box *)))::after {
  content: none !important;
  display: none !important;
}


@media (hover: hover) and (pointer: fine) {
  :is(.textlink_border_custom,:is(.post_content,.editor-styles-wrapper) p:not([class*="is-style-btn"]):not(.pg-button):not(.pg-blogLink) a:not(:where([class*="pg-btn"],[class*="pg-button"],[class*="blogCard"],[class*="blogLink"],.wp-block-button__link,.pg-btn *,.pg-button *,[class*="wp-block-primegear-"] *,[data-type^="primegear/"] *,[class*="swell-block-"] *,[data-type^="loos/"] *, .wp-block-embed *,.appreach *,.pochipp-box *))):hover {
    color: inherit !important;
    text-decoration-color: #666666 !important;
    text-decoration-thickness: 2px !important;
  }
}


:is(.textlink_border_custom,:is(.post_content,.editor-styles-wrapper) p:not([class*="is-style-btn"]):not(.pg-button):not(.pg-blogLink) a:not(:where([class*="pg-btn"],[class*="pg-button"],[class*="blogCard"],[class*="blogLink"],.wp-block-button__link,.pg-btn *,.pg-button *,[class*="wp-block-primegear-"] *,[data-type^="primegear/"] *,[class*="swell-block-"] *,[data-type^="loos/"] *, .wp-block-embed *,.appreach *,.pochipp-box *))):visited {
  color: inherit !important;
}


:is(.textlink_border_custom,:is(.post_content,.editor-styles-wrapper) p:not([class*="is-style-btn"]):not(.pg-button):not(.pg-blogLink) a:not(:where([class*="pg-btn"],[class*="pg-button"],[class*="blogCard"],[class*="blogLink"],.wp-block-button__link,.pg-btn *,.pg-button *,[class*="wp-block-primegear-"] *,[data-type^="primegear/"] *,[class*="swell-block-"] *,[data-type^="loos/"] *, .wp-block-embed *,.appreach *,.pochipp-box *))):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}
