/* ===================================================== */
/* PC・タブレット横・その他                              */
/* ===================================================== */

* {
  box-sizing: border-box;
}

html {
  -webkit-overflow-scrolling: touch;
  overflow: auto;
}

body {
  width: 100vw;
  overflow-x: hidden;
  background-color: #000;
}

.fixed {
  overflow: hidden;
}

section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100vw;
  padding: 70px 0 200px;
  background-color: #fff;
}

.menu {
  width: 100vw;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.8s ease 0s;
  border-bottom: 0px solid rgba(255,255,255,0.5);
  z-index: 2;
  position: fixed;
  top: 0;
}

.menu.folded {
  height: 60px;
  border-bottom: 1px solid #eee;
  background-color: #fff;
}

.menu-item {
  font-size: 14px;
  font-family: "M PLUS 1p";
  font-weight: 700;
  color: #eee;
  margin: 0 32px;
  padding: 8px 4px;
  letter-spacing: 3px;
  position: relative;
}

.menu-item:hover {
  cursor: pointer;
}

.menu-item::after {
  position: absolute;
  content: '';
  left: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 2px;
  background: #fec343;
  transition: all 0.4s ease-in-out 0s;
  opacity: 0.0;
  margin: 0 auto;
}

.menu-item:hover::after {
  width: 100%;
  opacity: 1.0;
}

.menu-item.folded {
  color: #333;
}

.menu-item.folded::after {
  background: #e28533;
}

header {
  position: relative;
}

.top-image {
  width: 100vw;
  height: 100vh;
  background: url('../image/top-image.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: -1;
}

.top-logo {
  width: 380px;
  height: 60px;
  background: url('../image/top-logo.png');
  background-size: cover;
  transition: all 0.4s ease-in-out 0s;
}

.top-logo.hide {
  opacity: 0.0;
}

.scroll-prompt {
  width: 24px;
  height: 24px;
  bottom: 48px;
  position: absolute;
  opacity: 0.0;
  -webkit-animation: scroll-prompt 5s ease-in-out 0s infinite normal;
  animation: scroll-prompt 5s ease-in-out 0s infinite normal;
}

.scroll-prompt.hide {
  -webkit-animation: none 5s ease-in-out 0s infinite normal;
  animation: none 5s ease-in-out 0s infinite normal;
}

.scroll-prompt::before {
  content: '';
  width: 24px;
  height: 4px;
  background-color: #eee;
  position: absolute;
  left: -6px;
  transform: rotate(45deg);
  border-radius: 3px;
}

.scroll-prompt::after {
  content: '';
  width: 24px;
  height: 4px;
  background-color: #eee;
  position: absolute;
  left: 9px;
  transform: rotate(-45deg);
  border-radius: 3px;
}

.scroll-prompt:hover {
  opacity: 1.0;
  cursor: pointer;
  -webkit-animation: none 0.8s ease-in-out 0s infinite normal;
  animation: none 0.8s ease-in-out 0s infinite normal;
}

@keyframes scroll-prompt {
  30% { opacity: 0.0; }
  40% { opacity: 0.0; }
  45% { opacity: 1.0; }
  50% { opacity: 0.0; }
  55% { opacity: 1.0; }
  60% { opacity: 0.0; }
  70% { opacity: 0.0; }
}

.sec-title {
  padding: 30px 0 0;
  margin: 0px 0px 96px 0px;
}

.sec-title span {
  font-size: 30px;
  font-family: "M PLUS 1p";
  font-weight: 500;
  color: #333;
  padding: 32px 16px 8px 16px;
  letter-spacing: 8px;
  border-bottom: 3px solid #e28533;
  text-align: center;
}

.subsec-title {
  font-size: 20px;
  font-family: "M PLUS 1p";
  font-weight: 400;
  color: #333;
  letter-spacing: 8px;
  text-align: center;
  line-height: 40px;
}

.subsec-subtitle {
  margin: 0px 0px 64px 0px;
  font-size: 11.5px;
  font-family: "M PLUS 1p";
  font-weight: 500;
  color: #ccc;
  letter-spacing: 3px;
  text-align: center;
}

.bg-gray {
  background-color: #eee;
}

.bg-white {
  background-color: #fff;
}

.thoughts-logo {
  width: 543px;
  height: 86px;
  background: url('../image/ourthoughts.png');
  background-size: cover;
  background-repeat: no-repeat;
  margin-bottom: 64px;
  margin: 0px 0px 64px 0px;
}

.thoughts-content p {
  display: block;
  font-size: 16px;
  line-height: 36px;
  font-family: "Noto Serif JP";
  text-align: center;
  color: #000;
  letter-spacing: 2px;
  margin: 0;
}

#philosophy .subsec-subtitle {
  color: #fec343;
}

