@charset "UTF-8";

/* ============================================
   NEWS Page Styles - Cloud9 Corporate Site
   ============================================ */

/* ----------------------------------------
   NEWS Single Header - 詳細ページヘッダー
   ---------------------------------------- */
.news-single-header {
  position: relative;
  background: var(--color-bg-light);
  padding: 140px 0 50px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .news-single-header {
    padding: 160px 0 50px;
  }
}
@media (min-width: 1024px) {
  .news-single-header {
    padding: 180px 0 55px;
  }
}

.news-single-header::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg-light);
  z-index: -1;
}

.news-single-header__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
  overflow: visible;
}

/* 背景装飾（9マーク） - コンテナ基準で配置（innerの中に配置） */
.news-single-header__bg {
  position: absolute;
  top: -240px;
  right: 65px;
  width: 489px;
  height: 657px;
  background: url("../images/cloud9-symbol-white.svg") no-repeat right top;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
}

/* タイトル行 */
.news-single-header__title-row {
  display: flex;
  align-items: baseline;
  gap: 30px;
  position: relative;
  z-index: 1;
}

.news-single-header__title {
  font-family: var(--font-family-heading);
  font-size: 60px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-single-header__link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family-accent);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-black);
  text-decoration: none;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.news-single-header__link:hover {
  opacity: 0.7;
}

.news-single-header__icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url("../images/icon-circle-black.svg") no-repeat center;
  background-size: contain;
  flex-shrink: 0;
  position: relative;
  top: 1px;
}

/* 記事メタ情報 */
.news-single-header__meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.news-single-header__date {
  font-family: var(--font-family-accent);
  font-size: 18px;
  font-weight: 900;
  color: var(--color-black);
  line-height: 1.85;
}

.news-single-header__category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  height: 34px;
  background: var(--gradient-primary);
  border-radius: 100px;
  font-family: var(--font-family-accent);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

/* 記事タイトル */
.news-single-header__article-title {
  font-family: var(--font-family-accent);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.8;
  margin-top: 20px;
  position: relative;
  z-index: 1;
  word-break: break-all;
  overflow-wrap: break-word;
}

/* ニュース詳細ヘッダー背景画像 */
.news-single-header__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}
.news-single-header__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.news-single-header--has-image {
  background: transparent;
}
.news-single-header--has-image::before {
  display: none;
}
.news-single-header--has-image .news-single-header__inner {
  position: relative;
  z-index: 1;
}
.news-single-header--has-image .news-single-header__title {
  color: var(--color-white);
}
.news-single-header--has-image .news-single-header__link {
  color: var(--color-white);
}
.news-single-header--has-image .news-single-header__icon {
  background-image: url("../images/icon-circle-white.svg");
}
.news-single-header--has-image .news-single-header__date {
  color: var(--color-white);
}
.news-single-header--has-image .news-single-header__category {
  color: var(--color-white);
  border-color: var(--color-white);
}
.news-single-header--has-image .news-single-header__article-title {
  color: var(--color-white);
}
.news-single-header--has-image .news-single-header__bg {
  display: none;
}

/* ----------------------------------------
   NEWS Archive - 一覧ページ
   ---------------------------------------- */
.news-archive {
  padding: 100px 0 150px;
  background-color: var(--color-white);
}

.news-archive__inner {
  max-width: 710px;
  margin: 0 auto;
  padding: 0 20px;
}

.news-archive__empty {
  text-align: center;
  font-family: var(--font-family-accent);
  font-size: 16px;
  color: var(--color-text-light);
  padding: 60px 0;
}


/* ----------------------------------------
   NEWS List - 記事一覧
   ---------------------------------------- */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.news-list__item {
  position: relative;
}

.news-list__item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 895px;
  max-width: calc(100vw - 40px);
  height: 1px;
  background-color: var(--color-bg-light-gray);
}

.news-list__link {
  display: flex;
  align-items: center;
  padding: 20px 0;
  min-height: 74px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.news-list__link:hover {
  opacity: 0.7;
}

.news-list__date {
  flex-shrink: 0;
  width: 100px;
  font-family: var(--font-family-accent);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.85;
  color: var(--color-black);
}

.news-list__category {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 114px;
  height: 34px;
  padding: 0 16px;
  margin-right: 25px;
  border-radius: 100px;
  background: var(--gradient-primary);
  font-family: var(--font-family-accent);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
  white-space: nowrap;
}

.news-list__title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-family-accent);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.75;
  color: var(--color-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ----------------------------------------
   Pagination - ページネーション
   ---------------------------------------- */
.news-pagination {
  display: flex;
  justify-content: center;
  margin-top: 80px;
}

.news-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-pagination .page-numbers li {
  display: flex;
}

.news-pagination .page-numbers a,
.news-pagination .page-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 100px;
  font-family: var(--font-family-accent);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.news-pagination .page-numbers a {
  background: var(--color-white);
  color: var(--color-black);
}

.news-pagination .page-numbers a:hover {
  opacity: 0.7;
}

/* 前へ/次への矢印を非表示 */
.news-pagination .page-numbers .prev,
.news-pagination .page-numbers .next {
  display: none;
}

.news-pagination .page-numbers span.current {
  background: var(--color-gray-medium);
  color: var(--color-white);
}

.news-pagination .page-numbers .dots {
  background: transparent;
  box-shadow: none;
  width: auto;
  padding: 0 5px;
}

/* PC/SP切り替え */
.news-pagination--sp {
  display: none;
}
@media (max-width: 767px) {
  .news-pagination--pc {
    display: none;
  }
  .news-pagination--sp {
    display: flex;
  }
}

/* ----------------------------------------
   NEWS Single - 詳細ページ
   ---------------------------------------- */
.news-single {
  padding: 100px 0 150px;
  background-color: var(--color-white);
}

.news-single__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Meta Info */
.news-single__meta {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 20px;
}

.news-single__date {
  font-family: var(--font-family-accent);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.85;
  color: var(--color-black);
}

.news-single__category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 114px;
  height: 34px;
  padding: 0 16px;
  border-radius: 100px;
  background: var(--gradient-primary);
  font-family: var(--font-family-accent);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
  white-space: nowrap;
}

