/* ==========================================================================
   1. Reset & Base Settings (基本設定)
   ========================================================================== */
@import 'https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;700&display=swap';

html {
  box-sizing: border-box;
  font-family: sans-serif;
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

*,
*::after,
*::before {
  box-sizing: inherit;
}

body {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  color: #181818;
  background-color: #e7e7e7;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.5;
  font-feature-settings: "palt";
  -webkit-font-feature-settings: "palt";
}

h2 {
  display: grid;
  grid-template-columns: 1fr;
  padding: 2rem 0 4rem;
  color: #181818;
  border-top: 1px solid #181818;
}

.top h2 {
  color: white;
  border-top: 1px solid white;
}

.bg_gray {
  color: #181818;
  background-color: #e7e7e7;
}

.bg_gray h2 {
  color: #181818;
  border-top: 1px solid #181818;
}

.black-filter {
  filter: invert(100%);
}

/* ==========================================================================
   2. Layout & Background (背景・共通レイアウト)
   ========================================================================== */
body.top,
body.member {
  background-color: black;
}

body.top .top-bg-image {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background-image: url("/file.jsp?id=680044");
  background-repeat: no-repeat;
  background-position: right top;
  background-size: cover;
}

.container {
  max-width: 1380px;
  margin: 0 auto;
}

/* ==========================================================================
   3. Navigation (ロゴ・メニュー・言語)
   ========================================================================== */
section.header {
  position: relative;
}

header {
  display: grid;
  grid-template-columns: 1fr;
}

nav {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  width: 100%;
  padding: 2rem 4rem;
  gap: 4rem;
}

.logo img {
  display: block;
  width: 239px;
  height: auto;
}

.top .logo img {
  filter: invert(100%);
}

.nav-menu {
  display: grid;
  grid-template-columns: auto auto;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8rem;
}

.nav-menu ul {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: .5rem;
}

.nav-menu ul li a {
  position: relative;
  display: inline-block;
  height: 1.2em;
  overflow: hidden;
  color: #181818;
  font-size: 14px;
  line-height: 1.2em;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.3s;
}

.top .nav-menu ul li a {
  color: white;
}

/* --- Rotation Animation --- */
.rotate-link {
  display: inline-block;
  vertical-align: middle;
  overflow: hidden;
  text-decoration: none;
  perspective: 1000px;
}

.rotate-inner {
  display: inline-block;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.rotate-link:hover .rotate-inner {
  transform: rotateX(-360deg);
}

/* --- Language Selector --- */
.language-selector {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  cursor: pointer;
}

.current-lang {
  display: flex;
  align-items: center;
  gap: 5px;
}

.current-lang img {
  width: 16px;
  height: 16px;
}

.top .current-lang {
  color: white;
}

.top .current-lang img {
  filter: invert(100%);
}

.lang-link {
  position: absolute;
  top: 105%;
  left: 0;
  z-index: 10;
  display: none;
  width: 100%;
  padding: .2rem;
  color: #181818;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  background: rgba(117, 116, 115, 0.3);
  transition: color 0.3s;
}

.lang-link.is-show {
  display: block;
}

.lang-link:hover {
  opacity: .8;
}

.top .lang-link {
  color: white;
  background: rgba(117, 116, 115, 1);
}

/* ==========================================================================
   4. Hero Section
   ========================================================================== */
.hero-section {
  padding: 16rem 8rem 8rem;
  text-align: left;
}

.hero-content {
  position: relative;
}

.text-en {
  display: none;
  margin-bottom: 4rem;
  font-size: 3rem;
  font-weight: 300;
  line-height: 1.4;
}

.text-jp {
  margin-top: 4rem;
  color: white;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hero-images img {
  display: block;
  max-width: 100%;
  height: auto;
}

.hero-images img.image-sub {
  display: none;
}

.video-background {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  max-width: 230px;
  height: 100%;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.video-background:hover {
  transform: scale(1.01);
}

.vimeo-frame {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  pointer-events: none;
}

.video-poster {
  position: absolute;
  right: 0;
  bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 15px;
  background-color: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ==========================================================================
   5. Who We Are / Research
   ========================================================================== */
.who-we-are-section {
  padding: 8rem 4rem;
  color: white;
  background-color: black;
}

.who-we-are-section .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.concept-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.concept-visual {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

.concept-visual img {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
}

.concept-description {
  display: grid;
  grid-template-columns: auto;
  justify-content: flex-end;
}

.concept-description .text-jp {
  width: 360px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8rem;
}

.empty-space {
  visibility: hidden;
}

.research-item {
  display: flex;
  flex-direction: column;
  padding-top: 2.5rem;
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.item-header .label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.item-header .label::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: white;
  transform: rotate(45deg);
}

.number-img {
  width: auto;
  height: 30px;
}

.item-text {
  font-size: 1.5rem;
  line-height: 1.8;
}

/* ==========================================================================
   6. News Section
   ========================================================================== */
.news-section {
  padding: 8rem 4rem;
}

.news-container {
  display: grid;
  grid-template-columns: 1fr;
  padding-left: 34%;
}

.title-bg {
  filter: invert(100%);
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0 0 6rem;
  list-style: none;
}

.news-card {
  display: none;
}

.news-card.is-visible {
  display: grid;
}

.news-card a {
  position: relative;
  display: grid;
  grid-template-columns: 180px 135px 1fr;
  padding: 2rem 0;
  gap: 4rem;
  color: white;
  text-decoration: none;
}

.news-card a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #525252;
  z-index: 1;
}

.news-card a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0; 
  height: 1px;
  background-color: white; 
  z-index: 2;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card a:hover::after {
  width: 100%;
}

.news-image {
  aspect-ratio: 4 / 2.5;
  max-width: 180px;
  overflow: hidden;
  border-radius: 4px;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-card:hover .rotate-inner,
.load-more-btn:hover .rotate-inner {
  transform: rotateX(-360deg);
}

.news-content {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: space-between;
}

.news-title {
  margin: 0;
  padding: 0;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.6;
}

.news-title span{
  display: block;
}

h1.news-title{
  text-align: center;
  font-weight: bold!important;
}

h1.news-title span{
  padding-top: .5rem;
  font-size: 1.8rem;
}

.load-more-btn {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  width: 100%;
  padding: 1.2rem;
  gap: 1rem;
  color: white;
  background: rgba(238, 238, 238, 0.1);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.plus-icon {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
}

.plus-icon::before,
.plus-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: white;
  transform: translate(-50%, -50%);
}

.plus-icon::before {
  width: 100%;
  height: 2px;
}

.plus-icon::after {
  width: 2px;
  height: 100%;
}

/* ==========================================================================
   7. Modals
   ========================================================================== */
.full-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  visibility: hidden;
  background: black;
  opacity: 0;
  transition: all 0.4s ease;
}

.full-menu.is-active {
  visibility: visible;
  opacity: 1;
}

.full-menu .nav-links {
  display: grid;
  padding-left: 0;
  list-style: none;
  gap: 2rem;
}

.full-menu .lang-link {
  position: static;
  display: grid;
  grid-template-columns: auto auto;
  padding: .6rem;
  gap: 1rem;
}

.menu-close {
  position: absolute;
  top: 2rem;
  right: 4rem;
  color: white;
  font-size: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.video-modal.is-active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
}

.video-modal .modal-content {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

.iframe-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal-close-btn {
  position: absolute;
  bottom: -50px;
  left: 50%;
  color: white;
  font-size: 1.4rem;
  letter-spacing: 0.2em;
  background: none;
  border: none;
  cursor: pointer;
  transform: translateX(-50%);
}

/* --- Project Modal (Side Panel) --- */
.video-modal[style*="justify-content: flex-end"] {
  display: flex;
  justify-content: flex-end;
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s ease;
}

.video-modal.is-active[style*="justify-content: flex-end"] {
  visibility: visible;
  opacity: 1;
}

.modal-panel {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 800px;
  height: 100%;
  overflow: visible;
  background-color: #000;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-modal.is-active .modal-panel {
  transform: translateX(0);
}

.project-modal-scroll-content {
  width: 100%;
  height: 100%;
  padding: 8rem;
  overflow-y: auto;
  color:white;
}

.modal-side-close {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 3300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  color: #fff;
  cursor: pointer;
  background: #000;
  border: 1px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.modal-side-close:hover {
  color: #000;
  background: #fff;
}

/* ==========================================================================
   8. Projects Section
   ========================================================================== */
.projects-section {
  padding: 8rem 4rem;
}

.project-list {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0 0 0 16%;
  list-style: none;
  gap: 8rem;
}

.project-card {
  display: grid;
  grid-template-columns: 55% 1fr;
  align-items: flex-end;
  gap: 6rem;
}

.project-card:has( .project-link-wrapper) {
  grid-template-columns: 1fr;
}

.project-card .project-link-wrapper {
  display: grid;
  grid-template-columns: 55% 1fr;
  align-items: flex-end;
  color: #181818;
  text-decoration: none;
  gap: 6rem;
  cursor: pointer;
}

.project-visual {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.project-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  transition: transform 0.5s ease;
}
 
.project-visual .copyright {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  color: white;
  font-size: 1rem;
}

.project-card .project-link-wrapper:hover .project-visual img {
  transform: scale(1.05);
}

.view-details {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: flex-start;
  padding: 1rem 0 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-top: 1px solid #181818;
}

.arrow-icon {
  display: inline-block;
  width: 6px;
  height: 8px;
  margin: 1rem 0 0;
  background-image: url("/file.jsp?id=680133");
  background-repeat: no-repeat;
  background-size: contain;
}

.category-title {
  margin: 0;
  padding: 0 0 1rem;
  font-size: 3.2rem;
  font-weight: 700;
}

.project-detail h5 {
  margin: 0;
  padding: 0;
  font-size: 2rem;
  font-weight: 700;
}

/* ==========================================================================
   9. Team Section / Member Profile
   ========================================================================== */
.team-section {
  padding: 8rem 4rem;
}

.director-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  padding-bottom: 6rem;
  color: white;
  text-decoration: none;
  gap: 6rem;
}

.director-visual {
  overflow: hidden;
}

.director-visual img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.director-card:hover .director-visual img {
  border-radius: 4px;
  transform: scale(1.05);
}

.director-info {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  padding: 1rem 0;
}

.director-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #525252;
  z-index: 1;
}

.director-info::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0; 
  height: 1px;
  background-color: white; 
  z-index: 2;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.director-card:hover .director-info::after {
  width: 100%;
}

.director-info .role {
  display: inline-block;
  padding: 0.2rem 1rem;
  margin-bottom: 2rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.director-info .name-block {
  margin-bottom: 2rem;
}

.director-info .name-ja {
  margin: 0;
  color: white;
  font-size: 3.2rem;
  font-weight: 500;
}

.director-info .name-en {
  font-size: 1.6rem;
  opacity: 0.7;
  color:rgba(238, 238, 238, 0.5);
}

.director-info .description {
  margin-bottom: 3rem;
  font-size: 1.6rem;
  line-height: 1.8;
  font-weight: 500;;
}

.director-info .affiliation {
  font-size: 1.4rem;
  font-weight: 700;
  color:rgba(238, 238, 238, 0.5);
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 6rem;
  gap: 4rem;
}

.member-item {
  padding-top: 2rem;
  position: relative;
}

.member-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #525252;
  z-index: 1;
}

.member-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0; 
  height: 1px;
  background-color: white; 
  z-index: 2;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.member-item:hover::after {
  width: 100%;
}

.member-item a {
  color: white;
  text-decoration: none;
}

.member-header {
  margin-bottom: 1rem;
}

.member-name-ja {
  margin: 0;
  font-size: 3.2rem;
  font-weight: 400;
}

.member-name-en {
  font-size: 1.6rem;
  opacity: 0.6;
  color:rgba(238, 238, 238, 0.5);
}

.member-specialty {
  min-height: 3.2em;
  font-size: 1.3rem;
  line-height: 1.6;
  font-weight: 500;;
}

/* --- Member Profile --- */
.member-profile {
  padding: 8rem 4rem;
  color: #fff;
  background-color: #000;
}

.profile-header-visual {
  margin-bottom: 6rem;
}

.profile-header-visual img {
  width: auto;
  max-width: 100%;
  height: 20px;
}

.profile-content {
  display: grid;
  grid-template-columns: 350px 1fr;
  align-items: start;
  gap: 6rem;
}

.profile-image{
  text-align: center;
}

.profile-image img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 4px;
}

.profile-links-desktop {
  margin-top: 3rem;
}

.btn-pdf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  margin-bottom: 3rem;
  color: #000;
  font-weight: 700;
  text-decoration: none;
  background-color: #fff;
  border-radius: 4px;
}

.btn-pdf:hover {
  opacity: 0.8;
}

.external-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.link-item {
  display: flex;
  align-items: center;
  padding-bottom: 1rem;
  color: #fff;
  font-size: 1.3rem;
  text-decoration: none;
  border-bottom: 1px solid #333;
  gap: 10px;
  transition: color 0.3s;
}

.link-item:hover {
  color: #aaa;
}

.link-item .arrow {
  width: 6px;
  height: 7px;
  background: url("/file.jsp?id=680133") no-repeat center/contain;
}

.catchphrase {
  margin-bottom: 4rem;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.4;
}

.profile-content .name-block {
  margin-bottom: 3rem;
}

.profile-content .name-ja {
  margin: 0 0 0.5rem;
  color: white;
  font-size: 3.2rem;
  font-weight: 700;
}

.profile-content .name-en {
  margin-left: 1rem;
  color: #888;
  font-size: 1.6rem;
  font-weight: 400;
}

.position {
  font-size: 1.4rem;
  font-weight: 700;
}

.biography {
  color: #ccc;
  font-size: 1.4rem;
  line-height: 1.8;
  text-align: justify;
}

.close-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.8);
  border-top: 1px solid #333;
}

.tab-close-btn {
  padding: 1rem 4rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.2em;
  cursor: pointer;
  background: none;
  border: 1px solid #fff;
  transition: all 0.3s;
}

.tab-close-btn:hover {
  color: #000;
  background: #fff;
}

/* ==========================================================================
   10. About Section (組織概要)
   ========================================================================== */
.about-section {
  padding: 8rem 4rem;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-left: 34%;
}

.about-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.info-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
}

