/* =============================================================================
   header-category
============================================================================= */

.header-category {
  position: relative;
  width: 100%;
  z-index: 1;
}


.header-category-title {
  color: #FFF;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  font-family: "Noto Sans JP";
  font-size: 64px;
  font-style: normal;
  font-weight: 600;
  line-height: 72px;
  letter-spacing: 2.56px;
  white-space: nowrap;
}

.header-category-subtitle {
  color: #FFF;
  font-family: Anuphan;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 1.6px;
  align-self: stretch;
  text-align: left;
  /* ← 左寄せに変更 */
  align-self: flex-start;
  /* ← フレックスの場合に左寄せ寄せる */
}

.header-category-tb {
  display: none;
}

/* =============================================================================
   画像コンテナ
============================================================================= */

/* デフォルト以外 */
.header-category_images {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden !important;
  /* 子要素のはみ出しを制御 */
}

/* デフォルトの場合 */
.header-category_images.header-category_images--default {
  height: 630px;
}

/* SPとPCで分ける */
.header-category_images--pc {
  display: block;
}

.header-category_images--sp {
  display: none;
}

/* デフォルトのときだけ適用 */
.header-category.header-category--default .header-category_images img.relative {
  position: absolute;
  top: 50%;
  /* 縦中央 */
  left: 50%;
  /* 横中央 */
  transform: translate(-55%, -50%);
  /* 中央に配置 */
  display: block;
  z-index: 1;
  width: auto;
  height: 100%;
}

/* 通常ページの absolute画像 */
.header-category:not(.header-category--default) img.absolute {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 15;
}

/* relative / absolute画像重ね */
.header-category_images img.relative,
.header-category_images picture {
  display: block;
  width: auto;
  height: 100%;
}

.header-category_images img.relative {
  top: 50%;
  left: -7%;
  display: block;
  z-index: 1;
}

/* 1600px以上での表示調整 */
@media (min-width: 1600px) {
  .header-category_images:not(.header-category_images--default) {
    height: 420px !important;
    /* 1440px以上は420pxに設定 */
  }

  .header-category_images picture,
  .header-category_images img.relative {
    position: absolute;
    top: 0;
    left: 0;
    transform: none;
    /* 中央配置を解除 */
    width: auto;
    height: 100% !important;
    /* 確実な420pxを適用 */
    /* 幅を1440pxに固定することで、右側に確実に空白を作る */
    max-width: 1440px;
    width: 1440px;
    /* 幅を固定して空白を確保 */
    object-fit: cover;
    /* 420pxの高さを死守し、はみ出た分をカット */
    object-position: right center;
    /* 左側をカットし、右端を基準に表示 */
  }
}

/* デフォルトページの 下部装飾 (以前はabsolute) */
.header-category_bottom-deco {
  display: flex;
  padding: 24px 64px 24px 32px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border-radius: 40px 0 0 0;
  background: #FFF;
  position: absolute;
  /* PC時はスライダーに重ねる */
  bottom: 0px;
  right: 0;
  transform: translateY(50%);
  z-index: 1000;
  /* 全ての要素より前面に */
  width: fit-content;
}

.header-category_bottom-deco img {
  display: block;
  max-width: 100%;
  height: auto;
}

.header-category_bottom-deco--pc {
  display: flex;
}

.header-category_bottom-deco--sp {
  display: none;
}

/* =============================================================================
   デフォルトページ（motto）
============================================================================= */

.header-category_text--default {
  position: absolute;
  top: 80%;
  left: 0%;
  transform: translateY(-50%);
  text-align: left;
  color: #fff;
  z-index: 20;
  /* 画像や装飾よりも上に表示 */
  margin-left: 69px;
  pointer-events: none;
}

.is-en .header-category_text--default {
  top: 80%;
}

.is-en .header-category_text--default .motto-1,
.is-en .header-category_text--default .motto-2 {
  font-size: 48px;
  line-height: 56px;
}

.header-category_text--default .motto {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 -4px 12px 0 rgba(51, 51, 51, 0.10);
}

.header-category_text--default .motto-1 {
  display: flex;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: var(--dark-blue);
  color: #FFF;
  font-size: 64px;
  font-weight: 700;
  line-height: 72px;
  letter-spacing: 2.56px;
  margin: 0;
}

.header-category_text--default .motto-2 {
  display: flex;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: var(--sky-blue);
  color: #FFF;
  font-size: 64px;
  font-weight: 700;
  line-height: 72px;
  letter-spacing: 2.56px;
  margin: 0;
}

/* =============================================================================
   Slider Styles
============================================================================= */

.header-category_slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible !important;
}

.header-category_track {
  display: flex;
  height: 100%;
  transition: transform 1.2s cubic-bezier(0.45, 0, 0.55, 1);
  will-change: transform;
}

.header-category_slide {
  flex: 0 0 50%;
  /* センターを1とすると、サイドが0.5ずつ見えるように50%に設定 */
  height: 100%;
  position: relative;
  overflow: visible !important;
  transition: transform 1.2s ease;
  opacity: 1;
  /* サイドも薄くしない */
  padding: 0 16px;
  /* 写真の間に隙間を作る */
  border-radius: 40px;
  /* スライドコンテナ自体も丸くする */
}

.header-category_slide.is-center {
  z-index: 2;
}

.header-category_slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 40px;
  /* 画像の角を丸くする */
  animation: slideZoom 15s linear infinite alternate;
}

/* =============================================================================
   テキスト（通常ページ）
============================================================================= */

.header-category_text {
  position: absolute;
  bottom: 2%;
  left: 40%;
  transform: translateX(-50%);
  z-index: 10;

  width: min(1350px, calc(100% - 40px));
  text-align: center;
  box-sizing: border-box;
}

