body {
    margin: 0 auto;
    padding: 0;
    font-family: YuGothic,'Yu Gothic',sans-serif;
    color: #181B39;
    line-height: 1.6;
    letter-spacing: .15em;
    background: #fff;
  }


  /*    header    */

  .header_pages {
    background-image:url(/assets/img/header_top.JPG);
    background-repeat:  no-repeat;
    height: 320px;
    /* width: 100%; */
    background-size: cover;
    position: relative;
    background-position: center;
    }

.header_pages::after{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #00152E;
    opacity: 0.4;
    display:block
    }

  .header_pages_wrapper {
    overflow: hidden;
    padding: 0 104px;
    margin: 0 auto;
    z-index: 100;
    /* width: 100%; */
    position: relative;
  }

  .header_pages_titles {
    display: flex;
    flex-direction: column;
    justify-content: left;
    margin-top: 160px;
}

.header_pages_titles h1 {
    font-size: 24px;
    color: #fff;
    margin: 0;
}

.header_pages_titles p {
    color: #fff;
    margin: 0;
}

.header_pages_link {
    margin-top: 40px;
}

.header_pages_link ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    padding: 0;
    margin: 0;
}

.header_pages_link a {
    text-decoration: none;
    color: #fff;
    font-size: 12px;
}

.header_pages_link a:hover {
    text-decoration: underline;
}

.header_pages_link span {
    color: #fff;
    margin: 0 8px;
}



.nav{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 21, 46, .8);
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  /* 初期：非表示 */
  visibility: hidden;
  opacity: 0;
  /* ふわっと表示 */
  transition: 0.5s ease-in-out;
  z-index: 100;
}
.nav ul{
  list-style:none;
}
.nav li:not(:last-child){
  margin-bottom: 8px;
}
.nav a{
  color: #ffffff;
}

/* ナビゲーションボタン（開く） */
#navbtn{
position: fixed;
top: 80px;
right: 104px;
padding: 0;
outline: none;
border: none;
background: none;
width: 30px;
height: 20px;
cursor: pointer;
z-index: 100;
}

#navbtn::before,
#navbtn::after{
content : '';
display: block;
height: 1px;
background-color: #00152E;
transform: translateY(10px);
transition: 0.3s ease-in-out;
}

#navbtn::before{
transform: translateY(-10px);
box-shadow: 0 10px #00152E;
}

/* ナビゲーションボタン（閉じる） */
.open #navbtn{
z-index: 100;
}
.open #navbtn::before{
transform: rotate(-45deg);
box-shadow: none;
background-color: white;
}
.open #navbtn::after{
transform: rotate(45deg);
box-shadow: none;
background-color: white;
}
/* ナビゲーションメニュー 開いた時*/
.open .nav{
visibility: visible;
opacity: 1;
}

.nav{
  margin-left: auto;
}
.nav ul{
  display: flex;
  list-style:none;
  flex-direction: column;
  width: 48%;
}

.nav ul li a {
  text-decoration: none;
  color: #fff;
  text-decoration :none;
  font-size: 40px;
  font-weight: 700;
}

.nav ul li a:hover{
  opacity: .5;
  padding-left: 8px;
}



/* 　サービス内容　　 */


.service {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}

.service_information {
    position: relative;
    margin: 0 auto;
    max-width: 1000px;
    display: flex;
    justify-content: center;
    padding: 128px 0 152px 0;
}

.service_information_text {
    margin: 0;
    text-align: center;
    font-size: 20px;
}

.service_information_text span {
    background: linear-gradient(transparent 60%, rgba(34, 224, 158, 0.4));
    font-weight: bold;
}

.service_information_text_rpd768,
.service_information_text_rpd375 {
  display: none;
}


/*   業務の流れ  */

.service_frow {
  position: relative;
  z-index: 0;
  background-color: rgba(33, 93, 99, .03);
  padding: 104px;
  margin-top: 80px;
  z-index: 0;
}

.service_frow::after{
  content:"";
  position: absolute;
  top: -40px;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 40px 0 0 100vw ;
  border-color: transparent  transparent  transparent rgba(33, 93, 99, .03);
}

.service_wrapper {
    position: relative;
    margin: 0 auto;
    max-width: 1000px;
    padding: 0 0 144px 0;
}

.service_frow_title {
    padding: 0;
    margin: 0 auto;
    text-align: center;
    font-size: 32px;
}

.service_frow_text {
    text-align: center;
    margin: 24px 0 0 0;
}

