@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300&display=swap");
:root {
  --color-bg: #dfdfdf;
  --color-text: #292929;
  --color-text-secondary: #5a5a5a;
  --color-primary: #39a7cd;
  --color-secondary: #f7f7f7;
  --color-shadow: #3a3a3a15;
  --color-flat-shadow: #32323215;
}

.dark {
  --color-bg: #141414;
  --color-text: #d8d8d8;
  --color-text-secondary: #9c9c9c;
  --color-primary: #3499bb;
  --color-secondary: #222222;
  --color-shadow: #d8d8d815;
  --color-flat-shadow: #ffffff0f;
}

body {
  position: relative;
  background-color: var(--color-bg);
  margin: 0;
  padding: 0;
  max-width: 100vw;
  min-width: 325px;
}

@font-face {
  font-family: "Bariol";
  src: url("../../Fonts/Bariol_Regular.otf");
  font-weight: normal;
  font-style: normal;
}
html {
  font-size: 24px;
}

.noto-sans-jp, main#outer p, #page-footer #copyright p, #page-footer #content #settings select, #page-footer #content #settings div, #page-footer #content #navigation #socials li a span, #page-footer #content #navigation #nav li a, #page-footer #content h3, #mobile-menu-content .menu-item > a, #desktop-menu-content .menu-item > a {
  font-family: "Noto Sans JP", "Verdana", sans-serif;
  font-weight: 300;
  line-height: 1.6em;
}

.bariol, #socials li a span:not([data-lng]), #articleNav .cell p, main#outer h3, main#outer h1,
main#outer h2, #header #title {
  font-family: "Bariol", "Trebuchet MS", sans-serif;
  line-height: 1.6em;
}

/* Manage Mobile / Desktop Menu */
.mobile {
  display: none;
}

@media only screen and (max-width: 910px) {
  html {
    font-size: 16px;
  }
}
#logo-wrapper {
  cursor: pointer;
}
#logo-wrapper #logo {
  fill: var(--color-primary);
}

/* Heder: */
#header {
  position: fixed;
  height: 70px;
  margin: 0;
  padding: 0px;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-secondary);
}
#header #logo-wrapper {
  position: relative;
  margin: 0.375rem;
  height: 100%;
  width: auto;
}
#header #logo-wrapper svg {
  display: block;
  height: 100%;
  width: auto;
}
#header #title {
  margin: 0px 0.375rem 0px 0.625rem;
  color: var(--color-primary);
  font-size: 2rem;
}
#header #menu {
  flex-grow: 1;
  height: 100%;
  margin: 0;
  padding: 0;
}
#header #menu #menu-content {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Menu: Desktop: */
#desktop-menu-content {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: flex-end;
  margin: 0 0.375rem 0 0;
  height: 100%;
}
#desktop-menu-content .menu-item {
  margin: 0 0.375rem 0 0;
  padding: 0 3px 3px 3px;
  border: 3px solid var(--color-bg);
  border-radius: 4px 4px 0 0;
  border-bottom: none;
  transition: all 0.3s ease;
}
#desktop-menu-content .menu-item:hover > a {
  border-bottom: 1px solid var(--color-primary);
}
#desktop-menu-content .menu-item > a {
  font-size: 1.1rem;
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: none;
}
#desktop-menu-content .menu-item.selected {
  background-color: var(--color-bg);
}
#desktop-menu-content .menu-item.selected a {
  color: var(--color-text);
  border: none;
}

/* Mobile: Burger */
#burger {
  position: relative;
  margin: 11px 20px 11px auto;
  height: 28px;
  width: 50px;
  cursor: pointer;
}
#burger .burger-span {
  position: absolute;
  height: 4px;
  right: 0;
  border-radius: 2px;
  background-color: var(--color-text);
  transition: all 0.3s cubic-bezier(0.55, 0.13, 0.49, 0.95);
}
#burger #burger-item-1 {
  top: 0;
  width: 40px;
}
#burger #burger-item-2 {
  top: 12px;
  width: 30px;
}
#burger #burger-item-3 {
  top: 24px;
  width: 20px;
}
#burger:hover #burger-item-2 {
  right: 5px;
}
#burger:hover #burger-item-3 {
  right: 10px;
}

