:is(p) {
  margin: 0;
}

.tp-header {
  position: relative;
  margin-bottom: calc(14px + 40px);
  padding-bottom: 16px;
  border-bottom: 3px solid #d9d9d9;

  @media (min-width: 768px) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 24px;
  }
}

.tp-header__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.8rem;
  font-weight: normal;

  @media (min-width: 768px) {
    gap: 20px;
    font-size: 3rem;
  }
}

.tp-header__title svg {
  width: 32px;
  height: 32px;

  @media (min-width: 768px) {
    width: 52px;
    height: 52px;
  }
}

.tp-header__update {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 8px;
  line-height: 1;

  @media (min-width: 768px) {
    position: static;
    margin-top: 0;
  }
}

.tp-section {
  margin-top: 50px;

  &:first-of-type {
    margin-top: 0;
  }

  @media (min-width: 768px) {
    margin-top: 80px;
  }
}

.tp-headline {
  display: block;
  margin: 0 0 20px;
  font-size: 1.8rem;
  font-weight: normal;

  @media (min-width: 768px) {
    margin-bottom: 24px;
    font-size: 2.4rem;
  }
}

.tp-note {
  margin: 16px 0;

  &:first-child {
    margin-top: 0;
  }

  &:last-child {
    margin-bottom: 0;
  }
}

.tp-info {
  margin: 24px 0;
  padding: 20px;
  background: #f0fdf8;
  border: 1px solid #00d37e;
  border-radius: 8px;

  a {
    color: #004fcb;
  }
}

.tp-info__title {
  margin: 0 0 16px;
  padding-left: 32px;
  background: url(../image/icon/info.svg) left center / 24px 24px no-repeat;
  font-size: 1.4rem;
  font-weight: bold;

  @media (min-width: 768px) {
    table-layout: fixed;
    font-size: 1.6rem;
  }
}

.tp-info__text {
  margin-top: 10px;
}

.tp-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 1.4rem;

  @media (min-width: 768px) {
    table-layout: fixed;
    font-size: 1.6rem;
  }

  th,
  td {
    border: 1px solid #dadada;
  }

  thead {
    background: #f5fcff;
    font-size: 1.6rem;
    font-weight: bold;
    text-align: center;
    line-height: 1;

    th {
      padding: 16px 8px;
      border: 1px solid #dadada;

      @media (min-width: 768px) {
        padding: 16px;
      }
    }

    span {
      display: block;
      margin-top: 8px;
      font-size: 1.2rem;
      font-weight: normal;
    }
  }

  tbody {
    th {
      padding: 8px;
      background: #f9f9f9;
      font-weight: normal;
      text-align: left;

      @media (min-width: 768px) {
        padding: 8px 16px;
      }
    }

    td {
      padding: 8px;
      /* font-weight: bold; */
      text-align: right;

      @media (min-width: 768px) {
        padding: 8px 16px;
      }
    }
  }
}

.tp-table__bid {
  color: #6ab994;
}

.tp-about {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;

  @media (min-width: 1024px) {
    flex-direction: row;
    gap: 64px;
  }
}

.tp-about__side figure {
  text-align: center;

  @media (min-width: 1024px) {
    min-width: 500px;
  }
}

.tp-about__title {
  margin: 24px 0 16px;
  font-size: 1.6rem;
  font-weight: bold;

  &:first-child {
    margin-top: 0;
  }

  @media (min-width: 768px) {
    font-size: 1.8rem;
  }
}

.tp-faq {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tp-faq__question {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  padding: 24px 0 0;
  margin-bottom: 16px;
  font-size: 1.6rem;
  font-weight: bold;

  &:first-child {
    padding-top: 0;
  }

  &:before {
    content: "Q.";
  }

  @media (min-width: 768px) {
    padding: 24px 20px 0;
    font-size: 1.8rem;
  }
}

.tp-faq__answer {
  padding: 0 0 24px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 1.4rem;

  &:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }

  @media (min-width: 768px) {
    padding: 0 20px 24px;
    font-size: 1.6rem;
  }
}

.tp-card {
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2);
  color: inherit;

  @media (min-width: 768px) {
    padding: 30px;
  }
}

.tp-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: auto;
  gap: 16px;
  align-items: stretch;

  @media (min-width: 768px) {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
  }

  .tp-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    text-align: center;
  }
}

.tp-link {
  display: contents;
}

.tp-link:first-child .tp-card {
  grid-column: 1 / -1;

  @media (min-width: 768px) {
    grid-column: auto;
  }
}

.tp-link__title {
  display: block;
  margin: 0 0 10px;
  color: inherit;
  font-size: 1.4rem;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;

  @media (min-width: 768px) {
    font-size: 1.8rem;
  }
}

.tp-link__icon {
  margin-bottom: 24px;
  line-height: 0;

  svg {
    width: 40px;
    height: 40px;

    @media (min-width: 768px) {
      width: 64px;
      height: 64px;
    }
  }
}

.tp-chart {
  position: relative;
  margin-bottom: 16px;
  height: 64px;

  svg {
    position: absolute;
    inset: 0;
    margin: auto;
  }
}

.tp-chart__symbol {
  width: 98px;
  height: 64px;
}

#today-widget {
  &::part(table) {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 1.2rem;

    @media (min-width: 768px) {
      table-layout: fixed;
      font-size: 1.6rem;
    }
  }

  &::part(link) {
    color: #004fcb;
    text-decoration: none;

    &:hover {
      text-decoration: underline;
    }
  }

  &::part(col-header) {
    padding: 16px 8px;
    background: #f5fcff;
    border: 1px solid #dadada;
    font-weight: bold;
    text-align: center;
    line-height: 1;

    @media (min-width: 768px) {
      padding: 16px;
    }
  }

  &::part(col-header-sub) {
    display: block;
    margin-top: 8px;
    font-size: 1.2rem;
    font-weight: normal;
  }

  &::part(row-header) {
    background: #f9f9f9;
    padding: 8px;
    border: 1px solid #dadada;
    text-align: left;

    @media (min-width: 768px) {
      padding: 8px 16px;
    }
  }

  &::part(row-header-sub) {
    font-size: 1.2rem;
    font-weight: normal;
  }

  &::part(data-cell) {
    padding: 8px;
    border: 1px solid #dadada;
    text-align: right;

    @media (min-width: 768px) {
      padding: 8px 16px;
    }
  }

  &::part(value) {
    font-size: 1.4rem;
    font-weight: bold;

    @media (min-width: 768px) {
      font-size: 2.4rem;
    }
  }

  &::part(change) {
    font-size: 1.2rem;
    white-space: nowrap;
  }

  &::part(minus) {
    color: #3172ca;
  }

  &::part(plus) {
    color: #ea3d32;
  }

  &::part(calculation) {
    margin: 24px 0 0;
    padding: 10px;
    border: 1px solid #dadada;

    @media (min-width: 768px) {
      text-align: center;
    }
  }

  &::part(calculation-value) {
    font-weight: bold;
  }
}
