/* ========================================
   パンくずリスト
   ======================================== */
.p-single-breadcrumb {
  margin-bottom: 0;
}

.p-single-breadcrumb__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-single-breadcrumb__item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  color: #8e8e8e;
  font-weight: 500;
}

.p-single-breadcrumb__item + .p-single-breadcrumb__item::before {
  content: "／";
  margin: 0 6px;
  color: #c8c8c8;
}

.p-single-breadcrumb__link {
  color: #8e8e8e;
  text-decoration: none;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
}

.p-single-breadcrumb__link:hover {
  color: #3d87de;
}

.p-single-breadcrumb__item--current {
  color: #181818;
  font-weight: 500;
}

@media print, screen and (width >= 768px) {
  .p-single-breadcrumb {
    margin-bottom: 40px;
  }
  .p-single-breadcrumb__item {
    font-size: 0.16rem;
  }
}
@media screen and (width < 768px) {
  .p-single-breadcrumb {
    margin-bottom: 0.3rem;
  }
  .p-single-breadcrumb__item {
    font-size: 0.14rem;
  }
}


/* ========================================
   Topics シングル：ヘッダー
   ======================================== */
.p-single-topics {
  position: relative;
}

.p-single-topics__header {
  margin-bottom: 0;
}

.p-single-topics__tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
}

