@charset "UTF-8";
/*
Theme Name: 鳥由来感染症グローバルヘルス研究センター
Version: 1.0.0
*/

:root {
  --color-body-1: #333;
  --theme-color: #004694;
  --font-family: "Noto Sans JP", sans-serif;
  --padding: 20px;
  --container: 1000px;
  --stack: 100px;
  --section: 70px;
  --h2: 36;
  --p: 16;

  --bs-border-radius: 10px;
}

::after,
::before,
* {
  --font-size: calc((var(--fs) / 16) * 1rem);
  font-size: var(--font-size);
}

html {
  scroll-behavior: smooth;
}

body {
  --container: 1100px;
  color: var(--color-body-1);
  font-family: var(--font-family);
  line-height: calc(30 / 16);
  --fs: var(--p);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-body-1);
  text-decoration: none;
}

:where(a, button):hover {
  opacity: 0.7;
}

[id] {
  scroll-margin-top: 100px;
}

@media (max-width: 991px) {
  body.noscroll {
    overflow: hidden;
    touch-action: pinch-zoom;
  }
}

@media (min-width: 768px) {
  a[href^="tel:"] {
    pointer-events: none;
  }
}

@media (max-width: 767px) {
  [id] {
    scroll-margin-top: 75px;
  }
}

.container {
  padding-right: var(--padding);
  padding-left: var(--padding);
  max-width: calc(var(--container) + var(--padding) + var(--padding));
}

.header-inner {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  img {
    @media (max-width: 575px) {
      width: 210px;
    }
  }
}

.home-button {
  display: block;
  background-color: var(--theme-color);
  color: #fff;
  padding: 20px 40px;
  border-radius: 0 0 15px 15px;
  font-weight: bold;
  align-self: flex-start;
  --fs: 12;
  @media (max-width: 768px) {
    padding: 10px 15px;
    --fs: 13;
  }
  @media (max-width: 575px) {
    margin-right: -20px;
  }
}

.news-top-title {
  font-size: var(--font-size);
  color: var(--theme-color);
  font-weight: bold;
  --fs: 16;
  margin-bottom: 65px;
  letter-spacing: 0.07em;
  span {
    display: block;
    --fs: 34;
    margin-top: 20px;
    @media (max-width: 768px) {
      --fs: 24;
      margin-top: 5px;
    }
    letter-spacing: 0.08em;
  }
  @media (max-width: 768px) {
    margin-bottom: 35px;
  }
}

.page-content {
  padding-top: 90px;
  padding-bottom: 150px;
  @media (max-width: 768px) {
    padding: 60px 0;
  }
}

.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 20px;
  p {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .news-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px 15px;
  }
}

.news-list-item {
  time {
    color: var(--theme-color);
    --fs: 14;
    display: block;
    margin-top: 10px;
    padding: 0 5px;
  }
  img {
    aspect-ratio: 320 / 210;
    object-fit: cover;
    border-radius: 30px;
    @media (max-width: 768px) {
      border-radius: 10px;
    }
  }
  p {
    padding: 0 5px;
    span {
      color: #004694;
    }
    @media (max-width: 768px) {
      --fs: 14;
    }
  }
}

.navigation {
  margin-top: 60px;
  a.page-numbers {
    color: var(--theme-color);
  }
}

.navigation.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  width: 100%;
  align-items: center;
  color: var(--theme-color);
}

span.page-numbers.current {
  background-color: var(--theme-color);
  color: #fff;
  border-radius: 50%;
  display: inline-block;
  text-align: center;
  width: 25px;
  height: 25px;
  line-height: 25px;
}

.footer {
  background-color: #f3f3f3;
  border-radius: 30px 30px 0 0;
  @media (max-width: 768px) {
    border-radius: 15px 15px 0 0;
  }
}

.footer-inner {
  display: flex;
  gap: 30px;
  align-items: flex-end;
  padding-top: 75px;
  padding-bottom: 65px;
  address {
    margin-bottom: 0;
    --fs: 14;
    line-height: 1;
  }
  @media (max-width: 768px) {
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 60px;
    gap: 15px;
  }
}

.copyright {
  background-color: var(--theme-color);
  color: #fff;
  text-align: center;
  padding: 10px 0;
  margin-bottom: 0;
  --fs: 10;
}

.news-archive {
  background-color: var(--theme-color);
  color: #fff;
  border-radius: 50px;
  padding: 7px;
  display: inline-block;
  width: 230px;
  text-align: center;
  --fs: 14;
  position: relative;
  &::after {
    content: "〉";
    display: block;
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
  }
}

.breadcrumbs {
  margin-bottom: 30px;
  color: #808080;
  a {
    color: #808080;
  }
  @media (max-width: 768px) {
    --fs: 12;
    margin-bottom: 15px;
  }
}

.single-post-time {
  display: block;
  color: var(--theme-color);
  --fs: 16;
  margin-bottom: 15px;
  @media (max-width: 768px) {
    margin-bottom: 10px;
  }
}

.single-post-title {
  font-size: var(--font-size);
  --fs: 26;
  color: #333333;
  line-height: calc(39 / 26);
  margin-bottom: 40px;
  @media (max-width: 768px) {
    --fs: 20;
  }
}

.single-content-area {
  padding-bottom: 80px;
  @media (max-width: 768px) {
    padding-bottom: 50px;
  }
}

* + h2:where(.wp-block-heading),
* + h3:where(.wp-block-heading),
* + h4:where(.wp-block-heading) {
  margin-top: 70px;
}

.iframe-news-flex {
  display: flex;
  gap: 50px;
  .news-top-title {
    margin-bottom: 30px;
    @media (max-width: 768px) {
      margin-bottom: 0;
    }
  }
  .iframe-more {
    color: var(--theme-color);
    border: 1px solid var(--theme-color);
    border-radius: 50px;
    display: inline-block;
    padding: 3px 25px;
    --fs: 14;
    @media (max-width: 768px) {
      max-width: 300px;
      margin-right: auto;
      margin-left: auto;
    }
  }
  h1 {
    span {
      color: #333;
    }
  }
  @media (max-width: 768px) {
    flex-direction: column;
    gap: 0;
  }
}

.iframe-new-list {
  flex: 1;
  li {
    list-style: none;
    padding: 20px 5px;
    &:not(:last-child) {
      border-bottom: 1px solid #333333;
    }
    a {
      display: flex;
      gap: 25px;

      time {
        color: var(--theme-color);
line-height: 1.8;      }
      @media (max-width: 768px) {
        flex-direction: column;
        gap: 5px;
      }
      p {
        margin-bottom: 0;
      }
    }
  }
  @media (max-width: 768px) {
    margin-left: 0;
    padding-left: 0;
  }
}

.next.page-numbers {
  position: relative;
  display: inline-block;
  padding: 13px;
  &::before {
    content: "";
    width: 10px;
    height: 10px;
    border-top: solid 2px var(--theme-color);
    border-right: solid 2px var(--theme-color);
    position: absolute;
    left: 10px;
    top: 8px;
    transform: rotate(45deg);
  }
}
.prev.page-numbers {
  position: relative;
  display: inline-block;
  padding: 13px;
  &::before {
    content: "";
    width: 10px;
    height: 10px;
    border-top: solid 2px var(--theme-color);
    border-right: solid 2px var(--theme-color);
    position: absolute;
    left: 10px;
    top: 8px;
    transform: rotate(-135deg);
  }
}

.wp-block-embed iframe{
  width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}
