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

img {
	max-width:100%;
	height: auto;/*高さ自動*/
}
a {
    display: block;
    color: #000000;
    text-decoration-line: none;
}
a:hover { 
    color: #999;
}
a img:hover {
	opacity: 0.8;
}
.underline {
	border-bottom: 3px solid #000;
	padding-bottom: 0.5rem;
}
.center {
	text-align: center;
}

/*ヘッダー
-------------------------------------*/
.head {
    display: block;
    flex-direction: row;
    padding-top: 3rem;
    padding-right: 0;
    padding-left: 0;
    padding-bottom: 0;
    margin-bottom: 6px;
}

.head h1 {
    padding-top: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-align: center;
    display: block;
    font-family: 'Libre Baskerville', serif;
    text-decoration: none;
}
.head h1 a {
    text-align: center;
    font-size: 28px;
    text-decoration: none;
    line-height: 0px;
}
.head h6{
    text-align: center;
	font-size: 24px;
	letter-spacing: 1px;
    text-decoration: none;
	font-family: toppan-bunkyu-midashi-min-st, sans-serif;
	font-style: normal;
	font-weight: 400;
    padding-bottom: 2rem;
}
.snsbox {
	margin-left: auto;
	font-size: 3.0rem;
	padding: 1rem 0 0 0;
}
nav ul {
	display: flex;
    flex-direction: row;
    justify-content: center;
    list-style: none;
	margin-bottom: 0.5rem;
}
nav li {
    display: block;
    flex: 0 0 20%;
}
nav li a {
    text-decoration: none;
    text-align: center;
    padding-right: 16px;
}
nav a:hover {
    text-decoration: underline;
}
nav a {
    padding: 1rem;
}

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

#navi {
    display: block !important;
}
}

@media screen and (max-width: 766px){
.head {
	flex-direction: column;
    text-align: left;
    margin-bottom: 20px;
}
.telbox {
	margin-left: 0;
	text-align: center;
}
.head #open,#close  {
    position: absolute;
    top: 28px;
    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: 40px;
    border: none;
    position: absolute;
    top: 30px;
    right: 16px;
}
/* スマホ時はメニューを非表示 */
#navi {
    display: ;
}
}

/*メイン画像
-------------------------------------*/
.mainimg img {
	width: 100vw;
}

/*メインコンテンツ
-------------------------------------*/
main {
    margin-top: 2rem;
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 5rem;
	text-align: center
}

/*キャッチタイトル
-------------------------------------*/
h2.catch {
	text-align: center;
	color: #666;
	font-size: 4.0rem;
	margin-bottom: 3rem;
}

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

/*コピーライト
-------------------------------------*/
.copyright {
    text-align: center;
    padding: 1rem 0;
    background-color: #fff;
    font-size: small;
}
.copyright a {
    color: #000;
    text-decoration: none;
    display: inline-block;
}

/*ページトップへ戻るボタン
-------------------------------------*/
#pagetop {
    position: fixed;
    bottom: 15px;
    right: 15px;
}
#pagetop a {
    display: block;
    width: 50px;
    text-align: center;
    height: 50px;
}
#pagetop a:hover {
    background: #999;
}
/*パンくずリスト
-----------------------------------*/
.breadcrumb {
    margin: 0 0 1em 0;
    padding: 0;	
}
.breadcrumb li {
    list-style-type: none;
}
.breadcrumb li a {
    display: inline-block;
    color: #959fa5;
}

*{
    box-sizing: border-box;
}
.modal{
  display: none;
  position: fixed;
  z-index: 20; /*サイトによってここの数値は調整 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.modal__bg{
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.50);
}
.modal__content{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 90%;
    max-width: 700px;
    padding-top: 1rem;
    padding-right: 1rem;
    padding-left: 1rem;
    padding-bottom: 0rem;
    background-color: #fff;
    overflow : scroll;
    max-height: 90%;
    height: auto;
    font-size: 12px;
}
.modal__content p{
	padding-top: 2rem;
	padding-right: 1rem;
	padding-left: 1rem;
	padding-bottom: -0.8rem;
}
.js-modal-close{
    position: fixed;
	top: 0px;
    right: 0px;
}

#gallery {
    margin: 0 auto;
    width: 100%;
    position: relative;
}

@media (min-width: 320px) {
   /* 表示領域が800px以上の場合に適用するスタイル */
   div.grid.col1 { width: 320px; float: left; padding: 12px;}
}
@media (max-width: 320px) {
   /* 表示領域が800px未満の場合に適用するスタイル */
   div.grid.col1  { width: 260px; float: left; padding: 8px; }
   .modal__content{
    padding-top: 1rem;
    padding-right: 1rem;
    padding-left: 1rem;
    padding-bottom: 0.1rem;
	}
}