@charset "UTF-8";

html {
  font-size: 100%;
}
body {
  color: #24292e;
  margin: 0; 
  padding: 0; 
  font-family: 'Noto Sans JP', sans-serif;
  display: flex; 
  flex-direction: column; 
  min-height: 100vh; 
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif JP', serif;
}
a {
  text-decoration: none;
}
p {
  line-height: 1.6;
}
img {
  max-width: 100%;
}
main {
  background-color: #f6f7e3;
  padding-top: 1.5rem;
  flex-grow: 1;
}
.wrapper {
  max-width: 960px;
  margin: 0 auto 0 auto;
  font-size: 1rem;
  padding: 0 4% 30px 4%;
}
.site-title {
  line-height: 1px;
  width: fit-content;
  margin-top: 0; 
  padding-top: 0.3rem; 
  padding-bottom: 0.5rem;
}
.site-title .logo-link {
  display: inline-block; 

}
.site-title img {
  display: block; 
}
.site-title a {
  display: block;
}
.page-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}
.sec-title {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}
.bold {
  font-weight: bold;
}
.kaken {
  font-size: 0.7rem;
  text-align: right;
}
.right {
  text-align: right;
}
.frame {
  border: #000 1px solid;
  padding: 15px;
  margin-bottom: 1rem;
}
.blank-line {
  padding-bottom: 1rem;
}
.lang-toggle {
  text-align: right;
  margin-bottom: 1rem;
}
#toggle-research {
  margin-bottom: 2rem;
}
#toggle-research:hover {
  color: #007acc; 
  text-decoration: underline;
}
button {
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: bold;
  color: #ffffff;
  background-color: #4caf50;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
button:hover {
  background-color: #388e3c;
  transform: translateY(-1px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}
.lang-en {
  display: none;
}
/*-------------------------------------------
ヘッダー
-------------------------------------------*/
.header-wrapper {
  position: sticky;
  top: 0;
  background-color: #1f3f44ff;
  z-index: 100;
  margin-top: 0; 
  padding-top: 0; 
}
#header {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.5rem 4% 1rem; 
}
#header ul {
  display: flex;
  justify-content: space-between;
}
#header li {
  list-style: none;
  font-size: 1.0rem;
  padding: 0 20px;
  border-bottom: 1px solid #fff;
}
#header li:hover {
  border-bottom: none;
  box-shadow: inset 0 -2px 0 0 #24292e; 
}
#header li a {
  color: #fff;
}
#header li a:hover {
  opacity: 0.7;
}
#header li.current {
  border-bottom: 2px solid #c41e3a; 
}
#header li.has-submenu {
  position: relative;
}

/* サブメニューの基本スタイル */
#header .submenu {
  display: none; 
  position: absolute;
  top: 100%; 
  left: 0;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  min-width: 160px;
  z-index: 200; 
  padding: 0;
  margin: 0;
}

/* サブメニューのリスト */
#header .submenu li {
  border: none; 
  padding: 10px 20px;
  white-space: nowrap; 
}

/* サブメニューのリンク */
#header .submenu li a {
  color: #24292e;
}

/* hoverしたらサブメニュー表示 */
#header li.has-submenu:hover .submenu {
  display: block;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 25px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.hamburger span {
  display: block;
  position: absolute;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger span:nth-child(1) {
  top: 0;
}
.hamburger span:nth-child(2) {
  top: 11px;
}
.hamburger span:nth-child(3) {
  bottom: 0;
}

/* ハンバーガーメニューがアクティブな時の状態 */
.hamburger.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/*-------------------------------------------
Index
-------------------------------------------*/
#mainvisual {
  margin: 0 auto 2rem;
  width: 75%;
  max-width: 720px; 
  position: relative;
}

/* スライドショー用スタイル */
.slideshow-container {
  position: relative;
  width: 100%;
  max-height: 540px;
  padding-top: 50%;
  overflow: hidden;
  margin: 0 auto;
}

/* 大きな画面サイズでは固定サイズに */
@media screen and (min-width: 701px) {
  .slideshow-container {
    padding-top: 0; 
    height: 540px; 
  }
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0; 
  margin: 0 auto;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.slide.active {
  opacity: 1;
  z-index: 1;
}
.slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}
#about p {
  text-align:justify;
  margin-bottom: 1rem;
}
#contact {
  display: flex;
  justify-content: center;
}

/*-------------------------------------------
Profile
-------------------------------------------*/
#profile h2 {
  border-top:2px #000 solid;
  border-bottom:2px #000 solid;
  margin-bottom: 2rem;
  padding: 0.5rem;
}
#self-introduction p{
 margin-bottom: 1rem;
}
#self-introduction figure {
  float: left;
  width: 25%;
  display: flex;
  justify-content: center;
  align-items: center; 
}
#self-introduction img {
  padding: 0 10px;
  max-width: 100%;
}
#academic-record, #work-history, 
#educational-history, #academic-activities, #certification,
#social-activities {
  margin-bottom: 50px;
}
.design03 {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
  border-spacing: 0;
  border-top: solid 1px #778ca3;
 } 
 .design03 td:first-child {
  width: 80%;
}
.design03 td:last-child {
  width: 20%;
}
 .design03 tr:nth-child(2n+1) {
  background: #e9faf9;
 }
 .design03 tr:nth-child(2n) {
  background: #fff;
 }
 .design03 th,
 .design03 td {
  padding: 10px;
  border-bottom: solid 1px #778ca3;
 }
 .design03.EN td:first-child {
  width: 20%;
}
.design03.EN td:last-child {
  width: 80%;
}

