/* =========================================================
HEADER
========================================================= */
header {
  width: 100px;
  min-height: 100vh;
  background: #fff;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
  position: fixed;
  z-index: 9999;
  transition: all 0.2s;
}
header.active {
  width: 270px;
  transition: all 0.2s;
}
.hdr-inner {
  width: 100%;
  min-height: 100vh;
  position: relative;
}
#hdr_name {
  position: absolute;
  top: 92px;
  left: 40px;
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
}
#hdr_name:hover {
  cursor: default;
}
.hdr-menu {
  width: 170px;
  min-height: 100vh;
  opacity: 0;
  position: fixed;
}
.hdr-menu.active {
  opacity: 1;
  left: 100px;
  /* transition: all 0.2s; */
}
.hdr-btm {
  width: 100%;
  position: absolute;
  bottom: 0;
}
/* menu */
.hdr-menu-icon {
  width: 42px;
  height: 25px;
  position: absolute;
  top: -80px;
  left: 29px;
}
.ham-line {
  height: 2px;
  border-radius: 1px;
  background: #4e4249;
  position: absolute;
}
.line-1 {
  width: 42px;
  top: 0;
  transition: all 0.2s;
}
.line-2 {
  width: 34px;
  top: 10px;
  transition: all 0.2s;
}
.line-3 {
  width: 22px;
  top: 19px;
  transition: all 0.2s;
}
.line-1.active {
  width: 50px;
  top: 8px;
  transform: rotate(45deg);
  transition: all 0.2s;
}
.line-2.active {
  display: none;
}
.line-3.active {
  width: 50px;
  top: 8px;
  transform: rotate(-45deg);
  transition: all 0.2s;
}
#hdr_menu_txt {
  position: relative;
  top: 30px;
}
/* main menu */
.hdr-menu-txt {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: #2c2021;
}
#hdr_logo_mb {
  display: none;
}
.hdr-menu-main-list {
  margin-left: 16px;
}
.hdr-menu {
  margin-top: 40px;
}
.hdr-menu-main-list img {
  position: relative;
  top: -5px;
  margin-right: 10px;
}
.hdr-menu-category-main-list {
  margin-bottom: 42px;
}
.hdr-img-decorate {
  display: none;
}
/* sub menu */
#hdr_menu_category_sub_list {
  width: 202px;
  height: 495px;
  background: #fff;
  position: absolute;
  top: -50px;
  left: -3000px;
  opacity: 0;
}
#hdr_menu_category_sub_list.active {
  position: absolute;
  opacity: 1;
  left: 170px;
  transition: opacity 0.2s;
}
.hdr-menu-category-sub {
  margin-left: 22px;
  margin-bottom: 30px;
}
#hdr_menu_category_sub_list .hdr-menu-category-sub:first-child {
  margin-top: 52px;
}
.hdr-search,
.hdr-contact {
  width: 100%;
  height: 80px;
}
.hdr-search span,
.hdr-contact span {
  margin-top: 5px;
}
.hdr-search {
  background: #965978;
}
.hdr-contact {
  background: #d5af5b;
}
.hdr-area {
  width: 100px;
}
/* =========================================================
FOOTER
============================================================ */
footer {
  background-image: url("../img/ftr-bg.svg");
  background-size: cover;
  background-repeat: no-repeat;
  margin-top: -100px;
  z-index: 999;
  position: relative;
}
.ftr-inner {
  padding-top: 181px;
  position: relative;
}
.ftr-navs {
  height: 300px;
}
.ftr-first {
  position: absolute;
  left: 0;
}
.ftr-first > .ftr-menu-category-main-list:nth-child(2) {
  padding-top: 30px;
}
.ftr-second {
  width: 800px;
  position: absolute;
  left: 150px;
  display: flex;
  justify-content: space-between;
}
.ftr-menu-category {
  margin-bottom: 23px;
}
.ftr-menu-category-sub {
  margin-bottom: 18px;
  margin-left: 54px;
}
.ftr-menu-category-sub-list {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  height: 130px;
}
.ftr-contacts {
  width: 660px;
  position: absolute;
  top: 395px;
  left: 0;
}
.ftr-btn {
  width: 324px;
  height: 55px;
  border-radius: 3px;
  background: #d5af5b;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
  line-height: 55px;
  position: relative;
}
.ftr-arrow-to-right {
  position: relative;
  top: -22px;
  left: 13px;
  margin-right: 14px;
}
.ftr-contact-img {
  position: absolute;
  top: 16px;
  right: 13px;
}
.ftr-pdf {
  top: 20px;
}
.ftr-decoration-img {
  position: absolute;
  top: 240px;
  right: 0;
}
/* 会社ロゴなど */
.ftr-btm {
  margin-top: 17px;
  padding-top: 28px;
  border-top: 1px solid #ededed;
  padding-bottom: 36px;
}
.ftr-btm-info {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  margin-left: 28px;
}
/* copyright */
.ftr-copyright {
  width: 100%;
  height: 50px;
  background-color: #4e4249;
  text-align: center;
  line-height: 50px;
}
.ftr-copyright p {
  display: inline;
}

