@charset "utf-8";

/** ***************************************************************************
 * 紹介文
 * ************************************************************************* */

#lead {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

#lead .catchcopy {
  line-height: 1.5;
  font-family: var(--font-maru-sans);
  font-size: 1.375em;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1em;
}

@media screen and (min-width:768px) {

  #lead .catchcopy {
    font-size: 1.375em;
    flex-direction: row;
  }

}

/** ***************************************************************************
 * カテゴリーナビ
 * ************************************************************************* */

#category-nav ul.list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 6px;
}

#category-nav ul.list li {
  min-width: calc(100% / 2 - 3px);
}

#category-nav ul.list a {
  height: 100%;
  padding: 0.25em 0.5em 0.375em;
  line-height: 1.5;
  font-family: var(--font-maru-sans);
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgb(var(--accentcolor-1));
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.3s ease-in-out 0.0s,
    background-color 0.3s ease-in-out 0.0s;
  color: rgb(var(--accentcolor-1));
  background-color: transparent;
}

#category-nav ul.list a:hover {
  color: #fff;
  background-color: rgb(var(--accentcolor-1));
}

#category-nav ul.list li.current a {
  color: #fff;
  background-color: rgb(var(--accentcolor-1));
}

@media screen and (min-width:768px) {

  #category-nav ul.list {
    justify-content: center;
    gap: 10px;
  }

  #category-nav ul.list li {
    min-width: calc(100% / 6 - 9px);
  }

  #category-nav ul.list a {
    padding: 0.25em 1em 0.375em;
  }

}

/** ***************************************************************************
 * 一覧ページ
 * ************************************************************************* */

body.page-archive
#article {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

body.page-archive
#article ul.list li {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

body.page-archive
#article ul.list li:not(:first-child) {
  border-top: none;
}

body.page-archive
#article ul.list a {
  padding: 1em;
  color: rgb(var(--color-basic));
  text-decoration: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.625em 1em;
  transition: background-color 0.3s ease-in-out 0.0s;
  background-color: transparent;
}

body.page-archive
#article ul.list a:hover {
  background-color: rgba(var(--accentcolor-1), 0.03);
}

body.page-archive
#article ul.list li.hash-target a {
  background-color: rgba(var(--accentcolor-1), 0.03);
}

@media screen and (min-width:768px) {

  body.page-archive
  #article ul.list a {
    padding: 1.5em 1em;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 1em;
  }

}

/**
 * カテゴリー
 */

body.page-archive
#article ul.list li div.category {
  min-width: 10em;
  padding: 0.125em 1em 0.25em;
  color: rgb(var(--accentcolor-1));
  line-height: 1.5;
  font-family: var(--font-maru-sans);
  font-size: 0.875em;
  font-weight: 700;
  border-radius: 9999px;
  border: 1px solid rgb(var(--accentcolor-1));
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  flex-shrink: 0;
}

/**
 * タイトル
 */

body.page-archive
#article ul.list li div.title {
  width: 100%;
  line-height: 1.5;
}

@media screen and (min-width:768px) {

  body.page-archive
  #article ul.list li div.title {
    width: unset;
  }

}

/** ***************************************************************************
 * 詳細ページ
 * ************************************************************************* */

/**
 * 一覧ページに戻る
 */

body.page-single
#button {
  text-align: center;
}
