:root {
    --color-01: #d00000;
}

/* リセット */
.sig-wysiwyg-text-area *,
:after,
:before {
        box-sizing: content-box;
}

.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%;
  }
}
