/*
 * 垂れ幕ページ：ヒーロー画像差し替え専用
 * 共通デザインは css/style.css、css/category.css、css/taremaku.css を優先します。
 * 画像配置と文字の視認性に必要な指定のみ追加しています。
 */
.taremaku-page .taremaku-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: stretch;
  height: auto;
  min-height: clamp(390px, 30vw, 540px);
  overflow: hidden;
  background: #082b60;
}

/* 元画像の上下を切らず、右側の垂れ幕全体が見えるように配置 */
.taremaku-page .taremaku-hero > .taremaku-hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
}
.taremaku-page .taremaku-hero-visual > img {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 24%);
  mask-image: linear-gradient(to right, transparent 0%, #000 24%);
}

/* 左の文言を読みやすくする薄いグラデーション */
.taremaku-page .taremaku-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(4, 27, 67, .30), rgba(4, 27, 67, .08) 54%, transparent 72%);
  pointer-events: none;
}
.taremaku-page .taremaku-hero > .ct-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  width: min(1200px, calc(100% - 48px));
  max-width: 1200px;
  min-height: clamp(390px, 30vw, 540px);
  margin-inline: auto;
  padding: 44px 0;
}
.taremaku-page .taremaku-hero .taremaku-hero-copy {
  position: relative;
  z-index: 2;
  flex: 0 1 580px;
  box-sizing: border-box;
  width: min(580px, 100%);
  max-width: 580px;
  color: #fff;
}
.taremaku-page .taremaku-hero .ct-breadcrumb,
.taremaku-page .taremaku-hero .ct-breadcrumb a,
.taremaku-page .taremaku-hero h1,
.taremaku-page .taremaku-hero .ct-hero-sub {
  color: #fff;
}
.taremaku-page .taremaku-hero .ct-breadcrumb span {
  color: rgba(255, 255, 255, .85);
}

@media (max-width: 767px) {
  /* スマホでは文字と垂れ幕を上下に分け、文字の重なりを防ぐ */
  .taremaku-page .taremaku-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .taremaku-page .taremaku-hero::before {
    display: none;
  }
  .taremaku-page .taremaku-hero > .ct-hero-inner {
    order: 0;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 32px 22px 30px;
  }
  .taremaku-page .taremaku-hero .taremaku-hero-copy {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
  }
  .taremaku-page .taremaku-hero > .taremaku-hero-visual {
    position: relative;
    inset: auto;
    order: 1;
    flex: 0 0 auto;
    height: clamp(225px, 62vw, 330px);
    background: #082b60;
  }
  .taremaku-page .taremaku-hero-visual > img {
    width: auto;
    height: 100%;
  }
}
