@import url(http://fonts.googleapis.com/earlyaccess/notosansjp.css);
@import url(https://fonts.googleapis.com/css?family=Pacifico);

/* reset */
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td{margin:0;padding:0;}
address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;}
ul{list-style:none;}
table{border-collapse:collapse;border-spacing:0;}
caption,th{text-align:left;}
q:before,q:after{content:'';}
object,embed{vertical-align:top;}
legend{display:none;}
h1,h2,h3,h4,h5,h6{font-size:100%;}
img,abbr,acronym,fieldset{border:0;}

body{
	font: 20px/1.9 ,'Noto Sans JP', Arial, Verdana, 游ゴシック, YuGothic,'ヒラギノ角ゴ ProN W3', 'Hiragino Kaku Gothic ProN', メイリオ, Meiryo,sans-serif;
	font-weight: 300;
	-webkit-text-size-adjust:100%;
	overflow-x: hidden;
	color: #000;
	background: #fff;
}

a{
	color: #0066ff;
	text-decoration: none;
}

a:hover, .active{
  text-decoration: underline;
}

a:active, a:focus,input:active, input:focus{outline:0;}


/* ヘッダー
------------------------------------------------------------*/
#header{
	text-align: center;
}

#header h1{
	padding-top: 80px;
	padding-bottom: 8px;
}

#header h2{
	padding-bottom: 12px;
}

#mainnav a{
	color: #000;
}

#mainImg{
	position: relative;
  overflow: hidden;
  width: 100%;
  height: 600px;
}

#mainImg img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%); /* 自分の幅の半分だけ自動で戻る */
  max-width: 1920px;
  max-height: auto; /* 比率を維持 */
}

/* フッター
------------------------------------------------------------*/
#footer{
	clear: both;
	padding: 50px 10px 10px 0;
	text-align: center;
	font-size: 18px;
}
/* メニューの上下の隙間を詰める */
    #mainnav li {
        display: inline-block !important; /* 横並びを維持 */
        padding: 10px 15px !important;    /* 50pxから10pxに大幅に減らす */
        line-height: 1.4 !important;      /* 行間をギュッと詰める */
        font-size: 14px !important;       /* スマホに合わせて文字を少し小さく */
    }

    /* メニュー全体の余白も微調整（必要に応じて） */
    #mainnav {
        padding: 10px 0 !important;
    }


/* 共通
------------------------------------------------------------*/

img{
	max-width: 100%;
	height: auto;
}

section{
	clear:both;
	padding-top: 70px;
}

/*↓ページ下部の説明文のフォント*/
section h2{
	font-family: 'Helvetica' , cursive; /*赤字のとこ、英字フォント変えれる*/
	width: 60%;
	margin: 0 auto 40px;
	font-size: 21px;
	font-weight:normal;
	text-align: center;
	background: url(../images/borderBlack.png) repeat-x 0 50%;
	background-size: 1px 1px;
}
/*↑ページ下部の説明文のフォント*/

.underline{
	text-decoration: underline;
}
section h2 span {
	background: transparent !important; /*背景を透明に*/
	color: #fff !important;/*文字を白に*/
	padding: 0 80px;
}

.inner{
	width: 94%;
	margin: 0 auto;
	padding-bottom: 50px;
}

.innerS{
	width: 60%;
	margin: 0 auto;
	padding-bottom: 80px;
}


/* SEC02 Gallery
------------------------------------------------------------*/
/* 親要素の設定 */
#gallery {
    display: flex;       /* 横並びにする命令 */
    flex-wrap: wrap;    /* 幅がいっぱいになったら自動で折り返す */
    padding: 0;
    margin: 0;
}

/* 子要素（リスト）の設定 */
#gallery li{
    /* float: left; は削除 */
    width: calc(100%/3); /* 幅の指定はそのまま */
    line-height: 0;
}


/* SEC03 PROJECT
------------------------------------------------------------*/
#sec03 img{
	width: 100%;
	margin-bottom: 30px;
}

/* RESPONSIVE 設定
------------------------------------------------------------*/

@media only screen and (min-width: 1200px){
	.inner{
		width: 1024px;
	}
}

@media only screen and (min-width: 800px){
	body{
		font-size:14px;
	}
	
  a#menu{
		display:none;
	}	

	.panel{
		display:block !important;
	}

	#mainnav li{
		display: inline-block;
		padding: 50px 25px;
		font-size: 15px;
	}
	
	
	/* SEC03 PROJECT
	-----------------*/
	.col3{
		text-align: center;
	}

	.col3 li{
		display: inline-block;
		width: 28%;
		padding: 0 2.5% 50px;
		margin-bottom: 0;
		vertical-align: top;
		text-align: left;
	}
	
  #footer{
		padding: 5px 10px 20px 0;
	}
}

/* --- スマホ・タブレット用の上書き設定（ここから） --- */
@media only screen and (max-width: 799px) {

    /* 1. ヘッダーの重なりを解消 */
    #header h1 {
        padding-top: 20px !important; 
        padding-bottom: 5px !important;
    }
    
    #header h2 {
        padding-bottom: 10px !important;
        font-size: 1rem !important;
    }

    /* 2. メイン画像エリアの「高さ固定」を解除（これが重なりの最大の原因） */
    #mainImg {
        position: relative !important; /* 浮かせない */
        width: 100% !important;
        height: auto !important;      /* 高さを中身（画像）に合わせる */
        min-height: 0 !important;      /* 最小高さの設定があればリセット */
        overflow: visible !important;
        padding-top: 0 !important;
    }

    /* 3. 画像自体の「絶対配置」を解除 */
    #mainImg img {
        position: static !important;   /* absoluteを解除 */
        display: block !important;
        width: 100% !important;
        height: auto !important;
        left: auto !important;
        transform: none !important;    /* 中央寄せの計算を解除 */
        margin: 0 !important;
    }

    /* 4. 下にある文章（Section）の食い込みを防止 */
    section {
        padding-top: 30px !important;
        clear: both !important;
    }

    section h2 {
        width: 90% !important;
        font-size: 18px !important;
        background: none !important; /* 背景画像（線）が邪魔なら消す */
    }

    section h2 span {
        padding: 0 !important;
        background: transparent !important;
    }
	
}
/* --- スマホ・タブレット用の上書き設定（ここまで） --- */