@charset "utf-8";

.labname h1 {
  font-size: 12px;
  font-weight: 500;
}
.labname h2 {
  font-size: 9px;
  font-weight: 500;
  margin-top: 12px;
}
.labconcept h1 {
  font-size: 21px;
  font-weight: 500;
  margin-bottom: 60px;
}
.labconcept h2 {
  font-size: 14px;
  font-weight: 500;
  line-height: 2.2;
  text-align: justify;
}
.title {
  width: 70px;
  float: right;
  font-weight: 400;
  margin-top: 8vw;
  padding: 4px 6px 6px 16px;
  background: #18251E;
  -webkit-clip-path: polygon(0% 0%, 80% 0%, 100% 50%, 80% 100%, 0% 100%);
  clip-path: polygon(0% 0%, 80% 0%, 100% 50%, 80% 100%, 0% 100%);
}
.title a {
  text-decoration: none;
  color: #fff;
  letter-spacing: 0.1em;
  font-size: 12px;
}

@media screen and (min-width: 1025px) and (hover: hover) {
  .top-container {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .top-section-1 {
    display: flex;
    align-items: flex-end;
    margin-bottom: 0;
    padding-bottom: 0;
    line-height: 0;
  }
  .labname {
    margin-left: 8%;
    flex-shrink: 0;
    z-index: 1;
    align-self: center;
    line-height: 1.5;
  }
  .topimages-1 {
    width: 67%;
    height: 87vh;
    object-fit: cover;
    margin-left: auto;
    display: block;
  }
  .top-section-2 {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin-top: 0;
    padding-top: 0;
  }
  .concepts-left {
    flex: 0 0 27%;
    margin-left: 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 10%;
  }
  .labconcept-1 {
    margin-bottom: 8vw;
  }
  .labconcept-1 h1 {
    margin-left: 0;
  }
  .labconcept-2 {
    margin-bottom: 8vw;
  }
  .labconcept-3 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  .labconcept-1-tablet-title {
    display: none;
  }
  .images-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-end;
    justify-content: flex-start;
    max-height: 1500px;
    margin-top: 0;
  }
  .topimages-3-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  .topimages-2 {
    width: 100%;
    max-width: 95%;
    height:900px;
    object-fit: cover;
    margin-bottom: 0;
    margin-top: 0;
    display: block;
  }
  .topimages-3 {
    width: 100%;
    max-width: 80%;
    height: 500px;
    object-fit: cover;
    margin-bottom: 0;
    display: block;
  }
  .topimages-4 {
    width: 100%;
    max-width: 65%;
    height: 650px;
    object-fit: cover;
    display: block;
  }
}
@media screen and (min-width: 1441px) and (hover: hover) {
   .topimages-1 {
    height: auto;
    width: 67%;
    height: 87vh;
  }
  .topimages-2 {
    width: 95%;
    max-width: 95%;
    height: 700px;
    display: block;
  }
  .topimages-3 {
    width: 82%;
    max-width: 82%;
    height: 600px;
    display: block;
  }
  .top-section-2 {
    align-items: flex-start;
  }
  .concepts-left {
    justify-content: flex-start;
    padding-top: 160px;
  }
  .images-right {
    justify-content: flex-start;
  }
  .topimages-4 {
    display: none;
  }
  .labconcept-1 {
    margin-bottom: 7vw;
  }
  .labconcept-2 {
    margin-bottom: 7vw;
  }
  .labconcept-3 .title {
    margin-top: 80px;
  }
}

@media screen and (max-width: 1024px) and (min-width: 601px),
       screen and (min-width: 601px) and (hover: none) and (pointer: coarse) {
  .top-container {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
    gap: 0;
  }
  .top-section-1 {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 0;
    padding-bottom: 0;
    line-height: 0;
  }
  .labname {
    width: 100%;
    order: 1;
    margin: 50px 8% 30px;
    line-height: 1.5;
  }
  .topimages-1 {
    width: 92%;  
    max-height: 70vh;  
    object-fit: cover;
    margin-left: 8%;
    order: 2;
    display: block;
  }
  .top-section-2 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    overflow-x: hidden;
    margin-top: 0;
  }
  .concepts-left {
    width: 100%;
    display: contents;
    flex-direction: column;
    order: 7;
  }
  .images-right {
    width: 100%;
    display: contents;
    flex-direction: column;
    align-items: flex-end;
    padding-top: 0;
    margin-top: 0;
  }
  .topimages-2 {
    width: 82%;
    max-width: 82%;
    order: 3;
    display: block;
    margin-top: 0;
    margin-bottom: 0;
  }
  .topimages-3-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    order: 4;
    gap: 3%;
    margin-bottom: 30px;
  }
  .topimages-3 {
    width: 71%;
    max-width: 71%;
    display: block;
  }
  .labconcept-1-tablet-title {
    display: block;
    width: 37%;
    display: flex;
    align-items: center;
  }
  .labconcept-1-tablet-title h1 {
    font-size: 18px;
    font-weight: 500;
    margin: 21vw 0px 0px 30%;
  }
  .br_span {
    display: inline-block;
  }
  .topimages-4 {
    display: none;
  }
  .labconcept h1 {
    font-size: 18px;
    margin: 0 8% 20px;
  }
  .labconcept h2 {
    margin-bottom: 15px;
    margin: 50px 8% 0;
  }
  .labconcept-1 {
    order: 5;
    width: 100%;
  }
  .labconcept-1 h1 {
    display: none;
  }
  .labconcept-2 {
    order: 6;
    width: 100%;
  }
  .labconcept-3 {
    order: 7;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .labconcept-3 h2 {
    margin: 50px 8% 0;
  }
  .labconcept-3 .title {
    align-self: flex-end;
    margin: 50px 8% 0;
  }
}

