@charset "utf-8";

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600;700&display=swap');

.indexMain {
  background-image: url("../images/index/index_bg.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  position: relative;
  z-index: 0;
  padding: 20px;
  transition: all .5s;
}
.indexMain::before {
  content: "";
  height: 100%;
  width: 100vw;
  background: rgba(33,33,33,0.3);
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}
.firstViewArea {
  padding-top: 200px;
}
.firstViewArea .catchCopy {
  font-family: "Noto Sans Japanese", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "メイリオ";
  font-size: 38px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
  opacity: 0;
  animation: fadeIn 1s ease-out 1s forwards;
}
.infraIndexMenu {
  max-width: 640px;
  margin: 0 auto 140px;
  padding-top: 120px;
}

.infraIndexMenu ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  padding: 0;
  justify-content: center;
}

.infraIndexMenu ul li:nth-child(3) {
  grid-column: span 2;
  justify-self: center;
  width: fit-content;
  min-width: 320px;
}

.infraIndexMenu ul li {
  border: solid 2px #fff;
   width: 320px;
  opacity: 0;
  animation: indexMenuLi 1s ease-out 1.5s forwards;
  transform-origin: center;
  transform: scaleX(1);
}

.infraIndexMenu ul li a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  line-height: 1.4em;
  background: rgba(0, 0, 0, 0.6);
  font-family: "Noto Sans Japanese", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "メイリオ";
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  padding: 20px 12px;
  min-height: 76px;
  opacity: 0;
  animation: fadeIn .5s ease-out 2.5s forwards;
}
@keyframes indexMenuLi{
0%{transform: scaleX(0); opacity: 0;}
100%{transform: scaleX(1); opacity: 1;}
}
@keyframes fadeIn{
0%{opacity: 0;}
100%{opacity: 1;}
}

.infraIndexMenu ul li a:has(.subText) {
  padding: 10px 12px;
}
.infraIndexMenu ul li a:hover {
  background: rgba(0,0,0,0.9);
}
.infraIndexMenu ul li a .subText {
  display: block;
  font-size: 14px;
  font-weight: normal;
}
.indexNewsArea {
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  padding: 20px 30px 20px;
  margin-bottom: 100px;
  opacity: 0;
  transform: translateY(50px);
}
.indexNewsArea.viewIn{
animation: indexNewsAreaAni 1s ease-out forwards;
}

@keyframes indexNewsAreaAni {
0%{ opacity: 0; transform: translateY(50px);}
100%{ opacity: 1; transform: translateY(0);}
}

.indexNewsArea h2 {
  font-size: 20px;
  margin-bottom: 1.0em;
}
.indexNewsArea ul.newsList {
  padding: 0;
}
.indexNewsArea ul li {
  position: relative;
  border-bottom: solid 1px #ccc;
}
.indexNewsArea ul li a::after {
  border-bottom: 1px solid #1775be;
  border-right: 1px solid #1775be;
  content: "";
  display: inline-block;
  height: .7rem;
  margin-left: 1rem;
  transition: all .3s ease;
  width: .7rem;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(-50%, -50%) rotate(-45deg);
}
.indexNewsArea ul li:not(:has(a)),
.indexNewsArea ul li a {
  font-size: 15px;
  color: #333;
  display: flex;
  gap: 1em;
  padding: 1em 1em 1em 0;
  text-align: left;
  width: 100%;
}
.indexNewsArea ul li a:hover {
  color: #1775be;
}
.indexNewsArea ul li a span {
}
.indexNewsArea ul li span.newsTag {
  font-size: 13px;
  color: #fff;
  width: 145px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  flex-shrink: 0;
}
/*Commonly article*/
.indexNewsArea ul li span.newsTag.tagCommon {
  background: #0f3d86;
}
.indexNewsArea ul li span.newsTag.tagProducts {
  background: #689817;
}

/*.indexNewsArea ul li span.newsTag.tagMetal {
  background: #0e8965;
}
.indexNewsArea ul li span.newsTag.tagOntomo {
  background: #bf4a45;
}
.indexNewsArea ul li span.newsTag.tagPole {
  background: #1b60b0;
}
.indexNewsArea ul li span.newsTag.tagSJack {
  background: #bf7115;
}
.indexNewsArea ul li span.newsTag.tagInfraP {
  background: #689817;
}*/

.indexNewsArea .c-list__depNews--more {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.5);
}
.indexNewsArea .c-list__depNews--more:hover {
  background: #1775be;
  color: #fff;
  opacity: .8;
}

@media screen and (max-width: 768px) {
.indexMain {
  padding: 12px;
}
.firstViewArea {
  padding-top: 150px;
  margin-bottom: 80px;
}
.firstViewArea .catchCopy {
  font-size: 21px;
}
.infraIndexMenu {
  width: 100%;
  padding: 0;
}
.infraIndexMenu ul {
  gap: 10px;
  width: 100%;
}
.infraIndexMenu ul li {
  width: 100%;
}
.infraIndexMenu ul li:last-child {
  min-width: fit-content;
}
.infraIndexMenu ul li a {
  font-size: 16px;
  height: 100%;
}
.infraIndexMenu ul li a:has(.subText) {
  gap: 6px;
}
.infraIndexMenu ul li a .subText {
  font-size: 12px;
}
.indexNewsArea {
  padding: 15px 10px 10px;
  margin-bottom: 60px;
}
.indexNewsArea ul li a {
  font-size: 14px;
  gap: 0.5em 1em;
  padding: 1em;
  flex-wrap: wrap;
}
}