body {
  font-family: "Montserrat","Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Hiragino Sans",Meiryo,sans-serif;
  font-size: 15px;
  letter-spacing: .05em;
  color: #333;
}

a {
  transition: opacity .3s;
  text-decoration: none;
  color: #1ca9e3;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  border-style: none;
}



.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

/*--------------------------------
 レイアウト
---------------------------------*/
.wrapper {
  padding-top: 73px;
}

.section {
  padding: 90px 0;
}

.section:nth-of-type(odd) {
  background-color: #f7f7f7;
}

.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 40px;
}

/*--------------------------------
 見出し
---------------------------------*/
.title {
  font-size: 34px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: .05em;
  color: #262262;
}

.lead {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}

/*--------------------------------
ヘッダー
---------------------------------*/
.header {
  position: fixed;
  top: 0;
  z-index: 1;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 5px 10px -6px rgba(0,0,0,.1);
}

.header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
  padding: 20px 40px;
}

.header-logo {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
  margin-right: 20px;
  letter-spacing: .05em;
}

.header-logo a {
  color: #333;
}

.gnav-list {
  display: flex;
  justify-content: space-between;
  list-style: none;
}

.gnav-item:not(:last-child) {
  margin-right: 20px;
}

.gnav-item a {
  position: relative;
  font-size: 13px;
  font-weight: bold;
  display: inline-block;
  padding: 5px 0;
  transition: .3s;
  letter-spacing: .05em;
  color: #333;
  width: auto; 
}
.gnav-item a:after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  content: "";
  transition: .3s;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: #333;
}

.gnav-item a:hover:after {
  width: 100%;
}

/*--------------------------------
 メインビジュアル
---------------------------------*/
.mv {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 85vh;
  text-align: center;
	
  background: linear-gradient(135deg,  rgba(0, 160, 190, 0.6), rgba(0, 50, 60, 0.6) ) fixed, url("https://www.itbm.nagoya-u.ac.jp/istbm-11/img/ISTbM-11_back.png");
  background-size: cover;
  background-position: center center;
}

.mv-container {
  padding: 0 40px;
}

.mv-title {
  font-size: 60px;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 5px;
  letter-spacing: .1em;
  color: #FFF;
}
.mv-subtitle {
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 40px;
  letter-spacing: .08em;
  color: #FFF;
}

.mv-text {
  font-size: 16px;
  line-height: 1.8;
  color: #FFF;
}

/*--------------------------------
 ボタン
---------------------------------*/


button {
  padding: 0;
  font-family: inherit;
  appearance: none;
  cursor: pointer;
  background-color: transparent;
  border: none;
}

