:root {
  --mau-red: #D80C18;
  /* 赤の色味はここで変更*/
  --paper: #F4F4F4;
  --text-black: #1a1a1a;
  /*
    --font-serif: 'Bodoni Moda', serif;
    --font-sans: 'Zen Kaku Gothic New', sans-serif;
    */
  /* 山田root追加*/
  --title-left: clamp(30px, 25vw, 2000px);
  /* 左の距離 */
  --title-top: clamp(0px, 5vh, 200px);
  /* 上からの距離 */
  --title-width: clamp(0px, 70vw, 8000px);
  /* 画像サイズ　*/
  --hero-to-works: clamp(0px, 6svh, 300px);
  /* セクション間の距離 */
  --work-card: clamp(40px, 30vw, 300px);
  /* 中の画像の最大占有率（枠に対して） */
  --section-title-gap: clamp(8px, 10vw, 50px);
  /* タイトル画像の下の余白 */
  --title-img-w: clamp(250px, 40vw, 520px);
  /* タイトル画像の幅 */
  --header-h: 55px;
  /* ヘッダー高さに合わせて調整 */
  --menu-w: min(340px, 70vw);
  /* 開いた時の横幅 */
  --menu-gap: 0px;
  /* 画面端との余白 */

}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /*font-family: 'Helvetica Neue', Arial, sans-serif;*/
  font-family: "IBM Plex Sans JP", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: #333;
  overflow-x: hidden;
}

.section-title {
  margin: 0 auto var(--section-title-gap);
  text-align: center;
}

.title-img {
  display: block;
  margin: 0 auto var(--section-title-gap);
  ;
  width: var(--title-img-w);
  max-width: 90vw;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

#bg-image {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: auto;
  min-width: 100vw;
  will-change: transform;
}

/* 山田bgtitle変更 */
.bg-title {
  width: var(--title-width);
  display: block;
  margin: 0;
  /* 余計な中央寄せ防止 */
}


/* Hero Section */
.hero {
  background: radial-gradient(rgba(255, 255, 255, 0.7) 10%, rgba(255, 255, 255, 0.1) 70%, rgba(255, 255, 255, 0) 20%);
  width: 100%;

  padding-bottom: var(--hero-to-works);
  /* ここでセクション間の距離を管理 */

  display: flex;
  align-items: flex-start;
  padding-top: var(--title-top);
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}


.hero-content {
  width: 100%;
  padding-left: var(--title-left);
  text-align: left;
  z-index: 1;
  /* 山田変更 */
}

.hero h1 {
  font-size: 60px;
  color: var(--mau-red);
  margin-bottom: 20px;
  letter-spacing: 3px;
}

.hero p {
  font-size: 24px;
  color: #666;
  letter-spacing: 2px;
}

/* Works Section */
.works {
  padding: 0 0 100px;
}


.scroll-container {
  overflow: hidden;
  margin: 30px 0;
  padding: 12px 0;
}

.scroll-content {
  display: flex;
  gap: clamp(10px, 5vw, 70px);
  --scroll-duration: 30s;
  --scroll-distance: 50%;
  animation: scrollLeft var(--scroll-duration) linear infinite;
}

.scroll-content.reverse {
  animation-name: scrollRight;
}



@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-1 * var(--scroll-distance)));
  }
}

@keyframes scrollRight {
  from {
    transform: translateX(calc(-1 * var(--scroll-distance)));
  }

  to {
    transform: translateX(0);
  }
}