/*-------------------------------------------
Massage
-------------------------------------------*/
#research h3 {
  font-size: 1.2rem;
  padding-bottom: 0.5rem;
}
#research h4 {
  font-size: 1.2rem;
  padding-bottom: 0.5rem;
}

#research-toc ul {
  list-style: none;
  padding: 1rem;
  border: #778ca3 1px solid;
}
#research-toc li {
  margin-bottom: 0.5rem;
}
#research-toc li:last-child {
  margin-bottom: 0;
}
#research-toc p {
  margin-bottom: 1rem;
}
.topic p{
  margin-bottom: 1rem; 
 }
.topic figure {
  float: right;
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; 
}
.topic .figure-big {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; 
}
.topic img {
  padding: 0 10px;
  max-width: 100%;
}
.topic li {
  list-style: none;
}
figcaption {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: #666;
}
.projects-list {
  padding-left: 1em; 
  text-indent: -1em; 
  margin-bottom: 1rem;
}
.subheading {
  margin-bottom: 2rem;
}
#midashi1, #midashi2, #midashi3, #midashi4 {
  scroll-margin-top: 130px; /* PC表示でのヘッダーの高さに合わせて調整 */
}
.collapse {
  display: none;
}

.collapse.open {
  display: block;
}
.lang p {
  margin-bottom: 1rem;
}
.lang .sec-title {
  margin: 2rem 0;
}
#introduction figure {
  display: flex;
  justify-content: center;
  align-items: center; 
}
#introduction img {
  padding: 1rem 0;
  max-width: 100%;
}
/*-------------------------------------------
Publications
-------------------------------------------*/
#publications h2 {
  border-top:2px #000 solid;
  border-bottom:2px #000 solid;
  margin-bottom: 2rem;
  padding: 0.5rem;
  background-color: #dcedc8;
  text-align: center;
}
#publications h3 {
  border-bottom:1px #000 solid;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}
#publications .right {
  text-align: right;
  margin-bottom: 1rem;
}
.work-list {
  list-style-position: inside;
  padding-left: 0.5em; 
  margin-bottom: 1rem;
}
.work-list li {
  text-indent: -1.5em; 
  padding-left: 1.5em;  
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom:1px #cccccc solid;
}
.peer {
  height: 16px;
}

/*-------------------------------------------
Gallery
-------------------------------------------*/
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 20px;
  max-width: 960px; 
  margin: 0 auto;     
  width: 100%;       
}
.thumbnail {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.3s;
}
.thumbnail:hover {
  transform: scale(1.05);
}

/* モーダルスタイル */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 86px; 
  right: 0; 
  bottom: 0; 
  width: auto; 
  height: auto; 
  background-color: rgba(0, 0, 0, 0.8);
}
.modal-content {
  display: block;
  position: absolute;
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  max-width: 80%; 
  max-height: 80%; 
  width: auto; 
  height: auto; 
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
}
.arrow {
  position: absolute;
  top: 50%;
  color: #fff;
  font-size: 50px;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  transform: translateY(-50%);
}
.arrow.left {
  left: 30px;
}
.arrow.right {
  right: 30px;
}

/*-------------------------------------------
フッター
-------------------------------------------*/
#footer {
  background-color: #1f3f44ff;
  color: #fff;
  font-size: 0.7rem;
  padding: 10px 20px;
  text-align: center;
}

/*------------------------------------------------------------------------------------------------------
SP
------------------------------------------------------------------------------------------------------*/
@media screen and (max-width: 700px) {
  .wrapper {
    padding-bottom: 30px;
  }
  .site-title {
    width: 180px; /* ロゴ画像を小さくする */
    height: auto; /* アスペクト比を維持 */
    padding-top: 10px;
  }
  .sec-title {
    margin-bottom: 40px;
  }

/*-------------------------------------------
ヘッダー
-------------------------------------------*/
/* ハンバーガーを表示 */
.hamburger {
  display: block;
  position: absolute;
  top: 28px;
  right: 20px;
  width: 30px;
  height: 25px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 300;
}
#header li a {
  color: #24292e;
}
/* ナビメニューを非表示に */
#header nav ul {
  display: none;
  flex-direction: column; 
  background: #fff;
  position: absolute;
  top: 60px;
  right: 0;
  width: 200px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#header nav ul.active {
  display: flex;
}

#header li {
  padding: 10px 20px;
  border-bottom: 1px solid #ccc;
}

#header li.has-submenu:hover .submenu {
  position: static; 
  box-shadow: none;
}

#header .submenu {
  position: static;
  box-shadow: none;
}

#header .submenu li {
  padding-left: 30px; 
}

/*-------------------------------------------
Index
-------------------------------------------*/
.slideshow-container {
  padding-top: 56.25%; 
}
#mainvisual {
  width: 90%;
}

/*-------------------------------------------
Works
-------------------------------------------*/
#works ul {
  flex-direction: column;
}
#works li {
  width: 100%;
}
}