.info-item dt,
.info-item dd {
  padding: 3rem 0;
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(117, 116, 115, 0.3);
}

.info-item dt {
  letter-spacing: 0.1em;
}

.info-item dd {
  margin: 0;
  line-height: 1.8;
}

/* ==========================================================================
   11. Link Section (外部リンク)
   ========================================================================== */
.link-section {
  padding: 8rem 4rem;
}

.link-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding-left: 34%;
}

.link-card {
  display: grid;
  grid-template-columns: 180px 135px 1fr;
  align-items: center;
  padding: 2rem 0;
  color: #181818;
  text-decoration: none;
  border-bottom: 1px solid rgba(117, 116, 115, 0.3);
  gap: 4rem;
  transition: opacity 0.3s;
}

.link-card:hover {
  opacity: 0.7;
}

.link-image {
  width: 180px;
  height: 120px;
  overflow: hidden;
}

.link-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* ==========================================================================
   12. Contact Section
   ========================================================================== */
.contact-section {
  padding: 8rem 4rem;
}

.contact-section .container{
  max-width: 100%;
}

.contact-label {
  margin-bottom: 4rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.contact-mail-link.rotate-link {
  display: inline-block;
  width: 100%;
  max-width: 870px;
}

.mail-img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   13. Footer
   ========================================================================== */
.footer {
  padding: 8rem 4rem;
}

.footer-container {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 4rem;
  max-width: 100%;
}

.footer-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-info .logo img {
  width: 239px;
  height: auto;
  filter: unset;
}

.footer .nav-menu {
  justify-content: flex-end;
}

.footer .nav-menu ul li a {
  color: #181818;
}

.top footer .current-lang{
  color: #181818;
}

.top footer .current-lang img{
  filter: unset;
}

/* ==========================================================================
   14. News詳細
   ========================================================================== */

/* --- News Detail Container --- */
body.news .news-detail {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
  color: #181818;
}

/* --- Header & Meta --- */
body.news .news-header {
  margin-bottom: 3rem;
}

body.news .news-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  font-size: 14px;
  letter-spacing: 0.05em;
}