.work-item {
  width: var(--work-card);
  height: var(--work-card);
  flex: 0 0 var(--work-card);
  /* 横スクロール用：幅固定扱い */
  /*background: linear-gradient(135deg, #f5f5f5, #e0e0e0);*/
  background-color: #111;
  /*border-radius: 20px;*/
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.work-item:hover {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  transform: translateY(-10px);
}

.work-item img {
  /*
  width: calc(var(--work-card) * var(--work-img-scale));
  height: calc(var(--work-card) * var(--work-img-scale));
  */
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* ←切り取られない */
  display: block;
  z-index: 1;
}

.work-item .no-image-placeholder {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  height: fit-content;
  text-align: center;
  font-size: 12px;
  color: #ccc;
  z-index: 2;
}

@media screen and (max-width: 1200px) {
  .work-item .no-image-placeholder {
    font-size: 11px;
    bottom: 25px;
  }
}

@media screen and (max-width: 800px) {
  .work-item .no-image-placeholder {
    font-size: 9px;
    bottom: 15px;
  }
}

@media screen and (max-width: 800px) {
  .work-item .no-image-placeholder {
    font-size: 8px;
    bottom: 12px;
  }
}

.button-container {
  text-align: center;
  margin-top: 50px;
}

.btn {
  border-radius: 20px;
  display: inline-block;
  color: var(--mau-red);
  background: radial-gradient(rgba(255, 255, 255, 0.7) 10%, rgba(255, 255, 255, 0.1) 70%, rgba(255, 255, 255, 0) 20%);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: 0.3s;
  letter-spacing: 1px;
}

.btn:hover {
  color: var(--mau-red);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(220, 20, 60, 0.3);
}

/* Map Section */
.map-section {
  padding: 70px 5%;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.7), 40%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
}


.map-image {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

/* Concept Section */
.concept {
  padding: 70px 5%;
  /*background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85), 60%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.1));*/
  background: linear-gradient(rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.85) 12%, rgba(255, 255, 255, 0.85) 88%, rgba(255, 255, 255, 0.1) 100%);


}


.concept-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 2;
  font-size: clamp(15px, 1.3vw, 24px);
  color: #1a1a1a;
}

/* Faculty Profiles */
.faculty-lead {
  text-align: center;

  margin: 18px auto 28px;
  max-width: 900px;
  line-height: 1.9;
  font-size: clamp(14px, 1.2vw, 18px);

  color: var(--mau-red);
  padding: 0 5%;
}

.faculty {
  padding: 70px 5%;
  background: linear-gradient(rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.85) 12%, rgba(255, 255, 255, 0.85) 88%, rgba(255, 255, 255, 0.1) 100%);

}


.faculty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.faculty-card {
  background: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 30px;
  border: solid 2px #00000000;
  box-sizing: border-box;
}

.faculty-card:hover {
  border: solid 2px var(--mau-red);
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.faculty-photo {
  width: 120px;
  height: 120px;
  border-radius: 0;
  background: none;
  margin: 0;
  display: block;
  font-size: 48px;
  color: white;
  flex-shrink: 0;
  object-fit: cover;
  position: relative;
}

.faculty-info {
  flex: 1;
}

.faculty-name {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.faculty-field {
  font-size: 14px;
  color: #666;
  padding-top: 10px;
  border-top: 2px solid #dc143c;
  display: inline-block;
}

.faculty-card a,
.faculty a {
  text-decoration: none;
  color: inherit;
}

/* Information Section */
.information {
  padding: 100px 5%;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 1), rgba(255, 255, 255, 0), );
}

.info-container {
  max-width: 900px;
  margin: 0 auto;
}

.info-title {
  font-size: 24px;
  font-weight: 600;
  color: #dc143c;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.info-block {
  display: flex;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  /* ← 山田追加（白カード） */
}

.info-block:last-child {
  border-bottom: none;
}

.info-label {
  width: 30%;
  font-size: 1.3rem;
  font-weight: 700;
  position: relative;
  padding-right: 20px;
}

/* Red vertical line accent */
.info-label::after {
  content: '';
  position: absolute;
  right: 0;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background: var(--mau-red);
}

.info-detail {
  font-size: 0.9rem;
  width: 70%;
  padding-left: 30px;
  line-height: 1.6;
}

