@charset "utf-8";

:root{
  --main-color: #000957;
  --accent-blue: #014099;
  --accent-orange: #ffc31f;
  --heading-orange: #ef8700;
}

/* --------- --------- --------- --------- --------- */
/* reset */

html,body,h1,h2,h3,h4,h5,p,ul,li,dl,dt,dd{margin: 0;padding: 0;}
*{box-sizing: border-box;}
img{vertical-align: bottom; max-width: 100%;}
ul,li{list-style: none;}
a{text-decoration: none; color: inherit;}

/* --------- --------- --------- --------- --------- */
/* general */

html{scroll-behavior: smooth;}
body{font-family: 'Noto Sans JP', sans-serif;}
#toTop>a{
  width: 70px; height: 70px; border-radius: 50%;
  background-color: #00095733;
  display: flex; align-items: center;
  position: fixed; right: 2vw; bottom: -90px;
  z-index: 100; opacity: 1;
  transition: .6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#toTop>a>span{
  display: block; width: 150%; padding-top: 1em;
  text-align: center; line-height: 1.1; font-size: .9em;
  color: var(--main-color); font-weight: 500;
}
#toTop>a::before, #toTop>a::after{
  display: block; content: ""; background-color: var(--main-color);
  width: 16px; height: 3px; border-radius: 3px;
  position: absolute; top: 1em;
}
#toTop>a::before{left: calc(50% - 13.5px); transform: rotate(-36deg);}
#toTop>a::after{left: calc(50% - 2.5px); transform: rotate(36deg);}
#toTop.on>a{bottom: 3vh; opacity: .7;}

/* --------- --------- --------- --------- --------- */
/* PC styles */

#majorCtg{
  padding: 40px 0; text-align: center;
  color: var(--accent-blue); font-weight: 700; font-size: 2em;
}
#majorCtg>span{
  display: block;
  font-size: .5em; font-weight: 300; color: #000;
}
/* --------- --------- --------- --------- --------- */
/* navigation */

.page-header{
  width: 100%; margin: 0 auto; z-index: 100;
  position: sticky; position: -webkit-sticky; top: 0;
  background-color: #fffffff8;
}
.container{width: 80%; margin: 0 auto;}
#hamb{display: none;}
#g-nav{
  display: flex; align-items: center;
  justify-content: space-between;
  max-width: 100%;
}
#logo-box{width: 100px; padding-top: 4px;}
#nav-box{
  width: calc(100% - 260px);
  padding: 0 calc(10% - 74px) 0 calc(70% - 518px);
  display: flex; justify-content: space-between;
  font-size: 18px; font-weight: 500;
  text-align: center; letter-spacing: .05em;
}
#nav-box>li>a, #nav-box>li:first-child{
  display: block;
  width: 120px; height: 84px;
  padding: 20px 0;
}
#nav-box>li>a>span, #nav-box>li:first-child>span{
  display: block;
  font-size: 10px; font-weight: 300;
  position: relative; overflow: hidden;
}
#nav-box>li>a>span::before{
  display: block; content: "";
  width: 0; height: 1px;
  background-color: var(--main-color);
  position: absolute;
}
#nav-box>li>a:hover{
  transition: 600ms ease-out;
  color: var(--main-color); transform: scale(1.04);
}
#nav-box>li>a:hover>span::before{transition: 100ms; width: 100%;}
#nav-box>li:first-child{position: relative;}
#sub-nav{
  display: flex; justify-content: space-between;
  width: 654px;
  font-size: .8em;
  transition: .6s;
  visibility: hidden; opacity: 0;
  position: absolute; top: 85px; left: -44px;
}
.blankBox{
  width: 195px; background-color: #fffffff8;
  visibility: hidden; opacity: 0; transition: .6s;
}
#sub-nav>li>a{
  display: block; width: 152px; height: 38px;
  padding: .6em 0; background-color: #fffffff8;
}
#nav-box>li:first-child:hover>#sub-nav{visibility: visible; opacity: 1;}
#sub-nav>li:first-child:hover~.blankBox{visibility: visible; opacity: 1;}
#subSub-nav{
  display: flex; justify-content: space-between;
  width: 654px; height: 38px;
  transition: .6s;
  visibility: hidden; opacity: 0;
  position: absolute; top: 39px;
}
#subSub-nav>li>a{
  display: block; width: 130px; padding: 0.6em 0;
  background-color: #fffffff8;
}
#sub-nav>li:first-child:hover>#subSub-nav{visibility: visible; opacity: 1;}
#contact>a{
  display: block;
  width: 160px;
  padding: .2em;
  line-height: 40px;
  background-color: var(--main-color); border-radius: 5px;
  text-align: center; font-weight: 700; color: #fff;
  transition: 300ms ease-out;
}
.material-icons-outlined{
  font-family: 'Material Icons';
  font-size: 2em; font-weight: normal;
  margin-right: .2em;
  vertical-align: middle;
}
#contact>a:hover{
  background-color: var(--accent-orange);
  color: #000; transform: scale(1.02);
}
/* --------- --------- --------- --------- --------- */
/* main */

