
/*全体の設定
---------------------------------------------------------------------------*/

img {border: none;max-width: 100%;height: auto;vertical-align: middle;}



/*inner
---------------------------------------------------------------------------*/
.inner {
	max-width: 1240px;	/*サイトの最大幅*/
	margin: 0 auto;
	padding-left: 2%;
	padding-right: 2%;
	background: #f2faff;
}


/*リンク（全般）設定
---------------------------------------------------------------------------*/
#main_pain {
    margin-right: -10px;
    margin-bottom: -10px;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}

#main_pain .item {
    position: relative;
    width: calc(100%/3 - 10px);
    margin: 0 10px 20px 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.author_profile .avatar_area img, .animate_image img, .animate_background .image {
    width: 100%;
    height: auto;
    -webkit-transition: transform .5s ease;
    transition: transform .5s ease;
}

.author_profile a.avatar:hover img, .animate_image:hover img, .animate_background:hover .image {
	transition:all 0.3s;
	opacity:0.4;
	}

.author_profile .avatar_area img, .animate_image img, .animate_background .image {
    width: 100%;
    height: auto;
    -webkit-transition: transform .5s ease;
    transition: transform .5s ease;
}

a, a:before, a:after, input {
    -webkit-transition-property: background-color,color;
    -webkit-transition-duration: .2s;
    -webkit-transition-timing-function: ease;
    transition-property: background-color,color;
    transition-duration: .2s;
    transition-timing-function: ease;
}

#main_pain .linkstyle {
    display: block;
}

#main_pain  a {
  text-decoration: none;
}


#main_pain .icon {
    text-align: center;
    font-weight: 600;
    width: 70px;
    height: 70px;
    border-radius: 100%;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-justify-content: center;
    -webkit-justify-content: center;
    justify-content: center;
    -ms-align-items: center;
    -webkit-align-items: center;
    align-items: center;
}

#main_pain .image_wrap {
    display: block;
    margin: 0;
    width: 100%;
    height: 234px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 0 0 10px 10px;
}

#main_pain .image {
    width: 100%;
    height: 100% !important;
    display: block;
    overflow: hidden;
    position: relative;
    z-index: 2;
}


#main_pain .title {
    font-size: 120%;
    background: #9cf;
    padding: 15px;
    border: none;
    color: #330;
    text-align: center;
    border-radius: 10px 10px 0 0;
   	margin-bottom: 0px;
}



#main_pain .title span {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    visibility: visible;
}




#main_pain .category, .index_service_list .category {
    background-color: #034;
}

#main_pain .category {
    display: block;
    color: #fff;
    background: #003447;
    padding: 0 20px;
    height: 50px;
    line-height: 50px;
    -webkit-transition: color .2s ease;
    transition: color .2s ease;
}

/*コンテンツ
---------------------------------------------------------------------------*/
#contents {
	padding: 100px 0 0;	/*上、左右、下へのコンテンツ内の余白*/
	position: relative;
	animation-name: opa2;	/*keyframes.cssで使う@keyframesの指定*/
	animation-duration: 0.5S;	/*アニメーションの実行時間*/
	animation-delay: 0.5s;		/*出現するタイミング（秒後）*/
	animation-fill-mode: both;
}
/*h2タグ*/
#contents h2 {
	clear: both;
	margin-bottom: 50px;
	font-size: 250%;	/*文字サイズ*/
	text-align: center;	/*文字をセンタリング*/
	letter-spacing: .06em;	/*文字間隔を少し広めにとる指定。通常がいいならこの１行削除。*/
	color: #333;		/*文字色*/
}
/*h2タグ内のspanタグ（装飾文字）*/
#contents h2 span {
	display: block;
	font-size: 30%;	/*文字サイズ*/
	color: #4e3a0e;
}
#contents h2 .note {
	margin-top: 1em;
    font-size: 40%;
    border-top: 1px #ccc solid;
    padding-top: 1em;
	}
