@charset "UTF-8";

/* SPのみの補足要素はPCでは表示しない。 */
.p-report-hero__en,
.p-report-annual__charts-sp {
  display: none;
}

.p-report-annual__table {
  display: contents;
}

@media (width <= 767px) {
  /* Blog / NEWS use the same supplied 393px hero, list and article patterns. */
  .p-editorial-hero {
    height: 184px;
    background: transparent;
    mask: none;
  }

  .p-editorial-hero::before {
    top: auto;
    right: auto;
    bottom: 0;
    left: 50%;
    /* 393pxカンプの左右120pxのはみ出しを、幅広のSPでも保つ。 */
    width: max(633px, calc(100% + 240px));
    height: 224px;
    /* XD の633×224pxの角丸を、背景の横拡大と同じ比率で伸ばす。 */
    border-radius: 0 0 calc(100% * 224 / 633) calc(100% * 224 / 633) / 0 0 100% 100%;
    background: var(--color-main) url("../img/page-hero-bg-sp.webp") center / cover no-repeat;
    translate: -50% 0;
  }

  .p-editorial-hero__inner {
    position: absolute;
    top: 59px;
    left: 24px;
    margin-top: 0;
    text-align: left;
  }

  .p-editorial-hero__en {
    margin: 0 0 10px var(--space-2xs);
    font-size: var(--fs-md);
    line-height: 17px;
  }

  .p-editorial-hero__title img {
    width: auto;
    height: 50px;
    max-width: 100%;
  }

  .p-editorial-breadcrumb {
    position: absolute;
    top: 15px;
    right: 24px;
    left: 24px;
    display: flex;
    gap: 0 6px;
    color: var(--color-dark);
    font-size: var(--fs-xs);
    line-height: 20px;
  }

  .p-editorial-breadcrumb a {
    color: inherit;
  }

  .p-editorial-hero .p-editorial-breadcrumb {
    color: var(--color-white);
  }

  .p-editorial-archive,
  .p-editorial-archive--blog {
    display: flex;
    flex-direction: column;
    gap: 50px;
    width: calc(100% - 48px);
    padding-top: 50px;
    padding-bottom: 92px;
  }

  .p-editorial-archive__main,
  .p-editorial-category {
    width: 100%;
    min-width: 0;
  }

  .p-editorial-category {
    order: -1;
  }

  .p-editorial-category__title {
    margin-bottom: 10px;
    font-size: var(--fs-xl);
    line-height: 30px;
  }

  .p-editorial-category__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .p-editorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 21px;
    margin-top: 0;
  }

  .p-editorial-card {
    min-height: 208px;
    height: auto;
  }

  .p-editorial-card__image {
    height: auto;
    aspect-ratio: 162 / 114;
  }

  .p-editorial-card__date {
    margin-top: 10px;
    font-size: 1.1rem;
    line-height: 20px;
  }

  .p-editorial-card__title {
    font-size: var(--fs-sm);
    line-height: 22px;
  }

  .p-editorial-card__foot {
    display: block;
    margin-top: 0;
  }

  .p-editorial-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: var(--fs-xs);
    line-height: 20px;
    white-space: normal;
  }

  .p-editorial-card__excerpt br,
  .p-editorial-card__arrow {
    display: none;
  }

  .p-editorial-pagination {
    width: 100%;
    margin-top: 50px;
  }

  .p-editorial-archive--news .p-editorial-pagination {
    margin-top: 40px;
  }

  .p-editorial-news {
    margin-left: 0;
  }

  .p-editorial-news__item {
    height: auto;
    min-height: 104px;
    border-top-width: 2px;
  }

  .p-editorial-news__item:last-child {
    box-shadow: inset 0 -2px var(--color-line);
  }

  .p-editorial-news__link {
    position: relative;
    display: block;
    min-height: 102px;
    padding: var(--space-sm) 28px 20px 0;
  }

  .p-editorial-news__date {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 400;
    line-height: 22px;
  }

  .p-editorial-news__title {
    margin-top: 0;
    font-size: var(--fs-md);
    line-height: 24px;
    white-space: normal;
  }

  .p-editorial-news__title .c-news-new {
    margin-right: var(--space-2xs);
  }

  .p-editorial-news__arrow {
    position: absolute;
    top: 50%;
    right: 0;
    translate: 0 -50%;
  }

  .p-editorial-post {
    position: relative;
    padding: 70px 0;
  }

  .p-editorial-post__inner {
    width: 100%;
  }

  .p-editorial-post__head {
    margin-inline: var(--space-md);
  }

  .p-editorial-post__title {
    margin-top: 15px;
    font-size: 2.4rem;
    line-height: 36px;
    overflow-wrap: anywhere;
  }

  .p-editorial-post__date {
    font-size: var(--fs-sm);
    line-height: 22px;
  }

  .p-editorial-post__body {
    margin: 29px var(--space-sm) 0;
    padding: 30px var(--space-md) 40px;
    border-radius: 30px;
  }

  .p-editorial-post__image {
    height: auto;
    aspect-ratio: 313 / 200;
  }

  .p-editorial-post__body.c-entry-content {
    font-size: var(--fs-sm);
    line-height: 25px;
  }

  .p-editorial-post__body.c-entry-content > .p-editorial-post__image + p {
    margin-top: 30px;
  }

  .p-editorial-post__body.c-entry-content :where(h2) {
    margin-top: var(--space-lg);
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--fs-xl);
  }

  .p-editorial-post__body.c-entry-content :where(h3) {
    font-size: 1.8rem;
  }

  .p-editorial-post__body.c-entry-content table :is(th, td) {
    padding: var(--space-2xs);
    overflow-wrap: anywhere;
  }

  .p-editorial-post__body.c-entry-content :where(.wp-block-button__link) {
    max-width: 100%;
    padding-inline: var(--space-sm);
  }

  .p-editorial-back {
    margin-top: 40px;
  }

  /* The supplied report has a horizontal title and vertically stacked diagrams. */
  .p-report__inner,
  .p-report-hero__inner {
    width: calc(100% - 48px);
  }

  .p-report-hero {
    height: auto;
  }

  .p-report-hero__inner {
    height: auto;
    padding: 204px 0 2px;
  }

  .p-report-hero::before {
    top: 0;
    height: 254px;
    mask: none;
  }

  .p-report-hero__en {
    position: absolute;
    top: 41px;
    left: 8px;
    display: block;
    color: var(--color-white);
    font-size: var(--fs-md);
    font-weight: 600;
    line-height: 17px;
  }

  .p-report-hero__title {
    top: 68px;
    width: min(338px, 100%);
    height: auto;
  }

  .p-report-hero__photo {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 345 / 240;
    border-radius: var(--radius-md);
  }

  .p-report-hero__photo picture {
    display: block;
  }

  .p-report-hero__photo img {
    position: static;
    width: 100%;
    height: auto;
  }

  .p-report-hero .p-editorial-breadcrumb {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    width: auto;
    margin-top: 13px;
  }

  .p-report-hero__nav {
    position: static;
    width: 100%;
    margin-top: 23px;
  }

  .p-report-hero__nav a {
    height: 44px;
    padding-top: 0;
    color: var(--color-dark);
    font-size: 1.3rem;
    line-height: 20px;
  }

  .p-report__columns {
    display: block;
  }

  .p-report__eyebrow {
    font-size: var(--fs-sm);
    line-height: 20px;
  }

  .p-report__title {
    font-size: 2.6rem;
    font-weight: 500;
    line-height: 38px;
    white-space: normal;
  }

  .p-report-target {
    padding-top: 40px;
  }

  .p-report-target__body {
    margin-top: 17px;
    padding-top: 0;
  }

  .p-report-target__intro {
    font-size: var(--fs-md);
    line-height: 28px;
    white-space: normal;
  }

  .p-report-target__intro br,
  .p-report-sbt__card br {
    display: none;
  }

  .p-report-target__scopes {
    margin-top: 20px;
    font-size: var(--fs-sm);
    line-height: 24px;
  }

  .p-report-target__scopes > div {
    grid-template-columns: 100px minmax(0, 1fr);
    height: 52px;
  }

  .p-report-annual__charts {
    display: none;
  }

  /* 393px で箱が 361px・図が 321px（XD どおり）。それ以外の幅では図を箱の幅に合わせて縮める */
  .p-report__graphic {
    width: calc(100% + 16px);
    max-width: none;
    margin: 40px -8px 0;
    padding: 24px 20px 29px;
    border-radius: 30px;
  }

  .p-report__graphic img {
    width: 100%;
  }

  .p-report-annual {
    margin-top: 70px;
  }

  .p-report-annual__table {
    display: block;
  }

  .p-report-annual__table-image {
    margin: 13px 0 0;
  }

  .p-report-annual__charts-sp {
    display: grid;
    gap: 20px;
    margin-top: var(--space-md);
  }

  .p-report-annual__charts-sp img {
    display: block;
    width: 100%;
    height: auto;
  }

  .p-report-sbt {
    height: auto;
    margin-top: 138px;
    padding: var(--space-xs) 0 79px;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 393 1046' preserveAspectRatio='none'%3E%3Cpath d='M0 0H393V1009C262 1046 131 1046 0 1009Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  }

  .p-report-sbt::before {
    background-image: url("../img/editorial/report-sbt-background-sp.webp");
    opacity: 1;
  }

  .p-report-sbt__card {
    min-height: 0;
    width: calc(100% + 16px);
    margin: 111px -8px 0;
    padding: 120px 20px 36px;
    border-radius: 30px;
    font-size: var(--fs-sm);
    line-height: 25px;
  }

  .p-report-sbt__card p {
    white-space: normal;
  }

  .p-report-sbt__logo {
    top: -90px;
    right: 50%;
    width: min(285px, calc(100% - 40px));
    height: auto;
    padding: var(--space-xs) 20px;
    border-radius: 24px;
    translate: 50% 0;
  }

  .p-report-sbt__logo img {
    width: 100%;
    height: auto;
    aspect-ratio: 245 / 156;
  }

  .p-report-sbt__definition {
    margin-top: 30px;
  }

  .p-report-sbt__definition + .p-report-sbt__definition {
    margin-top: 26px;
  }

  .p-report-sbt__definition h3 {
    font-size: 1.7rem;
    line-height: 26px;
  }

  .p-report-sbt__definition p {
    margin-top: var(--space-2xs);
  }

  .p-report__related {
    padding: 60px var(--space-md) 90px;
  }

  .p-report__policy-link {
    width: 100%;
    min-height: 56px;
    padding-inline: 18px;
    font-size: var(--fs-sm);
    font-weight: 500;
    line-height: 22px;
  }
}