.page-crown{
  background: center center /cover url(../img/banner_3d.png) no-repeat;
  height: 220px/* 200px */; margin-bottom: 80px;
}
h1{
  /* background-color: #94949455; */
  text-align: center; line-height: 220px/* 200px */;
  color: #fff; font-size: 2.5em; font-weight: 700;
}
.wrapper{padding: 60px 0; color: var(--main-color);}
h2{width: 167.3px; margin-bottom: 2em;}
.wrapper:nth-of-type(2)>.container>p{
  margin-bottom: 40px; padding-left: 2em;
  line-height: 1.8; font-size: 1.4em;
}
.flex-box{
  display: flex; justify-content: center; margin-bottom: 40px;
}
.flex-box:nth-of-type(2){margin-bottom: 120px;}
.flex-box>p{
  display: flex; justify-content: center; align-items: center;
  width: 30%;
}
.flex-box:first-of-type>.cutIllust:first-child,
.linkBtn:first-of-type{width: 35%; margin-right: 5%;}
.flex-box:first-of-type>.cutIllust:first-child{padding: 2.5% 3.3%;}
.flex-box:first-of-type>.cutIllust:last-child{padding: 2% 8.6%;}
.linkBtn>a{
  display: block; width: 200px; margin: 0 auto;
  background-color: #e38288;
  box-shadow: 0 6px 0 #ab545a; border-radius: 16px;
  line-height: 2.5; color: #fff; text-align: center;
  font-size: 1.3em; font-weight: bold;
}
.flex-box>.linkBtn:nth-of-type(2)>a{
  background-color: #328f83;
  box-shadow: 0 8px 0 #335b56;
}
h2:nth-of-type(2){width: 219.63px;}
.wrapper:nth-of-type(2)>.container>p:nth-of-type(2){margin-bottom: 2em;}
.flex-box:nth-of-type(3)>.cutIllust{width: 35%; align-items: flex-end;}
.flex-box:nth-of-type(3)>.inner-box{width: 40%; padding-left: 10%;}
.inner-box>.cutIllust{padding: 9% 30% 7% 22%;}
.dialogue{
  width: 80%; min-width: 240px;
  margin-bottom: 1em; padding-left: .5em;
  background-color: #e38288; border-radius: 16px;
  line-height: 3; text-align: center; white-space: nowrap;
  color: #fff; font-size: 1.2em; font-weight: 500;
  position: relative;
}
.dialogue::after{
  display: block; content: ""; width: 0;
  position: absolute; bottom: -18px; right: 80px;
  border-right: 12px solid transparent;
  border-left: 2px solid transparent;
  border-top: 20px solid #ef858c;
}
.wrapper.last{
  padding: 60px 0 80px;  background-color: #00095712;
}
.wrapper.last>.container>p:first-child{
  font-size: 1.2em; margin-bottom: 50px;
}
.wrapper.last>.container>p:last-child{
  display: flex; justify-content: space-around;
  height: auto; align-items: flex-start;
}
.wrapper.last>.container>p:last-child>img{width: 45%;}

/* --------- --------- --------- --------- --------- */
/* footer area styles */

  /* This page only */

.page-footer>.container{padding-top: 90px;}

  /* General */

#siteMap{display: flex; line-height: 1.8;}
#siteMap a:hover{
  border-bottom: 1.5px solid var(--main-color);
  color: var(--main-color); font-weight: 500;
  transition: 150ms;
}
.siteMapHeading{
  margin-right: 3vw; margin-bottom: .7em;
  font-weight: 500; color: var(--main-color);
}
.siteMapHeading:last-of-type{margin-right: 0;}
#serviceList>li:first-of-type{margin-right: 2.8vw;}
.siteMapHeading>a>span, .siteMapHeading:first-child>span{
  margin-left: 8px; font-size: 0.6em; font-weight: 300;
}
.siteMapHeading li{
  font-size: 14px; font-weight: 300; color: #000;
}
#serviceList>.item-box{width: initial; margin: 0;}
#serviceList>li::before,.item-box>li:before{
  content: "▶"; padding-right: .2em;
}
#serviceList>li>ul>li, #serviceList>.item-box>li>ul>li{margin-left: 2em;}
#serviceList{display: flex;}
#p-policy{margin: 10px 0; font-weight: 300; width: auto;}
#p-policy>a, #SNS-box>a{
  display: inline; margin-left: 0;
  text-decoration: none; text-align: initial;
}
#SNS-box{
  width: auto; margin-bottom: 60px;
  text-align: right; letter-spacing: 1em;
}
.SNSlogo{width: 3em; padding: .6em;}
.areaBottom{
  background-color: #00095712;
  padding: 40px 0 40PX; text-align: center;
}
.areaBottom>.container>p{width: auto; margin: 0;}
.footer-logo{width: 80px;}

