:root {
  --font-size-body: 16px;
  --font-size-xs: 10px;
  --font-size-s: 14px;
  --font-size-m: 20px;
  --font-size-l: 24px;
  --font-size-xl: 30px;
  --font-size-xxl: 62px;

  --color-black: #020202;
  --color-grey-75: #888888;
  --color-grey-50: #c1c1c1;
  --color-grey-25: #efefef;
  --color-white: #ffffff;
}

body {
  min-height: 100vh;
  font-family: "ヒラギノ角ゴ", sans-serif;
  background-color: var(--color-white);
  color: var(--color-black);
  display: flex;
  flex-direction: column;
}

a {
  font-size: var(--font-size-body);
  font-weight: 400;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-grey-75);
}

small {
  font-size: var(--font-size-s);
}

p {
  line-height: 1.8;
}

h1 {
  font-size: var(--font-size-xxl);
  font-weight: 600;
  line-height: 1.1;
}

h2 {
  font-size: var(--font-size-l);
  font-weight: 600;
}

h3 {
  font-size: var(--font-size-m);
  font-weight: 600;
}

/* ICON CLASSES
   ============================================================ */

.point-down-icon,
.point-right-icon,
.contact-icon {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.point-down-icon::after {
  content: "▼";
  margin-left: 8px;
  font-size: var(--font-size-xs);
}

.point-right-icon::after {
  content: "▶";
  margin-left: 8px;
  font-size: var(--font-size-xs);
}

.contact-icon::after {
  display: inline-block;
  content: "";
  margin-left: 5px;
  width: 20px;
  height: 20px;
  background: url(../assets/images/mail-outline-black.svg) center center no-repeat;
  background-size: cover;
}

/* HEADER
   ============================================================ */

.header-wrapper {
  width: 100%;
  height: 80px;
  padding: 14px 20px;
  background-color: var(--color-white);
  position: fixed;
  z-index: 999;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
}

.header-inner-left img {
  padding: 3px 0;
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: center;
}

.header-inner-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.main-nav-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 36px;
}

.main-nav-inner a,
.main-nav-inner span {
  font-weight: 600;
}

.main-nav-inner .dropdown-inner {
  position: absolute;
  margin-left: -20px;
  padding: 20px;
  background-color: var(--color-white);
  display: none;
  flex-direction: column;
  gap: 20px;
}

.main-nav-inner .dropdown-wrapper:hover .dropdown-inner {
  display: flex;
}

.sub-nav {
  margin-top: -2px;
  margin-left: auto;
}

.sub-nav-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.sub-nav-inner a {
  font-weight: 600;
}

.language {
  padding: 3px 5px;
  font-size: var(--font-size-s);
}

.language:hover,
.language.is-active {
  background-color: var(--color-grey-25);
  color: var(--color-black);
}

.mobile-nav {
  display: none;
}

.hamburger {
  position: relative;
  z-index: 999;
  width: 32px;
  height: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 8px;
}

.hamburger .line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-black);
  transition: transform 0.3s ease;
}

.hamburger.is-open .line:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}

.hamburger.is-open .line:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open .line:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

.mobile-nav-inner {
  height: 100vh;
  min-width: 300px;
  padding: 80px 40px 40px 40px;
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--color-white);
  display: none;
  flex-direction: column;
  gap: 32px;
}

.mobile-nav-inner span,
.mobile-nav-inner a {
  font-weight: 600;
}

.mobile-nav-inner .dropdown-inner {
  padding-top: 32px;
  display: none;
  flex-direction: column;
  gap: 32px;
}

/* FOOTER
   ============================================================ */

.footer-wrapper {
  width: 100%;
  margin-top: auto;
  padding: 40px 80px;
  background-color: var(--color-black);
  color: var(--color-white);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px 72px;
  overflow-x: hidden;
}

.footer-inner-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-inner-left img {
  max-height: 36px;
  object-fit: contain;
  object-position: left;
}

.footer-inner-left a {
  width: fit-content;
}

.sitemap {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 72px;
}

.sitemap ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sitemap span,
.sitemap a {
  font-weight: 600;
}

.sitemap .contact-icon::after {
  background: url(../assets/images/mail-outline-white.svg) center center no-repeat;
  background-size: cover;
}

.copyright {
  width: 100%;
  margin-top: 40px;
  padding-top: 10px;
  border-top: 1px solid var(--color-grey-75);
  color: var(--color-grey-75);
  font-size: var(--font-size-s);
}

