@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');
*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  width: 100%;
  height: auto;
  font-family: sans-serif;

  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}
h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 2rem;
  color: #333;
}
h1 img{
  width: 50px;
  height: auto;
  border-radius: 50%;
}
.about{
  font-family: "PT Serif", serif;
  background-color: rgb(253, 245, 235);
  margin: 3em auto;
  text-align: center;
}
.click{  
  margin-top: 3em;
  text-align: center;
  color: blue;
  font-weight: 600;
  font-family: "roboto";
}

.mypage-section {
  margin: 6em auto;
  padding: 3em 2em;
  background-color: #f9f9f9;
  border-top: 2px dashed #ccc;
  border-bottom: 2px dashed #ccc;
  border-radius: 8px;
  max-width: 800px;
}

.mypage-intro {
  font-family: "PT Serif", serif;
  text-align: center;
  line-height: 1.8;
  color: #444;
}

.mypage-button {
  display: inline-block;
  margin-top: 2em;
  padding: 0.6em 1.2em;
  font-size: 16px;
  font-family: "PT Serif", serif;
  background-color: #e6e6f2;
  color: #5a5a7a;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.mypage-button:hover {
  background-color: #dcdcf0;
  color: #3f3f5f;
}

.version{
  width: 200px;
  margin-top: 2em;
  font-size: 15px;
  background-color: bisque;
  color: yellowgreen;
  display: block;
  margin: 2em auto;
  text-align: center;
  border: #d3d3d3 solid 1px;
}
ul{
  max-width: 900px;
  margin-top: 3em;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}
li{
  width: 100%;
  margin: 2em auto;
  padding: 0;
  list-style: none;
}
a {
  color: #d9534f;
  text-decoration: none;
  font-size: 20px;
  cursor: pointer;
  text-decoration: underline;
}
a:hover {
    text-decoration: underline;
  word-wrap: break-word;
  color: rgb(218, 138, 150);
}
p{
  margin-left: 5em;
  font-family: "PT Serif", serif;
}
li .note-card{
  width: 100%;
  padding: 1.5em;
  font-family: "PT Serif", serif;
  background-color: rgb(240, 247, 255);
  margin: 3em auto;
  text-align: left !important;
}
.note-card h2{
  margin-top: 0;
}
.note-card .article,
.note-card .skill,
.note-card .note,
.note-card .site{
  margin-top: 1rem;
  text-align: left !important;
  display: block;
}


/* SKILLS/TOOLS/SNS */
.detail{    
  width: 100%;
  height: auto;
  margin-top: 6em;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 5em;
  line-height: 1em;
}
.detail h2{
  margin-top: 0;
  margin-bottom: 1em;
}
.detail ul{
  width: 100%;
  height: 250px;
  background-color: rgb(242, 255, 244);
  margin: 0;
  list-style-position: inside;
  border: #d3d3d3 solid 2px;
}

.detail ul li {
  margin-left: 1em;
}

h2{
  text-align: left;
  margin-top: 5em;
  color: #333;
}
/* CONTACT */
.contact-me{
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6;
}
.contact-me h3{
  margin-bottom: -1em;
}
.contact{
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2em 1em auto 1em;
  font-size: 16px;
  background-color: rgb(252, 252, 238);
  border: #d3d3d3 solid 2px;  
}
.contact p {
  width: fit-content;
  margin: .5em auto;
}
body {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  0% {
      opacity: 0;
  }
  100% {
      opacity: 1;
  }
}

@media (max-width: 768px) {
  .detail {
    grid-template-columns: 1fr;
    gap: 2em;
  }
  h1 {
    font-size: 1.8em;
    text-align: center;
}

.about, .click {
    padding-left: 0;
    padding-right: 0;
}
  ul {
    margin-left: 0;
  }

  p {
    margin-left: 0;
  }
}
.contact-me{
  margin-top: 6em;
}