@media screen and (max-width: 640px) {
  /* =========================================================
  HEADER
  ========================================================= */
  header {
    width: 43px;
    height: 43px;
    min-height: initial;
    background: #965978;
    opacity: 0.8;
    position: fixed;
    top: 0;
    right: 0;
  }
  header.active {
    width: 100%;
    height: 100%;
    opacity: 1;
    background-color: #4e4249;
    position: relative;
    transition: none;
  }
  .hdr-inner {
    width: 43px;
    height: 43px;
    min-height: initial;
    margin-left: auto;
  }
  .hdr-inner.active {
    width: 100%;
    height: 100%;
    position: relative;
  }
  #hdr_name {
    display: none;
  }
  .hdr-logo {
    display: none;
  }
  .hdr-menu {
    width: 0;
    margin-top: -12px;
    z-index: 999;
  }
  .hdr-menu.active {
    width: 100vw;
    left: initial;
    right: 0;
    background-color: #4e4249;
    position: relative;
    margin-top: initial;
  }
  .hdr-menu-icon {
    width: 30px;
    height: 18px;
    position: absolute;
    top: -30px;
    left: 6px;
  }
  .hdr-menu-icon.active {
    width: 32px;
    height: 32px;
    z-index: 999;
    position: absolute;
    top: 25px;
    right: 10px;
    left: initial;
  }
  .ham-line {
    background: #ffffff;
  }
  .line-1 {
    width: 30px;
    top: 0;
  }
  .line-2 {
    width: 24px;
    top: 7px;
  }
  .line-3 {
    width: 15px;
    top: 14px;
  }
  .line-1.active {
    width: 32px;
    top: 3px;
    right: 5px;
  }
  .line-2.active {
    display: none;
  }
  .line-3.active {
    width: 32px;
    top: 3px;
    right: 5px;
  }
  #hdr_menu_txt {
    display: none;
  }
  .hdr-btm.active {
    position: absolute;
    top: 0;
    right: 0;
  }
  /* main menu */
  .hdr-menu-txt {
    font-family: "Noto Serif JP", serif;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 0.06em;
    text-align: left;
    color: #fff;
  }
  #hdr_logo_mb {
    display: none;
    position: absolute;
    top: 3000px;
  }
  #hdr_logo_mb.active {
    top: 0;
    display: block;
  }
  .hdr-menu-main-list {
    width: calc(100% - 48px);
    margin: 0px auto;
    padding-top: 136px;
    position: relative;
  }
  .hdr-menu-category-main-list {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ffffff;
  }
  .hdr-menu-category-main-list:last-child {
    border-bottom: none;
  }
  .hdr-menu-category-main-list.active {
    height: 430px;
  }
  #hdr_menu_category_sub_list {
    height: auto;
    margin: 0 auto;
    display: none;
    background-color: initial;
  }
  #hdr_menu_category_sub_list.active {
    width: 100%;
    top: initial;
    left: 0;
    position: relative;
    display: block;
    transition: display 0.2s;
    margin-top: -26px;
  }
  .hdr-img-decorate {
    display: none;
    margin-left: auto;
    margin-right: 24px;
  }
  .hdr-img-decorate.active {
    display: block;
    padding-bottom: 90px;
  }
  .hdr-search,
  .hdr-contact {
    position: fixed;
    width: 50%;
    height: 53px;
    flex-direction: row;
  }
  .hdr-search img,
  .hdr-contact img {
    margin-right: 10px;
  }
  .hdr-search {
    bottom: 0;
    left: 0;
  }
  .hdr-contact {
    bottom: 0;
    right: 0;
  }
  .hdr-search.active,
  .hdr-contact.active {
    display: none;
  }
  .hdr-contact-mb {
    width: 100%;
    height: 70px;
    background: #d5af5b;
    position: absolute;
    bottom: 0px;
    line-height: 70px;
    text-align: center;
  }
  .hdr-area {
    display: none;
  }
  /* =========================================================
  FOOTER
  ========================================================= */
  footer {
    background-image: url("../img/ftr-bg-mb.png");
    overflow: hidden;
  }
  .ftr-inner {
    padding-top: 120px;
  }
  .ftr-navs {
    height: auto;
    flex-direction: column;
  }
  .ftr-menu-category-main-list {
    border-bottom: 1px solid #fff;
  }
  .ftr-first {
    position: relative;
  }
  .ftr-first > .ftr-menu-category-main-list:nth-child(2) {
    padding-top: 0;
  }
  .ftr-second {
    width: 100%;
    flex-direction: column;
    position: relative;
    left: initial;
  }
  .ftr-menu-category {
    padding-top: 20px;
    padding-bottom: 20px;
    margin-bottom: 0;
  }
  .ftr-menu-category-sub {
    margin-left: 20px;
  }
  .ftr-menu-category-sub-list {
    height: auto;
  }
  .ftr-second > .ftr-menu-category-main-list:last-child {
    border-bottom: none;
  }
  .ftr-contacts {
    width: 100%;
    margin-top: 51px;
    position: relative;
    top: initial;
    left: initial;
  }
  .ftr-btn {
    width: 100%;
    margin: 0 auto;
    margin-bottom: 16px;
  }
  /* contacts */
  .ftr-logo {
    text-align: center;
  }
  .ftr-btm-info {
    margin-right: auto;
    margin-top: 15px;
    line-height: 20px;
    text-align: left;
  }
}
