/* 通常の固定ページ専用。既存の専用テンプレートには読み込まない。 */
.standard-page {
  padding-bottom: 100px;
}

.standard-page__head.block-head-page06 {
  margin-bottom: 0;
}

.standard-page__head .wrp-txt {
  height: auto;
  min-height: 190px;
  padding: 48px 0;
}

.standard-page__head .tit {
  position: relative;
  padding-bottom: 22px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.standard-page__head .tit::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 4px;
  background: #ecaf2c;
}

.standard-page__inner {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

.standard-page__breadcrumb {
  margin: 22px 0 64px;
  color: #666;
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.standard-page__breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  list-style: none;
}

.standard-page__breadcrumb li + li::before {
  content: "/";
  margin-right: 12px;
  color: #aaa;
}

.standard-page__breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.standard-page__content {
  display: flow-root;
  max-width: 900px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

/* :where() で詳細度を抑え、エディターの色・文字サイズ・配置を優先する。 */
.standard-page__content :where(p, li, dd) {
  line-height: 1.9;
}

.standard-page__content :where(p, ul, ol, dl, figure, blockquote, pre, table, .wp-block-buttons, .wp-block-columns, .wp-block-group, .wp-block-media-text, .wp-block-cover) {
  margin-bottom: 1.8em;
}

.standard-page__content :where(h1, h2, h3, h4, h5, h6) {
  margin: 2em 0 0.9em;
  font-weight: 600;
  line-height: 1.6;
  scroll-margin-top: 32px;
}

.standard-page__content :where(h1, h2) {
  padding-bottom: 14px;
  border-bottom: 2px solid #ecaf2c;
  font-size: 26px;
}

.standard-page__content :where(h3) {
  padding-left: 16px;
  border-left: 4px solid #ecaf2c;
  font-size: 22px;
}

.standard-page__content :where(h4) {
  font-size: 19px;
}

.standard-page__content :where(h5, h6) {
  font-size: 16px;
}

.standard-page__content > :first-child {
  margin-top: 0;
}

.standard-page__content > :last-child {
  margin-bottom: 0;
}

.standard-page__content :where(strong, b, strong *, b *) {
  font-weight: 700;
}

.standard-page__content :where(em, i) {
  font-style: italic;
}

.standard-page__content :where(a:not(.wp-block-button__link)) {
  color: #006fa6;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.standard-page a:focus-visible {
  outline: 2px solid #006fa6;
  outline-offset: 4px;
}

.standard-page__content :where(ul, ol) {
  padding-left: 1.6em;
}

.standard-page__content :where(ul) {
  list-style: disc;
}

.standard-page__content :where(ol) {
  list-style: decimal;
}

.standard-page__content :where(li + li) {
  margin-top: 0.5em;
}

.standard-page__content :where(li > ul, li > ol) {
  margin-top: 0.5em;
  margin-bottom: 0;
}

.standard-page__content :where(dt) {
  margin-bottom: 0.4em;
  font-weight: 600;
}

.standard-page__content :where(dd) {
  margin-bottom: 1.4em;
}

.standard-page__content :where(img, video, iframe) {
  max-width: 100%;
}

.standard-page__content :where(img, video) {
  height: auto;
}

.standard-page__content :where(figcaption, .wp-caption-text) {
  margin-top: 10px;
  color: #666;
  font-size: 13px;
  line-height: 1.7;
}

.standard-page__content :where(.aligncenter) {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.standard-page__content :where(img.aligncenter) {
  display: block;
}

.standard-page__content :where(.alignleft) {
  float: left;
  margin: 0 24px 24px 0;
}

.standard-page__content :where(.alignright) {
  float: right;
  margin: 0 0 24px 24px;
}

.standard-page__content :where(.wp-block-table) {
  overflow-x: auto;
}

.standard-page__content :where(table) {
  width: 100%;
  border-collapse: collapse;
}

.standard-page__content :where(th, td),
.standard-page__content .wp-block-table :where(th, td) {
  padding: 16px 20px;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
}

.standard-page__content :where(th) {
  background-color: #f7f7f7;
  font-weight: 600;
}

.standard-page__content :where(blockquote) {
  padding: 24px 28px;
  border-left: 4px solid #ecaf2c;
  background-color: #f7f7f7;
}

.standard-page__content :where(blockquote p:last-child) {
  margin-bottom: 0;
}

.standard-page__content :where(pre) {
  overflow-x: auto;
  padding: 20px;
  background-color: #f7f7f7;
  white-space: pre;
}

.standard-page__content :where(hr) {
  margin: 48px auto;
  border: 0;
  border-top: 1px solid #ddd;
}

.standard-page__content .wp-block-button__link {
  padding: 16px 32px;
  border-radius: 3px;
  background-color: #ecaf2c;
  color: #333;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
}

.standard-page__pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 60px;
  line-height: 1.5;
}

.standard-page__pagination .post-page-numbers {
  padding: 8px 14px;
  border: 1px solid #ddd;
}

.standard-page__pagination .current {
  border-color: #ecaf2c;
  background-color: #ecaf2c;
}

@media (max-width: 1024px) {
  .standard-page__head .wrp-txt {
    min-height: 130px;
    padding: 32px 0;
  }
}

@media (max-width: 768px) {
  .standard-page {
    padding-bottom: 60px;
  }

  .standard-page__breadcrumb {
    margin-bottom: 40px;
    font-size: 11px;
  }

  .standard-page__content {
    font-size: 15px;
  }

  .standard-page__content :where(h1, h2) {
    font-size: 22px;
  }

  .standard-page__content :where(h3) {
    font-size: 19px;
  }

  .standard-page__content :where(h4) {
    font-size: 17px;
  }

  .standard-page__content :where(th, td),
  .standard-page__content .wp-block-table :where(th, td) {
    padding: 12px;
    font-size: 14px;
  }

  .standard-page__content :where(blockquote) {
    padding: 20px;
  }

  .standard-page__content :where(.alignleft, .alignright) {
    float: none;
    margin-left: 0;
    margin-right: 0;
  }
}
