/* p-story-brand
---------------------------------------------------------------------------- */
.p-story-brand {
  padding-block: 7rem 6.8rem;
}

.p-story-brand-container {
  display: flex;
  flex-direction: column;
  gap: 10.7rem;
}

.p-story-brand-sec-img {
  width: 100%;
  aspect-ratio: 1200/620;
  margin-top: 5rem;
}
.p-story-brand-sec-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.p-story-brand-sec-txt {
  font-size: 1.4rem;
  line-height: 1.7142857143;
  letter-spacing: 0.06em;
  font-weight: 400;
  padding-left: 1em;
  text-indent: -1em;
  margin-top: 1.2rem;
}

.p-story-brand-sec-buttons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-top: 5rem;
}

.p-story-brand-sec-btn {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background-color: #fff;
  border: 0.2rem solid var(--col-main);
  font-size: 1.6rem;
  line-height: 1.8125;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #1A1A1A;
  text-align: center;
  padding-block: 0.3rem 0.4rem;
  padding-inline: 2.5rem 0.8rem;
  transition: background-color 0.3s ease 0s, color 0.3s ease 0s;
}

.p-story-brand-sec-btn span {
  width: 2rem;
  height: 2rem;
  background-color: var(--col-main);
  border: 1px solid var(--col-main);
  border-radius: 50%;
  position: relative;
  transition: background-color 0.3s ease 0s;
}

.p-story-brand-sec-btn span::before {
  content: "";
  position: absolute;
  top: 45%;
  left: 50%;
  width: 0.5rem;
  aspect-ratio: 1;
  border-bottom: 0.2rem solid #fff;
  border-right: 0.2rem solid #fff;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: border-color 0.3s ease 0s;
}

@media (any-hover: hover) {
  .p-story-brand-sec-btn:hover {
    color: #fff;
    background-color: var(--col-main);
  }
  .p-story-brand-sec-btn:hover span {
    background-color: #fff;
  }
  .p-story-brand-sec-btn:hover span::before {
    border-color: var(--col-main);
  }
}
.p-story-brand-sec-blocks {
  display: flex;
  flex-direction: column;
  gap: 7rem;
  margin-top: 7rem;
}

.p-story-brand-sec-block-ttlBox {
  padding-block: 1.1rem 1.2rem;
  padding-left: 1rem;
  background-color: #fff;
  border-top: 0.2rem solid var(--col-main);
  border-bottom: 0.2rem solid var(--col-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0 2rem;
}

.p-story-brand-sec-block-ttlBox-ttl {
  font-size: 2.8rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  font-weight: 700;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: flex-start;
  align-items: center;
  column-gap: 1rem;
}

.p-story-brand-sec-block-ttlBox-ttl::before {
  content: "";
  width: 3rem;
  aspect-ratio: 30/20;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url(/assets/images/kome/story/brand/icn_leaves.svg);
}

.p-story-brand-sec-block-ttlBox-reverse {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: flex-end;
  align-items: center;
  column-gap: 1rem;
  font-size: 1.6rem;
  line-height: 1.8125;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #1A1A1A;
}

.p-story-brand-sec-block-ttlBox-reverse span {
  width: 2rem;
  height: 2rem;
  background-color: var(--col-main);
  border: 1px solid var(--col-main);
  border-radius: 50%;
  position: relative;
  transition: background-color 0.3s ease 0s;
}

.p-story-brand-sec-block-ttlBox-reverse span:before {
  content: "";
  position: absolute;
  top: 55%;
  left: 50%;
  width: 0.5rem;
  aspect-ratio: 1;
  border-top: 0.2rem solid #fff;
  border-left: 0.2rem solid #fff;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: border-color 0.3s ease 0s;
}

@media (any-hover: hover) {
  .p-story-brand-sec-block-ttlBox-reverse:hover span {
    background-color: #fff;
  }
  .p-story-brand-sec-block-ttlBox-reverse:hover span:before {
    border-color: var(--col-main);
  }
}
.p-story-brand-sec-block-items {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  padding-block: 3rem;
  padding-inline: 7.3rem 5rem;
  background-position: right bottom;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url(/assets/images/kome/story/brand/bg_brand_block_items_pc.png);
  margin-top: 4rem;
}

.p-story-brand-sec-block-item {
  display: flex;
  gap: 0 1rem;
}

.p-story-brand-sec-block-item-ttl {
  width: 9rem;
  height: 3rem;
  background-color: #fff;
  border: 0.2rem solid var(--col-main);
  border-radius: 10vmax;
  font-size: 1.4rem;
  line-height: 1.3571428571;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #F57B2A;
  text-align: center;
  align-content: center;
}

.p-story-brand-sec-block-item-txt {
  flex: 1;
  font-size: 1.6rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  font-weight: 500;
  align-content: center;
}

.p-story-brand-sec-block-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 2rem;
  margin-top: 2rem;
}

