@charset "UTF-8";

/* ============================================
   News Page — news.css
   ============================================ */

/* ─── Page Hero ─────────────────────────────── */
.page-hero {
  position: relative;
  margin-top: var(--header-h);
  height: 200px;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  padding: 0 max(40px, calc((100% - 1100px) / 2));
  height: 100%;
  display: flex;
  align-items: center;
}
.page-hero-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 36px;
  color: #fff;
  line-height: 1.4;
  margin: 0;
}

/* ─── Breadcrumb ────────────────────────────── */
.breadcrumb {
  background: #fff;
}
.breadcrumb-inner {
  padding: 10px max(40px, calc((100% - 1100px) / 2));
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}
.breadcrumb-top {
  color: var(--primary);
  text-decoration: none;
  font-family: 'Noto Sans JP', sans-serif;
}
.breadcrumb-top:hover { text-decoration: underline; }
.breadcrumb-sep {
  color: var(--dark);
  font-size: 18px;
  line-height: 1;
}
.breadcrumb-current {
  color: var(--dark);
  font-family: 'Noto Sans JP', sans-serif;
}

/* ─── News List Section ─────────────────────── */
.news-list-section {
  background: #fff;
  padding: 70px 0 90px;
}
.news-list-inner {
  padding: 0 max(40px, calc((100% - 1100px) / 2));
}

/* ─── News List ─────────────────────────────── */
.news-list-wrap {
  border-top: 1px solid var(--border);
}
.news-list-item {
  border-bottom: 1px solid var(--border);
}
.news-list-link {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 20px 0;
  text-decoration: none;
  transition: background 0.15s;
}
.news-list-link:hover {
  background: #fafafa;
}
.news-list-date {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--gray);
  white-space: nowrap;
  flex-shrink: 0;
}
.news-list-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 142px;
  padding: 2px 20px;
  border: 1px solid var(--dark);
  border-radius: 60px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--dark);
  white-space: nowrap;
  flex-shrink: 0;
}
.news-list-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--dark);
  line-height: 1.5;
  margin: 0;
}

/* ─── Pagination ─────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}
.pagination-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: var(--dark);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pagination-item:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.pagination-item--current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 700;
}
.pagination-item--next {
  border-color: var(--border);
}
.pagination-item--next .material-icons {
  font-size: 20px;
  color: inherit;
}

/* ─── News Detail ───────────────────────────── */
.news-detail-section {
  background: #fff;
  padding: 70px 0 90px;
}
.news-detail-inner {
  padding: 0 max(40px, calc((100% - 1100px) / 2));
}
.news-detail-header {
  border-bottom: 2px solid var(--border);
  padding-bottom: 30px;
  margin-bottom: 50px;
}
.news-detail-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}
.news-detail-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--dark);
  line-height: 1.6;
  margin: 0;
}
.news-detail-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.news-detail-body p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  color: var(--dark);
  line-height: 2;
  margin: 0;
}
.news-detail-body a {
  color: #eb5e00;
  text-decoration: underline;
}
.news-detail-body a:hover {
  opacity: 0.7;
}
.news-detail-body ul {
  margin: 0;
  padding-left: 1.4em;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  color: var(--dark);
  line-height: 2;
}
.news-detail-body li {
  margin-bottom: 4px;
}
.news-detail-table {
  margin: 10px 0;
}
.news-detail-table table {
  width: 100%;
  border-collapse: collapse;
}
.news-detail-table th,
.news-detail-table td {
  padding: 16px 20px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  color: var(--dark);
  line-height: 1.8;
  border: 1px solid var(--border);
  vertical-align: top;
}
.news-detail-table th {
  background: #f6f6f6;
  font-weight: 700;
  white-space: nowrap;
  width: 160px;
}
.news-detail-back {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: var(--dark);
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-back:hover { opacity: 0.6; }
.btn-back .material-icons {
  font-size: 20px;
  color: var(--primary);
}

/* ============================================
   Responsive — Tablet (1100px and below)
   ============================================ */
@media (max-width: 1100px) {
  .page-hero-inner,
  .breadcrumb-inner,
  .news-list-inner,
  .news-detail-inner {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* ============================================
   Responsive — Mobile (768px and below)
   ============================================ */
@media (max-width: 768px) {

  /* Hero */
  .page-hero {
    height: 150px;
  }
  .page-hero-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
  .page-hero-title {
    font-size: 22px;
  }

  /* Breadcrumb */
  .breadcrumb-inner {
    padding: 8px 20px;
    font-size: 12px;
    flex-wrap: wrap;
  }

  /* News List */
  .news-list-section {
    padding: 40px 0 60px;
  }
  .news-list-inner {
    padding: 0 20px;
  }
  .news-list-link {
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
  }
  .news-list-date {
    font-size: 14px;
  }
  .news-list-tag {
    min-width: 110px;
    padding: 2px 10px;
    font-size: 12px;
  }
  .news-list-title {
    width: 100%;
    font-size: 14px;
    line-height: 1.5;
  }

  /* Pagination */
  .pagination {
    margin-top: 36px;
    gap: 6px;
  }
  .pagination-item {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  /* Detail */
  .news-detail-section {
    padding: 40px 0 60px;
  }
  .news-detail-inner {
    padding: 0 20px;
  }
  .news-detail-header {
    padding-bottom: 20px;
    margin-bottom: 30px;
  }
  .news-detail-meta {
    gap: 12px;
    margin-bottom: 12px;
  }
  .news-detail-title {
    font-size: 18px;
  }
  .news-detail-body p {
    font-size: 14px;
    line-height: 1.9;
  }
  .news-detail-body ul {
    font-size: 14px;
    line-height: 1.9;
  }
  .news-detail-table th,
  .news-detail-table td {
    padding: 12px 14px;
    font-size: 13px;
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .news-detail-table th {
    border-bottom: none;
    width: 100%;
  }
  .news-detail-back {
    margin-top: 40px;
    padding-top: 30px;
  }
}

/* ============================================
   Responsive — Small Mobile (480px and below)
   ============================================ */
@media (max-width: 480px) {
  .page-hero-title {
    font-size: 18px;
  }
}
