@charset "UTF-8";

/* header */
@media screen and (min-width: 768px) {
  #header {
    background: none;
    position: relative;
    /* z-index: 0; */
  }
  #header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -20;
    height: 119rem;
    background-image: linear-gradient(to top, rgb(255, 255, 255) 0%, rgb(255, 255, 255, 0) 100%),
      radial-gradient(circle at 20% 36.8rem, rgb(255, 255, 255, 0.7) 12%, rgb(241, 241, 241, 0.7) 45%);
    background-repeat: no-repeat, no-repeat;
    background-position: 50% 76rem, 50% 0;
    background-size: 100% 43rem, 100% 119rem;
  }
}
#header .photo {
  aspect-ratio: auto;
}
@media screen and (min-width: 768px) {
  #header .photo {
    position: absolute;
    top: 0;
    right: 0;
    z-index: -10;
  }
}
#header .photo .image {
  width: 34rem;
  height: 17.5rem;
}
@media screen and (min-width: 768px) {
  #header .photo .image {
    width: 82rem;
    height: 47.5rem;
  }
  #header .photo .image img {
    border-radius: 0 0 0 0;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-image: url(../images/mask_header_ph.svg);
    mask-image: url(../images/mask_header_ph.svg);
  }
}

/* articles */
#articles {
  position: relative;
}
@media screen and (min-width: 768px) {
  #articles {
    padding: 9rem 0;
    display: flex;
  }
  #articles > nav {
    flex-grow: 1;
  }
  #articles > .posts {
    flex-basis: 129rem;
  }
}

/* cats */
#articles nav {
  padding-top: 2rem;
  display: flow-root;
}
@media screen and (min-width: 768px) {
  #articles nav {
    padding: 1.8rem 0;
  }
}
#articles nav h2 {
  display: none;
}
@media screen and (min-width: 768px) {
  #articles nav h2 {
    margin: 0;
    display: block;
    font-size: 1rem;
    line-height: 1;
  }
  #articles nav h2 .image {
    display: inline-block;
    vertical-align: top;
    width: 10rem;
  }
  #articles nav h2 .image img {
    width: 100%;
  }
}
#articles .cats {
  padding: 0.4rem 0;
  margin: 0.9rem 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
@media screen and (min-width: 768px) {
  #articles .cats {
    padding: 1rem 0;
    margin: 2.4rem 0;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: normal;
    gap: 1rem;
    max-width: 28.6rem;
  }
}
#articles .cats li {
  flex-basis: calc((100% - 0.4rem * 2) * 1 / 3);
}
@media screen and (min-width: 768px) {
  #articles .cats li {
    flex-basis: auto;
  }
}
#articles .cats a {
  padding: 0.2em 1em;
  min-height: 3.5rem;
  border-radius: 4px;
  border: solid 1px rgb(230, 230, 230);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-indent: 0.01em;
  background-color: rgb(255, 255, 255);
  transition:
    0.2s background-color ease-out,
    0.2s border-color ease-out;
}
@media screen and (min-width: 768px) {
  #articles .cats a {
    min-height: 5rem;
    border-radius: 8px;
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    text-indent: 0.05em;
  }
}
#articles .cats li.current-cat a,
#articles .cats a:hover {
  border-color: rgb(183, 28, 43);
  color: rgb(255, 255, 255);
  background-color: rgb(184, 28, 43);
  opacity: 1;
}
#articles .cats li.current-cat a {
  pointer-events: none;
}

/* posts */
#articles .posts > ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