body.news .news-category {
  display: flex;
  gap: 0.5rem;
}

/* --- Title --- */
body.news .news-title {
  max-width: 600px;
  margin-inline: auto;
  font-size: 2.5rem;
  line-height: 1.2;
  padding: 4rem 0 ;
  font-weight: 500;
}

/* --- Visual --- */
body.news .news-visual {
  width: 100%;
  max-width: 600px;
  margin:0 auto 3rem;
}

body.news .news-visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Content --- */
body.news .news-content {
  max-width: 600px;
  margin-inline: auto;
  line-height: 1.8;
  font-size: 16px;
}

body.news .news-content p {
  margin-bottom: 1.5rem;
}

body.news .news-content p:has(img),body.news .news-content figure {
  text-align:center;
}

body.news .news-content img{
   width: 100%;
  height: auto;
  max-width: fit-content;
}

/* ニュース本文内のリスト整頓 */
body.news .news-content ul {
  list-style: none; /* デフォルトの丸を消す */
  padding: 0;
  margin: 1.5rem 0;
}

body.news .news-content ul li {
  position: relative;
  padding-left: 1.5rem; /* マーカー分の余白 */
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

/* 疑似要素による黒丸マーカー */
body.news .news-content ul li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.65em; /* テキストの1行目中央に来るように調整 */
  width: 5px;
  height: 5px;
  background-color: #181818; /* テキストと同色の黒 */
  border-radius: 50%;
}

