/* ===== MTCO Recruit topimage (AEM移行用ミニマム / mel25-contents-width__1400 内でも全幅表示) ===== */

/* --- full-bleed（1400px枠の中でもブラウザ幅100%にする） --- */
.mel25-contents-width__1400 #topimage {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
}

/* ===== topimage 本体 ===== */
#topimage {
  display: block;
  background-color: #ececec;
  padding: 10px 0;
  position: relative;
  overflow: hidden; /* はみ出し抑止 */
  margin-top: 10px;
}

#topimage #thinkfaing {
  display: block;
  width: 560px;
  height: 560px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  z-index: 50;
  animation: mtcoFadeIn 4s ease 1s 1 both;
}

@keyframes mtcoFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

#topimage #thinkfaing img {
  display: block;
  width: 100%;
  height: auto;
}

#slider {
  display: block;
  width: 100%;
  height: 640px;
  position: relative;
}

#slider .loopSliderWrap {
  top: 0;
  left: 0;
  height: 640px;
  overflow: hidden;
  position: absolute;
  will-change: left;
}

#slider ul {
  display: block;
  width: 960px;
  height: 640px;
  position: relative;
  float: left;
  margin: 0;
  padding: 0;
  list-style: none;
}

#slider ul li {
  display: block;
  width: 158px;
  height: 158px;
  padding: 1px;
  position: absolute;
  box-sizing: border-box;
  list-style: none;
}

#slider ul li img {
  display: block;
  width: 100%;
  height: auto;
}

/* 2x2サイズ */
#slider #img05,
#slider #img09,
#slider #img14,
#slider #img15,
#slider #img21,
#slider #img28 {
  width: 318px;
  height: 318px;
}

/* 1x2サイズ */
#slider #img29 {
  width: 318px;
}

/* 既存配置を維持 */
#slider #img04 { top: 0px; left: 160px; }
#slider #img05 { top: 160px; left: 0px; }
#slider #img07 { top: 0px; left: 0px; }
/* #slider #img08 { top: 0px; left: 160px; } */
#slider #img09 { top: 320px; left: 640px; }
#slider #img10 { top: 480px; left: 0px; }
#slider #img11 { top: 480px; left: 160px; }
#slider #img12 { top: 0px; left: 320px; }
#slider #img13 { top: 160px; left: 320px; }
/* #slider #img14 { top: 0px; left: 480px; } */
/* #slider #img15 { top: 320px; left: 320px; } */
#slider #img16 { top: 0px; left: 800px; }
#slider #img17 { top: 160px; left: 800px; }
#slider #img19 { top: 0px; left: 480px; }
#slider #img20 { top: 0px; left: 640px; }
/* #slider #img21 { top: 160px; left: 960px; } */
/* #slider #img22 { top: 480px; left: 960px; } */
#slider #img24 { top: 320px; left: 320px; }
#slider #img25 { top: 320px; left: 480px; }
#slider #img26 { top: 480px; left: 320px; }
#slider #img27 { top: 480px; left: 480px; }
/* #slider #img28 { top: 320px; left: 1280px; } */
#slider #img29 { top: 160px; left: 480px; }

/* SP差分（既存仕様準拠） */
@media screen and (max-width: 767px) {
  #topimage {
    margin-left: -10px;
    margin-right: -10px;
    width: calc(100% + 20px);
  }

  #topimage #thinkfaing {
    width: 235px;
    height: 235px;
  }

  #slider {
    height: 320px;
  }

  #slider .loopSliderWrap {
    height: 320px;
  }

  #slider ul {
    zoom: 0.5; /* 既存仕様を維持 */
  }
}




/* ===== MTCO Recruit toplinks + toplinks03 (AEM移行B: hover演出なし / shadowなし / 斜めハイライト固定) ===== */

/* ---------------------------------
   1) リセット（このブロックだけ）
--------------------------------- */
/* #toplinks ul, #toplinks li, #toplinks p,
#toplinks03 ul, #toplinks03 li, #toplinks03 p {
  margin: 0;
  padding: 0;
} */

#toplinks ul, #toplinks03 ul {
	list-style: none;
	padding-left: 0;
	margin-top: 0;
	margin-bottom: 0;
}

#toplinks img, #toplinks03 img {
  border: 0;
  vertical-align: bottom;
}

#toplinks, #toplinks03 { box-sizing: border-box; }
#toplinks *, #toplinks03 * { box-sizing: border-box; }

@media screen and (min-width: 952px), print {
	#main .container {
		width: 952px;
		margin-left: auto;
		margin-right: auto;
		padding-left: 0;
		padding-right: 0;
	}
}

.row {
  display: block;
  margin-left: -7px;
  margin-right: -7px;
}
.row::after {
  content: "";
  display: block;
  clear: both;
}

/*
[class*="col-"] {
  position: relative;
  min-height: 1px;
  padding-left: 7px;
  padding-right: 7px;
}

.col-xs-12 {
  float: left;
  width: 100%;
}

.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}
*/

.visible-xs { display: block !important; }
.hidden-xs  { display: none !important; }