/* ボタンのスタイル */
/* ボタンのスタイル（両端を斜め45度カット） */
.buttonOutlineGradient {
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  /*max-width: 320px;*/
  height: 64px;
  padding: 2px;
  font-family: sans-serif;
  font-size: 16px;
  text-align: center;
  overflow-wrap: break-word;
  /*background: linear-gradient(135deg, #262262, #27aae1);*/
  background: linear-gradient(135deg, #6fa24a, #15a1cc);
  /* border-radiusを削除 */
  /* border-radius: 32px; */
  
  /* 両端を斜め45度カット（右肩上がり） */
  clip-path: polygon(32px 0%, 100% 0%, calc(100% - 32px) 100%, 0% 100%);
}

.buttonOutlineGradient::before {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  background: linear-gradient(135deg, #6fa24a, #15a1cc);
  filter: blur(8px);
  border-radius: 32px; /* (buttonの高さ / 2) の値 */
  opacity: 0;
}

.buttonOutlineGradient_item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #fff;
  background-color: transparent;
  border-radius: 32px; /* (buttonの高さ / 2) の値 */
}

@media (any-hover: hover) {
  .buttonOutlineGradient::before {
    transition: opacity 0.2s;
    will-change: filter;
  }

  .buttonOutlineGradient:hover::before {
    opacity: 1;
  }
}

/*--------------------------------
 Lecturers
---------------------------------*/

.lecturers-list {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  margin-bottom: -40px;
  justify-content: center;
}
.lecturers-item {
  /*width: 31.74603%;
  margin-right: 1.58730%;*/
  /* float: left; */ /* flexboxを使うのでfloatは削除 */
  width: calc(25% - 15px); /* デスクトップ：4つ並べるため25%から余白を引く */
  margin-right: 20px; /* 画像間の余白 */
  margin-bottom: 40px;
  color: #333;
}
.lecturers-item:hover {
  opacity: .9;
}
.lecturers-item:nth-of-type(4n) { /* デスクトップ：4つごと（4n）に右マージンを0に */
  margin-right: 0;
}
/* 3nのルールを削除して4nに変更したので、古いルールを無効化 */
.lecturers-item:nth-of-type(3n) {
  margin-right: 20px; /* 元のマージンに戻す */
}
/* レスポンシブデザイン */
/* タブレット大（3列表示） */
@media screen and (max-width: 1024px) {
  .lecturers-item {
    width: calc(33.333% - 14px); /* 3つ並べる */
  }
  .lecturers-item:nth-of-type(4n) {
    margin-right: 20px; /* 4nルールを無効化 */
  }
  .lecturers-item:nth-of-type(3n) {
    margin-right: 0; /* 3つごとに右マージンを0に */
  }
}
/* タブレット小（2列表示） */
@media screen and (max-width: 768px) {
  .lecturers-item {
    width: calc(50% - 10px); /* 2つ並べる */
  }
  .lecturers-item:nth-of-type(3n) {
    margin-right: 20px; /* 3nルールを無効化 */
  }
  .lecturers-item:nth-of-type(2n) {
    margin-right: 0; /* 2つごとに右マージンを0に */
  }
}
/* スマホ（1列表示） */
@media screen and (max-width: 480px) {
  .lecturers-item {
    width: 100%; /* 1つで全幅 */
    margin-right: 0; /* 右マージンは不要 */
  }
  .lecturers-item:nth-of-type(2n) {
    margin-right: 0; /* 全てのnthルールを無効化 */
  }
}
.lecturers-img img {
  border: 1px solid #e6e6e6;
  
  /* 60度角で角の一部分をカット（左上と右下） */
  clip-path: polygon(46.19px 0%, 100% 0%, 100% calc(100% - 80px), calc(100% - 46.19px) 100%, 0% 100%, 0% 80px);
}
.lecturers-name {
  font-size: 12px;
  font-weight: bold;
  margin-top: 8px;
}
.lecturers-info {
  font-size: 10px;
  margin-top: 5px;
}

img[src*="lecturer/"] {
  clip-path: polygon(46.19px 0%, 100% 0%, 100% calc(100% - 80px), calc(100% - 46.19px) 100%, 0% 100%, 0% 80px);
  display: block;
  margin: auto;
}

/*--------------------------------
 Program
---------------------------------*/

/* flex-schedul */
.flex-schedule {
  /*min-width: 400px;*/
  max-width: fit-content(20em);
  list-style: none;
  margin: 0 auto 0 0;
  box-sizing: border-box;
}
.flex-schedule-text {
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}
.flex-schedule li {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
}
.flex-schedule .area {
  padding: 10px;
  display: block;
  width: 100%;
  /* border-leftを削除してグラデーションの疑似要素で置き換え */
  /* border-left: 6px solid #27aae1; */
  position: relative;
  padding-left: 16px; /* border-leftの6px + 余白10px */
}

.flex-schedule .area::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  /* 一続きのグラデーション - 各項目で位置を調整 */
  background: linear-gradient(180deg, #6fa24a, #15a1cc);
  background-size: 100% 500%; /* グラデーションを縦に拡大 */
}

/* 各項目でグラデーションの位置を調整 */
.flex-schedule li:nth-child(1) .area::before {
  background-position: 0% 0%; /* 1番目：グラデーションの開始部分 */
}
.flex-schedule li:nth-child(2) .area::before {
  background-position: 0% 25%; /* 2番目：グラデーションの1/4位置 */
}
.flex-schedule li:nth-child(3) .area::before {
  background-position: 0% 50%; /* 3番目：グラデーションの中間 */
}
.flex-schedule li:nth-child(4) .area::before {
  background-position: 0% 75%; /* 4番目：グラデーションの3/4位置 */
}
.flex-schedule li:nth-child(5) .area::before {
  background-position: 0% 100%; /* 5番目：グラデーションの終了部分 */
}
.flex-schedule li .time {
  display: inline-flex;
  justify-content: flex-end;
  flex-basis: 5em;
  max-width: 10em;
  margin-right: 1em;
  margin-top: 30px;
}
.flex-schedule .sch_box {
  position: relative;
  min-height: 1em;
  padding: 1em;
  background: #EEEEEE;
  border-radius: 6px;
}
.flex-schedule .sch_box::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 20px;
  background: #262262;
  width: 20px;
  height: 20px;
  /* 円形のborder-radiusを削除 */
  /* border-radius: 10px; */
  overflow-wrap: break-word;
  
  /* 30度回転した正六角形にクリップ */
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
}
.flex-schedule .sch_title {
  font-weight: 700;
}
.flex-schedule .sch_tx {
  font-size: 14px;
  font-weight: normal;
}

/*--------------------------------
 About
---------------------------------*/

.profile {
  display: flex;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}