/*h3タグ*/
#contents h3 {
	clear: both;
	margin-bottom: 30px;
	font-size: 150%;	/*文字サイズ*/
	border-bottom: 1px dashed #999;	/*下線の幅、線種、色*/
	padding-left: 3%;		/*左側に空ける余白*/
	letter-spacing: 0.1em;	/*文字間隔を少し広めにとる指定。通常がいいならこの１行削除。*/
	color: #1a3164;		/*文字色*/
}
/*段落タグ*/
#contents p {
	padding: 0 3% 30px;	/*上、左右、下への余白*/
}
#contents h2 + p,
#contents h3 + p {
	margin-top: -5px;
}
#contents p + p {
	margin-top: -10px;
}
#contents section + section {
	margin-top: 100px;
}

/*list（worksページで使っている横長ブロック）
---------------------------------------------------------------------------*/
/*ボックスの設定*/
#contents .list {
	position: relative;
	border-radius: 5px;				/*角丸の指定。ほんの少し角が丸くなります。*/
	overflow: hidden;				/*角丸から内容が飛び出ないよう、飛び出た部分を非表示にする指定*/
	display: flex;
	align-items: center;			/*中のブロックの縦並びの揃え方*/
	background: linear-gradient(to bottom, #193264 40%, #9cf);		/*背景色*/
	color: #fff;			/*文字色*/
	margin: 0 3% 30px;		/*ボックスの下に空けるスペース。上、左右、下への順番。*/
}
/*リンクテキストの文字色*/
#contents .list a {
	color: #fff;
}
/*ボックス内のh4（見出し）タグ*/
#contents .list h4 {
	margin-bottom: 20px;	/*下のテキストとの間に空けるスペース*/
	font-size: 140%;		/*文字サイズ*/
	color: #ffe291;
}
/*ボックス内のp（段落）タグ*/
#contents .list p {
	padding: 0;		/*余白のリセット*/
}
/*ボックス内のfigure画像*/
#contents .list figure {
	width: 50%;		/*画像の幅*/
}
/*「class="text"」を指定したブロック。テキストブロック。*/
#contents .list .text {
	width: 50%;		/*ブロックの幅。下のpaddingの5%とも連動するので変更の際は注意して下さい。*/
	padding: 2% 5%;	/*上下、左右へのブロック内の余白*/
}

/*偶数目のブロックの設定（画像とテキストブロックが左右交互に入れ替わる設定です。全部同じむきがよければこのブロックを削除します。）*/
#contents .list:nth-of-type(even) .text {
	order: 1;
}

/*装飾文字の設定（共通）*/
#contents .list::before {
	font-size: 18vw;
	line-height: 1;
	position: absolute;
	color: rgba(255,255,255,0.10);	/*文字色。255,255,255は白のことで、0.15は色が15%出た状態のこと。*/
	font-family: 'Tangerine', cursive;	/*冒頭で読み込んだGoogle Fontsを適用する指定*/
}
/*奇数番目のブロックの文字の配置場所指定*/
#contents .list:nth-of-type(odd)::before {
	left: -60px;
	top: -40px;
}
/*偶数番目のブロックの文字の配置場所指定*/
#contents .list:nth-of-type(even)::before {
	right: 0px;
	top: -40px;
}
/*１つ目ブロックに表示させるテキスト*/
#contents .list:nth-of-type(1)::before {
	content: "";
}
/*２つ目ブロックに表示させるテキスト*/
#contents .list:nth-of-type(2)::before {
	content: "";
}
/*３つ目ブロックに表示させるテキスト*/
#contents .list:nth-of-type(3)::before {
	content: "";
}
/*4つ目ブロックに表示させるテキスト*/
#contents .list:nth-of-type(4)::before {
	content: "";
}
/*5つ目ブロックに表示させるテキスト*/
#contents .list:nth-of-type(5)::before {
	content: "";
}
/*6つ目ブロックに表示させるテキスト*/
#contents .list:nth-of-type(6)::before {
	content: "";
}
/*7つ目ブロックに表示させるテキスト*/
#contents .list:nth-of-type(7)::before {
	content: "";
}

