@charset "utf-8";

/*========= 途中からハンバーガーメニューに変化するのためのCSS ===============*/

/*========= ボタンのためのCSS ===============*/

/*ボタン全体の形状*/
.openbtn {
  /*はじめは非表示に*/
  display: none;
  /*ボタンの位置*/
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 999;
  /*ボタンの形状*/
  background: #666;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 5px;
}

/*ボタンのアイコン設定*/
.openbtn span {
  display: inline-block;
  transition: all .4s;
  position: absolute;
  left: 14px;
  height: 3px;
  border-radius: 2px;
  background-color: #fff;
  width: 45%;
}

.openbtn span:nth-of-type(1) {
  top: 15px;
}

.openbtn span:nth-of-type(2) {
  top: 23px;
}

.openbtn span:nth-of-type(3) {
  top: 31px;
}

/*activeクラスが付与された後のボタンのアイコン設定*/
.openbtn.active span:nth-of-type(1) {
  top: 18px;
  left: 18px;
  transform: translateY(6px) rotate(-45deg);
  width: 30%;
}

.openbtn.active span:nth-of-type(2) {
  opacity: 0;
}

.openbtn.active span:nth-of-type(3) {
  top: 30px;
  left: 18px;
  transform: translateY(-6px) rotate(45deg);
  width: 30%;
}

/*fadeDownクラスが付与された後のボタンの出現アニメーション設定*/
.fadeDown {
  animation-name: fadeDownAnime;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  opacity: 0;
  display: block;
}

@keyframes fadeDownAnime {
  from {
    opacity: 0;
    transform: translateY(-100px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fadeDown2 {
  opacity: 1;
  display: block;
}

/*========= ヘッダーナビゲーションのためのCSS ===============*/

/*==ヘッダーの形状*/

/*.doneクラスがついたヘッダー*/
#header.dnone {
  opacity: 0;
  /*透過0にして非表示に*/
}

/*メニューボタンをクリックした際に付与されるpanelactiveクラスがついたら*/
#header.dnone.panelactive {
  opacity: 1;
  /*不透明にして出現*/
}


/*==ヘッダーのテキストナビゲーションの形状*/
#g-navi.open2 {
  display: block;
}

#g-navi ul {
  list-style: none;
  display: flex;
  /* justify-content: center; */
}

#g-navi ul li a {
  display: block;
  text-decoration: none;
  color: #000;
  padding: 10px;
}

#g-navi ul li.current a,
#g-navi ul li a:hover {
  color: #ff0000;
}

/*.doneクラスがついたヘッダーのテキストナビゲーションの形状*/
#header.dnone #g-navi {
  /*固定位置にして最背面に*/
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  /*高さと幅*/
  width: 100%;
  height: 100vh;
  /*天地中央＆テキスト中央揃え*/
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  /*はじめは透過0に*/
  opacity: 0;
  transition: all 0.4s;
}

/*メニューボタンをクリックした際に付与されるpanelactiveクラスがついたナビゲーションの形状*/
#header.dnone.panelactive #g-navi {
  opacity: 1;
  /*不透明に*/
  z-index: 3;
  /*最前面に*/
  background: #eee;
}

#header.dnone.panelactive #g-navi ul {
  display: block;
  /*flexの横並びをblockにして縦並びに*/
}


/*リストの形状*/

#header.dnone.panelactive #g-navi li a {
  color: #333;
  text-decoration: none;
  padding: 10px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: bold;
  transition: all 0.3s;
}

section {
  position: relative;
  z-index: 1;
}


/*========= レイアウトのためのCSS ===============*/

h1 {
  font-size: 1.2rem;
}

h2 {
  font-size: 1.2rem;
  text-align: center;
  margin: 0 0 30px 0;
}

.mainBlock>p {
  margin-top: 20px;
}

small {
  background: #333;
  color: #fff;
  display: block;
  text-align: center;
  padding: 20px;
}


section {
  padding: 30px;
}


section:nth-child(2n) {
  background: #f3f3f3;
}

@media screen and (max-width: 767px) {
  #g-navi {
    display: none;
  }

  #header.panelactive {
    opacity: 1 !important;
    /*不透明にして出現*/
  }

  #header.panelactive #g-navi.open2 {
    opacity: 1 !important;
    /*不透明に*/
    z-index: 3 !important;
    /*最前面に*/
    background: #eee;
  }

  #header.panelactive #g-navi.open2 ul {
    display: block !important;
    /*flexの横並びをblockにして縦並びに*/
  }

  #header #g-navi.open2 {
    /*固定位置にして最背面に*/
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    /*高さと幅*/
    width: 100%;
    height: 100vh;
    /*天地中央＆テキスト中央揃え*/
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /*はじめは透過0に*/
    opacity: 0;
    transition: all 0.4s;
  }

  /*リストの形状*/
  #header.panelactive #g-navi.open2 li a {
    color: #333;
    text-decoration: none;
    padding: 10px;
    display: block !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
    transition: all 0.3s;
  }
}

