@charset "UTF-8";

.wysiwyg iframe {
  max-width: 100%;
}
.wysiwyg {
  color: #222;
}
.wysiwyg h1 {
  letter-spacing: 0;
  color: #fff;
  background-color: #4b4035;
}
.wysiwyg h2 {
  letter-spacing: 0;
  color: #222;
  background-color: #f5f5f5;
}
.wysiwyg h3 {
  letter-spacing: 0;
  color: #222;
}
.wysiwyg h4 {
  letter-spacing: 0;
  color: #222;
  text-decoration: underline;
}
.wysiwyg h5 {
  letter-spacing: 0;
  color: #222;
}
.wysiwyg h6 {
  letter-spacing: 0;
  color: #222;
}

.wysiwyg img {
  max-width: 100%;
  width: 100%;
  max-height: 640px;
  object-fit: contain;
  margin: 24px 0 0;
}

.wysiwyg table tr:nth-child(1) {
  background: #00479d;
  color: #fff;
  text-align: center !important;
  font-weight: 700;
}

.wysiwyg a {
  color: #222;
  text-decoration: underline;
}

.wysiwyg p {
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ========================================
  @media screen and (min-width: 768px),print 
======================================== */
@media screen and (min-width: 768px), print {
  .wysiwyg {
    word-wrap: break-word;
    margin-bottom: 30px;
  }
  .wysiwyg strong {
    font-weight: bolder;
  }
  .wysiwyg em {
    font-family: "ＭＳ ゴシック", sans-serif;
    font-style: italic;
  }
  .wysiwyg img {
    max-width: 100% !important;
    height: auto;
  }

  .wysiwyg h1,
  .wysiwyg h2,
  .wysiwyg h3,
  .wysiwyg h4,
  .wysiwyg h5,
  .wysiwyg h6 {
    font-weight: 500;
    letter-spacing: 0;
    text-align: left;
  }
  .wysiwyg h1 {
    margin: 10px 5px 20px;
    padding: 12px 24px;
    font-size: 26px;
    line-height: 1.6;
  }
  .wysiwyg h2 {
    margin: 10px 5px 20px;
    padding: 12px;
    font-size: 24px;
    line-height: 1.5;
    background-color: #d4d7d0;
  }
  .wysiwyg h3 {
    position: relative;
    margin: 10px 5px 20px;
    padding: 5px 20px 5px 20px;
    font-size: 22px;
    line-height: 1.54545;
    letter-spacing: 0.05em;
  }
  .wysiwyg h3::before {
    content: "";
    position: absolute;
    top: 0.65em;
    left: 0;
    width: 16px;
    height: 16px;
    background-color: #222;
  }
  .wysiwyg h4 {
    margin: 10px 5px 20px;
    padding: 0 0 10px;
    font-size: 20px;
    line-height: 1.6;
    letter-spacing: 0.05em;
  }
  .wysiwyg h5 {
    position: relative;
    margin: 10px 5px 20px;
    padding-left: 1em;
    font-size: 18px;
    line-height: 1.77778;
    letter-spacing: 0.05em;
  }
  .wysiwyg h5::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 6px;
    height: 60%;
    background-color: #72b862;
  }
  .wysiwyg h6 {
    margin: 10px 5px 20px;
    padding: 10px;
    padding-left: 0;
    font-size: 18px;
    line-height: 1.77778;
    letter-spacing: 0.05em;
  }
  .wysiwyg p {
    min-height: 15px;
    min-width: 10px;
    margin: 10px 5px 20px;
    font-size: 16px;
    line-height: 1.875;
    letter-spacing: 0.05em;
  }

  .wysiwyg ul {
    list-style-type: disc;
    line-height: 1.6;
    font-size: 16px;
    margin: 5px 0 10px 20px;
  }
  .wysiwyg ol {
    list-style-type: decimal;
    line-height: 1.6;
    font-size: 16px;
    margin: 5px 0 10px 20px;
  }
  .wysiwyg table {
    table-layout: fixed;
    margin-bottom: 40px;
  }
  .wysiwyg table th,
  .wysiwyg table td {
    border: 1px solid #999;
    padding: 10px;
    font-size: 16px;
    margin: 10px 5px;
  }

  /* YouTube */
  .wysiwyg iframe[src*="youtube.com"] {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    margin: 0 auto 40px;
    display: block;
  }
  /* Googleマップ*/
  .wysiwyg iframe[src*="google.com/maps"] {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 4 / 3;
    margin: 0 auto 40px;
    display: block;
  }

  .wysiwyg figure {
    margin: 0 auto 40px;
  }
  .wysiwyg hr.wp-block-separator.has-alpha-channel-opacity {
    margin: 40px 0 40px 0;
  }

  /* 本文内：グループの .gallery-list（div）で page-system の .gallery-list を打ち消す（サムネイルは下の .wp-block-gallery で整列） */
  .wysiwyg .gallery-list:not(ul) {
    display: block !important;
    width: 100% !important;
  }
  /* .gallery-list 直下の単体画像のみ（ブロックギャラリー内の figure は対象外） */
  .wysiwyg .gallery-list:not(ul) > figure.wp-block-image:not(.wp-block-gallery),
  .wysiwyg .gallery-list:not(ul) > p > figure.wp-block-image {
    width: auto !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }
  .wysiwyg .gallery-list:not(ul) > figure.wp-block-image:not(.wp-block-gallery)::after,
  .wysiwyg .gallery-list:not(ul) > p > figure.wp-block-image::after {
    content: none !important;
    display: none !important;
  }
  .wysiwyg .gallery-list:not(ul) > figure.wp-block-image:not(.wp-block-gallery) img,
  .wysiwyg .gallery-list:not(ul) > p > figure.wp-block-image img {
    width: 100% !important;
    height: auto !important;
  }

  /* ブロックギャラリー：PC 5列・セル内は 4:3 で統一（施工事例の SCF ギャラリーに近い） */
  .wysiwyg figure.wp-block-gallery,
  .wysiwyg .wp-block-gallery {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
  }

  .wysiwyg figure.wp-block-gallery .blocks-gallery-grid,
  .wysiwyg .wp-block-gallery .blocks-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: clamp(16px, 8px + 1.04vw, 28px) !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .wysiwyg figure.wp-block-gallery .blocks-gallery-item,
  .wysiwyg .wp-block-gallery .blocks-gallery-item {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
  }

  .wysiwyg figure.wp-block-gallery .blocks-gallery-item figure.wp-block-image,
  .wysiwyg .wp-block-gallery .blocks-gallery-item figure.wp-block-image {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    margin: 0 !important;
    overflow: visible !important;
    background: transparent !important;
  }

  .wysiwyg figure.wp-block-gallery .blocks-gallery-item figure.wp-block-image > a,
  .wysiwyg .wp-block-gallery .blocks-gallery-item figure.wp-block-image > a {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    overflow: hidden !important;
    background: #e8e8e8 !important;
    flex-shrink: 0 !important;
  }

  .wysiwyg figure.wp-block-gallery .blocks-gallery-item figure.wp-block-image > a img,
  .wysiwyg .wp-block-gallery .blocks-gallery-item figure.wp-block-image > a img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }

  .wysiwyg figure.wp-block-gallery .blocks-gallery-item figure.wp-block-image > img:first-child,
  .wysiwyg .wp-block-gallery .blocks-gallery-item figure.wp-block-image > img:first-child {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    flex-shrink: 0 !important;
    background: #e8e8e8 !important;
  }

  .wysiwyg figure.wp-block-gallery .blocks-gallery-caption,
  .wysiwyg .wp-block-gallery .blocks-gallery-caption {
    margin-top: 0.5rem !important;
    font-size: clamp(12px, 10.67px + 0.174vw, 14px) !important;
    line-height: 1.65 !important;
    text-align: left !important;
  }

  .wysiwyg .wp-embedded-content {
    width: 100% !important;
    height: 13rem !important;
    margin: 3rem 0 4rem 0;
  }
}

