@charset "UTF-8";
/*
    Theme Name: vibraspark
*/

/* 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;
}

.wp-block-embed__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

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;
  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#top-news,
main section#notebook {
  grid-column: 1/5;
}

main section#works-wrapper {
  grid-column: 1/4;
}

main section#utility {
  grid-column: 4/5;
  padding-top: 3rem;
  display: grid;
}

main section#top-news {
  line-height: 2;
}

main section#top-news:has(h1:first-child) {
  position: relative;
  background: white;
  color: #111;
  padding: 0 2em 1em;
  box-shadow: #66666666 0 0 2px 2px;
  margin-top: 24px;
  margin-bottom: 24px;
}

main section#top-news h1:first-child {
  background: white;
  display: inline-block;
  padding: 0 2em;
  box-shadow: #66666666 0 0 2px 2px;
  transform: translateY(-12px) rotate(-2deg);
  text-wrap: nowrap;
}

main section#top-news h2,
main section#top-news h3,
main section#top-news h4,
main section#top-news h5,
main section#top-news h6 {
  margin: 1em 0;
  position: relative;
}

main section#top-news h2.wp-block-heading {
  border-bottom: 2px solid var(--main-brand);
}

main section#top-news h3.wp-block-heading {
  border-bottom: 2px solid var(--light-accent);
}

main section#top-news h4.wp-block-heading {
  border-bottom: 2px solid var(--dark-accent);
}

main section#top-news h2.wp-block-heading::before {
  content: "";
  position: absolute;
  width: 90px;
  height: 24px;
  clip-path: path("M 66 12 a 6,6 0,0,1 24,0 a 6,6 0,0,1 -24,0 z");
  background-color: var(--main-brand);
  opacity: 0.3;
  bottom: 0;
  right: 0;
}

main section#top-news h3.wp-block-heading::before {
  content: "";
  position: absolute;
  width: 90px;
  height: 24px;
  clip-path: path(
    "M 36 12 a 6,6 0,0,1 24,0 m 6 0 a 6,6 0,0,1 24,0 a 6,6 0,0,1 -24,0 m -6 0 a 6,6 0,0,1 -24,0 z"
  );
  background-color: var(--light-accent);
  opacity: 0.3;
  bottom: 0;
  right: 0;
  transform-origin: 100% 100%;
  transform: scale(0.9);
}

main section#top-news h4.wp-block-heading::before {
  content: "";
  position: absolute;
  width: 90px;
  height: 24px;
  clip-path: path(
    "M 6 12 a 6,6 0,0,1 24,0 m 6 0 a 6,6 0,0,1 24,0m 6 0 a 6,6 0,0,1 24,0 a 6,6 0,0,1 -24,0 m -6 0 a 6,6 0,0,1 -24,0 m -6 0 a 6,6 0,0,1 -24,0 z"
  );
  background-color: var(--dark-accent);
  opacity: 0.3;
  bottom: 0;
  right: 0;
  transform-origin: 100% 100%;
  transform: scale(0.8);
}

main section#top-news p {
  margin: 0.5em 0;
}

main section#works-wrapper h2 {
  height: 3rem;
  text-align: center;
  font-family: "Poppins";
}

main section#works-wrapper ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

main section#works-wrapper ul li,
main section#utility ul li {
  list-style: none;
  overflow: hidden;
}

main section#works-wrapper ul li > a,
main section#utility ul li > a {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  line-height: 0;
}

main section#works-wrapper ul li > a p {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  align-content: center;
  transform: rotate3d(1, 0, 0, 90deg);
  font-size: 1.2em;
  word-break: auto-phrase;
  color: white;
  padding: 1em;
  line-height: 2;
}

main section#works-wrapper ul li:nth-child(4n + 1) > a:hover p {
  transition: 0.3s;
  transform: rotate3d(1, 0, 0, 0);
  background: color-mix(in srgb, var(--main-brand), transparent 10%);
}

main section#works-wrapper ul li:nth-child(4n + 2) > a:hover p {
  transition: 0.3s;
  transform: rotate3d(1, 0, 0, 0);
  background: color-mix(in srgb, var(--dark-accent), transparent 10%);
}

main section#works-wrapper ul li:nth-child(4n + 3) > a:hover p {
  transition: 0.3s;
  transform: rotate3d(1, 0, 0, 0);
  background: color-mix(in srgb, var(--light-accent), transparent 10%);
}

main section#works-wrapper ul li:nth-child(4n + 4) > a:hover p {
  transition: 0.3s;
  transform: rotate3d(1, 0, 0, 0);
  background: color-mix(in srgb, var(--dark-shade), transparent 10%);
}

main section#works-wrapper ul li img,
main section#utility ul li img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

main section#utility ul {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

main section#utility a:hover img {
  filter: brightness(1.2);
}

main section#notebook {
  margin-top: 2em;
  border-top: 2px dotted var(--main-brand);
}

main section#notebook > h2:first-child {
  margin: 1em 0;
  text-align: center;
}

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);
}

aside .wp-block-search__button{
  white-space: nowrap;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

@media screen and (max-width: 960px) {
  main section#top-news,
  main section#notebook,
  main section#works-wrapper,
  main section#utility {
    grid-column: 1/5;
  }
  
  main section#utility{
    padding-top: 0;
  }

  main section#utility ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@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 (min-width: 640px) and (max-width: 768px) {
}

@media screen and (max-width: 640px) {
  main {
    padding: 0.5rem 1rem 3rem;
  }

  main section#top-news:has(h1:first-child) {
    padding: 0 1em 1em;
  }

  main section#works-wrapper ul li > a p {
    font-size: 70%;
    line-height: 1.5;
  }
}

@media screen and (max-width: 480px) {
  :root {
    font-size: 14px;
  }
}