/* --------- --------- --------- --------- --------- --------- --------- --------- --------- --------- */
/* --------- --------- --------- --------- --------- */
/* SP styles (Media queries) */
@media screen and (max-width: 699px) {

  #toTop>a{right: -90px; bottom: 5vh;}
  #toTop>a>span{width: 80%; font-size: .8em;}
  #toTop>a::before{left: calc(40% - 13.5px);}
  #toTop>a::after{left: calc(40% - 2.5px);}
  #toTop.on>a{right: -20px; bottom: 5vh;}

  #majorCtg{font-size: 1.5em;}
  #majorCtg>span{font-size: .6em;}
  
  /* --------- --------- --------- --------- --------- */
  /* navigation */

  .page-header{
    width: auto; padding: 0; background: none;
    position: fixed; top: 0; right: 0;
  }
  .container{width: 90%;}
  .page-header>.container{width: 100%; text-align: right;}
  #hambBtn{
    width: 44px; height: 44px;
    margin: 0; background-color: #fff1;
    position: fixed; top: 0; right: 0;
  }
  #hambBtn::before{
    content: ""; display: block;
    width: 24px; height: 2px;
    background: var(--main-color); border-radius: 1px;
    opacity: .5;
    position: absolute; margin: auto;
    top: 15px; left: 0; right: 0;
    transition: 300ms;
  }
  #hambBtn::after{
    content: ""; display: block;
    width: 24px; height: 2px;
    background: var(--main-color);
    opacity: .5;
    border-radius: 1px;
    position: absolute; margin: auto;
    bottom: 15px; left: 0; right: 0;
    transition: 300ms;
  }
  #hamb:checked+label>#hambBtn::before{
    transform: rotate(315deg); top: 0; bottom: 0;
  }
  #hamb:checked+label>#hambBtn::after{
    transform: rotate(225deg); top: 0; bottom: 0;
  }
  #g-nav{display: none;}
  #hamb:checked~#g-nav{
    display: block;
    width: 95vw; padding: 20px 0 20px 20px;
    max-height: 100vh; overflow-y: scroll;
    background-color: #fcfcfc;
    align-items: initial;
  }
  #logo-box{
    width: 130px; padding: 20px 30px 10px;
    position: absolute; top: 0; left: 0;
    z-index: 100; background-color: #fcfcfc;
  }
  #nav-box{
    display: block; width: 90vw; padding: 50px 10px 0;
    font-size: 15px; text-align: left;
  }
  #nav-box>li>a, #nav-box>li:first-child{
    width: 90%; height: auto;
    margin-bottom: 8px; padding: 5px 0;
    line-height: 1.3;
  }
  #nav-box>li:first-child{padding-bottom: 0;}
  #nav-box>li:last-child>a{margin-bottom: 24px;}
  #nav-box>li>a>span, #nav-box>li:first-child>span{font-size: 8px;}
  #nav-box>li>a>span::before{display: none;}
  #nav-box>li>a:hover{transition: none; transform: none;}
  #nav-box>li>a:hover>span::before{transition: none;}
  #sub-nav{
    display: block; width: 110%;
    font-size: .9em; font-weight: 500; letter-spacing: normal;
    transition: none; visibility: visible; opacity: 1;
    position: relative; top: 0; left: 0;
  }
  .blankBox{display: none; transition: none;}
  #sub-nav>li>a{
    display: block; width: 100%; height: auto;
    margin-bottom: 8px; padding: .8em 1.5em;
    background-color: #fcfcfc;
  }
  #sub-nav>li:nth-child(3)>a{margin-bottom: 0;}
  #sub-nav>li:first-child>a{margin-top: 5px;}
  #subSub-nav{
    flex-wrap: wrap;
    width: 90%; height: auto; margin-left: 2.5em;
    position: relative; top: 0; left: 0; font-weight: 400;
    transition: none; visibility: visible; opacity: 1;
  }
  #subSub-nav>li{width: 42%;}
  #subSub-nav>li>a{
    display: block; width: initial;
    margin: 0 0 8px; padding: .8em 0 .8em .6em;
    background-color: #fcfcfc;
  }
  #sub-nav>li:first-child:hover>#subSub-nav{visibility: visible; opacity: 1;}
  #contact>a{
    width: 140px; margin: 0 10px 20px;
    line-height: 36px; font-size: 0.9em;
  }
  .material-icons-outlined{font-size: 1.6em;}
  #contact>a:hover{
    background-color: var(--main-color);
    color: #fff; transform: none;
  }
  /* --------- --------- --------- --------- --------- */
  /* Main */

  .page-crown{height: 90px; margin-bottom: 40px;}
  .page-crown>h1{font-size: 20px/* 1.5em */; line-height: 90px;}
  .wrapper{padding: 30px 0;}
  h2{width: 125.48px; margin-bottom: 24px;}
  .wrapper:nth-of-type(2)>.container>p{
    margin-bottom: 20px; padding-left: .5em;
    line-height: 1.8; font-size: 1.1em;
  }
  .flex-box{margin-bottom: 24px;}
  .flex-box:nth-of-type(2){margin-bottom: 90px;}
  .flex-box>p{width: 45%;}
  .flex-box:first-of-type>.cutIllust:first-child,
  .linkBtn:first-of-type{width: 50%;}
  .flex-box:first-of-type>.cutIllust:first-child{padding: 2% 5%;}
  .flex-box:first-of-type>.cutIllust:last-child{padding: 2% 13%;}
  .linkBtn>a{width: 120px; border-radius: 12px; font-size: 1em;}
  h2:nth-of-type(2){width: 164.72px;}
  .flex-box:nth-of-type(3)>.cutIllust{width: 50%;}
  .flex-box:nth-of-type(3)>.inner-box{width: 50%; padding-left: 5%;}
  .inner-box>.cutIllust{padding: 9% 31% 7% 21%;}
  .dialogue{
    width: 130%; min-width: 0; margin-bottom: 2em;
    border-radius: 12px; font-size: .9em;
    transform: translateX(-23%);
  }
  .dialogue::after{right: 20%;}
  .wrapper.last{padding: 60px 0 30px;}
  .wrapper.last>.container>p:first-child{
    font-size: .9em; margin-bottom: 40px;
  }
  .wrapper.last>.container>p:last-child{flex-direction: column;}
  .wrapper.last>.container>p:last-child>img{
    width: initial; margin-bottom: 30px;
  }
  /* --------- --------- --------- --------- --------- */
  /* footer area styles */
  
    /* This page only */

  .page-footer>.container{padding-top: 60px;}

    /* General */

  #siteMap{display: block; margin-bottom: 1em;}
  #siteMap a:hover{
    transition: none; border-bottom: none;
    color: initial; font-weight: inherit;
  }
  #serviceList{display: block; margin-left: 1em;}
  #siteMap>li:nth-child(3)>ul>li::before{padding-left: .8em;}
  .container>p{font-size: 0.9em;}
  .footer-logo{width: 70px;}

} /* End of Media query */
/* --------- --------- --------- --------- --------- --------- --------- --------- --------- --------- */
/* --------- --------- --------- --------- --------- */
/* Tablet styles (Media queries) */