/* リスト内の段落マージン調整 */
body.news .news-content ul li p {
  margin-bottom: 0.25rem;
}

/* --- Back to Top Button (Animation) --- */
body.news .back-link {
  display: inline-block;
  text-decoration: none;
  color: #181818;
  font-size: 12px;
  font-weight: bold;
  overflow: hidden;
  height: 1.2em; /* 1行分だけ見せる */
}

body.news .back-inner {
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.news .back-text {
  display: block;
  line-height: 1.2em;
  position: relative;
}

/* 矢印アイコンの擬似要素（Studioのsvg再現） */
body.news .back-text::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 7px;
  margin-right: 8px;
 background-image: url("data:image/svg+xml,%3Csvg width='6' height='7' viewBox='0 0 6 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 1L1 3.5L5 6' stroke='black'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  vertical-align: middle;
}

/* --- Footer --- */
body.news .news-footer {
  margin-top: 5rem;
  padding-top: 2rem;
  text-align: center;
}

/* ==========================================================================
   15. Responsive Settings
   ========================================================================== */
.menu-toggle {
  display: none;
  flex-direction: column;
  padding: 5px;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle .bar {
  width: 25px;
  height: 2px;
  background: #181818;
}

.top .menu-toggle .bar {
  background: white;
}

@media (max-width: 1200px) {
  .news-container, .about-content, .link-grid { padding-left: 20%; }
  .project-list { padding: 0; }
}

@media (max-width: 840px) {
  nav { grid-template-columns: 1fr auto; }
  .nav-menu { display: none; }
  .menu-toggle { display: flex; }

  .news-section,.who-we-are-section,.projects-section,.team-section,.about-section,.link-section,.contact-section,.footer{padding: 6rem 2rem;}

  .hero-content {padding-bottom: 160px;}
  
  .news-container, .about-content, .link-grid { padding-left: 0; }
  .research-grid,.member-grid { grid-template-columns: 1fr 1fr; }
  
  .empty-space { display: none; }
  
  .info-item { grid-template-columns: 100px 1fr; gap: 1rem; }
  .link-card { grid-template-columns: 120px 100px 1fr; gap: 2rem; }

  .profile-content {  grid-template-columns: 1fr;}
  
  .footer-container { grid-template-columns: 1fr; text-align: center; }
  .footer .nav-menu { display: none; }
  .footer-info { justify-items: center; }
}

@media (max-width: 540px) {
  .hero-section { text-align: center;padding: 8rem 2rem 4rem; }
  .hero-images img.image-main { display: none; }
  .hero-images img.image-sub { display: block; }

   .news-section,.who-we-are-section,.projects-section,.team-section,.about-section,.link-section,.contact-section,.footer{padding: 2rem;}

  .research-grid,.project-card,.project-card .project-link-wrapper { grid-template-columns: 1fr; }

  .project-card,.research-grid,.project-list,.director-card,.member-grid{gap:2rem}
  
  .news-card a, .link-card,.member-grid { grid-template-columns: 1fr; }
  .link-meta { order: -1; }
  
  .director-card { grid-template-columns: 1fr;padding-bottom: 2rem; }
  .director-info .description, .director-info .name-block {margin-bottom: 0;}
  .director-info .name-ja,.member-name-ja,.category-title,.catchphrase,.profile-content .name-ja { font-size: 2.4rem;  }
  .project-detail h5 { font-size: 1.8rem;  }
  .member-grid { padding-top: 0; }

  body.news .news-footer {margin-top: 0;}
  body.news .news-detail{padding: 2rem 2rem 4rem;}
  body.news .news-title{padding: 0 0 4rem;}
}
