/* 各页面特定样式 */

/* 首页页中 */
.page-main {
  width: 100%;
  height: 2390px;
  /* 1912px + 478px（新增介绍文字区域高度：120px上边距 + 238px文字内容 + 120px下边距） */
  background-color: #ffffff;
  overflow: hidden;
  /* 禁止内部滚动 */
}

/* 介绍文字区域 */
.index-intro-section {
  width: 100%;
  margin-top: 120px;
  /* PC端：第一行字距离页首大图下底边120px */
  text-align: center;
}

.index-intro-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  color: #0070D2;
  margin: 0;
  text-align: center;
}

/* PC端介绍文字样式 */
.index-intro-pc {
  display: block;
  font-size: 24px;
  line-height: 34px;
}

/* 移动端介绍文字样式 - PC端隐藏 */
.index-intro-mobile {
  display: none;
}

/* 标题区域 */
.main-title-section {
  width: 100%;
  margin-top: 120px;
  /* PC端：最后一行字距离"多彩なニーズに応える"的上底边120px */
  text-align: center;
}

/* 页中标题 */
.main-section-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 54px;
  color: #0070D2;
  margin: 0;
  display: inline-block;
  text-align: center;
}

/* PC端显示PC文字，隐藏移动端文字 */
.title-mobile {
  display: none;
}

.title-pc {
  display: inline;
}

/* 页中的内容区域（废弃 by zhh） */
/* 页中的内容区域（废弃 by zhh） */
/* 页中的内容区域（废弃 by zhh） */
/* 页中的内容区域（废弃 by zhh） */
/* 页中的内容区域（废弃 by zhh） */
/* 页中的内容区域（废弃 by zhh） */
/* 页中的内容区域（废弃 by zhh） */

.main-content-area {
  max-width: 1240px;
  width: 90%;
  margin: 120px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(450px, auto);
  gap: 20px;
}

/* 卡片父级，替代.main-content-area */
.content-box-new {
  max-width: 1240px;
  width: 90%;
  margin: 150px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(450px, auto);
  grid-auto-columns: minmax(auto, 400px);
  gap: 20px;
}

/* 内容盒子基础样式 */
.content-card-new {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  min-height: 450px;
  overflow: hidden;
  position: relative;
}

.content-card-new picture {
  display: block;
  width: 400px;
}

.content-card-new img {
  display: block;
}

/* 盒子内图片 */
.box-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* 安卓兼容性 */
  -webkit-object-fit: cover;
  -webkit-object-position: center;
  font-family: 'object-fit: cover;';
}

/* 叠加Logo */
.overlay-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo-t180-t88 {
  top: 180px;
}

.logo-t200-t92 {
  top: 200px;
}

.logo-t155-t77 {
  top: 155px;
}

.logo-t155-t83 {
  top: 155px;
}

.logo-t157-t88 {
  top: 157px;
}

.logo-t200-t93 {
  top: 200px;
}

/* h区域Logo - 距离顶部文字下边框100px，水平居中 */
.logo-h {
  top: 157px;
  /* 文字top(23px) + line-height(34px) + 100px = 157px */
}

/* i区域Logo - 距顶部200px */
.logo-i {
  top: 200px;
}

/* j区域Logo - 距顶部155px */
.logo-j {
  top: 155px;
}

/* k区域Logo - 距顶部155px */
.logo-k {
  top: 155px;
}

/* l区域Logo - 距顶部文字100px，水平居中 */
.logo-l {
  top: 157px;
}

/* m区域Logo - 距顶部155px */
.logo-m {
  top: 155px;
}

/* 盒子内文字 */
.box-text {
  position: absolute;
  top: 23px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 34px;
  color: #FFFFFF;
  margin: 0;
  white-space: nowrap;
}

/* PC端隐藏移动端描述文字 */
.box-desc-mobile {
  display: none;
}

/* PC端隐藏移动端icon */
.box-icon-mobile {
  display: none;
}

/* 悬停遮罩层 */
.hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0070D2;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
}

