@import url(common.css);

/* ↓↓↓記事一覧↓↓↓ */

/* flex */
main .news-flex {
  display: flex;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  max-height: 600px;
  padding: 70px 80px 33px 0;
  gap: 40px;
}

/* 左側 */
.news-left {
  flex-basis: 240px;
}

.news-flex h2 {
  font-family: "Yusei Magic";
  font-size: 24px;
  padding: 50px 0 20px 70px;
}

.news-flex ul {
  padding-left: 104px;
}

.news-flex ul li {
  padding-bottom: 5px;
  padding-top: 10px;
  border-bottom: 1px solid;
}

/* 右側 */
.news-right {
  flex-basis: 640px;
  overflow: scroll;
  overflow-x: unset;
}

/* スクロールバー */
.news-right::-webkit-scrollbar {
  background: #666;
  width: 3px;
  border-radius: 10px;
  margin-left: 20px;
}

.news-right::-webkit-scrollbar-thumb {
  background-color: #0eb6bc;
  border-radius: 5px;
}

.news-label {
  padding-top: 10px;
  padding-left: 10px;
  display: flex;
  align-items: baseline;
  gap: 30px;
}

.news-label time {
  font-size: 16px;
}

/* ↓↓カテゴリーラベル↓↓ */
.news-label p span {
  color: #fff;
  padding: 2px 28px;
  border-radius: 5px;
  display: inline-block;
}

.news-label p span.ao {
  background-color: rgba(14, 182, 188, 1);
}

.news-label p span.aka {
  background-color: #bc0e0e;
}

.news-label p span.kiiro {
  background-color: #bcbc0e;
}
/* ↑↑カテゴリーラベル↑↑ */

/* 記事タイトル */
.news-contens > p {
  font-size: 18px;
  font-weight: bold;
  padding: 20px 0 20px 40px;
}
.news-contens:first-child {
  margin-top: 0;
}
/* 記事背景 */
.news-contens {
  background-color: rgba(255, 255, 255, 0.76);
  margin: 70px 0 0 0;
}
/* ニュース記事背景 */
main article {
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  margin-top: 74px;
}

/* ↓↓カテゴリーソート↓↓ */

/* ↑↑↑↑ */

/* ↑↑↑記事一覧↑↑↑ */

/* ↓↓全体統一↓↓ */
main h1 {
  text-align: center;
}

main a:hover {
  text-decoration: underline;
}

/* ボタン上下余白 */
button {
  margin: 80px 0 120px 0;
}
/* ↑↑全体統一↑↑ */

/* ↓↓記事↓↓ */

/* 日付 */
article p:first-child {
  padding: 45px 0 0 70px;
}

/* 見出し */
article h2 {
  font-weight: bold;
  padding: 15px 0 64px 0;
}

/* 小見出し */
article h3 {
  font-weight: bold;
  text-align: left;
  padding-top: 20px;
  padding-left: 130px;
  padding-bottom: 10px;
}

/* 小見出し色 */
article h3.red {
  color: #bc0e0e;
}

/* 文章 */
article p {
  line-height: 1.5rem;
  text-align: left;
  padding: 0 120px;
  text-indent: 1rem;
  line-height: normal;
}

/* 箇条書き中黒 */
article li {
  list-style-type: disc;
  list-style-position: inside;
  padding-left: 150px;
  line-height: 1.5;
  text-align: left;
}

article li:first-child {
  padding-top: 8px;
}

article li:last-child {
  padding-bottom: 10px;
}

/* 注釈 */
article small {
  line-height: 3rem;
  text-align: center;
}

/* 画像位置 */
img {
  display: block;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

article a {
  color: #3771c8;
}

/* 文末下余白 */
article p:last-child {
  padding-bottom: 60px;
}

/* ボーダーライン */
main aside {
  border-top: 1px solid;
  padding: 52px 0 74px 0;
  line-height: normal;
}

/* ↑↑記事↑↑ */

/* レスポンシブ */
@media (max-width: 767px) {
  main .news-flex {
    flex-direction: column;
    row-gap: 20px;
    padding: 20px;
  }
  .news-flex h2 {
    font-size: 20px;
    padding: 0 0 10px 0;
    text-align: center;
  }
  .news-flex ul {
    padding-left: 0;
    max-width: 160px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
  }
  .news-contens:first-child {
    margin-top: 0;
  }
  .news-contens {
    margin: 15px;
  }
  .news-label p span {
    font-size: 14px;
    padding: 2px 20px;
  }
  article p {
    line-height: 2rem;
    text-align: left;
    padding: 0 20px;
    text-indent: 1rem;
  }
  article p:first-child {
    padding: 15px 0 0 35px;
  }
  article h2 {
    padding: 15px 0 44px 0;
    line-height: 1.5rem;
  }
  article h3 {
    padding-top: 30px;
    padding-left: 20px;
    padding-bottom: 10px;
  }
  article li {
    list-style-type: disc;
    list-style-position: inside;
    padding-left: 30px;
    line-height: 1.5rem;
    text-align: left;
  }
  article li:last-child {
    padding-bottom: 30px;
  }
}
