/* ==========================================================================
   News（/news/）
   ========================================================================== */
.p-news-archive .c-news-list__title {
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-offset: 0.2em;
}

.p-news-archive .c-news-list__link--nolink .c-news-list__title {
  text-decoration: none;
}

.p-news-archive .c-pagination {
  margin-top: 0.625rem;
}

.p-news-archive .c-news-list__empty {
  margin-top: 0;
}

/* ==========================================================================
   News detail（/news/news-detail.php）
   ========================================================================== */
.p-news-detail__article {
  padding: 1.5rem 1.25rem 2rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top-width: 5px;
}

.p-news-detail__header {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.p-news-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}

.p-news-detail__meta .c-label {
  width: auto;
  min-width: 5.625rem;
}

.p-news-detail__title {
  margin-top: 0.75rem;
  font-size: var(--fs-20);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-xs);
  line-height: 1.5;
}

.p-news-detail__body {
  display: flow-root;
  margin-top: 1.5rem;
  line-height: 1.9;
}

.p-news-detail__file {
  margin-top: 1.25rem;
}

.p-news-detail__file img {
  margin-inline: auto;
}

.p-news-detail__notfound {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.p-news-detail__back {
  display: flex;
  justify-content: center;
  margin-top: 1.875rem;
}

@media screen and (min-width: 768px) {
  .p-news-detail__article {
    padding: 2.5rem 2.5rem 3rem;
  }

  .p-news-detail__title {
    font-size: var(--fs-24);
  }

  .p-news-detail__body {
    margin-top: 2rem;
  }
}

/* --------------------------------------------------------------------------
   記事本文（管理画面のエディタ出力と、旧サイトから移行した記事の装飾）
   旧サイト（niigata-ad55.jp/css/pages.css の .info）の見た目を、新デザインの幅に合わせて再現
   -------------------------------------------------------------------------- */
.p-news-detail__body p {
  text-align: justify;
  text-indent: 1em;
}

.p-news-detail__body img {
  height: auto;
}

.p-news-detail__body a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.p-news-detail__body h3 {
  margin: 0.5em 0;
  font-size: 1.17em;
  font-weight: var(--fw-bold);
}

.p-news-detail__body h4 {
  font-weight: var(--fw-bold);
}

.p-news-detail__body b,
.p-news-detail__body strong {
  font-weight: var(--fw-bold);
}

.p-news-detail__body ul {
  padding-left: 1.5em;
  list-style: disc;
}

.p-news-detail__body ol {
  padding-left: 1.5em;
  list-style: decimal;
}

.p-news-detail__body hr {
  margin: 1.5em 0;
  border: 0;
  border-top: 1px solid var(--color-gray-light);
}

.p-news-detail__body iframe,
.p-news-detail__body video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0.625rem 0;
}

.p-news-detail__body figure img {
  display: block;
  width: 100%;
}

.p-news-detail__body .clearfix,
.p-news-detail__body .section {
  display: flow-root;
}

.p-news-detail__body .section {
  margin-bottom: 0.9375rem;
}

.p-news-detail__body .mb20 {
  margin-bottom: 1.25rem;
}

.p-news-detail__body .mt,
.p-news-detail__body .mt20 {
  margin-top: 1.25rem;
}

.p-news-detail__body .float-l,
.p-news-detail__body .float-r {
  margin-bottom: 1em;
  background: var(--color-white);
}

.p-news-detail__body .photo-h,
.p-news-detail__body .photo-v {
  max-width: 100%;
  margin-bottom: 0.625rem;
}

.p-news-detail__body .photo-h img,
.p-news-detail__body .photo-v img {
  display: block;
  width: 100%;
  height: auto;
}

.p-news-detail__body .photo-h p,
.p-news-detail__body .photo-v p {
  margin-bottom: 0.625rem;
  font-size: var(--fs-14);
  line-height: 1.6;
  text-indent: 0;
}

.p-news-detail__body .red {
  color: var(--color-red);
}

.p-news-detail__body .underline,
.p-news-detail__body .under_line {
  text-decoration: underline;
}

.p-news-detail__body .center,
.p-news-detail__body .aligncenter {
  text-align: center;
}

.p-news-detail__body .block_center {
  display: block;
  text-align: center;
}

.p-news-detail__body .right {
  display: block;
  text-align: right;
}

.p-news-detail__body .nowrap {
  white-space: nowrap;
}

.p-news-detail__body .indent_no,
.p-news-detail__body .no_indent,
.p-news-detail__body .box02 p,
.p-news-detail__body .flex p {
  text-indent: 0;
}