.p-story-brand-sec-block-img {
  width: 100%;
}
.p-story-brand-sec-block-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media screen and (max-width: 767px) {
  .p-story-brand {
    padding-block: 12.5333333333vw 13.3333333333vw;
  }
  .p-story-brand-container {
    gap: 20vw;
  }
  .p-story-brand-sec-img {
    margin-top: 8vw;
  }
  .p-story-brand-sec-txt {
    font-size: 3.7333333333vw;
    margin-top: 2.6666666667vw;
  }
  .p-story-brand-sec-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.6666666667vw;
    margin-top: 8vw;
  }
  .p-story-brand-sec-btn {
    border-radius: 1.3333333333vw;
    border-width: 0.5333333333vw;
    font-size: 4vw;
    line-height: 1.8;
    padding-block: 1.0666666667vw 1.3333333333vw;
    padding-inline: 1.6vw 2.1333333333vw;
  }
  .p-story-brand-sec-btn span {
    width: 5.3333333333vw;
    height: 5.3333333333vw;
  }
  .p-story-brand-sec-btn span::before {
    width: 1.3333333333vw;
    aspect-ratio: 1;
    border-bottom-width: 0.5333333333vw;
    border-right-width: 0.5333333333vw;
  }
  .p-story-brand-sec-blocks {
    gap: 13.3333333333vw;
    margin-top: 13.3333333333vw;
  }
  .p-story-brand-sec-block-ttlBox {
    padding-block: 2.6666666667vw;
    padding-left: 2.6666666667vw;
    border-top-width: 0.5333333333vw;
    border-bottom-width: 0.5333333333vw;
    gap: initial;
    margin-bottom: 3.2vw;
  }
  .p-story-brand-sec-block-ttlBox-ttl {
    font-size: 6.4vw;
    column-gap: 2.6666666667vw;
  }
  .p-story-brand-sec-block-ttlBox-ttl::before {
    width: 8vw;
  }
  .p-story-brand-sec-block-ttlBox-reverse {
    column-gap: 2.6666666667vw;
    font-size: 4.2666666667vw;
    line-height: 1.25;
  }
  .p-story-brand-sec-block-ttlBox-reverse span {
    width: 5.3333333333vw;
    height: 5.3333333333vw;
  }
  .p-story-brand-sec-block-ttlBox-reverse span::before {
    width: 1.3333333333vw;
    border-top-width: 0.5333333333vw;
    border-left-width: 0.5333333333vw;
  }
  .p-story-brand-sec-block-items {
    gap: 4vw;
    padding-block: 8vw;
    padding-inline: 5.3333333333vw;
    background-image: url(/assets/images/kome/story/brand/bg_brand_block_items_sp.png);
    margin-top: 5.8666666667vw;
  }
  .p-story-brand-sec-block-item {
    flex-direction: column;
    gap: 2.6666666667vw;
  }
  .p-story-brand-sec-block-item-ttl {
    width: 24vw;
    height: 8vw;
    border-width: 0.5333333333vw;
    font-size: 3.7333333333vw;
  }
  .p-story-brand-sec-block-item-txt {
    font-size: 4.2666666667vw;
  }
  .p-story-brand-sec-block-images {
    grid-template-columns: 1fr;
    gap: 5.3333333333vw;
    margin-top: 5.3333333333vw;
  }
}
/* p-modal
---------------------------------------------------------------------------- */
.p-modal {
  display: none;
}

@media screen and (max-width: 767px) {
  .p-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
  }
  .p-modal-content-wrap {
    position: relative;
  }
  .p-modal-content {
    display: block;
    width: 90%;
    aspect-ratio: 335/174.76;
    object-fit: contain;
    object-position: center;
    box-shadow: 0 0 3.2vw rgba(0, 0, 0, 0.14);
    margin-inline: auto;
  }
  .p-modal-close {
    position: absolute;
    top: 0;
    right: 0;
    translate: 50% -25%;
    right: 5.3333333333vw;
    width: 8vw;
    aspect-ratio: 1;
    cursor: pointer;
    background-color: #888888;
    border: 2px solid #fff;
    border-radius: 50%;
    transition: opacity 0.3s;
  }
  .p-modal-close::before,
  .p-modal-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4.2666666667vw;
    height: 0.5333333333vw;
    background-color: #fff;
    transform-origin: center;
  }
  .p-modal-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  .p-modal-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
}
