/* ============================
   Buttons
============================ */
/* 2つの .wp-block-buttons が横並びになっている親グループの間隔 */
.wp-block-group.is-layout-flex:has(> .wp-block-buttons:nth-child(2)) {
  gap: 0 24px;
}

/* ========== btn1-blue-sm（青 小） ========== */
.btn1-blue-sm a,
.wp-block-button.is-style-btn1-blue-sm .wp-block-button__link {
  white-space: nowrap;
  font-size: 16px;
  background: none;
  color: #0C9ACE;
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative;
  padding-left: 0;
  padding-right: 0;
  transition: all 0.3s ease;
}

.btn1-blue-sm a::after,
.wp-block-button.is-style-btn1-blue-sm .wp-block-button__link::after {
  content: "";
  width: 34px;
  height: 34px;
  padding: 9.4452px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  background: url("/wp-content/themes/understrap-child-1.2.01/img/arrow-white.png") 50% 50% / 20px 20px no-repeat, #0C9ACE;
  transition: background-position 0.2s ease;
  margin-left: 0;
}

@media (any-hover: hover) {
  .btn1-blue-sm a:hover,
  .wp-block-button.is-style-btn1-blue-sm .wp-block-button__link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .btn1-blue-sm a:hover::after,
  .wp-block-button.is-style-btn1-blue-sm .wp-block-button__link:hover::after {
    background-position: calc(50% + 4px) 50%;
  }
}
/* ========== btn1-white-sm（白 小） ========== */
.btn1-white-sm a,
.wp-block-button.is-style-btn1-white-sm .wp-block-button__link {
  white-space: nowrap;
  font-size: 16px;
  background: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative;
  padding-left: 0;
  padding-right: 0;
  transition: all 0.3s ease;

}

.btn1-white-sm a::after,
.wp-block-button.is-style-btn1-white-sm .wp-block-button__link::after {
  content: "";
  width: 34px;
  height: 34px;
  padding: 9.4452px; /* 34 * 0.2778 */
  border-radius: 9999px;
  display: grid;
  place-items: center;
  background: url("/wp-content/themes/understrap-child-1.2.01/img/arrow-blue.png") 50% 50% / 30px 30px no-repeat, #fff;
  transition: background-position 0.2s ease;
  margin-left: 0;
}

@media (any-hover: hover) {
  .btn1-white-sm a:hover,
  .wp-block-button.is-style-btn1-white-sm .wp-block-button__link:hover {
        text-decoration: underline;
        text-underline-offset: 4px;
  }
}
@media (any-hover: hover) {
  .btn1-white-sm a:hover::after,
  .wp-block-button.is-style-btn1-white-sm .wp-block-button__link:hover::after {
    background-position: calc(50% + 4px) 50%;
  }
}

/* ========== btn1-blue（青） ========== */
.btn1-blue a,
.wp-block-button.is-style-btn1-blue .wp-block-button__link {
  white-space: nowrap;
  font-size: 20px;
  background: none;
  color: #0C9ACE;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  padding-left: 0;
  padding-right: 0;
  transition: all 0.3s ease;
}

.btn1-blue a::after,
.wp-block-button.is-style-btn1-blue .wp-block-button__link::after {
  content: "";
  width: 72px;
  height: 72px;
  padding: 20px; /* 72 * 0.2778 ≒ 20 */
  border-radius: 9999px;
  display: grid;
  place-items: center;
  background: url("/wp-content/themes/understrap-child-1.2.01/img/arrow-white.png") 50% 50% / 24px 24px no-repeat, #0C9ACE;
  transition: background-position 0.2s ease;
  margin-left: 0;
}

@media (any-hover: hover) {
  .btn1-blue a:hover,
  .wp-block-button.is-style-btn1-blue .wp-block-button__link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}
@media (any-hover: hover) {
  .btn1-blue a:hover::after,
  .wp-block-button.is-style-btn1-blue .wp-block-button__link:hover::after {
    background-position: calc(50% + 4px) 50%;
  }
}
/* ========== btn1-white（白 大） ========== */
.btn1-white a,
.wp-block-button.is-style-btn1-white .wp-block-button__link {
  white-space: nowrap;
  font-size: 20px;
  background: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  padding-left: 0;
  padding-right: 0;
  transition: all 0.3s ease;
}

.btn1-white a::after,
.wp-block-button.is-style-btn1-white .wp-block-button__link::after {
  content: "";
  width: 72px;
  height: 72px;
  padding: 20px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  background: url("/wp-content/themes/understrap-child-1.2.01/img/arrow-blue.png") 50% 50% / 30px 30px no-repeat, #fff;
  transition: background-position 0.2s ease;
  margin-left: 0;
}

@media (any-hover: hover) {
  .btn1-white a:hover,
  .wp-block-button.is-style-btn1-white .wp-block-button__link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .btn1-white a:hover::after,
  .wp-block-button.is-style-btn1-white .wp-block-button__link:hover::after {
    background-position: calc(50% + 4px) 50%;
  }
}

@media screen and (max-width: 640px) {
  .btn1-white-sm a,
  .wp-block-button.is-style-btn1-white-sm .wp-block-button__link {
    font-size: 14px;
    gap: 6px;
  }
  .btn1-white-sm a::after,
  .wp-block-button.is-style-btn1-white-sm .wp-block-button__link::after {
    width: 28px;
    height: 28px;
    padding: 8px;
    background: url("/wp-content/themes/understrap-child-1.2.01/img/arrow-blue.png") 50% 50% / 20px 20px no-repeat, #fff;
  }

  .btn1-blue a,
  .wp-block-button.is-style-btn1-blue .wp-block-button__link {
    font-size: 14px;
    gap: 6px;
  }
  .btn1-blue a::after,
  .wp-block-button.is-style-btn1-blue .wp-block-button__link::after {
    width: 28px;
    height: 28px;
    padding: 8px;
    background: url("/wp-content/themes/understrap-child-1.2.01/img/arrow-white.png") 50% 50% / 10px 10px no-repeat, #0C9ACE;
  }


  .btn1-blue-sm a,
  .wp-block-button.is-style-btn1-blue-sm .wp-block-button__link {
    font-size: 14px;
    gap: 6px;
  }
  .btn1-blue-sm a::after,
  .wp-block-button.is-style-btn1-blue-sm .wp-block-button__link::after {
    width: 28px;
    height: 28px;
    padding: 8px;
    background: url("/wp-content/themes/understrap-child-1.2.01/img/arrow-white.png") 50% 50% / 10px 10px no-repeat, #0C9ACE;
  }

  .btn1-white a,
  .wp-block-button.is-style-btn1-white .wp-block-button__link {
    font-size: 14px;
    gap: 6px;
    /* padding: 0; */
  }
  .btn1-white a::after,
  .wp-block-button.is-style-btn1-white .wp-block-button__link::after {
    width: 28px;
    height: 28px;
    padding: 8px;
    background: url("/wp-content/themes/understrap-child-1.2.01/img/arrow-blue.png") 50% 50% / 20px 20px no-repeat, #fff;
  }
}