#burger.isOpen {
  margin-right: 40px;
  width: 30px;
}
#burger.isOpen #burger-item-1 {
  transform: rotate(45deg) translate(18px);
}
#burger.isOpen #burger-item-2 {
  opacity: 0;
}
#burger.isOpen #burger-item-3 {
  width: 40px;
  top: 0;
  transform: rotate(-45deg) translateY(18px);
}
#burger.isOpen:hover #burger-item-3 {
  right: 0px;
  transform: rotate(-45deg) translateY(18px) scale(1.1);
}
#burger.isOpen:hover #burger-item-1 {
  transform: rotate(45deg) translate(18px) scale(1.1);
}

/* Mobile Menu */
#mobile-menu-content {
  display: block;
  position: absolute;
  top: 50px;
  right: 0;
  left: 0;
  z-index: 2500;
  box-shadow: 0 0.375rem 1rem 0.375rem var(--color-shadow);
  padding: 0.875rem 0px 1.75rem 0px;
  background-color: var(--color-secondary);
  border-top: 3px solid var(--color-bg);
  opacity: 0;
  transform: translateY(-110%) scaleY(0.8);
  transition: transform 0.3s ease-in 0s, opacity 0.3s linear 0.2s;
}
#mobile-menu-content .menu-item {
  margin: 0px 0.875rem;
  padding: 0.875rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--color-text);
  transition: border 0.3s ease;
}
#mobile-menu-content .menu-item:hover {
  border-bottom: 1px solid var(--color-primary);
}
#mobile-menu-content .menu-item.selected {
  border-bottom: 1px solid var(--color-primary);
}
#mobile-menu-content .menu-item > a {
  font-size: 1.375rem;
  color: var(--color-primary);
  text-decoration: none;
}

#mobile-menu-content.isOpen {
  transform: translateY(0) scaleY(1);
  opacity: 1;
}

/* Footer */
#page-footer {
  background-color: var(--color-secondary);
  margin: 1rem 0 0 0;
  padding: 0.625rem;
}
#page-footer #content {
  display: grid;
  grid-template-columns: 66% 33%;
}
#page-footer #content h3 {
  color: var(--color-text);
  font-size: 0.875rem;
  margin: 0.375rem 0;
  padding: 0;
}
#page-footer #content #navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
#page-footer #content #navigation ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.875rem;
}
#page-footer #content #navigation #nav li {
  margin: 0.875rem 0;
}
#page-footer #content #navigation #nav li a {
  display: inline-block;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.675rem;
  transition: color 0.3s linear;
}
#page-footer #content #navigation #nav li a:hover {
  color: var(--color-text);
}
#page-footer #content #navigation #socials li {
  margin: 0.875rem 0;
}
#page-footer #content #navigation #socials li a {
  text-decoration: none;
  margin-bottom: 0.375rem;
  transition: color 0.3s linear;
}
#page-footer #content #navigation #socials li a span {
  display: inline-block;
  margin-left: 0.375rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.675rem;
  transition: color 0.3s linear;
  vertical-align: middle;
}
#page-footer #content #navigation #socials li a svg {
  display: inline-block;
  width: 1.375rem;
  height: 1.375rem;
  fill: var(--color-text-secondary);
  vertical-align: middle;
}
#page-footer #content #navigation #socials li a:hover span {
  color: var(--color-text);
}
#page-footer #content #navigation #socials li a:hover svg {
  fill: var(--color-text);
}
#page-footer #content #settings div {
  margin: 0.875rem 0 0.875rem 0.875rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  color: var(--color-text-secondary);
  font-size: 0.675rem;
  transition: color 0.3s linear;
}
#page-footer #content #settings div:hover {
  color: var(--color-text);
}
#page-footer #content #settings div:hover select {
  color: var(--color-text);
}
#page-footer #content #settings div:hover svg {
  stroke: var(--color-text);
}
#page-footer #content #settings div svg {
  stroke: var(--color-text-secondary);
  height: 0.675rem;
  width: 0.675rem;
  margin-left: -1rem;
  pointer-events: none;
}
#page-footer #content #settings label {
  display: inline-block;
  margin-right: 0.875rem;
}
#page-footer #content #settings select {
  -webkit-appearance: none;
  border: none;
  background-color: var(--color-bg);
  transition: color 0.3s linear;
  color: var(--color-text-secondary);
  font-size: 0.675rem;
  padding: 0.1875rem 0.625rem;
  padding-right: 1.375rem;
  border-radius: 5px;
  text-align: left;
}
#page-footer #copyright {
  margin: 1rem auto 0;
  text-align: center;
}
#page-footer #copyright p {
  color: var(--color-text-secondary);
  margin: 0;
  font-size: 0.675rem;
}
#page-footer #copyright p a {
  text-decoration: underline;
  text-decoration-color: var(--color-text-secondary);
  color: var(--color-text);
}

