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

/* 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: 14px/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;}


/* ヘッダー
------------------------------------------------------------*/
#mainnav a{
	color: #000;
	font-family: 'Modern Antiqua', 'Noto Sans JP',serif;
}


/* フッター
------------------------------------------------------------*/
#footer{
	clear: both;
	padding: 50px 10px 50px 0;
	text-align: center;
	font-size: 12px;
}


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


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

section{
  clear: both;
}

section h2{
	width: 60%;
	margin: 70px auto;
	font-size: 22px;
	font-weight:normal;
	text-align: center;
}

section h2 span {
	padding-bottom: 20px;
	border-bottom: 3px solid #000;
}

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

#sec03 .inner, #sec04 .inner{
	border-bottom: 1px solid #a0a0a0;
}

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



/* SEC02 Gallery
------------------------------------------------------------*/



.underline {
  border-bottom: 1px solid #000; /* 下線の色を調整 */
  display: inline-block;
  line-height: 1.6; /* 下線が文字と重ならないように調整 */
  padding-bottom: 2px; /* 下線と文字の距離をとる */
}

#gallery{
	overflow: hidden;
}


#gallery img{
	display: block;
	width: 100%;
	height: auto;
}


/* SEC03 BRAND
------------------------------------------------------------*/
.col4 .img{
	margin: 0 auto;
}



/* SEC04 PROJECT
------------------------------------------------------------*/


.article{
	clear: both;
	overflow: hidden;
	padding-bottom: 50px;
}

.article img{
	float: left;
	margin: 5px 20px 20px;
}

.article p{
	margin-bottom: 20px;
}



/* SEC05 COMPANY
------------------------------------------------------------*/


.col2 li{
	display: inline-block;
	width: 100%;
  margin: 20px 0;
}

#map{
	position: relative;
	padding-bottom: 75%;
	height: 0;
	overflow: hidden;
	z-index: 0;
}

#map iframe{
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	border: 0;
}


section h2 {
  width: 60%;
  margin: 70px auto 40px auto;
  font-size: 22px;
  font-weight: normal;
  text-align: center;
}


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

@media only screen and (min-width: 800px){
	body{
		font-size:14px;
	}
	
	#wrapper{
		width: 100%;
	}
	
	#content{
		width: 80%;
	}
	
	#sidebar{
		width: 12%;
		position: fixed;
		top: 0;
		right: 4%;
		background: #fff;
	}
	
  a#menu{
		display:none;
	}	

	.panel{
		display:block !important;
	}
	
	#sidebar h1{
		padding: 30px 0;
	}

	#mainnav li{
		font-size: 14px;
		padding: 10px 0;
	}
	
	#sns{
		margin-top: 50px;
	}
	
	#sns li{
		display: inline-block;
		padding-right: 10px;
	}

	#sns a:hover img{
		opacity: .8;
	}
	
	/* SEC03 BRAND
	-----------------*/
	.col4{
		text-align: center;
	}

	.col4 li{
		display: inline-block;
		width: 18%;
		padding: 0 3%;
		vertical-align: top;
		text-align: left;
	}
	
	#map iframe{
		height: 200px !important;
  }
	
  #footer{
		padding: 30px 10px 70px 0;
	}
}


@media only screen and (min-width: 641px){
	.col2 li{
		width: 60%;
		vertical-align: top;
	}
	.col2 li:first-child{
		width: 35%;
		padding-right: 4%;
	}
}

@media only screen and (max-width: 640px){
	.innerS{
		width: 94%;
		padding-bottom: 30px;
	}
	#gallery li{
		float: none;
		width: 100%;
	}
	.article img{
		float: none;
		display: block;
		margin: 0 auto 20px;
	}
	#map iframe{
		width: 96% !important;
		left: 2%;
	}
}

