#sec1 {
  padding-bottom: 8rem;
}
#sec2 {
  padding: 8rem 0;
}

.card {
  background: #f1ede8;
  padding: 50px 60px;
  border-radius: 20px;
  border: none;
}
.header {
  
}

.header__attention-pc{
  font-size: 13px;
  text-align: right;
  margin-bottom: 0;
  font-weight: 700;
}
@media (max-width: 767.98px){
  .header__attention-pc{
    display: none;
  }
}

.header__flex{
display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 2px solid;
  padding-bottom: 8px;
  margin-bottom: 35px;
}
.header__title {
  font-size: 35px;
  margin: 0;
}
.header__select {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 35px;
}
.header__select select {
  padding: 4px 60px 4px 35px;
  text-align: center;
  margin: 0;
  cursor: pointer;
  background-image: url(../../img/page/maintenance/arrow.svg);
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
  border: none;
  border-radius: 0;
  font-size: 46px;
  display: inline-block;
  margin: 0 5px;
}
@media (max-width: 767.98px){
.header__select::after {
  position: absolute;
  content: "リフォーム時期の\A対象部位が分かります";
  line-height: 1.4;
  right: 20px;
  font-size: 11px;
  white-space: pre; /* または pre-line */
}
}


.subTitle {
  padding: 8px 12px;
  background: #4d4039;
  color: #fff;
  font-weight: 700;
  text-align: center;
  font-size: 25px;
  margin-bottom: 4rem;
}

.matrix {
  /* display: grid; */
}
.matrixHead {
  display: grid;
  grid-template-columns: var(--label-col) repeat(6, 1fr);
  align-items: center;
}
.matrixHead > div {
  text-align: center;
  font-size: 20px;
}

/* .matrixItem {
  display: grid;
  grid-template-columns: var(--label-col) repeat(6, 1fr);
  align-items: stretch;
  background: #fff;
  position: relative;
} */
.matrix {
  --label-col: 180px;
  --data-cols: repeat(6, minmax(0, 1fr));
}

.matrixHead,
.matrixItem {
  display: grid;
  grid-template-columns: var(--label-col) var(--data-cols);
  align-items: stretch;
  padding: 0 0px 0 45px;
}
.matrixItem {
  position: relative;
  background: #fff;
}
.matrixItem + .matrixItem::before {
  content: "";
  position: absolute;
  width: 95%;
  height: 2px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #4d4039;
}
.matrixCell {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 6px;
}
.matrixCell[data-year] {
  background: url("../../img/page/maintenance/td-bg.png") center/2px repeat-y;
}
.matrixCell.is-active {
  background: url("../../img/page/maintenance/td-bg-active.png") center/6px
    repeat-y;
}

.matrixLabel {
  padding: 30px 0 35px 0;
}
.item {
  display: flex;
  align-items: center;
  background: #4d4039;
  color: #fff;
  padding: 10px 10px 0 10px;
  border-radius: 3px;
  flex-direction: column;
}
.item__img {
  width: 160px;
  height: 120px;
  overflow: hidden;
  flex: 0 0 auto;
}
.item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.item__name {
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 8px;
  display: block;
}

.labelChip {
  display: inline-grid;
  place-items: center;
  min-width: 90px;
  height: 80px;
  padding: 6px 8px;
  border: 1px solid #ce690d;
  background: #fff;
  font-weight: 700;
  line-height: 1.2;
  color: #ce690d;
  border-radius: 3px;
  font-size: 22px;
}
.matrixCell.is-active .labelChip {
  border-color: transparent;
  background: #ce690d;
  color: #fff;
  transform: translateZ(0) scale(1.06);
  transition: transform 0.25s ease;
}
@media (max-width: 991.98px) {
  .card {
    padding: 30px 30px;
  }
  .header__select select {
    padding: 4px 40px 4px 20px;
    background-size: 14px;
    font-size: 28px;
  }
  .matrixHead {
    display: none;
  }
  .matrix {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  @container (width < 640px) {
    .matrix {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  .matrixItem {
    grid-template-columns: 1fr;
    background: #fff;
    overflow: hidden;
    padding: 0 5px 40px;
  }
  .matrixItem + .matrixItem::before {
    width: 1px;
    height: 95%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
  }
  .matrixCell {
    height: 80px;
  }
  .matrixLabel {
    padding: 15px 0 15px 0;
    height: auto;
  }
  .matrixCell[data-year] {
    background: url("../../img/page/maintenance/td-bg.png") center/1px repeat-x;
  }
  .matrixCell.is-active {
    background: url("../../img/page/maintenance/td-bg-active.png") center/2px
      repeat-x;
  }

  .labelChip {
    width: 100%;
    min-width: 0;
    font-size: 13px;
    height: 48px;
    padding: 4px 0px;
  }
}

@media (max-width: 991.98px) {
  .header__title,
  .header__select {
    font-size: 26px;
  }
}
@media (max-width: 767.98px) {
  .header__flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .header__title,
  .header__select {
    font-size: 20px;
  }
  .matrixCell {
    height: 65px;
  }
  .matrixLabel {
    height: auto;
  }
  .card {
    padding: 30px 20px 0;
  }
  .item {
    padding: 5px 5px 0 5px;
  }
  .item__img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
  .item__name {
    margin-top: 3px;
    font-size: 12px;
  }
}
