/* ========================================================================
   News (press release / tech blog)
   ======================================================================== */

/* shared inner wrapper for news pages */
.news_inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 80px;
}

/* ---------- list page ---------- */
.news_list_section {
  padding: 60px 0 160px;
}

.news_list_filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 48px;
}

.news_list_filter button {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid #d5d5d6;
  border-radius: 50px;
  padding: 8px 22px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: #1a1a1a;
  letter-spacing: .07em;
  cursor: pointer;
  transition: .3s;
}

.news_list_filter button:hover {
  opacity: .6;
}

.news_list_filter button.is-active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.news_list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(0, 0, 0, .1);
}

.news_list_item {
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}

.news_list_item a {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 28px;
  padding: 28px 8px;
  text-decoration: none;
  color: #1a1a1a;
  transition: .3s;
}

.news_list_item a:hover {
  opacity: .55;
}

.news_list_item_date {
  flex: 0 0 auto;
  width: 110px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: #888;
  letter-spacing: .04em;
}

.news_list_item_category {
  flex: 0 0 auto;
  display: inline-block;
  min-width: 110px;
  text-align: center;
  padding: 5px 14px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: .08em;
  border-radius: 50px;
  border: 1px solid #1a1a1a;
}

.news_list_item_category.is-press {
  background: #1a1a1a;
  color: #fff;
}

.news_list_item_category.is-blog {
  background: #fff;
  color: #1a1a1a;
}

.news_list_item_title {
  flex: 1 1 auto;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.6;
}

.news_list_empty {
  padding: 60px 0;
  text-align: center;
  color: #888;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.4rem;
}

/* ---------- article page ---------- */
.news_article_section {
  padding: 40px 0 160px;
}

.news_article_back {
  margin-bottom: 32px;
}

.news_article_back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.3rem;
  text-decoration: none;
  color: #1a1a1a;
  transition: .3s;
}

.news_article_back a:hover {
  opacity: .6;
}

.news_article_back a::before {
  content: "←";
}

.news_article_meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  font-family: 'Noto Sans JP', sans-serif;
}

.news_article_meta_date {
  font-size: 1.3rem;
  color: #888;
  letter-spacing: .04em;
}

.news_article_title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 3.2rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 56px;
  letter-spacing: .03em;
}

.news_article_body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.5rem;
  line-height: 2;
  color: #1a1a1a;
  letter-spacing: .04em;
}

.news_article_body h1,
.news_article_body h2,
.news_article_body h3,
.news_article_body h4 {
  font-weight: 600;
  line-height: 1.5;
  margin: 64px 0 24px;
}

.news_article_body h1 { font-size: 2.6rem; }
.news_article_body h2 { font-size: 2.2rem; }
.news_article_body h3 { font-size: 1.8rem; }
.news_article_body h4 { font-size: 1.6rem; }

.news_article_body p { margin: 0 0 24px; }

.news_article_body a {
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news_article_body a:hover { opacity: .6; }

.news_article_body ul,
.news_article_body ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.news_article_body li { margin-bottom: 8px; }

.news_article_body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 32px auto;
  border-radius: 8px;
}

.news_article_body blockquote {
  margin: 24px 0;
  padding: 16px 24px;
  border-left: 3px solid #c8b497;
  background: #f7f5f1;
  color: #555;
  font-size: 1.4rem;
}

.news_article_body code {
  background: #f1f1f1;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
}

.news_article_body pre {
  background: #1a1a1a;
  color: #f1f1f1;
  padding: 20px 24px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 1.3rem;
  line-height: 1.6;
}

.news_article_body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.news_article_body hr {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, .1);
  margin: 48px 0;
}

.news_article_body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 1.4rem;
}

.news_article_body th,
.news_article_body td {
  border: 1px solid rgba(0, 0, 0, .1);
  padding: 10px 14px;
  text-align: left;
}

.news_article_body th { background: #f7f5f1; font-weight: 500; }

.news_article_loading,
.news_article_error {
  padding: 80px 0;
  text-align: center;
  color: #888;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.4rem;
}

/* ---------- responsive ---------- */
@media screen and (max-width: 1080px) {
  .news_inner { padding: 0 60px; }
  .news_list_section { padding: 40px 0 120px; }
  .news_article_title { font-size: 2.6rem; }
}

@media screen and (max-width: 768px) {
  .news_inner { padding: 0 30px; }

  .news_list_section { padding: 30px 0 90px; }

  .news_list_filter { margin-bottom: 32px; gap: 8px; }
  .news_list_filter button { padding: 6px 16px; font-size: 1.2rem; }

  .news_list_item a {
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 22px 4px;
  }

  .news_list_item_date {
    width: auto;
    font-size: 1.2rem;
  }

  .news_list_item_category {
    min-width: 0;
    padding: 3px 10px;
    font-size: 1.0rem;
  }

  .news_list_item_title {
    flex-basis: 100%;
    font-size: 1.4rem;
  }

  .news_article_section { padding: 20px 0 90px; }
  .news_article_title { font-size: 2.0rem; margin-bottom: 36px; }
  .news_article_body { font-size: 1.4rem; line-height: 1.9; }
  .news_article_body h1 { font-size: 2.0rem; }
  .news_article_body h2 { font-size: 1.7rem; }
  .news_article_body h3 { font-size: 1.5rem; }
  .news_article_body h4 { font-size: 1.4rem; }
}