@media screen and (min-width: 768px) {
  .side {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    height: 210px;
    width: 135px;
    background-color: #121212;
    z-index: 10;
    border-radius: 10px 0 0 10px;
  }

  .sideNavi {
    text-align: left;
  }

  .sideNaviReservation {
    display: block;
    border: 10px solid #121212;
    background-color: #EB5E01;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 20px;
  }

  .sideNaviReservationLabel {
    font-weight: 500;
    font-size: 12px;
    line-height: 1.4166666667;
    text-align: center;
    color: #fff;
    margin-top: 6px;
  }

  .sideNaviReservationIcon {
    width: 20px;
    margin: auto;
  }

  .sideNaviLink {
    display: block;
    height: 40px;
    position: relative;
    padding-top: 11px;
    padding-bottom: 12px;
  }

  .sideNaviLinkLabel {
    font-weight: 500;
    font-size: 12px;
    line-height: 1.4166666667;
    color: #fff;
    padding-left: 45px;
  }

  .naviIcon {
    position: absolute;
    left: 17px;
    top: 0;
    bottom: 0;
    margin: auto;
  }

  .naviIcon--model-house {
    width: 18px;
    height: 24px;
  }

  .naviIcon--materials {
    width: 18px;
    height: 21px;
  }

  .naviIcon--contact {
    width: 18px;
    height: 18px;
  }
}

@media screen and (max-width: 767px) {
  .side {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #000000;
    z-index: 99;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    transition: 0.25s;
    opacity: 0;
    pointer-events: none;
  }

  .side.active {
    opacity: 1;
    pointer-events: all;
  }

  .sideNavi {}

  .sideNavi+.sideNavi {
    border-left: 1px solid #707070;
  }

  .sideNaviReservation {
    display: block;
    border: 5px solid #000000;
    background-color: #EB5E01;
    padding-top: 8px;
    padding-bottom: 6px;
  }

  .sideNaviReservationLabel {
    font-weight: 500;
    font-size: 12px;
    line-height: 1.4166666667;
    text-align: center;
    color: #fff;
    margin-top: 3px;
  }

  .sideNaviReservationIcon {
    width: 20px;
    margin: auto;
  }

  .sideNaviLink {
    display: block;
    position: relative;
    padding-top: 17px;
  }

  .sideNaviLinkLabel {
    font-weight: 500;
    font-size: 12px;
    line-height: 1.4166666667;
    color: #fff;
    text-align: center;
    margin-top: 5px;
  }

  .naviIcon {
    margin: auto;
    height: 24px;
  }

  .naviIcon--model-house {
    width: 18px;
  }

  .naviIcon--materials {
    width: 18px;
    padding-top: 2px;
    padding-bottom: 1px;
  }

  .naviIcon--contact {
    width: 18px;
    padding-top: 3px;
    padding-bottom: 3px;
  }
}

@media screen and (max-width: 767px) {
  #header{
    height: 70px;
    width:100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background:#fff;
    color:#333;
    text-align: center;
    /* padding: 20px; */
  }

  .openbtn {
    display: none;
  }

  /*openbtn2*/
  .openbtn2 {
    /*はじめは非表示に*/
    display: block;
    /*ボタンの位置*/
    position: fixed;
    top: 1px;
    right: 10px;
    z-index: 999;
    /*ボタンの形状*/
    /* background: #ff0; */
    cursor: pointer;
    width: 50px;
    height: 50px;
    /* border-radius: 5px; */
  }

  /*ボタンのアイコン設定*/
  .openbtn2 span {
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 10px;
    height: 3px;
    border-radius: 2px;
    background-color: #707070;
    width: 60%;
  }

  .openbtn2 span:nth-of-type(1) {
    top: 11px;
  }

  .openbtn2 span:nth-of-type(2) {
    top: 22px;
  }

  .openbtn2 span:nth-of-type(3) {
    top: 34px;
  }

  /*activeクラスが付与された後のボタンのアイコン設定*/
  .openbtn2.active span:nth-of-type(1) {
    top: 18px;
    left: 15px;
    transform: translateY(6px) rotate(-45deg);
    width: 45%;
  }

  .openbtn2.active span:nth-of-type(2) {
    opacity: 0;
  }

  .openbtn2.active span:nth-of-type(3) {
    top: 30px;
    left: 15px;
    transform: translateY(-6px) rotate(45deg);
    width: 45%;
  }
}

@media screen and (min-width: 768px) {  
  .openbtn2 {
    display: none;
  }
  #header{
    height: 130px;
    width:100%;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background:#fff;
    color:#333;
    /* text-align: center; */
    /* padding: 20px; */
  }
  #header.panelactive ul#menu1 {
    background-color: #fff;
  }
  ul#menu1 {
    font-size: clamp(13px, 1.6vw, 14px) !important;
    margin-right: 30px;
    display: flex;
    justify-content: flex-end;
  }
  ul#menu1 li {
    padding-left: 10px;
    padding-right: 10px;
    text-align: right !important;
  }
  ul#menu1 li:last-child {
    padding-right: 0px !important;
  }

  ul#menu1 li#imageMenu {
    width: 15%;
  }
  ul#menu1 li#imageMenu img {
    width: 100%;
    max-width: 200px;
  }
  ul#menu2 {
    font-size: clamp(13px, 1.6vw, 14px) !important;
    margin-right: 30px;
    margin-top: 20px;
  }
  ul#menu2 li {
    padding-left: 10px;
    padding-right: 10px;
    text-align: left !important;
  }
  ul#menu2 li a {
    text-align: left !important;
  }

  ul#menu2 li:last-child {
    padding-right: 0px !important;
  }

}