/* info（開催時期/会場/アクセス）をスマホで縦積みにする */
@media (max-width: 768px) {
  .info-block {
    flex-direction: column;
    padding: 20px;
  }

  /* 左の見出し（会期/会場/アクセス）を上に */
  .info-label {
    width: 100%;
    padding-right: 0;
    padding-bottom: 14px;
    text-align: center;
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 700;
  }

  /* 縦の赤ラインは消す */
  .info-label::after {
    content: none;
  }

  /* 見出しの下に横線 */
  .info-label {
    border-bottom: 2px solid var(--mau-red)
  }

  /* 右の本文を下に */
  .info-detail {
    width: 100%;
    padding-left: 0;
    padding-top: 14px;
    line-height: 1.9;
  }
}

/* Google Map（赤い四角の中に収める） */
.map-embed {
  display: block;
  position: relative;
  width: 90%;
  max-width: 1000px;
  height: clamp(100px, 40vh, 520px);
  /* 高さは好みで */
  margin: 0 auto 100px;
  /* 下に余白 */

  padding: 2px;
  /* 赤い枠の太さ */
  background: var(--mau-red);
  /* 赤い四角 */
  /*border-radius: 20px;*/
  /* 角丸で切る */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  display: block;
}

/* Footer */
footer {
  background: #dc143c;
  color: white;
  padding: 60px 5%;
  text-align: center;
}

footer h3 {
  font-size: 32px;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

footer p {
  font-size: 16px;
  opacity: 0.9;
}

/* Responsive レスポンシブ*/
@media (max-aspect-ratio: 1/1) {

  :root {
    --title-top: clamp(0px, 2vh, 70px);
    --hero-to-works: clamp(0px, 2svh, 64px);
    /*画面高さに対する比率でセクション間の空間を決める */
  }

  .hero {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;

    padding-top: var(--title-top);
    overflow: hidden;
  }

  .menu {
    width: 70%;
    right: -70%;
  }

  .faculty-grid {
    grid-template-columns: repeat(2, 1fr);
  }


}

@media (max-width: 480px) {
  .faculty-grid {
    grid-template-columns: 1fr;
  }
}

/* Faculty Profiles：スマホで中身を小さく */
@media (max-width: 768px) {
  .faculty {
    padding: 50px 5%;
  }

  .faculty-grid {
    gap: 18px;
    /* カード同士の間隔 */
  }

  .faculty-card {
    padding: 14px;
    /* カード内の余白（これがデカいと全体デカく見える） */
    gap: 14px;
    /* 写真と文字の間 */
  }

  .faculty-photo {
    width: 80px;
    height: 80px;
  }

  .faculty-name {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .faculty-field {
    font-size: 12px;
    padding-top: 8px;
  }
}

/* さらに小さいスマホ */
@media (max-width: 480px) {
  .faculty-card {
    padding: 12px;
    gap: 12px;
  }

  .faculty-photo {
    width: 64px;
    height: 64px;
  }

  .faculty-name {
    font-size: 15px;
  }

  .faculty-field {
    font-size: 11px;
  }
}

/* worksタイトルだけ微調整 */
/* ===== WORKS：2列の間を固定 + タイトル背景（サムネより下） ===== */
.works {
  --works-mid-gap: clamp(3px, 2.2vw, 15px);
  /* 2列とタイトルの間隔 */
  --works-title-mb: 18px;
  /* タイトルの下余白 */
  position: relative;
}

/* 既存の margin:30px 0 を無効化 */
.works>.scroll-container {
  margin: 0;
  position: relative;
  z-index: 2;
  /* サムネを前面に */
}

/* タイトルの上下に同じ余白 */
.works>.scroll-container:first-of-type {
  margin-bottom: var(--works-mid-gap);
}

.works>.scroll-container:last-of-type {
  margin-top: var(--works-mid-gap);
}

/* タイトル */
.works>.section-title {
  margin: 0 auto var(--works-title-mb);
  position: relative;
  z-index: 1;
  /* サムネより下、背景より上 */
}

/* タイトルの下の白い半透明ぼかし四角（サムネより下） */
/* タイトルの下の白い半透明ぼかし四角（サムネより下） */
.works>.section-title::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  width: min(90vw, var(--title-img-w));
  height: clamp(56px, 10vh, 120px);

  /* ★ここを差し替え */
  background: radial-gradient(closest-side,
      rgba(255, 255, 255, .65) 0%,
      rgba(255, 255, 255, .55) 65%,
      rgba(255, 255, 255, 0) 100%);
  border-radius: 18px;
  /* box-shadow: 0 0 40px 18px rgba(255,255,255,.45); ←これ消す */

  z-index: 0;
  pointer-events: none;
}

/* タイトル画像は四角より前 */
.works>.section-title .title-img {
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .works {
    --works-mid-gap: 14px;
    --works-title-mb: 12px;
  }
}

/* ===== Concept：文章 + noteサムネ（横並び） ===== */
.concept .concept-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(240px, 420px);
  gap: clamp(16px, 4vw, 56px);
  align-items: start;
}