.philosophy p {
  font-size: 28px;
  font-weight: 400;
  line-height: 48px;
  font-family: "Noto Serif JP";
  text-align: center;
  color: #333;
  letter-spacing: 4px;
  margin-bottom: 40px;
}

.table {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#profile .table-line {
  width: 810px;
  display: flex;
  align-items: flex-start;
  padding: 36px 0;
}

#profile .div-line {
  width: 100%;
  border-top: 1px solid #ccc;
}

#profile .item-column {
  width: 270px;
  font-size: 14px;
  font-family: "M PLUS 1p";
  font-weight: 500;
  letter-spacing: 12px;
  color: #999;
  text-align: left;
  padding: 0 0 0 48px;
  line-height: 28px;
}

#profile .content-column {
  width: 540px;
  font-size: 14px;
  font-family: "M PLUS 1p";
  font-weight: 400;
  letter-spacing: 2px;
  color: #333;
  text-align: left;
  padding: 0 0 0 24px;
  line-height: 28px;
}

.boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

.box-title {
  font-family: "M PLUS 1p";
  font-weight: 700;
  text-align: center;
  line-height: 28px;
  letter-spacing: 4px;
}

.box-desc {
  font-size: 14px;
  font-family: "M PLUS 1p";
  font-weight: 400;
  color: #999;
  text-align: left;
  line-height: 28px;
}

#service .box {
  width: 360px;
  height: 440px;
  background-color: #fff;
  border-radius: 16px;
  padding: 48px 48px;
  margin: 0 32px 32px 32px;
}

#service .box-title {
  font-size: 21px;
  color: #e28533;
  margin-bottom: 32px;
}

#service .box-desc {
  margin-bottom: 32px;
}

#service .box-item {
  font-size: 14px;
  font-family: "M PLUS 1p";
  font-weight: 400;
  color: #333;
  text-align: left;
  margin-left: 32px;
  margin-bottom: 32px;
  line-height: 28px;
}

#works .box {
  width: 400px;
  height: 350px;
}

#works .box-word {
  padding: 16px;
}

#works .box-photo {
  width: 400px;
  height: 350px;
  margin-bottom: 8px;
}

#works #work01 .box-photo {
  background: url('../image/work01.png');
  background-repeat: no-repeat;
}

#works #work02 .box-photo {
  background: url('../image/work02.png');
  background-repeat: no-repeat;
}

#works .box-title {
  font-size: 16px;
  color: #333;
  margin: 0 0 8px;
}