@media screen and (min-width: 768px), print {
  .visible-xs { display: none !important; }
  .hidden-xs  { display: block !important; }

  /*
  .col-sm-2  { float: left; width: 16.66666667%; }
  .col-sm-4  { float: left; width: 33.33333333%; }
  .col-sm-6  { float: left; width: 50%; }
  .col-sm-10 { float: left; width: 83.33333333%; }
  */
}

/* ---------------------------------
   2) #toplinks 共通（hover演出なし）
--------------------------------- */
#toplinks { margin-top: 40px; } /* PC基準 */

#toplinks .links a {
  display: block;
  position: relative;
  text-decoration: none;
}

/* YouTubeバナー：hoverで薄くならない（演出なし） */
#toplinks #toplinks01 .youtube_ban a:hover { opacity: 1; }

#toplinks .links a .txt {
  display: block;
  float: left;
  font-family: "游ゴシック", "Yu Gothic", YuGothic, "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", "ＭＳ ゴシック", sans-serif;
  font-weight: bold;
  line-height: 150%;
  text-align: center;
  color: #fff;
  position: absolute;
  overflow: hidden;
}

/* 背景色（既存準拠） */
#toplinks #toplinks01 .links a .txt { background-color: #be1415; }
#toplinks #toplinks02 .links a .txt { background-color: #006; }

/* --- 斜めハイライト（固定表示：hoverで動かない） --- */
#toplinks .links a .txt::before {
  content: "";
  display: block;
  background: linear-gradient(to right,
    rgba(0,0,0,.4) 0,
    rgba(127,127,127,0) 50%,
    rgba(255,255,255,.3) 100%
  );
  position: absolute;
  z-index: 0;
  transition: none; /* 動かさない */
}
#toplinks .links a .txt::after {
  content: "";
  display: block;
  background-color: rgba(0,0,0,.1);
  position: absolute;
  z-index: 0;
  transition: none; /* 動かさない */
}

/* #toplinks02 は濃さを既存に合わせる */
#toplinks #toplinks02 .links a .txt::before {
  background: linear-gradient(to right,
    rgba(0,0,0,.6) 0,
    rgba(127,127,127,0) 50%,
    rgba(255,255,255,.6) 100%
  );
}
#toplinks #toplinks02 .links a .txt::after {
  background-color: rgba(0,0,0,.2);
}

/* テキスト本体 */
#toplinks .links a .txt .txt-inner {
  display: block;
  position: absolute;
  z-index: 10;
  top: 50%;
  transform: translateY(-50%);
}
#toplinks .links a .txt .txt-inner span { display: inline-block; }

/* 画像領域（hoverズームなし） */
#toplinks .links a .img {
  display: block;
  background-color: #ccc;
  float: right;
  overflow: hidden;
  position: relative;
}
#toplinks .links a .img img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: none; /* hoverズーム演出を止める */
}

/* #toplinks02 アイコン領域（hoverズームなし） */
#toplinks #toplinks02 .links a .txt .icon {
  display: block;
  overflow: hidden;
  position: absolute;
  z-index: 10;
}
#toplinks #toplinks02 .links a .txt .icon img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: none; /* hoverズーム演出を止める */
}

/* text-shadow 移行しない：shadow クラスが残っても無効 */
#toplinks01 .shadow,
#toplinks02 .shadow { text-shadow: none !important; }

/* ---------------------------------
   3) #toplinks03（hoverで動かない）
--------------------------------- */
.mel25-contents-width__1400 #toplinks03 {
  background-color: #be1415;
  /* margin-left: -10px;
  margin-right: -10px; */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

#toplinks03 p,
#toplinks03 ul li {
  display: block;
  font-family: "游ゴシック", "Yu Gothic", YuGothic, "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", "ＭＳ ゴシック", sans-serif;
  font-weight: bold;
  color: #fff;
  text-align: center;
}

#toplinks03 ul { display: table; }
#toplinks03 ul li {
  display: table-cell;
  width: 33.333%;
  padding-left: 5px;
  padding-right: 5px;
  position: relative;
}

