@charset "utf-8";

/** ***************************************************************************
 * 一覧ページ
 * ************************************************************************* */

/**
 * 検索フォーム
 */

body.page-archive
#search form {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.page-archive
#search label {
  width: 100%;
  flex-shrink: 0;
}

body.page-archive
#search input[type="text"] {
  padding: 0.5em 50px 0.625em 1em;
  letter-spacing: 1px;
  border-width: 3px;
  border-radius: 10px;
}

body.page-archive
#search button {
  width: 37px;
  height: 37px;
  margin: 0;
  padding: 10px;
  appearance: none;
  cursor: pointer;
  color: inherit;
  border: none;
  border-radius: 0;
  font: inherit;
  box-sizing: border-box;
  background: url("../_image/_common/icon-search-1.png") center center / 24px 24px no-repeat;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  left: -40px;
}

/**
 * 記事一覧
 */

body.page-archive
#article ul.list li {
  padding: 20px 10px;
  border-bottom: 3px dotted rgb(var(--accentcolor-5));
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  z-index: 0;
}

body.page-archive
#article ul.list li.hash-target {
  background-color: rgba(var(--accentcolor-1), 0.3);
}

body.page-archive
#article ul.list li:first-child{
  border-top: 3px dotted rgb(var(--accentcolor-5));
}

@media screen and (min-width:768px) {

  body.page-archive
  #article ul.list li {
    padding: 30px 30px 30px 20px;
    border-bottom-width: 5px;
    align-items: center;
    flex-wrap: nowrap;
  }

  body.page-archive
  #article ul.list li:first-child{
    border-top-width: 5px;
  }

}

/* 画像 */

body.page-archive
#article ul.list div.image {
  width: 24%;
  padding-bottom: 22%;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  align-self: flex-start;
}

@media screen and (min-width:768px) {

  body.page-archive
  #article ul.list div.image {
    width: 19%;
    padding-bottom: 19%;
  }

}

/* 内容 */

body.page-archive
#article ul.list div.contents {
  display: contents;
}

@media screen and (min-width:768px) {

  body.page-archive
  #article ul.list div.contents {
    width: 76%;
    display: block;
  }

}

/* 日付 */

body.page-archive
#article ul.list div.time {
  width: calc((100% - 20px) * 0.7);
  color: rgb(var(--accentcolor-3));
  font-weight: 500;
  position: absolute;
  z-index: 1;
  top: 15px;
  right: 10px;
}

@media screen and (min-width:768px) {

  body.page-archive
  #article ul.list div.time {
    width: unset;
    margin-bottom: 5px;
    position: static;
  }

}

/* タイトル */

body.page-archive
#article ul.list div.title {
  width: 70%;
  margin-top: 1.75em;
  line-height: 1.5;
  font-weight: 500;
}

@media screen and (min-width:768px) {

  body.page-archive
  #article ul.list div.title {
    width: unset;
    margin-top: unset;
    font-size: 1.125em;
  }

}

/* テキスト */

body.page-archive
#article ul.list div.text {
  width: 100%;
  margin-top: 10px;
}

@media screen and (min-width:768px) {

  body.page-archive
  #article ul.list div.text {
    font-size: 0.889em;
  }

}

/* もっと見る */

body.page-archive
#article ul.list div.button {
  margin-top: 15px;
}

body.page-archive
#article ul.list div.button a {
  padding: 0.375em 3em 0.375em 2.25em;
  font-size: 0.875em;
}

@media screen and (min-width:768px) {

  body.page-archive
  #article ul.list div.button {
    margin-top: 20px;
  }

  body.page-archive
  #article ul.list div.button a {
    font-size: 0.75em;
  }

}

/** ***************************************************************************
 * 詳細ページ
 * ************************************************************************* */

/**
 * 日付
 */

body.page-single
#article div.time {
  margin-bottom: 0.375em;
  color: rgb(var(--accentcolor-3));
  font-weight: 500;
}

/**
 * タイトル
 */

body.page-single
#article .title {
  margin-bottom: 1.25em;
  line-height: 1.5;
  font-size: 1.375em;
  font-weight: 500;
}

@media screen and (min-width:768px) {

  body.page-single
  #article .title {
    margin-bottom: 2em;
    font-size: 1.75em;
  }

}

/**
 * 内容
 */

body.page-single
#article div.content::after {
  content: '';
  width: 100%;
  clear: both;
  display: table;
  visibility: hidden;
}

body.page-single
#article div.content iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  display: block;
}

@media screen and (min-width:768px) {

  body.page-single
  #article div.content iframe {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 20px;
  }

}

/**
 * 一覧に戻る
 */

body.page-single
#article div.button {
  text-align: center;
}

body.page-single
#article div.button a {
  min-width: 300px;
}