@media only screen and (max-width: 799px){
	#sidebar{
		position: fixed;
		width: 100%;
		z-index:500;
	}
	
	#sidebarWrap{
		position: relative;
		width: 100%;
		height: 60px;
		background: #fff;
		border-bottom: 1px solid #ccc;
	}
	
	#sidebar h1{
		text-align: center;
		padding-top: 15px;
	}
	
	#sidebar h1 img{
		width: auto !important;
		max-height: 25px;
	}
	
  a#menu{
  	display: inline-block;
  	position: relative;
  	width: 40px;
  	height: 40px;
  	margin: 10px;
	}

	#menuBtn{
  	display: block;
  	position: absolute;
  	top: 50%;
  	left: 50%;
  	width: 18px;
  	height: 2px;
  	margin: -1px 0 0 -7px;
  	background: #000;
  	transition: .2s;
	}

	#menuBtn:before, #menuBtn:after{
  	display: block;
  	content: "";
  	position: absolute;
  	top: 50%;
  	left: 0;
  	width: 18px;
  	height: 2px;
  	background: #000;
  	transition: .3s;
	}

	#menuBtn:before{
  	margin-top: -7px;
	}

	#menuBtn:after{
  	margin-top: 5px;
	}

	a#menu .close{
  	background: transparent;
	}

	a#menu .close:before, a#menu .close:after{
  	margin-top: 0;
	}

	a#menu .close:before{
  	transform: rotate(-45deg);
  	-webkit-transform: rotate(-45deg);
	}

	a#menu .close:after{
  	transform: rotate(-135deg);
  	-webkit-transform: rotate(-135deg);
	}

	.panel{
		width: 100%;
		display: none;
		overflow: hidden;
		position: relative;
		left: 0;
		top: -10px;
		z-index: 100;
	}

	#mainnav{
		position: absolute;
		top: 0;
		width: 100%;
		text-align: right;
	}

	#mainnav ul{
		border-bottom: 1px solid #ccc;
		background: #fff;
		text-align: left;
	}

	#mainnav li a{
		position: relative;
		display: block;
		padding: 15px 25px;
		border-bottom: 1px solid #ccc;
		color: #000;
		font-weight: 400;
	}
	#mainnav li a:before{
		display: block;
		content: "";
		position: absolute;
		top: 50%;
		left: 5px;
		width: 6px;
		height: 6px;
		margin: -4px 0 0 0;
		border-top: solid 2px #000;
		border-right: solid 2px #000;
		-webkit-transform: rotate(45deg);
		transform: rotate(45deg);
	}
	#mainnav #sns li{
		display: inline-block;
	}
	#mainnav #sns li a{
		position: relative;
		display: inline-block;
		padding: 15px 10px 0;
		border: 0;
	}
	#mainnav #sns li a:before{
		border: 0;
	}
	.col4 li{
		margin: 0 auto 50px;
		display: block;
		text-align: center;
	}
	section h2{
		margin: 55px auto;
	}
}

/* 全h2の見出しに共通の上下余白 */
h2 {
  margin: 60px 0 40px; /* 上60px、下40px */
  line-height: 1.4;
  font-size: 1.8em; /* 必要に応じて調整 */
  text-align: center;
}

/* 必要に応じてスマホで余白を縮めたい場合（レスポンシブ対応） */
@media screen and (max-width: 768px) {
  h2 {
    margin: 40px 0 30px;
    font-size: 1.5em;
  }
}

