/* =====================================================
   news.css — お知らせページ専用
   ===================================================== */

/* sectionのbottom paddingを上書き */
.news-section-head.section {
  padding-bottom: 0;
}

/* ---- BODY ------------------------------------------ */
.news-body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px 120px;
}

/* ---- TABS ------------------------------------------ */
.news-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 0;
  padding-top: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.news-tab {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #666;
  padding: 12px 20px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.news-tab:hover {
  color: #000;
}
.news-tab.is-active {
  color: #000;
  border-bottom-color: #000;
}

/* ---- YEAR LABEL ------------------------------------ */
.news-year {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #555;
  padding: 40px 0 12px;
  border-bottom: 1px solid #e8e8e8;
}

/* ---- NEWS ITEM ------------------------------------- */
.news-item {
  display: block;
  border-bottom: 1px solid #e8e8e8;
}
.news-item[hidden] {
  display: none;
}

.news-item-header {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  cursor: pointer;
  padding: 24px 0;
  transition: background 0.15s;
}
.news-item-header:hover {
  background: #f8f8f8;
  padding-left: 12px;
  padding-right: 12px;
  margin-left: -12px;
  width: calc(100% + 24px);
}

/* 日付 */
.news-date {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #444;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
  width: 56px;
}

/* カテゴリーバッジ */
.news-cat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  flex-shrink: 0;
  width: 100px;
  line-height: 1.4;
}
.news-cat--notice  { background: #000; color: #fff; }
.news-cat--update  { background: #e0e0e0; color: #333; }
.news-cat--seminar { background: #000; color: #fff; }
.news-cat--nabecol { background: #eee; color: #444; }

/* タイトル */
.news-title {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  color: #000;
  flex: 1;
  min-width: 0;
}
.news-item.is-open .news-title {
  font-weight: 700;
}

/* トグルアイコン（下揃え） */
.news-toggle {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
}
.news-toggle::before,
.news-toggle::after {
  content: '';
  position: absolute;
  background: #000;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.news-toggle::before {
  width: 14px;
  height: 1.5px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.news-toggle::after {
  width: 1.5px;
  height: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.news-item.is-open .news-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

/* ---- BODY CONTENT ---------------------------------- */
/* 日付幅56 + gap20 + バッジ幅(可変) → タイトル位置に合わせる */
.news-item-body[hidden] {
  display: none;
}
.news-item-body {
  display: block;
  padding: 4px 40px 32px 196px;
  font-size: 16px;
  line-height: 1.9;
  color: #222;
}
.news-item-body p + p {
  margin-top: 14px;
}
.news-item-body a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.news-item-body a:hover {
  opacity: 0.6;
}
.news-item-body strong {
  font-weight: 700;
  color: #000;
}

/* ---- LOAD MORE ------------------------------------- */
.news-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 64px;
}
.news-load-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 48px;
  border: 1px solid #000;
  background: transparent;
  color: #000;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.news-load-more:hover {
  background: #000;
  color: #fff;
}
.news-load-more[hidden] {
  display: none;
}

/* ---- RESPONSIVE ------------------------------------ */
@media (max-width: 768px) {
  .news-body {
    padding: 0 24px 80px;
  }
  .news-load-more-wrap {
    margin-top: 48px;
  }
  .news-item-header {
    gap: 14px;
    padding: 20px 0;
  }
  .news-date { width: 48px; }
  .news-item-body {
    padding: 4px 0 28px 176px;
  }
  .news-tab {
    padding: 12px 14px;
    font-size: 13px;
  }
  .news-title {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .news-item-header {
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
    padding: 18px 0;
  }
  .news-date {
    order: 0;
    width: auto;
    font-size: 12px;
    color: #888;
  }
  .news-cat {
    order: 1;
    font-size: 10px;
    padding: 3px 8px;
    width: auto;
  }
  .news-toggle {
    order: 2;
    margin-left: auto;
  }
  .news-title {
    flex: 0 0 100%;
    order: 3;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.01em;
    margin-top: 2px;
  }
  .news-item-body {
    padding: 4px 0 24px 0;
    font-size: 14px;
  }
}