/* SECTIONS
   ============================================================ */

.container {
  padding: 80px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.section-inner-title {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-grey-50);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 20px;
}

.section-inner-content {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 60px 40px;
}

.content-grid .item img {
  aspect-ratio: 6/4;
  object-fit: cover;
}

.content-grid .item h3 {
  margin: 20px 0 10px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-grey-50);
}

.content-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-list .item {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-grey-50);
  display: flex;
  flex-direction: row;
  gap: 40px;
}

.content-list .item span {
  min-width: 100px;
}

.content-list .item a {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.content-callout {
  width: 100%;
  padding: 40px;
  background-color: var(--color-grey-25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.content-callout h2 {
  font-size: var(--font-size-xl);
}

.content-callout p {
  line-height: 2;
}

.content-row {
  display: flex;
  flex-direction: row;
  gap: 80px;
}

.content-row .row-title {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-grey-50);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.filter-group {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.filter select {
  padding: 8px 22px 8px 10px;
  font-size: var(--font-size-s);
  background-color: var(--color-grey-25);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M9 12l3 5 3-5h-6z"/></svg>');
  background-repeat: no-repeat;
  background-position: right -2px;
}

.filter {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

/* PAGE BANNER
   ============================================================ */

.page-banner {
  position: relative;
  width: 100vw;
  height: 200px;
  margin-left: -80px;
}

.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner-info {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  padding: 0 80px;
  background-color: rgba(0, 0, 0, 0.3);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.page-banner-info span,
.page-banner-info a {
  font-size: var(--font-size-s);
  font-weight: 600;
}

/* DETAIL TEMPLATE
   ============================================================ */

.detail .row-inner-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.field h3 {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-grey-50);
}

.detail .row-inner-right {
  width: 30%;
}

.detail .row-inner-right small {
  display: block;
  margin-top: 10px;
}

/* INDEX
   ============================================================ */

.hero {
  width: 100vw;
  height: 100vh;
  margin: -80px 0 0 -80px;
}

#about-caaccs .content-callout {
  padding: 120px 40px;
}

#about-caaccs .content-callout h2,
#about-caaccs .content-callout p {
  max-width: 600px;
}

#main-activities .row-inner-left {
  width: 40%;
}

#main-activities .row-inner-left img {
  aspect-ratio: 6/4;
}

#main-activities .row-inner-right {
  flex: 1;
  margin: auto 0;
}

/* SWIPER
   ============================================================ */

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  width: 100%;
  height: 100%;
  position: absolute;
  padding: 0 40px;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.slide-caption h1 {
  margin-top: 80px;
  font-weight: 600;
  text-align: center;
  color: var(--color-white);
}

.slide-caption p {
  max-width: 800px;
  font-size: var(--font-size-l);
  line-height: 1.5;
  font-weight: 600;
  color: var(--color-white);
}

.swiper-pagination {
  margin-bottom: 20px;
}

.swiper-pagination-bullet {
  background-color: var(--color-white);
}

/* ABOUT
   ============================================================ */

#center-manager .row-inner-left {
  flex: 1;
}

#center-manager .row-inner-right {
  width: 30%;
}

#center-manager .row-inner-right img {
  aspect-ratio: 4/6;
  margin-bottom: 20px;
}

#center-manager .row-inner-right small span {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-grey-50);
  display: block;
  font-weight: 600;
}

#detailed-activities .row-inner-left {
  width: 40%;
}

#detailed-activities .row-inner-left img {
  aspect-ratio: 6/4;
}

#detailed-activities .row-inner-right {
  flex: 1;
  margin: auto 0;
}

#members .content-grid,
#researchers .content-grid {
  grid-template-columns: repeat(4, 1fr);
}

#members .content-grid .item img,
#researchers .content-grid .item img {
  aspect-ratio: 4/6;
}

#members .content-grid .item small,
#researchers .content-grid .item small {
  margin-bottom: 10px;
  font-weight: 600;
  display: block;
}

#members .content-grid .item small span,
#researchers .content-grid .item small span {
  font-weight: 400;
  color: var(--color-grey-75);
  display: block;
}

#staff-detail .row-inner-right img {
  aspect-ratio: 1;
  object-fit: cover;
}

#staff-detail .row-inner-right small {
  margin-bottom: 16px;
  display: block;
}

#staff-detail .row-inner-right span {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-grey-50);
  font-weight: 600;
  display: block;
}