@media screen and (max-width: 600px) {
  .top-container {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
    gap: 0;
  }
  .top-section-1 {
    display: flex;
    flex-direction: column;
    width: 100%;
    line-height: 0;
  }
  .labname {
    width: 100%;
    order: 1;
    margin: 50px 8% 30px;
    line-height: 1.5;
  }
  .topimages-1 {
    width: 92%;
    margin-left: 8%;
    order: 2;
    display: block;
  }
  .top-section-2 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    overflow-x: hidden;
    margin-top: 0;
  }
  .concepts-left {
    width: 100%;
    display: contents;
    flex-direction: column;
    order: 7;
  }
  .images-right {
    width: 100%;
    display: contents;
    flex-direction: column;
    align-items: flex-end;
    padding-top: 0;
  }
  .topimages-2 {
    width: 82%;
    max-width: 82%;
    order: 3;
    display: block;
  }
  .labconcept-1-tablet-title {
    display: none;
  }
  .topimages-3-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    order: 4;
  }
  .topimages-3 {
    width: 71%;
    max-width: 71%;
    display: block;
  }
  .topimages-4 {
    display: none;
  }
  .labconcept h1 {
    font-size: 18px;
    margin: 100px 8% 20px;
  }
  .labconcept h2 {
    font-size: 12px;
    margin-bottom: 15px;
    margin: 50px 8% 0;
  }
  .labconcept-1 {
    order: 5;
    width: 100%;
  }
  .labconcept-1 h1 {
    margin-left: 8%;
  }
  .labconcept-2 {
    order: 6;
    width: 100%;
  }
  .labconcept-3 {
    order: 7;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
  }
  .labconcept-3 .title {
    margin: 50px 8% 0;
  }
}