.p-single-topics__tag--construction { background: #002279; }
.p-single-topics__tag--volunteer    { background: #3d87de; }
.p-single-topics__tag--other        { background: #d71e1e; }

.p-single-topics__date {
  display: block;
  color: #8e8e8e;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.p-single-topics__title {
  margin-bottom: 0;
  color: #181818;
  font-weight: 700;
  line-height: 1.4;
}

@media print, screen and (width >= 768px) {
  .p-single-topics {
    padding-top: 80px;
    padding-bottom: 100px;
  }
  .p-single-topics__header {
    margin-bottom: 40px;
  }
  .p-single-topics__tag {
    margin-bottom: 12px;
  }
  .p-single-topics__date {
    margin-bottom: 16px;
    font-size: 0.15rem;
  }
  .p-single-topics__title {
    font-size: 0.38rem;
  }
}
@media screen and (width < 768px) {
  .p-single-topics {
    padding-top: 0.5rem;
    padding-bottom: 0.8rem;
  }
  .p-single-topics__header {
    margin-bottom: 0.3rem;
  }
  .p-single-topics__tag {
    margin-bottom: 0.1rem;
  }
  .p-single-topics__date {
    margin-bottom: 0.1rem;
    font-size: 0.14rem;
  }
  .p-single-topics__title {
    font-size: 0.26rem;
  }
}


/* ========================================
   お知らせ シングル：ヘッダー
   ======================================== */
.p-single-notice {
  position: relative;
}

.p-single-notice__header {
  margin-bottom: 0;
}

.p-single-notice__date {
  display: block;
  color: #8e8e8e;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.p-single-notice__title {
  margin-bottom: 0;
  color: #181818;
  font-weight: 700;
  line-height: 1.4;
}

@media print, screen and (width >= 768px) {
  .p-single-notice {
    padding-top: 80px;
    padding-bottom: 100px;
  }
  .p-single-notice__header {
    margin-bottom: 40px;
  }
  .p-single-notice__date {
    margin-bottom: 16px;
    font-size: 0.15rem;
  }
  .p-single-notice__title {
    font-size: 0.38rem;
  }
}
@media screen and (width < 768px) {
  .p-single-notice {
    padding-top: 0.5rem;
    padding-bottom: 0.8rem;
  }
  .p-single-notice__header {
    margin-bottom: 0.3rem;
  }
  .p-single-notice__date {
    margin-bottom: 0.1rem;
    font-size: 0.14rem;
  }
  .p-single-notice__title {
    font-size: 0.26rem;
  }
}


/* ========================================
   アイキャッチ（共通）
   ======================================== */
.p-single-topics__thumbnail,
.p-single-notice__thumbnail {
  overflow: hidden;
}

.p-single-topics__thumbnail-img,
.p-single-notice__thumbnail-img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

@media print, screen and (width >= 768px) {
  .p-single-topics__thumbnail,
  .p-single-notice__thumbnail {
    max-width: 800px;
    height: 480px;
    margin-bottom: 60px;
  }
}
@media screen and (width < 768px) {
  .p-single-topics__thumbnail,
  .p-single-notice__thumbnail {
    height: 2.4rem;
    margin-right: -0.2rem;
    margin-left: -0.2rem;
    margin-bottom: 0.4rem;
  }
}


/* ========================================
   本文エリア（共通）
   ======================================== */
.p-single-topics__body,
.p-single-notice__body {
  color: #181818;
  line-height: 1.9;
  font-weight: 400;
}

/* ---- 本文内の要素スタイル ---- */
.p-single-topics__body p,
.p-single-notice__body p {
  margin-bottom: 1.6em;
}

.p-single-topics__body p:last-child,
.p-single-notice__body p:last-child {
  margin-bottom: 0;
}

.p-single-topics__body h2,
.p-single-notice__body h2 {
  position: relative;
  padding-left: 20px;
  font-weight: 700;
  color: #181818;
  border-left: 5px solid #d71e1e;
  line-height: 1.4;
}

.p-single-notice__body h2 {
  border-color: #3d87de;
}

.p-single-topics__body h3,
.p-single-notice__body h3 {
  font-weight: 700;
  color: #181818;
  border-bottom: 2px solid #e8e8e8;
  line-height: 1.4;
}

.p-single-topics__body h4,
.p-single-notice__body h4 {
  font-weight: 700;
  color: #181818;
  line-height: 1.4;
}

.p-single-topics__body ul,
.p-single-notice__body ul {
  padding-left: 1.5em;
  margin-bottom: 1.6em;
}

.p-single-topics__body ul li,
.p-single-notice__body ul li {
  position: relative;
  margin-bottom: 0.4em;
  list-style: none;
  padding-left: 1em;
}

.p-single-topics__body ul li::before,
.p-single-notice__body ul li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: #d71e1e;
}

.p-single-notice__body ul li::before {
  color: #3d87de;
}

.p-single-topics__body ol,
.p-single-notice__body ol {
  padding-left: 1.8em;
  margin-bottom: 1.6em;
}

.p-single-topics__body ol li,
.p-single-notice__body ol li {
  margin-bottom: 0.4em;
}

.p-single-topics__body a,
.p-single-notice__body a {
  color: #d71e1e;
  text-decoration: underline;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.p-single-notice__body a {
  color: #3d87de;
}

.p-single-topics__body a:hover,
.p-single-notice__body a:hover {
  opacity: 0.7;
}

.p-single-topics__body img,
.p-single-notice__body img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1.6em;
}

.p-single-topics__body table,
.p-single-notice__body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.6em;
}

.p-single-topics__body table th,
.p-single-topics__body table td,
.p-single-notice__body table th,
.p-single-notice__body table td {
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  font-weight: 400;
  line-height: 1.7;
}

.p-single-topics__body table th,
.p-single-notice__body table th {
  font-weight: 700;
  background-color: rgba(215, 30, 30, 0.05);
}

.p-single-notice__body table th {
  background-color: rgba(61, 135, 222, 0.05);
}

@media print, screen and (width >= 768px) {
  .p-single-topics__body,
  .p-single-notice__body {
    font-size: 0.18rem;
    margin-bottom: 80px;
  }
  .p-single-topics__body h2,
  .p-single-notice__body h2 {
    margin-bottom: 24px;
    font-size: 0.3rem;
  }
  .p-single-topics__body h3,
  .p-single-notice__body h3 {
    margin-bottom: 20px;
    padding-bottom: 12px;
    font-size: 0.25rem;
  }
  .p-single-topics__body h4,
  .p-single-notice__body h4 {
    margin-bottom: 16px;
    font-size: 0.22rem;
  }
  .p-single-topics__body table th,
  .p-single-topics__body table td,
  .p-single-notice__body table th,
  .p-single-notice__body table td {
    font-size: 0.17rem;
  }
}
@media screen and (width < 768px) {
  .p-single-topics__body,
  .p-single-notice__body {
    font-size: 0.16rem;
    margin-bottom: 0.6rem;
  }
  .p-single-topics__body h2,
  .p-single-notice__body h2 {
    margin-bottom: 0.18rem;
    padding-left: 0.14rem;
    font-size: 0.22rem;
  }
  .p-single-topics__body h3,
  .p-single-notice__body h3 {
    margin-bottom: 0.14rem;
    padding-bottom: 0.1rem;
    font-size: 0.2rem;
  }
  .p-single-topics__body h4,
  .p-single-notice__body h4 {
    margin-bottom: 0.12rem;
    font-size: 0.18rem;
  }
  .p-single-topics__body table,
  .p-single-notice__body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .p-single-topics__body table th,
  .p-single-topics__body table td,
  .p-single-notice__body table th,
  .p-single-notice__body table td {
    font-size: 0.15rem;
    white-space: nowrap;
  }
}


/* ========================================
   前後の記事ナビ（共通）
   ======================================== */
.p-single-post-nav {
  border-top: 1px solid #e0e0e0;
}

.p-single-post-nav__inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.p-single-post-nav__prev,
.p-single-post-nav__next {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

.p-single-post-nav__next {
  text-align: right;
}

.p-single-post-nav__back {
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.p-single-post-nav__link {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #181818;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.p-single-post-nav__link:hover {
  opacity: 0.6;
}

.p-single-post-nav__label {
  font-weight: 700;
  font-size: 13px;
  color: #8e8e8e;
  display: block;
  letter-spacing: 0.05em;
}

.p-single-post-nav__title {
  display: block;
  font-weight: 500;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 矢印（前） */
.p-single-post-nav__arrow--prev {
  display: block;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  position: relative;
  border-radius: 50%;
  border: 2px solid #d71e1e;
}

.p-single-post-nav__arrow--prev::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-top: 2px solid #d71e1e;
  border-left: 2px solid #d71e1e;
  -webkit-transform: translate(-30%, -50%) rotate(-45deg);
  transform: translate(-30%, -50%) rotate(-45deg);
}

/* 矢印（次） */
.p-single-post-nav__arrow--next {
  display: block;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  position: relative;
  border-radius: 50%;
  border: 2px solid #d71e1e;
}

.p-single-post-nav__arrow--next::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-top: 2px solid #d71e1e;
  border-right: 2px solid #d71e1e;
  -webkit-transform: translate(-70%, -50%) rotate(45deg);
  transform: translate(-70%, -50%) rotate(45deg);
}

/* 一覧に戻るボタン */
.p-single-post-nav__back-link {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  border-radius: 40px;
  background-color: #d71e1e;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.05em;
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;

}

.p-single-post-nav__back-link:hover {
  opacity: 0.8;
}

@media print, screen and (width >= 768px) {
  .p-single-post-nav {
    padding-top: 48px;
  }
  .p-single-post-nav__inner {
    gap: 40px;
  }
  .p-single-post-nav__title {
    max-width: 200px;
    font-size: 0.16rem;
  }
  .p-single-post-nav__arrow--prev,
  .p-single-post-nav__arrow--next {
    width: 40px;
    height: 40px;
  }
  .p-single-post-nav__arrow--prev::before,
  .p-single-post-nav__arrow--next::before {
    width: 8px;
    height: 8px;
  }
  .p-single-post-nav__back-link {
    min-width: 180px;
    padding: 14px 28px;
    font-size: 0.17rem;
  }
}
@media screen and (width < 768px) {
  .p-single-post-nav {
    padding-top: 0.4rem;
  }
  .p-single-post-nav__inner {
    gap: 0.2rem;
  }
  .p-single-post-nav__title {
    max-width: 1.2rem;
    font-size: 0.14rem;
  }
  .p-single-post-nav__arrow--prev,
  .p-single-post-nav__arrow--next {
    width: 0.34rem;
    height: 0.34rem;
  }
  .p-single-post-nav__arrow--prev::before,
  .p-single-post-nav__arrow--next::before {
    width: 0.07rem;
    height: 0.07rem;
  }
  .p-single-post-nav__back-link {
    min-width: 1.4rem;
    padding: 0.12rem 0.2rem;
    font-size: 0.15rem;
  }
}

/* ========================================
   サイドバーなし：フル幅レイアウト
   ======================================== */

/* l-wrapperからサイドバーを除いたフル幅 */
.p-single-topics--full,
.p-single-notice--full {
  width: 100%;
}

@media print, screen and (width >= 768px) {
  .p-single-topics--full,
  .p-single-notice--full {
    padding-top: 80px;
    padding-bottom: 100px;
    padding-right: 60px;
  }
}
@media screen and (width < 768px) {
  .p-single-topics--full,
  .p-single-notice--full {
    padding-top: 0.5rem;
    padding-bottom: 0.8rem;
  }
}


/* ========================================
   Topics キービジュアル：タイトルを横書きに
   ======================================== */
.c-section-keyvisual__title--horizontal {
  -webkit-writing-mode: horizontal-tb;
  -ms-writing-mode: lr-tb;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  letter-spacing: 0.05em;
  white-space: nowrap;
  /* 画像に重なる位置に配置 */
  position: absolute;
  z-index: 2;
}

@media print, screen and (width >= 768px) {
  .c-section-keyvisual__title--horizontal {
    bottom: 40px;
    left: 40px;
    font-size: 0.7rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  }
}
@media screen and (width < 768px) {
  .c-section-keyvisual__title--horizontal {
    bottom: 0.2rem;
    left: 0.2rem;
    font-size: 0.4rem;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  }
}