/* reset */
* {
  margin: 0;
  padding: 0;
}
html {
  font-size: 100%;
}
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Helvetica', 'Noto Sans JP', 'Arial', sans-serif;
  background-color: white;
  min-height: 100vh;
}

/* container */
main {
  width: 100%;
  padding-top: 60px;
  padding-bottom: 60px;
  flex-grow: 1;
}
main section {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
main section + section {
  padding-top: 40px;
}
.subsection + .subsection {
  padding-top: 20px;
}

/* contents */
.title {
  padding-left: 40px;
  margin-bottom: 40px;
  font-weight: bold;
  font-size: 2rem;
  border-left: 20px solid black;
}
.subtitle {
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
}
.image {
  width: 100%;
  max-width: 400px;
  display: block;
  box-sizing: border-box;
  object-fit: cover;
  aspect-ratio: 16/9;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid black;
}

/* header */
header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1;
}
.header_container {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #00205B;
}
.logo {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
}
.logo img {
  height: 100%;
}

/* footer */
footer {
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: #00205B;
}
.footer_container {
  padding: 20px 20px 20px;
}
.footer_container a {
  display: block;
  text-decoration: none;
  color: white;
}
.copyright {
  padding-top: 0px;
  font-size: 0.8rem;
  text-align: center;
  color: white;
}

/* google map */
.map {
  width: 100%;
  aspect-ratio: 16/9;
  border: 1px solid black;
  filter: grayscale(1);
}
.map_container {
  padding: 20px;
  border-top: 1px solid black;
}

/* list */
main {
  counter-reset: pub-counter;
}
.list {
  border-bottom: 1px solid black;
  border-top: 1px solid black;
  list-style: none;
}
.list li {
  line-height: 1.2; 
  counter-increment: pub-counter;
  position: relative;
  padding: 20px 20px 20px 30px;
}
.list li::before {
  content: counter(pub-counter) ".";
  position: absolute;
  left: 10px;
  font-weight: bold;
}
/* .list li a {
  display: block;
  color: black;
} */
.list li + li {
  border-top: 1px solid black;
}
.subject {
  font-weight: bold;
  margin-bottom: 6px;
}
.no-number li::before {
  content: none;
}

/* career list */
.career_list {
  list-style: none;       
  padding-left: 0;
}
.career_list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 0px 10px;
}
.career_list .year {
  width: 110px;           
}
.career_list .event {
  flex-grow: 1;           
}

/* button */
.button {
  width: 160px;
  padding: 12px 24px;
  font-weight: bolder;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 2px solid black;
  color: black;
  display: block;
  transition: 0.3s;
}
.button:hover {
  background-color: black;
  color: white;
}
.button_container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  width: 100%;
}

/* font representation */
.underline {
  text-decoration: underline;
}
.bold {
  font-weight: bold;
}
.italic {
  font-style: italic;
}

/* profile box */
.profile-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0px 0;
}

.profile-photo {
  width: 120px;
  height: auto;
  margin-left: 20px;
}

.profile-text {
  flex: 1;
}

@media only screen and (max-width: 900px) {
  html {
    font-size: 80%;
  }

  .header_container {
    height: 72px;
  }
  .logo {
    padding: 10px;
  }

  .navigation {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    padding-top: 100px;
    background-color: white;
    transition: 0.5s;
    z-index: 3;
  }
  .navigation_list {
    list-style: none;
  }
  .navigation_list li a {
    display: block;
    margin: 40px;
    padding-left: 40px;
    border-left: 20px solid black;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.6rem;
    color: black;
  }
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 10px;
    top: 10px;
    width: 40px;
    height: 40px;
    padding: 10px;
    box-sizing: border-box;
    cursor: pointer;
    z-index: 4;
  }
  .hamburger span {
    width: 20px;
    height: 2px;
    transition: 0.5s;
    background-color: white;
  }
  .hamburger_border_top {
    margin-bottom: 5px;
  }
  .hamburger_border_bottom {
    margin-top: 5px;
  }
  .background {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    cursor: pointer;
    visibility: hidden;
    background-color: black;
    transition: 0.5s;
    opacity: 0;
    z-index: 2;
  }

  /* when the navigation is opened */
  .navigation_open .navigation {
    right: 0;
  }
  .navigation_open .background {
    visibility: visible;
    opacity: 0.5;
  }
  .navigation_open .hamburger span {
    background-color: black;
  }
  .navigation_open .hamburger_border_top {
    transform: rotate(45deg);
    margin-bottom: -2px;
  }
  .navigation_open .hamburger_border_center {
    width: 0;
  }
  .navigation_open .hamburger_border_bottom {
    transform: rotate(-45deg);
    margin-top: -2px;
  }
}

@media only screen and (min-width: 900px) {
  .navigation {
    padding: 10px;
  }
  .navigation_list {
    display: flex;
    list-style: none;
  }
  .navigation_list li a {
    padding: 10px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    display: block;
    border-bottom: 4px solid transparent;
    transition: 0.3s;
    color: white;
  }
  .navigation_list li a:hover {
    border-bottom: 4px solid white;
  }
}