/* 既存 .concept-content の max-width/margin の影響を受けないように別クラスに */
.concept .concept-text {
  line-height: 2;
  font-size: clamp(15px, 1.3vw, 24px);
  color: #1a1a1a;
}

/* 右側カード */
.concept .note-carousel {
  position: relative;
  width: 100%;
}

/* 右側カード：赤い箱 */
.concept .note-card {
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.12);
  /* ←赤い箱 */
  border-radius: 10px;
  padding: 15px;
  /* ←箱の“フチ”の太さ */
  overflow: hidden;

  /* 箱の縦横比（サムネっぽく） */
  aspect-ratio: 16/9;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* サムネは「箱の中で80%」で収める（切り抜かない） */
.concept .note-thumb {
  width: 95%;
  height: 95%;
  object-fit: contain;
  /* ←切れない */
  display: block;
  background: rgba(255, 255, 255, 0.12);
  /* 任意：余白が出た時の地色 */
}

/* 矢印ボタン（カードの上に重ねる） */
/* 矢印ボタン（丸背景なし・赤矢印だけ） */
.concept .note-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;

  background: transparent;
  /* ←丸背景消す */
  border: 0;
  border-radius: 0;
  /* ←丸解除 */
  padding: 0;
  cursor: pointer;

  color: transparent;
  /* ←‹ ›の文字は非表示 */
}

/* 矢印 */
/* 矢印ボタン（丸背景なし・二本線の矢印） */
/* 矢印ボタン（丸背景なし・1本線が折れ曲がった矢印） */
.concept .note-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;

  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;

  color: transparent;
  /* ‹ ›文字は消す */
}

/* 1本線の「折れ」を border で作る（隙間なし） */
.concept .note-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  /* 矢印の大きさ */
  height: 14px;
  border-right: 3px solid var(--mau-red);
  /* 線の太さ */
  border-bottom: 3px solid var(--mau-red);
  transform-origin: center;
}

/* 左（＜） */
.concept .note-btn.prev {
  left: -7px;
}

.concept .note-btn.prev::before {
  transform: translate(-50%, -50%) rotate(135deg);
}

/* 右（＞） */
.concept .note-btn.next {
  right: -7px;
}

.concept .note-btn.next::before {
  transform: translate(-50%, -50%) rotate(-45deg);
}


/* スマホは縦積み */
@media (max-width: 768px) {
  .concept .concept-grid {
    grid-template-columns: 1fr;
  }

  .concept .note-carousel {
    width: min(520px, 92vw);
    margin: 0 auto;
  }
}

/* ===== 福留追加ここから ===== */

#mapImageContainer {
  cursor: pointer;
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  background: #f0f0f0;
  height: fit-content;
  /*border-radius: 20px;*/
  border: solid 2px #e50011;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 24px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#mapImageContainer:hover {
  box-shadow: 0 10px 20px rgba(220, 20, 60, 0.3);
  transform: translateY(-6px);
}

/* ===== 福留追加ここまで ===== */