﻿@charset "UTF-8";

/* ------------ PC ------------ */
@media screen and (min-width: 641px){

  /* タイトルビジュアル */
  #TitleVisual {
    width: 100%;
    background-image: url(../img/case/case_title_img.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    margin-bottom: 75px;
    background-position: 50% 50%;
    min-width: 980px;
  }

  #TitleVisual .TitleInner{
    width:980px;
    margin-left: auto;
    margin-right: auto;
  }

  #TitleVisual .ServiceTtl {
    padding-top: 85px;
    padding-left: 108px;
    padding-bottom: 80px;
    display: inline-block;
  }

  /* メインコンテンツ */
  #CaseList {
    width: 980px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 65px;
    line-height: 1.7;
  }

  /*タブ部分*/
  #CaseTab {
    width: 980px;
    margin-bottom: 100px;
    margin-left: auto;
    margin-right: auto;
  }

  .TabMenu {
    width: 980px;
    position: relative;
  }

  .TabMenu li {
    width: 205px;
    background-image: url(../img/case/tab_icon_off.png);
    background-repeat: no-repeat;
    background-position: 10% 44%;
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 8px;
    margin-left:-2px;
    float: left;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
  }

  .TabMenu li.select { /*アクティブ装飾*/
    background-image: url(../img/case/tab_icon_on.png);
    background-repeat: no-repeat;
    background-position: 10% 55%;
    width: 205px;
    background-color: #e8edf0;
    margin-bottom: -8px;
    padding-bottom: 8px;
    margin-top: -17px;
    padding-top: 17px;
    margin-left: -2px;
  }

  .TabMenu li:nth-child(2),
  .TabMenu li:nth-child(3){
    border-right: solid 2px #e8edf0;
  }

  .TabMenu li:nth-child(1){
    border-right: solid 2px #e8edf0;
    border-left:solid 2px #fff;
  }

  .TabMenu li a{
    display:block;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all  0.2s ease;
  }

  .ContArea{
    clear: both;
    width: 880px;
    border: solid 5px #e8edf0;
    padding-top: 35px;
    padding-bottom: 70px;
    padding-left: 45px;
    padding-right: 45px;
    line-height: 1.7;
  }

  .TabBox{
    width: 892px;
  }

  .hide{display:none;}/* アクティブ以外のTabの中身を非表示にしておく際の設定 */


  /* タブ表示させている中身 */
  #CaseTab .CaseTtl {
    font-size: 1.6rem;
    font-weight: bold;
  }

  #CaseTab .CasePrice {
    margin-bottom: 35px;
  }

  .TabBox .PriceAnnot {
    font-size: 1.2rem;
    margin-top: 6px;
    display: block;
  }

  .TabBox .DetailList {
    display: inline-block;
    margin-bottom: 60px;
  }

  .DetailList li {
    width: 200px;
    height: 320px !important;
    margin-right: 26px;
    float: left;
    position: relative;
  }

  .DetailList li:nth-of-type(4n){
    margin-right: 0;
  }

  .DetailList .CaseNew {
    position: absolute;
    top: 10px;
    left: -8px;
    z-index: 2;
  }

  .DetailList .ModalOpen:hover img,
  .DetailList .ModalOpen:hover .DatailImg::after{
    opacity: 0.7;
    -webkit-transition: opacity 200ms;
    -moz-transition: opacity 200ms;
    -ms-transition: opacity 200ms;
    transition: opacity 200ms;
  }

  .DetailList .DatailImg{
    position: relative;
    font-size: 0;
    border: 1px solid #eee;
    box-sizing: border-box;
  }
  .DetailList .DatailImg img{
    width: 100%;
  }


  .DetailList .DatailImg::after{
    display: block;
    content: "";
    background: url(../img/case/icon-plus.png) no-repeat;
    background-size: contain;
    width: 35px;
    height: 35px;
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
  }

  .TabBox .CaseMore {
    width: 290px;
    line-height: 0;
    margin-left: auto;
    margin-right: auto;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -ms-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
  }

  .TabBox .CaseMore:hover{
    opacity: 0.6;
  }

  /* モーダル共通 */
  .sectionBox {
    display: none;
  }
  .modal-content {
    width: 707px;
    padding-top: 55px;
    padding-bottom: 85px;
    padding-left: 50px;
    padding-right: 35px;
    border: 4px solid #d7dfe4;
    background: #fff;
    line-height: 1.7;
  }

  .modal-content img{
    max-width: 100%;
  }

  .ModalWrapper {
    display:none;
    position:fixed;
    top:0;
    width:100%;
    height:100%;
    overflow:auto;
    z-index: 998;
  }

  .lock {
    overflow:hidden;
    width: 100%;
    height: 100%;
    /*position: fixed;*/
  }

  .ModalInner{
    position: relative;
  }

  #Overlay {
    display: none ;
    position: fixed ;
    top: 0 ;
    left: 0 ;
    width: 100% ;
    height: 120% ;
    background-color: rgba(215,223,228,0.7);
    z-index: 997;
  }

  .CloseButton {
    clear: both;
    width: 290px;
    margin-left: auto;
    margin-right: auto;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -ms-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
    cursor: pointer;
  }

  .CloseButton:hover {
    opacity: 0.7;
  }

  .ModalTtl {
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
    color:#52555d;
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 22px;
  }

  .ModalTxt {
    margin-bottom: 45px;
  }

  .ModalLeft {
    width: 340px;
    float: left;
    margin-right: 20px;
  }

  .ModalRight {
    width: 335px;
    float: left;
    margin-bottom: 60px;
  }

  .AfterImg {
    line-height: 0;
    margin-bottom: 15px;
  }

  .RightHead {
    font-family: "Times New Roman", Georgia, Serif;
    color: #4db2a2;
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 7px;
  }

  .CloseButtonTop {
    position: absolute;
    top: -70px;
    right: -50px;
    cursor: pointer;
  }

  .ModalLeft {
    width: 335px;
    float: left;
    margin-right: 30px;
    margin-bottom: 60px;
  }

  .ModalRight {
    width: 340px;
    float: left;
  }

  .RightImg {
    width: 185px;
    margin-right: 23px;
    float: left;
    line-height: 0;
  }

  .RightTxt {
    width: 120px;
    float: left;
  }

  .RightBox{
    display: inline-block;
  }

  .RightBox:nth-child(1) {
    margin-bottom: 25px;
  }

  /* 180706 お問い合わせボタン追加 */
  .CaseInqBtn {
    text-align:  center;
  }

  .CaseInqBtn a {
    text-align:  center;
    margin-top: 40px;
    transition: .3s;
    display: inline-block;
  }

  .CaseInqBtn a:hover {
    opacity: 0.6;
  }

}

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