.header-category_text>* {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.header-category_text .subtitle {
  font-size: 16px;
  margin-bottom: 8px;
}

.header-category_text .title {
  font-size: 32px;
  font-weight: bold;
}

/* =============================================================================
   @media
============================================================================= */

@media (max-width: 1400px) {

  /* 画像コンテナ */
  .header-category_images img.relative {
    position: absolute;
    top: 50%;
    left: -7%;
    transform: translate(0%, -50%);
    display: block;
    z-index: 1;
    height: 100%;
  }
}

@media (max-width: 1280px) {

  /* header-category */
  .header-category-title {
    text-align: left;
    line-height: 80px;
  }

  .header-category-tb {
    display: flex;
  }

  /* 画像コンテナ */
  .header-category_images img.relative {
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-55%, -50%);
    display: block;
    z-index: 1;
    height: 100%;
  }

  /* タイトル調整 */
  .title-position {
    position: relative;
    top: 7px;
  }

  .subtitle-position {
    position: relative;
    top: 13px;
  }

  .title-line-breaking {
    position: relative;
    top: 17px;
    line-height: 100px !important;
  }

  .subtitle-line-breaking {
    position: relative;
    top: 17px;
  }

  .header-category_text {
    left: 44%;
  }
}

@media (max-width: 1220px) {

  /* 画像コンテナ */
  .header-category_bottom-deco {
    position: relative;
    /* 1220px以下はスライダーの下に配置 */
    margin: 0 auto;
    /* 中央寄せ */
    margin-top: 0;
    padding: 20px 40px;
    border-radius: 40px 40px 0 0;
    /* 中央寄せに合わせて角丸を左右対称に */
  }

  .header-category_images {
    height: 210px;
  }

  .header-category_images img.relative {
    left: 33%;
  }

  /* header-category */
  .header-category-title {
    color: #FFF;
    font-size: 40px;
    font-style: normal;
    font-weight: 600;
    line-height: 48px;
    letter-spacing: 1.6px;
    text-align: left;
  }

  .header-category-subtitle {
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0.56px;
  }

  /* テキスト（通常ページ） */
  .header-category_text {
    left: 28%;
  }

  /* デフォルトページ（motto） */
  .header-category_text--default {
    margin-left: 10px;
    top: 40%;
  }

  .is-en .header-category_text--default {
    top: 70%;
  }

  .header-category_text--default .motto {
    gap: 8px;
  }

  .header-category_text--default .motto-1 {
    display: flex;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #FFF;
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    letter-spacing: 1.28px;
  }

  .header-category_text--default .motto-2 {
    display: flex;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #FFF;
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    letter-spacing: 1.28px;
  }

  /* タイトル調整 */
  .title-position {
    position: relative;
    top: 7px;
  }

  .title-line-breaking {
    position: relative;
    top: 7px;
    line-height: 48px !important;
  }

  .subtitle-line-breaking {
    position: relative;
    top: 7px;
  }
}

/* =============================================================================
   @media：TB
============================================================================= */

@media (max-width: 767px) {

  /* 画像コンテナ */
  .header-category_images.header-category_images--default {
    height: 270px;
  }

  /* デフォルトページだけ */
  .header-category.header-category--default .header-category_images img.relative {
    left: 50%;
    /* 真ん中 */
    transform: translate(-50%, -50%);
    /* 完全中央 */
  }

  /* テキスト（通常ページ） */
  .header-category_text {
    left: 36%;
  }

  .header-category_text--default {
    top: 55%;
  }

  .is-en .header-category_text--default {
    top: 90%;
  }

  .is-en .header-category_text--default .motto-1,
  .is-en .header-category_text--default .motto-2 {
    font-size: 24px;
    line-height: 32px;
  }
}

@media (max-width: 600px) {
  .header-category_text {
    left: 42%;
  }
}

/* =============================================================================
   @media：SP
============================================================================= */

@media (max-width: 560px) {

  /* 画像コンテナ */
  .header-category_images img.relative {
    left: 36%;
  }
}

@media (max-width: 512px) {

  /* 画像コンテナ */
  .header-category_images img.relative {
    left: 23%;
  }

  /* header-category */
  .header-category-title {
    white-space: normal;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: 48px;
    letter-spacing: 1.44px;
    text-align: left;
  }

  .header-category-title.is-long-title {
    font-size: 28px;
    line-height: 48px;
    letter-spacing: 0.5px;
  }

  .header-category-subtitle {
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 18px;
    /* 128.571% */
    letter-spacing: 0.56px;
  }

  .header-category-subtitle.is-long-subtitle {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.64px;
  }

  /* テキスト（通常ページ） */
  .header-category_text {
    left: 45%;
  }
}


@media (max-width: 425px) {

  /* 画像コンテナ */
  .header-category_images {
    height: 280px;
  }

  .header-category_images img.relative {
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-55%, -50%);
    display: block;
    z-index: 1;
    width: auto;
    height: 100%;
  }

  .header-category_images--pc {
    display: none;
  }

  .header-category_images--sp {
    display: block;
  }

  /* SP用スライダーサイズ調整 */
  .header-category_images--sp .header-category_slide {
    flex: 0 0 300px;
    height: 270px;
  }

  .header-category_bottom-deco {
    padding: 16px 32px;
  }

  .header-category_bottom-deco--pc {
    display: none;
  }

  .header-category_bottom-deco--sp {
    display: flex;
  }

  /* カテゴリ別調整 */
  .is-information {
    left: 2%;
  }

  .header-category_text {
    left: 42%;
  }
}