.service_frow_gradation {
    width: 18%;
    background: linear-gradient(to right, #667EEA,#28CAC0);
    height: 5px;
    border: none;
}



/*    警備の流れ　通夜     */


.tabs_boxs {
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

/*タブ切り替え全体のスタイル*/
.tabs {
    margin-top: 50px;
    background-color: #fff;
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); */
    width: 940px;
    margin: 0 auto;
    }

  /*タブのスタイル*/
  .tab_item {
    width: calc(100%/2);
    height: 56px;
    border-bottom: 3px solid #5ab4bd;
    background-color: #d9d9d9;
    line-height: 56px;
    font-size: 16px;
    text-align: center;
    color: #565656;
    display: block;
    float: left;
    text-align: center;
    font-weight: bold;
    transition: all 0.2s ease;
  }
  .tab_item:hover {
    opacity: 0.75;
  }

  /*ラジオボタンを全て消す*/
  input[name="tab_item"] {
    display: none;
  }

  /*タブ切り替えの中身のスタイル*/
  .tab_content {
    display: none;
    padding: 40px 40px 0;
    clear: both;
    overflow: hidden;
  }


  /*選択されているタブのコンテンツのみを表示*/
  #all:checked ~ #all_content,
  #programming:checked ~ #programming_content,
  #design:checked ~ #design_content {
    display: block;
  }

  /*選択されているタブのスタイルを変える*/
  .tabs input:checked + .tab_item {
    background-color: #5ab4bd;
    color: #fff;
  }

  .service_frowboxs_night {
    display: flex;
    position: relative;
    flex-wrap: wrap;
    margin: 0 auto;
    align-content: start;
    align-items: baseline;
     margin-top: 80px;
}

.service_night_flow {
    width: 30%;
    margin: 0px 16px 64px 12px;
    background: #fff;
}

.service_night_flow img {
    width: 100%;
}

.night_flow_text {
    align-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
}

.service_night_flow span {
    font-size: 14px;
    letter-spacing: .12em;
}

.night_flow_number {
    padding: 0;
    position: absolute;
    font-size: 64px;
    text-shadow: 1px 2px 3px rgba(63, 76, 137, 0.5);
    color: #fff;
    margin-top: -56px;
    margin-left: 8px;
    z-index: 50;
}

.night_flow_img01 {
  background-image:url(/assets/img/Greetings.jpeg);
  background-repeat:  no-repeat;
  height: 200px;
  background-size: cover;
  position: relative;
  background-position: center;
}

.night_flow_img02 {
  background-image:url(/assets/img/Induction02.JPG);
  background-repeat:  no-repeat;
  height: 200px;
  background-size: cover;
  position: relative;
  background-position: center;
}

.night_flow_img03 {
  background-image:url(/assets/img/car.JPG);
  background-repeat:  no-repeat;
  height: 200px;
  background-size: cover;
  position: relative;
  background-position: center;
}

.night_flow_img04 {
  background-image:url(/assets/img/Induction04.jpg);
  background-repeat:  no-repeat;
  height: 200px;
  background-size: cover;
  position: relative;
  background-position: right;
}

.night_flow_img05 {
  background-image:url(/assets/img/dailyre_port.jpg);
  background-repeat:  no-repeat;
  height: 200px;
  background-size: cover;
  position: relative;
  background-position: center;
}


.service_frowboxs_morning {
    display: flex;
    position: relative;
    flex-wrap: wrap;
    margin: 0 auto;
        margin-top: 0px;
    margin-top: 0px;
    align-content: start;
    align-items: baseline;
    margin-top: 80px;
}

.service_morning_flow {
    width: 30%;
    margin: 0 16px 64px 12px;
    background: #fff;
}

.morning_flow_number {
    padding: 0;
    position: absolute;
    font-size: 64px;
    text-shadow: 1px 2px 3px rgba(63, 76, 137, 0.5);
    color: #fff;
    margin-top: -56px;
    margin-left: 8px;
   z-index: 50;
}

.service_morning_flow img{
    width: 100%;
}

.morning_flow_text {
    align-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
}

.morning_flow_text span{
    font-size: 14px;
    letter-spacing: .12em;
}

.morning_flow_img01 {
  background-image:url(/assets/img/Greetings.jpeg);
  background-repeat:  no-repeat;
  height: 200px;
  background-size: cover;
  position: relative;
  background-position: center;
}

.morning_flow_img02{
  background-image:url(/assets/img/Induction01.JPG);
  background-repeat:  no-repeat;
  height: 200px;
  background-size: cover;
  position: relative;
  background-position: left;
}