.p-news-detail__body .pl_1em {
  padding-left: 1em;
}

.p-news-detail__body .pt_10 {
  padding-top: 0.625rem;
}

.p-news-detail__body .space01 {
  padding-right: 0.3125rem;
}

.p-news-detail__body .space02 {
  padding-left: 0.3125rem;
}

.p-news-detail__body .bk-eee {
  clear: both;
  margin: 0.3125rem 0 0.9375rem;
  padding: 0.4375rem;
  background: #eee;
  border-radius: 3px;
}

.p-news-detail__body .cap_bl {
  font-size: var(--fs-16);
  color: #053988;
  text-align: center;
  background: #f0f8fe;
}

.p-news-detail__body .prof_box {
  clear: both;
  margin: 0.9375rem 0;
  padding: 0.625rem;
  font-size: 85%;
  border: 1px solid #333;
}

.p-news-detail__body p.p-bg {
  margin: 1.25rem auto;
  padding: 0.3125rem 0.9375rem;
  color: var(--color-white);
  text-indent: 0;
  background: #3cb3e4;
  border-radius: 0 10px 0 10px;
}

.p-news-detail__body .img img {
  display: block;
  width: 90%;
  margin: 1.25rem auto;
}

.p-news-detail__body .text {
  padding-bottom: 1.25rem;
}

.p-news-detail__body .flex,
.p-news-detail__body .flex_241017,
.p-news-detail__body .flex_241017_02 {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.p-news-detail__body .flex .item p .red {
  color: var(--color-red);
}

.p-news-detail__body .flex_240901 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  margin: 2em 0;
}

.p-news-detail__body .flex_240901 .wide_p {
  width: 79%;
}

.p-news-detail__body .w_80 {
  width: 5rem;
  margin-left: 2.6875rem;
}

.p-news-detail__body .flex_241017 p {
  font-size: var(--fs-14);
  text-indent: 0;
}

.p-news-detail__body .flex_241017 .item.mt {
  margin-top: 0.9375rem;
}

.p-news-detail__body .border241017.flex {
  justify-content: center;
  width: 31.25rem;
  max-width: 100%;
  margin: 0.625rem auto;
  padding: 0.625rem;
  border: 1px solid;
}

.p-news-detail__body .border241017.flex .item p a {
  color: var(--color-red);
}

.p-news-detail__body .flex_241017_02 {
  justify-content: center;
  align-items: center;
}

.p-news-detail__body .flex_241017_02 p,
.p-news-detail__body .flex_241017 p {
  text-indent: 0;
}

.p-news-detail__body .flex_241017_02 p a {
  color: var(--color-text);
}

/* 旧記事「第55回新潟広告賞入選作品・入選社一覧」の個別スタイル */
.p-news-detail__body .nippo_content-list h3 {
  margin-bottom: 0.625rem;
  font-size: 120%;
  color: #900;
  border-bottom: 1px dotted #900;
}

.p-news-detail__body .nippo_content-list h4 {
  font-size: 100%;
}

.p-news-detail__body .nippo_content-list ul {
  margin-bottom: 1.875rem;
  padding-left: 0;
  list-style: disc inside;
}

.p-news-detail__body .nippo_content-list li {
  margin-bottom: 0.625rem;
}

@media screen and (min-width: 768px) {
  .p-news-detail__body .float-l {
    float: left;
    margin-right: 0.625rem;
    padding-right: 0.625rem;
    border-right: 1px solid #ccc;
  }

  .p-news-detail__body .float-r {
    float: right;
    margin-left: 0.625rem;
    padding-left: 0.625rem;
    border-left: 1px solid #ccc;
  }

  .p-news-detail__body .photo-h {
    width: 17.1875rem;
  }

  .p-news-detail__body .photo-v {
    width: 12.5rem;
  }

  .p-news-detail__body .flex,
  .p-news-detail__body .flex_241017,
  .p-news-detail__body .flex_241017_02 {
    flex-direction: row;
    gap: 0;
  }

  .p-news-detail__body .flex_241017 {
    justify-content: space-between;
    width: 100%;
  }

  .p-news-detail__body .flex_241017 .item {
    margin-right: 0.625rem;
  }

  .p-news-detail__body .flex_241017 .item:last-child {
    margin-right: 0;
  }

  .p-news-detail__body .border241017.flex .item:first-child {
    margin-right: 0.625rem;
  }

  .p-news-detail__body .border241017.flex .item:last-child {
    height: 7.5rem;
  }
}
