@charset "utf-8";

/* CSS property order convention: */
/* Layout */
/* Box Model */
/* Background & Border */
/* Typography */
/* Visual Effects */
/* Misc */

/* ########################################
ヘッダー(全体)
######################################## */

header {
  /* Layout */
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Box Model */
  height: 50px;
  /* Visual Effects */
  background-color: var(--basecolor);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);  
}

/* ########################################
ヘッダー(ハンバーガーメニュー:レスポンジブ用)
######################################## */

#toggle-menu-button {
  position: absolute;
  right: 0;
  display: none;
  background-image: url("/img/common/icon-menu.png");
  background-size: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  border: none;
  border-radius: 0;
  outline: none;
}

/* ########################################
ヘッダー(名前, ナビゲーション)
######################################## */

header #logo {
  margin-left: 30px;
  margin-right: 30px;
  text-decoration: none;
  font-size: 22px;
  color: var(--textcolor);
}

#nav-contact-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

#nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item {
  margin-left: 30px;
  margin-right: 30px;
  list-style: none;
}

.nav-item a {
  text-decoration: none;
  color: var(--textcolor);
}

.icon img {
  vertical-align: middle;
}

header .nav-item {
  transition: transform 0.2s, filter 0.2s;
}

header .nav-item:hover {
  transform: scale(1.15);
}

/* ########################################
フッター
######################################## */

footer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 180px;
  padding-top: 20px;
  margin-top: 100px;
  background-color: var(--accentcolor);
}

footer #logo {
  margin-left: 30px;
  margin-right: 30px;
  text-decoration: none;
  font-size: 36px;
  color: var(--basecolor);
}

#footer-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer .nav-item a {
  text-decoration: none;
  color: var(--basecolor);
}

#copyright {
  font-size: 14px;
  text-align: center;
  color: var(--basecolor);
}

footer .icon {
  filter: brightness(0) invert(100%);
}

footer .nav-item {
  transition: transform 0.2s, filter 0.2s;
}

footer .nav-item:hover {
  transform: scale(1.15);
}

/* ########################################
ボタン
######################################## */

header .button, footer .button {
  margin-top: 0px;
  margin-bottom: 0px;
  text-align: center;
}

header .button a, footer .button a {
  border-radius: 9999px;
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 3px 25px 3px 15px;
  text-decoration: none;
  line-height: 1.8;
  transition: 0.3s ease-in-out;
  font-weight: 500;
  white-space: nowrap;
}

header .button a {
  background: var(--textcolor);
  color: var(--basecolor);
}

footer .button a {
  background: var(--basecolor);
  color: var(--textcolor);
}

header .button a:after, footer .button a:after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.0rem;
  width: 6px;
  height: 6px;
  border-top: solid 2px currentColor;
  border-right: solid 2px currentColor;
  transform: translateY(-50%) rotate(45deg);
  transition: right 0.3s;
}

@media (max-width: 1280px) {
  
  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
  }

  #toggle-menu-button {
    display: block;
    width: 50px;
    height: 50px;
    margin-right: 10px;
  }

  header #logo {
    margin-left: auto;
    margin-right: auto;
  }

  #navigation {
    height: calc(60px * 9);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background-color: var(--accentcolor);
  }

  #nav-list {
    display: block;
    text-align: center;
  }

  #navigation.is-show {
    display: block;
  }

  .nav-item {
    height: 60px;
    width: 100%;
    font-size: 18px;
    line-height: 50px;
    margin-left: auto;
    margin-right: auto;
  }

  .nav-item a {
    color: var(--basecolor);
  }

  .icon {
    filter: brightness(0) invert(100%);
  }

  
  header .button a {
    background: var(--basecolor);
    color: var(--textcolor);
  }

  footer {
    height: 120px;
    margin-top: 0px;
  }

  footer #logo {
    margin-left: auto;
    margin-right: auto;
  }

  #copyright {
    font-size: 12px;
  }

}