/*--------------
DesktopUI
----------------*/
:root {
  --clr1: #ddd;
  --clr2: #efefef;
  --clr3: #333;
  --clr4: tomato;
  --border-radius: 7px;
  --text-radius: 50em;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
span {
  line-height: 1.5;
}

body {
  background: var(--clr1);
  padding: 50px 0 0 0;
  margin: 0 10px;
  font-family: 'Noto Sans JP', 'Noto Sans SC', Arial, sans-serif;
  font-feature-settings: 'palt';
}

body *,
body :after,
body :before {
  box-sizing: border-box;
}

.transparent {
  background: transparent !important;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

.wrap.sticky {
  margin-top: 150px;
  /* set height from header */
}

.fluid .wrap {
  max-width: 100% !important;
}

header {
  display: flex;
  justify-content: space-between;
  background: var(--clr2);
  padding: 50px;
  width: 100%;
  border-radius: var(--border-radius);
  position: relative;
  z-index: 99;
}

.wrap.sticky header {
  background: var(--clr2);
  padding: 50px;
  position: fixed;
  top: 0px;
  max-width: 960px;
  width: calc(100% - 20px);
  min-width: 360px;
  border-radius: 0px 0px var(--border-radius) var(--border-radius);
}

.fluid .wrap.sticky header {
  max-width: 100% !important;
}

header .logo img {
  width: 100px;
  height: 100px;
  border-radius: var(--text-radius);
}

header nav {
  display: flex;
}

header nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

header nav ul li {
  list-style: none;
  height: auto;
  border-radius: var(--text-radius);
}

nav ul li a {
  transition-duration: 200ms;
}

nav ul li a:hover {
  opacity: 0.7;
}

section {
  background: var(--clr2);
  padding: 100px 20px;
  width: 100%;
  border-radius: var(--border-radius);
  position: relative;
  margin: 10px 0 0 0;
}

section .headline {
  display: block;
  margin: 0 auto;
  list-style: none;
  max-width: 260px;
  background: var(--clr1);
  border-radius: var(--text-radius);
  text-align: center;
}

section .headline h3 {
  padding-top: 0.4rem;
  padding-bottom: 0.6rem;
}

section .text {
  display: block;
  margin: 10px auto;
  max-width: 500px;
  background: var(--clr1);
  border-radius: var(--text-radius);
  text-align: center;
  padding-top: 0.4rem;
  padding-bottom: 0.6rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

section .text p {
  padding-left: 1rem;
  padding-right: 1rem;
}

section .button {
  text-align: center;
  padding-top: 0.25rem;
  display: block;
  margin: 20px auto 0 auto;
  max-width: 120px;
  height: 35px;
  background: var(--clr1);
  border-radius: var(--text-radius);
}

section.contentbox .headline {
  margin: 10px 0 !important;
  max-width: 65%;
}

section.contentbox .text {
  margin: 10px 0 !important;
  max-width: 100%;
}

section.contentbox .text p {
  padding-left: 1rem;
  padding-right: 1rem;
}

section.contentbox .button {
  margin: 10px 0 !important;
}

section.cards {
  padding: 0px;
  background: transparent;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

section.cards .card {
  background: var(--clr2);
  border-radius: var(--border-radius);
  display: inline-block;
}

section.cards .card .content {
  padding: 40px;
}

section.cards .card img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius) var(--border-radius) 0px 0px;
}

footer {
  padding: 50px;
  width: 100%;
  border-radius: var(--border-radius) var(--border-radius) 0px 0px;
  position: relative;
  margin: 10px 0 0 0;
}

footer .logo {
  background-image: url(img/icon-pnuts-50-50.jpg);
  width: 50px;
  height: 50px;
  border-radius: var(--text-radius);
}

footer nav {
  display: flex;
  align-items: center;
}

footer nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer nav ul li {
  display: inline-block;
  list-style: none;
  width: 60px;
  height: auto;
  border-radius: var(--text-radius);
}

@media (max-width: 728px) {
  section.cards .card {
    width: 100%;
    display: block;
    margin: 10px 0 0 0 !important;
    padding: 0;
  }

  .wrapper {
    padding: 50px 10px 100px 10px !important;
  }
}

body,
html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--clr4);
  text-rendering: optimizelegibility;
  margin: 0px;
  padding: 0px;
  height: 100%;
}

.wrapper {
  transform-origin: center bottom 0px;
  transition: all 0.5s ease 0s;
  box-shadow: 0px 22px 54px rgba(0, 0, 0, 0.5);
  background: var(--clr3);
  padding: 50px 50px 100px 50px;
}

body.tight .wrapper {
  transform: translateY(-60px) scale(0.9);
  cursor: pointer;
}

.footer {
  width: 90%;
  max-width: 1440px;
  margin: 0px auto;
  text-align: center;
  margin-bottom: 50px;
}

.footer .footer-nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }

  40% {
    -moz-transform: translateY(-30px);
    -ms-transform: translateY(-30px);
    -webkit-transform: translateY(-30px);
    transform: translateY(-30px);
  }

  60% {
    -moz-transform: translateY(-15px);
    -ms-transform: translateY(-15px);
    -webkit-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}

