﻿body{
  background-color: lightyellow;
}
.header {
  height: 100px;
  background-color: yellow;
}
.footer{
  height: 200px;
  background: black;
  color: #fff;
  clear: both;
}
.main-contents, .left-navi, .right-navi {
  height: 1800px;
}
.main-contents {
  background-color: red;
  color: #fff;
  float: left;
  width: 100%;
}
.main{
  width: 100%;
  float: right;
}
/***************************************/
@media screen and (max-width: 600px){
  .main, .left-navi,.main-contents, .right-navi{
  width: 100%;
  }
}
/*******************************************************************/
/*************************************************/
/**************要素の重なり対策 ******************/
/*************************************************/
.main nav {
    height:  50px;             /* 高さ指定 */
    width:  200px;              /* 幅指定 */
    background-color: #FF5722;  /* 背景色指定 */
    position:  relative;        /* 位置指定 */
    z-index: 10;                /* 重なり順指定 */
}
.z-index_test2 {
    height:  200px;             /* 高さ指定 */
    width:  200px;              /* 幅指定 */
    background-color: #03A9F4;  /* 背景色指定 */
    position:  absolute;        /* 位置指定 */
    top: 70px;                  /* 位置指定 */
    left: 100px;                /* 位置指定 */
    z-index: 100;               /* 重なり順指定 */
}
/*******************************************************************/
/************************全巾設定　ok****************************/
/*******************************************************************/
.main {
  width:1000px;
  background:silver;
}
/***************************************************/
/****************class="description" **********************************/
/*********************************************************/
.cp_card02 {
font-size: 14px;
line-height: 1.45em;
position: relative;
overflow: hidden;
height: 200px;
margin: 0 auto 1.6%;
-webkit-transition: height 0.3s ease;
transition: height 0.3s ease;
border-radius: 3px;
background: #ffffff;
-webkit-box-shadow: 0 3px 7px -3px rgba(0, 0, 0, 0.3);
box-shadow: 0 3px 7px -3px rgba(0, 0, 0, 0.3);
}
.cp_card02:hover .details {
left: 0;
}
.cp_card02:hover.alt .details {
right: 0;
}
.cp_card02.alt .details {
right: -100%;
left: inherit;
}
.cp_card02 .photo {
position: relative;
float: left;
width: 40%;
height: 100%;
-webkit-transition: all 0.5s ease;
transition: all 0.5s ease;
}
.cp_card02:hover .photo {
-webkit-transform: rotate(5deg) scale(1.3);
transform: rotate(5deg) scale(1.3);
}
.cp_card02 .photo.photo1 {
background: url('images.jpg') center no-repeat; /******************************/
background-size: cover;
}
.cp_card02 .details {
position: absolute;
top: 0;
left: -100%;
width: 40%;
height: 200px;
margin: 0;
padding: 10px 15px;
list-style: none;
-webkit-transition: all 0.3s ease;
transition: all 0.3s ease;
color: #ffffff;
background: rgba(255,87,34, 0.4);
}
.cp_card02 .details > li {
padding: 3px 0;
}
.cp_card02 .details li::before,
.cp_card02 .details .tags ul::before {
.container{
  padding-top: 20px;
}
.cp_card02:details{
	content: '\f046';
	display: inline-block;
	font-family: FontAwesome;
	font-weight: normal;
	font-size: inherit;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
margin-right: 10px;
vertical-align: middle;
}
.cp_card02 .details .author::before {
content: '\f007';  /*アイコンの種類*/
}
.cp_card02 .details .date::before {
content: '\f133';
}
.cp_card02 .details .tags ul {
margin: 0;
padding: 0;
list-style: none;
}
.cp_card02 .details .tags ul::before {
content: '\f02b';
}
.cp_card02 .details .tags li {
display: inline-block;
margin-right: 3px;
}
.cp_card02 .details a {
color: inherit;
}
.cp_card02 .details a:hover {
color: #ff5722;
}
.cp_card02 .description {
position: relative;
z-index: 0;
float: left;
width: 60%;
padding: 10px;
min-height: 200px;
}
.cp_card02 .description::before {
position: absolute;
z-index: -1;
top: 0;
bottom: 0;
left: -15px;
width: 100%;
content: '';
-webkit-transform: skewX(-8deg);
transform: skewX(-8deg);
background: #ffffff;
}
.cp_card02 .description h1 {
font-size: 1.4em;
line-height: 1em;
margin: 0 0 10px 0;
}
.cp_card02 .description h2 {
font-size: 1em;
line-height: 1.2em;
margin: 1.2% 0;
color: #9b9b9b;
}
.cp_card02 .description p {
position: relative;
margin: 0;
padding-top: 20px;
}
.cp_card02 .description p::after {
position: absolute;
top: 6px;
left: 0;
width: 20%;
height: 6px;
content: '';
background: #ff5722;
}
.cp_card02 .description a {
float: right;
margin-bottom: 10px;
text-decoration: none;
color: #ff5722;
}
.cp_card02 .description a::after {
font-family: FontAwesome;
margin-left: -10px;
content: '\f061';
-webkit-transition: all 0.3s ease;
transition: all 0.3s ease;
vertical-align: middle;
opacity: 0;
}
.cp_card02 .description a:hover::after {
margin-left: 5px;
opacity: 1;
}
@media screen and (max-width: 480px) {
.cp_card02 .description h1 {
font-size: 1.3em;
}
}
/****************************************************************************/
/************************ 基本CSS ****************************************************/
/****************************************************************************/
body{
font: normal 19px/1.5 Georgia, Serif;
font-size:19px;
letter-spacing:-1px;
padding: 5px; /*** 5px ***/
color:#333;
width: 960px;
margin-top:20px;
margin-right:auto;
margin-left:auto;
line-height:1.4;
}
h2{
	padding: 5px 5px 5px 20px;
	border-radius: 4px;
	border: 1px solid #9fde23;
	background-color: #ffffff; /*************#eafdcf***見出しの色*******************/
	color: #76ac00;
	margin-top:40px;
	font-size:22px;
}
body {background: #fff;}　/******************* 背景色 *********#9cf *************/
block {
    padding: 20px;
    background: #fff;
    border: 4px #14d7e5 solid;
    position: relative;
    z-index: 10;
}
/****************************************************************************/
/****************** jQuery smooth-scroll*************************************/
/****************************************************************************/
* { box-sizing: border-box }

.main {
  position: relative;
  max-width: 960px;
  background-color: #ffffff; /*** HTML 背景色******* #e3e3e3 ********************/
  margin: 10px auto;
  padding: 20px 10px;
}

.main nav {
  position: fixed;
  width: auto;
  margin-left: -20px;
  margin-top: -20px;
  padding: 10px;
  text-align: center;
  background-color: #d6c363;/*************#34495e****メニューバック*************/
  box-shadow: 0 1px 5px rgba(0,0,0,0.3);/*****(0,0,0,0.3)****************/
}

.main nav:before {
  content: "";
  display: black;
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 10px;
  height: 10px;
  -webkit-clip-path: polygon(100% 100%, 100% 0, 0 0);
  background-color: #4A6988; /********#4A6988*************************/
  z-index: -1;
}

.main ul {
  padding: 0;
  margin: 0;
}

.main nav li {
  display: inline;
  margin: 10px;
  list-style-type: none;
  width: 100%;
}

.main nav a {
  text-decoration: none;
  color: #fff;
  text-transform: uppercase;
  font-size: 1.1em;
  display: inline-red;
}

section {
  padding-top: 10px;
  height: 10px;
  width: 100%;
  background-color: #B2B2B2;/***** #B2B2B2 ****************/
  margin: 20px 0;
}

section h2 {
  color: #000;  /************* fff *****h2 見出しの色　***********************/
  text-align: center;
  font-size: 30px;
  text-transform: uppercase;
}

#home { background-color: #27ae60; }

#about { background-color: #2980b9; }

#gallery { background-color: #8e44ad; }

#info { background-color: #e67e22; }

#contacts { background-color: #e74c3c; }

/*******************************************************************/
/*******************************************************************/
/*******************************************************************/
/*** マウスオーバー時に画像を拡大・縮小させるエフェクト*************/
/*******************************************************************/
.moimg2 {
	overflow: hidden;
	width: 350px;
	height: 240px;
}
.moimg2 img {
        width: 350px;
	display: block;
	transition: 0.5s;
}
.moimg2 img:hover {
	transform: scale(2.0, 2.0);
}
/*******************************************************************/
/***gallery-container**ok*/
/*******************************************************************/

.gallery-container {
  width: 860px;
  margin-left: auto;
  margin-right: auto;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns:(1fr)[4];
  grid-template-columns: repeat(4, 1fr);
  grid-gap: .5em
}

.gallery-img {
  display: block;
  max-width: 100%;
  cursor: pointer
}

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.8);
  display: -ms-flexbox;
  display: flex;
  z-index: 1
}

