.pb-container {
  container-type: inline-size;
  container-name: pb-container;
}

.pb-wrapper {
  font-size:16px;
  line-height:1.7;
  --border-radius:20px;
  --padding:6%;
}

.pb-wrapper img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  vertical-align: bottom;
}

.pb-main {
  padding: var(--padding);
  background: url(../img/bg_left.png) left / 100px repeat-y, url(../img/bg_right.png) right / 120px repeat-y;
}

.pb-lead {
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.pb-lead p {
  max-width:800px;
  word-break:auto-phrase;
  text-align: center;
}

.pb-lead p:last-child {
  font-size: .9em;
}

.pb-brand-lineup {
  margin-bottom: 5em;
  margin-top: 3em;
}

.pb-wrapper section h2 {
  display:grid;
  margin: 1em 0;
  place-items: center;
}

.pb-present h2 + div {
  max-width: 530px;
  margin: -1.2em auto 1.5em;
}

.pb-present-content {
  margin:2em 0;
   display:flex;
  justify-content:center;
}

.pb-present-content + p {
  text-align:center;
  word-break:auto-phrase;
}

.pb-present-content > p {
  background: #f5ed9b;
  text-align: center;
  display: inline-block;
  padding: 10px 30px;
  border-radius: 30px;
}

.pb-wrapper section h2 > span:first-child {
  font-family: "Josefin Sans", sans-serif;
  font-style: italic;
  font-size: 48px;
  height: 1.5em;
}

.pb-brand-lineup-inner {
  border: 2px solid black;
  padding: 20px 30px 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  box-sizing: border-box;
  margin-top: 30px;
  background: white;
}

.pb-brand-lineup-inner > div > div:first-child {
  margin-bottom: 1em;
  border-bottom: 1px solid black;
  text-align:center;
  padding-bottom: .5em;
}

.pb-brand-lineup-inner > div > div:first-child > div:first-child {
  height: 79px;
  display:grid;
  place-items:center;
  position:relative;
}

.pb-brand-lineup-inner > div > div:first-child h3 {
    font-family: "Josefin Sans", sans-serif;
    font-size:20px;
    font-weight:bold;
    font-style: italic;
    letter-spacing:-.3px;
    line-height: 1.4;
}

.pb-brand-lineup-inner > div > div:first-child p {
  font-size:.9em;
}

.pb-brand-lineup-inner > div img {
  max-width: 200px;
  max-height: 52px;
}

.pb-brand-lineup-inner:before {
  content:"";
  display:block;
  height:5px;
  width:100%;
  background:black;
  position:absolute;
  top: -14px;
}

.pb-brands > section {
  border: 2px solid black;
  border-radius: var(--border-radius);
  box-shadow: 2px 2px 0px black;
  padding: 5% 5% 2%;
  margin-top: 3em;

  &.pb-pt {background: #f2fffd;}
  &.pb-cp {background:#FBFFEF;}
  &.pb-se {background:#FFF7E4;}
}

.pb-brands > section h2 {
  margin: 0.4em 0;
  border-bottom: 1px solid black;
  padding-bottom: 2em;
  min-height: 60px;
}

.pb-brands > section h2 img {
  width:300px;
  max-height: 100px;
}

.pb-brands section div.pb-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0px 30px;
  width: auto;
  margin: 30px 0;
}

.pb-brands section div.pb-products > div {
  display:flex;
  flex-direction:column;
  justify-content: flex-start;
}

.pb-brands section div.pb-products > div:nth-child(n + 3) {
  border-top: 1px solid black;
  padding-top: 2em;
  margin-top: 2em;
}

.pb-brands section div.pb-products > div > p:first-child {
  text-align:center;
  font-size: 24px;
  font-weight: bold;
}

.pb-category {
  text-align:center;
  margin: 0.7em auto 1.3em;
  padding: 0.8em 1.5em;
  border-radius: 30px;
  .pb-pt & {background:#d4f5f1;}
  .pb-cp & {background:#e7f4bc;}
  .pb-se & {background:#f7e6c0;}
}

.pb-product-name {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
}

.pb-price {
  text-align:center;
}

.pb-product-img {
  margin: 1em 0;
}

.pb-brands > section h3 {
  font-size: 16px;
  font-weight:bold;
  margin: .5em 0;
  word-break: auto-phrase;
  display: flex;
  justify-content: center;
}

.pb-brands section div.pb-products p:last-child {
  margin: auto auto .5em;
  padding-top: 1.5em;
}

.pb-brands section div.pb-products p a {
  display:flex;
  background:#0c96cf;
  color:white;
  width:200px;
  text-align:center;
  border-radius:30px;
  height:40px;
  justify-content:center;
  align-items:center;
}

.pb-brands section div.pb-products p a:hover {
  background:#006c98;
  text-decoration:none;
}

.pb-present {
  background: #F5ED9B;
  padding: var(--padding);
}

.pb-present section {
  background:white;
  border-radius: var(--border-radius);
  overflow: hidden;
  padding: calc(var(--padding) * .75) var(--padding) var(--padding);
}

.pb-present-detail {
    background: white;
    margin: 25px auto 0px;
    position: relative;
    display: grid;
    justify-items: center;
    box-sizing: border-box;
    border-radius: var(--radius);
    max-width: 900px;
}

.pb-present-detail a {
  color:#0c96cf;
}

.pb-present-detail h3 {
    width: 100%;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    font-size: 24px;
    font-weight:bold;
    margin: 20px auto 30px;
    background: linear-gradient(180deg, rgb(255, 255, 255) calc(50% - 1px), #23485c calc(50% - 1px) , #23485c 50%, rgb(255, 255, 255) 50%);
    height: 34px;
}

.pb-present-detail h3 span {
  background:white;
  padding: 0 20px;
}

.pb-present-detail h3 + p {
    line-height: 2;
}

.pb-present-detail h3 + p b {
  font-weight:bold;
}

.tw-sns {
  margin: 1em 0 0;
}

@media (min-width: 801px){
  .tw-sns a + a:before {
    content:"|";
    padding:.7em;
  }
}

@media (max-width: 800px){
  .tw-sns a + a {
    display:block;
    padding-top:.5em;
    text-align: center;
  }
}

.pb-present-detail dl {
    display:flex;
    flex-wrap:wrap;
    --dtwidth: 130px;
    --dlgap: 2px;
    margin: 30px 0 0;
    gap: 20px var(--dlgap);
}

.pb-present-detail dt {
    width:var(--dtwidth);
    font-weight: bold;
    display:flex;
    gap:10px;
    align-items: center;
}

.pb-present-detail dt:before {
  content:"";
  width:20px;
  aspect-ratio:1/1;
  background: #F5ED9B;
  display:block;
  border-radius:50%;
}

.pb-present-detail dd {
    width: calc(100% - var(--dtwidth) - var(--dlgap));
}

.pb-present-detail dt,
.pb-present-detail dd {
    border-top: 1px dashed #454545;
    padding-top: 20px;
}


.pb-staffblog ul li a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  color: black;
}

.pb-staffblog ul li a > div:first-child {
  width:200px;
}

.pb-staffblog ul li a > div:last-child {
  flex:1;
}

.pb-staffblog ul li a > div:last-child h3 {
  font-weight:bold;
  margin-bottom: .5em;
}

.pb-staffblog ul li + li {
  margin-top:1em;
  border-top: 1px dashed #454545;
  padding-top:1em;
}

.pb-staffblog {
  padding-top: 2em;
  padding: var(--padding);
  background: url(../img/bg_left.png) left / 100px repeat-y, url(../img/bg_right.png) right / 150px repeat-y;
}

@container pb-container (max-width: 800px) {
  .pb-wrapper {
    font-size:14px;
    --padding:20px;
  }
  .pb-wrapper section h2 > span:first-child {
    font-size: 31px;
  }

  .pb-brand-lineup-inner {
    grid-template-columns: repeat(1, 1fr);
  }

  .pb-brands section div.pb-products {
  grid-template-columns: repeat(1, 1fr);
}

  .pb-brands section div.pb-products > div:nth-child(n + 2) {
    border-top: 1px solid black;
    padding-top: 1.5em;
    margin-top: 1.7em;
  }

  .pb-product-name {
    font-size: 18px;
    word-break: auto-phrase;
    margin: 0.7em 0;
  }

  .pb-price {
    font-size: 15px;
  }

  .pb-brands > section h3 {
    font-size: 15px;
    margin: 0.5em 0;
  }

  .pb-category {
    margin: 0.5em auto 0.4em;
    word-break: auto-phrase;
  }

  .pb-brands section div.pb-products > div > p:first-child {
    font-size: 22px;
    word-break: auto-phrase;
    margin: 0.3em 0;
  }  
  .pb-brands > section {
  padding: 5% 5% 0;
  }

  .pb-brands > section h2 img {
    max-height: 70px;
    width: 260px;
  }

  .pb-brands > section h2 {
    padding-bottom: 1.4em;
  }

  .pb-present-detail dl {
  --dtwidth: 106px;
  }
    
  .pb-present-detail dt:before {
    width: 14px;
  }

  .pb-staffblog ul li a {
  flex-direction: column;
  gap: 15px;
  }

  .pb-staffblog ul li a > div:first-child {
    width: 100%;
    max-width: 300px;
  }

  .pb-main {
  background: url(../img/bg_left.png) left / 40px repeat-y, url(../img/bg_right.png) right / 46px repeat-y;
  padding: 2.2em var(--padding);
  }

  .pb-staffblog {
    background: url(../img/bg_left.png) left / 40px repeat-y, url(../img/bg_right.png) right / 46px repeat-y;
  }

    .pb-staffblog ul li a > div:last-child h3 {
    margin: 0.6em 0;
  }

  .pb-wrapper section h2 {
    margin: 1.4em 0;
  }

  .pb-present-detail h3 {
    font-size: 21px;
    margin: 5px auto 25px;
  }

  .pb-present-content + p a {
    display:inline;
    color: #0c96cf;
    /* text-decoration:underline; */
  }
  
}