.arrow {
  position: fixed;
  bottom: 50px;
  left: 50%;
  cursor: pointer;
  margin-left: -20px;
  width: 20px;
  height: 20px;
  padding: 20px;
  z-index: 99;
  background-color: var(--clr4);
  border-radius: 50em;
  background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNi4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iNTEycHgiIGhlaWdodD0iNTEycHgiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwYXRoIGZpbGw9IiNGRkZGRkYiIGQ9Ik0yOTMuNzUxLDQ1NS44NjhjLTIwLjE4MSwyMC4xNzktNTMuMTY1LDE5LjkxMy03My42NzMtMC41OTVsMCwwYy0yMC41MDgtMjAuNTA4LTIwLjc3My01My40OTMtMC41OTQtNzMuNjcyICBsMTg5Ljk5OS0xOTBjMjAuMTc4LTIwLjE3OCw1My4xNjQtMTkuOTEzLDczLjY3MiwwLjU5NWwwLDBjMjAuNTA4LDIwLjUwOSwyMC43NzIsNTMuNDkyLDAuNTk1LDczLjY3MUwyOTMuNzUxLDQ1NS44Njh6Ii8+DQo8cGF0aCBmaWxsPSIjRkZGRkZGIiBkPSJNMjIwLjI0OSw0NTUuODY4YzIwLjE4LDIwLjE3OSw1My4xNjQsMTkuOTEzLDczLjY3Mi0wLjU5NWwwLDBjMjAuNTA5LTIwLjUwOCwyMC43NzQtNTMuNDkzLDAuNTk2LTczLjY3MiAgbC0xOTAtMTkwYy0yMC4xNzgtMjAuMTc4LTUzLjE2NC0xOS45MTMtNzMuNjcxLDAuNTk1bDAsMGMtMjAuNTA4LDIwLjUwOS0yMC43NzIsNTMuNDkyLTAuNTk1LDczLjY3MUwyMjAuMjQ5LDQ1NS44Njh6Ii8+DQo8L3N2Zz4=);
  background-size: 20px 15px;
  background-repeat: no-repeat;
  background-position: center;
}

.bounce {
  -moz-animation: bounce 2s infinite;
  -webkit-animation: bounce 2s infinite;
  animation: bounce 2s infinite;
}

.copyright {
  margin-top: 20px;
  text-align: center;
  color: rgba(22, 21, 21, 0.5);
}

@media (max-width: 750px) {

  header,
  .footer {
    flex-direction: column;
    justify-content: center;
    width: auto;
    align-items: center;
  }

  header nav {
    justify-content: center;
  }

  header nav ul {
    padding: 0;
  }

  section.cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 550px) {
  section.cards {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/*-------------------
Skill
---------------------*/
.skill {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

@media (max-width: 550px) {
  .skill {
    flex-direction: column;
    align-items: center;
  }
}

/*-------------------
Skill - html
---------------------*/
.skill1 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: left;
  margin-left: left;
  margin: 5px;
  width: 150px;
  height: 150px;
  font-size: 26px;
  font-weight: 700;
  background-image: radial-gradient(#f2f2f2 60%, transparent 61%), conic-gradient(#d5525f 0% 65%, #d9d9d9 70% 100%);
  border-radius: 50%;
}

/*-------------------
Skill - css
---------------------*/
.skill2 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: left;
  margin-left: left;
  margin: 5px;
  width: 150px;
  height: 150px;
  font-size: 26px;
  font-weight: 700;
  background-image: radial-gradient(#f2f2f2 60%, transparent 61%), conic-gradient(#00a2ff 0% 55%, #d9d9d9 60% 100%);
  border-radius: 50%;
}

/*-------------------
Skill - js
---------------------*/
.skill3 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: left;
  margin-left: left;
  margin: 5px;
  width: 150px;
  height: 150px;
  font-size: 26px;
  font-weight: 700;
  background-image: radial-gradient(#f2f2f2 60%, transparent 61%), conic-gradient(#ffd900 0% 5%, #d9d9d9 10% 100%);
  border-radius: 50%;
}

/*-------------------
Skill - python
---------------------*/
.skill4 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: left;
  margin-left: left;
  margin: 5px;
  width: 150px;
  height: 150px;
  font-size: 26px;
  font-weight: 700;
  background-image: radial-gradient(#f2f2f2 60%, transparent 61%), conic-gradient(#402bff 0% 35%, #d9d9d9 40% 100%);
  border-radius: 50%;
}

/*-------------------
Skill - c-sharp
---------------------*/
.skill5 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: left;
  margin-left: left;
  margin: 5px;
  width: 150px;
  height: 150px;
  font-size: 26px;
  font-weight: 700;
  background-image: radial-gradient(#f2f2f2 60%, transparent 61%), conic-gradient(#2b0053 0% 2%, #d9d9d9 3% 100%);
  border-radius: 50%;
}

/*-------------------
Skill - php
---------------------*/
.skill6 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: left;
  margin-left: left;
  margin: 5px;
  width: 150px;
  height: 150px;
  font-size: 26px;
  font-weight: 700;
  background-image: radial-gradient(#f2f2f2 60%, transparent 61%), conic-gradient(#31008d 0% 10%, #d9d9d9 15% 100%);
  border-radius: 50%;
}

.gadget {
  text-align: left;
}