@charset "utf-8";
/* CSS Document */

@media print, screen and (min-width: 768px) {
  .p-top {
    background-image: url("../images/mv.webp");
    position: relative;
    background-position: center;
    background-color: #f0f0f0;
    border-radius: 15px;
    background-size: cover;
    background-attachment: fixed;
  }

  .p-info__item {
    width: calc((100% - 38px) / 3);
  }
}

@media not all and (min-width: 768px) {
  .p-top {
    background-image: url("../images/mv.webp");
    background-color: #000000;
    padding: 50px 0 50px;
    border-radius: 10px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
  }
}

/*============================　
　既存スタイル上書き及び追加
=============================*/
@media screen and (min-width: 768px) {
  .p-info.grid {
    display: grid;
    gap: 38px;
    grid-template-columns: repeat(3, 1fr);
  }

  .p-info.grid .p-info__item {
    width: 100%;
    margin: 0;
    display: grid;
    gap: 0;
    grid-template-rows: subgrid;
    grid-row: span 4;
  }
}
