:root {
    --color-01: #d00000;
}

/* リセット */
.sig-wysiwyg-text-area *,
:after,
:before {
        box-sizing: content-box;
}

.sig-wysiwyg-text-area *{
  color: unset;
}

.sig-wysiwyg-text-area a,
.sig-wysiwyg-text-area blockquote,
.sig-wysiwyg-text-area body,
.sig-wysiwyg-text-area button,
.sig-wysiwyg-text-area dd,
.sig-wysiwyg-text-area div,
.sig-wysiwyg-text-area dl,
.sig-wysiwyg-text-area dt,
.sig-wysiwyg-text-area figcaption,
.sig-wysiwyg-text-area figure,
.sig-wysiwyg-text-area form,
.sig-wysiwyg-text-area h1,
.sig-wysiwyg-text-area h2,
.sig-wysiwyg-text-area h3,
.sig-wysiwyg-text-area h4,
.sig-wysiwyg-text-area h5,
.sig-wysiwyg-text-area h6,
.sig-wysiwyg-text-area hr,
.sig-wysiwyg-text-area input,
.sig-wysiwyg-text-area li,
.sig-wysiwyg-text-area ol,
.sig-wysiwyg-text-area p,
.sig-wysiwyg-text-area pre,
.sig-wysiwyg-text-area time,
.sig-wysiwyg-text-area ul,
.sig-wysiwyg-text-area ol,
.sig-wysiwyg-text-area dl {
    margin: 0;
    padding: 0;
}

.sig-wysiwyg-text-area h1,
.sig-wysiwyg-text-area h2,
.sig-wysiwyg-text-area h3,
.sig-wysiwyg-text-area h4,
.sig-wysiwyg-text-area h5,
.sig-wysiwyg-text-area h6 {
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
    line-height: inherit;
}

.sig-wysiwyg-text-area iframe,
.sig-wysiwyg-text-area img,
.sig-wysiwyg-text-area video {
    max-width: 100%;
}

.sig-wysiwyg-text-area img {
    max-width: 100%;
    height: auto;
    vertical-align: top;
    border: 0;
    border-style: none;
}

.sig-wysiwyg-text-area b,
.sig-wysiwyg-text-area strong {
    font-weight: bolder;
}

.sig-wysiwyg-text-area ol,
.sig-wysiwyg-text-area ul {
    list-style: none;
}

.sig-wysiwyg-text-area ul li::marker {
    display: none;
}

.sig-wysiwyg-text-area time {
    display: block;
}

.sig-wysiwyg-text-area table {
    border-collapse: collapse;
}

/* wysiwygエディタ内 */
.sig-wysiwyg-text-area ul,
.sig-wysiwyg-text-area ol {
    margin: 1em 0;
    padding-left: 0;
}

.sig-wysiwyg-text-area ul li {
    margin: 0.5em 0;
    padding-left: 1em;
    font-size: inherit;
    position: relative;
}

.sig-wysiwyg-text-area ul li::before {
    content: "";
    width: 0.75em;
    height: 0.75em;
    display: inline-block;
    border-radius: 50%;
    background-color: var(--color-01);
    position: absolute;
    top: 0.65em;
    left: 0;
}

.sig-wysiwyg-text-area ol {
    list-style: none;
    counter-reset: number;
}

.sig-wysiwyg-text-area ol li {
    margin: 0.5em 0;
    padding-left: 1.5em;
    font-size: inherit;
    color: #666;
    position: relative;
}

.sig-wysiwyg-text-area ol li::before {
    content: counter(number);
    width: 1.5em;
    height: 1.5em;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    align-items: center;
    -ms-flex-align: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    counter-increment: number;
    font-size: 0.8em;
    color: white;
    text-align: center;
    border-radius: 100%;
    background-color: var(--color-01);
    position: absolute;
    top: 0.45em;
    left: 0;
    padding-left: 1px;
    font-family: 'Noto Serif Japanese' !important;
}

.sig-wysiwyg-text-area h2 {
    line-height: 1.5;
    background-color: var(--color-01);
    font-family: 'Noto Serif Japanese' !important;
    
    color: #FFF;
    font-size: 25px;
    padding: 10px;
    margin: 0 auto 30px;
    position: relative;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-weight: 600;
}

.sig-wysiwyg-text-area h3 {
    font-family: 'Noto Serif Japanese' !important;

    background: #efefef;
    font-size: 22px;
    color: #333;
    border-top: #ee7728 solid 7px;
    width: auto;
    padding: 5px 10px 8px;
    margin: 20px 0;
    font-weight: 600;
        line-height: 1.5;
}

.sig-wysiwyg-text-area h4 {
    font-family: 'Noto Serif Japanese' !important;
    
    font-size: 19px;
    padding: 0 0 0 50px;
    margin: 0 0 20px;
    position: relative;
    line-height: 1.8;
    font-weight: 500;
}

