@charset "utf-8";

/** ***************************************************************************
 * ビジュアル
 * ************************************************************************* */

#visual {
  overflow: hidden;
  position: relative;
  z-index: 0;
}

/**
 * タイトル / テキスト
 */

#visual div.content {
  padding: 30px 20px;
}

@media screen and (min-width:768px) {

  #visual div.content {
    height: 100%;
    padding: min(6.452vw, 80px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
  }

}

/* タイトル */

#visual div.content div.title {
  letter-spacing: 2px;
  line-height: 1.4;
  font-size: clamp(32px, 9.87vw, 40px);
  font-weight: 600;
  filter: drop-shadow(3px 3px 0 rgba(255, 255, 255, 0.7));
  position: relative;
  z-index: 0;
  transition:
    top 0.5s ease-in-out 0.2s,
    transform 0.5s ease-in-out 0.2s,
    opacity 1.0s ease-in-out 0.2s;
  top: -25px;
  transform: translate(10px, -20px) rotate(15deg) skew(-8deg, -20deg) scale(1.05);
  opacity: 0;
}

body.loaded
#visual div.content div.title {
  top: 0;
  transform: none;
  opacity: 1;
}

#visual div.content div.title em {
  color: transparent;
  background: linear-gradient(to bottom, rgb(var(--accentcolor-marutsu-1)), rgb(var(--accentcolor-marutsu-2)));
  background-clip: text;
}

@media screen and (min-width:768px) {

  #visual div.content div.title {
    letter-spacing: 3px;
    font-size: 5.143em;
  }

}

/* テキスト */

#visual div.content div.text {
  margin-top: 15px;
  letter-spacing: 1px;
  line-height: 1.8;
  font-size: 1.071em;
  position: relative;
  z-index: 0;
  transition:
    top 0.5s ease-in-out 0.4s,
    opacity 0.5s ease-in-out 0.4s;
  top: 30px;
  opacity: 0;
}

body.loaded
#visual div.content div.text {
  top: 0;
  opacity: 1;
}

@media screen and (min-width:768px) {

  #visual div.content div.text {
    margin-top: 40px;
    letter-spacing: 2px;
    line-height: 2.25;
    font-size: 1.286em;
  }

}

/**
 * 画像
 */

#visual div.visual {
  height: clamp(200px, 74.67vw, 280px);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  position: relative;
  z-index: 0;
}

#visual div.visual div.image {
  overflow: hidden;
  position: relative;
  z-index: 0;
  transition: width 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.0s;
  width: 0;
}

#visual div.visual div.image:nth-child(1) {
  transition-delay: 0.7s;
}

#visual div.visual div.image:nth-child(2) {
  transition-delay: 0.85s;
}

#visual div.visual div.image:nth-child(3) {
  transition-delay: 1.0s;
}

body.loaded
#visual div.visual div.image {
  width: calc(100% / 3);
}

#visual div.visual div.image div {
  height: 100%;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  transition:
    width 0.0s cubic-bezier(0.19, 1, 0.22, 1) 1.0s,
    opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1) 0.4s;
  width: 0;
  opacity: 0;
}

#visual div.visual div.image div.active {
  z-index: 1;
  transition:
    width 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.0s,
    opacity 1.6s cubic-bezier(0.19, 1, 0.22, 1) 0.0s;
  width: 100%;
  opacity: 1;
}

@media screen and (min-width:768px) {

  #visual div.visual {
    height: clamp(390px, 45.16vw, 560px);
    margin-left: min(40.323vw, 500px);
  }

}

/* 罫線 */

#visual div.visual::before {
  content: '';
  height: 100%;
  border-left: 1px solid #fff;
  position: absolute;
  z-index: 2;
  top: 0;
  left: calc(100% / 3 * 1);
}

#visual div.visual::after {
  content: '';
  height: 100%;
  border-left: 1px solid #fff;
  position: absolute;
  z-index: 2;
  top: 0;
  left: calc(100% / 3 * 2);
}

#visual div.visual::before,
#visual div.visual::after {
  transition: opacity 0.6s ease-in-out 1.3s;
  opacity: 0;
}

body.loaded
#visual div.visual::before,
body.loaded
#visual div.visual::after {
  opacity: 1;
}

/** ***************************************************************************
 * マルツエレックの目指す姿
 * ************************************************************************* */

#about {
  padding-top: 30px;
  padding-bottom: 30px;
}

#about div.body {
  max-width: 1240px;
}

@media screen and (min-width:768px) {

  #about div.body {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

}

/**
 * 内容
 */

@media screen and (min-width:768px) {

  #about div.content {
    width: 48%;
  }

}

/* タイトル */

#about div.content .section-title {
  margin-bottom: 20px;
  font-size: 1.286em;
  font-weight: 600;
}

#about div.content .section-title::before {
  content: attr(data-en);
  margin-bottom: -10px;
  color: transparent;
  letter-spacing: 0;
  line-height: 1;
  font-family: 'DIN 1451', sans-serif;
  font-size: 5em;
  font-weight: 700;
  background: linear-gradient(to bottom, rgb(var(--accentcolor-marutsu-1)), rgb(var(--accentcolor-marutsu-2)));
  background-clip: text;
  display: block;
}

@media screen and (min-width:768px) {

  #about div.content .section-title {
    font-size: 1.5em;
  }

}

