@charset "utf-8";

.work-page {
  overflow: hidden;
  width: 100%;
  margin: 1px auto 0;
  background: #ffffff;
  font-family: "Noto Sans JP", sans-serif;
}

.work-stage {
  position: relative;
  width: 390px;
  overflow: hidden;
  zoom: var(--banana-stage-scale, 1);
  background: #ffffff;
}

.work-section {
  position: relative;
  width: 390px;
  overflow: hidden;
}

.work-stage *,
.work-stage *::before,
.work-stage *::after {
  box-sizing: border-box;
}

.work-page .banana-page-hero {
  position: relative;
  width: 390px;
  height: 125px;
  overflow: hidden;
}

.work-page .banana-page-hero-clip,
.work-page .banana-page-hero-bg,
.work-page .banana-page-hero-banana,
.work-page .banana-page-hero-decoration,
.work-page .banana-page-hero-copy,
.work-list-bg,
.work-decoration {
  position: absolute;
}

.work-page .banana-page-hero-clip {
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.work-page .banana-page-hero-bg {
  display: block;
  max-width: none;
  object-fit: cover;
}

.work-page .banana-page-hero-bg-desktop {
  top: -2.6px;
  left: 0;
  display: block;
  width: 390px;
  height: 130px;
}

.work-page .banana-page-hero-bg-mobile {
  display: none;
}

.work-page .banana-page-hero-banana {
  top: 31.2px;
  left: 285.9px;
  z-index: 1;
  width: 248px;
  height: 253px;
  overflow: hidden;
  transform: scale(0.39);
  transform-origin: top left;
}

.work-page .banana-page-hero-banana img {
  position: absolute;
  top: -229px;
  left: -287px;
  display: block;
  width: 574px;
  height: 482px;
  max-width: none;
}

.work-page .banana-page-hero-decoration {
  top: 83.1px;
  left: 43.7px;
  z-index: 1;
  display: block;
  width: 101px;
  height: 101px;
  max-width: none;
  transform: scale(0.39);
  transform-origin: top left;
}

.work-page .banana-page-hero-copy {
  top: 44px;
  left: 20px;
  z-index: 2;
  width: 350px;
  text-align: center;
}

.work-page .banana-page-hero-copy h1,
.work-page .banana-page-hero-copy p,
.work-category,
.work-card-title,
.work-date,
.work-more-label {
  margin: 0;
}

.work-page .banana-page-hero-copy h1 {
  color: #092a69;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.work-page .banana-page-hero-copy p {
  display: none;
  width: 322px;
  margin-top: 26px;
  color: #000000;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.work-list {
  min-height: 560px;
  padding: 72px 0 80px;
  background: #edf8fb;
}

.work-list-bg {
  inset: 0;
  z-index: 0;
  width: 390px;
  height: 100%;
  object-fit: cover;
}

.work-decoration {
  display: block;
  pointer-events: none;
  z-index: 1;
}

.work-starfish { top: 22px; left: -26px; width: 92px; height: 92px; }
.work-shell { bottom: 14px; left: -20px; width: 90px; height: 90px; }
.work-bubble { top: 36px; right: -48px; width: 118px; height: 118px; }
.work-crab { right: -30px; bottom: -24px; width: 116px; height: 116px; }

.work-list > .webgene-blog {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  width: 280px;
  margin: 0 auto -32px;
}

.work-card {
  --work-card-angle: 0deg;
  position: relative;
  box-sizing: border-box;
  flex: 0 0 312px;
  width: 260px;
  height: 312px;
  margin: 0 0 32px;
  padding: 12px;
  overflow: visible;
  background: #ffffff;
  border: none;
  border-radius: 0;
  transform: rotate(var(--work-card-angle));
  transform-origin: center center;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.work-card:nth-of-type(5n + 1) { --work-card-angle: -2deg; }
.work-card:nth-of-type(5n + 2) { --work-card-angle: 1deg; }
.work-card:nth-of-type(5n + 3) { --work-card-angle: 0deg; }
.work-card:nth-of-type(5n + 4) { --work-card-angle: 2deg; }
.work-card:nth-of-type(5n + 5) { --work-card-angle: -1deg; }

.work-card:hover,
.work-card:focus-within {
  z-index: 4;
  box-shadow: 0 10px 24px rgba(9, 42, 105, 0.18);
  transform: rotate(calc(var(--work-card-angle) + 1deg)) scale(1.04);
}

.work-card-link {
  position: absolute;
  inset: 0;
  display: block;
  padding: 12px;
  color: inherit;
  text-decoration: none;
}

.work-card-link:focus-visible {
  outline: 3px solid #0756b3;
  outline-offset: 3px;
}

.work-list .webgene-pagination {
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  width: 100%;
  margin-top: 24px;
}

.work-list .webgene-pagination:empty,
.work-list .webgene-pagination ul:empty {
  display: none;
}

.work-list .webgene-pagination ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-list .webgene-pagination li {
  display: block;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
}

.work-list .webgene-pagination a,
.work-list .webgene-pagination span {
  display: flex;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 0;
  color: #000000;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease;
}

.work-list .webgene-pagination li:not(.active):not(.selected) > a:not([aria-current="page"]):hover,
.work-list .webgene-pagination li:not(.active):not(.selected) > a:not([aria-current="page"]):focus-visible {
  border-color: #0756b3;
  border-radius: 50%;
  color: #0756b3;
  background: transparent;
  outline: none;
}

.work-list .webgene-pagination .active > a,
.work-list .webgene-pagination .active > span,
.work-list .webgene-pagination .selected > a,
.work-list .webgene-pagination .selected > span,
.work-list .webgene-pagination [aria-current="page"] {
  border-radius: 50%;
  color: #ffffff;
  background: #0756b3;
}

.work-list .webgene-pagination .prev > a,
.work-list .webgene-pagination .next > a {
  position: relative;
  overflow: hidden;
  color: transparent;
  font-size: 0;
}

.work-list .webgene-pagination .prev > a::before,
.work-list .webgene-pagination .next > a::before {
  width: 10px;
  height: 10px;
  border-top: 2px solid #0756b3;
  border-right: 2px solid #0756b3;
  content: "";
}

.work-list .webgene-pagination .prev > a::before {
  transform: rotate(-135deg);
}

.work-list .webgene-pagination .next > a::before {
  transform: rotate(45deg);
}

.work-card-image {
  display: block;
  width: 236px;
  height: 177px;
  aspect-ratio: 4 / 3;
  border-radius: 0;
  object-fit: cover;
}

.work-category {
  display: inline-block;
  height: 26px;
  margin-top: 10px;
  padding: 0 16px;
  color: #fffdfb;
  background: #0160b8;
  font-size: 12px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  border-radius: 13px;
}

.work-category[data-category="住宅"] { background: #77a927; }
.work-category[data-category="ウッドデッキ"] { background: #008993; }
.work-category[data-category="ウッドファニチャー"] { background: #985ea0; }
.work-category[data-category="工房・ガレージ"] { background: #eb9403; }
.work-category[data-category="飲食店"] { background: #e23e4c; }

.work-card-title {
  width: 236px;
  height: 38px;
  margin-top: 10px;
  overflow: hidden;
  color: #0160b8;
  font-size: 16px;
  font-weight: 700;
  line-height: 19px;
  letter-spacing: 0;
}

.work-date {
  position: absolute;
  left: 12px;
  bottom: 12px;
  color: #000000;
  font-size: 14px;
  font-weight: 400;
  line-height: 17px;
  letter-spacing: 0;
}

.work-more {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  width: 84px;
  height: 16px;
  color: #0160b8;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0;
  text-decoration: none;
}

.work-more img {
  display: block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  object-fit: contain;
}

.work-tape {
  position: absolute;
  z-index: 3;
  top: -18px;
  left: 50%;
  display: none;
  width: 70px;
  height: auto;
  pointer-events: none;
  object-fit: fill;
  transform: translateX(-50%) rotate(-8deg);
  transform-origin: center;
}

.work-card:nth-child(4n + 1) .work-tape-green,
.work-card:nth-child(4n + 2) .work-tape-blue,
.work-card:nth-child(4n + 3) .work-tape-yellow,
.work-card:nth-child(4n) .work-tape-pink {
  display: block;
}

.work-card:nth-child(4n + 2) .work-tape { transform: translateX(-50%) rotate(11deg); }
.work-card:nth-child(4n + 3) .work-tape { transform: translateX(-50%) rotate(-14deg); }
.work-card:nth-child(4n) .work-tape { transform: translateX(-50%) rotate(8deg); }

.work-bottom {
  height: 14px;
  background: #ffffff;
}

@media (min-width: 768px) {
  .work-stage,
  .work-section {
    width: 1000px;
  }

  .work-page .banana-page-hero {
    width: 1000px;
    height: 333px;
  }

  .work-page .banana-page-hero-bg-mobile {
    display: none;
  }

  .work-page .banana-page-hero-bg-desktop {
    top: 0;
    left: 0;
    display: block;
    width: 1000px;
    height: 333px;
  }

  .work-page .banana-page-hero-banana {
    top: 80px;
    left: 733px;
    transform: none;
  }

  .work-page .banana-page-hero-decoration {
    top: 213px;
    left: 112px;
    transform: none;
  }

  .work-page .banana-page-hero-copy {
    top: 76px;
    left: 235px;
    width: 530px;
    text-align: center;
  }

  .work-page .banana-page-hero-copy h1 {
    font-size: 50px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .work-page .banana-page-hero-copy p {
    display: block;
    width: 530px;
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.55;
  }

  .work-list {
    min-height: 406px;
    padding: 47px 0;
  }

  .work-list-bg {
    width: 1000px;
  }

  .work-starfish { top: 74px; left: -18px; width: 106px; height: 106px; }
  .work-shell { bottom: 24px; left: 0; width: 107px; height: 107px; }
  .work-bubble { top: 110px; right: -30px; width: 166px; height: 166px; }
  .work-crab { right: -13px; bottom: -20px; width: 166px; height: 166px; }

  .work-list > .webgene-blog {
    flex-direction: row;
    align-items: stretch;
    width: 828px;
    margin: 0 auto -24px;
  }

  .work-card {
    flex-basis: 260px;
    margin: 0 24px 24px 0;
  }

  .work-card:nth-child(3n) {
    margin-right: 0;
  }
}

/* SiblooのStyle Manager非対応ルールをeditor CSSから分離 */
* {
  box-sizing: border-box
}

* {
  box-sizing: border-box
}

* {
  box-sizing: border-box
}
