@charset "UTF-8";
/*
    Theme Name: enjoy
*/
/*
@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@300;400;500;700;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=BIZ+UDPGothic:wght@400;700&family=Noto+Sans+JP:wght@100..900&display=swap");
*/

/* poppins-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/poppins-v21-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-jp-regular - japanese_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/noto-sans-jp-v53-japanese_latin-regular.woff2")
    format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* biz-udpgothic-regular - japanese_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "BIZ UDPGothic";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/biz-udpgothic-v14-japanese_latin-regular.woff2")
    format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* zen-maru-gothic-regular - japanese_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Zen Maru Gothic";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/zen-maru-gothic-v17-japanese_latin-regular.woff2")
    format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
  --background: #fefefe;
  --light-transparent: #fcfcfccc;
  --light-shade: #f6f6f3;
  --light-accent: #eda200;
  --main-brand: #d31072;
  --dark-accent: #018639;
  --dark-shade: #184ca3;
  --void-shade: #111111;
  font-size: 16px;
  font-family: "Noto Sans JP", "BIZ UDPGothic", "Helvetica Neue", Helvetica,
    Arial, sans-serif;
  background-color: var(--background);
  color: var(--void-shade);
}

body {
  background: color-mix(in srgb, var(--main-brand), var(--background) 98%);
  color: var(--font-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  width: 100%;
  height: 108px;
  margin: 0 auto;
  padding: 0.2em 0;
  background: var(--background);
  z-index: 1000;
  user-select: none;
  box-shadow: 0 0 20px 2px rgba(31, 34, 37, 0.1);
}

header .site-branding {
  margin: 12px 24px;
  text-align: left;
  font-family: "Poppins";
  display: flex;
  flex-direction: row;
  align-items: baseline;
  text-wrap: nowrap;
}

header .site-branding h1 {
  margin-right: 1rem;
  font-weight: 500;
}

header .site-branding a {
  color: inherit;
  text-decoration: none;
}

header #menu-primary-menu {
  display: flex;
  flex-direction: row;
}

header ul,
header li {
  list-style: none;
}

header li.menu-item {
  position: relative;
  padding: 0 12px;
  list-style: none;
  font-family: "Poppins";
}

header li.menu-item:nth-child(4n + 1) {
  color: var(--main-brand);
}

header li.menu-item:nth-child(4n + 2) {
  color: var(--light-accent);
}

header li.menu-item:nth-child(4n + 3) {
  color: var(--dark-accent);
}

header li.menu-item:nth-child(4n) {
  color: var(--dark-shade);
}

header li.menu-item a {
  text-decoration: none;
  color: inherit;
  text-decoration: none;
  color: inherit;
  text-wrap: nowrap;
}

header li.menu-item:not(:first-child):before {
  content: "";
  display: block;
  width: 1px;
  height: 100%;
  background: var(--light-shade);
  position: absolute;
  left: 0;
}

strong {
  font-weight: 700;
  background: linear-gradient(0, var(--light-accent) 5%, transparent 10%);
}

ul.wp-block-list li {
  list-style: inside;
}

ol.wp-block-list li {
  list-style: inside decimal;
}

ul.wp-block-list,
ol.wp-block-list {
  padding-left: 1em;
  background: linear-gradient(90deg, var(--dark-accent) 0.3em, transparent 0);
}

a {
  color: var(--dark-shade);
}

.wp-block-embed__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  word-break: break-all;
}

ul.wp-block-social-links {
  margin: 8px;
}

blockquote {
  position: relative;
  border-top: 4px solid #ebebeb;
  border-bottom: 4px solid #ebebeb;
  margin-top: 1em;
  margin-bottom: 1em;
  padding-top: 1em;
  padding-bottom: 1em;
}

blockquote:before {
  content: "";
  display: block;
  background: #ebebeb;
  width: 64px;
  height: 64px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  clip-path: path(
    "M 3.169 51.703 c -0.001 0 -0.005 -24.753 0 -24.982 c 0.008 -0.465 0.17 -1.001 0.499 -1.572 l 9.325 -16.151 c 1.029 -1.783 3.312 -3.23 5.095 -3.23 l 6.461 0 c 1.782 0 2.394 1.447 1.365 3.23 l -7.474 12.946 l 4.316 0 c 3.604 0 6.529 2.925 6.529 6.529 l 0 23.23 c 0 3.604 -2.925 6.529 -6.529 6.529 l -13.059 0 c -3.603 0 -6.528 -2.925 -6.528 -6.529 Z M 34.717 51.703 c 0 0 -0.004 -24.753 0 -24.982 c 0.009 -0.465 0.17 -1.001 0.499 -1.572 l 9.325 -16.151 c 1.029 -1.783 3.313 -3.23 5.095 -3.23 l 6.461 0 c 1.782 0 2.394 1.447 1.365 3.23 l -7.474 12.946 l 4.316 0 c 3.603 0 6.529 2.925 6.529 6.529 l 0 23.23 c 0 3.604 -2.925 6.529 -6.529 6.529 l -13.059 0 c -3.603 0 -6.529 -2.925 -6.529 -6.529 Z"
  );
}

blockquote:after {
  content: "";
  display: block;
  background: #ebebeb;
  width: 64px;
  height: 64px;
  position: absolute;
  top: 0;
  right: 0;
  transform: rotate(180deg);
  z-index: -1;
  clip-path: path(
    "M 3.169 51.703 c -0.001 0 -0.005 -24.753 0 -24.982 c 0.008 -0.465 0.17 -1.001 0.499 -1.572 l 9.325 -16.151 c 1.029 -1.783 3.312 -3.23 5.095 -3.23 l 6.461 0 c 1.782 0 2.394 1.447 1.365 3.23 l -7.474 12.946 l 4.316 0 c 3.604 0 6.529 2.925 6.529 6.529 l 0 23.23 c 0 3.604 -2.925 6.529 -6.529 6.529 l -13.059 0 c -3.603 0 -6.528 -2.925 -6.528 -6.529 Z M 34.717 51.703 c 0 0 -0.004 -24.753 0 -24.982 c 0.009 -0.465 0.17 -1.001 0.499 -1.572 l 9.325 -16.151 c 1.029 -1.783 3.313 -3.23 5.095 -3.23 l 6.461 0 c 1.782 0 2.394 1.447 1.365 3.23 l -7.474 12.946 l 4.316 0 c 3.603 0 6.529 2.925 6.529 6.529 l 0 23.23 c 0 3.604 -2.925 6.529 -6.529 6.529 l -13.059 0 c -3.603 0 -6.529 -2.925 -6.529 -6.529 Z"
  );
}

main {
  margin-top: 109px;
  display: grid;
  gap: 1em;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: 70em;
  padding: 0.5rem 2rem 3rem;
  background: var(--background);
  border-left: 1px dotted var(--main-brand);
  border-right: 1px dotted var(--main-brand);
  border-bottom: 1px dotted var(--main-brand);
}

main > * {
  grid-column: 1/5;
}

main section#archive-content-header {
  grid-column: 1/5;
}

main section#notebook {
  grid-column: 1/4;
}

main aside {
  grid-column: 4/5;
}

main section#archive-content-header {
  position: relative;
  width: 100%;
  max-width: 70em;
  padding: 0.5rem 2rem;
}

main section#archive-content-header h1 {
  position: relative;
  z-index: 1;
  font-size: 4rem;
  font-family: "Poppins", "Noto Sans JP";
  text-shadow: -2px -2px 5px var(--background), 2px 2px 5px var(--background),
    2px -2px 5px var(--background), -2px 2px 5px var(--background);
}

main section#archive-content-header img {
  position: absolute;
  top: 0.5rem;
  right: 0;
  max-width: 100%;
  height: calc(100% - 1rem);
  aspect-ratio: 5;
  object-fit: cover;
  clip-path: polygon(
    50% 0,
    100% 0%,
    100% 100%,
    23% 100%,
    43% 0,
    38% 0,
    42% 0,
    22% 100%,
    16% 100%,
    36% 0,
    31% 0,
    34.2% 0,
    14.2% 100%,
    10% 100%,
    30% 0,
    25% 0,
    28% 0,
    8% 100%,
    4.8% 100%,
    24.8% 0,
    20% 0,
    22% 0,
    2% 100%,
    0 100%,
    20% 0
  );
}

main section#notebook .posts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  width: 100%;
  grid-gap: 1.5rem;
}

main section#notebook .panel-wrapper:nth-child(1) {
  grid-column: 1 / 4;
}

main section#notebook .panel-wrapper:nth-child(2) {
  grid-column: 4 / 7;
}

main section#notebook .panel-wrapper:nth-child(3n + 3) {
  grid-column: 1 / 3;
}

main section#notebook .panel-wrapper:nth-child(3n + 4) {
  grid-column: 3 / 5;
}

main section#notebook .panel-wrapper:nth-child(3n + 5) {
  grid-column: 5 / 7;
}

main section#notebook .div-thumb {
  width: 100%;
  aspect-ratio: 40/21;
  border-radius: 1em;
  overflow: hidden;
  transition: 0.1s;
}

main section#notebook .div-thumb:hover {
  box-shadow: 0 0 0.2em 0.2em #77778a66;
}

main section#notebook img.img-for-panel {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.2s;
}

main section#notebook .div-thumb > a {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}

main section#notebook img.img-for-panel:hover,
main section#notebook .panel:has(.div-desc h2 a:hover) img.img-for-panel {
  transform: scale(1.05);
}

main section#notebook .div-desc {
  padding-top: 1em;
  padding-bottom: 2em;
  line-height: 1.6;
  word-break: auto-phrase;
}

main section#notebook .div-desc h2 {
  font-size: 1.08rem;
}

main section#notebook .div-desc a {
  color: #1e1e23;
  text-decoration: none;
}

main section#notebook .panel-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 0.8em;
}

main section#notebook .panel-footer .labels * {
  color: #77778a;
  display: inline-block;
}

main section#notebook .panel-footer .labels li {
  margin-right: 1em;
  text-wrap: nowrap;
}

main section#notebook .div-desc a:hover {
  color: var(--main-brand);
}

main section#notebook ul.page-numbers {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

main section#notebook .page-numbers li {
  display: flex;
  width: 3em;
  height: 3em;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  margin: 0 0.5em;
  font-family: "Poppins";
}

main section#notebook nav.navigation.pagination {
  grid-column: 1/7;
}

main section#notebook .page-numbers li:nth-of-type(4n + 1) {
  background: var(--main-brand);
}

main section#notebook .page-numbers li:nth-of-type(4n + 2) {
  background: var(--light-accent);
}

main section#notebook .page-numbers li:nth-of-type(4n + 3) {
  background: var(--dark-accent);
}

main section#notebook .page-numbers li:nth-of-type(4n + 4) {
  background: var(--dark-shade);
}

main section#notebook .page-numbers li a,
main section#notebook .page-numbers li span {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  text-align: center;
  padding-top: calc(50% - 0.5em);
  padding-bottom: calc(50% - 0.5em);
  line-height: 1;
  color: var(--background);
  text-decoration: none;
}

main section#notebook .page-numbers li:has(span.current):nth-of-type(4n + 1) {
  background: var(--background);
  border: 2px solid var(--main-brand);
}

main section#notebook .page-numbers li:has(span.current):nth-of-type(4n + 2) {
  background: var(--background);
  border: 2px solid var(--light-accent);
}

main section#notebook .page-numbers li:has(span.current):nth-of-type(4n + 3) {
  background: var(--background);
  border: 2px solid var(--dark-accent);
}

main section#notebook .page-numbers li:has(span.current):nth-of-type(4n + 4) {
  background: var(--background);
  border: 2px solid var(--dark-shade);
}

main section#notebook .page-numbers li:nth-of-type(4n + 1) span.current {
  color: var(--main-brand);
}

main section#notebook .page-numbers li:nth-of-type(4n + 2) span.current {
  color: var(--light-accent);
}

main section#notebook .page-numbers li:nth-of-type(4n + 3) span.current {
  color: var(--dark-accent);
}

main section#notebook .page-numbers li:nth-of-type(4n + 4) span.current {
  color: var(--dark-shade);
}

main section#notebook .page-numbers li:has(a):hover {
  filter: brightness(1.2);
}

aside .wp-block-search__button{
  white-space: nowrap;
}

aside li {
  list-style: none;
}

aside li.recent-posts-widget-with-thumbnails li {
  border-radius: 1.5rem;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16/9;
  margin: 1em 0;
}

aside li.recent-posts-widget-with-thumbnails li > a {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
}

aside li.recent-posts-widget-with-thumbnails li > a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
  transition: 0.2s;
}

aside li.recent-posts-widget-with-thumbnails li > a:hover img {
  transform: scale(1.05);
  filter: brightness(0.7);
}

aside li.recent-posts-widget-with-thumbnails li > a span {
  position: absolute;
  color: white;
  text-align: center;
  font-size: 0.8em;
  margin: 1em;
  word-break: auto-phrase;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

@media screen and (max-width: 960px) {
  main section#archive-content-header,
  main section#notebook,
  main section#utility {
    grid-column: 1/5;
  }
}

@media screen and (max-width: 768px) {
  header {
    padding: 0;
    height: 84px;
    align-items: start;
  }

  header .site-branding h1 {
    font-size: 1.4rem;
    margin-right: 0;
  }

  header #site-navigation-index {
    width: 100%;
    overflow-x: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  header #site-navigation-index::-webkit-scrollbar {
    display: none;
  }

  main {
    margin-top: 85px;
  }

  main section#notebook .panel-wrapper:nth-child(n) {
    grid-column: 1 / 7;
  }

  main section#notebook .panel {
    display: flex;
    flex-direction: column;
  }

  main section#notebook .div-desc {
    display: flex;
    padding-top: 0.5em;
    padding-left: 0.5em;
    padding-bottom: 1em;
    padding-right: 0.5em;
    flex-direction: column;
  }

  main section#notebook div#post-title-wrapper {
    margin: 1em;
  }
}

@media screen and (max-width: 640px) {
  main {
    padding: 0.5rem 1rem 3rem;
  }
  
  main section#archive-content-header h1 {
    font-size: 2.5rem;
  }
  
  aside {
    display: none;
  }
}

@media screen and (min-width: 640px) and (max-width: 768px) {
}

@media screen and (max-width: 480px) {
  :root {
    font-size: 14px;
  }
}
