  body, html {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
      background-color: #f9f5f0;
  }

/* ===== nav ===== */

.navbar-nav .nav-item {
  margin: 5px 10px;
  border-radius: 12px;          
  border: 1px solid #a7d8db;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
  transition: transform 0.2s, background-color 0.2s;
}

.navbar-nav .nav-item:hover {
  transform: scale(1.05);        
  background-color: #489ea3;    /* タイトルカラーと同じに */
}

.navbar-nav .nav-link {
  color: #357a8c;               /* ホバー色に映える白文字 */
  font-weight: bold;
  padding: 8px 12px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: color 0.2s;
}

.navbar-nav .nav-item:hover .nav-link {
  color: #ffffff;               /* ホバー時も文字白で安定 */
}

.navbar-nav a.active {
  color: #fff !important;
	background-color: #489ea3;
	border-radius: 12px;      
}

/* スマホ対応 */
@media (max-width: 768px) {
  .navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .navbar-nav .nav-item {
    width: 90%;        
    margin: 5px 0;
  }
}
/* ===== hero ===== */
  .hero {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
      background-color: #fff;
padding-top:40px;
  }

  .image-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
  }

  .cute-image {
    position: absolute;
    border: 6px solid white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    will-change: transform, opacity;
    object-fit: contain;
    display: block;
  }

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 中央固定 */
    text-align: center;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px 50px;
    border-radius: 15px;
}
@media (max-width: 768px) {
	.hero {
		height: 400px;
	}
  .hero-text {
    width: 95%;
    padding: 20px 15px;
    border-radius: 10px;  /* 少し小さくすると自然 */
  }
}

/* h1 タイトル */
.hero-text h1 {
font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
    font-size: clamp(3rem, 5vw, 4rem);
    font-weight: 900;
    color: #489ea3;
    text-shadow: 
2px 2px 10px rgba(0,0,0,0.3),
        0 0 20px rgba(72, 158, 163, 0.5), /* 文字色に合わせた光 */
        0 0 40px rgba(72, 158, 163, 0.3);
    margin: 0;

    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInUp 1.5s ease-out forwards;
}

/* p サブタイトル */
.hero-text p {
    font-family: "Comfortaa", sans-serif;
    font-optical-sizing: auto;
    font-size: clamp(0.8rem, 5vw, 1.8rem);
    font-weight: 500;
    color: #489ea3;
    text-shadow: 
        1px 1px 5px rgba(0,0,0,0.2),
        0 0 10px rgba(72, 158, 163, 0.3);
    margin-top: 15px;

    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInUp 1.5s ease-out forwards;
    animation-delay: 0.5s; /* h1 の後に出る */
}

/* アニメーション */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
	font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
      text-align: center;
      margin: 60px 0 30px;
      font-weight: bold;
      color: #357a8c;
    }
    .news-box {
      background: #fff;
      padding: 20px;
      border-radius: 15px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }
    footer {
      background-color: #357a8c;
      color: white;
      padding: 20px 0;
      text-align: center;
    }


/* ===== greetingセクション全体 ===== */
.greeting-section {
  background: url('img/gree-bg.png') no-repeat bottom right;
  background-size: cover;           /* セクション全体にフィット */
  padding: 60px 25px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  text-align: center;
  color: #333;
  position: relative;
  overflow: hidden;
}

/* ===== 本文 ===== */
.greeting-section .news-box {
  max-width: 700px;
  margin: 0 0 0 40px;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.6); /* 半透明で背景画像を活かす */
  border-radius: 12px;
  text-align:center;
}

.greeting-section .news-box .text-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 15px;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .greeting-section .news-box {
    padding: 20px 15px;
  margin: 0px;
  }
}

/* ===== コンテンツ共通 ===== */
.content-wp{
	margin-top:120px;
}
.content-box{
	background-color:#fff;
	padding:40px;
	margin:60px 0;
}
@media (max-width: 768px) {
.content-box{
padding:30px 20px;
  }
}
.conh2 {
  color: #333;
  background-image: url(img/h2.png );
  background-repeat: no-repeat;
  background-position: bottom left;
  padding-bottom: 20px;
  font-size: 1.6em;
	font-weight: 600;
	margin:0 0 40px;
}
.content-box h3 {
  color: #333;
  font-size: 1.4em;
	font-weight: 600;
	margin:0 0 1em;
}
.cont-title {
  text-align: center;
  margin: 60px 0 30px;
}