/* 塗りつぶし　水色 */
.btn2-lightblue a,
.wp-block-button.is-style-btn2-lightblue .wp-block-button__link {
  margin-block: 0.5rem;
  background: #0C9ACE;
  color: #fff;
}

@media (any-hover: hover) {
  .btn2-lightblue a:hover,
  .wp-block-button.is-style-btn2-lightblue .wp-block-button__link:hover {
    background: #00A866;
    color: #fff;
  }
}

/* ぬりつぶし　青 */
.btn2-blue a,
.wp-block-button.is-style-btn2-blue .wp-block-button__link {
  margin-block: 0.5rem;
  background: #0064C7;
  color: #fff;
}

@media (any-hover: hover) {
  .btn2-blue a:hover,
  .wp-block-button.is-style-btn2-blue .wp-block-button__link:hover {
    background: #00A866;
    color: #fff;
  }
}
/* ぬりつぶし　赤 */
.btn2-red a,
.wp-block-button.is-style-btn2-red .wp-block-button__link {
  margin-block: 0.5rem;
  background: #E84336;
  color: #fff;
}

@media (any-hover: hover) {
  .btn2-red a:hover,
  .wp-block-button.is-style-btn2-red .wp-block-button__link:hover {
    background: #00A866;
    color: #fff;
  }
}

/* 輪郭 水色 */
.btn2-line a,
.wp-block-button.is-style-btn2-line .wp-block-button__link {
  margin-block: 0.5rem;
  background: #fff;
  color: #0C9ACE;
  border: 1px solid #0C9ACE !important;
}

@media (any-hover: hover) {
  .btn2-line a:hover,
  .wp-block-button.is-style-btn2-line .wp-block-button__link:hover {
    border-color: #00A866;
    background: #00A866;
    color: #fff;
  }
}

.block-editor-block-styles__item-preview .wp-block-button.is-style-btn1-white-sm .wp-block-button__link {
  font-size: 14px;
  gap: 6px;
}
.block-editor-block-styles__item-preview .wp-block-button.is-style-btn1-white-sm .wp-block-button__link::after {
  width: 28px;
  height: 28px;
  background-size: 20px 20px;
}

/* 四角ボタン */
.block-editor-block-styles__item-preview .wp-block-button.is-style-btn1-blue .wp-block-button__link {
  font-size: 14px;
  gap: 6px;
}
.block-editor-block-styles__item-preview .wp-block-button.is-style-btn1-blue .wp-block-button__link::after {
  width: 28px;
  height: 28px;
  background-size: 10px 10px;
}
.wp-block-button.is-style-btn3-blue .wp-block-button__link,
.wp-block-button.is-style-btn3-white .wp-block-button__link,
.btn3-blue a,
.btn3-white a {
  display: flex;
  align-items: center;
  justify-content: space-between; /* 文字は左、アイコンは右 */
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 23px 20px 23px 40px;
  font-size: 22px;
  /* font-size: clamp(16px, calc(22 / 1440 * 100vw), 22px); */
  font-weight: 300;
  line-height: 1.4;
  white-space: nowrap;
  box-sizing: border-box;
  border-radius: 10px !important;
}

.wp-block-button.is-style-btn3-blue .wp-block-button__link::after,
.wp-block-button.is-style-btn3-white .wp-block-button__link::after,
.btn3-blue a::after,
.btn3-white a::after {
  content: "";
  flex: 0 0 auto;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 22px 22px;
  transition: transform .2s ease, background-position .2s ease;
}

@media screen and (max-width: 786px) {
 .wp-block-button.is-style-btn3-blue .wp-block-button__link,
.wp-block-button.is-style-btn3-white .wp-block-button__link,
.btn3-blue a,
.btn3-white a {
  height: 66px;
  padding: clamp(16px, calc(18 / 478 * 100vw), 18px) clamp(12px, calc(24 / 478 * 100vw), 24px);
  /* font-size: clamp(15px, calc(16 / 478 * 100vw), 16px); */
  font-size: 16px;
}
  
}
@media (any-hover: hover) {
.wp-block-button.is-style-btn3-white .wp-block-button__link:hover {
  background: #fff;
  background: #fff;
}
/* ホバー時に矢印を右にスライド */
.wp-block-button.is-style-btn3-white .wp-block-button__link:hover::after,
.btn3-blue a:hover::after,
.btn3-white a:hover::after {
  transform: translateX(4px);  /* 好きなだけpx増やしてOK */
}
}
/* ========== 四角 青（塗り＋白矢印） ========== */
.wp-block-button.is-style-btn3-blue .wp-block-button__link,
.btn3-blue a {
  background: #0C9ACE;
  color: #fff;
}

.wp-block-button.is-style-btn3-blue .wp-block-button__link::after,
.btn3-blue a::after {
  width: 15px;
  height: 15px;
  margin-right: 8px;
    background: url(/wp-content/themes/understrap-child-1.2.01/img/arrow-white.png) no-repeat center center / contain;
  
}

@media (any-hover: hover) {
  .wp-block-button.is-style-btn3-blue .wp-block-button__link:hover,
  .btn3-blue a:hover {
    background: #00A866;
    color: #fff;
  }
  .wp-block-button.is-style-btn3-blue .wp-block-button__link:hover::after,
  .btn3-blue a:hover::after {
    transform: translateX(4px);
  }
}

/* ========== 四角 白（白地＋水色枠＋水色矢印） ========== */
.wp-block-button.is-style-btn3-white .wp-block-button__link,
.btn3-white a {
  background: #fff;
  color: #0C9ACE !important; 
  border: 1px solid currentColor !important;
}

.wp-block-button.is-style-btn3-white .wp-block-button__link::after,
.btn3-white a::after {
  transition: all 0.3s ease;
    width: 32px;
  height: 32px;
    background: url(/wp-content/themes/understrap-child-1.2.01/img/arrow-blue.png) no-repeat center center / contain;
}


/* キーボード操作の見やすいフォーカス */
.wp-block-button.is-style-btn3-blue .wp-block-button__link:focus-visible,
.wp-block-button.is-style-btn3-white .wp-block-button__link:focus-visible,
.btn3-blue a:focus-visible,
.btn3-white a:focus-visible {
  outline: 3px solid rgba(12,154,206,.35);
  outline-offset: 2px;
}

/* エディタのスタイルプレビューで巨大化しないように微調整 */
.block-editor-block-styles__item-preview .wp-block-button.is-style-btn3-blue .wp-block-button__link,
.block-editor-block-styles__item-preview .wp-block-button.is-style-btn3-white .wp-block-button__link {
  font-size: 14px;
  padding: 10px 12px;
  gap: 8px;
  border-radius: 12px;
}
.block-editor-block-styles__item-preview .wp-block-button.is-style-btn3-blue .wp-block-button__link::after,
.block-editor-block-styles__item-preview .wp-block-button.is-style-btn3-white .wp-block-button__link::after {
  width: 16px;
  height: 16px;
  background-size: 16px 16px;
}