/* ボタン見た目は維持、hoverで沈まない */
#toplinks03 ul li a {
  display: block;
  width: calc(100% - 10px);
  height: 40px;
  color: #fff;
  background:
    linear-gradient(45deg,  transparent 3px, #800d0e 3px),
    linear-gradient(315deg, transparent 3px, #800d0e 3px),
    linear-gradient(225deg, transparent 3px, #800d0e 3px),
    linear-gradient(135deg, transparent 3px, #800d0e 3px);
  background-position: bottom left, bottom right, top right, top left;
  background-size: 51% 50%;
  background-repeat: no-repeat;
  text-decoration: none;
  transition: none; /* hover演出削除 */
  position: absolute;
  top: 0;
}
#toplinks03 ul li a:hover { top: 0; } /* 念のため固定 */

/* ---------------------------------
   4) PC (min-width:768px) レイアウト（演出なし）
--------------------------------- */
@media screen and (min-width: 768px), print {

  #module_titleArea {
	max-width: 952px;
	margin-right: auto;
	margin-left: auto;
  }

  #toplinks ul {
    display: block;
    margin-top: -14px;
  }
  #toplinks ul .links {
    display: block;
    margin-top: 14px;
  }

  #toplinks #toplinks01 .links a { height: 200px; }
  #toplinks #toplinks01 .links a .txt {
    width: 47%;
    height: 200px;
    font-size: 25px;
    top: 0;
    left: 0;
  }

  #toplinks #toplinks02 .links a { height: 100px; }
  #toplinks #toplinks02 .links a .txt {
    width: calc(100% - 0px);
    height: 100px;
    font-size: 21px;
  }

  /* 斜めハイライト：形状と位置（固定） */
  #toplinks .links a .txt::before,
  #toplinks .links a .txt::after {
    width: 200%;
    height: 200%;
    top: -150%;
    left: -50%;
    transform-origin: 50% 100%;
  }
  #toplinks .links a .txt::before { transform: rotate(-45deg); }
  #toplinks .links a .txt::after  { transform: rotate(135deg); }

  /* hoverしても動かない（上書き固定） */
  #toplinks .links a:hover .txt::before { top: -150%; }
  #toplinks .links a:hover .txt::after  { top: -150%; }

  #toplinks .links a .txt .txt-inner {
    width: 100%;
    text-align: center;
  }

  #toplinks .links a .img {
    width: 53%;
    height: 200px;
  }
  #toplinks .links a .img img {
    width: auto;
    height: 200px;
  }

  #toplinks #toplinks02 .links a .txt .txt-inner {
    width: calc(100% - 120px);
    text-align: left;
    right: 0;
  }
  #toplinks #toplinks02 .links a .txt .icon {
    width: 120px;
    height: 100px;
    left: 0;
    top: 0;
  }
  #toplinks #toplinks02 .links a .txt .icon img {
    width: auto;
    height: 110px;
  }

  #toplinks03 {
    height: 60px;
    margin-top: 14px;
    font-size: 21px;
    position: relative;
  }
  #toplinks03 p {
    line-height: 60px;
    padding-left: 30px;
  }
  #toplinks03 ul {
    width: calc(100% - 35px);
    padding-top: 10px;
    padding-right: 35px;
  }
  #toplinks03 ul li a {
    line-height: 36px;
  }

  #toplinks03 ul li a .petlinks .peticon {
    display: inline-block;
    width: 40px;
    height: 40px;
    overflow: hidden;
    position: relative;
    vertical-align: middle;
  }
  #toplinks03 ul li a .petlinks .peticon img {
    width: 100%;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: none; /* hover拡大なし */
  }
}

/* ---------------------------------
   5) SP (max-width:767px) レイアウト（演出なし）
--------------------------------- */
@media screen and (max-width: 767px) {
  .row {
    margin-left: -5px;
    margin-right: -5px;
  }
  [class*="col-"] {
    padding-left: 5px;
    padding-right: 5px;
  }

  #toplinks {
    margin-top: 10px;
  }

  #toplinks ul {
    display: block;
    margin-top: -10px;
  }

  #toplinks ul .youtube_ban {
    /* margin-top: 10px; */
  }
  #toplinks ul .links {
    display: block;
    margin-top: 10px;
  }

  #toplinks .links a { height: 80px; }

  #toplinks #toplinks01 .links a .txt {
    width: calc(100% - 107px);
    height: 80px;
    font-size: 18px;
    top: 0;
    left: 0;
  }

  #toplinks #toplinks02 .links a .txt {
    width: calc(100% - 0px);
    height: 80px;
    font-size: 18px;
  }

  /* 斜めハイライト：形状と位置（固定） */
  #toplinks .links a .txt::before,
  #toplinks .links a .txt::after {
    width: 200%;
    height: 500%;
    top: -450%;
    left: -50%;
    transform-origin: 50% 100%;
  }
  #toplinks .links a .txt::before { transform: rotate(-45deg); }
  #toplinks .links a .txt::after  { transform: rotate(135deg); }

  /* hoverしても動かない（上書き固定） */
  #toplinks .links a:hover .txt::before { top: -450%; }
  #toplinks .links a:hover .txt::after  { top: -450%; }

  #toplinks .links a .txt .txt-inner {
    width: calc(100% - 20px);
    text-align: left;
    padding-left: 10px;
    padding-right: 10px;
  }

  #toplinks .links a .img {
    width: 107.05px;
    height: 80px;
  }
  #toplinks .links a .img img {
    width: 100%;
    height: auto;
  }

  #toplinks #toplinks02 .links a .txt .txt-inner {
    width: calc(100% - 107px);
  }

  #toplinks #toplinks02 .links a .txt .icon {
    width: 107px;
    height: 80px;
    right: 0;
    top: 0;
  }
  #toplinks #toplinks02 .links a .txt .icon img {
    width: 100%;
    height: auto;
  }

  #toplinks03 {
    height: 80px;
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
  }

  #toplinks03 p { line-height: 30px; }

  #toplinks03 ul {
    width: calc(100% - 30px);
    padding-bottom: 10px;
    margin-left: 15px;
    margin-right: 15px;
  }

  #toplinks03 ul li a {
    line-height: 40px;
  }

  #toplinks03 ul li a .petlinks .peticon { display: none; }
}