.cont-title h1 {
  font-family: "Playfair Display", serif;
  font-weight: bold;
  color: #357a8c;
  margin: 0;
}

.cont-subtitle {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.2em;
  margin-top: 8px;
	letter-spacing: 0.1em;
	  color: #357a8c;
}

/* ===== lesson ===== */
.lesson-table th {
  padding: 4px 1em;
  vertical-align: top;
  white-space: nowrap;
}
.lesson-table td {
  padding: 4px 1em;
  vertical-align: top;
}
.carousel{
	width:400px;
	margin:40px auto;
}

.custom-text {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  color: white;
  text-shadow: 0 3px 10px rgba(0,0,0,0.7);
  opacity: 0;
  transform: translateY(-20px);
	transition: all 0.8s ease;
	font-size:1.4em;
	font-weight:700;
}

/* アクティブスライドでふわっと表示 */
.carousel-item.active .custom-text {
  opacity: 1;
  transform: translateY(0);
}

/* 背景の半透明ボックス */
.custom-text-box {
  background: rgba(0,0,0,0.5);
  padding: 10px 15px;
  border-radius: 5px;
}

/* レスポンシブ対応 */
	@media (max-width: 768px) {
.carousel{
	width:240px;

}
  .custom-text {
    top: 10px;
    left: 10px;
  }
  .custom-text-box {
    padding: 5px 10px;
  }
  .custom-text h5 {
    font-size: 1rem;
  }
  .custom-text p {
    font-size: 0.85rem;
  }
}

/* ===== lecturer-profiles ===== */
.ryakureki {
  margin: 0 0 20px;
}
.ryakureki th {
  width: 5em;
  vertical-align: top;
  padding: 0.5em;
}
.ryakureki td {
  padding: 0.5em;
}

/* ===== gallery ===== */

.grid {
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Masonry 基準列幅の修正 --- */
.grid-sizer,
.grid-item { 
  width: 32%; /* 33.33%より少し小さくして余白分を確保 */
  margin-bottom: 20px;
}

@media (max-width: 992px) {
  .grid-sizer,
  .grid-item { width: 48%; } /* タブレット2列 */
}


/* ふんわりアニメーション */
.grid-item {
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  filter: blur(8px);
  transition: opacity 1.2s ease, transform 1.2s ease, filter 1.2s ease;
}

.grid-item.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* 画像の修正 */
.grid-item img {
  width: 100%;        /* 親要素の幅(32%)に合わせる */
  height: auto;       
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item img:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

/* =========================================== */
/* Instagram埋め込みとギャラリー画像の共存CSS */
/* =========================================== */

/* Instagram埋め込みコンテナ調整 */
.instagram-media {
    position: relative !important; /* レイヤー基準を作る */
    z-index: 10 !important;        /* 画像より前面に配置 */
    margin: 2rem 0;                 /* 上下余白を確保 */
	max-width: 100% !important;     /* 横幅100%でレスポンシブ対応 */
	min-width: 100% !important;     /* 横幅100%でレスポンシブ対応 */
    clear: both;                    /* 浮動要素回避 */
}

/* 埋め込み内iframe調整 */
.instagram-media iframe {
    width: 100% !important;         /* コンテナ幅に合わせる */
    height: auto !important;        /* 高さ自動調整 */
    display: block;
    position: relative !important;
}

/* ギャラリー画像のレイヤー調整 */
.gallery img {
    position: relative;
    z-index: 5;                     /* Instagramより下に表示 */
    display: block;
    margin-bottom: 2rem;            /* Instagram埋め込みとの余白確保 */
}

/* モバイル対応：狭い画面でも余白とサイズを調整 */
@media screen and (max-width: 768px) {
    .instagram-media, .gallery img {
        margin-left: auto;
        margin-right: auto;
        max-width: 95%;             /* 少し余白を残す */
    }
}

/* ===== 安曇野スタイル ===== */

.azumino img{
width:100%;
border:1px solid #c8c8c8;
}
.azu-img{
	text-align:center;
}
.azu-img img{
	width:80%;
	margin-bottom:1em;
}
.azumino a img {
  transition: all 0.3s cubic-bezier(.34,1.56,.64,1);
}

.azumino a:hover img {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}