.article-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.article-image {
  flex: 0 0 370px; /* 画像の幅を固定 */
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-text {
  flex: 1;
  min-width: 280px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .article-row {
    flex-direction: column;
  }
  .article-image, .article-text {
    flex: 1 1 100%;
  }
}

/* SEC04の記事のレイアウト修正（画像左・テキスト右） */
.article {
  float: none !important;
  overflow: visible !important;
  padding-bottom: 0 !important;
}

.article-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.article-image {
  flex: 0 0 370px;
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-text {
  flex: 1;
  min-width: 280px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .article-row {
    flex-direction: column;
  }
  .article-image, .article-text {
    flex: 1 1 100%;
  }
}

p, .article-text {
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.7; /* 行間をやや広めにしてゆとりを持たせる */
}

.underline {
  display: inline-block;
  border-bottom: 2px solid #000; /* 必要に応じて色調整 */
  padding-bottom: 5px;
}

/* セクション全体の上下余白を統一 */
section {
  margin-top: 120px;
  margin-bottom: 120px;
  padding-top: 0;
  padding-bottom: 0;
}

/* 各セクション見出し(header)の上下余白を統一 */
section > header {
  margin-bottom: 30px;
  text-align: center;
}

/* 見出しh2の余白はすでに設定あり */
/* .innerSの上下余白を統一 */
.innerS {
  margin-top: 0;
  margin-bottom: 60px; /* セクション間の余白として */
  padding-top: 0;
  padding-bottom: 0;
  width: 60%; /* 既存のまま */
}

/* pタグの上下余白を一定に */
.innerS p, section p {
  margin-top: 0;
  margin-bottom: 24px; /* 適宜調整可 */
  line-height: 1.7;
}

/* gallery画像には余白をつけない */
#gallery img {
  margin: 0;
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* その他のimgにだけ上下余白を残したい場合 */
.innerS img:not(#gallery img),
section img:not(#gallery img) {
  margin-top: 20px;
  margin-bottom: 40px;
}

/* ストーリーのarticle-row間隔は margin-bottom:40px でOK */

#gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0;
  margin: 0 auto;
  max-width: 1200px; /* 任意：中央揃えにしたい場合 */
}

#gallery li {
  width: calc(33.333% - 20px); /* 3列（ギャップ分を引く） */
  box-sizing: border-box;
  margin-bottom: 0px;
}

#gallery img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media screen and (max-width: 600px) {
  .h2-subtext {
    font-size: 0.65rem;
  }
}

@media screen and (max-width: 600px) {
  #sec04 .article-text,
  #sec04 .article-text p {
    text-align: center !important;
  }
}

@media screen and (max-width: 768px) {
  /* スマホ表示で該当テキストを中央揃え */
  .article-text p {
    text-align: center !important;
  }
}

@media screen and (max-width: 768px) {
  .article-text p {
    font-size: 0.55rem; /* お好みの小さいサイズに調整してください */
  }
}

#sec04 .inner {
  border-bottom: none !important;
  padding-bottom: 0 !important; /* 必要なら余白も調整 */
}

/* mainImgと同じ幅に合わせるための共通クラス */
.max-width-container {
  max-width: 800px; /* mainImgがこの幅に収まっている想定 */
  margin: 0 auto;
  padding: 0 20px; /* スマホなどでも余白を確保 */
}

/* スマホ画面で文字を小さくする */
@media screen and (max-width: 768px) {
  .mobile-small {
    font-size: 0.7rem;
  }
}




/* 「料金表」と「GALLERY」の見出しを中央揃えかつ幅を統一 */
#content > header h2,
#sec02 header h2 {
  max-width: 700px;
  margin: 0 auto 20px; /* 上下マージン調整 */
  padding: 0 20px;
  font-size: 1.2rem;
  text-align: center; /* 中央揃え */
}

/* ul#galleryのリストの余白をなくす */
#gallery {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0; /* 写真間の隙間をなくす */
}

/* liの余白をなくす */
#gallery li {
  margin: 0;
  padding: 0;
}

@media screen and (max-width: 768px) {
  #gallery li {
    width: calc(50% - 10px); /* スマホでは2列表示 */
  }
}

@media screen and (max-width: 480px) {
  #gallery li {
    width: 100%; /* スマホが小さい場合は1列表示 */
  }
}