/* 悬停Logo */
.hover-logo {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* h区域悬停Logo - 距顶部边框70px，水平居中 */
.hover-logo-h {
  top: 70px;
}

/* i区域悬停Logo - 距顶部115px */
.hover-logo-i {
  top: 115px;
}

/* j区域悬停Logo - 距顶部40px */
.hover-logo-j {
  top: 40px;
}

/* k区域悬停Logo - 距顶部40px */
.hover-logo-k {
  top: 40px;
}

/* l区域悬停Logo - 距顶部边框70px，水平居中 */
.hover-logo-l {
  top: 70px;
}

/* m区域悬停Logo - 距顶部40px */
.hover-logo-m {
  top: 40px;
}

.hover-logo-t83 {
  top: 83px;
}

/* n区域悬停标题 - 距顶部75px */
.hover-title-n {
  position: absolute;
  top: 75px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 34px;
  color: #FFFFFF;
  margin: 0;
  white-space: nowrap;
}

/* 悬停文字容器 */
.hover-text {
  position: absolute;
  top: 285px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 323px;
}

/* 悬停描述文字 */
.hover-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 23px;
  color: #FFFFFF;
  margin: 0;
  white-space: normal;
}



/* 悬停图标 */
.hover-icon {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

/* 鼠标悬停效果(弃用） */
.content-box:hover .hover-overlay {
  opacity: 1;
}

.content-card-new:hover .hover-overlay {
  opacity: 1;
}

/* 区域样式 - 背景色已移除 */

/* 后续根据具体内容调整 */

.ent-main-title-section {
  width: 100%;
  margin-top: 120px;
  text-align: center;
}

.ent-main-section-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 54px;
  color: #0070D2;
  margin: 0;
}

/* PC端隐藏移动端换行 */
.ent-title-mobile-br-1,
.ent-title-mobile-br-2,
.ent-title-mobile-br-3 {
  display: none;
}

/* PC端隐藏移动端小标题换行 */
.ent-item-mobile-br-1a-1,
.ent-item-mobile-br-1a-2,
.ent-item-mobile-br-1b-1,
.ent-item-mobile-br-1b-2,
.ent-item-mobile-br-1c-1,
.ent-item-mobile-br-1c-2,
.ent-item-mobile-br-1c-3,
.ent-item-mobile-br-1d-1 {
  display: none;
}

.ent-1c-pc-br {
  display: none;
}

@media (min-width: 769px) {
  .ent-1c-pc-br {
    display: inline;
  }
}

/* 页中1区 */
.ent-section-1 {
  width: 100%;
  height: 550px;
  margin-top: 100px;
  /* 距离上一段文字底边100px */
}

