@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, #about-me-section #wrapper p, .project .readmore, .project .description, #hero #wrapper #text 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, #about-me-section #wrapper footer ul li a span, #about-me-section #wrapper h1,
#about-me-section #wrapper h2,
#about-me-section #wrapper h3, .project .title, #section-header #section-title, #hero #wrapper #text #read-more a, #hero #wrapper #text h1, #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;
}

/* +++ Sections +++ */
section {
  display: block;
  margin: 2rem 0;
}

.section-anchor {
  display: block;
  visibility: hidden;
  margin-bottom: 50px;
}

/* Hero Section */
#hero #wrapper {
  margin: 1rem;
  margin-top: 4rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap-reverse;
  align-items: center;
  justify-content: center;
}
#hero #wrapper #text {
  margin: 1rem;
  padding: 0px;
}
#hero #wrapper #text h1 {
  margin: 0 0 1.375rem 0;
  font-size: 2rem;
  letter-spacing: -1px;
  color: var(--color-primary);
  text-align: left;
}
#hero #wrapper #text p {
  margin: 0 auto;
  font-size: 0.875rem;
  color: var(--color-text);
  text-align: left;
  max-width: 18ch;
}
#hero #wrapper #text #read-more {
  margin: 0.375rem 0 0 0;
}
#hero #wrapper #text #read-more a {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
  transition: transform 0.3s ease;
}
#hero #wrapper #text #read-more a::before {
  content: ">";
  color: var(--color-primary);
  position: absolute;
  width: 0px;
  opacity: 0;
  margin-top: -2px;
  transform: translateX(-100%);
  transition: all 0.3s ease;
}
#hero #wrapper #text #read-more a:hover {
  transform: translateX(0.625rem);
}
#hero #wrapper #text #read-more a:hover::before {
  opacity: 1;
  width: 0.625rem;
}
#hero #wrapper #img {
  margin: 0.375rem;
  width: 40vw;
  height: 40vw;
  min-width: 250px;
  min-height: 250px;
  max-height: 400px;
  max-width: 400px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0) scale(1, 1);
  -webkit-transform: translateZ(0) scale(1, 1);
  border-radius: 50%;
  overflow: hidden;
}
#hero #wrapper #img img {
  height: 100%;
  transform: translateX(-25%);
}

@media only screen and (max-width: 690px) {
  #hero #wrapper {
    flex-direction: column-reverse;
    flex-wrap: nowrap;
  }

  #hero #wrapper #text h1 {
    margin: 0 0 1.375rem 0;
    text-align: center;
  }
}
/* Section - Header */
#section-header {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin: 0;
}
#section-header #left,
#section-header #right {
  margin: 0.625rem 0;
  background-color: var(--color-secondary);
  transition: transform 0.5s ease;
}
#section-header #left {
  border-right: 5px solid var(--color-primary);
  width: 4rem;
}
#section-header #right {
  border-left: 5px solid var(--color-primary);
  flex-grow: 1;
}
#section-header #section-title {
  font-size: 2rem;
  margin: 0.375rem 3rem;
  color: var(--color-text);
}
#section-header:hover #left {
  transform: translateX(-1rem);
}
#section-header:hover #right {
  transform: translateX(1rem);
}

@media (hover: none) {
  #section-header.active #left {
    transform: translateX(-1rem);
  }
  #section-header.active #right {
    transform: translateX(1rem);
  }
}
/* Projects Section */
#projects-section #wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  grid-template-rows: auto;
  margin: 1.375rem;
}

.project {
  margin: 0.375rem;
  padding: 1rem;
  background-color: var(--color-secondary);
  border-radius: 5px;
  box-shadow: 0 0.375rem 0.625rem var(--color-flat-shadow);
  border: 1px solid transparent;
  transition: border 1s ease;
  cursor: pointer;
}
.project:hover {
  border-color: var(--color-primary);
}
.project .title {
  font-size: 2rem;
  margin: 0;
  text-align: center;
  color: var(--color-text);
}
.project .preview {
  display: block;
  width: 80%;
  margin: 0 auto;
  margin-bottom: 0.875rem;
}
.project .description {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin: 0 0 0.375rem 0;
}
.project footer {
  display: flex;
  justify-content: flex-end;
}
.project .readmore {
  display: block;
  font-size: 0.875rem;
  margin: 0;
  padding: 0.375rem 0.875rem;
  border-radius: 0.375rem;
  text-decoration: none;
  color: var(--color-bg);
  background: var(--color-primary);
  border: 1.5px solid transparent;
  transition: box-shadow 0.3s ease;
}
.project .readmore:hover {
  box-shadow: -2px -2px 0 0 var(--color-primary);
  border-color: var(--color-bg);
}

@media only screen and (max-width: 910px) {
  #projects-section #wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

  .project .preview {
    width: 70%;
  }
}
@media only screen and (max-width: 690px) {
  #projects-section #wrapper {
    grid-template-columns: repeat(1, 1fr);
  }

  .project .preview {
    width: 50%;
  }
}
/* About me Section */
#about-me-section #wrapper {
  margin: 1.375rem;
}
#about-me-section #wrapper p {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  max-width: 32ch;
  margin: 0.375rem auto;
}
#about-me-section #wrapper h1 {
  max-width: 26ch;
  font-size: 2rem;
  margin: 0 0 1rem;
}
#about-me-section #wrapper h2,
#about-me-section #wrapper h3 {
  max-width: 32ch;
  font-size: 1.375rem;
}
#about-me-section #wrapper h2 {
  margin: 0.875rem 0;
}
#about-me-section #wrapper h1,
#about-me-section #wrapper h2,
#about-me-section #wrapper h3 {
  position: relative;
  color: var(--color-text);
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}
#about-me-section #wrapper h1::before,
#about-me-section #wrapper h2::before,
#about-me-section #wrapper h3::before {
  content: "";
  position: absolute;
  width: 0%;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--color-text-secondary);
  opacity: 0.6;
}
#about-me-section #wrapper h1.about-me-title-in::before,
#about-me-section #wrapper h2.about-me-title-in::before,
#about-me-section #wrapper h3.about-me-title-in::before {
  transition: width 0.3s ease-in-out 0s;
  width: 100%;
}
#about-me-section #wrapper h1.about-me-title-out::before,
#about-me-section #wrapper h2.about-me-title-out::before,
#about-me-section #wrapper h3.about-me-title-out::before {
  transition: transform 0.3s ease-in-out 0s, width 0s linear 0.3s;
  transform: translateX(100%);
  width: 0;
}
#about-me-section #wrapper footer {
  margin: 1.75rem;
}
#about-me-section #wrapper footer h3 {
  max-width: 32ch;
  margin: 0.875rem auto;
}
#about-me-section #wrapper footer ul {
  display: block;
  max-width: 58ch;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
#about-me-section #wrapper footer ul li a {
  margin-left: 1.75rem;
  text-decoration: none;
}
#about-me-section #wrapper footer ul li a span {
  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;
}
#about-me-section #wrapper footer ul 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;
}
#about-me-section #wrapper footer ul li a:hover span {
  color: var(--color-text);
  transform: scale(1.1, 1.1);
}
#about-me-section #wrapper footer ul li a:hover .icon {
  fill: var(--color-text);
  transform: scale(0.9, 0.9);
}