/* （任意）外部リンク版：.wp-block-button に .out-link が付いているときアイコン差し替え
※ icon-external-*.png がある前提。なければ削除してください。 */
.wp-block-button.out-link.is-style-btn3-blue .wp-block-button__link::after,
  .wp-block-button.out-link.is-style-btn3-white .wp-block-button__link::after {
      width: 24px;
  height: 24px;
  margin-right: 4px;
   background-color: currentColor; /* currentColorに追従させたいなら currentColor に変えてOK */
  -webkit-mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
  <path fill='%23000' d='M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3zM5 5h7v2H7v10h10v-5h2v7H5V5z'/>\
</svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
  <path fill='%23000' d='M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3zM5 5h7v2H7v10h10v-5h2v7H5V5z'/>\
</svg>") no-repeat center / contain;

}


/* === PDF案内ボックス（グループ用） === */
.wp-block-buttons .wp-block-button.is-style-pdf-guide-box{
  background:#F7F8CC;
  padding:18px;
  border-radius:10px;
  display:inline-block; /* 背景/余白を効かせる */
}

/* ===== PDFボタン ===== */
.wp-block-buttons .wp-block-button.is-style-btn-pdf-guide > .wp-block-button__link{
  margin:0 !important;
  background:#fff !important;
  color:#333 !important;
  min-width:300px;
  max-width:100%;

  border:2px solid #5BB94E !important;
  border-radius:12px !important;

  padding:12px 48px 12px 16px !important;
  display:inline-flex;
  align-items:center;
  justify-content: center;
  gap:10px;

  font-weight:500;
  text-decoration:none;
  position:relative;
}

/* 右にPDFアイコン */
.wp-block-buttons .wp-block-button.is-style-btn-pdf-guide > .wp-block-button__link::after{
  content:"";
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  width:24px;
  height:24px;
  background:url("/wp-content/uploads/2026/02/pdf-icon.png") no-repeat center / contain;
}

/* hover */
@media (any-hover:hover){
  .wp-block-buttons .wp-block-button.is-style-btn-pdf-guide > .wp-block-button__link:hover{
    background:#5BB94E !important;
    color:#fff !important;
  }
}

/* ============================
   Heading 注意書き
============================ */
/* 水色背景 */
.h3-blue-bg,
.wp-block-heading.is-style-h3-blue-bg {
  align-items: start;
  margin-top: 40px;
  color: #0C9ACE;
  font-weight: 600;
  line-height: calc(32 / 22);
  padding: 10px 26px;
  background: #eaf9ff;
  border-radius: 10px;
}
.h3-blue-bg::before,
.wp-block-heading.is-style-h3-blue-bg::before {
  display: none;
}


/* 黄緑背景 */
.h3-green-bg,
.wp-block-heading.is-style-h3-green-bg {
  align-items: start;
  margin-top: 40px;
  color: #0C9ACE;
  font-weight: 600;
  line-height: calc(32 / 22);
  padding: 10px 26px;
  background: rgba(72, 195, 120, 0.1);
  border-radius: 10px;
}
.h3-green-bg::before,
.wp-block-heading.is-style-h3-green-bg::before {
  display: none;
}

/* 注意書き　ピンク */
.notes-pink,
.wp-block-heading.is-style-notes-pink {
  align-items: start;
  margin-top: 40px;
  color: #E84336;
  font-weight: 600;
  line-height: calc(32 / 22);
  padding: 10px 26px;
  background: rgba(232, 67, 54, 0.05);
  border-radius: 10px;
}
.notes-pink::before,
.wp-block-heading.is-style-notes-pink::before {
  display: none;
}
/* 注意書き　赤 */
.notes-red,
.wp-block-heading.is-style-notes-red{
  align-items: start;
  margin-top: 40px;
  color: #fff;
  font-weight: 600;
  line-height: calc(32 / 22);
  padding: 10px 26px;
  background: #E84336;
  border-radius: 10px;
}
.notes-red::before,
.wp-block-heading.is-style-notes-red::before {
  display: none;
}
/* 注意書き　ビックリマーク */
.request-title,
.is-style-notes-mark {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: start;
  gap: 16px;
  color: #E84336;
  background: none;

  &::before {
    content: "";
    display: block;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: url(/wp-content/themes/understrap-child-1.2.01/img/request-title.png) no-repeat center center / contain;
  }
}
.request-title.has-text-align-center,
.is-style-notes-mark.has-text-align-center {
  justify-content: center;

}
   /* 見出しデザイン01（旗＋波線） */
.wp-block-heading.is-style-h2-wave {
  margin-top: 90px;
  margin-bottom: 50px;
  font-size: 34px;
  font-weight: 500;
  line-height: calc(49 / 34);
  color: #0C9ACE;
  padding: 0 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;

}

/* 上の旗アイコン */
.wp-block-heading.is-style-h2-wave::before {
  content: "";
  width: 38px;
  height: 38px;
  background: url("/wp-content/themes/understrap-child-1.2.01/img/h2-logo-red.png") no-repeat center / contain;
}

/* 下の波線＋右キャラ */
.wp-block-heading.is-style-h2-wave::after {
  content: "";
  width: 100%;
  height: 100px;
  margin-top: 0px;
  display: block;
  position: absolute;
  bottom: -20px;

  background:
    url("/wp-content/themes/understrap-child-1.2.01/img/h2-wave.png") repeat-x center bottom / auto 6px;

  pointer-events: none;
  z-index: 5;
}
@media (max-width: 767px) {
  .wp-block-heading.is-style-h2-wave {
    font-size: 22px;
            margin-top: 2rem;
        /* margin-bottom: 0.8rem; */
  }
  .wp-block-heading.is-style-h2-wave::before {
    width: 26px;
    height: 17px;
  }
  .wp-block-heading.is-style-h2-wave::after {
  content: "";
  width: 100%;
  height: 100px;
  margin-top: 0px;
  display: block;
  position: absolute;
  bottom: -20px;

  background:
    url("/wp-content/themes/understrap-child-1.2.01/img/h2-wave.png") repeat-x center bottom / auto 4px;

  pointer-events: none;
  z-index: 5;
}
}

   /* 見出しデザイン01（旗＋波線＋キャラ） */
.wp-block-heading.is-style-h2-wave-flag {
  margin-top: 90px;
  margin-bottom: 50px;
  font-size: 34px;
  font-weight: 500;
  line-height: calc(49 / 34);
  color: #0C9ACE;
  padding: 0 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;

}

/* 上の旗アイコン */
.wp-block-heading.is-style-h2-wave-flag::before {
  content: "";
  width: 38px;
  height: 38px;
  background: url("/wp-content/themes/understrap-child-1.2.01/img/h2-logo-red.png") no-repeat center / contain;
}