#sec02 .innerS {
  max-width: 700px;      /* sec03と同じ幅に */
  width: 100%;
  margin: 0 auto 60px;   /* 中央揃え + 下余白 */
  padding: 0 20px;       /* スマホでも余白 */
}
#sec02 header h2 {
  max-width: 700px;      /* sec03と揃える */
  margin: 70px auto 40px auto;
  padding: 0 20px;
  font-size: 1.2rem;
  text-align: center;
}

#sec02 .gallery-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
  line-height: 1.8;
}

#mainnav a {
  color: #000;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: bold;
}

#mainnav a,
.panel ul li a {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: bold;
}

/* ロゴ画像 */
#sidebar h1 img {
  width: 150px;
  height: auto;
  display: block;
  margin: 0 0 20px 0;     /* 上右下左＝左寄せ */
  padding-left: 0px;     /* ナビの左側と合わせる数値に調整 */
}

/* ナビゲーション項目の余白 */
#mainnav li {
  padding: 10px 0;
}

/* スマホ表示でのロゴ調整 */
@media screen and (max-width: 768px) {
  #sidebar h1 img {
    width: 100px;
    margin-bottom: 16px;
  }
}

@media screen and (max-width: 799px) {
  #mainImg {
    padding-top: 60px;
  }
}

.br-sp {
  display: none;
}

@media screen and (max-width: 768px) {
  .br-sp {
    display: block;
  }
}

.br-pc {
  display: none;
}

@media screen and (min-width: 769px) {
  .br-pc {
    display: block;
  }
}

/* 最後のpやimgが間延びしないように調整 */
section p:last-child,
section img:last-child {
  margin-bottom: 60px;
}

/* innerSの中の最後のpタグに余白を強制 */
.innerS p:last-child {
  margin-bottom: 60px !important;
}

/* stories の画像の下も空ける */
#sec04 img:last-of-type {
  margin-bottom: 60px;
}

/* 料金表のテーブルの下に余白追加 */
#sec04 table {
  margin-bottom: 40px;
}

section > *:first-child {
  margin-top: 0 !important;
}

section > *:last-child {
  margin-bottom: 0 !important;
}

section {
  margin: 120px 0;
}

section img,
section p,
section header {
  margin-top: 0;
  margin-bottom: 0;
}

/* section 全体に上下余白を統一 */
section {
  margin: 120px 0;
  padding: 0;
}

/* section内のp, imgの余白を調整 */
section p,
section img {
  margin-top: 0;
  margin-bottom: 24px; /* または好みで調整可 */
}

/* 最後のpやimgで間延びしないように調整 */
section p:last-child,
section img:last-child {
  margin-bottom: 0;
}

/* 見出しの余白も調整 */
section > header {
  margin-bottom: 40px;
}

body section {
  margin: 120px 0 !important;
}

body section > header {
  margin-bottom: 30px !important;
}

body section p:last-child,
body section img:last-child {
  margin-bottom: 60px !important;
}

#gallery li {
  line-height: 0; /* 行間を消す */
}

#gallery img {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: bottom; /* 行間対策の補完 */
}

/* ギャラリーのリストアイテム同士の余白をなくす */
#gallery {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0; /* 画像間の隙間をゼロに */
}

#gallery li {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0; /* 不要な隙間を防ぐ */
  border: none;
}

#gallery img {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: bottom;
  width: 100%;
  height: auto;
}

@media screen and (max-width: 767px) {
  /* ギャラリー全体を中央寄せ */
  #gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* 各画像のサイズと中央揃え */
  #gallery img {
    max-width: 320px; /* photo15と同等の幅に制限 */
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  /* GALLERY見出しも中央寄せ */
  #sec02 header h2 {
    text-align: center;
  }
}

@media screen and (max-width: 767px) {
  #gallery {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  #gallery li {
    width: 100% !important;
    max-width: 270px !important;  
    margin: 0 auto !important;
    padding: 0 !important;
    line-height: 0 !important;
  }

  #gallery img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  #sec02 .innerS {
    padding: 0 10px !important;
    box-sizing: border-box;
  }
}