/* ------------ SP ------------ */
@media screen and (max-width: 640px){

  a{
    color:#333;
    text-decoration: none;
  }

  /* タイトルビジュアル */
  #TitleVisual {
    width: 100%;
    background-image: url(../img/sp/case/case_title_img.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    margin-bottom: 15%;
  }

  #TitleVisual .ServiceTtl {
    width: 30%;
    padding-top: 16%;
    padding-bottom: 18%;
    padding-left: 10%;
  }

  /* メインコンテンツ */
  #CaseList {
    padding-left: 6%;
    padding-right: 6%;
    margin-bottom: 13%;
    line-height: 1.7;
  }

  .CaseLead {
    font-size: 1.4rem;
    line-height: 1.6;
  }

  /*タブ部分*/
  #CaseTab {
    margin-bottom: 20%;
    margin-left: auto;
    margin-right: auto;
  }

  .TabMenu {
    width: 100%;
    display: inline-block;
    position: relative;
    margin-bottom: 0.5%;
  }

  .TabMenu li {
    width: 15.5%;
    background-image: url(../img/case/tab_icon_off.png);
    background-repeat: no-repeat;
    background-position: 8% 55%;
    background-size: 10.5%;
    float: left;
    text-align: center;
    padding-top: 3%;
    padding-bottom: 2%;
    padding-left: 6%;
    padding-right: 3%;
  }

  .TabMenu li.select { /*アクティブ装飾*/
    background-image: url(../img/case/tab_icon_on.png);
    background-repeat: no-repeat;
    background-position: 10% 48%;
    background-size: 8%;
    background-color: #e8edf0;
    margin-bottom: -1.5%;
    padding-bottom: 4.5%;
    margin-left: -1%;
    padding-left: 7%;
  }

  .TabMenu li:nth-child(1),
  .TabMenu li:nth-child(2),
  .TabMenu li:nth-child(3){
    border-right: solid 2px #e8edf0;
  }

  .ContArea {
    border: solid 5px #e8edf0;
    padding-top: 10%;
    padding-bottom: 20%;
    padding-left: 6%;
    padding-right: 6%;
    margin-bottom: 10%;
    line-height: 1.7;
  }

  .hide{display:none;}/* アクティブ以外のTabの中身を非表示にしておく際の設定 */


  /* タブ表示させている中身 */
  #CaseTab .CaseTtl {
    font-size: 1.4rem;
    font-weight: bold;
  }

  #CaseTab .CasePrice {
    margin-bottom: 8%;
  }

  .TabBox .PriceAnnot {
    font-size: 1.2rem;
    margin-top: 1.5%;
    display: block;
    text-indent: -1em;
    padding-left: 4%;
  }

  .TabBox .DetailList {
    display: inline-block;
    margin-bottom: 15%;
  }

  .DetailList li:nth-child(odd) {
    width: 46%;
    height: auto !important;
    margin-bottom: 14%;
    margin-right: 8%;
    float: left;
    position: relative;
  }

  .DetailList li:nth-child(even) {
    width: 46%;
    margin-bottom: 14%;
    float: left;
    position: relative;
  }

  .DetailList li:nth-child(4),
  .DetailList li:nth-child(8) {
    margin-right: 0;
  }

  .DetailList li:nth-child(9) {
    margin-bottom:0;
  }

  .DetailList .CaseNew {
    width: 45%;
    position: absolute;
    top: 3%;
    left: -4%;
    z-index: 2;
  }

  .DetailList .DatailImg{
    position: relative;
    font-size: 0;
  }

  .DetailList .DatailImg::after{
    display: block;
    content: "";
    background: url(../img/case/icon-plus.png) no-repeat;
    background-size: contain;
    width: 14%;
    height: 14%;
    position: absolute;
    right: 1px;
    bottom: 1px;
    z-index: 2;
  }

  .TabBox .CaseMore {
    width: 70%;
    line-height: 0;
    margin-left: auto;
    margin-right: auto;
  }

  /* モーダル共通 */
  .modal-content {
    width: 100%;
    height: 100%;
    border: solid 5px #e8edf0;
    background-color: #fff;
    font-size: 1.4rem;
    line-height: 1.6;
    text-align: left;
    display: none;
    position: fixed;
    top: 0;
    left:100%;
    padding-top: 34%;
    padding-bottom: 17%;
    padding-left: 7%;
    padding-right: 7%;
    z-index: 998;
    box-sizing: border-box;
    overflow: scroll;
  }

  .lock{
    overflow: hidden;
    height: 100%;
    width:100%;
  }

  #Overlay {
    position: absolute;
    z-index: 500;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
  }
  .modal-content {
    display: block;
    left: 100%;
    -webkit-transition: all .5s ;
    -ms-transition: all .5s ;
    -moz-transition: all .5s ;
    -o-transition: all .5s ;
    transition: all .5s ;
  }
  .SlideIn {
    display: block;
    left: 0;
  }

  .ModalInner{
    position: relative;
  }

  .ModalTtl {
    font-size: 1.6rem;
    font-weight: bold;
    color: #52555d;
    line-height: 1.4;
    margin-bottom: 4%;
  }

  .ModalTxt {
    margin-bottom: 10%;
  }

  .AfterImg {
    margin-bottom: 5%;
    line-height: 0;
  }

  .LeftTxt {
    margin-bottom: 15%;
  }

  .RightBox {
    width: 100%;
  }

  .RightHead {
    font-family: "Times New Roman", Georgia, Serif;
    color: #4db2a2;
    font-size: 2rem;
    clear: both;
    line-height: 0;
    margin-bottom: 7%;
  }

  .RightImg {
    width: 60%;
    margin-bottom: 15%;
    margin-right: 5%;
    float: left;
  }

  .RightTxt {
    width: 35%;
    float: left;
  }

  .CloseButtonTop {
    width: 13%;
    position: absolute;
    top: -5%;
    right: -5%;
  }

  .CloseButton {
    width: 70%;
    margin-top: 5%;
    margin-left: auto;
    margin-right: auto;
  }

  .ModalHead {
    width: 22%;
  }

  /* 180706 お問い合わせボタン追加 */
  .CaseInqBtn {
    width: 60%;
    margin: 0 auto;
  }


}