/* 下の波線＋右キャラ */
.wp-block-heading.is-style-h2-wave-flag::after {
  content: "";
  width: 100%;
  height: 100px;
  margin-top: 0px;
  display: block;
  position: absolute;
  bottom: -20px;

  background:
    url("/wp-content/themes/understrap-child-1.2.01/img/h2-funeco.png") no-repeat right 12px bottom 5px / auto 55px,
    url("/wp-content/themes/understrap-child-1.2.01/img/h2-wave.png") repeat-x center bottom / auto 6px;

  pointer-events: none;
  z-index: 5;
}
@media (max-width: 767px) {
  .wp-block-heading.is-style-h2-wave-flag {
    font-size: 22px;
            margin-top: 2rem;
        /* margin-bottom: 0.8rem; */
  }
  .wp-block-heading.is-style-h2-wave-flag::before {
    width: 26px;
    height: 17px;
  }
  .wp-block-heading.is-style-h2-wave-flag::after {
  content: "";
  width: 100%;
  height: 100px;
  margin-top: 0px;
  display: block;
  position: absolute;
  bottom: -20px;

  background:
    url("/wp-content/themes/understrap-child-1.2.01/img/h2-funeco.png") no-repeat right 0px bottom 3px / auto 40px,
    url("/wp-content/themes/understrap-child-1.2.01/img/h2-wave.png") repeat-x center bottom / auto 4px;

  pointer-events: none;
  z-index: 5;
}
}

/* ============================
   Paragraph（テキスト）用スタイル
============================ */
/* 文字小 */
p.wp-block-paragraph.is-style-text-small,
p.wp-block-paragraph.is-style-text-small a {
  font-size: 14px;
  line-height: 1.4;
}

/* 水色背景（テキスト） */
.is-style-text-blue-bg {
  color: #0C9ACE;
  font-weight: 500;
  line-height: 1.8;
  padding: 10px 18px;
  background: #eaf9ff;
  border-radius: 8px;
}


/* 黄緑背景（テキスト） */
.is-style-text-green-bg {
  color: #0C9ACE;
  font-weight: 500;
  line-height: 1.8;
  padding: 10px 18px;
  background: rgba(72, 195, 120, 0.1);
  border-radius: 8px;
}


/* 注意書き ピンク（テキスト） */
.is-style-text-notes-pink {
  color: #E84336;
  font-weight: 500;
  line-height: 1.8;
  padding: 10px 18px;
  background: rgba(232, 67, 54, 0.05);
  border-radius: 8px;
}


/* 注意書き 赤（テキスト） */
.is-style-text-notes-red {
  color: #fff;
  font-weight: 500;
  line-height: 1.8;
  padding: 10px 18px;
  background: #E84336;
  border-radius: 8px;
}

/* 注意書き ビックリマーク（テキスト） */
.is-style-text-notes-mark {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  color: #E84336;
}
.is-style-text-notes-mark::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: url(/wp-content/themes/understrap-child-1.2.01/img/request-title.png) no-repeat center center / contain;
}
.is-style-text-notes-mark.has-text-align-center {
  justify-content: center;
}


/* ---------------------------
  List 共通（丸付きUL）
--------------------------- */
ul.wp-block-list.is-style-list-lightblue,
ul.wp-block-list.is-style-list-red,
ul.wp-block-list.is-style-list-green,
ul.wp-block-list.is-style-list-lightblue-small,
ul.wp-block-list.is-style-list-red-small,
ul.wp-block-list.is-style-list-green-small{
  list-style: none;
  margin-top: 1rem;
  padding-left: 0; /* 自前で余白を作る */
}

ul.wp-block-list.is-style-list-lightblue > li,
ul.wp-block-list.is-style-list-red > li,
ul.wp-block-list.is-style-list-green > li,
ul.wp-block-list.is-style-list-lightblue-small > li,
ul.wp-block-list.is-style-list-red-small > li,
ul.wp-block-list.is-style-list-green-small > li{
  position: relative;
  font-weight: 300;
  line-height: calc(28 / 16);
  padding-left: 19px; /* ●(10px) + gap(9px) */
}

/* 行間とサイズ：小 */
ul.wp-block-list.is-style-list-lightblue-small > li,
ul.wp-block-list.is-style-list-red-small > li,
ul.wp-block-list.is-style-list-green-small > li{
  font-size: 14px;
  line-height: 1.6; /* 1.4だと詰まりやすいので推奨は1.6 */
}

/* 丸の共通形 */
ul.wp-block-list.is-style-list-lightblue > li::before,
ul.wp-block-list.is-style-list-red > li::before,
ul.wp-block-list.is-style-list-green > li::before,
ul.wp-block-list.is-style-list-lightblue-small > li::before,
ul.wp-block-list.is-style-list-red-small > li::before,
ul.wp-block-list.is-style-list-green-small > li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;              /* 文字サイズに対して良い位置 */
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

/* 色だけ分ける */
ul.wp-block-list.is-style-list-lightblue > li::before,
ul.wp-block-list.is-style-list-lightblue-small > li::before{
  background: #0C9ACE;
}

ul.wp-block-list.is-style-list-red > li::before,
ul.wp-block-list.is-style-list-red-small > li::before{
  background: #E84336;
}

ul.wp-block-list.is-style-list-green > li::before,
ul.wp-block-list.is-style-list-green-small > li::before{
  background: #48C378;
}

/* 行間（li間の余白） */
ul.wp-block-list.is-style-list-lightblue > li + li,
ul.wp-block-list.is-style-list-red > li + li,
ul.wp-block-list.is-style-list-green > li + li,
ul.wp-block-list.is-style-list-lightblue-small > li + li,
ul.wp-block-list.is-style-list-red-small > li + li,
ul.wp-block-list.is-style-list-green-small > li + li{
  margin-top: 0.5rem;
}

/* ---------------------------
  List（番号付きOL）は今まで通り（marker色だけ）
--------------------------- */
ol.wp-block-list.is-style-list-lightblue,
ol.wp-block-list.is-style-list-red,
ol.wp-block-list.is-style-list-green,
ol.wp-block-list.is-style-list-lightblue-small,
ol.wp-block-list.is-style-list-red-small,
ol.wp-block-list.is-style-list-green-small{
  margin-top: 1rem;
  padding-left: 1.2rem;
}