/* news article */
#articles article a {
  padding: 2rem 0 1.1rem 0;
  border-bottom: 1px solid rgb(230, 230, 230);
  box-sizing: border-box;
}
@media screen and (max-width: 767px) {
  /* sp only */
  #articles article a {
    display: grid;
    grid-template-columns: 15rem 1fr;
    grid-template-rows: auto auto;
    -moz-column-gap: 2.7rem;
    column-gap: 2.7rem;
    row-gap: 1.1rem;
  }
  #articles article a > h2 {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
  }
  #articles article a > .image {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }
  #articles article a > .meta {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }
}
@media screen and (min-width: 768px) {
  #articles article a {
    padding: 1.8rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 14.9rem;
  }
  #articles article a > h2 {
    flex-grow: 1;
  }
  #articles article a > .image {
    flex-basis: 17.6rem;
    flex-shrink: 0;
    order: -10;
  }
  #articles article a > .meta {
    flex-basis: 15.8rem;
    flex-shrink: 0;
    order: -20;
  }
  #articles article a::after {
    content: "";
    display: inline-block;
    width: 8rem;
    height: 1.5rem;
    background: url(../images/ico_arrow2.svg) no-repeat 50% 50% / contain;
  }
}
#articles article h2 {
  padding: 0.4em 0;
  margin: 0;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: calc(1.4 / 20 * 1em);
}
@media screen and (min-width: 768px) {
  #articles article h2 {
    padding: 0.25em 0 0.25em 3rem;
    font-size: 2rem;
    line-height: 1.5;
  }
}
#articles article .image {
  width: 15rem;
  aspect-ratio: 176 / 112;
}
@media screen and (min-width: 768px) {
  #articles article .image {
    width: 17.6rem;
  }
}
#articles article .image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}
#articles article .meta {
  padding-right: 2.7rem;
  margin: auto 0;
  box-sizing: border-box;
}
@media screen and (min-width: 768px) {
  #articles article .meta {
    padding-right: 3rem;
    margin: 0;
  }
}
#articles article .meta time {
  display: block;
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1;
  letter-spacing: 0.02em;
  text-indent: 0.02em;
  text-align: center;
  color: rgb(183, 28, 43);
}
@media screen and (min-width: 768px) {
  #articles article .meta time {
    font-size: 2.4rem;
  }
}
#articles article .meta .cat {
  padding: 0.8rem 0;
  margin: 0;
  list-style: none;
}
#articles article .meta .cat li {
  padding: 0.2em 0.5em;
  min-height: 3.2rem;
  border-radius: 1.5rem;
  border: solid 1px rgb(76, 73, 72);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-indent: 0.01em;
}
#articles article .meta .cat li + li {
  margin-top: 0.8rem;
}

/* pagination */
#articles .pagination {
  padding: 6.2rem 0;
}
#articles .pagination > div {
  display: flex;
  align-items: center;
  justify-content: center;
}
@media screen and (min-width: 768px) {
  #articles .pagination > div {
    margin: 0 auto;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    min-width: 64rem;
  }
}
#articles .pagination span,
#articles .pagination a:not([rel]) {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.6rem;
  height: 4.6rem;
  box-sizing: border-box;
  font-size: 1.7rem;
  font-weight: bold;
  line-height: 1;
  color: rgb(153, 153, 153);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.2em;
  -webkit-text-decoration-color: transparent;
  text-decoration-color: transparent;
  transition:
    0.2s color ease-out,
    0.2s -webkit-text-decoration-color ease-out;
  transition:
    0.2s color ease-out,
    0.2s text-decoration-color ease-out;
  transition:
    0.2s color ease-out,
    0.2s text-decoration-color ease-out,
    0.2s -webkit-text-decoration-color ease-out;
}
@media screen and (min-width: 768px) {
  #articles .pagination span,
  #articles .pagination a:not([rel]) {
    width: 5.8rem;
    height: 5.8rem;
    font-size: 2.1rem;
  }
}
#articles .pagination a:hover,
#articles .pagination .current {
  color: inherit;
  -webkit-text-decoration-color: rgb(172, 40, 44);
  text-decoration-color: rgb(172, 40, 44);
}
#articles .pagination a[rel] {
  white-space: nowrap;
  overflow: hidden;
}
#articles .pagination a[rel]::before {
  content: "";
  display: inline-block;
  width: 100%;
}
#articles .pagination > div:not(:has(a[rel="prev"]))::before,
#articles .pagination > div:not(:has(a[rel="next"]))::after {
  content: "";
  -webkit-filter: grayscale(100%) contrast(0) brightness(170%);
  filter: grayscale(100%) contrast(0) brightness(170%);
}
#articles .pagination a[rel],
#articles .pagination > div:not(:has(a[rel="prev"]))::before,
#articles .pagination > div:not(:has(a[rel="next"]))::after {
  display: inline-block;
  width: 4.5rem;
  height: 4.5rem;
  border: solid 1px rgb(184, 28, 43);
  border-radius: 50%;
  box-sizing: border-box;
  background: url(../images/ico_arrow1.svg) no-repeat 50% 50% / 0.9rem 1.4rem;
}
@media screen and (min-width: 768px) {
  #articles .pagination a[rel],
  #articles .pagination > div:not(:has(a[rel="prev"]))::before,
  #articles .pagination > div:not(:has(a[rel="next"]))::after {
    width: 5.6rem;
    height: 5.6rem;
  }
}
#articles .pagination a[rel="prev"],
#articles .pagination > div:not(:has(a[rel="prev"]))::before {
  margin-right: 1.6rem;
  margin-right: auto;
  scale: -1 1;
}
#articles .pagination a[rel="next"],
#articles .pagination > div:not(:has(a[rel="next"]))::after {
  margin-left: 1.6rem;
  margin-left: auto;
}
