/*
Theme Name: SWELL CHILD
Template: swell
*/
body {
  font-family: "Alata", sans-serif;
}

:root {
  --stripes: repeating-linear-gradient(-12deg,
      rgba(255, 255, 255, 0.2) 0 8px,
      transparent 8px 11px);
}

/* 背景色＋シマ模様のセット */
.bg-yellow {
  background: var(--stripes), #f5c518;
}

.bg-blue {
  background: var(--stripes), #389bd6;
}

.bg-white {
  background: var(--stripes), #ffffff;
}

.bg-gray {
  background: var(--stripes), #eaeaea;
}

.post_content h2.top-h2 {
  font-size: 40px;
  margin-bottom: 1rem;
  margin-top: 0;
}



.zigzag svg {
  width: 100%;
  height: 20px;
  display: block;
}

.zig-path {
  fill: none;
  stroke: #333333;
  stroke-width: 4px;
  stroke-linecap: round;
  /* 端を丸く */
  stroke-linejoin: round;
  /* 曲線のつなぎを自然に */
}

.bg-white .zig-path,
.bg-yellow .zigzag-blue .zig-path {
  stroke: #389bd6;
}

.bg-blue .zig-path {
  stroke: white;
}

.zigzag.animate .zig-path {
  animation: zigzag-draw .5s linear forwards;
}

@keyframes zigzag-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.top-h2-wrap {
  position: relative;
  margin-bottom: 0;
}

.h2-calla {
  position: relative;
}

.h2-calla img {
  width: 10vw;
  max-width: 150px;
}

.h2-bgtxt {
  font-family: "Luckiest Guy", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 12vw;
  position: absolute;
  left: 50%;
  bottom: -4vw;
  margin: auto;
  line-height: 1;
  z-index: -1;
  transform: translateX(-50%);
  white-space: nowrap;
  width: 100vw;
  text-align: center;
  pointer-events: none;
}

.bg-white .h2-bgtxt {
  color: #389bd6;
  opacity: .2;
}

.bg-blue .h2-bgtxt {
  color: #389bd6;
}

.bg-yellow .h2-bgtxt {
  color: #f4c627;
}

.bg-white .h2-bgtxt::after {
  content: "";
  position: absolute;
  inset: 0;
  /* 親要素全体を覆う */
  background: repeating-linear-gradient(-12deg,
      rgba(255, 255, 255, 0.3) 0 8px,
      transparent 8px 11px);
  z-index: 1;
  /* テキストより上に */
  pointer-events: none;
  /* クリック操作は透過 */
}

.level-wrap-shadow {
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.level-wrap-shadow::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(-12deg,
      rgba(255, 255, 255, 0.3) 0 8px,
      transparent 8px 11px) #f4ebcb;
  clip-path: polygon(24px 0%, calc(100% - 24px) 0%, 100% 24px,
      100% calc(100% - 24px), calc(100% - 24px) 100%, 24px 100%,
      0% calc(100% - 24px), 0% 24px);
  z-index: -1;
}


.level-wrap-shadow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  clip-path: polygon(24px 0%, calc(100% - 24px) 0%, 100% 24px, 100% calc(100% - 24px), calc(100% - 24px) 100%, 24px 100%, 0% calc(100% - 24px), 0% 24px);
  transform: translate(6px, 6px);
  z-index: -2;
}

.level-wrap {
  position: relative;
  padding: 2rem;
}

.level-head {
  position: absolute;
  top: -2rem;
  font-weight: bold;
  line-height: 1.4;
}

.level-head .wp-block-group__inner-container {
  display: flex;
}

.level-1,
.level-2 {
  margin-bottom: 0;
  font-size: 2.2rem;
}

.level-1 {
  color: #ffffff;
  background: black;
  border-radius: 4px;
  margin-right: 1rem;
  padding: 0 1rem;
}

.level-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.level-hl1,
.level-hl2 {
  font-size: 24px;
}
.post_content hr.m05rem {
margin: 0.5rem;
}

.level-bluebox {
  background: #389bd6;
  clip-path: polygon(13px 0%, calc(100% - 13px) 0%, 100% 13px, 100% calc(100% - 13px), calc(100% - 13px) 100%, 13px 100%, 0% calc(100% - 13px), 0% 13px);
  padding: 1rem;
  color: white;
}



@media screen and (max-width: 768px) {

  /* iPad mini 縦以下に適用 */
  .post_content h2.top-h2 {
    font-size: 24px;
  }

  .h2-bgtxt {
    font-size: 18vw;
  }

  .h2-calla img {
    width: 18vw;
  }

  .zigzag svg {
    transform: scale(.7);
  }
}