.inquiry {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.desc {
  font-size: 14px;
  font-family: "M PLUS 1p";
  font-weight: 400;
  color: #333;
  text-align: center;
  margin-bottom: 32px;
  line-height: 24px;
}

.desc p {
  margin: 0;
}

.mail {
  width: 100%;
  font-size: 30px;
  font-family: "M PLUS 1p";
  font-weight: 400;
  color: #333;
  text-align: center;
  margin-bottom: 32px;
}

.footer-image-wrap {
  background-color: #fff;
}

.footer-image {
  width: 100vw;
  height: 400px;
  background-color: #ccc;
  background: url('../image/footer-image.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.9;
}

.gray-bar {
  position: relative;
  width: 100vw;
  background-color: #eee;
  padding: 36px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.topback-control {
  position: absolute;
  right: 72px;
  top: -28px;
  background-color: #eee;
  width: 56px;
  height: 56px;
  font-size: 20px;
  color: #e28533;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s ease 0s;
  border: 6px solid #eee;
}

.topback-control:hover {
  cursor: pointer;
  background-color: #e28533;
  color: #f7f4f3;
}

.footer-logo {
  width: 260px;
  height: 50px;
  background: url('../image/footer-logo.png');
  background-size: cover;
  margin-bottom: 36px;
}

.red-line {
  width: 40px;
  border-top: 2px solid #e28533;
  margin-bottom: 36px;
}

.address {
  font-size: 12px;
  font-family: "M PLUS 1p";
  font-weight: 400;
  color: #666;
  text-align: center;
  line-height: 22px;
  letter-spacing: 3px;
  margin: 0 24px 36px;
}

.footer-menu {
  margin-bottom: 36px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.footer-menu-item {
  font-size: 13px;
  font-family: "M PLUS 1p";
  font-weight: 500;
  color: #333;
  text-align: left;
  line-height: 32px;
  letter-spacing: 3px;
  transition: all 0.3s ease 0s;
  margin: 0 16px;
}

.footer-menu-item:hover {
  opacity: 0.5;
  cursor: pointer;
}

.darkgray-bar {
  width: 100vw;
  height: 24px;
  background-color: #ccc;
}

.copyright {
  font-size: 11px;
  font-family: "M PLUS 1p";
  font-weight: 400;
  color: #999;
  text-align: center;
  line-height: 24px;
  letter-spacing: 2px;
  margin: 0 24px;
}

.copyright span {
  display: inline-block;
}

.fade {
  opacity: 0;
  transition : all 1.2s;
}

.fade.in {
  opacity: 1;
}

.roll {
  opacity: 0;
  transform: translate(0, 100px);
  transition: all 1.2s;
}
 
.roll.in {
  opacity: 1;
  transform: translate(0, 0);
}

.delay02 {
  transition: all 1.2s ease 0.2s;
}

.delay04 {
  transition: all 1.2s ease 0.4s;
}

/* ===================================================== */
/* タブレット縦                                          */
/* ===================================================== */

@media screen and (max-width: 1024px) {

  .menu-item {
    margin: 0 16px;
  }

  .top-image {
    background: url('../image/top-image-sp2.jpg');
    background-size: 100vw 100vh;
  }

  #work01.boxes {
    flex-flow: column-reverse;
  }

  #work02.boxes {
    flex-flow: column;
  }
}

/* ===================================================== */
/* スマホ縦                                              */
/* ===================================================== */

@media screen and (max-width: 767px) {

  section {
    padding: 160px 0;
  }

  .menu {
    height: 100vh;
    background-color: #fff;
    flex-direction: column;
    opacity: 0;
    position: fixed;
    transition: all 0.4s ease 0s;
    z-index: -2;
  }

  .menu.folded {
    height: 100vh;
    border-bottom: 0px solid rgba(255,255,255,0.5);
  }

  .menu-item {
    color: #333;
    text-align: center;
    font-size: 20px;
    line-height: 40px;
    margin: 0 0 20px 0;
    padding: 0;
  }

  .menu.open {
    opacity: 1;
    z-index: 3;
  }

  .close-wrap {
    width: 36px;
    height: 36px;
    position: fixed;
    top: 36px;
    right: 24px;
  }

  .close {
    width: 36px;
    height: 3px;
    background-color: #333;
    transform: rotate(45deg);
    position: absolute;
    top: 16px;
    transition: all 0.4s ease 0s;
    border-radius: 3px;
  }

  .close::before {
    content: '';
    width: 36px;
    height: 3px;
    background-color: #333;
    position: absolute;
    transition: all 0.4s ease 0s;
    transform: rotate(-90deg);
    border-radius: 3px;
  } 

  .burger-wrap {
    width: 36px;
    height: 36px;
    position: fixed;
    top: 36px;
    right: 24px;
    z-index: 2;
    opacity: 1.0;
  }

  .burger {
    width: 36px;
    height: 3px;
    background-color: #eee;
    position: absolute;
    top: 4px;
    transition: all 0.4s ease 0s;
    border-radius: 3px;
  }

  .burger.inversion, .burger.inversion::before, .burger.inversion::after {
    background-color: #333;
  }

  .burger::before, .burger::after {
    content: '';
    width: 36px;
    height: 3px;
    background-color: #eee;
    position: absolute;
    transition: all 0.4s ease 0s;
    border-radius: 3px;
  } 

  .burger::before {
    top: 12px;
  }

  .burger::after {
    top: 24px;
  }

  .top-image {
    background: url('../image/top-image-sp1.png');
    background-size: 100vw 100vh;
  }

  .top-logo {
    background-position: 28px 0px;
    width: 100vw;
    height: 14.73vw;
  }

  .thoughts-content {
    padding: 0 24px;
  }

  .thoughts-content p {
    font-size: 15px;
    text-align: left;
  }

  .thoughts-content br {
    display: none;
  }

  .thoughts-logo {
    width: 288px;
    height: 132px;
    background: url('../image/ourthoughts_sp.png');
    background-size: cover;
  }

  .philosophy {
    padding: 0 24px;
  }

  .philosophy p {
    font-size: 20px;
    line-height: 40px;
    margin-bottom: 32px;
  }

  #profile .table {
    width: 100vw;
    padding: 0 24px;
  }

  #profile .table-line {
    width: 100%;
    justify-content: flex-start;
    padding: 24px 0;
  }

  .sp-br {
    display: inline-block;
  }

  #profile .item-column {
    width: 32%;
    font-size: 15px;
    letter-spacing: 4px;
    padding: 0;
    line-height: 32px;
    margin: 0 0 0 8px ;
  }

  #profile .content-column {
    width: 68%;
    font-size: 15px;
    padding: 0 0 0 8px;
    line-height: 32px;
  }

  .boxes {
    flex-direction: column;
  }

  .box-desc {
    font-size: 15px;
    line-height: 32px;
  }

  #service .box {
    width: inherit;
    height: inherit;
    padding: 36px;
    margin: 0 24px 32px 24px;
  }

  #service .box-title {
    font-size: 20px;
  }

  #service .box-item {
    font-size: 15px;
    line-height: 32px;
    margin: 0 0 24px 24px;
  }

  #service .box-item p {
    margin: 0 0 8px;
  }


  #works .box {
    overflow: hidden;
    width: 100vw;
    height: 100vw;
    padding: 24px;
  }

  #works .box-word {
    padding: 0px;
  }  

  #works .box-photo {
    width: 100%;
    height: 100%;
  }

  #work01.boxes {
    flex-flow: column-reverse;
  }

  #work02.boxes {
    flex-flow: column;
  }

  #works .box-desc {
    padding: 0;
  }

  #works .box-title {
    font-size: 18px;
    line-height: 36px;
  }

  .inquiry {
    width: 100vw;
    padding: 0 24px;
    align-items: flex-start;
  }

  .desc {
    padding: 0 24px;
    text-align: left;
  }

  .mail {
    padding: 0 24px;
    font-size: 24px;
  }

  .footer-image {
    background: url('../image/footer-image-sp.png');
    background-repeat: no-repeat;
    background-size: cover;
  }
  
  .gray-bar {
    height: inherit;
  }

  .topback-control {
    right: 24px;
  }

  .footer-menu {
    flex-flow: column;
  }

  .footer-menu-item {
    margin: 4px 0;
  }
}
