@charset "utf-8";

/** ***************************************************************************
 * 変数
 * ************************************************************************* */

:root {
  --corporate-color: #154388;
  --fontfamily-noto: 'Noto Sans JP', sans-serif;
  --fontfamily-roboto: 'Roboto', sans-serif;
  --base-color: #333;
}

/** ***************************************************************************
 * 全体
 * ************************************************************************* */

body {
  color: #fff;
  line-height: 1.75;
  font-size: 14px;
  font-family: var(--fontfamily-noto);
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 400;
  background-color: var(--corporate-color);
  overflow-x: hidden;
  position: relative;
  z-index: 0;
}

body::after {
  content: '';
  width: 100%;
  height: 100%;
  background-image: url('../_image/_common/image-bg-2.png');
  opacity: 0.3;
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
}

a {
  color: inherit;
}

a[href]:hover {
  text-decoration: none;
}

@media screen and (min-width: 768px) {
  body {
    font-size: 16px;
  }
}

/**
 * レイアウト用
 */

div.body {
  width: 100%;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media screen and (min-width: 768px) {
  a[href*='tel:'] {
    color: inherit;
    cursor: default;
    pointer-events: none;
    text-decoration: none !important;
  }
}

/** ***************************************************************************
 * ヘッダー
 * ************************************************************************* */

#header {
  padding-top: 20px;
  background: url('../_image/_common/image-bg-1.jpg') top center / cover no-repeat;
  position: relative;
  z-index: 100;
}

@media screen and (min-width: 768px) {
  #header {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}

/**
 * ロゴ
 */

#header div.logo {
  margin-left: 10px;
  position: relative;
  z-index: 2;
}

#header div.logo .title {
  color: var(--corporate-color);
  letter-spacing: 3px;
  line-height: 1;
  font-family: var(--fontfamily-roboto);
  font-size: 4.875em;
  font-weight: 800;
}

#header div.logo .title a {
  text-decoration: none;
  display: inline-block;
}

@media screen and (min-width: 768px) {
  #header div.logo {
    width: 100%;
    margin-left: 0;
  }

  #header div.logo .title {
    letter-spacing: 4px;
    font-size: 8.75em;
  }
}

/** ***************************************************************************
 * ハンバーガー
 * ************************************************************************* */

#header div.drawer-trigger {
  width: 66px;
  height: 52px;
  padding: 14px 10px 10px;
  color: #fff;
  background-color: var(--corporate-color);
  cursor: pointer;
  position: fixed;
  z-index: 3;
  right: 20px;
  transition: background-color 0.3s ease-in-out 0s, top 0.3s ease-in-out 0s;
  top: 28px;
}

body.global-nav-active #header div.drawer-trigger {
  background-color: #fff;
  top: 0;
}

body.scroll-active #header div.drawer-trigger {
  top: 10px;
}

@media screen and (min-width: 768px) {
  #header div.drawer-trigger {
    display: none;
  }
}

/**
 * タイトル
 */

#header div.drawer-trigger div.title {
  margin-bottom: 6px;
  letter-spacing: 2px;
  line-height: 1;
  font-family: var(--fontfamily-roboto);
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  transition: color 0.3s ease-in-out 0s;
}

#header div.drawer-trigger div.title::before {
  content: 'MENU';
}

body.global-nav-active #header div.drawer-trigger div.title::before {
  content: 'CLOSE';
}

body.global-nav-active #header div.drawer-trigger {
  color: var(--corporate-color);
}

/**
 * ライン
 */

#header div.drawer-trigger div.icon {
  width: 100%;
  position: relative;
}

#header div.drawer-trigger div.icon i {
  width: 100%;
  border-top: 1px solid #fff;
  transform-origin: center center;
  position: absolute;
  left: 0;
  transition: border-color 0.3s ease-in-out 0s, transform 0.3s ease-in-out 0s;
  transform: rotate(0) translateY(0);
}