#africa-network .section-inner-content,
#asia-network .section-inner-content {
  gap: 0;
}

.network-city {
  padding-top: 20px;
  border-top: 1px solid var(--color-grey-50);
  display: flex;
  flex-direction: row;
  gap: 24px;
}

.network-city span {
  width: 20%;
}

.network-city .content-list {
  flex: 1;
}

.network-city .content-list .item {
  justify-content: space-between;
  gap: 24px;
}

.network-city .content-list .item:last-of-type {
  border-bottom: none;
}

.network-name {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 24px;
}

.network-name span {
  width: 40%;
  font-weight: 600;
}

/* EVENTS
   ============================================================ */

#event-report .content-grid .item h3 {
  margin-top: 10px;
  font-weight: 400;
}

#event-report .content-grid .item a {
  font-size: var(--font-size-m);
}

#media .content-grid .item a {
  display: block;
  margin-top: 10px;
}

/* RESEARCH
   ============================================================ */

#research-intro .row-inner-left {
  flex: 1;
}

#research-intro .row-inner-right {
  width: 40%;
  margin: auto 0;
}

#research-intro .row-inner-right img {
  aspect-ratio: 6/4;
}

#core-research .section-inner-content,
#art-research .section-inner-content {
  margin-top: 20px;
}

#core-research .content-grid,
#art-research .content-grid,
#past-projects .content-grid {
  grid-template-columns: repeat(2, 1fr);
}

#core-research .content-grid .item span,
#art-research .content-grid .item span,
#past-projects .content-grid .item span {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-grey-50);
  font-size: var(--font-size-m);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#core-research .content-grid .item h3,
#art-research .content-grid .item h3,
#past-projects .content-grid .item h3 {
  padding-bottom: 0;
  margin-bottom: 0;
  border: none;
}

#research-achievements .content-grid .item h3 {
  font-weight: 400;
}

#research-achievements .content-grid .item a {
  font-size: var(--font-size-m);
}

/* CONTACT
   ============================================================ */

#contact-form form {
  width: 100%;
  padding: 60px 120px 0px 120px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.form-field {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.form-field label {
  min-width: 180px;
}

.form-field input {
  height: 40px;
  width: 100%;
  background-color: var(--color-grey-25);
}

.form-field textarea {
  width: 100%;
  height: 120px;
  background-color: var(--color-grey-25);
}

.submit {
  margin: 0 auto;
  padding: 10px 16px;
  background-color: var(--color-grey-25);
}

#point-of-contact .row-inner-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

#point-of-contact .row-inner-right {
  width: 40%;
  aspect-ratio: 6/4;
}

/* RESPONSIVE / TABLET
   ============================================================ */

@media screen and (max-width: 1024px) {
  .header-inner-right {
    justify-content: center;
  }

  .main-nav,
  .sub-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .footer-wrapper {
    padding: 40px;
  }

  .container {
    padding: 60px 40px;
    gap: 60px;
  }

  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-row {
    gap: 60px;
  }

  .page-banner {
    margin-left: -40px;
  }

  .page-banner-info {
    padding: 0 40px;
  }

  .hero {
    margin: -60px 0 0 -40px;
  }

  #about-caaccs .content-callout {
    padding: 60px 40px;
  }

  #members .content-grid,
  #researchers .content-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* RESPONSIVE / MOBILE
   ============================================================ */

@media screen and (max-width: 768px) {
  .section-inner-content {
    gap: 40px;
  }

  .content-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
  }

  .content-callout {
    width: 100vw;
    margin-left: -40px;
  }

  .content-row {
    flex-direction: column;
    gap: 40px;
  }

  .row-inner-left,
  .row-inner-right {
    width: 100% !important;
  }

  .detail {
    flex-direction: column-reverse;
  }

  .filter label {
    display: none;
  }

  .page-banner-info {
    padding: 0 40px;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 0;
  }

  #main-activities .content-row {
    gap: 20px;
  }

  #center-manager .content-row {
    flex-direction: column-reverse;
  }

  #detailed-activities .content-row {
    gap: 20px;
  }

  #members .content-grid,
  #researchers .content-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .network-name {
    flex-direction: column;
    gap: 10px;
  }

  .network-name span {
    width: 100%;
  }

  #core-research .content-grid,
  #art-research .content-grid,
  #past-projects .content-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  #contact-form form {
    padding: 0px;
    gap: 40px;
  }
}
