@charset "UTF-8";

/* 使用色・白地・丸みの初期値 */
:root {
  --main-dark-area-bg-color: #8A6A2F;
  --main-dark-area-text-color: #FFFFFF;
  --main-white-area-bg-color: #FFFFFF;
  --main-white-area-text-color: #302D2B;
  --theme-min-contents-bg-color: var(--main-white-area-bg-color);
  --theme-list-icon-color: currentColor;
  --main-contents-border-color: #EAE6E2;
  --main-card-border-color: #D8D1CB;
  --theme-border-radius-section: 0;
  --theme-border-radius-button: 0;
  --theme-border-radius-small-parts: var(--theme-border-radius-button);
  --theme-border-radius-avatar: var(--theme-border-radius-button);
}

/* 通常ヘッダー・トップバーは白地配色を維持する */
.site-header,
.top-navigation-bar {
  color: var(--main-white-area-text-color);
  background-color: var(--main-white-area-bg-color);
}

.site-header {
  border-block-end: 1px solid var(--main-dark-area-bg-color);
}

.top-navigation-bar a {
  color: inherit;
}
@media (min-width: 769px) {
  .sticky-header.is-visible:not([hidden]),
  ul.global-menu ul {
    color: var(--main-white-area-text-color);
    background-color: var(--main-white-area-bg-color);
  }
  .hover-action.global-menu-hover-underline ul.global-menu > li:hover {
    border-bottom-color: var(--main-dark-area-bg-color);
  }
}
@media (max-width: 768px) {
  .drawer-content {
    color: var(--main-dark-area-text-color);
    background-color: var(--main-dark-area-bg-color);
  }
  .drawer-open[aria-expanded="true"],
  #header.hero-header-transparent .drawer-open[aria-expanded="true"] {
    color: var(--main-dark-area-text-color);
  }
}
.drawer-open {
  color: var(--main-dark-area-bg-color);
  border-color: currentColor;
}
.search-button {
  color: inherit;
}
.header-contact-contents {
  --header-cta-text-color: var(--main-white-area-text-color);
  --header-cta-bg-color: var(--main-white-area-bg-color);
}

/* 本文・サイドバー・記事カードの面と外枠 */
.main-section,
.sidebar-section {
  border-width: 0;
}
.main-section > .main-class,
.main-section > .related-article,
.main-section > .comment-lists-section,
.sidebar-section > .widget,
.right-sidebar-sticky-group > .widget {
  color: inherit;
  background-color: var(--theme-min-contents-bg-color);
}
.list-articles-card,
.related-contents {
  color: inherit;
  background-color: var(--theme-min-contents-bg-color);
  border: solid 1px var(--main-card-border-color);
}

/* 目次の枠はコンテンツ枠線色 */
.toc-details {
  border: solid 1px var(--main-contents-border-color);
}

/* 本文・固定ページ・通常／追従サイドバー・エディターと関連記事・コメント欄の見出し */
:where(.single-content-section, .page-content-section, .sidebar, .editor-styles-wrapper) h2:not([class*="is-style-"], .wp-block-post-title, .articles-posted-card-title-item, .articles-information-title, .related-item-title, .related-title) {
  position: relative;
  padding: 0.5em !important;
  border-radius: 0;
}
:where(.single-content-section, .page-content-section, .sidebar, .editor-styles-wrapper) h2:not([class*="is-style-"], .wp-block-post-title, .articles-posted-card-title-item, .articles-information-title, .related-item-title, .related-title):where(:not(.has-text-color)) {
  color: var(--main-dark-area-text-color);
}
:where(.single-content-section, .page-content-section, .sidebar, .editor-styles-wrapper) h2:not([class*="is-style-"], .wp-block-post-title, .articles-posted-card-title-item, .articles-information-title, .related-item-title, .related-title):where(:not(.has-background)) {
  background-color: var(--main-dark-area-bg-color);
}
:where(.single-content-section, .page-content-section, .sidebar, .editor-styles-wrapper) h2:not([class*="is-style-"], .wp-block-post-title, .articles-posted-card-title-item, .articles-information-title, .related-item-title, .related-title)::before,
:where(.single-content-section, .page-content-section, .sidebar, .editor-styles-wrapper) h2:not([class*="is-style-"], .wp-block-post-title, .articles-posted-card-title-item, .articles-information-title, .related-item-title, .related-title)::after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  content: "";
  background-color: var(--main-dark-area-bg-color);
}
:where(.single-content-section, .page-content-section, .sidebar, .editor-styles-wrapper) h2:not([class*="is-style-"], .wp-block-post-title, .articles-posted-card-title-item, .articles-information-title, .related-item-title, .related-title)::before {
  top: -5px;
}
:where(.single-content-section, .page-content-section, .sidebar, .editor-styles-wrapper) h2:not([class*="is-style-"], .wp-block-post-title, .articles-posted-card-title-item, .articles-information-title, .related-item-title, .related-title)::after {
  bottom: -5px;
}

