@import url('https://fonts.googleapis.com/css2?family=Inter:wght@800&display=swap');
@font-face {
  font-family: "ShipporiGothic";
  src: url("ShipporiGothicB2-Bold.woff") format("woff");
}
:root {
  --b: #0e100f;
  --w: #cfd6ea;
  --g: #496f5d;
  --c: #037171;
  --y: #b0f2b4;
  --radius: 10px;
  font-size: 18px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "ShipporiGothic", sans-serif;
}

*:not(.screens-panel>*) {
  color: var(--w);
}

body {
  width: 100%;
  background-color: var(--b);
}

#top {
  height: 100vh;
  background-color: var(--b);
  /* center */
  position: relative;
}

#top > #word {
  width: 400px;
  /* center */
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);

  /* hidden */
  display: none;
}

#word {
  padding: 0 3vw;
}
h1 {
  font-weight: normal;
  font-family: "ShipporiGothic";
  font-size: 3.6rem;
  padding: 0.2em 0;
  min-width: 4.2em;
  line-height: 1.2em;
}
h2 {
  font-weight: normal;
}
hr {
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: calc(3.6rem * 4);
  width: 100%;
  height: 0.2em;
  margin-bottom: 0.5rem;
  border-radius: 10px;
  background-color: var(--c);
}
#yomi {
  width: fit-content;
  font-family: "ShipporiGothic";
  font-size: 0.84em;
  line-height: 1;
  padding: 0.42em;
  color: var(--y);
  border: 2px solid var(--y);
  border-radius: 0.8em;
}
#meaning > * {
  font-size: 1.2rem;
  line-height: 1.5em;
}
#meaning > *::before {
  font-size: 1.2rem;
  line-height: 1.5em;
}

@media screen and (max-width: 400px) {
  #top > #word {
    width: 100%;
  }
}

footer {
  margin: 0 auto;
  width: 100%;
  margin: 0 auto;
  min-height: 60vh;
  position: relative;
}

h2,
h3,
p {
  line-height: 1em;
}
#card h2 {
  text-transform: capitalize;
  color: var(--c);
  padding-bottom: 0.5em;
  font-family: Inter, sans-serif;
  font-weight: 800;
  font-size: 2em;
}
#card h3 {
  color: var(--g);
  padding-top: 0.6em;
  font-weight: normal;
  padding-left: 0.5em;
}
#card h2+h3{
  padding-top: 0px;
}
#card p {
  color: var(--b);
  padding-top: 0.5em;
  padding-left: 2em;
}
#profile {
  grid-area: profile;
  padding: 1em;
}
#photo {
  border-radius: 0 var(--radius) var(--radius) 0;
  grid-area: photo;
  background-color: var(--c);
  display: block;
  height: auto;
  max-height: 300px;
  aspect-ratio: 1;
}
#card {
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
    rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
  box-sizing: border-box;
  min-height: 300px;
  max-width: calc(100vw - 4em);
  min-width: 600px;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  border-radius: var(--radius);
  margin: 1em;
  background-color: var(--w);
  border-left: var(--c) calc(var(--radius) * 1.2) solid;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  grid-template-areas: "profile photo";
}
#bg {
  min-height: 700px;
  display: flex;
  align-items: center;
  object-fit: cover;
  height: 100vh;
  width: 100%;
  filter: grayscale(0.9);
}
@media screen and (max-width: 800px) {
  #card {
    border-left: none;
    border-top: var(--c) calc(var(--radius) * 1.2) solid;
    margin: 0;
    min-height: none;
    width: 50%;
    max-width: calc(100vw - 2em);
    min-width: 300px;

    flex-direction: column;
    justify-content: space-between;
    grid-template-columns: "photo profile";
  }
  #photo {
    border-radius: 0 0 var(--radius) var(--radius);
    display: block;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1;
    order: 1;
  }
  #profile {
    order: 2;
  }
}
#photo,
#bg {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
  -khtml-user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
}

.text_img {
    width: 1.5em;
    margin: 0 .5em;
    vertical-align: middle;
}

/* screens */

.screens {
  overflow: hidden;
  position: relative;
}

.screens .screens-wrapper {
  width: 200%;
  height: 100vh;
  display: flex;
  flex-wrap: nowrap;
  will-change: auto;
}

.screens .screens-panel {
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.screens-panel > *{
  line-height: 1.5em;
  font-size: 1.5rem;
  padding: 1em;
}

.panel:nth-child(1) {
  background-color: var(--w);
  color:var(--b);
}

.panel:nth-child(2) {
  background-color: var(--g);
}

.panel2:nth-child(1) {
  background-color: var(--y);
  color:var(--b);
}

.panel2:nth-child(2) {
  background-color: var(--g);
}

/* links */

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

#sns {
  display: flex;
  margin-top: 20px;
}

#sns li {
  list-style: none;
  margin-left: 10px;
  margin-right: 10px;
}

#sns li img {
	height: 48px;
	width: 48px;
	object-fit: contain;
}

/* animation */

span {
  display: inline-block;
}