.sig-wysiwyg-text-area h4:before, .sig-wysiwyg-text-area h4:after {
    border-radius: 50%;
    content: '';
    display: block;
    position: absolute;
    top: 7px;
    font-size: 30px;
    line-height: 1.0;
    background: #005eb5;
    width: 20px;
    height: 20px;
}

.sig-wysiwyg-text-area h4:before{
    left: 0;
    opacity: 0.5;
}

.sig-wysiwyg-text-area h4:after {
    left: 23px;
}

.sig-wysiwyg-text-area iframe[src*="youtube"] {
    max-width: 100%;
    height: auto;
    margin-top: 1em;
    margin-bottom: 1em;

    aspect-ratio: 16 / 9;
}

.sig-wysiwyg-text-area #toc_container {
    background: #f9f9f9;
    border: 1px solid #aaa;
    padding: 10px;
    margin-bottom: 1em;
    width: auto;
    display: table;
    font-size: 95%;
}

.sig-wysiwyg-text-area #toc_container .toc_title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 0 !important;
    padding: 0;
}

.sig-wysiwyg-text-area #toc_container ul {
    margin-bottom: 15px;
}

#toc_container {
  -webkit-user-modify: read-only; /* 古いChrome/Safari */
  user-modify: read-only;         /* 標準（対応ブラウザ限定） */
  pointer-events: none;           /* クリック自体を無効化 */
}

/* 2026/06/24 */

.image-gallery-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 4%;
  margin-top: 20px;
  margin-bottom: 20px;
}

.image-gallery-flex__item {
  width: 48%;
}

.image-gallery-flex__item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (max-width: 599px) {
.image-gallery-flex {
    gap: 16px;
  }

.image-gallery-flex__item {
    width: 100%;
  }
}

/*20261015*/
/* ========================================
   表の装飾
======================================== */
.sig-wysiwyg-text-area table th {
  width: 22%;
  background-color: #75bb29;
  font-weight: normal;
  color: #fff;
  font-size: 18px;
  padding: 15px 20px;
  position: relative;
  border-bottom: #fff solid 1px;
}

.sig-wysiwyg-text-area table td {
  padding: 15px 20px;
  font-size: 15px;
  text-align: left;
  background: #efefef;
  position: relative;
  border-bottom: #fff solid 1px;
}

/* ========================================
   行間
======================================== */
.sig-wysiwyg-text-area {
  line-height: 1.8;
}

/* ========================================
   段落の基本の下余白
======================================== */
.sig-wysiwyg-text-area p,
#blog #main .detail-content-text p:where(.sig-wysiwyg-text-area *) {
  margin-bottom: 15px;
}

/* ========================================
   以下の場合を除き、段落の下余白を0にする

   ・目次内の段落
   ・段落内に画像・動画・表などがある
   ・直後の要素が画像・動画・表・目次・h2
   ・直後の要素の中に画像・動画・表・目次・h2がある
======================================== */
.sig-wysiwyg-text-area p:not(
  #toc_container, #toc_container *
):not(
  :has(
    img, picture, video, iframe, svg, canvas,
    audio, object, embed, table
  )
):not(
  :has(+ :is(
    img, picture, video, iframe, svg, canvas,
    audio, object, embed, table, #toc_container, h2
  ))
):not(
  :has(+ * :is(
    img, picture, video, iframe, svg, canvas,
    audio, object, embed, table, #toc_container, h2
  ))
) {
  margin-bottom: 0;
}

/* ========================================
   区切り線の直後が目次・h2の場合の下余白
======================================== */
.sig-wysiwyg-text-area hr:has(+ #toc_container, + h2) {
  margin-bottom: 24px;
}

.sig-wysiwyg-text-area a{
  color: #017950;
    text-decoration: underline;
    display: block;
    width: fit-content;
}

.sig-wysiwyg-text-area{
  width: 1000px;
}

.sig-wysiwyg-menu{
  width: 1000px;
}

.sig-wysiwyg-text-area h1, .sig-wysiwyg-text-area h2, .sig-wysiwyg-text-area h3, .sig-wysiwyg-text-area h4, .sig-wysiwyg-text-area h5, .sig-wysiwyg-text-area h6{
  clear: both;
  line-height: 1.5;
}

.sig-wysiwyg-text-area p+h2, .sig-wysiwyg-text-area p+h3, .sig-wysiwyg-text-area p+h4, .sig-wysiwyg-text-area p+h5, .sig-wysiwyg-text-area p+h6, .sig-wysiwyg-text-area ul+h2, .sig-wysiwyg-text-area ul+h3, .sig-wysiwyg-text-area ul+h4, .sig-wysiwyg-text-area ul+h5, .sig-wysiwyg-text-area ul+h6, .sig-wysiwyg-text-area ol+h2, .sig-wysiwyg-text-area ol+h3, .sig-wysiwyg-text-area ol+h4, .sig-wysiwyg-text-area ol+h5, .sig-wysiwyg-text-area ol+h6{
  margin-top: 30px;
}
}