:where(.single-content-section, .page-content-section, .sidebar) h3:not([class*="is-style-"], .wp-block-post-title, .articles-posted-card-title-item, .articles-information-title, .related-item-title, .related-title),
.editor-styles-wrapper h3.wp-block-heading:not([class*="is-style-"], .wp-block-post-title, .articles-posted-card-title-item, .articles-information-title, .related-item-title, .related-title),
.related-article > .related-title,
.comment-lists-section > .comment-title,
.comment-lists-section .comment-reply-title {
  padding: 0.4em 0.65em;
  border-radius: 0;
  border-inline-start: 5px solid var(--main-dark-area-bg-color);
  border-block-end: 1px solid var(--main-dark-area-bg-color);
}
:where(.single-content-section, .page-content-section, .sidebar) h4:not([class*="is-style-"], .wp-block-post-title, .articles-posted-card-title-item, .articles-information-title, .related-item-title, .related-title),
.editor-styles-wrapper h4.wp-block-heading:not([class*="is-style-"], .wp-block-post-title, .articles-posted-card-title-item, .articles-information-title, .related-item-title, .related-title) {
  position: relative;
  padding-block-end: 0.4em;
  border-radius: 0;
}
:where(.single-content-section, .page-content-section, .sidebar) h4:not([class*="is-style-"], .wp-block-post-title, .articles-posted-card-title-item, .articles-information-title, .related-item-title, .related-title)::after,
.editor-styles-wrapper h4.wp-block-heading:not([class*="is-style-"], .wp-block-post-title, .articles-posted-card-title-item, .articles-information-title, .related-item-title, .related-title)::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3em;
  height: 2px;
  content: "";
  background-color: var(--main-dark-area-bg-color);
}

/* 白地の表・背景型ブロック */
.wp-block-table :where(table:not(.has-text-color)) td,
.wp-block-table :where(table:not(.has-text-color)) th {
  color: var(--main-white-area-text-color);
}
.wp-block-table :where(table:not(.has-background)) td,
.wp-block-table :where(table:not(.has-background)) th {
  background-color: var(--main-white-area-bg-color);
}
.wp-block-table td,
.wp-block-table th {
  border-color: var(--main-card-border-color);
}
.is-style-theme-bgcolor-color {
  border: 1px solid var(--main-dark-area-bg-color);
}

/* 塗りつぶしボタン・通常の送信ボタン */
.wp-block-button:where(:not(.is-style-outline)) > .wp-element-button:where(:not(.is-style-outline)),
input[type="submit"],
button[type="submit"]:where(:not(.search-submit, .wp-block-button > .wp-element-button)) {
  color: var(--main-dark-area-text-color);
  background-color: var(--main-dark-area-bg-color);
  border: solid 1px var(--main-dark-area-text-color);
}
.search-submit,
button.wp-block-search__button,
input.wp-block-search__input,
.wp-block-search__button-inside .wp-block-search__inside-wrapper {
  border-color: var(--main-card-border-color);
}
.hover-action input[type="submit"]:where(:not(.search-submit, .wp-block-button > .wp-element-button)):hover,
.hover-action button[type="submit"]:where(:not(.search-submit, .wp-block-search__button, .wp-block-button > .wp-element-button)):hover,
.hover-action .comment-respond #submit:hover {
  color: var(--main-dark-area-bg-color);
  background-color: var(--main-dark-area-text-color);
  border-color: var(--main-dark-area-text-color);
}
.page-feed-prev-arrow::before {
  border-inline-end: 1px solid var(--main-card-border-color);
}
.page-feed-next-arrow::before {
  border-inline-start: 1px solid var(--main-card-border-color);
}