.morning_flow_img03{
  background-image:url(/assets/img/car_key.JPG);
  background-repeat:  no-repeat;
  height: 200px;
  background-size: cover;
  position: relative;
  background-position: center;
}

.morning_flow_img04{
  background-image:url(/assets/img/funeral_procession.jpg);
  background-repeat:  no-repeat;
  height: 200px;
  background-size: cover;
  position: relative;
  background-position: right 77% bottom 45%;
}

.morning_flow_img05{
  background-image:url(/assets/img/bus.jpg);
  background-repeat:  no-repeat;
  height: 200px;
  background-size: cover;
  position: relative;
  background-position: left;
}

.morning_flow_img06{
  background-image:url(/assets/img/Induction03.jpg);
  background-repeat:  no-repeat;
  height: 200px;
  background-size: cover;
  position: relative;
  background-position: left;
}

.morning_flow_img07{
  background-image:url(/assets/img/dailyre_port.jpg);
  background-repeat:  no-repeat;
  height: 200px;
  background-size: cover;
  position: relative;
  background-position: center;
}




/*   各ページ共通    */


.page_contact {
    background: rgba(83, 141, 212, 0.1);
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

.page_contact_wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.page_contact_boxs {
    display: flex;
    justify-content: space-around;
    align-content: center;
}

.page_contact_contents {
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    margin: 88px 0;
    padding: 24px;
}

.page_contact_title {
    font-weight: bold;
    margin: 0;
    font-size: 24px;
}

.page_contact_text {
    margin: 8px 0;
    text-align: center;
}

.comment {
    margin: 8px 0 0 0;
}

.phone_number {
    margin: 8px 0 0 0;
    font-size: 32px;
    font-weight: bold;
    color: #181B39;
    text-decoration: none;
}

.phone_number:hover {
    color: #D47268;
    text-decoration: underline;
}

.correspondence_time {
    font-size: 13px;
    margin: 0;
    margin: 8px 0 0 0;
}


.page_contactbtn {
    margin-top: 24px;
}

.page_contactbtn_border {
    color: #fff;
    font-size: 16px;
    background: linear-gradient(-45deg,#009efd,#96fbc4,#009efd);
    padding: 14px 104px;
    background-size: 300% 100%;
    transition: all .3s ease-out;
    text-decoration: none;
  }
  .page_contactbtn_border:hover {
    background-position: 100% 0;
  }

  .page_contactbtn_border span {
    font-weight: normal;
    position: relative;
    /* padding-left: 30px; */
  }

  .page_contactbtn_border span::before{
    content: "";
    position: absolute;
    top: 50%;
    right: -72px;
    width: 7px;
    height: 7px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin-top: -5px;
  }

 /*    footer     */

 .footer {
  position: relative;
  /* height: 160px; */
  background: #040324;
}

.footer_wrapper {
  padding: 24px 104px;
  margin: 0 auto;
}

.footer_menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer_menubox{
  width: 100%;
}

.footer_menubox nav {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.footer_menubox ul{
  display: flex;
  justify-content: right;
}

.footer_menubox li {
  margin-left: 24px;
  list-style: none;
}

.footer_menubox a {
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  color: white;
  display: inline-block;
  position: relative;
}

.footer_menubox a:hover {
  opacity: .7;
}

.footer_copywriter {
  color: #fff;
  font-size: 12px;
  text-align: right;
  margin-top: 40px;
}





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

  /*  各ページ共通  */

 .header_pages_wrapper {
    max-width: none;
    padding: 24px 40px;
  }

  .header_pages_titles {
    margin-top: 144px;
  }

  #navbtn {
    top: 56px;
    right: 40px;
  }

  .nav li:not(:last-child) {
    margin-bottom: 24px;
  }

  .page_contact_wrapper {
    max-width: none;
    padding: 0 40px;
  }

  .footer {
    padding: 0 40px;
  }

  .footer_wrapper {
    padding: 24px 32px;
  }

/*  業務の流れ   */

.service_wrapper {
  max-width: none;
  padding: 0 0 56px 0;
}

  .service_frow_gradation {
    width: 19%;
  }

  .service_information {
    max-width: none;
    padding: 108px 40px 80px 40px;
  }

  .service_frow {
    padding: 104px 40px;
    margin-top: 80px;
  }
}


@media screen and (min-width:768px) and (max-width:1023px) {

  /*  共通  */

  .header_pages {
    height: 280px;
  }

  .header_pages_wrapper {
    padding: 0 40px;
  }

  .header_pages_titles {
    margin-top: 144px;
  }

  .header_pages_link {
    margin-top: 32px;
  }

  #navbtn {
    right: 40px;
    top: 56px;
  }

  .nav ul li a {
    font-size: 32px;
  }

  .footer_wrapper {
    padding: 56px;
  }

  .footer_menubox {
    display: none;
  }

  .footer_copywriter {
    text-align: center;
    margin: 0 ;
  }

  .page_contact_wrapper {
    max-width: none;
    padding: 0 40px;
  }

  .page_contact_boxs {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 56px 0 16px 0;
  }

  .page_contact_contents {
    width: 56%;
    margin: 0 0 40px 0;
    padding: 24px;
  }

  .page_contactbtn {
    padding-bottom: 24px;
  }

  /*   警備について  */

  .service_information_text,
  .service_information_text_rpd375 {
    display: none;
  }

  .service_information {
    max-width: none;
    display: inherit;
    padding: 104px 40px;
  }

  .service_information_text_rpd768 {
    margin: 0;
    text-align: center;
    font-size: 20px;
    display: inherit;
  }

  .service_information_text_rpd768 span {
      background: linear-gradient(transparent 60%, rgba(34, 224, 158, 0.4));
      font-weight: bold;
  }


  /*   業務の流れ   */

  .service_frow {
    padding: 80px 40px;
    margin-top: 80px;
  }

  .service_wrapper {
    max-width: none;
    padding: 0;
  }

  .service_frow_title {
      font-size: 24px;
  }

  .service_frow_gradation {
    width: 20%;
  }

  .tabs {
    width: 640px;
  }

  .service_frowboxs_night,
  .service_frowboxs_morning {
    margin-top: 64px;
  }

  .tab_content {
    padding: 24px;
  }

  .service_night_flow,
  .service_morning_flow {
    width: 45%;
  }

}


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

    /*  共通  */

  .header_pages {
    height: 200px;
  }

  .header_pages_wrapper {
    padding: 0 24px;
  }

  #navbtn {
    top: 40px;
    right: 24px;
  }

  .header_pages_titles {
    margin-top: 120px;
  }

  .header_pages_link {
    display: none;
  }

  .nav {
    height: 100vh;
  }

  .nav ul {
    width: auto;
    padding: 0;
  }

  .nav ul li a {
    font-size: 28px;
  }

  .nav li:not(:last-child) {
    margin-bottom: 16px;
  }

  .footer_menubox {
    display: none;
  }

  .footer_wrapper {
    padding: 40px;
  }

  .footer_copywriter {
    font-size: 8px;
    width: 100%;
    margin-top: 0;
    text-align: center;
  }

  .page_contact_wrapper {
    margin: 0 auto;
    padding: 0 24px;
  }

  .page_contact_boxs {
    align-content: center;
    flex-direction: column;
    align-items: center;
    padding: 80px 0 40px 0;
  }

  .page_contact_contents {
    width: 88%;
    margin: 0 0 40px 0;
    padding: 24px;
  }

  .page_contact_title {
    font-size: 20px;
  }

  .page_contactbtn {
    margin: 24px 0;
  }

  .phone_number {
    font-size: 30px;
  }


  /*   インフォメーション   */
  .service_information_text,
  .service_information_text_rpd768 {
    display: none;
  }

  .service_information {
    max-width: none;
    padding: 80px 24px 24px 24px;
  }

  .service_information_text_rpd375 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .service_information_text_rpd375 span {
    font-weight: bold;
    font-size: 18px;
  }

  /*  警備の流れ   */

  .service_frow {
    padding: 56px 24px 40px 24px;
    margin-top: 40px;
  }

  .service_frow::after {
    top: -16px;
    border-width: 16px 0 0 100vw;
  }

  .service_wrapper {
    padding: 0 0 80px 0;
  }

  .service_frow_title {
    font-size: 20px;
  }

  .service_frow_gradation {
    width: 35%;
    height: 4px;
  }

  .service_frow_text {
    margin: 24px 0 0 0;
  }

  .tabs_boxs {
    margin-top: 40px;
  }

  .tab_item {
    height: 48px;
    line-height: 53px;
  }

  .tab_content {
    padding: 16px;
  }

  .tabs {
    width: auto;
  }

  .service_night_flow,
  .service_morning_flow {
    width: 100%;
    margin: 0 0 56px 0;
    background: #fff;
  }

  .snf_end,
  .smf_end {
    margin-bottom: 24px;
  }

  .service_frowboxs_night,
  .service_frowboxs_morning {
    margin-top: 64px;
  }

}