@media screen and (min-width: 768px) and (max-width: 1100px) {
  .wysiwyg .wp-embedded-content {
    width: 100% !important;
    height: 20vw !important;
    margin: 3rem 0 4rem 0;
  }
}

/* ========================================
   @media screen and (max-width: 767px)
======================================== */
@media screen and (max-width: 767px) {
  .wysiwyg {
    word-wrap: break-word;
    margin-bottom: 5vw;
    font-size: 3.6vw;
  }

  .wysiwyg strong {
    font-weight: bolder;
  }

  .wysiwyg em {
    font-family: "ＭＳ ゴシック", sans-serif;
    font-style: italic;
  }

  .wysiwyg img {
    max-width: 100% !important;
    height: auto;
    max-height: 50vh;
  }

  .wysiwyg p {
    min-height: 3vw;
    min-width: 3vw;
    line-height: 1.6;
    margin-bottom: 5vw;
  }

  .wysiwyg h1 {
    background-color: #4b4035;
    color: #fff;
    font-weight: bold;
    text-align: left;
  }

  .wysiwyg h2,
  .wysiwyg h3,
  .wysiwyg h4,
  .wysiwyg h5,
  .wysiwyg h6 {
    font-weight: 500;
    text-align: left;
  }

  .wysiwyg h1 {
    margin: 0.2vw 0 4.2vw;
    padding: 3vw;
    font-size: 4.2vw;
    line-height: 1.6;
    background-color: #4b4035;
  }

  .wysiwyg h2 {
    padding: 3vw;
    font-size: 4.2vw;
    font-weight: 500;
    line-height: 1.6;
    margin: 0.2vw 0 4.2vw;
    background-color: #f5f5f5;
  }

  .wysiwyg h3 {
    position: relative;
    padding: 1vw 2vw;
    padding-left: 6.8vw;
    margin: 0.2vw 0 4.2vw;
    font-size: 4.8vw;
    line-height: 1.6;
  }
  .wysiwyg h3::before {
    content: "";
    position: absolute;
    top: 2.9vw;
    left: 0;
    width: 3.9vw;
    height: 3.9vw;
    background-color: #72b862;
  }

  .wysiwyg h4 {
    margin: 0.2vw 0 4.2vw;
    padding: 0 0 3vw;
    font-size: 4.3vw;
    line-height: 1.66666;
  }

  .wysiwyg h5 {
    position: relative;
    font-size: 3.9vw;
    padding-left: 3.4vw;
    line-height: 1.75;
    margin: 0.2vw 0 4.2vw;
  }

  .wysiwyg h5::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 1vw;
    height: 80%;
    background-color: #72b862;
  }

  .wysiwyg h6 {
    margin: 0.2vw 0 4.2vw;
    padding: 3vw;
    font-size: 3.9vw;
    line-height: 1.75;
  }
  .wysiwyg p {
    font-size: 3.4vw;
    font-weight: 400;
    line-height: 1.857;
    letter-spacing: 0;
  }

  .wysiwyg ul {
    list-style-type: disc;
    line-height: 1.6;
    margin: 0.2vw 0 4.2vw 4vw;
  }

  .wysiwyg ol {
    list-style-type: decimal;
    line-height: 1.6;
    font-size: 3.6vw;
    margin: 0.2vw 0 4.2vw 8vw;
  }

  .wysiwyg table {
    width: 100% !important;
    /* table-layout: fixed; */
  }

  .wysiwyg table th,
  .wysiwyg table td {
    border: 0.2vw solid #999;
    padding: 3vw;
    font-size: 3.6vw;
    margin: 0.2vw 0 4.2vw 8vw;
  }
  /* YouTube */
  .wysiwyg iframe[src*="youtube.com"] {
    width: 100%;
    height: 50vw;
    aspect-ratio: 16 / 9;
    margin-bottom: 4vw;
    display: block;
  }
  /* Googleマップ*/
  .wysiwyg iframe[src*="google.com/maps"] {
    width: 100%;
    height: 50vw;
    aspect-ratio: 4 / 3;
    margin-bottom: 4vw;
    display: block;
  }

  .wysiwyg figure {
    margin: 0 auto 4vw;
    text-align: center;
  }
  .wysiwyg hr.wp-block-separator.has-alpha-channel-opacity {
    margin: 6vw 0 7vw 0;
  }

  .wysiwyg .gallery-list:not(ul) {
    display: block !important;
    width: 100% !important;
  }
  .wysiwyg .gallery-list:not(ul) > figure.wp-block-image:not(.wp-block-gallery),
  .wysiwyg .gallery-list:not(ul) > p > figure.wp-block-image {
    width: auto !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }
  .wysiwyg .gallery-list:not(ul) > figure.wp-block-image:not(.wp-block-gallery)::after,
  .wysiwyg .gallery-list:not(ul) > p > figure.wp-block-image::after {
    content: none !important;
    display: none !important;
  }
  .wysiwyg .gallery-list:not(ul) > figure.wp-block-image:not(.wp-block-gallery) img,
  .wysiwyg .gallery-list:not(ul) > p > figure.wp-block-image img {
    width: 100% !important;
    height: auto !important;
  }

  /* ブロックギャラリー：SP 2列 */
  .wysiwyg figure.wp-block-gallery .blocks-gallery-grid,
  .wysiwyg .wp-block-gallery .blocks-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6vw 2vw !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .wysiwyg figure.wp-block-gallery .blocks-gallery-item,
  .wysiwyg .wp-block-gallery .blocks-gallery-item {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
  }

  .wysiwyg figure.wp-block-gallery .blocks-gallery-item figure.wp-block-image,
  .wysiwyg .wp-block-gallery .blocks-gallery-item figure.wp-block-image {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    margin: 0 !important;
    overflow: visible !important;
    background: transparent !important;
  }

  .wysiwyg figure.wp-block-gallery .blocks-gallery-item figure.wp-block-image > a,
  .wysiwyg .wp-block-gallery .blocks-gallery-item figure.wp-block-image > a {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    overflow: hidden !important;
    background: #e8e8e8 !important;
    flex-shrink: 0 !important;
  }

  .wysiwyg figure.wp-block-gallery .blocks-gallery-item figure.wp-block-image > a img,
  .wysiwyg .wp-block-gallery .blocks-gallery-item figure.wp-block-image > a img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }

  .wysiwyg figure.wp-block-gallery .blocks-gallery-item figure.wp-block-image > img:first-child,
  .wysiwyg .wp-block-gallery .blocks-gallery-item figure.wp-block-image > img:first-child {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    flex-shrink: 0 !important;
    background: #e8e8e8 !important;
  }

  .wysiwyg figure.wp-block-gallery .blocks-gallery-caption,
  .wysiwyg .wp-block-gallery .blocks-gallery-caption {
    margin-top: 3vw !important;
    font-size: 2.9vw !important;
    line-height: 1.65 !important;
    text-align: left !important;
  }

  .wysiwyg .wp-block-table {
    max-width: 100%;
    white-space: nowrap;
  }
  .wp-block-table .has-fixed-layout {
    table-layout: auto !important;
    margin-bottom: 10vw;
  }
  .wysiwyg .wp-embedded-content {
    width: 100% !important;
    height: 69vw !important;
    margin: 0rem 0 0rem 0;
  }
}