/* テキスト */

#about div.content div.text {
  margin-top: 20px;
  line-height: 1.8;
}

#about div.content div.text .button {
  text-align: center;
}

@media screen and (min-width:768px) {

  #about div.content div.text {
    margin-top: 0;
    line-height: 2.0;
  }

  #about div.content div.text .button {
    text-align: left;
  }

}

/**
 * 画像
 */

#about div.image {
  position: relative;
  z-index: 0;
}

@media screen and (min-width:768px) {

  #about div.image {
    width: 48%;
    order: -1;
  }

}

/* アニメーション */

#about div.image :where(img):not([src*="bg"]) {
  position: absolute;
  animation: about-image 9.0s ease-in-out 0.0s infinite;
  transform: translateY(-5px);
}

#about div.image [src*="1"] {
  width: 22.17%;
  height: 22.16%;
  top: 1.96%;
  left: 1.67%;
  animation-delay: 0.0s;
}

#about div.image [src*="2"] {
  width: 23.50%;
  height: 23.33%;
  top: 11.76%;
  left: 63.83%;
  animation-delay: 1.0s;
}

#about div.image [src*="3"] {
  width: 30%;
  height: 27.25%;
  top: 36.27%;
  left: 21.5%;
  animation-delay: 1.5s;
}

#about div.image [src*="4"] {
  width: 30.17%;
  height: 25.88%;
  top: 41.18%;
  left: 67.00%;
  animation-delay: 0.0s;
}

#about div.image [src*="5"] {
  width: 23.00%;
  height: 21.18%;
  top: 77.45%;
  left: 1.67%;
  animation-delay: 0.7s;
}

#about div.image [src*="6"] {
  width: 18.67%;
  height: 17.06%;
  top: 73.73%;
  left: 64.67%;
  animation-delay: 1.2s;
}

@keyframes about-image {
  0%{
    transform: translateY(-5px);
  }
  50%{
    transform: translateY(5px);
  }
  100%{
    transform: translateY(-5px);
  }
}

/** ***************************************************************************
 * ポイント
 * ************************************************************************* */

#point {
  padding: 30px 20px;
  background: url("../_image/index/point-bg.jpg") center center / cover no-repeat;
  background-attachment: fixed;
}

#point div.body {
  max-width: 1080px;
  padding: 0.5px;
  background-color: #b6b6b6;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-around;
}

@media screen and (min-width:768px) {

  #point {
    padding: 70px 20px;
  }

}

/* iPad */

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {

  #point {
    background-attachment: scroll;
  }

}

/**
 * ポイント共用
 */

#point .section {
  width: calc(100% - 1px);
  margin: 0.5px;
  padding: 0 15px 20px;
  counter-increment: number;
  background: #fff url("../_image/index/point-point.jpg") 15px 0 / 3.7em auto no-repeat;
}

@media screen and (min-width:768px) {

  #point .section {
    width: calc(100% / 2 - 1px);
    padding: 0 35px 40px;
    background-position: 35px 0;
    background-size: 5em auto;
  }

  #point .section.large {
    width: calc(100% - 1px);
  }

}

/* タイトル */

#point .section .section-title {
  margin-top: 36px;
  margin-bottom: 10px;
  line-height: 1.4;
  font-size: 1.286em;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#point .section .section-title::before {
  content: counter(number, decimal-leading-zero);
  margin-right: 15px;
  color: transparent;
  letter-spacing: 0;
  line-height: 1;
  font-family: 'DIN 1451', sans-serif;
  font-size: 3.22em;
  font-weight: 700;
  background: linear-gradient(to bottom, rgb(var(--accentcolor-marutsu-1)), rgb(var(--accentcolor-marutsu-2)));
  background-clip: text;
}

@media screen and (min-width:768px) {

  #point .section .section-title {
    margin-top: 56px;
    font-size: 1.75em;
  }

  #point .section .section-title::before {
    font-size: 3.13em;
  }

}

/* 画像 */

#point .section div.image {
  text-align: center;
}

/** ***************************************************************************
 * コンテンツ一覧
 * ************************************************************************* */

#contents {
  margin-top: 30px;
}

#contents div.body {
  max-width: 1080px;
}

@media screen and (min-width:768px) {

  #contents {
    margin-top: 70px;
  }

}

/**
 * コンテンツ一覧
 */

#contents div.contents ul.list {
  padding: 0.5px;
  background-color: #b6b6b6;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-around;
}

#contents div.contents ul.list li {
  width: calc(100% / 2 - 1px);
  margin: 0.5px;
  padding-bottom: 35%;
  color: #fff;
  font-weight: 600;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 0;
  transition:
    background-size 0.3s ease-in-out 0.0s,
    filter 0.3s ease-in-out 0.0s;
  background-size: 100% 100%;
  filter: contrast(1);
}

#contents div.contents ul.list li:hover {
  background-size: 115% 115%;
  filter: contrast(1.5);
}

#contents div.contents ul.list a {
  width: 100%;
  height: 100%;
  padding: 10px 15px;
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
}

@media screen and (min-width:768px) {

  #contents div.contents ul.list li {
    width: calc(100% / 3 - 1px);
    padding-bottom: 23%;
    font-size: 1.25em;
  }

  #contents div.contents ul.list a {
    padding: 15px;
  }

}
