/* カスタム CSS をここに入力してください */
.danraku2 {
    margin: 0 0 1.5em;
    padding: 0.8em;
    border-left: 7px solid #8bb8e8;
    border-bottom: 1px dashed #8bb8e8;
    font-size: 1.143em;
    font-weight: bold;
}

.danrak3 {
    margin: 0 0 1.5em;
    padding: 0.8em;
    border-left: 7px solid #8bb8e8;
    border-bottom: 1px dashed #8bb8e8;
    font-size: 1.143em;
    font-weight: bold;
}

.form-width { max-width: 100%;}

.wpcf7-submit {
font-size: 17px;
padding: 3px 25px;
background: #e9e9e9; 
color: #363B3F;
border-radius: 4px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-top: none;
border-right: none;
border-left: none;
border-bottom: solid 4px #dcdcdc;
}
 
.wpcf7-submit:hover {
background-color: #dcdcdc;
color: #dc143c;
}

/*
.form {  
    width: 100%;  
    border: 1px solid #000;  
}  
.form div   {  
    width: 80%;  
    border: 1px solid #FF0000;  
    margin: 0 auto;  
} 

.alt-table-responsive {
    width: 50%;
    overflow-y: hidden;
    overflow-x: auto;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    -webkit-overflow-scrolling: touch;
}
*/
.iframe {
position: relative;
padding-bottom: 56.25%;
padding-top: 30px;
height: 0;
overflow: hidden;
margin-top: 20px;
margin-bottom: 20px;
}

.iframe iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

/*　ContactForm7のテーブル化レスポンシブ調整　*/
 
/*テーブルを親要素の幅いっぱいに伸ばす*/
.table-res-form {
    width: 90%;
}
/*一行ごとに上ボーダー*/
.table-res-form tr {
    border-top: 1px #DDD solid;
}
/*一番上の行だけボーダーなし*/
.table-res-form tr:first-child {
    border-top: none;
}
/*奇数行だけ背景色つける*/
.table-res-form tr:nth-child(2n+1) {
    background: #eee;
}
/*thとtd内の余白指定*/
.table-res-form th, .table-res-form td {
    padding: 1.5em;
}
/*th（項目欄）は30%幅、テキストを右寄せ*/
.table-res-form th {
    width: 30%;
    text-align: right;
}
/*「必須」部分のスタイリング*/
.table-res-form .requied {
    font-size: 0.8em;
    color: #FFF;
    display: inline-block;
    padding: 0.3em 0.3em 0.2em;
    background: red;
    border-radius: 2px;
}
 
/*ここから768px以下の指定*/
@media only screen and (max-width: 768px) {
    /*thとtdをブロック化して幅100％にして、縦積み*/
    table.table-res-form th, table.table-res-form td {
				display:block;
        width: 100%;  
    }
　　/*th（項目名）欄の不要な余白削除・テキスト左寄せ*/
    table.table-res-form th {
        padding-bottom: 0;
        text-align: left;
    }
  
　/*不要な最終行の左のthを非表示にする*/
  table.table-res-form .empty {
        display:none;
  }

}

/*ここまで768px以下の指定---終わり*/
 
/*ここから入力欄のスタイル指定*/
 
/*各入力フォームスタイリング*/
.table-res-form input[type="text"], input[type="email"], textarea {
    border: 1px #89BDDE solid;
    padding: 0.5em;
    border-radius: 5px;
    margin-bottom: 0.5em;
    width: 100%;
}
/*入力欄にフォーカスしたら変化*/
.table-res-form input[type="text"]:focus, textarea:focus {
    background: #EEFFFF;
    box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.5);
}
/*送信ボタンスタイリング*/
.table-res-form input[type="submit"] {
    border: 1px #89BDDE solid;
    padding: 0.5em 4em;
    border-radius: 5px;
    background: #4C9ED9;
    color: #fff;
    box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.5);
    font-weight: bold;
}
/*送信ボタン・マウスオーバー時スタイリング*/
.table-res-form input[type="submit"]:hover {
    background: #006599;
    box-shadow: none;
}

/* プラグイン PZ-LinkCardのサムネイル画像サイズ */

.linkcard .lkc-thumbnail{
    text-align:center;
}
 
.linkcard .lkc-thumbnail-img{
    max-width: 150px;
    height: auto;
}

@media screen and (max-width: 786px)  {
    .linkcard .lkc-thumbnail {
        max-width: 360px;
        max-height:110px;
    }
    .linkcard .lkc-thumbnail-img {
        width: 100%;
        height: auto;
    }
}

@media screen and (max-width: 600px)  {
    .linkcard .lkc-thumbnail {
        max-width: 360px;
        max-height:110px;
    }
    .linkcard .lkc-thumbnail-img {
        width: 100%;
        height: auto;
    }
}
 
@media screen and (max-width: 480px)  {
    .linkcard .lkc-thumbnail {
        max-width: 240px;
        max-height:85px;
    }
    .linkcard .lkc-thumbnail-img {
        width: 100%;
        height: auto;
    }
}
 
@media screen and (max-width: 320px)  {
    .linkcard .lkc-thumbnail {
        max-width: 200px;
        max-height: 75px;
    }
    .linkcard .lkc-thumbnail-img {
        width: 100%;
        height: auto;
    }
}


/* 事務所紹介ページ用 CSS */
/* PC */
@media screen and (min-width: 961px) {
  * {
    margin: 0;
    padding: 0;
  }
  .item {
    display: flex;
    flex-wrap: nowrap;
    /*margin-bottom: 2em;*/
  }
  .item:nth-child(odd) {
    flex-direction: row-reverse;
  }
  .item-image {
    width: 50%;
  }
  .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .item-text {
    /*display: flex;*/
    text-align: center;
    flex-wrap: wrap;
    flex: 1;
    justify-content: center;
    /*align-content: center;*/
    /*align-items: center;*/
    padding: 3em;
    /*background: #eee;*/
  }
  .item-text h2 {
   margin-bottom: 2rem;
	 font-size: 2.7rem;
	 text-align: center;
  }
}

/* tablet */
@media only screen and (max-width: 960px) {
  * {
    margin: 0;
    padding: 0;
  }
  .item {
    display: flex;
    flex-wrap: nowrap;
    margin-bottom: 2em;
    flex-direction: column;
  }
  .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .item-text {
    /*display: flex;*/
    text-align: center;
    flex-wrap: wrap;
    flex: 1;
    justify-content: center;
    /*align-content: center;*/
    /*align-items: center;*/
    padding: 3em;
    background: #eee;
  }
}

/* SmartPhone */
@media screen and (max-width: 640px) {
  * {
    margin: 0;
    padding: 0;
  }
  .item {
    display: flex;
    flex-wrap: nowrap;
    margin-bottom: 2em;
    flex-direction: column;
  }
  .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .item-text {
    /*display: flex;*/
    text-align: center;
    flex-wrap: wrap;
    flex: 1;
    justify-content: center;
    /*align-content: center;*/
    /*align-items: center;*/
    padding: 3em;
    background: #eee;
  }
}
/* ---------------------- */