.p-trouble-wrapper,
.p-support-wrapper {
  max-width: 920px;
  margin-inline: auto;
  padding-inline: 1em;
}

@media screen and (max-width: 768px) {
  .p-trouble-wrapper,
  .p-support-wrapper {
    max-width: 575px;
  }
}

.p-trouble-title {
  font-size: clamp(2rem, calc(1.4032rem + 1.039vw), 2.4rem);
  font-weight: 700;
  margin-bottom: 1em;
  text-align: center;
}

.p-trouble-wrapper {
  position: relative;
  margin-bottom: 4em;
  padding: 2em 1em 1em;
  border-radius: 8px;
  background-color: var(--background-gray);
}

.p-trouble-wrapper::after {
  content: "";
  position: absolute;
  bottom: -39px;
  left: 0;
  width: 100%;
  height: 40px;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  background-color: var(--background-gray);
  z-index: -1;
}

.p-list--trouble {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media screen and (max-width: 768px) {
  .p-list--trouble {
    grid-template-columns: 1fr;
  }
}

.p-list-item {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
}

.p-list-item a {
  width: 100%;
  color: var(--black);
  overflow: hidden;
}

.p-list--trouble .p-list-item {
  padding: 1em;
  min-width: 0;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .p-list--trouble .p-list-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1em;
    text-align: left;
  }
}

.p-list--support .p-list-item {
  box-shadow: 0 4px 10px 0 #eeeeee;
}

.p-list--trouble .p-list-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1em;
}

@media screen and (max-width: 768px) {
  .p-list--trouble .p-list-item img {
    max-width: 40%;
    height: auto;
    margin-bottom: 0;
    object-fit: contain;
  }

  .p-list--trouble .p-list-item__text {
    flex: 1 1 0;
    min-width: 0;
  }
}

.p-list-item__text {
  text-wrap: wrap;
  color: var(--black);
  font-weight: 600;
}

.p-list-item:first-child .p-list-item__text {
  line-height: 2.5;
}

.p-list--support {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 1fr auto;
  gap: 1rem;
}

@media screen and (max-width: 768px) {
  .p-list--support {
    grid-template-columns: 1fr;
  }
}

.p-list--support .p-list-item:nth-child(1) {
  grid-column: 1 / span 3;
}

.p-list--support .p-list-item:nth-child(2) {
  grid-column: 4 / span 3;
}

.p-list--support .p-list-item:nth-child(-n + 2) {
  display: flex;
  flex-direction: column;
}

@media screen and (max-width: 768px) {
  .p-list--support .p-list-item:nth-child(n) {
    grid-column: unset;
  }
}

.p-list--support .p-list-item:nth-child(-n + 2) > a {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.p-list--support .p-list-item:nth-child(-n + 2) .p-list-item__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.p-list-item__link {
  position: relative;
  margin-top: 0.75em;
  padding-right: 1.5em;
  font-size: 1.6rem;
  font-weight: 500;
  text-align: right;
}

.p-list-item__link::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 1.25em;
  height: 1.25em;
  background: url(/plan/img/over60/arrow-fill.svg) no-repeat center / contain;
  translate: 0 -50%;
  transition: transform 0.3s ease-in-out;
}

@media screen and (768px < width) {
  .p-list--support .p-list-item:nth-child(-n + 2) .p-list-item__link {
    margin-top: auto;
  }
}
.p-list--support .p-list-item:nth-child(3) {
  grid-column: 1 / -1;
}

.p-list--support .p-list-item:nth-child(3) > a {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

@media screen and (max-width: 768px) {
  .p-list--support .p-list-item:nth-child(3) > a {
    grid-template-columns: 1fr;
  }
}

.p-list--support .p-list-item > a img {
  transition:
    opacity 0.3s ease-in-out,
    scale 0.3s ease-in-out;
}

.p-list--support .p-list-item:nth-child(-n + 2) > a img {
  transform-origin: center bottom;
}

.p-list--support .p-list-item:nth-child(3) > a img {
  transform-origin: center right;
}

@media screen and (max-width: 768px) {
  .p-list--support .p-list-item:nth-child(3) > a img {
    transform-origin: center bottom;
  }
}

@media (hover: hover) {
  .p-list--support .p-list-item > a:hover {
    opacity: 0.7;
  }

  .p-list--support .p-list-item > a:hover img {
    scale: 1.05;
  }

  .p-list--support .p-list-item > a:hover .p-list-item__link::after {
    transform: translateX(0.25em);
  }
}

.p-title-deco {
  margin: 1.25em auto 0.75em;
  padding-inline: 1.5em;
  width: fit-content;
  position: relative;
  font-size: 0.5em;
}

.p-support-title {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 0.75em;
  text-align: center;
}

.p-title-deco::before,
.p-title-deco::after {
  content: "";
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 1.45em;
  height: 2px;
  background-color: var(--black);
  box-sizing: border-box;
}

.p-title-deco::before {
  left: 0;
  rotate: 60deg;
}

.p-title-deco::after {
  right: 0;
  rotate: -60deg;
}

.p-list--support .p-list-item:nth-child(3) img {
  margin-bottom: 0;
}

.p-list--support .p-list-item:nth-child(3) .p-img-store {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.p-list--support .p-list-item:nth-child(3) .p-list-item__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.p-list--support .p-list-item:nth-child(3) .p-list-item__body {
  margin-top: 1.25em;
}

@media screen and (max-width: 768px) {
  .p-list--support .p-list-item:nth-child(3) .p-list-item__body {
    margin-bottom: 1em;
  }
}

.p-list--support .p-list-item:nth-child(3) .p-list-item__link {
  margin-top: auto;
}

.p-img-remote,
.p-img-family,
.p-img-store {
  background-size: 1em 1em;
}

.p-img-remote {
  background-image: radial-gradient(#dff4ff 2px, #ffffff 2px);
}

.p-img-family {
  background-image: radial-gradient(#ffe9e9 2px, #ffffff 2px);
}

.p-img-store {
  height: fit-content;
  background-image: radial-gradient(#d5f2d2 2px, #ffffff 2px);
}

.p-list-item__inner {
  position: relative;
  z-index: 1;
  padding: 1em;
  background-color: var(--white);
  box-shadow: 0 -1px 10px 0 #f6f6f6;
}

.p-badge--staff,
.p-badge--family,
.p-badge--store {
  width: fit-content;
  margin-bottom: 0.5em;
  padding: 0.25em 0.6em;
  color: var(--black);
  border-radius: 0.25em;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
}

.p-badge--staff {
  background: var(--primary-200, #b3e6ff);
}

.p-badge--family {
  background: var(--family-200, #ffc5c6);
}

.p-badge--store {
  height: fit-content;
  background: var(--success-200, #d7f59a);
}

.p-list-item__title {
  margin-bottom: 0.25em;
  /* 18-22 575-960 */
  font-size: clamp(1.8rem, calc(1.2032rem + 1.039vw), 2.2rem);
}

.p-check-badge--staff,
.p-check-badge--family {
  position: relative;
  margin-bottom: 0.75em;
  padding-left: 2em;
  font-size: 1.4rem;
  font-weight: 500;
}

.p-check-badge--staff::before,
.p-check-badge--family::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2em;
  height: 2em;
  -webkit-mask: url(/plan/img/over60/check--fill.svg) center / contain no-repeat;
  mask: url(/plan/img/over60/check--fill.svg) center / contain no-repeat;
}

.p-check-badge--staff::before {
  background-color: var(--primary);
}

.p-check-badge--family::before {
  background-color: var(--family);
}

.u-emphasize-quarter {
  font-size: 1.25em;
  padding-right: 0.05em;
}