@charset "UTF-8";
@import url(breakpoints.css);

:root {
  /* navi */
  --var-c-button-border: #333;
  --var-s-button-border: 1px;
  --var-c-button-text: #333;
  --var-s-buttonimg-height: 150px;
  --var-s-buttonimg-weight: 150px;
  --var-s-buttontext-text: 16px;
  --var-c-buttontext-text: #fff;
  --var-c-buttontext-back: rgba(0, 0, 0, .4);
}

/* リンクを並べる */
.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px auto;
}

/* #region ===== ボタン ===== */
.card {
  border: var(--var-s-button-border) solid var(--var-c-button-border);
  color: var(--var-c-button-text);
  display: flex;
  justify-content: space-between;
  width: 170px;
  margin: 20px auto;
  height: 170px;
  text-decoration: none;
  text-align: center;
}

figure {
  width: var(--var-s-buttonimg-weight);
  height: var(--var-s-buttonimg-height);
  margin: 10px;
  overflow: hidden;
  position: relative;
}

/* ナビ画像個別調整 */
.img-message {
  width: 100%;
  height: 100%;
  transition: .4s;
  object-fit: cover;
}

.img-philosophy {
  width: 100%;
  height: 100%;
  transition: .4s;
  object-fit: cover;
}

.img-outline {
  width: 100%;
  height: 100%;
  transition: .4s;
  object-fit: cover;
}

.img-history {
  width: 100%;
  transition: .4s;
  object-fit: cover;
}

.img-access {
  height: 100%;
  transition: .4s;
  object-fit: cover;
}

figure::after {
  color: var(--var-c-buttontext-text);
  font-size: var(--var-s-buttontext-text);
  background: var(--var-c-buttontext-back);
  content: 'Read More';
  letter-spacing: .2em;
  text-align: center;
  padding-top: 41%;
  width: 100%;
  height: 100%;
  display: block;
  transition: .8s;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

a:hover figure::after {
  opacity: 1;
}

a:hover figure img {
  transform: scale(1.1);
}

a:hover {
  text-decoration: underline;
}

.right p {
  margin: 0;
  padding: 10px 20px;
}

.upper {
  font-size: 110%;
  font-weight: 600;
  padding-bottom: 20px;
}

/* #endregion */


/* #region ===== 会社案内navi SP用 ===== */
.nav-wrap {
  position: relative;
}

.scroll-nav {
  width: 100%;
  background: #d8d8d8;
  /* メニューの背景色 */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* 慣性スクロール */
}

.scroll-nav ul {
  max-width: 500px;
  /* メニューの最大幅 */
  min-width: 475px;
  /* メニューの最小幅 */
  height: 40px;
  line-height: 40px;
  margin: 0 auto;
  list-style: none;
  padding-right: 25px;
  /* 右側の固定分余白を空ける */
}

.scroll-nav ul li {
  float: left;
  width: 80px;
  /* メニューの個別の幅 */
  text-align: center;
}

.scroll-nav ul .vav_sp_top {
  width: 130px;
  /* メニューの個別の幅 */
}

.scroll-nav ul li:hover {
  background: #222;
  /* マウスホバー時の背景色 */
}

.scroll-nav ul li a {
  display: inline-block;
  color: #50b9ff;
  /* メニューの文字色 */
  text-decoration: none;
}

.next-btn {
  /* 右側に固定する部分 */
  position: absolute;
  top: 0;
  right: 0;
  width: 25px;
  /* 固定部分の幅 */
  height: 40px;
  /* メニューの高さに合わせる */
  line-height: 40px;
  background: #fff;
  color: #555;
}

/* #endregion */