/* Bootstrapの比率ユーティリティに似せた縦向きのクラスを作成 */
.ratio-container {
  position: relative;
  width: 100%; /* 親要素の幅を100%に設定 */
  max-width: 100%; /* はみ出さないように最大幅を設定 */
  overflow: hidden; /* 要素がはみ出た場合は隠す */
}
.ratio-3x4 {
  position: relative;
  width: 100%;
  padding-top: 133.33%; /* 3:4 の比率を維持 */
  overflow: hidden; /* はみ出した部分を隠す */
}
.ratio-3x4 > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* アスペクト比を保ちながら画像を表示 */
}
.aspect-img {
  object-fit: cover; /* 画像のアスペクト比を保ちながらフィット */
  width: 100%;
  height: 100%;
}
.navbar-nav a {
  color: #e2e2e2;
}
.navbar-nav a:hover {
  color: #fff;
}
.caption {
  font-size: 0.8rem; /* デフォルトサイズ（例えばPC用） */
  line-height: 1.5 !important;
}
.caption span {
  font-size: 0.8rem; /* デフォルトサイズ（例えばPC用） */
  line-height: 1.3rem !important;
}
.credit {
  font-size: 0.8rem !important; /* デフォルトサイズ（例えばPC用） */
}
/* スマホ用のサイズ */
@media (max-width: 767.98px) {
  .caption {
    font-size: 0.8rem; /* スマホ用フォントサイズ */
  }
  .caption span {
    font-size: 0.9rem; /* スマホ用フォントサイズ */
    line-height: 1.3rem !important;
  }
  .credit {
    font-size: 0.8rem !important; /* デフォルトサイズ（例えばPC用） */
  }
}
/* デフォルトのロゴスタイル */
.logo-multiply {
  transition: fill 0.3s ease; /* 色変更のアニメーション */
}
/* スクロール後に適用されるスタイル */
.scrolled .logo-multiply {
  fill: #ff0000; /* スクロール後の色（赤色） */
}
.text-shadow {
  text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5); /* x-offset, y-offset, blur-radius, color */
}
/* scroll-image */
.scroll-image {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
  transition: opacity 0.8s ease-out, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.scroll-image.show {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 768px) {
  .scroll-image {
    transform: translateY(10px);
    transition: opacity 0.6s ease-out, transform 0.4s ease-out;
  }
}

/* scroll-zoom-in */
.scroll-zoom-in {
  opacity: 0;
  transform: scale(1.1);
  will-change: opacity, transform;
  transition: opacity 1.2s ease-out, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-zoom-in.show {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 768px) {
  .scroll-zoom-in {
    transform: scale(1.05); /* スマホでは少し抑える */
    transition: opacity 1.2s ease-out, transform 1.2s;
  }
  .scroll-zoom-in.show {
    transform: scale(1);
  }
}

/* 新クラス：その場フェードインのみ */
.fade-in {
  opacity: 0;
  transform: none; /* 移動なし */
  will-change: opacity;
  transition: opacity 0.8s ease-out;
}
.fade-in.show {
  opacity: 1;
}
@media (max-width: 768px) {
  .fade-in {
    transition: opacity 0.6s ease-out;
  }
}


#works{
	min-height: calc(var(--vh) * 110);
}

@media (max-width: 767px) {
#works{
	min-height: calc(var(--vh) * 180);
}
}

.default-txt {
    font-size: calc(.8rem + .8vw); /* 幅が狭い場合、調整 */
  line-height: 1.5 !important;
}


.default-txt {
  font-size: 0.9rem;
  line-height: 1.75 !important;
  font-weight: 300;	
}
@media (max-width: 768px) {
  .default-txt {
    font-size: calc(0.8rem + .5vw); /* 幅が狭い場合、調整 */
  }
}

@media (max-width: 576px) {
  .default-txt {
    font-size: calc(0.8rem + .6vw); /* 幅がさらに狭い場合、調整 */
  }
}

input::placeholder,
textarea::placeholder {
    font-size: .8rem;
	color: rgb(198, 198, 198) !important;
}

/* フォーム、調整 */

.help-text {
    font-size: 0.875rem;
    color: #777777; /* 通常はグレー */
    margin-top: 0.25rem;
}
/* エラー時のみ赤く */
input.is-invalid + .help-text,
textarea.is-invalid + .help-text {
    color: #dc3545 !important;
}