@charset "UTF-8";

:root {
  /* Colors */
  --color-bl: #303030;
  --color-wh: #fdfdfd;
  --color-bg: #3e3e3e;
  --color-gr1: #f5f5f5;
  --color-gr2: #e3e3e3;
  --color-gr3: #d4d4d4;
  --color-gr4: #c5c5c5;

  /* Fonts */
  --font-en: "Agbalumo", cursive;
  --font-size-14: 14px;
  --font-size-16: 16px;
}

html,
body {
  height: 100%;
}

html {
  font-size: 100%;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--color-bl);
  background-color: var(--color-wh);
  line-height: 1;
  font-weight: 350;
}

/* 全体のラッパーにFlexbox */
.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 960px;
  margin: 0 auto;
  padding-left: 50px;
  padding-right: 50px;
}

/* mainが残りの高さを埋める */
main {
  flex: 1;
}

a {
  text-decoration: none;
}

nav ul li {
  color: var(--color-bl);
  list-style: none;
  font-size: var(--font-size-16);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-en);
}

h1 {
  font-size: 130px;
}

h2 {
  font-size: 90px;
  text-align: center;
  margin-bottom: 12px;
}

h3 {
  font-size: 65px;
  text-align: center;
}

h4 {
  font-size: 28px;
}

.contact {
  width: 100%;
  height: 352px;
  background-color: var(--color-bg);
  padding: 64px 0;
  position: relative;
  z-index: 10;
}
.contact h3,
.contact p {
  color: var(--color-wh);
}

.contact p {
  text-align: center;
  font-size: var(--font-size-14);
  margin: 32px 0 64px;
}

.contact .btn {
  display: block;
  background-color: var(--color-wh);
  width: 200px;
  height: 48px;
  font-size: var(--font-size-16);
  font-weight: 450;
  border-radius: 50px;
  color: var(--color-bg);
  margin: 0 auto;
  text-align: center;
  padding: 16px 0;
}

footer {
  width: 100%;
  text-align: center;
}

footer p {
  font-size: 11px;
}

footer .copyright {
  padding: 32px 0;
}

.hamburger,
.sp-nav {
  display: none;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 64px;
  margin: 0 auto;
}

.logo {
  height: 64px;
  width: auto;
}

nav ul {
  display: flex;
}

nav li {
  margin-left: 40px;
}
nav a {
  color: var(--color-bl);
}

nav a:hover {
  text-decoration: underline;
}

.sp-only {
  display: none;
}

/* ===== Logo safety (global) ===== */
/* デフォルト：白ロゴは絶対に出さない */
.logo--wh {
  display: none !important;
}
.logo--bl {
  display: block !important;
}

/* メニューを開いた時だけ白にする */
body.is-menu-open .logo--bl {
  display: none !important;
}
body.is-menu-open .logo--wh {
  display: block !important;
}

/*-------------------------------------------
SP
-------------------------------------------*/
@media screen and (max-width: 767px) {
  .hamburger,
  .sp-nav {
    display: block;
  }

  .wrapper {
    max-width: 85%;
    padding-left: 0px;
    padding-right: 0px;
  }

  h1 {
    font-size: 110px;
    line-height: 0.9;
  }

  h2 {
    font-size: 60px;
  }

  .logo {
    height: 64px;
  }

  nav {
    display: none;
  }

  .header {
    padding-top: 32px;
  }

  .contact {
    height: 258px;
    padding: 18px 0 32px;
  }

  .contact p {
    text-align: center;
    font-size: var(--font-size-14);
    margin: 24px 0;
    line-height: 1.7;
  }

  .sp-only {
    display: inline;
  }

  .hamburger {
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 30;
  }

  /* ハンバーガーメニューの線の設定（メニューが閉じている時） */
  .hamburger span {
    width: 32px;
    height: 3px;
    background: var(--color-bl);
    position: absolute;
    top: 0;
    right: 0;
  }
  /* 1本目の線の位置を設定 */
  .hamburger span:nth-child(1) {
    top: 17px;
  }
  /* 2本目の線の位置を設定 */
  .hamburger span:nth-child(2) {
    top: 26px;
  }
  /* 3本目の線の位置を設定 */
  .hamburger span:nth-child(3) {
    top: 36px;
  }
  /*
ハンバーガーメニューの線の設定（メニューが開いている時）
1本目の線を-45度回転
*/
  .hamburger.active span:nth-child(1) {
    top: 25px;
    left: 8px;
    transform: rotate(-45deg);
  }
  /* 2本目と3本目は重ねて45度回転 */
  .hamburger.active span:nth-child(2),
  .hamburger.active span:nth-child(3) {
    top: 25px;
    transform: rotate(45deg);
  }
  .hamburger.active span {
    background: #fff;
  }
  /*
メニューの設定
最初は閉じている状態なので、「opacity: 0;」「visibility: hidden;」
で要素を非表示にしておく
*/
  .sp-nav {
    width: 100%;
    height: 100vh;
    background-color: rgba(62, 62, 62, 0.9);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    opacity: 0;
    transition:
      opacity 0.6s ease,
      visibility 0.6s ease;
    visibility: hidden;
  }
  /*
ハンバーガーメニューがクリックされた際に、jQueryで.sp-navにactiveクラスを追加して、
メニューを表示させる。
*/
  .sp-nav.active {
    opacity: 1;
    visibility: visible;
  }

  .sp-nav .sp-menu {
    position: absolute;
    top: 160px;
    left: 64px;
    display: block; /* ← flexを無効化して縦並びに */
  }
  .sp-nav .sp-menu li {
    margin-bottom: 48px;
    margin-left: 0;
  }
  .sp-nav .sp-menu a {
    color: #fff;
    font-size: 24px;
  }
  .sp-nav-header {
    display: flex;
    align-items: center;
    margin: 0 auto;
    padding: 32px 0;
    width: 85%;
  }
  .hamburger.active {
    position: fixed;
    right: 7.5%;
  }

  footer .copyright {
    padding: 16px 0;
  }

  .sp-nav__logo {
    margin-bottom: 24px;
  }

  .logo a {
    position: relative;
    display: block;
  }
  .logo img {
    display: block;
    height: auto;
  }

  .logo--wh {
    display: none;
  }

  body.is-menu-open .logo--bl {
    display: none;
  }
  body.is-menu-open .logo--wh {
    display: block;
  }

  /* メニューOPENの時だけ、sp-navより前面に出す */
  body.is-menu-open .site-header,
  body.is-menu-open .header,
  body.is-menu-open .logo {
    position: relative;
    z-index: 30;
  }
}
