@charset "UTF-8";

@import url(/css/sanitize.css);
@import url(https://fonts.googleapis.com/earlyaccess/notosansjapanese.css);

.clearfix:after {
  content: ".";
  display: block;
  clear: both;
  height: 0;
  visibility: hidden;
}

html {
  font-size: 62.5%;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "游ゴシック", "Yu Gothic", "メイリオ", Meiryo, Osaka, sans-serif;
  font-size: 1.2rem;
  margin: 0 auto;
  padding-top: 3rem;
  background-color: #F8F8F8;
}

*, *::before, *::after {
  box-sizing: border-box;
}

a:link, a:visited, a:hover, a:active {
  color: #555;
}

h2 {
  font-size: 22px;
  color: black;
  margin: 0 0 8px;
}

h3 {
  font-size: 16px;
  color: black;
  margin: 0 0 4px;
}

p,li {
  font-size: 14px;
  color: #333;
  line-height: 22px;
  margin: 0;
}

/* Header Styles */
.header__wrapper {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0 1.6rem;
}

.header__content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.header__logo {
  font-size: 1.8rem;
  font-weight: bold;
  padding: 1rem 0;
}

.header__language {
  font-size: 1.4rem;
  padding: 1rem 0;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__menu a {
  padding: 0.8rem 1.2rem;
  font-size: 1.8rem;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  min-width: 12rem;
  z-index: 1000;
}

.dropdown-menu a {
  display: block;
  padding: 0.8rem;
  font-size: 1.4rem;
  color: #000;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.menu-toggle {
  display: none; /* デフォルトは非表示 */
  font-size: 2.4rem;
  cursor: pointer;
}

/* Responsive Header */
@media screen and (max-width: 480px) {
  .header__content {
    flex-direction: column;
    align-items: center;
  }
  
  .header__logo,
  .header__language {
    width: 100%;
    text-align: center;
  }
  
  /* メニュー・トグルを表示 */
  .menu-toggle {
    display: block;
  }
  
  /* スマホではメニューは初期非表示、activeクラス付与で表示 */
  .header__menu {
    display: none;
    flex-direction: column;
    width: 100%;
    align-items: center;
    margin-top: 1rem;
  }

  .header__menu.active {
    display: flex;
  }

  /* 縦並びでは区切りの / を隠す */
  .header__sep {
    display: none;
  }
}

/* Content Sections */
.profile__img--sp {
  margin-top: 48px;
  width: 100%;
}

.profile__img--dt {
  display: none;
}

.profile__content p {
  color: black;
}

.text__wrapper {
  padding: 16px;
}

.section__wrapper {
  background-color: #fff;
  margin-bottom: 16px;
}

.news__wrapper p{
  margin-bottom: 12px;
  text-align:justify;
}

.news__wrapper .text__wrapper{
  padding-bottom: 20px;
}

.research__overview img{
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 90%;
}

.research__overview p{
  color: black;
  text-align:justify;
}

.research__overview li{
  color: black;
  text-align:justify;
}

.research__img {
  background-color: #9B9B9B;
  width: 100%;
  height: auto;
  margin: 16px 0 12px;
}

.research__description {
  width: 388px;
  padding-left: 24px;
  display: inline-block;
  vertical-align: middle;
}

.research__wrapper {
  margin-bottom: 12px;
}

.research__sectionTitle {
  font-size: 22px;
  font-weight: bold;
  margin-top: 40px;
}

.playground__img {
  background-color: #9B9B9B;
  width: 100%;
  height: auto;
  margin: 16px 0 12px;
}

.playground__description {
  width: 388px;
  padding-left: 24px;
  display: inline-block;
  vertical-align: middle;
}

.playground__wrapper {
  margin-bottom: 12px;
}

.project__img {
  background-color: #9B9B9B;
  width: 100%;
  height: auto;
  margin: 16px 0 12px;
}

@media screen and (min-width: 480px) {
  .header__content {
    width: 648px;
    margin: 0 auto;
  }

  .header__logo, .header__language {
    margin: 0;
  }

  .header__menu {
    line-height: 60px;
    font-size: 14px;
    text-align: right;
  }

  .profile__img--sp {
    display: none;
  }

  .profile__img--dt {
    display: inline-block;
    width: 182px;
    vertical-align: middle;
  }

  .profile__wrapper {
    margin-top: 48px;
    padding: 24px 0;
    text-align:justify;
  }

  .profile__content {
    margin: 0 auto;
    width: 648px;
  }

  .text__wrapper {
    display: block;
    width: 648px;
    margin: 0 auto;
    padding: 24px 0;
  }

  .profile__wrapper .text__wrapper {
    display: inline-block;
    width: 423px;
    vertical-align: middle;
    padding-left: 44px;
  }

  h1 {
    font-size: 32px;
    border-bottom: #EEEEEE 1px solid;
  }

  p {
    font-size: 16px;
  }

  li {
    font-size: 14px;
    margin: 2px;
  }

  .research__img {
    width: 236px;
    vertical-align: middle;
  }

  .research__description {
    width: 388px;
    padding-left: 24px;
    display: inline-block;
    vertical-align: middle;
  }

 .playground__img {
    width: 236px;
    vertical-align: middle;
  }

  .playground__description {
    width: 388px;
    padding-left: 24px;
    display: inline-block;
    vertical-align: middle;
  }
}

@media screen and (min-width: 1025px) {
  body {
    background-color: #fff;
  }

  .header__wrapper {
    height: 60px;
  }

  .header__content {
    width: 1000px;
  }

  .header__logo {
    line-height: 60px;
    font-size: 20px;
  }

  .header__language {
    line-height: 60px;
    font-size: 16px;
  }

  .header__menu {
    line-height: 60px;
    font-size: 18px;
    text-align: right;
  }

  .profile__content {
    width: 1000px;
  }

  .profile__img--dt {
    width: 280px;
  }

  .profile__wrapper {
    padding: 48px;
  }

  .text__wrapper {
    width: 1000px;
  }

  .profile__wrapper .text__wrapper {
    width: 700px;
  }

  .research__description {
    width: 748px;
  }

  .playground__description {
    width: 748px;
  }
}


/* modal page */
.modal {
  display: none; 
  position: fixed; 
  z-index: 1; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgb(0,0,0); 
  background-color: rgba(0,0,0,0.4); 
}

.modal-content {
  background-color: #fefefe;
  margin: 25% auto; 
  padding: 20px;
  border: 1px solid #888;
  width: 60%; 
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.hoverable {
  color: black;
  text-decoration: underline;
}

.hoverable:hover {
  cursor: pointer;
}

/* tab */
.tab-container {
  display: flex;
  justify-content: space-around;
  padding: 0 10px;
  flex-wrap: wrap; /* Allow the tabs to wrap to a new line if necessary */
}

@media (max-width: 600px) {
  .tab-container {
    flex-direction: column; /* Stack the tabs vertically on small screens */
  }

  .tab-button {
    margin-bottom: 10px; /* Add some space between the tabs */
  }
}

.tab-button {
  padding: 10px;
  text-align: center;
  border: 1px solid #ccc;
  background-color: #f8f8f8;
  color: #333;
  cursor: pointer;
  transition: background-color 0.3s ease;
  flex-grow: 1;
  flex-basis: 0;
  box-sizing: border-box;
  font-size: 14px;
  font-weight: bold;
  color: #000;
}

.tab-button:hover {
  background-color: #e8e8f8;
}

.tab-button.active {
  border: 1px solid #ccc;
  background-color: #888;
  color: #000;
}

.yt-container {
    text-align: center;
  }
.yt-wrap {
    display: inline-block;
  }
/* Profile side: photo + link icons */
.profile__side .profile__img--dt {
  width: 100%;
}

.profile__links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

.profile__links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #555;
  font-size: 11px;
  text-decoration: none;
}

.profile__links a:hover {
  color: #000;
}

.profile__links i {
  font-size: 20px;
  margin-bottom: 4px;
}

@media screen and (min-width: 480px) {
  .profile__side {
    display: inline-block;
    width: 182px;
    vertical-align: middle;
  }
}

@media screen and (min-width: 1025px) {
  .profile__side {
    width: 280px;
  }
}
