/* IMPORT CSS */
@import url("grid.css");

img {
	max-width:100%;
	height: auto;/*高さ自動*/
}
a {
    display:block;
    color: #333;
    text-decoration-line: none;
}
a:hover {
    color: #999;
}
a img:hover {
	opacity: 0.8;
}
.blueback {
	background-color: #009959;
	color: #fff;
	padding: 1rem;
}
.blueback2 {
	background-color: #4CAF50;
	color: #fff;
	padding: 1rem;
	margin-left: 20px;
	margin-right: 20px;
}

.underline {
	border-bottom: 3px solid #009959;
	padding-bottom: 0.5rem;
}
.center {
	text-align: center;
}

.center1 {
  text-align: center;
  font-size: large;
}


/*Header
-------------------------------------*/

.head {
		float: left;	/*左に回り込み*/
		width: 330px;	/*画像幅*/
		height: auto;
		padding-top: 0px;	/*上に空ける余白。上下のバランスをここで調整します。*/
		padding-left: 3%;	/*左に空ける余白。*/
}
.telbox {
	float: right;			/*右に回り込み*/
	padding-top: 10px;		/*上に空ける余白。上下のバランスをここで調整します。*/
	padding-right: 3%;		/*右に空ける余白。*/
	font-size: 25px;		/*文字サイズ*/
	text-align: center;		/*内容をセンタリング*/
}

.menu {
	background-color: #009959;
}
nav ul {
	display: flex;
    flex-direction: row;
    justify-content: space-around;
    list-style: none;
	margin-bottom: 0;
}
nav li {
    flex: 1 0 auto;
	margin-bottom: 0;
}
nav li a {
    text-decoration: none;
    text-align: center;
	color: #fff;
}

menu li a:hover {
	background-color: #78e247; 	/*リンクにマウスが乗ったら背景色を変更する*/
}

nav a:hover {
    background-color: #78e247;
	color: #fff;
}
nav a {
    padding: 2rem 1rem;
	display: block;
}

@media screen and (min-width: 768px){
/* PC時はMENUボタンを非表示 */
#open,#close {
    display: none !important;
}

#navi {
    display: block !important;
}
}

@media screen and (max-width: 768px){
.head {
    text-align: left;
    margin-bottom: 0px;
}
.telbox {
	margin-left: 0;
	text-align: center;

}
.head #open,#close  {
    position: absolute;
    top: 20px;
    right: 12px;
    }
nav ul {
	flex-direction: column;
}

nav li {
	padding-top: 0;
	border-bottom: 1px solid #ccc;
	margin-bottom: 0;
}
/* スマホ時はMENUボタンを表示 */
#open,#close  {
    display: block;
    width: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 12px;
}
/* スマホ時はメニューを非表示 */
#navi {
    display: none;
}
}

/*text positions
-------------------------------------*/
.underline {
	border-bottom: 3px solid #009959;
	padding-bottom: 0.5rem;
}
.center {
	text-align: center;
}

.center1 {
  text-align: center;
  font-size: large;
}

.Title{
	margin-left: 20px;
	margin-right: 20px;
	font-size:23px;
	background-color: #009959;
	color: #fff;
	padding: 1rem;
	text-align: center;
}

/*image positions
-------------------------------------*/

.container_mainimg {
  position: relative;
  text-align: center;
  font-size: xx-large;
}

.bottom-left {
  position: absolute;
  bottom: 8px;
  left: 16px;
}

.top-left {
  position: absolute;
  top: 8px;
  left: 16px;
}

.top-right {
  position: absolute;
  top: 8px;
  right: 16px;
}


.bottom-right {
  position: absolute;
  bottom: 8px;
  right: 16px;
}

