body {
    margin: 0;
    font-family: 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    background:#fdfdfd;
    color: #333;
  }

  .carousel-item {
    position: relative;
    height: 90vh;
    overflow: hidden;
  }
  
  .carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(75%);
  }
  
  .carousel-caption { 
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
    padding: 2rem;
  }

  .carousel-caption h1 {
    font-size: 3rem;
    background-color: whitesmoke;
    padding: 0.5em 1em;
    border-radius: 10px;
  }
  
  .carousel-caption p {
    font-size: 1.25rem;
    background-color: whitesmoke;
    padding: 0.3em 0.8em;
    border-radius: 8px;
    margin-top: 0.5em;
  }

  #news-card-4 .carousel-item {
  height: 200px !important;  /* 他のカードと同程度に */
}

  #news-card-4 .carousel-img {
  height: 100% !important;
  object-fit: cover;
}


  /* すべてのカードを同じ高さ構造に */
  .card {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .card-body {
    flex: 1 0 auto;
  }

  .card-footer {
    margin-top: auto;
  }
  

/* 小さい画面用のレスポンシブ調整 */
@media (max-width: 768px) {
  .carousel-caption h1 {
    font-size: 1.5rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }
}

h1, h2 {
  font-family: 'Playfair Display', 'Noto Serif JP', serif;
}

p, li, .button {
  font-family: 'Noto Sans JP', sans-serif;
}


  
  .subtitle {
    font-size: 1.2rem;
    margin: 0.5em 0;
  }
  
  .button {
    display: inline-block;
    padding: 10px 20px;
    background: #1e90ff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
  }
  
  .section {
    padding: 3em 1em;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  
  .gallery img {
    width: 300px;
    height: auto;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
  }
  .gallery img:hover {
    transform: scale(1.05);
  }
  
  .map {
    width: 100%;
    height: 300px;
    border: 0;
    margin-top: 10px;
  }
  
  footer {
    text-align: center;
    padding: 1em;
    background: #f0f0f0;
    font-size: 0.9rem;
  }
  
  /* モーダル */
  .modal {
    display: none;
    position: fixed;
    z-index: 10;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
  }
  
  .modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
  }
  
  .close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
  }
  
  /* セクションタイトル共通スタイル */
section h2 {
  text-align: center;
  font-family: 'Playfair Display', 'Noto Serif JP', serif;
  font-weight: 600;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.5rem;
  display: inline-block;
}


section p,
section ul,
section div,
section .row {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
}

section {
  text-align: center;
  padding: 5em 1em;
  background-color: #fafafa;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
}


.button {
  display: inline-block;
  padding: 12px 24px;
  background: #1e90ff;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.button:hover {
  background: #005bbb;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.modal {
  display: none;
  position: fixed;
  z-index: 10;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  display: block;
  margin: auto;
  max-height: 80vh;   /* 縦方向に合わせる */
  height: auto;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0,0,0,0.5);
}

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

.bg-layer {
  position: fixed;
  top: 100px; /* carouselなどと重ならないように調整 */
  left: 0;
  width: 100%;
  height: calc(100% - 100px); /* 重ならないように調整 */
  background-image: url('images/104.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.08; /* 目立たない程度 */
  z-index: -1; /* 最背面に */
  pointer-events: none; /* 背景がクリックを妨げないように */
}

.prof-img {
  width: 30%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.title-whitebox {
  background-color: rgba(255, 255, 255, 0.95); /* ほぼ真っ白 */
  color: #000000; /* 黒文字 */
  text-shadow: none; /* 影を消す（必要に応じて） */
}

.profile-box {
  background-color: rgba(255, 255, 255, 0.95); /* 白背景 */
  padding: 2em;
  margin: 0 auto;
  border-radius: 12px;
  max-width: 500px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* ソフトな影で浮かせる */
  text-align: center;
}

/* ギャラリー内カルーセル（作品「和」）に適用 */
.custom-gallery-carousel {
  background-color: transparent !important;
  border: none;
  box-shadow: none;
}

.custom-gallery-carousel .carousel-inner,
.custom-gallery-carousel .carousel-item {
  height: auto !important;
  background-color: transparent !important;
}

.custom-gallery-carousel .carousel-item img {
  height: auto !important;
  object-fit: contain;
  background-color: transparent !important;
}

/* キャプションも透明に */
.custom-gallery-carousel .carousel-caption {
  background-color: transparent !important;
}


