/* =====================================================================
   お知らせ・実績（/news/, /category/<slug>/, /<ID>/）と
   Markdown の固定ページ（プライバシーポリシー）、404 の見た目。

   色は front.css の :root 変数（トップページと同じパレット）だけを使う。
     --accent-red #FF0A09 / --dark-bg #1a1a1a / --light-bg #FAFAFA
     --dark-text #222222  / --border-gray #ddd
   front.css の後に読む前提（ヘッダー・フッターは front.css のまま）。
   ===================================================================== */

/* =====================
   共通レイアウト
===================== */
.page-hero-inner,
.page-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-hero {
  padding: 120px 0 64px;
  background: var(--light-bg);
  border-bottom: 1px solid var(--border-gray);
}

.page-hero-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent-red);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--dark-text);
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.8;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: #888;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent-red);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark-text);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.news-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--accent-red);
  border: 1px solid var(--accent-red);
  border-radius: 2px;
  padding: 0.3rem 0.55rem;
  white-space: nowrap;
}

/* =====================
   一覧
===================== */
.news-section {
  padding: 64px 0 96px;
}

.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.news-tabs a {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border-gray);
  color: #555;
  background: #fff;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.news-tabs a:hover,
.news-tabs a.is-active {
  background: var(--dark-text);
  color: #fff;
  border-color: var(--dark-text);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.news-card-image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-image span {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #bbb;
}

.news-card-body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  color: #888;
}

.news-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--dark-text);
}

.news-card-excerpt {
  font-size: 0.84rem;
  line-height: 1.7;
  color: #666;
}

.news-empty {
  color: #888;
}

/* =====================
   記事本文
===================== */
.article-section {
  padding: 56px 0 72px;
}

.article-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
}

.article-thumb {
  margin: 0 0 2.5rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-gray);
}

.article-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.article-body {
  font-size: 1rem;
  line-height: 1.9;
  color: #333;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.article-body > * + * {
  margin-top: 1.4em;
}

.article-body h2 {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.5;
  color: var(--dark-text);
  margin-top: 2.6em;
  padding-left: 0.8rem;
  border-left: 4px solid var(--accent-red);
}

.article-body h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark-text);
  margin-top: 2em;
}

.article-body h4,
.article-body h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-text);
}

.article-body ul,
.article-body ol {
  padding-left: 1.5em;
}

.article-body li + li {
  margin-top: 0.4em;
}

.article-body a {
  color: var(--accent-red);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.article-body a:hover {
  text-decoration: none;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border-gray);
}

.article-body p > a > img {
  display: block;
}

/* 画像の下に *キャプション* と書くと <em> になる。本文中の強調には使わない */
.article-body p > em:only-child {
  display: block;
  text-align: center;
  font-style: normal;
  font-size: 0.82rem;
  color: #888;
  margin-top: -0.6em;
}

.article-body mark {
  background: linear-gradient(transparent 55%, #fff0f0 55%);
  color: inherit;
  padding: 0 0.1em;
}

.article-body hr {
  border: 0;
  border-top: 1px solid var(--border-gray);
  margin: 3em 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.article-body th,
.article-body td {
  border: 1px solid var(--border-gray);
  padding: 0.6rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: var(--light-bg);
  font-weight: 700;
}

.article-body blockquote {
  border-left: 4px solid var(--border-gray);
  padding-left: 1rem;
  color: #666;
}

.article-body.is-legal {
  font-size: 0.92rem;
  color: #444;
}

/* 囲みボックス（:::box） */
.news-box {
  border: 1px solid var(--border-gray);
  border-radius: 6px;
  background: var(--light-bg);
  padding: 1.2rem 1.4rem;
}

.news-box-title {
  font-weight: 800;
  color: var(--dark-text);
  margin-bottom: 0.6rem;
  padding-left: 0.6rem;
  border-left: 3px solid var(--accent-red);
}

.news-box-body > * + * {
  margin-top: 0.8em;
}

/* 開閉ボックス（:::toggle） */
.news-toggle {
  border: 1px solid var(--border-gray);
  border-radius: 6px;
  padding: 0.8rem 1.2rem;
}

.news-toggle summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--dark-text);
}

.news-toggle-body {
  margin-top: 0.8rem;
}

.news-toggle-body > * + * {
  margin-top: 0.8em;
}

/* 問い合わせ誘導（:::cta） */
.news-cta {
  background: var(--dark-bg);
  color: var(--light-text);
  border-radius: 8px;
  padding: 2rem 1.6rem;
  text-align: center;
}

.news-cta > * + * {
  margin-top: 1rem;
}

.news-cta-title {
  font-size: 1.1rem;
  font-weight: 800;
}

.news-cta p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.news-cta a {
  display: inline-block;
  padding: 0.8rem 2.4rem;
  background: var(--accent-red);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 2px solid var(--accent-red);
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.news-cta a:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

/* 記事末尾の導線 */
.article-footer {
  max-width: 760px;
  margin: 3rem auto 0;
  padding: 1.6rem 2rem 0;
  border-top: 1px solid var(--border-gray);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.article-footer a {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark-text);
  text-decoration: none;
  transition: color 0.2s;
}

.article-footer a:hover {
  color: var(--accent-red);
}

.related-section {
  padding: 64px 0;
  background: var(--light-bg);
  border-top: 1px solid var(--border-gray);
}

/* =====================
   CTA（会社概要と同じ）
===================== */
.page-cta {
  padding: 80px 0;
  text-align: center;
}

.page-cta h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark-text);
  margin-bottom: 0.8rem;
}

.page-cta p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.page-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-page-primary,
.btn-page-secondary {
  display: inline-block;
  padding: 0.8rem 2.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-page-primary {
  background: var(--accent-red);
  color: #fff;
  border: 2px solid var(--accent-red);
}

.btn-page-primary:hover {
  background: transparent;
  color: var(--accent-red);
}

.btn-page-secondary {
  background: transparent;
  color: var(--dark-text);
  border: 2px solid var(--dark-text);
}

.btn-page-secondary:hover {
  background: var(--dark-text);
  color: #fff;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 100px 0 48px;
  }
  .page-hero h1 {
    font-size: 1.5rem;
  }
  .page-hero-inner,
  .page-inner,
  .article-inner {
    padding: 0 1.25rem;
  }
  .news-section,
  .article-section,
  .related-section,
  .page-cta {
    padding: 48px 0 64px;
  }
  .article-footer {
    padding: 1.4rem 1.25rem 0;
  }
  .page-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn-page-primary,
  .btn-page-secondary {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .page-hero h1 {
    font-size: 1.3rem;
  }
  .section-title {
    font-size: 1.2rem;
  }
  .article-body {
    font-size: 0.95rem;
  }
  .article-body h2 {
    font-size: 1.2rem;
  }
  .news-cta {
    padding: 1.6rem 1.2rem;
  }
}
