@charset "utf-8";
html{
  scroll-behavior:smooth;
}
/*リセット　必要な部分のみ*/
*{box-sizing: border-box;}
body,h1,h2,h3,p,ul,li,dl,dt,dd,select,form
    {margin:0;padding:0;}

ul{list-style-type:none;}

img{vertical-align: bottom;
    max-width:100%;
    border: 0;}
    
/*全体の設定*/
body {
	font-family: 'Avenir','Helvetica Neue','Helvetica','Arial','Hiragino Sans','ヒラギノ角ゴシック',YuGothic,'Yu Gothic','メイリオ',Meiryo,'ＭＳ Ｐゴシック','MS PGothic';
    background: #f3f1ec;}

p{line-height: 1.5em;}/*pタグの全ての行間は1.5文字分あける*/

/*リンク（全般）設定*/
a{color: #000;
    transition: 0.5s ease;
    text-decoration: none;}
/*a:hover{opacity: 0.6}*/
a:active{color: #333;}

/* list */
ul,ol{padding-left: 1.8em;
    margin: 10px 0;}

    
/* footer */
footer {
	background-color:rgba(165, 165, 165, 1);
	color: #000000;
	font-size: 14px;
    padding: 15px;
    margin-top: 2em;
    text-align: center;
    width: 100%;}

/*ページの上へ*/
.toppage{position: relative;} 
/*このボックスを起点とするためにposition:relativeに設定*/

.toppage a{
    position: absolute; /*このクラスを自由に動かすためにposition:absoluteに設定*/
  bottom: 20px;/*.topPageの下を起点として20px上にずらす*/
  right: 40px; /*.topPageの右を起点として40px左にずらす*/
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  color:#fff;
  background-color: #b6184a;
  padding: 10px 20px;
  border-radius: 50%; /*角を丸くする*/
  transition: 0.5s ease;}

.toppage a:hover{
  color: #333;
  opacity: 0.5;}



@media screen and (max-width: 640px) {
html,body {
		overflow-x: hidden;
		overflow-y: scroll;
		-webkit-overflow-scrolling: touch;}

.top{
    background: none;
    background-size: cover;}
    
.seopage{
    background: url(../image/bg_photo02.jpg) no-repeat;
    background-size: cover;}
#wrapper{max-width: 100%;}

/* footer */
footer {width: 100%;
	background-color:rgba(165, 165, 165, 0.9);
	color: #000000;
	font-size: 14px;
    padding: 5px;
    margin-top: 10px;
    text-align: center;
    position: relative;}

/* pagetop設定 */
.pagetop {
    margin: 10px 0;
    position: absolute;
    bottom: 1em;
    right: 0em;}

.pagetop a {
	color: #000;
	padding: 15px 25px;
	text-decoration: none;
    display: block;
    background-color:rgba(165, 165, 165, 0.9);
    border-radius: 5px;}
    
}

