/* general elements */
* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 95%;
  line-height: 1.35;
}

body {
	margin: 0;
	padding: 0;
	font-family: "Roboto", "Noto Sans JP";
  font-weight: 300;
  color: #333333;
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 40px;
}

section {
  margin-bottom: 3rem;
}

h1 {
  font-weight: 700; 
  font-size: 2rem;
}

h2 {
  font-weight: 700; 
  font-size: 1.6rem;
  margin-bottom: 0.2rem;
}

h3 {
  font-weight: 700; 
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}


p {
	font-size: 1rem;
}

ul {
  list-style-type: disc;
  padding-left: 1.2rem;
}

dl {
  margin-bottom: 1rem;
}

b {
  font-weight: 700;
}

a, a:visited {
    color: #0089c9;
    text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  object-fit: contain;
}


/* custom classes */

.site-header {
  border-bottom: solid 1px #dddddd;
}

.site-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 40px;
}


.lang-switcher {
  font-size: 0.9rem;
}

.profile-container {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.profile-image {
  width: 140px;
  height: auto;
}

.timeline {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem 0;
}

.link-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.link-icon {
  width: 1rem;
}

.sparse-list li {
  margin-bottom: 1rem;
}

.tag {
  display: inline-block;
  text-align: center;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 0.9rem;
  padding: 0.1rem 0.3rem;
  margin: 0.2rem 0.3rem 0 0;
  color: inherit;
  text-decoration: none;
}

.tag:visited {
    color: inherit;
}

.tag:hover {
  color: #0089c9;
  text-decoration: none;
}

.skills {
  display: grid;
  grid-template-columns: 14rem 1fr;
}

.skills dt {
  font-weight: bold;
}

/* media query */

@media (max-width: 600px) {
  main {
    padding: 15px 15px; 
  }

  .site-header-container {
  padding: 15px 15px;
  }

  .profile-container {
      flex-direction: column;
      align-items: center;
    }

  .skills {
    grid-template-columns: 10rem 1fr;
  }

  .skills dt {
    margin-right: 1rem;
  }
}