.lightbox-container {
  position: relative;
  margin: auto;
  background: #fff;
  padding: 1em;
  border-radius: .2em
}

.close-modal {
  background: tomato;
  color: #fff;
  position: absolute;
  width: 1.8em;
  height: 1.8em;
  text-align: center;
  line-height: 1.8em;
  top: -.9em;
  right: -.9em;
  border-radius: 50%;
  cursor: pointer
}

.lightbox-description {
  text-align: center;
  font-size: 1.1em
}

.lightbox-navigation {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: justify;
  justify-content: space-between;
  font-size: .9em;
  opacity: .8
}

.lightbox-navigation__button {
  text-decoration: none;
  color: tomato
}
/*******************************************************************/
/************************** サルワカ枠 *****************************/
/*********************** boxString *********************************/
.box5 {
    padding: 0.5em 1em; /******************************/
    margin: 1em 0;              /******************************/
    border: double 5px #4ec4d1; /***5px***************************/
}
.box5 p {
    margin: 10; /***********10*******************/
    padding: 20; /**************0****************/
}
/*********************** 背景が上下左右に動くのBOX定義 **************/
.box {
  position   : relative;
  max-width  : 960px;                   /* 背景の大きさに変更 */
  height     : 200px; /******************************/
  margin     : auto;
  background : #ffffff;
  font-size: 58px; /*************追加**************************/
  line-height: 1;25px; /*************追加**************************/
}