@media only screen and (max-width: 690px) {
  #page-footer #content {
    grid-template-columns: 1fr;
    grid-gap: 0.875rem;
  }
}
/* Switch Header between Dekstop & Mobile */
@media only screen and (max-width: 450px) {
  #title {
    display: none;
  }
}
@media only screen and (max-width: 690px) {
  .mobile {
    display: block;
  }

  .desktop {
    display: none;
  }
}
@media only screen and (max-width: 910px) {
  #header {
    max-height: 50px;
  }

  #title {
    margin: 0 1.5rem;
  }
}
main {
  display: block;
}

.hidden {
  display: none;
}

.no-scroll {
  overflow: hidden;
}

main#outer {
  position: relative;
  margin: 0.625rem 1rem 3rem 1rem;
}
main#outer h1,
main#outer h2 {
  color: var(--color-text);
  font-size: 3rem;
  margin: 0.875rem auto;
  max-width: 34ch;
}
main#outer h3 {
  color: var(--color-text);
  font-size: 1.375rem;
  margin: 0.875rem auto;
}
main#outer h2 {
  font-size: 1.375rem;
}
main#outer p {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  margin: 0.375rem auto;
  max-width: 32ch;
  word-spacing: 0.09375rem;
  word-wrap: break-word;
}
main#outer p code {
  padding: 0.1rem;
  border-radius: 3px;
  background-color: var(--color-shadow);
}
main#outer p a,
main#outer p #signature {
  color: var(--color-text);
}
main#outer section {
  padding: 0.375rem 3rem;
}

@media only screen and (min-width: 75ch) {
  main#outer.two-cols section p {
    column-count: 2;
    -moz-column-count: 2;
    -webkit-column-count: 2;
    -moz-column-fill: auto;
    column-fill: auto;
  }

  main#outer section p {
    max-width: 62ch;
  }
}
main header {
  position: relative;
  margin-top: 1.75rem;
  padding: 1.75rem 0 0 0;
}

/* Title Image */
#titleImage {
  position: relative;
  /* Detail Controls */
  /* Detail View */
}
#titleImage #controls div {
  position: fixed;
  background-color: var(--color-secondary);
  width: 1.375rem;
  height: 1.375rem;
  padding: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  z-index: 3100;
  top: 50%;
  cursor: pointer;
  box-shadow: 0 0 0.1875rem 0.1875rem var(--color-shadow);
  transition: transform 0.3s ease;
}
#titleImage #controls div#left {
  left: 1.375rem;
}
#titleImage #controls div#right {
  right: 1.375rem;
}
#titleImage #controls div:hover {
  transform: scale(1.1, 1.1);
}
#titleImage #controls div.disabled {
  opacity: 0.6;
  cursor: default;
}
#titleImage #controls div.disabled:hover {
  transform: scale(1, 1);
}
#titleImage #controls div svg {
  stroke: var(--color-primary);
  width: 2rem;
  height: 2rem;
}
#titleImage #controls.scroll div {
  position: absolute;
  z-index: 500;
}
#titleImage #controls.scroll div#left {
  left: 0;
}
#titleImage #controls.scroll div#right {
  right: 0;
}
#titleImage #controls.scroll div.disabled {
  opacity: 0.4;
}
#titleImage #controls.active-detail {
  display: block;
}
#titleImage #controls.active-detail div {
  display: flex;
  position: fixed;
  top: 50%;
  z-index: 3100;
}
#titleImage #controls.active-detail div#left {
  left: 1.375rem;
}
#titleImage #controls.active-detail div#right {
  right: 1.375rem;
}
#titleImage #controls.active-detail div.disabled {
  opacity: 0.6;
  cursor: default;
}
#titleImage #controls.active-detail div.disabled:hover {
  transform: scale(1, 1);
}
#titleImage #detailContainer {
  position: fixed;
  opacity: 1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1500;
}
#titleImage #detailContainer #backdrop {
  position: absolute;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