body.global-nav-active #header div.drawer-trigger div.icon i {
  border-color: var(--corporate-color);
}

/* 上 */
#header div.drawer-trigger div.icon i:nth-child(1) {
  top: 0;
}

body.global-nav-active #header div.drawer-trigger div.icon i:nth-child(1) {
  transform: rotate(195deg) translate(-1px, -4px);
}

/* 下 */
#header div.drawer-trigger div.icon i:nth-child(2) {
  top: 8px;
}

body.global-nav-active #header div.drawer-trigger div.icon i:nth-child(2) {
  transform: rotate(-195deg) translate(-1px, 3px);
}

/** ***************************************************************************
 * グローバルナビ / ハンバーガーメニュー
 * ************************************************************************* */

@media screen and (max-width: 767px) {
  #global-nav {
    width: 100vw;
    height: 100vh;
    padding: 40px 0;
    background-color: var(--corporate-color);
    position: fixed;
    z-index: 2;
    top: 0;
    transition: left 0.2s ease-in-out 0s;
    left: 150vw;
  }

  #global-nav::after {
    content: '';
    width: 100%;
    height: 100%;
    mix-blend-mode: soft-light;
    background-image: url('../_image/_common/image-bg-2.png');
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
  }

  body.global-nav-active #global-nav {
    left: 0;
  }

  #global-nav ul.list {
    height: 100%;
    padding: 40px 10%;
    overflow: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    position: relative;
    transition: visibility 0.4s ease-in-out 0.3s, opacity 0.4s ease-in-out 0.3s, top 0.4s ease-in-out 0.3s;
    visibility: hidden;
    opacity: 0;
    top: 10vw;
  }

  body.global-nav-active #global-nav ul.list {
    visibility: visible;
    opacity: 1;
    top: 0;
  }

  #global-nav ul.list li {
    text-align: center;
  }

  #global-nav ul.list li a {
    padding: 1em;
    text-decoration: none;
    display: inline-block;
  }

  #global-nav ul.list li a::before {
    content: attr(data-en);
    margin-bottom: 5px;
    letter-spacing: 2px;
    line-height: 1;
    font-family: var(--fontfamily-roboto);
    font-size: 1.86em;
    font-weight: 400;
    display: block;
  }
}

/** ***************************************************************************
 * メイン
 * ************************************************************************* */

#main {
}

/** ***************************************************************************
 * フッター
 * ************************************************************************* */

#footer {
  padding: 20px 0;
  position: relative;
  z-index: 1;
}

@media screen and (min-width: 768px) {
  #footer {
    padding: 30px 0;
  }
}

/**
 * ロゴ
 */

#footer div.logo {
  letter-spacing: 4px;
  line-height: 1;
  font-family: var(--fontfamily-roboto);
  font-size: 2.86em;
  font-weight: 700;
  text-align: center;
}

@media screen and (min-width: 768px) {
  #footer div.logo {
    font-size: 3.125em;
  }
}

/**
 * ページトップ
 */

#footer div.pagetop {
  width: 40px;
  position: fixed;
  z-index: 90;
  right: 20px;
  bottom: 20px;
  transition: visibility 0.3s ease-in-out 0s, opacity 0.3s ease-in-out 0s;
  visibility: hidden;
  opacity: 0;
}

body.scroll-active #footer div.pagetop {
  visibility: visible;
  opacity: 1;
}

#footer.displayed div.pagetop {
  position: absolute;
  top: 20px;
  bottom: auto;
}

@media screen and (min-width: 768px) {
  #footer div.pagetop {
    width: 50px;
  }

  #footer.displayed div.pagetop {
    position: fixed;
    top: auto;
    bottom: 20px;
  }
}

/**
 * コピーライト
 */

#footer div.copyright {
  margin-top: 10px;
  line-height: 1;
  font-size: 0.75em;
  text-align: center;
}

@media screen and (min-width: 768px) {
  #footer div.copyright {
    margin-top: 20px;
    font-size: 0.875em;
  }
}
