html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  height: 100%;
  overflow-x: hidden;
  background-color: #f2f2f2;
  line-height: 1.7;
  font-family: "Hina Mincho", serif;
}

header {
  height: 0.6rem;
  background-color: black;
  display: flex;
  justify-content: center;
}

header h {
  font-size: 0.4rem;
  color: white;
  font-weight: 600;
}

@media (min-width: 768px) {
  header {
    z-index: 1000;
    position: relative;
  }
}

.slider {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.more {
  text-align: right;
}

.slider a {
  font-size: 1.5rem;
  margin-right: 1.5rem;
}

.slider p {
  text-align: right;
  font-weight: bold;
  font-size: 2rem;
  margin-top: 0;
}

.slides {
  width: 200%;
  position: relative;
  overflow: hidden;
  height: 100vh;
  background: #000;
}

@media (min-width: 768px) {
  .slide-video { display: block; }
  .slides img { display: none; }
  .slides .img6 { display: none;}
  .slides { width: 100%; }
  .typing { display: none; }
}

@media (max-width: 767px) {
  .slide-video { display: none;}
  .slides img { display: block;}
}

.slides img {
  width: 50%;
  object-fit: cover;
  animation: fade 40s infinite;
  position: absolute;
  height: 100%;
}

.slides video.img6 {
  width: 50%;
  object-fit: cover;
  animation: fade 40s infinite;
  position: absolute;
  height: 100%;
}

.slide-video {
  width: 100%;
  height: 100vh;
  object-fit: contain;
  position: absolute;
}

.slides img.img1 {
  object-position: 50% 60%;
}

.slides img.img2 {
  object-position: 50% 75%;
}

.slides img.img3 {
  object-position: 50% 30%;
}

.slides img.img4 {
  object-position: 50% 45%;
}

.slides img.img5 {
  object-position: 50% 10%;
}

.slides video.img6 {
  object-fit: contain;
}

@media (min-width: 540px) {
  .slides img.img1 {
    object-position: 50% 50%;
  }

  .slides img.img2 {
    object-position: 50% 50%;
  }

  .slides img.img3 {
    object-position: 50% 15%;
  }

  .slides img.img4 {
    object-position: 50% 35%;
  }

  .slides img.img5 {
    object-position: 50% 10%;
  }
}

.slides img:nth-child(1) { animation-name: fade1; }
.slides img:nth-child(2) { animation-name: fade2; }
.slides img:nth-child(3) { animation-name: fade3; }
.slides img:nth-child(4) { animation-name: fade4; }
.slides img:nth-child(5) { animation-name: fade5; }
.slides video:nth-child(6) { animation-name: fade6; }

@keyframes fade1 {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  20%  { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes fade2 {
  0%   { opacity: 0; }
  15%  { opacity: 0; }
  25%  { opacity: 1; }
  35%  { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes fade3 {
  0%   { opacity: 0; }
  30%  { opacity: 0; }
  40%  { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes fade4 {
  0%   { opacity: 0; }
  45%  { opacity: 0; }
  55%  { opacity: 1; }
  65%  { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes fade5 {
  0%   { opacity: 0; }
  60%  { opacity: 0; }
  70%  { opacity: 1; }
  80%  { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes fade6 {
  0%   { opacity: 0; }
  75%  { opacity: 0; }
  85%  { opacity: 1; }
  95% { opacity: 1; }
  100% { opacity: 0; }
}

.typing {
  color: lightgray;
  font-weight: 500;
  font-size: 1.5rem;
  white-space: nowrap;
  overflow: hidden;
  animation: typing 4s steps(9, end) infinite, blink 1s step-end infinite;
  animation-delay: 2s;
  animation-fill-mode: backwards;
  margin: 0 auto;
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (min-width: 540px) {
  .typing {
    font-size: 2rem;
  }  
}

@keyframes typing {
  0% { width: 0; }
  20% { width: 9.1ch; }
  95% { width: 9.1ch; }
  100% { width: 0ch;}
}

@keyframes blink {
  0% { border-color: transparent; }
  50% { border-color: transparent; }
  100% { border-color: black; }
}

/* slider ends, introduction starts from here */

.catch-phrase {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 3vw;
  max-width: 90%;
  font-weight: bold;
  margin: 0 auto;
  margin-top: 20rem;
  margin-bottom: 20rem;
}

.information {
  margin: 0 auto;
  text-align: center;
  word-wrap: break-word;
}

.profile,
.achievements,
.appearance,
.contact {
  max-width: 61.8%;
  margin: 0 auto;
  font-weight: bold;
  word-wrap: break-word;
  position: relative;
  margin-bottom: 20rem;
}

.achievements {
  margin-bottom: 10rem;
}

@media (max-width: 360px) {
  .achievements p {
    font-size: 0.4rem !important;
  }
}

@media (max-width: 600px) and (min-width: 361px) {
  .achievements p {
    font-size: 0.6rem !important;
  }
}

.profile p {
  font-size: 1rem;
  text-align: left;
}

.achievements p {
  font-size: 1rem;
  text-align: left;
  margin: 0 auto;
  width: fit-content;
}

.profile-section {
  margin: 0 auto;
  text-align: center;
}

.appearance {
  display: grid;
  gap: 0.8rem 0;
  width: 100%;
  margin-top: 10rem;
  white-space: nowrap;
}

@media (max-width: 450px) {
  .appearance {
    font-size: 0.6rem;
  }
}

.row {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.label {
  font-weight: bold;
  white-space: nowrap;
}

.value {
  text-align: left;
}

.law-row {
  margin: 0 auto;
  margin-top: 1rem;
}

.profile h1,
.achievements h1,
.contact h1{
  font-size: 2rem;
  position: relative;
  display: inline-block;
}

.appearance h1 {
  font-size: 3rem;
  position: relative;
  height: 0;
  margin-bottom: 5rem;
}

@media (min-width: 768px) {
  .profile p {
    font-size: 1.4rem;
  }

  .label {
    font-size: 1.4rem;
  }

  .value {
    font-size: 1.4rem;
  }

  .law-row {
    font-size: 1.4rem;
  }

  .law-value {
    font-size: 1.4rem;
  }

  .achievements p {
    font-size: 1.2rem;
  }

  .profile h1,
  .achievements h1 {
    font-size: 2.4rem;
  }

  .appearance h1 {
    font-size: 3.5rem;
    margin-bottom: 7rem;
  }
}

.profile h1::after,
.achievements h1::after,
.contact h1::after {
  content: "";
  position: absolute;
  left: 0%;
  bottom: -0.3rem;
  height: 2px;
  width: 100%;
  background-color: black;
  box-sizing: border-box;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 2s ease;
}

.profile h1.active::after,
.achievements h1.active::after,
.contact h1.active::after {
  transform: scaleX(1);
}

.big {
  font-size: 1.2rem;
}
    

/* お問合せ  */


.instagram-btn {
  width: 3.5rem;
  height: 3.5rem;
  display: inline-block;
  background: url("https://upload.wikimedia.org/wikipedia/commons/e/e7/Instagram_logo_2016.svg")
              no-repeat center/cover;
  border-radius: 50%;
  transition: opacity .3s;
  
}

.instagram-btn:hover {
  opacity: 0.7;
}

.contact {
  margin-bottom: 6rem;
}

.icons {
  justify-content: center;
  align-items: center;
  margin: 1rem 0;
}

.contact h1 {
  margin: 0 0 2rem 0 !important;
}

.contact p {
  font-size: 1rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .contact p {
    font-size: 1.2rem;
  }
}


/* start footer from here */


footer {
  margin-top: 3rem;
}

.name {
  font: 900 10vh "JetBrains Mono", serif;
  display: inline-block;
  position: relative;
  overflow: hidden;
  white-space: pre;
  direction: rtl;
  animation: slash 8s infinite;
  margin: 0 auto;
  color: black;
}

@media (max-width: 549px) {
  .name {
    font: 900 5vh "JetBrains Mono", serif;
  }
}

@media (max-width: 950px) and (min-width: 550px) {
  .name {
    font: 900 8vh "JetBrains Mono", serif;
  }
}


.name::after {
  content: ".";
  position: absolute;
  height: 1em;
  animation: flash .8s infinite;
}

@keyframes flash { 50% { opacity: 0; } }

@keyframes slash {
  0%   { width: 0; }
  40%  { width: 100%; }
  100% { width: 0; }
}