.centered {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/*Main image
-------------------------------------*/

.mainimg img {
	height: 30vw;
	width: 80vw;
	display: block;
	margin: 0 auto;
}


/*Main content
-------------------------------------*/
main {
    margin: 5rem 0 5rem 0;
}

.BusinessTitle{
	margin-left: 20px;
	margin-right: 20px;
	font-size:25px;
	background-color: #009959;
	color: #fff;
	padding: 1rem;
  text-align: center;
}


/*service
-------------------------------------*/
.service_text {
  font-size: 20px;
  margin-left: 20px;
  margin-right: 20px;
}

.wavy {
  text-decoration: underline;
  -webkit-text-decoration-color: salmon;
  text-decoration-color: salmon;
  -webkit-text-decoration-style: wavy;
  text-decoration-style: wavy;
  text-align: center;
  font-weight: bold;
}

/*キャッチコピー
-------------------------------------*/
.catchStatement{
	text-align: center;
	font-size: 23px;
}

div.background {
  background: url(../img/main_background.jpeg);
	background-size: cover;
	padding: 10px;
}

.businessp {
	position: absolute;
	bottom: 0;
	width: 100%;
	padding: 10px;
	color: #000;
	background-color: rgba(255,255,255,0.80);}


div.transbox {
  margin: 30px;
  background-color: #ffffff;
  border: 1px solid rgba(0,0,0, 0.3);
  opacity: 0.7;
	padding: 10px;
}

div.transbox p {
  margin: 3%;
  font-weight: bold;
  color: #000000;
}

/*Box
--------------------------------------*/

.box17{
  margin:2em 0;
  position: relative;
  padding: 0.5em 1.5em;
  border-top: solid 2px #009959;
  border-bottom: solid 2px #009959;
}
.box17:before, .box17:after{
  content: '';
  position: absolute;
  top: -10px;
  width: 2px;
  height: -webkit-calc(100% + 20px);
  height: calc(100% + 20px);
  background-color: #009959;
}
.box17:before {left: 10px;}
.box17:after {right: 10px;}
.box17 p {
  margin: 0; 
  padding: 0;
}


/*figure
--------------------------------------*/
figure {
    display: inline-block;
    margin: 5px; /* adjust as needed */
}
figure img {
  max-width: 109.5%;
  vertical-align: top;
}
figure figcaption {
	position: absolute;
	bottom: 0%;
	width: 100%;
	padding: 0px;
	color: #000;
	background-color: rgba(255,255,255,0.70);
}

figure figcaption p {
	position: relative;
  font-size: 50%;
}

/*新着情報
-------------------------------------*/
.news h2 {
  margin-left: 0px;
	margin-right: 0px;
	font-size:25px;
  background-color: #009959;
	color: #fff;
	padding: 1rem;
  text-align: center;
}
.news li {
    list-style-type: none;
	border-bottom: 1px solid #ccc;
	padding: 0.5rem 0;
}

dl.box{
    height: 220px;
    overflow: auto;
}
dl.box dt{
    float: left;
    width: 120px;
}
dl.box dd{
    margin: 0 0 10px 0;
    padding: 0 0 10px 120px;
    border-bottom: 1px dotted #aaa;
}

/* Instagram
---------------------------*/
.insta_btn {
  display: inline-block;
  text-align: center;/*中央揃え*/
  color: #2e6ca5;/*文字色*/
  font-size: 20px;/*文字サイズ*/
  text-decoration: none;/*下線消す*/
}

.insta_btn:hover {/*ホバー時*/
  color:#668ad8;/*文字色*/
  transition: .5s;/*ゆっくり変化*/
}

.insta_btn .insta{/*アイコンの背景*/
  position: relative;/*相対配置*/
  display: inline-block;
  width: 50px;/*幅*/
  height: 50px;/*高さ*/
  background: -webkit-linear-gradient(135deg, #427eff 0%, #f13f79 70%) no-repeat;
  background: linear-gradient(135deg, #427eff 0%, #f13f79 70%) no-repeat;/*グラデーション①*/
  overflow: hidden;/*はみ出た部分を隠す*/
  border-radius: 13px;/*角丸に*/

}

.insta_btn .insta:before{/*グラデーションを重ねるため*/
  content: '';
  position: absolute;/*絶対配置*/
  top: 23px;/*ずらす*/
  left: -18px;/*ずらす*/
  width: 60px;/*グラデーションカバーの幅*/
  height: 60px;/*グラデーションカバーの高さ*/
  background: -webkit-radial-gradient(#ffdb2c 10%, rgba(255, 105, 34, 0.65) 55%, rgba(255, 88, 96, 0) 70%);
  background: radial-gradient(#ffdb2c 10%, rgba(255, 105, 34, 0.65) 55%, rgba(255, 88, 96, 0) 70%);/*グラデーション②*/
}

.insta_btn .fa-instagram {/*アイコン*/
  color: #FFF;/*白に*/
  position: relative;/*z-indexを使うため*/
  z-index: 2;/*グラデーションより前に*/
  font-size: 35px;/*アイコンサイズ*/
  line-height: 50px;/*高さと合わせる*/
}

/*フッター
-------------------------------------*/
footer {
    background-color: #009959;
    padding: 5rem 0;
	color: #fff;
}
footer h5 {
    border-bottom: 2px solid #fff;
}

@media screen and (max-width: 767px) {
  #footer {
    padding: 20px 10px;
  }
  #footer #footer-inner {
    display: block;
    width: 100%;
  }
  #footer #footer-inner #footer-address {
    padding: 0;
    border-right: none;
    text-align: center;
  }
  #footer #footer-inner #footer-address .footer-address-tel {
    font-weight: bold;
    color: #009f81;
  }
  #footer #footer-inner #footer-nav {
    display: none;
  }
  #copyright {
    font-size: 65%;
  }
}


/*コピーライト
-------------------------------------*/
.copyright {
    text-align: center;
    padding: 1rem 0;
    background-color: #787878;
}

.copyright a{
  background: #787878;
  color: #fff;
  padding: 10px;
  font-size: 90%;
  text-align: center;
}

/*ページトップへ戻るボタン
-------------------------------------*/
#pagetop {
    position: fixed;
    bottom: 15px;
    right: 15px;
}
#pagetop a {
    display: block;
    background: #009959;
    color: #fff;
    width: 50px;
    padding: 10px 5px;
    text-align: center;
}
#pagetop a:hover {
    background: #009959;
}
/*Table and Form
-------------------------------------- */
#table {
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  border-collapse: collapse;
  width: 90%;
	margin-left: auto;
	margin-right: auto;


}

#table td, #table th {
  border: 1px solid #ddd;
  padding: 8px;
}

#table tr:nth-child(even){background-color: #f2f2f2;}

#table tr:hover {background-color: #ddd;}

#table th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: #4CAF50;
  color: white;
}

div.form
{
    display: block;
    text-align: center;
}
form
{
    display: inline-block;
    margin-left: 20px;
    margin-right: 20px;
    text-align: left;
}

.field { width: 50px; height: 390px; border: 1px solid #999999; padding: 5px; }
