.pf-container {
  container-type: inline-size;
  container-name: pf-container;
}

.pf-wrapper  {
  font-size: 16px;
  line-height: 1.7;
  --space: 0px;
  --beige:#cdb288;
  --grey: #545454;
  background: #faf7f3;
  overflow: hidden;
  box-sizing: border-box;
  color:#333;
}

.pf-wrapper img {
  max-width:100%;
  height: auto;
  object-fit: contain;
  vertical-align: bottom;
}

.pf-wrapper h2 {
  font-weight:bold;
  font-size: 35px;
  margin: 20px 0 20px;
  text-align: center;
  word-break: auto-phrase;
}

.pf-wrapper h3 {
  font-weight:bold;
  font-size: 20px;
  color: var(--grey);
}

.pf-top {
    display: grid;
    justify-items: center;
    gap: 24px;
    margin: 50px 0;
}

.pf-top > div:first-child {
    max-width: 340px;
    width: 70%;
}

.pf-top > div:last-child {
    max-width: 440px;
    mix-blend-mode: darken;
    width: 80%;
}

.pf-brands {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.pf-brands > div a {
    display: grid;
    align-items: center;
    aspect-ratio: 100/60;
}

.pf-brands > div a div img {
    max-height: 90px;
    max-width: 320px;
}

.pf-brands > div a div {
    background: #ffffffe0;
    text-align: center;
    width: 100%;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pf-brands > div:first-child a {
    background:url(../img/brand_legato.jpg) center / 100% no-repeat;
}

.pf-brands > div:last-child a {
    background:url(../img/brand_anello.jpg) center / 100% no-repeat;
}

.pf-brand-top {
    display: flex;
    gap: 20px;
    margin: 30px 0 0px;
    background: white;
    padding: 50px 30px;
}

.pf-brand-top > div:first-child {
    flex:1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pf-brand-top > div:first-child h2 img {
    max-height: 100px;
    max-width: 300px;
}

.pf-brand-top > div:last-child {
    width: 34%;
}

.pf-brand-top > div:last-child img {
    height:100%;
    width:auto;
    object-fit: cover;
}

/* ラジオボタンは非表示 */
.pf-products input {display: none;}

/* サムネイル */
.pf-color {
  display: flex;
  gap: 8px;
  margin: 0.7em 0 1.1em;
}

.pf-color img {
  width: 100px;
  height: auto;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: border 0.3s;
}

.pf-color img:hover {
  border-color: #666;
}

.pf-color label {
  height:25px;
  width:25px;
  border-radius:50%; 
}

.pf-color label:hover {
  cursor:pointer;
}

.pf-color label[for='img1-1-1'] {background: #5e6150;}
.pf-color label[for='img1-1-2'] {background: #b6b0b0;}
.pf-color label[for='img1-1-3'] {background: #978881;}
.pf-color label[for='img1-2-1'] {background: #171514;}
.pf-color label[for='img1-2-2'] {background: #b8baa1;}
.pf-color label[for='img1-2-3'] {background: #baa89a;}
.pf-color label[for='img1-3-1'] {background: #1d2432;}
.pf-color label[for='img1-3-2'] {background: #546361;}
.pf-color label[for='img1-3-3'] {background: #b4b4a8;}
.pf-color label[for='img1-4-1'] {background: #9baea9;}
.pf-color label[for='img1-4-2'] {background: #c1b6a6;}
.pf-color label[for='img1-5-1'] {background: #7f3f43;}
.pf-color label[for='img1-5-2'] {background: #ae6c43;}
.pf-color label[for='img1-6-1'] {background: #26252a;}
.pf-color label[for='img1-6-2'] {background: #afa59f;}

.pf-color label[for='img2-1-1'] {background: #000000;}
.pf-color label[for='img2-1-2'] {background: #586779;}
.pf-color label[for='img2-2-1'] {background: #615f60;}
.pf-color label[for='img2-3-1'] {background: #24221f;}
.pf-color label[for='img2-4-1'] {background: #92434c;}
.pf-color label[for='img2-4-2'] {background: #313e58;}
.pf-color label[for='img2-4-3'] {background: #736d71;}


.pf-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--beige);
    margin: 30px;
    gap: 1px;
}

.pf-products > div {
    background:white;
    padding:20px;
    box-sizing: border-box;
}

.pf-anello .pf-products {
    grid-template-columns: repeat(2, 1fr);
}

.pf-prodcut-image {
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1em;
    position: relative;
    overflow: hidden;
}

.pf-prodcut-image.pf-limited:before {
    content:"Limited";
    background:red;
    position:absolute;
    top: -12px;
    left: -57px;
    color: white;
    transform: rotate(-45deg);
    width: 150px;
    text-align: center;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    padding-top: 33px;
}

.pf-products > div img {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    border: none;
    display: none;
}

/* 選択された画像を表示 */
#img1-1-1:checked ~ .pf-prodcut-image .img1-1-1,
#img1-1-2:checked ~ .pf-prodcut-image .img1-1-2,
#img1-1-3:checked ~ .pf-prodcut-image .img1-1-3,
#img1-2-1:checked ~ .pf-prodcut-image .img1-2-1,
#img1-2-2:checked ~ .pf-prodcut-image .img1-2-2,
#img1-2-3:checked ~ .pf-prodcut-image .img1-2-3,
#img1-3-1:checked ~ .pf-prodcut-image .img1-3-1,
#img1-3-2:checked ~ .pf-prodcut-image .img1-3-2,
#img1-3-3:checked ~ .pf-prodcut-image .img1-3-3,
#img1-4-1:checked ~ .pf-prodcut-image .img1-4-1,
#img1-4-2:checked ~ .pf-prodcut-image .img1-4-2,
#img1-5-1:checked ~ .pf-prodcut-image .img1-5-1,
#img1-5-2:checked ~ .pf-prodcut-image .img1-5-2,
#img1-6-1:checked ~ .pf-prodcut-image .img1-6-1,
#img1-6-2:checked ~ .pf-prodcut-image .img1-6-2,
#img2-1-1:checked ~ .pf-prodcut-image .img2-1-1,
#img2-1-2:checked ~ .pf-prodcut-image .img2-1-2,
#img2-2-1:checked ~ .pf-prodcut-image .img2-2-1,
#img2-3-1:checked ~ .pf-prodcut-image .img2-3-1,
#img2-4-1:checked ~ .pf-prodcut-image .img2-4-1,
#img2-4-2:checked ~ .pf-prodcut-image .img2-4-2,
#img2-4-3:checked ~ .pf-prodcut-image .img2-4-3 {
  display: block;
}

ul.pf-spec li {
    list-style-type: disc;
    margin-left: 1.4em;
    font-size: 14px;
}

ul.pf-spec li + li {
  margin-top:.3em;
}


@container pf-container (max-width: 700px) {

  .pf-wrapper {
      font-size: 14px;
  }

  .pf-wrapper h2 {
      margin: 5px 0 10px;
  }

  .pf-wrapper h3 {
      font-size: 17px;
  }

  .pf-wrapper .pf-products {
      margin: 15px;
      grid-template-columns: repeat(1, 1fr);
  }

  .pf-products > div img {
      max-width: 240px;
      max-height: 190px;
  }

  .pf-prodcut-image {
      height: 200px;
  }

  .pf-brand-top {
      flex-direction: column;
      padding: 20px 20px 25px;
  }

  .pf-brand-top > div:first-child h2 img {
      max-width: 250px;
  }

  .pf-brand-top > div:last-child {
      width: 100%;
  }

  .pf-brands {
      grid-template-columns: repeat(1, 1fr);
  }

  ul.pf-spec li {
      font-size: 12px;
      line-height: 1.5;
  }

  .pf-products > div {
      padding: 15px 20px;
  }

  .pf-brands > div a div img {
      max-width: 240px;
      max-height: 70px;
  }

}