/* --- 背景が上下左右に動くの背景定義 ----------------------- */
.box::before {
  display    : block;
  content    : "";
  position   : absolute;
  top        : 0;
  right      : 0;
  bottom     : 0;
  left       : 0;
  background-image : url(http://otegara.com/wp-content/uploads/2019/10/star_hokutoshichisei_819-768x605.png);  /* 使用する画像を指定****URLのみ可*****/
  animation  : bgAnime 15s linear infinite;
}
@keyframes bgAnime {
   0% { background-position: 0 0 }
                /* 使用する画像幅と画像高さのpxに変更ください */
 100% { background-position: 900px -103px } /*****100*************************/
}

/* --- 前面の文字定義（サンプルのため変更してください） ----- */
.boxString{
  position   : absolute;
  display    : inline-block;
  padding    : 10px;                             /* 半透明の高さサイズ 10px ***/
  background : rgba (0, 127, 255, 0.3);          /* 半透明の青 */
  color      : #fff;
  top        : 25%;                               /*位置　 中央寄せ 25*/
  left       : 35%;
  transform  : translate(-50%,-50%);
}
/*******************************************************************/
/**************** wrap **********************/
/****** float with Youtube **************/
/********* 高倉健 **************************************************/
.float-right{
  float:right;
  width:50%;
}
.float-left{
  float:left;
  width:50%;
}
.wrap:after{
display:block;
clear:both;
content:"";
}
/**************************************************/
/***********************************/
/*******content-wrap**写真を並べる**************/
/*******content-wrap**写真を並べる**************/
/***********************************/
.xxxcontents-wrap {
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.5rem;
}
.contents-wrap:nth-child(odd) {
	flex-direction: row-reverse;
}

.contents-text {
	width: 60%; /*flex: 2;*/
}
.contents-img {
	width: 100%; /*flex: 1;*/
}

.contents-text h2 {
	margin-bottom: 1rem;
	font-size: 1.5rem;
}

.contents-img img {
	display: block;
	width: 98%; /*******/
	height: auto;
}

@media screen and (max-width: 568px){
	.contents-wrap,
	.contents-wrap:nth-child(odd)  {
		flex-direction: column;
	}

	.contents-text,
	.contents-img {
		width: 60%; /*flex: 1;*/
	}

	.contents-text {
		padding: 0.3rem;
	}

	.contents-text h2 {
		text-align: center;
	}
}
/**********************************/
/**************** wrap **********************/
/****** float with Youtube **************/
/********* 高倉健 ********/
.float-right{
  float:right;
  width:50%;
}
.float-left{
  float:left;
  width:50%;
}
.wrap:after{
display:block;
clear:both;
content:"";
}

/**************************************/
/*********クルーデザインsite********/
/**************************************/
.wrapper {
  position:relative;
  display:inline-block;
}
.label {
  position:absolute;
  color:white;
  background:rgba(0, 127, 255, 0.3); /***半透明色***/
  font-size: 31px; /*************追加*****************/
  padding:5px 100px;  /***************:5px 53px**半透明色幅*********************/  
}
.label-left-top{
  left:150px;
  top:30px;
}
/***********************************************/
/**********画像を左に配置する*右配置不可***Webのあいラボ****ok***************/
img{
  float: left;
  margin: 0 20px 10px 0;
}
/*************************************************/
/********* サムネイル画像付きの一覧 ****************************************/
/*****************************************************/
article {
	display: flex;
	margin-bottom: 20px;
	padding: 20px;
	border-radius: 5px;
	box-sizing: border-box;
	box-shadow: 0 0 5px #999;
}
	article figure {
		margin-right: 20px;
		width: 300px;
		height: 300px;
	}
		article figure img {
			min-width: 100px;
			max-width: 100%;
			vertical-align: top;
		}
/****************************************************************/
/*********************** https://copypet.jp/codedescription/676/#about ********/
/*************************横並びのメニューレスポンシブ対応*****************************************************/
ul.topnav {
	overflow: hidden;
	margin: 0;
	padding: 0;
	list-style-type: none;
	background-color: #1b2538;
}
ul.topnav li {
	float: left;
}
ul.topnav li a {
	display: block;
	padding: 14px 16px;
	text-align: center;
	text-decoration: none;
	color: white;
}
ul.topnav li a:hover:not(.active) {
	background-color: #a9bce2;
}
ul.topnav li a.active {
	background-color: #da3c41;
}
ul.topnav li.right {
	float: right;
}
@media screen and (max-width: 480px) {
	ul.topnav li.right, ul.topnav li {
		float: none;
	}
}
/****************https://blog.maromaro.co.jp/archives/6068**********************************/
.sssample01 a{
width: 180px;
padding:15px;
margin:0 0 10px;
color:#ffffff;
font-size: 15px;
line-height: 120%;
text-align: center;
text-decoration: none;
background: #1B73BA;
display: block;
position:relative;
-webkit-border-radius: 24px;
-moz-border-radius: 24px;
border-radius: 24px;
-webkit-box-shadow:0px 15px 30px -15px rgba(0,0,0,0.3);
-moz-box-shadow:0px 15px 30px -15px rgba(0,0,0,0.3);
box-shadow:0px 15px 30px -15px rgba(0,0,0,0.3);
-webkit-transition: 0.3s ease-out;
-moz-transition: 0.3s ease-out;
-o-transition: 0.3s ease-out;
transition: 0.3s ease-out;
}
.sample01 a:hover{
background:#ddd;
letter-spacing:0.1em;
}