#titleImage #detailContainer #close {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 100;
  transition: transform 0.3s ease;
}
#titleImage #detailContainer #close:hover {
  transform: scale(1.1, 1.1);
}
#titleImage #detailContainer #close svg {
  stroke: var(--color-text);
  width: 1.1rem;
  height: 1.1rem;
  cursor: pointer;
}
#titleImage #detailContainer img {
  position: absolute;
  max-height: 90vh;
  max-width: 90vw;
  top: 50%;
  transition: all 0.5s ease-in-out;
}
#titleImage #detailContainer img.active {
  left: 50%;
  right: unset;
  transform: translate(-50%, -50%);
}
#titleImage #detailContainer img.on-right {
  left: 100%;
  transform: translateY(-50%) scale(0.6, 0.6);
}
#titleImage #detailContainer img.on-left {
  left: 0;
  transform: translate(-100%, -50%) scale(0.6, 0.6);
}
#titleImage #imageContainer.singleImage img {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  margin: -0.875rem auto 0 auto;
}
#titleImage #imageContainer.carousel {
  position: relative;
  height: 90vh;
  left: -4rem;
  width: 100vw;
  overflow: hidden;
}
#titleImage #imageContainer.carousel img {
  position: absolute;
  max-height: 90%;
  max-width: 90%;
  top: 50%;
  transition: all 0.5s ease-in-out;
}
#titleImage #imageContainer.carousel img.active {
  left: 50%;
  right: unset;
  transform: translate(-50%, -50%);
}
#titleImage #imageContainer.carousel img.on-right {
  left: 100%;
  transform: translateY(-50%) scale(0.6, 0.6);
}
#titleImage #imageContainer.carousel img.on-left {
  left: 0;
  transform: translate(-100%, -50%) scale(0.6, 0.6);
}

@media (hover: hover) {
  #close svg {
    width: 1.375rem;
    height: 1.375rem;
  }

  #controls div svg {
    width: 1.375rem;
    height: 1.375rem;
  }
}
/* Detail Button */
#imageDetails p {
  display: block;
  float: right;
  margin: 0;
  font-size: 0.675rem;
  text-decoration: underline;
  cursor: pointer;
  transform: color 0.3s linear;
  column-count: 1 !important;
}
#imageDetails p:hover {
  color: var(--color-text);
}

#articleNav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 0.375rem;
  align-items: stretch;
  justify-content: center;
  margin: 3rem 1.375rem 0.875rem;
}
#articleNav .cell {
  display: grid;
  place-items: center;
  background-color: var(--color-secondary);
  padding: 0.625rem 1rem;
  text-decoration: none;
  border-radius: 0.375rem;
  box-shadow: 0 0.375rem 0.375rem var(--color-shadow);
}
#articleNav .cell#currentProject {
  padding: 0.875rem 1.75rem;
  display: block;
  grid-template-columns: auto min-content;
  transition: transform 0.5s ease-in-out;
}
#articleNav .cell#lastProject {
  grid-template-columns: min-content auto;
}
#articleNav .cell#nextProject {
  grid-template-columns: auto min-content;
}
#articleNav .cell svg {
  stroke: var(--color-primary);
  height: 2rem;
  width: 2rem;
  transition: transform 0.5s ease-in-out;
}
#articleNav .cell p {
  display: block;
  padding: 0;
  margin: auto 0;
  color: var(--color-text);
  font-size: 0.875rem;
  text-align: center;
  max-width: unset;
  transition: color 0.5s linear;
}
#articleNav .cell:hover p {
  color: var(--color-text-secondary);
}
#articleNav .cell:hover#lastProject svg {
  transform: translateX(-0.875rem);
}
#articleNav .cell:hover#nextProject svg {
  transform: translateX(0.875rem);
}
#articleNav .cell:hover#currentProject {
  transform: translateY(-0.375rem);
}
#articleNav .cell.empty {
  pointer-events: none;
  opacity: 0.4;
  filter: blur(3px);
  -ms-filter: blur(3px);
  -webkit-filter: blur(3px);
}
#articleNav .cell.empty p {
  display: none;
}

#signature {
  font-size: 1.15rem !important;
  text-align: center;
  font-style: italic;
}

