@charset "UTF-8";


*, ::before, ::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
}
body {
  color: #383e45;
  font-size: 0.9rem;
  background-color: #f7f5ee;
}

#about,
#skill,
#work {
  background-color: rgba(255, 255, 255, 0.45);
  padding-top: 60px;
  padding-bottom: 60px;
  border-radius: 20px;
}

a {
  text-decoration: none;
}
img {
  max-width: 100%;
}
li {
  list-style: none;
}


.site-title {
  margin: 10px 0;
}

.site-title a {
  display: block;
}

.site-title img {
  width: 60px;
  height: auto;
  display: block;
}

.section-title {
  display: inline-block;
  font-size: 4rem;
  font-family: "Knewave", system-ui;
  font-weight: 100;
  font-style: italic;
  margin-bottom: 60px;
  border-bottom: solid 1px #383e45;
}
.content-title {
  font-family: 'Courier New', Courier, monospace;
  font-size: 3rem;
  margin: 10px 0;
}


.wrapper {
  max-width: 960px;
  margin: 0 auto 100px;
  padding: 0 4%;
  text-align: center;
}

/*-------------------------------------------
ヘッダー
-------------------------------------------*/
/* liが右に配置されない・・ */
#header {
  display: flex;
  position: fixed;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  z-index: 9999;
}
#header ul {
  display: flex;
  padding: 10px 0;
}
#header li {
  margin-left: 30px;
}
#header li a {
  color: #24292e;
}
#header li a:hover {
  opacity: 0.7;
}

/*-------------------------------------------
mainvisual
-------------------------------------------*/
#mainvisual {
  height: 100vh;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 2s ease, transform 2s ease;
}

#mainvisual img {
  /* width: min(100%, 1920px); */
  /* max-width: 1920px; */
  /* height: auto; */
  /* margin: 0;
  padding: 0;
  height: 100vh; */
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-image: url(../images/main3.jpg);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #000000;
}

.main-text {
  position: absolute;
  top: 25%;
  right: 12%;
  font-family: "Knewave", system-ui;
  font-size: 8rem;
  color: #fff;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: 2s ease;
}

#mainvisual.show {
  opacity: 1;
  transform: scale(1);
}

.main-text.show {
  opacity: 1;
  transform: translateY(0);
}

/*-------------------------------------------
About
-------------------------------------------*/
/* .about-container {
  justify-content: center;
  margin: 0;
  text-align: center;
} */

#about .content {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-family: sans-serif;
}
#about img {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  margin-right: 30px;
}
#about .text {
  text-align: left;
}
#about .text h4 {
  font-family: sans-serif;
  font-size: 1.5rem;
}

#about .text p {
  font-family: sans-serif;
  font-size: 1rem;
}

#about .text a {
  margin-right: 0;
  padding: 10px;
}

#about .text a:hover {
  opacity: 0.7;
}

.btn-area {
  text-align: right;
  margin-top: 20px;
}

.btn {
  background-color: #f4dd64;
  display: inline-block;
  min-width: 100px;
  line-height: 24px;
  border-radius: 24px;
  font-family: sans-serif;
  font-size: 16px;
}

.btn:hover {
  background-color: #d8b500;
}

 /*-------------------------------------------
  Skill
  -------------------------------------------*/
.skill-list {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

#skill .content {
  width: 32%;
  text-align: center;
}

#skill img {
  width: 200px;
  height: 200px;
  margin-right: 0;
}

#skill .content-title {
  font-size: 1.5rem;
  margin-top: 15px;
}

#skill .content p {
  font-size: 1rem;
}



/*-------------------------------------------
work
-------------------------------------------*/
#work img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
}

#work ul {
  display: flex;
  justify-content: space-between;
}
#work li {
  width: 32%;
}

/*-------------------------------------------
footer
-------------------------------------------*/
#footer {
  border-top: 1px solid #d9d9d9;
  padding: 40px 0 20px;
  text-align: center;
}

#footer ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

#footer li {
  list-style: none;
}

#footer a {
  color: #555;
  font-size: 0.95rem;
  letter-spacing: 1px;
  transition: opacity 0.3s ease;
}

#footer a:hover {
  opacity: 0.6;
}

#footer p {
  font-size: 0.75rem;
  color: #888;
}


#loading {
  position: fixed;
  inset: 0;
  background: #f7f5ee;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1.5s ease,
              visibility 1.5s ease;
}

#loading p {
  font-size: 2rem;
  font-family: "Knewave", system-ui;
  color: #5c6b73;
  letter-spacing: 3px;
}

#loading.fade {
  opacity: 0;
  visibility: hidden;
}


.fadein {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease,
              transform 1.2s ease;
}

.fadein.show {
  opacity: 1;
  transform: translateY(0);
}