.profile-img {
  width: 20%;
  margin-right: 30px;
  /* 円形のborder-radiusを削除 */
  /* border-radius: 50%; */
}
.profile-img img {
  width: 100%;
  height: 100%;
  /* 円形のborder-radiusを削除 */
  /* border-radius: 50%; */
  
  /* 30度回転した正六角形にクリップ（数学的に正確な座標） */
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
  
  /* 画像を正方形にする */
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.profile-body {
  flex: 1;
}
.profile-body p {
  font-size: 15px;
  line-height: 1.8;
}
.profile-body p:not(:last-child) {
  margin-bottom: 30px;
}

/* オプション：六角形にホバー効果を追加 */
.profile-img img:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/*--------------------------------
 Contact
---------------------------------*/
.contact {
  text-align: center;
}

.contact-item:not(:last-child) {
  margin-right: 10px;
}

.contact-text {
  margin-top: 10px;
}

/*--------------------------------
 Venue
---------------------------------*/
.venue {
  text-align: center;
}

.venue-item:not(:last-child) {
  margin-right: 10px;
}

.venue-text {
  margin-top: 10px;
}

.map {
  width: 100%;
  position: relative;
  padding-top: 56.25%;
}

.map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/*--------------------------------
 ページトップ
---------------------------------*/
.page-top {
  font-weight: bold;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  background-color: #EEEEEE;
}

.page-top .material-icons-outlined {
  vertical-align: bottom;
  color: #262262;
}

/*--------------------------------
 フッター
---------------------------------*/
.footer {
  padding: 30px;
  background-color: #262262;
}

.copyright {
  font-size: 10px;
  text-align: center;
  color: #27aae1;
}

/*--------------------------------
 下層：Lecturersページ
---------------------------------*/
.article {
  padding: 80px 0;
}

.article-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-title {
  margin-bottom: 30px;
  text-align: center;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  margin-bottom: 80px;
}

.article-body ol li {
	list-style-type: none;
	counter-increment: cnt;
}

.article-body ol li::before {
	content: "[" counter(cnt) "] ";
}
	 
.article-body li {
	margin-left: 1.4em;
	margin-top: 0.5em;
	text-indent: -1.4em;
}

.article-body h3 {
  position: relative;
  font-size: 18px;
  margin-bottom: 5px;
  padding-left: 1em;
}
.article-body h3:not(:first-child) {
  margin-top: 50px;
}
.article-body h3::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  content: "";
  /* border-radius: 3px; */ /* 削除 */
  /* background-color: #262262; */ /* 削除 */
  
  /* ボタンと同じグラデーション（縦向き） */
  background: linear-gradient(180deg, #6fa24a, #15a1cc);
  
  /* 縦の細い平行四辺形にクリップ */
  clip-path: polygon(0% 8px, 100% 0%, 100% calc(100% - 8px), 0% 100%);
}

.article-body p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.home-link {
  text-align: center;
}

/*media Queries 767
----------------------------------------------------*/
@media screen and (max-width: 767px) {
  body {
    font-size: 14px;
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }

  /* 見出し */
  .title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .lead {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  /* レイアウト */
  .wrapper {
    padding-top: 57px;
  }

  .section {
    padding: 60px 0;
  }

  .container {
    padding: 0 20px;
  }

  /* ヘッダー */
  .header .container {
    padding: 15px;
  }

  .header-logo {
    font-size: 15px;
    margin-right: 15px;
  }

  .gnav-item:not(:last-child) {
    margin-right: 10px;
  }

  .gnav-item a {
    font-size: 10px;
  }

  .gnav-item a:after {
    display: none;
  }

  /*  メインビジュアル */
  .mv {
    height: 75vh;
  }

  .mv-container {
    padding: 0 20px;
  }

  .mv-title {
    font-size: 30px;
  }
  .mv-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .mv-text {
    font-size: 14px;
    line-height: 1.7;
  }

  /* Lectuers */
  .Lectuers-name {
    font-size: 12px;
  }

  .Lectuers-info {
    margin-top: 3px;
  }

  .Lectuers-list {
    justify-content: space-between;
  }

  .Lectuers-item {
    flex: 0 0 48%;
    margin-right: 0;
    margin-bottom: 30px;
  }

  /* About */
  .profile {
    display: block;
  }
  .profile-img {
    width: 150px;
    margin: 0 auto;
    margin-bottom: 25px;
  }

  .profile-body p {
    font-size: 14px;
    line-height: 1.7;
  }

  .profile-body p:not(:last-child) {
    margin-bottom: 20px;
  }

  /* フッター */
  .footer {
    padding: 20px;
  }

  /* 下層ページ */
  .article {
    padding: 50px 0;
  }

  .article-body h3 {
    font-size: 16px;
    padding-left: .8em;
  }

  .article-body h3:not(:first-child) {
    margin-top: 30px;
  }

  .article-body p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
  }
}