/* コメントフォームの入力欄はカード枠線色 */
.comment-respond #comment,
.comment-form #author,
.comment-form #email,
.comment-respond #url {
  border-color: var(--main-card-border-color);
}

/* カテゴリーはメイン配色、タグは反転配色 */
.label-color-category {
  color: var(--main-dark-area-text-color);
  background-color: var(--main-dark-area-bg-color);
  border-color: currentColor;
}
.label-color-tags {
  color: var(--main-dark-area-bg-color);
  background-color: var(--main-dark-area-text-color);
  border-color: currentColor;
}
.hover-action :is(a.label-color-category, .label-color-category:has(> a)):hover {
  color: var(--main-dark-area-bg-color);
  background-color: var(--main-dark-area-text-color);
}
.hover-action :is(a.label-color-tags, .label-color-tags:has(> a)):hover {
  color: var(--main-dark-area-text-color);
  background-color: var(--main-dark-area-bg-color);
}

/* 一覧・コメント・本文分割のページ番号 */
nav .page-numbers,
.pagination-section .post-page-numbers {
  --pagination-text-color: var(--main-dark-area-bg-color);
  --pagination-bg-color: var(--main-dark-area-text-color);
  --pagination-border-color: var(--pagination-text-color);
  color: var(--pagination-text-color);
  background-color: var(--pagination-bg-color);
  border-color: var(--pagination-border-color);
}
nav .page-numbers.current,
.pagination-section .post-page-numbers.current {
  color: var(--pagination-bg-color);
  background-color: var(--pagination-text-color);
  border-color: var(--pagination-bg-color);
}
.hover-action.hover-color-inversion nav a.page-numbers:hover,
.hover-action.hover-color-inversion .pagination-section a.post-page-numbers:hover {
  color: var(--pagination-bg-color);
  background-color: var(--pagination-text-color);
  border-color: var(--pagination-bg-color);
}

/* TOP：通常は反転配色、ホバーでメイン配色 */
.back-to-top {
  --back-to-top-text-color: var(--main-dark-area-bg-color);
  --back-to-top-bg-color: var(--main-dark-area-text-color);
  --back-to-top-border-color: var(--back-to-top-text-color);
  color: var(--back-to-top-text-color);
  background-color: var(--back-to-top-bg-color);
  border-color: var(--back-to-top-border-color);
}
.hover-action.hover-color-inversion .back-to-top:hover {
  color: var(--back-to-top-bg-color);
  background-color: var(--back-to-top-text-color);
  border-color: var(--back-to-top-bg-color);
}

/* ピックアップ：背景との同色判定はメインCSSの色変数を使う */
.theme-pickup-slider-item {
  border-color: var(--pickup-border-color);
}
.hover-action .theme-pickup-slider-item:hover {
  border-color: var(--pickup-border-color);
}
.theme-pickup-slider :is(.swiper-button-prev, .swiper-button-next) {
  color: var(--pickup-foreground-color);
}
.theme-pickup-slider .swiper-pagination-bullet {
  background-color: var(--pickup-foreground-color);
}

/* 通常フッターメニュー・本体はメイン配色。普通のリンクは領域の文字色を継承 */
.footer-menu-standard,
.footer-body {
  color: var(--main-dark-area-text-color);
  background-color: var(--main-dark-area-bg-color);
}

/* 固定メニュー：個別設定の文字色・背景色を反転元にも使う */
.footer-fixed-menu-section .menu-item a {
  color: var(--footer-fixed-item-text-color);
  background-color: var(--footer-fixed-item-bg-color);
  border-color: var(--footer-fixed-item-text-color);
}
.hover-action .footer-fixed-menu-section .menu-item a:hover {
  color: var(--footer-fixed-item-bg-color);
  background-color: var(--footer-fixed-item-text-color);
  border-color: currentColor;
}

.footer-fixed-menu-section .menu-item > a {
  border-block-start: 1px solid var(--footer-fixed-item-text-color, var(--main-dark-area-text-color));
}
