@charset "utf-8";
/* CSS Document */

.ImgLeftAdjust {
  margin: 0 auto;
  text-align: center;
  max-width: 412px;
  width: 100%;
  height: 100%;
}

.mainimg {
  position: relative;
  width: 100%;
  height: 55vh;   /* 画面いっぱい */
  overflow: hidden;
}

.mainimg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* トリミングして全画面表示 */
  z-index: 0;
}
.mainimg-media::after { content: ""; position: absolute; inset: auto 0 0 0; block-size: 60%; }
.mainimg-media img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.mainimg-heading {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%); /* 1280px幅を中央に固定 */
  max-width: 1280px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;   /* コンテナの右端に寄せる */
  text-align: right;       /* テキストも右揃え */
  padding: 0 20px;         /* 余白を確保 */
  box-sizing: border-box;
  z-index: 2;
}

.mainimg .title {
  font-size: clamp(36px, 4.7vw, 60px);
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  position: relative;
  display: inline-block;
  text-align: center;
  /* シャドウを強化（濃く & 広め） */
  text-shadow:
    0 4px 12px rgba(0, 0, 0, 0.8),   /* 下方向に濃い影 */
    0 0 8px rgba(0, 0, 0, 0.7);      /* 文字全体を縁取り */
}

.mainimg-heading .subtitle {
  margin-top: 8px;
  font-size: clamp(14px, 1.6vw, 20px);
  color: #fff;
  font-weight: 500;
  line-height: 1.4;

  /* サブタイトルも少し濃いめに */
  text-shadow:
    0 3px 8px rgba(0, 0, 0, 0.7),
    0 0 6px rgba(0, 0, 0, 0.6);

  position: relative;
  left: 50%;
  transform: translateX(-50%);
}