@media screen and (min-width:700px) and (max-width: 999px) {
  
  #majorCtg{font-size: 1.8em;}

  /* --------- --------- --------- --------- --------- */
  /* navigation */

  .page-header{
    width: auto;
    position: fixed; top: 0; right: 0;
    padding: 0; background: none;
  }
  .container{width: 85%;}
  .page-header>.container{width: 100%; text-align: right;}
  #hambBtn{
    width: 44px; height: 44px;
    margin: 0; background-color: #fcfcfc11;
    position: fixed; top: 0; right: 0;
  }
  #hambBtn::before{
    content: ""; display: block;
    width: 24px; height: 2px;
    background: var(--main-color); border-radius: 1px;
    opacity: .5;
    position: absolute; margin: auto;
    top: 15px; left: 0; right: 0;
    transition: 300ms;
  }
  #hambBtn::after{
    content: ""; display: block;
    width: 24px; height: 2px;
    background: var(--main-color);
    opacity: .5;
    border-radius: 1px;
    position: absolute; margin: auto;
    bottom: 15px; left: 0; right: 0;
    transition: 300ms;
  }
  #hamb:checked+label>#hambBtn::before{
    transform: rotate(315deg); top: 0; bottom: 0;
  }
  #hamb:checked+label>#hambBtn::after{
    transform: rotate(225deg); top: 0; bottom: 0;
  }
  #g-nav{display: none;}
  #hamb:checked~#g-nav{
    display: block;
    width: 55vw; padding: 20px 0 20px 20px;
    max-height: 100vh; overflow-y: scroll;
    background-color: #fcfcfc;
    align-items: initial;
  }
  #logo-box{
    width: 160px; padding: 20px 40px 10px;
    position: absolute; top: 0; left: 0;
    z-index: 100; background-color: #fcfcfc;
  }
  #nav-box{
    display: block; width: 50vw; padding: 80px 20px 0;
    font-size: 1em; text-align: left;
  }
  #nav-box>li>a, #nav-box>li:first-child{
    width: 90%; height: auto;
    margin-bottom: 12px; padding: 8px 0;
  }
  #nav-box>li:first-child{padding-bottom: 0;}
  #nav-box>li:last-child>a{margin-bottom: 32px;}
  #nav-box>li>a>span::before{display: none;}
  #nav-box>li>a:hover{transition: none; transform: none;}
  #nav-box>li>a:hover>span::before{transition: none;}
  #sub-nav{
    display: block; width: 110%;
    font-size: .9em; font-weight: 500; letter-spacing: normal;
    transition: none; visibility: visible; opacity: 1;
    position: relative; top: 0; left: 0;
  }
  .blankBox{display: none; transition: none;}
  #sub-nav>li>a{
    display: block; width: 100%; height: auto;
    margin-bottom: 12px; padding: .8em 1.5em;
    background-color: #fcfcfc;
  }
  #sub-nav>li:nth-child(3)>a{margin-bottom: 0;}
  #sub-nav>li:first-child>a{margin-top: 5px;}
  #subSub-nav{
    flex-wrap: wrap;
    width: 90%; height: auto; margin-left: 2.5em;
    position: relative; top: 0; left: 0; font-weight: 400;
    transition: none; visibility: visible; opacity: 1;
  }
  #subSub-nav>li{width: 42%;}
  #subSub-nav>li>a{
    display: block; width: initial;
    margin: 0 0 12px; padding: .8em 0 .8em .6em;
    background-color: #fcfcfc;
  }
  #sub-nav>li:first-child:hover>#subSub-nav{visibility: visible; opacity: 1;}
  #contact>a{margin: 0 20px 20px;}
  #contact>a:hover{
    background-color: var(--main-color);
    color: #fff; transform: none;
  }
  /* --------- --------- --------- --------- --------- */
  /* Main */

  .page-crown{height: 160px;}
  h1{line-height: 160px; font-size: 2em;}
  .wrapper{padding: 40px 0;}
  h2{width: 146.4px;}
  .wrapper:nth-of-type(2)>.container>p{font-size: 1.2em;}
  .flex-box>p{width: 40%;}
  .flex-box:first-of-type>.cutIllust:first-child,
  .linkBtn:first-of-type{width: 45%; margin-right: 5%;}
  .flex-box:first-of-type>.cutIllust:first-child{padding: 3.3% 4.3%;}
  .flex-box:first-of-type>.cutIllust:last-child{padding: 0 10.7% 1% 12%;}
  .linkBtn>a{font-size: 1.2em;}
  h2:nth-of-type(2){width: 192.2px;}
  .flex-box:nth-of-type(3)>.cutIllust{width: 45%;}
  .flex-box:nth-of-type(3)>.inner-box{width: 45%; padding-left: 10%;}
  .inner-box>.cutIllust{padding: 9% 31% 9% 21%;}
  .dialogue{width: 90%; min-width: 220px;}
  .dialogue::after{
    bottom: -16px; right: 30%;
    border-right: 10px solid transparent;
    border-left: 1px solid transparent;
    border-top: 16px solid #ef858c;
  }
  .wrapper.last{padding: 60px 0 30px;}  
  .wrapper.last>.container>p:first-child{font-size: 1.1em;}
  .wrapper.last>.container>p:last-child{
    flex-direction: column; align-items: center;
  }
  .wrapper.last>.container>p:last-child>img{
    width: 80%; margin-bottom: 40px;
  }
  /* --------- --------- --------- --------- --------- */
  /* footer area styles */

    /* This page only */

  .page-footer>.container{padding-top: 70px;}

    /* General */

  #siteMap{display: block; margin-bottom: 1em;}
  #siteMap a:hover{
    transition: none; border-bottom: none;
    color: initial; font-weight: inherit;
  }
  #serviceList{display: block; margin-left: 1em;}
  #siteMap>li:nth-child(3)>ul>li::before{padding-left: .8em;}
  .footer-logo{width: 70px;}

} /* End of Media query */
/* --------- --------- --------- --------- --------- */
/* Tail of file */