/*-- ニュース --*/
.newsbar {
  margin-top: 120px;
  margin-bottom: 200px;
}
.newsbar-title {
  margin-left: 8%;
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.newsbar-title h1 {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.newsbar-title h2 a {
  font-size: 14px;
  font-weight: normal;
  text-decoration: none;
  color: black;
}
.newsbar-title h2 a:hover{
  text-decoration: underline;
}
.newsbar-contents {
  position: relative;
  margin: 10px 8% 0;
}
.scroll_content {
  display: flex;
  width: 100%;
  height: 400px;
  margin: auto;
  overflow-x: auto;
}
.scroll_content div {
  width: 270px;
  margin: 35px 40px 35px 0;
  flex-shrink: 0;
  list-style: none;
}
.newsbar-img-box {
  width: 270px;
  height: 220px;
  overflow: hidden;
  margin-bottom: 12px;
  background-color: #f5f5f5;
}
.scroll_content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.scroll_content a:hover .newsbar-img-box img {
  transform: scale(1.05);
}
.scroll_content h2 {
  font-size: 16px;
  font-weight: normal;
  width: 80%;
  margin-top: 0;
}
.scroll_content h3 {
  font-size: 12px;
  margin-top: 10px;
  text-align: justify;
  font-weight: 500;
}
.scroll_content::-webkit-scrollbar {
  display: none;
}
.scroll-nav {
  position: absolute;
  top: -30px;
  right: 0;
  display: flex;
}
.scroll-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.arrow {
  width: 0;
  height: 0;
  border-style: solid;
  transition: border-color 0.3s;
}
.arrow-left {
  border-width: 13px 18px 13px 0;
  border-color: transparent #18251E transparent transparent;
}
.arrow-right {
  border-width: 13px 0 13px 18px;
  border-color: transparent transparent transparent #18251E;
}

@media screen and (max-width: 900px) and (min-width: 601px),
       screen and (min-width: 601px) and (hover: none) and (pointer: coarse) {
  .newsbar {
    margin-top: 150px;
    margin-bottom: 150px;
  }
  .newsbar-title {
    margin-left: 8%;
  }
  .newsbar-title h1 {
    font-size: 36px;
  }
  .newsbar-contents {
    margin: 20px 8% 0;
  }
  .scroll_content div {
    width: 250px;
    margin: 35px 30px 35px 0;
  }
  .newsbar-img-box {
    width: 250px;
    height: 200px;
  }
}

@media screen and (max-width: 600px) {
  .newsbar {
    margin-bottom: 120px;
  }
  .newsbar-title {
    margin: 0 8%;
    padding-bottom: 50px;
    border-bottom: 1px solid #18251E;
    margin-bottom: 20px;
  }
  .newsbar-title h1 {
    font-size: 24px;
  }
  .newsbar-contents {
    margin: 0 8%;
  }
  .scroll-nav {
    display: none;
  }
  .scroll_content {
    display: block;
    height: auto;
    overflow-x: visible;
  }
  .scroll_content div {
    width: 100%;
    margin: 0;
    padding: 20px 0;
    border-bottom: 1px solid #18251E;
  }
  .scroll_content div:first-child {
    padding-top: 0;
  }
  .newsbar-img-box {
    display: none;
  }
  .scroll_content h2 {
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 12px;
    width: 100%;
  }
  .scroll_content h3 {
    font-size: 12px;
    line-height: 1.6;
  }
}


/*--　アナウンスバナー --*/
.announcement-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.announcement-banner {
  cursor: pointer;
  position: relative;
  opacity: 1;
  transition: opacity 0.25s ease;
}
.announcement-banner.fading {
  opacity: 0;
}
.banner-bg,
.banner-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: none;
}
.banner-bg {
  z-index: 0;
}
.banner-border {
  z-index: 2;
  pointer-events: none;
}
.banner-border path {
  vector-effect: non-scaling-stroke;
}
/* 閉じた状態 */
.announcement-banner.collapsed {
  width: 300px;
}
.announcement-banner.collapsed .banner-content {
  padding: 15px 25px;
  position: relative;
  z-index: 1;
}
.announcement-banner.collapsed .banner-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #18251E;
}
.announcement-banner.collapsed .banner-subtitle {
  font-size: 12px;
  font-weight: 500;
  color: #18251E;
  line-height: 1.6;
}
.announcement-banner.collapsed .banner-expanded {
  display: none;
}
/* 展開した状態 */
.announcement-banner.expanded {
  width: 550px;
}
.announcement-banner.expanded .banner-content {
  padding: 20px 35px 10px;
  position: relative;
  z-index: 1;
}
.announcement-banner.expanded .banner-title {
  font-size: 18px;
  font-weight: 400;
  color: white;
}
.announcement-banner.expanded .banner-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: white;
  line-height: 1.6;
  margin-bottom: 36px;
}
.announcement-banner.expanded .banner-expanded {
  display: block;
  color: white;
  font-size: 14px;
  line-height: 2;
  font-weight: 400;
  text-align: justify;
}
.announcement-banner.expanded a{
  color: inherit;
  text-decoration: none;
}
.announcement-banner.expanded a:hover{
  text-decoration: underline;
}
.close-button {
  display: none;
}

@media screen and (max-width: 600px) {
  .announcement-container {
    bottom: 20px;
    right: 20px;
  }
  .announcement-banner.collapsed {
    width: 260px;
  }
  .announcement-banner.collapsed .banner-content {
    padding: 15px 20px;
  }
  .announcement-banner.collapsed .banner-title {
    font-size: 16px;
  }
  .announcement-banner.collapsed .banner-subtitle {
    font-size: 12px;
  }
  .announcement-banner.expanded {
    width: calc(100vw - 40px);
    max-width: 500px;
  }
  .announcement-banner.expanded .banner-content {
    padding: 30px 35px;
  }
  .announcement-banner.expanded .banner-title {
    font-size: 22px;
  }
  .announcement-banner.expanded .banner-subtitle {
    font-size: 15px;
  }
  .announcement-banner.expanded .banner-expanded {
    font-size: 14px;
  }
}
/*-- バナーアニメーション --*/
.announcement-banner.collapsed::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  clip-path: polygon(0% 0%, calc(100% - 30px) 0%, 100% 30px, 100% 100%, 0% 100%);
  background: linear-gradient(
    45deg,
    transparent 30%,
    #178D5C 30%,
    #178D5C 70%,
    transparent 70%
  );
  background-size: 400% 400%;
  background-position: 100% 0%;
  animation: fill-sweep 6s ease-in-out infinite;
}
@keyframes fill-sweep {
  0% {
    background-position: 100% 0%;
  }
  20% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 100%;
  }
}