#socials {
  display: block;
  max-width: 58ch;
  margin: 0 auto;
  margin-top: 1.375rem;
  padding: 0;
  list-style: none;
}
#socials li a {
  margin-left: 1.75rem;
  text-decoration: none;
}
#socials li a span:not([data-lng]) {
  display: inline-block;
  margin: auto 0.875rem;
  padding: 0;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  transition: all 0.3s ease;
  vertical-align: middle;
}
#socials li a span[data-lng]::after {
  content: ":";
}
#socials li a .icon {
  display: inline-block;
  height: 2rem;
  width: 2rem;
  margin: 0.375rem;
  fill: var(--color-text-secondary);
  transition: all 0.3s ease;
  vertical-align: middle;
}
#socials li a:hover span {
  color: var(--color-text);
  transform: scale(1.05, 1.05);
}
#socials li a:hover .icon {
  fill: var(--color-text);
  transform: scale(0.9, 0.9);
}

@media only screen and (max-width: 690px) {
  #articleNav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
  }
  #articleNav #currentProject {
    grid-column: 1/3;
    grid-row: 1;
  }

  #socials li a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  #socials li a span {
    word-wrap: break-word;
    word-break: break-all;
  }
  #socials li a .icon {
    display: block;
  }
}
@media only screen and (max-width: 450px) {
  #articleNav {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, auto);
  }
  #articleNav #currentProject {
    grid-column: unset;
  }
}
.project_contentWarpper {
  max-width: 100%;
  height: auto;
  position: relative;
  margin: 0.625rem 0;
}

.project_image {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}
.project_image img {
  position: relative;
  z-index: 100;
  max-width: 100%;
  max-height: 85vh;
  border-radius: 5px 5px 0 0;
  display: block;
}
.project_image:hover .project_imgInfo {
  transform: translateY(0);
  opacity: 1;
}

.project_twoColImageWrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project_twoColImageWrapper .project_image {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  left: auto;
  right: auto;
  transform: unset;
}
.project_twoColImageWrapper .project_image img {
  align-self: center;
}
.project_twoColImageWrapper .project_image .project_imgInfo {
  width: auto;
}

.project_imgInfo {
  max-width: 100% !important;
  margin: 0 0 1rem !important;
  padding: 0.375rem !important;
  font-size: 0.675rem !important;
  font-style: italic;
  text-align: center;
  background-color: var(--color-shadow);
  border-radius: 0 0 5px 5px;
  z-index: 10;
  transition: 200ms linear all;
  opacity: 0;
  transform: translateY(-100%);
}

@media (hover: none) {
  .project_imgInfo {
    transform: translateY(0);
    opacity: 1;
  }
}
@media only screen and (min-width: 450px) {
  .project_image img {
    max-height: 45vh;
  }
}
@media only screen and (min-width: 1140px) {
  .project_twoColImageWrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 0.625rem;
    margin-bottom: 1rem;
  }
  .project_twoColImageWrapper .project_image {
    display: block;
  }
}
.project_image.with_detail .detail_close {
  display: none;
}
.project_image.with_detail .detail_backdrop {
  display: none;
}

.project_image.with_detail.active_detail {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  transform: unset;
  display: flex;
  justify-content: center;
  align-items: center;
}
.project_image.with_detail.active_detail .detail_backdrop {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.project_image.with_detail.active_detail img {
  transition: 200ms linear all;
  border-radius: 5px;
  display: block;
  max-width: 100%;
  max-height: 100%;
}
.project_image.with_detail.active_detail .project_imgInfo {
  position: absolute;
  z-index: 1000;
  max-width: 90vw !important;
  bottom: 1rem;
  padding: 0.625rem;
  font-size: 1.375rem !important;
  background-color: var(--color-secondary);
  border-radius: 5px;
  box-shadow: 0px 0px 20px 30px var(--color-shadow);
  transform: translateY(0);
  opacity: 1;
}
.project_image.with_detail.active_detail .detail_close {
  position: fixed;
  display: block;
  top: 2rem;
  right: 2rem;
  z-index: 100;
  transition: transform 0.3s ease;
}
.project_image.with_detail.active_detail .detail_close:hover {
  transform: scale(1.1, 1.1);
}
.project_image.with_detail.active_detail .detail_close svg {
  stroke: var(--color-text);
  width: 2rem;
  height: 2rem;
  cursor: pointer;
}