.ent-section-1-container {
  width: 1200px;
  /* 282*4 + 24*3 = 1200 */
  max-width: 100%;
  height: 550px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.ent-card {
  width: 282px;
  height: 550px;
  background: #e0e0e0;
  /* 临时底色 */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-family: 'Noto Sans JP', sans-serif;
}

.ent-card-1a {
  background: #D0E8FF;
}

.ent-card-1b {
  background: #C9F0DD;
}

.ent-card-1c {
  background: #FFE3C4;
}

.ent-card-1c .ent-special-item:first-child .ent-special-item-title p {
  font-size: 16px !important;
  line-height: 24px !important;
}

/* 更具体的选择器，确保优先级 */
.ent-card.ent-card-1c.ent-special-card .ent-special-item:first-child .ent-special-item-title p {
  font-size: 16px !important;
  line-height: 24px !important;
}

.ent-card-1d {
  background: #F2D9FF;
}

/* 特殊复杂区域模板 */
.ent-special-card {
  background: #0070D2 !important;
  flex-direction: column;
  align-items: center;
  padding: 0;
  position: relative;
}

.ent-special-image {
  margin-top: 15px;
  display: block;
  width: auto;
  height: auto;
}

.ent-special-title {
  margin: 20px 0 0 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 24px;
  line-height: 34px;
  font-weight: 600;
  color: #FFFFFF;
  text-align: center;
  width: 100%;
}

.ent-special-desc {
  margin: 40px 15px 15px 15px;
  padding: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  color: #FFFFFF;
  width: calc(100% - 30px);
}

.ent-card-1c .ent-special-desc {
  margin-top: 15px;
}

/* 1b区域特殊样式 */
.ent-card-1b {
  background: #EBEFF4 !important;
}

.ent-card-1b .ent-special-title,
.ent-card-1b .ent-special-desc,
.ent-card-1b .ent-special-item-desc p {
  color: #0070D2;
}

.ent-card-1b .ent-special-item-title {
  background: #FFFFFF;
}

.ent-card-1b .ent-special-item-title p {
  color: #0070D2;
}

.ent-card-1b .ent-special-line {
  background: #FFFFFF;
  margin-top: -2px;
}

.ent-card-1b .ent-special-desc {
  margin-top: 15px;
}

/* 1d区域特殊样式（与1b相同） */
.ent-card-1d {
  background: #EBEFF4 !important;
}

.ent-card-1d .ent-special-title,
.ent-card-1d .ent-special-desc,
.ent-card-1d .ent-special-item-desc p {
  color: #0070D2;
}

.ent-card-1d .ent-special-item-title {
  background: #FFFFFF;
}

.ent-card-1d .ent-special-item-title p {
  color: #0070D2;
}

.ent-card-1d .ent-special-item:last-child .ent-special-item-title {
  background: #EBEFF4;
}

.ent-card-1d .ent-special-line {
  background: #FFFFFF;
  margin-top: -2px;
}

.ent-card-1d .ent-special-desc {
  margin-top: 15px;
}

.ent-special-line {
  width: 100%;
  height: 3px;
  background: #FFFFFF;
  margin: 0;
  flex-shrink: 0;
  display: block;
}

.ent-special-item {
  width: calc(100% - 30px);
  height: 84px;
  margin: 15px 15px 0 15px;
  display: flex;
  flex-direction: row;
}

.ent-special-item:last-child {
  margin-top: 10px;
}

.ent-special-item-title {
  width: 110px;
  height: 84px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 0 0 7px;
}

.ent-special-item-title p {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  line-height: 26px;
  color: #0070D2;
  text-align: left;
  font-weight: 500;
}

/* 1c第一个小标题字号调小5%，并增加区域宽度以容纳更多文字 */
.ent-card.ent-card-1c.ent-special-card .ent-special-item:first-child .ent-special-item-title {
  width: 130px !important;
  /* 增加宽度从110px到130px，以容纳"オンラインオフラインプロモーション" */
}

.ent-special-item-desc {
  flex: 1;
  height: 84px;
  display: flex;
  align-items: center;
  padding-left: 15px;
}

.ent-special-item-desc p {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  line-height: 17px;
  color: #FFFFFF;
}

/* 页中2区 */
.ent-section-2 {
  width: 100%;
  height: 1057px;
  /* 1712px - 655px (减少一行海报的高度: 555px + 100px) */
  background: #F2F2F2;
  margin-top: 120px;
  /* 距离页中1区底边120px */
}

.ent-section-2-title-section {
  width: 100%;
  text-align: center;
  padding-top: 120px;
  /* 距离页中2区上顶边120px */
}

/* 页中2区 内容部分 */
.ent-section-2-content {
  width: 1320px;
  /* 300*4 + 40*3 */
  max-width: 100%;
  margin: 80px auto 0;
  /* 与标题区留出一定空间 */
  display: grid;
  grid-template-columns: repeat(4, 300px);
  column-gap: 40px;
  /* 同排间距（减少50%） */
  row-gap: 0;
  /* 只有一行，不需要行间距 */
}

.ent-section-2-card {
  width: 300px;
  height: 555px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  background: #E9EEF3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  overflow: hidden;
  /* 裁切圆角 */
}

.ent-section-2-card-image {
  display: block;
  width: 100%;
  height: auto;
  flex-shrink: 0;
}

.ent-section-2-card-text {
  margin-top: 15px;
  padding-left: 15px;
  width: 100%;
}

.ent-card-2-line {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  color: #0070D2;
}

.ent-card-2-line-title {
  font-size: 18px;
  line-height: 25px;
}

.ent-card-2-line-desc {
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  margin-top: 10px;
}

/* 页中2区下方标题组 */
.ent-after-section-2-title-group {
  width: 100%;
  margin-top: 120px;
  /* 距离2区底边120px */
  text-align: center;
}

/* PC端隐藏移动端换行 */
.ent-after-section-2-mobile-br {
  display: none;
}

/* 页中3区空白占位区域 - 用于替代隐藏的标题组和内容区 */
.ent-section-3-spacer {
  width: 100%;
  margin-top: 100px;
  /* PC端：对应原内容区的上边距 */
}

/* 页中3区 */
.ent-section-3 {
  width: 100%;
  height: 292px;
  margin-top: 100px;
  /* 距离上一段三行文字底边100px */
}

.ent-section-3-container {
  width: 1128px;
  /* 282*4 + 20*3 = 1128 */
  max-width: 100%;
  height: 292px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.ent-card-3 {
  width: 282px;
  height: 292px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  background: #E6E6E6;
  /* 临时底色 */
  overflow: hidden;
  position: relative;
}

.ent-card-3-text {
  position: absolute;
  top: 10px;
  left: 10px;
}

.ent-card-3-line {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: #FFFFFF;
}

.ent-card-3-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.ent-card-3a {
  background: #D7ECFF;
}

.ent-card-3b {
  background: #D6F6E8;
}

.ent-card-3c {
  background: #FFE9D1;
}

.ent-card-3d {
  background: #F1E0FF;
}

/* =====================
   移动端样式 - 首页页中 - 断点 480px
   ===================== */
@media (max-width: 480px) {

  /* 页中高度 - 移动端首页1969px（1607px + 392px新增介绍文字区域高度：30px上边距 + 312px文字内容 + 50px下边距 - 30px减少的area-n下边距） */
  .page-main {
    height: 1709px !important;
    overflow: hidden !important;
    /* 禁止内部滚动，防止出现上下滚动 */
    position: relative;
    /* 确保定位上下文 */
  }

  .index-hero-img-mobile {
    width: 30px;
    height: auto;
  }

  /* 介绍文字区域 - 移动端样式 */
  .index-intro-section {
    margin-top: 30px !important;
    /* 移动端：第一行字距离页首大图下底边30px */
    width: 100%;
    text-align: center;
  }

  .index-intro-text {
    padding: 0 16px;
    /* 左右各16px边距 */
    box-sizing: border-box;
  }

  /* PC端介绍文字 - 移动端隐藏 */
  .index-intro-pc {
    display: none !important;
  }

  /* 移动端介绍文字样式 */
  .index-intro-mobile {
    display: block !important;
    font-size: 16px;
    line-height: 24px;
  }

  /* 中文移动端特殊处理：减少页中部高度（因为空行从2行减少到1行，减少2行*24px=48px） */
  html[lang="zh-CN"] .page-main {
    /* height: 1921px !important; */
    height: 1709px !important;
    /* 1969px - 48px（减少2行空行的高度） */
  }

  /* 页中标题区域 - 首页移动端 */
  .main-title-section {
    margin-top: 50px !important;
    /* 移动端：最后一行字距离"多彩なニーズに応える"的上底边50px */
    margin-bottom: 0;
    /* 移除margin-bottom，间距由下方元素控制 */
    text-align: center;
  }

  /* 页中标题文字 - 首页移动端 */
  .main-section-title {
    font-size: 20px;
    line-height: 28px;
    text-align: center;
    display: block;
    width: 100%;
  }

  /* 页中内容区域 - 移动端 (废弃by zhh）*/
  .main-content-area {
    margin-top: 50px;
    /* 距离上方文字区域下底边50px */
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* div之间的距离15px */
  }

  /* 卡片区域的父级，覆盖main-content-area */
  /* .content-box-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
  } */
  .content-box-new {
    max-width: 358px;
    width: 90%;
    margin: 15px auto 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* grid-auto-rows: minmax(280px, auto) !important; */
    grid-auto-rows: minmax(260px, 260px);
    gap: 10px;
    justify-content: center;
  }

  /* 卡片区域 移动端 */
  .content-card-new {
    width: 174px;
    height: 260px;
    min-height: 160px;
    margin-top: 50px;
  }

  /* 移动端卡片超链接层wrap */
  .content-a-wrap {
    display: block;
    width: 174px;
    height: 260px;
  }




  /* 内容盒子 - 移动端，每个div独占一行 */
  .content-box {
    width: calc(100% - 32px);
    /* 左右各16px边距 */
    margin-left: 16px;
    margin-right: 16px;
    height: 180px;
    /* 固定高度180px */
    min-height: 180px;
    max-height: 180px;
  }

  .content-box-image {
    width: 174px;
    height: 260px;
  }

  /* 隐藏o和p区域 - 移动端 */
  .area-o,
  .area-p {
    display: none;
  }

  /* n区域距离页尾上顶边20px - 移动端 */
  .area-n {
    margin-bottom: 20px;
  }

  /* 盒子内文字 - 移动端 */
  .box-text {
    position: absolute;
    top: 10px;
    left: 10px;
    transform: none;
    /* 移除居中变换 */
    font-size: 14px;
    line-height: 20px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }



  /* 盒子内描述文字 - 移动端 */
  .box-desc-mobile {
    display: block;
    position: absolute;
    bottom: 50px;
    left: 10px;
    right: 10px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 12px;
    line-height: 15px;
    font-weight: 400;
    color: #FFFFFF;
    margin: 0;
  }

  /* 盒子内右下角icon - 移动端 */
  .box-icon-mobile {
    display: block;
    position: absolute;
    bottom: 16px;
    right: 15px;
    /* 右侧边距离每个小区域右侧边15px（右下角定位） */
    width: auto;
    height: auto;
  }

  .box-icon-mobile-new {
    display: block;
    position: absolute;
    bottom: 20px;
    left: 10px;
    /* 右侧边距离每个小区域右侧边15px（右下角定位） */
    width: auto;
    height: auto;
  }

  .logo-t180-t88 {
    top: 88px;
  }

  .logo-t200-t92 {
    top: 92px;
  }

  .logo-t155-t77 {
    top: 77px;
  }

  .logo-t155-t83 {
    top: 83px;
  }

  .logo-t157-t88 {
    top: 88px;
  }

  .logo-t200-t93 {
    top: 93px;
  }

  /* h区域Logo - 移动端，距离上方文字25px，水平居中 */
  .logo-h {
    top: 33px;
    /* 文字top:5px + 行高28px = 33px */
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: top center;
  }

  /* i区域Logo - 移动端，上顶边距离i区域上顶边69px，缩小50%后再增大10% */
  .logo-i {
    top: 69px;
    left: 50%;
    transform: translateX(-50%) scale(0.55);
    /* 50% * 1.1 = 55% */
    transform-origin: top center;
  }

  .logo-i-1 {
    top: 69px;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: top center;
  }

  /* j区域Logo - 移动端，上顶边距离j区域上顶边55px，缩小50% */
  .logo-j {
    top: 55px;
    left: 50%;
    transform: translateX(-50%) scale(0.5);
    transform-origin: top center;
  }

  /* k区域Logo - 移动端，上顶边距离k区域上顶边45px，缩小50% */
  .logo-k {
    top: 45px;
    left: 50%;
    transform: translateX(-50%) scale(0.5);
    transform-origin: top center;
  }

  /* l区域Logo - 移动端，距离上方文字25px，水平居中 */
  .logo-l {
    top: 69px;
    /* 文字top:5px + 行高28px = 33px */
    left: 50%;
    transform: translateX(-50%);
    transform-origin: top center;
  }

  /* m区域Logo - 移动端，上顶边距离m区域上顶边55px，缩小50%后再增大10% */
  .logo-m {
    top: 55px;
    left: 50%;
    transform: translateX(-50%) scale(0.55);
    /* 50% * 1.1 = 55% */
    transform-origin: top center;
  }

  /* 移动端显示移动端文字，隐藏PC端文字 */
  .title-pc {
    display: none;
  }

  .title-mobile {
    display: block;
  }



  /* 禁用移动端的悬停覆盖效果 */
  .content-box:hover .hover-overlay,
  .content-box:active .hover-overlay,
  .content-box:focus .hover-overlay {
    opacity: 0;
  }

  .content-card-new:hover .hover-overlay,
  .content-card-new:active .hover-overlay,
  .content-card-new:focus .hover-overlay {
    opacity: 0;
  }
}

@media (min-width: 481px) {
  .box-icon-mobile {
    display: none !important;
  }

  .box-icon-mobile-new {
    display: none !important;
  }

  .content-card-new.is-empty {
    background: transparent;
    box-shadow: none;
  }

  html[lang="en"] .box-text-small {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(18px, 2.0vw, 24px);
    line-height: 28px;
    color: #FFFFFF;
    margin: 0;
    white-space: nowrap;
    text-align: center;
  }
}