/********************************
* newsページ用style
********************************/

/* タイトルラッパー */
.p-single__titleWrapper {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* ヘッダー（日時+アイコン） */
.p-single__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem; /* タイトルとの距離を近く */
  gap: 1rem;
}

/* 日付 */
.p-single__date {
  display: block;
  font-size: 0.9rem;
  color: #666;
  white-space: nowrap; /* 日付が折り返されないようにする */
  flex-shrink: 0;
}

/* タイトル */
.p-single__title {
  flex: 1;
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
  writing-mode: horizontal-tb;
  margin: 0;
  padding-bottom: 0; /* パディングを削除 */
  z-index: 1; /* 疑似要素の上に表示 */
}

/* アイコン */
.p-single__icon {
  display: block;
  width: 120px;
  margin-left: auto; /* 左側のスペースを最大化して右寄せ[3] */
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  object-fit: contain;
}

/* セクション */
.p-single__section {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: #f9f9f9;
  border-left: 4px solid #007bff;
  border-radius: 4px;
}

.p-single__subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

/* リスト */
.p-single__list {
  list-style: none;
  padding-left: 0;
}

.p-single__list li {
  padding: 0.75rem 0 0.75rem 2rem;
  position: relative;
  color: #555;
  line-height: 1.6;
}

.p-single__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #007bff;
  font-weight: bold;
  font-size: 1.1rem;
}

/* ハイライト段落 */
.p-single__highlight {
  padding: 1.5rem;
  background-color: #e7f3ff;
  border-radius: 4px;
  color: #0056b3;
  font-weight: 500;
}

/* リンクセクション */
.p-single__links {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
}

.p-single__linkGroup {
  margin-bottom: 1.5rem;
}

.p-single__linkTitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.p-single__link {
  display: inline-block;
  padding: 0.75rem 1rem;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  word-break: break-all; /* 長い単語を強制的に折り返す */
  overflow-wrap: break-word; /* ブラウザ互換性[1] */
  max-width: 100%; /* 最大幅を100%に設定 */
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
  .p-single__titleWrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .p-single__icon {
    width: 120px;
    order: -1; /* アイコンをタイトルの上に配置 */
  }

  .p-single__title {
    font-size: 1.4rem;
  }

  .p-single__section {
    padding: 1rem;
  }
}