/* Title */
.news-single__title {
  font-family: var(--font-family-accent);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--color-black);
  margin: 0 0 50px;
}

/* Thumbnail */
.news-single__thumbnail {
  margin: 0 0 50px;
  background-color: var(--color-bg-gray);
  border-radius: 8px;
  overflow: hidden;
}

.news-single__thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Content */
.news-single__content {
  font-family: var(--font-family-accent);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--color-black);
}

.news-single__content h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  margin: 40px 0 20px;
}

.news-single__content h2:first-child {
  margin-top: 0;
}

.news-single__content h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  margin: 30px 0 15px;
}

.news-single__content p {
  margin: 0 0 28px;
}

.news-single__content p:last-child {
  margin-bottom: 0;
}

.news-single__content ul,
.news-single__content ol {
  margin: 0 0 28px;
  padding-left: 1.5em;
}

.news-single__content li {
  margin-bottom: 8px;
}

.news-single__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

.news-single__content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.news-single__content a:hover {
  text-decoration: none;
}

/* Back Link */
.news-single__back {
  margin-top: 80px;
  text-align: center;
}

.news-single__back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.news-single__back-link:hover .news-single__back-text {
  color: var(--color-primary);
}

.news-single__back-icon {
  width: 22px;
  height: 22px;
  transform: rotate(-90deg);
  flex-shrink: 0;
}

.news-single__back-text {
  font-family: var(--font-family-accent);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1;
  transition: color 0.3s ease;
}

/* ----------------------------------------
   Responsive - SP対応
   ---------------------------------------- */
@media screen and (max-width: 767px) {
  /* Single Header */
  .news-single-header {
    padding: 100px 0 40px;
  }

  .news-single-header__bg {
    top: auto;
    bottom: -40px;
    right: -50px;
    width: 280px;
    height: 376px;
    background-position: right bottom;
  }

  .news-single-header__title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .news-single-header__title {
    font-size: 40px;
  }

  .news-single-header__link {
    font-size: 16px;
  }

  .news-single-header__icon {
    width: 14px;
    height: 14px;
  }

  .news-single-header__meta {
    margin-top: 30px;
    gap: 10px;
  }

  .news-single-header__date {
    font-size: 14px;
  }

  .news-single-header__category {
    font-size: 14px;
    height: 28px;
    padding: 0 15px;
  }

  .news-single-header__article-title {
    font-size: 22px;
    line-height: 1.6;
  }

  /* Archive - SP版: カード形式（TOPページと同じ） */
  .news-archive {
    padding: 60px 0 100px;
  }
  .news-archive__inner {
    padding: 0 30px;
  }
  .news-list {
    gap: 15px;
  }
  .news-list__item {
    background: var(--color-white);
    border-radius: 0;
    border-bottom: 1px solid var(--color-bg-light-gray);
  }
  .news-list__item::after {
    display: none;
  }
  .news-list__link {
    display: grid;
    grid-template-columns: auto auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 8px 12px;
    padding: 16px 20px;
    min-height: auto;
  }
  .news-list__date {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    font-family: var(--font-family-accent);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.85;
    margin-right: 0;
  }
  .news-list__category {
    grid-column: 2;
    grid-row: 1;
    min-width: 70px;
    height: 20px;
    padding: 2px 12px;
    font-family: var(--font-family-accent);
    font-size: 9px;
    font-weight: 700;
    margin-right: 0;
  }
  .news-list__title {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin-top: 0;
    font-family: var(--font-family-accent);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.85;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Pagination */
  .news-pagination {
    margin-top: 50px;
  }

  .news-pagination .page-numbers {
    gap: 8px;
  }

  .news-pagination .page-numbers a,
  .news-pagination .page-numbers span {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  /* Single */
  .news-single {
    padding: 50px 0 80px;
  }

  .news-single__inner {
    padding: 0 15px;
  }

  .news-single__meta {
    gap: 15px;
    margin-bottom: 15px;
  }

  .news-single__date {
    font-size: 14px;
  }

  .news-single__category {
    min-width: auto;
    height: 26px;
    padding: 0 12px;
    font-size: 12px;
  }

  .news-single__title {
    font-size: 22px;
    margin-bottom: 30px;
  }

  .news-single__thumbnail {
    margin-bottom: 30px;
  }

  .news-single__content {
    font-size: 14px;
  }

  .news-single__content h2 {
    font-size: 20px;
    margin: 30px 0 15px;
  }

  .news-single__content h3 {
    font-size: 18px;
    margin: 25px 0 12px;
  }

  .news-single__content p {
    margin-bottom: 20px;
  }

  .news-single__back {
    margin-top: 50px;
  }

  .news-single__back-icon {
    width: 18px;
    height: 18px;
  }

  .news-single__back-text {
    font-size: 16px;
  }
}