ol.wp-block-list.is-style-list-lightblue > li::marker,
ol.wp-block-list.is-style-list-lightblue-small > li::marker{ color: #0C9ACE; }

ol.wp-block-list.is-style-list-red > li::marker,
ol.wp-block-list.is-style-list-red-small > li::marker{ color: #E84336; }

ol.wp-block-list.is-style-list-green > li::marker,
ol.wp-block-list.is-style-list-green-small > li::marker{ color: #48C378; }

ol.wp-block-list.is-style-list-lightblue-small > li,
ol.wp-block-list.is-style-list-red-small > li,
ol.wp-block-list.is-style-list-green-small > li{
  font-size: 14px;
  line-height: 1.6;
}

ol.wp-block-list.is-style-list-lightblue > li + li,
ol.wp-block-list.is-style-list-red > li + li,
ol.wp-block-list.is-style-list-green > li + li,
ol.wp-block-list.is-style-list-lightblue-small > li + li,
ol.wp-block-list.is-style-list-red-small > li + li,
ol.wp-block-list.is-style-list-green-small > li + li{
  margin-top: 0.5rem;
}


/* ==============================
   メニューリスト（水色背景インラインブロック）
   ============================== */

/* メニュー項目の並び方 */
ul.wp-block-list.is-style-list-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;   /* 行間 / 横の余白 */
}

/* 各メニュー項目の見た目（タグ風） */
ul.wp-block-list.is-style-list-menu > li {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 9999px;
  background: #E6F5FB;        /* 薄い水色背景 */
  color: #1A1A1A;
  line-height: 1.6;
  font-weight: 300;
}
@media (min-width: 768px) {
  /* li を 2カラム グリッドにする：
     1列目＝タイトル、2列目＝メニューリスト */
  ul.wp-block-list.is-style-list-menu-title > li {
    display: grid;
    grid-template-columns: 9em 1fr;  /* ★タイトル列の幅はここで調整 */
    column-gap: 1rem;
    align-items: flex-start;
    color: #0C9ACE;        /* タイトルの色 */
  }

  /* 右側のメニューリスト（2列目） */
  ul.wp-block-list.is-style-list-menu-title
  > li
  > ul.wp-block-list.is-style-list-menu {
    margin: 0;
    color: #1A1A1A;        /* 中の文字色は黒系に戻す */
  }
}

/* タブ大 */
.page_tab,
ul.wp-block-list.is-style-tabs-large,
ol.wp-block-list.is-style-tabs-large {
  display: flex;
  gap: clamp(10px, calc(20 / 1440 * 100vw), 20px);
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
    margin-bottom: 30px;
}

.page_tab li,
.wp-block-list.is-style-tabs-large > li {
  display: table;
  flex: 1 1 0;
}

.page_tab li a,
.wp-block-list.is-style-tabs-large > li > a {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  height: clamp(60px, calc(90 / 1440 * 100vw), 90px);
  font-size: clamp(14px, calc(18 / 1440 * 100vw), 18px);
  font-weight: 400;
  color: #48c378;
  padding: 8px clamp(10px, calc(20 / 1440 * 100vw), 20px);
  border: 1px solid currentColor;
  border-radius: clamp(10px, calc(20 / 1440 * 100vw), 20px) !important;
  background: #fff;
  transition: background .2s ease, color .2s ease, border-color .2s ease;

  @media (any-hover: hover) {
    &:hover {
      background: #48c378 !important;
      color: #fff !important;
      border: 1px solid #48c378 !important;
    }
  }
}

/* アクティブ状態（.is-active を li/ a どちらに付けても効くよう両方対応） */
.wp-block-list.is-style-tabs-large > li:first-child > a {
  background: #48c378 !important;
  color: #fff !important;
  border: 1px solid #48c378 !important;
  position: relative;
}
.wp-block-list.is-style-tabs-large > li:first-child > a::after {
  content: "";
  width: calc(35 / 195 * 100%);
  height: 16px;
  background: #48c378;
  position: absolute;
  bottom: -12px;
  left: 50%;
  translate: -50% 0;
  clip-path: polygon(0 0, 50% 100%, 100% 0);
}

/* レスポンシブ（小さい時は2列並び） */
@media (max-width: 767px) {
  .page_tab,
  .wp-block-list.is-style-tabs-large {
    flex-wrap: wrap !important;
    gap: 9px 5px;
  }
  .page_tab li,
  .wp-block-list.is-style-tabs-large > li {
    flex-basis: calc(50% - 10px) !important;
    max-width: calc(50% - 10px);
  }
  .page_tab li a,
  .wp-block-list.is-style-tabs-large > li > a {
    border-radius: 10px !important;
    height: auto;
    font-size: 12px;
    padding: 10px;
  }
  .page_tab .is-active::after,
  .wp-block-list.is-style-tabs-large > li.is-active > a::after,
  .wp-block-list.is-style-tabs-large > li > a.is-active::after {
    height: 12px;
    bottom: -8px;
  }
}

/* 外部リンクアイコン */
.is-style-out-link a,
.wp-block-list.is-style-tabs-large-outlink > li > a {
  position: relative;
}
.is-style-out-link a::after,
.wp-block-list.is-style-tabs-large-outlink > li > a::after {
  content: "";
  vertical-align: bottom;
  display: inline-block;
  width: 20px;
  height: 20px;
  transform: translateY(0.12em);
  background-color: #a6ddf0; /* currentColorに追従させたいなら currentColor に変えてOK */
  -webkit-mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
  <path fill='%23000' d='M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3zM5 5h7v2H7v10h10v-5h2v7H5V5z'/>\
</svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
  <path fill='%23000' d='M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3zM5 5h7v2H7v10h10v-5h2v7H5V5z'/>\
</svg>") no-repeat center / contain;
}


/* タブ大 ページ切り替え */
/* body:not(.wp-admin) .wp-block-list.is-style-tabs-large-page:first-of-type {
  position:sticky;
  top: 120px;
    transition:transform .25s ease, box-shadow .2s ease;
  will-change:transform;
} */
body:not(.wp-admin) .wp-block-list.is-style-tabs-large-page:first-of-type{
  position: sticky;
  top: var(--tabs-top, 120px);
  transition: top .25s ease, box-shadow .2s ease;
  will-change: top;
}

.wp-block-list.is-style-tabs-large-page.is-pinned{
  transform:translateY(0);
}
.wp-block-list.is-style-tabs-large-page.is-hidden{
  transform: translateY(calc(-100% - var(--sticky-top, 0px) - 13px));
}

.wp-block-list.is-style-tabs-large-page{
  z-index: 99;
  display:flex;
  flex-wrap:nowrap;
  list-style:none;
  margin:0 0 30px;
  padding:0;
  height:66px;
  overflow-x:auto;
  overflow-y: hidden;
  &::-webkit-scrollbar,
  &::-webkit-scrollbar-thumb,
  &::-webkit-scrollbar-track {
    display: none;
  }
  
  border:1px solid #48C378;
  border-radius:100vmax;
  box-shadow:0 3px 6px rgba(0,0,0,.1);
  background:#fff;
}
.wp-block-list.is-style-tabs-large-page .tab-slider{
  position:absolute;
  top:0px;
  left:0;
  width:0;
  height:66px;
  background:#48C378;
  border-radius:100vmax;
  z-index:0;
  transition:left .25s ease,width .25s ease;
  box-shadow:0 3px 6px rgba(0,0,0,.1);
  box-shadow: inset 0 0 0 1px #48C378, 0 3px 6px rgba(0,0,0,.1);
}
.wp-block-list.is-style-tabs-large-page>li{
  display:table;
  flex:0 0 auto;
  height:100%;
  z-index:1;
  flex:1 1 0;
  min-width:160px;
}
.wp-block-list.is-style-tabs-large-page>li>a{
  display:table-cell;
  vertical-align:middle;
  text-align:center;
  padding:0 20px;
  font-size:16px;
  font-weight: 400;
  color:#48C378;
  border-radius:100vmax;
  text-decoration:none;
  -webkit-tap-highlight-color:transparent;
  transition:background .2s ease,color .2s ease;
  position:relative;
  z-index:1;
  height:66px;
}

.wp-block-list.is-style-tabs-large-page>li.is-active>a,
.wp-block-list.is-style-tabs-large-page>li>a.is-active{
  height:66px;
  width: 100%;
  background:#48C378;
  border-radius:100vmax;
  color:#fff;
  transition: all .3s ease;
}
@media (max-width:767px){
  .wp-block-list.is-style-tabs-large-page>li.is-active>a,
.wp-block-list.is-style-tabs-large-page>li>a.is-active {
    height:51px;
}
  .wp-block-list.is-style-tabs-large-page:first-of-type {
    top:60px;
  }
  .wp-block-list.is-style-tabs-large-page{height:51px}
  .wp-block-list.is-style-tabs-large-page .tab-slider{height:50px}
  .wp-block-list.is-style-tabs-large-page>li>a{font-size:13px;padding:0 14px;height:50px}
}

/* タブ小 */
.is-tabs .tabs__nav,
.wp-block-group.is-style-tabs-container .wp-block-list.is-style-tabs-small,
.wp-block-list.is-style-tabs-small {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 24px 0 16px;
  flex-wrap: wrap;
}

.is-tabs .tabs__nav > li,
.wp-block-list.is-style-tabs-small > li {
  flex: 1 1 0;
  max-width: 180px;
}

.is-tabs .tabs__nav > li > a,
.wp-block-list.is-style-tabs-small > li > a {
  display: block;
  width: 100%;
  cursor: pointer;
  padding: 12px 20px 12px clamp(4px, calc(12 / 1440 * 100vw), 12px);
  border: 1px solid currentColor;
  border-radius: 100px;
  background: #fff;
  color: #0C9ACE !important;
  font-weight: 600; /* $font-weight-medium 相当 */
  text-align: center;
  font-size: clamp(12px, calc(20 / 1440 * 100vw), 20px);
  line-height: 1;
  position: relative;
  transition: all 0.3s ease;

  &::after {
    border: 0 !important;
    content: "";
    display: inline-block;
    width: clamp(14px, calc(20 / 1440 * 100vw), 20px);
    height: clamp(14px, calc(20 / 1440 * 100vw), 20px);
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
  <polyline points='6 9 12 15 18 9' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/>\
</svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
  <polyline points='6 9 12 15 18 9' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/>\
</svg>") no-repeat center / contain;
    vertical-align: middle;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    right: clamp(9px, calc(20 / 1440 * 100vw), 20px);
    translate: 0 -50%;
  }
}

.is-tabs .tabs__nav > li > a:hover,
.is-tabs .tabs__nav > li > a:focus-visible,
.wp-block-list.is-style-tabs-small > li > a:hover,
.wp-block-list.is-style-tabs-small > li > a:focus-visible {
  outline: none;
  background: #48c378;
  color: #fff !important;
}

.is-tabs .tabs__nav > li > a[aria-selected="true"],
.wp-block-list.is-style-tabs-small > li > a[aria-selected="true"] {
  background: #48c378;
  color: #fff !important;
}

/* ============================
   画像
============================ */
.wp-block-image.is-style-radius-10 img {
  border-radius: 10px;
  overflow: hidden;
}
.wp-block-image.is-style-radius-20 img {
  border-radius: 20px;
  overflow: hidden;
}

/* ============================
   テーブル
============================ */
/* デフォルト 水色文字 */

.is-style-tbl-black th {
  color: #0C9ACE !important;
}
.is-style-tbl-black td {
  color: #0C9ACE !important;
}

@media screen and (max-width: 640px) {
/* 横スクロール */
  .wp-block-flexible-table-block-table.is-style-tbl-scroll {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable both-edges;
  }

  /* テーブル側の基本 */
  .wp-block-flexible-table-block-table.is-style-tbl-scroll table {
    border-collapse: separate !important;
    border-spacing: 0;
    width: max-content;
    min-width: 100%;
  }
  .wp-block-flexible-table-block-table.is-style-tbl-scroll td {
    min-width: calc(84 / 375 * 100vw) !important;
  }
  .wp-block-flexible-table-block-table.is-style-tbl-scroll tr > :first-child {
    min-width: calc(120 / 375 * 100vw) !important;
    position: sticky;
    left: 0;
    z-index: 2;
    box-shadow: 5px 0 0 #fff, 6px 0 0 #a6ddf0;
  }
.wp-block-flexible-table-block-table.is-style-tbl-scroll tr > :nth-child(2) {
  padding-left: calc(7px + 5px);
}

  .wp-block-flexible-table-block-table.is-style-tbl-scroll::after {
    content: "横スクロール";
    display: inline-block;
    position: absolute;
    text-align: center;
    width: 90px;
    height: 90px;
    right: 25%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: $font-weight-medium;
    line-height: 2;
    color: #fff;
    background: rgb(123, 131, 134, 0.6);
    padding: 45px 0.55rem 0.35rem 0.55rem;
    border-radius: 10px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s;
  }
  .wp-block-flexible-table-block-table.is-style-tbl-scroll.is-scroll-hint::after {
    opacity: 1; /* JSで一時的に付けるクラス */
  }

  .wp-block-flexible-table-block-table.is-style-tbl-scroll::before {
    content: "";
    position: absolute;
    right: 24%;
    top: calc(50% - 25px); /* バッジ内の上部に配置 */
    transform: translateY(-50%);
    transform: translateX(-50%);
    width: 48px;
    height: 15px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='48' height='18' viewBox='0 0 48 18' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'>\
<polyline points='14 3 6 9 14 15'/>\
<polyline points='34 3 42 9 34 15'/>\
</svg>");
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s;
    z-index: 2;
  }
  .wp-block-flexible-table-block-table.is-style-tbl-scroll.is-scroll-hint::before {
    opacity: 1;
  }
}
/* th 2列 */
@media screen and (max-width: 640px) {

  .wp-block-flexible-table-block-table.is-style-tbl-scroll-2fix {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable both-edges;
  }

  .wp-block-flexible-table-block-table.is-style-tbl-scroll-2fix table {
    border-collapse: separate !important;
    border-spacing: 0;
    width: max-content;
    min-width: 100%;
  }

  /* ▼ 1列目・2列目の想定幅（既存と揃える） */
  .wp-block-flexible-table-block-table.is-style-tbl-scroll-2fix tr > :first-child {
    min-width: calc(100 / 375 * 100vw) !important;
  }
  .wp-block-flexible-table-block-table.is-style-tbl-scroll-2fix tr > :nth-child(2) {
    min-width: calc(80 / 375 * 100vw) !important;
  }
  .wp-block-flexible-table-block-table.is-style-tbl-scroll-2fix td {
    min-width: calc(100 / 375 * 100vw) !important;
  }

  /* ▼ 1列目固定 */
  .wp-block-flexible-table-block-table.is-style-tbl-scroll-2fix tr > :first-child {
    position: sticky;
    left: 0;
    z-index: 3; /* 一番上 */
  }

  /* ▼ 2列目固定（left は 1列目幅ぶん） */
  .wp-block-flexible-table-block-table.is-style-tbl-scroll-2fix tr > :nth-child(2) {
    position: sticky;
    left: calc(100 / 375 * 100vw); /* ← 1列目の min-width と一致させる */
    z-index: 2;
    background: #fff; /* 透け防止 */
    box-shadow: 5px 0 0 #fff, 6px 0 0 #a6ddf0; /* 境界線を2列目の右へ */
  }

  /* 3列目以降が固定列の下に潜らないようにしたいなら少し余白 */
  .wp-block-flexible-table-block-table.is-style-tbl-scroll-2fix tr > :nth-child(3) {
    padding-left: calc(7px + 5px);
  }
}

/* ============================
   Grid / Layout Grid スタイル
============================ */

/* PC3列 / SP2列 ===========================*/
.wp-block-group.is-layout-grid.is-style-grid-3pc-2sp {
  display: grid;
  gap: var(--wp--style--block-gap, 1rem);
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* デフォルト（SP）2列 */
}

/* PC（ブレイクポイントはお好みで調整） */
@media (min-width: 960px) {
  .wp-block-group.is-layout-grid.is-style-grid-3pc-2sp {
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* PC 3列 */
  }
}

/* 子要素の余白リセット（必要なら） */
.wp-block-group.is-layout-grid.is-style-grid-3pc-2sp > * {
  margin: 0;
}
.wp-block-jetpack-layout-grid.is-style-grid-3pc-2sp {
  display: grid !important;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 各カラムの位置指定をリセット（Jetpackの columnX-*** を無効化） */
.wp-block-jetpack-layout-grid.is-style-grid-3pc-2sp > .wp-block-jetpack-layout-grid-column {
  margin: 0;
  grid-column: auto !important;
  grid-row: auto !important;
}

/* PC（ブレイクポイントはお好みで調整） */
@media (min-width: 960px) {
  .wp-block-jetpack-layout-grid.is-style-grid-3pc-2sp {
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* PC 3列 */
  }
}
/* 親の block-editor-block-list__layout を横並びにする */
.editor-styles-wrapper
  .wp-block[data-type="jetpack/layout-grid"][class*="is-style-grid-3pc-2sp"]
  .block-editor-inner-blocks
  > .block-editor-block-list__layout {
  display: flex !important;
  flex-wrap: wrap;
  gap: 1rem;
}

/* 各カラムブロック（jetpack/layout-grid-column）の幅を指定 */
/* SP：2列 */
.editor-styles-wrapper
  .wp-block[data-type="jetpack/layout-grid"][class*="is-style-grid-3pc-2sp"]
  .block-editor-inner-blocks
  > .block-editor-block-list__layout
  > .wp-block[data-type="jetpack/layout-grid-column"] {
  flex-basis: 45% !important;
  max-width: 45%;
}

/* PC：3列 */
@media (min-width: 960px) {
  .editor-styles-wrapper
    .wp-block[data-type="jetpack/layout-grid"][class*="is-style-grid-3pc-2sp"]
    .block-editor-inner-blocks
    > .block-editor-block-list__layout
    > .wp-block[data-type="jetpack/layout-grid-column"] {
    flex-basis: 30% !important;
    max-width: 30%;
  }
}

/* 中の .wp-block-jetpack-layout-grid-column の余白リセット（任意） */
.editor-styles-wrapper
  .wp-block[data-type="jetpack/layout-grid"][class*="is-style-grid-3pc-2sp"]
  .wp-block-jetpack-layout-grid-column {
  margin: 0;
}

/* ============================
   Grid / Layout Grid スタイル
   PC4列 / （〜991px）2列
============================ */

/* core/group 用（フロント） */
.wp-block-group.is-layout-grid.is-style-grid-4pc-2sp {
  display: grid;
  gap: var(--wp--style--block-gap, 1rem);
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* SP/TAB：2列（〜991px） */
}

/* PC：4列（992px〜） */
@media (min-width: 992px) {
  .wp-block-group.is-layout-grid.is-style-grid-4pc-2sp {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* 子要素の余白リセット（必要なら） */
.wp-block-group.is-layout-grid.is-style-grid-4pc-2sp > * {
  margin: 0;
}

/* Jetpack Layout Grid 用（フロント） */
.wp-block-jetpack-layout-grid.is-style-grid-4pc-2sp {
  display: grid !important;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* SP/TAB：2列（〜991px） */
}

/* Jetpack の columnX-*** を無効化 */
.wp-block-jetpack-layout-grid.is-style-grid-4pc-2sp
  > .wp-block-jetpack-layout-grid-column {
  margin: 0;
  grid-column: auto !important;
  grid-row: auto !important;
}

/* PC：4列（992〜） */
@media (min-width: 992px) {
  .wp-block-jetpack-layout-grid.is-style-grid-4pc-2sp {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

   /* 管理画面（ブロックエディタ）用 */

/* 親：block-editor-block-list__layout を横並びに */
.editor-styles-wrapper
  .wp-block[data-type="jetpack/layout-grid"][class*="is-style-grid-4pc-2sp"]
  .block-editor-inner-blocks
  > .block-editor-block-list__layout {
  display: flex !important;
  flex-wrap: wrap;
  gap: 1rem;
}

/* SP/TAB（〜991px）：2列 */
.editor-styles-wrapper
  .wp-block[data-type="jetpack/layout-grid"][class*="is-style-grid-4pc-2sp"]
  .block-editor-inner-blocks
  > .block-editor-block-list__layout
  > .wp-block[data-type="jetpack/layout-grid-column"] {
  flex-basis: 48% !important;
  max-width: 48%;
}

/* PC（992px〜）：4列 */
@media (min-width: 992px) {
  .editor-styles-wrapper
    .wp-block[data-type="jetpack/layout-grid"][class*="is-style-grid-4pc-2sp"]
    .block-editor-inner-blocks
    > .block-editor-block-list__layout
    > .wp-block[data-type="jetpack/layout-grid-column"] {
    flex-basis: 23% !important;
    max-width: 23%;
  }
}

/* 中の余白リセット */
.editor-styles-wrapper
  .wp-block[data-type="jetpack/layout-grid"][class*="is-style-grid-4pc-2sp"]
  .wp-block-jetpack-layout-grid-column {
  margin: 0;
}
/* ============================
   背景色付きセクション用スタイル
============================ */
.sub-section-blue,
.is-style-sub-section-blue {
  padding-top: 60px;
  padding-bottom: 60px;
  background: rgb(12, 154, 206);
  box-shadow: 0 0 0 100vmax #0C9ACE;
  clip-path: inset(0 -100vmax);
}

.sub-section-lightblue,
.is-style-sub-section-lightblue {
  padding-top: 60px;
  padding-bottom: 60px;
  background: rgb(166, 221, 240,0.1);
  box-shadow: 0 0 0 100vmax rgb(166, 221, 240,0.1);
  clip-path: inset(0 -100vmax);
}

.sub-section-lightblue2,
.is-style-sub-section-lightblue2 {
  padding-top: 60px;
  padding-bottom: 60px;
  background: rgb(12, 154, 206,0.1);
  box-shadow: 0 0 0 100vmax rgb(12, 154, 206,0.1);
  clip-path: inset(0 -100vmax);
}

.sub-section-green,
.is-style-sub-section-green {
  padding-top: 60px;
  padding-bottom: 60px;
  background: #00A866;
  box-shadow: 0 0 0 100vmax #00A866;
  clip-path: inset(0 -100vmax);
}

.sub-section-lightgreen,
.is-style-sub-section-lightgreen {
  padding-top: 60px;
  padding-bottom: 60px;
  background: #E0F6ED;
  box-shadow: 0 0 0 100vmax #E0F6ED;
  clip-path: inset(0 -100vmax);
}
.sub-section-orange,
.is-style-sub-section-orange {
  padding-top: 60px;
  padding-bottom: 60px;
  background: #FFF7F0;
  box-shadow: 0 0 0 100vmax #FFF7F0;
  clip-path: inset(0 -100vmax);
}
.sub-section-yellow,
.is-style-sub-section-yellow {
  padding-top: 60px;
  padding-bottom: 60px;
  background: #F5FF7E;
  box-shadow: 0 0 0 100vmax #F5FF7E;
  clip-path: inset(0 -100vmax);
}

/* ============================
   グループ  
============================ */
/* 赤枠 */
.request,
.is-style-request {
  padding: 24px;
  border: 1px solid #e84336;
  border-radius: 20px;
  background: rgba(232, 67, 54, 0.05);
  margin-top: 1rem;
}
.request .wp-block-heading,
.is-style-request .wp-block-heading {
  margin-top: 0;
  margin-bottom: 1rem;
}
.request p,
.is-style-request p {
  color: #e84336;
  
}
.request p.has-text-align-center,
.is-style-request p.has-text-align-center {
  color: #e84336;
  text-align: center;
}

/* 水色枠 */.bg-blue,
.wp-block-group.is-style-bg-blue,
.wp-block-columns.is-style-bg-blue,
.wp-block-column.is-style-bg-blue,
.wp-block-cover.is-style-bg-blue {
  padding: clamp(20px, calc(35 / 1440 * 100vw), 35px);
  background: #eaf9ff;
  border-radius: 20px;
  margin-top: 1rem;
}

.wp-block-cover.is-style-bg-blue {
  overflow: hidden;
}

.wp-block-columns.is-style-bg-blue {
  gap: clamp(16px, 2vw, 24px);
}

/* 黄緑枠 */.bg-green,
.wp-block-group.is-style-bg-green,
.wp-block-columns.is-style-bg-green,
.wp-block-column.is-style-bg-green,
.wp-block-cover.is-style-bg-green {
  padding: clamp(20px, calc(35 / 1440 * 100vw), 35px);
  background: #EDF9F1;
  border-radius: 20px;
  margin-top: 1rem;
}

.wp-block-cover.is-style-bg-green {
  overflow: hidden;
}

.wp-block-columns.is-style-bg-green {
  gap: clamp(16px, 2vw, 24px);
}

/* 水色ライン */
.line-blue,
.wp-block-group.is-style-line-blue,
.wp-block-columns.is-style-line-blue,
.wp-block-column.is-style-line-blue,
.wp-block-cover.is-style-line-blue {
  padding: clamp(20px, calc(35 / 1440 * 100vw), 35px);
  background: #fff;
  border: 2px solid #0C9ACE;
  border-radius: 20px;
  margin-top: 1rem;
}

.wp-block-cover.is-style-line-blue { overflow: hidden; }

/* Coverブロックの背景を強制的に白に */
.wp-block-cover.is-style-line-blue .wp-block-cover__background,
.wp-block-cover.is-style-line-blue .wp-block-cover__gradient-background {
  background-color: #fff;
  opacity: 1;
}

.wp-block-columns.is-style-line-blue {
  gap: clamp(16px, 2vw, 24px);
}

/* 黄緑ライン */
.line-green,
.wp-block-group.is-style-line-green,
.wp-block-columns.is-style-line-green,
.wp-block-column.is-style-line-green,
.wp-block-cover.is-style-line-green {
  padding: clamp(20px, calc(35 / 1440 * 100vw), 35px);
  background: #fff;
  border: 2px solid #48C378;
  border-radius: 20px;
  margin-top: 1rem;
}

.wp-block-cover.is-style-line-green { overflow: hidden; }

.wp-block-cover.is-style-line-green .wp-block-cover__background,
.wp-block-cover.is-style-line-green .wp-block-cover__gradient-background {
  background-color: #fff;
  opacity: 1;
}

.wp-block-columns.is-style-line-green {
  gap: clamp(16px, 2vw, 24px);
}
/* 黄緑ライン */
.line-orang,
.wp-block-group.is-style-line-orange,
.wp-block-columns.is-style-line-orange,
.wp-block-column.is-style-line-orange,
.wp-block-cover.is-style-line-orange {
  padding: clamp(20px, calc(35 / 1440 * 100vw), 35px);
  background: #fff;
  border: 2px solid #EF6E0F;
  border-radius: 20px;
  margin-top: 1rem;
}

.wp-block-cover.is-style-line-orange { overflow: hidden; }

.wp-block-cover.is-style-line-orange .wp-block-cover__background,
.wp-block-cover.is-style-line-orange .wp-block-cover__gradient-background {
  background-color: #fff;
  opacity: 1;
}

.wp-block-columns.is-style-line-orange {
  gap: clamp(16px, 2vw, 24px);
}
/* 白ラインなし */
.line-white,
.wp-block-group.is-style-line-white,
.wp-block-columns.is-style-line-white,
.wp-block-column.is-style-line-white,
.wp-block-cover.is-style-line-white {
  padding: clamp(20px, calc(35 / 1440 * 100vw), 35px);
  background: #fff;
  border: none;
  border-radius: 20px;
  margin-top: 1rem;
}

.wp-block-cover.is-style-line-white { overflow: hidden; }

.wp-block-cover.is-style-line-white .wp-block-cover__background,
.wp-block-cover.is-style-line-white .wp-block-cover__gradient-background {
  background-color: #fff;
  opacity: 1;
}

.wp-block-columns.is-style-line-white {
  gap: clamp(16px, 2vw, 24px);
}
