@charset "UTF-8";
@import url("grid.css");

:root {
  --base-color: #000;
  --link-color: #666;
  --linkhover-color: #999;
  --border-color: #ccc;
  --white-color: #fff;
}

img {
  max-width: 100%;
  height: auto;
}
a {
  display: block;
  color: var(--link-color);
  text-decoration-line: none;
}
a:hover {
  color: var(--linkhover-color);
}
a img:hover {
  opacity: 0.8;
}
.underline {
  border-bottom: 3px solid var(--base-color);
  padding-bottom: 0.5rem;
}
.center {
  text-align: center;
}

/*ヘッダー
-------------------------------------*/
.head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 0.5rem 0.5rem;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}

.head h1 {
  margin: 0;
  padding: 0;
  font-weight: 700;
  letter-spacing: 3px;
  max-width: 70%;
  z-index: 1;
}

.head h1 img {
  height: 50px;
  width: auto;
  display: block;
}

.snsbox {
  margin-left: auto;
  font-size: 3.0rem;
  padding: 0.5rem 0 0 0;
  z-index: 1;
  display: flex;
  gap: 10px;
  align-items: center;
}

nav ul {
  display: flex;
  flex-direction: row;
  justify-content: center;
  list-style: none;
  margin-bottom: 0.5rem;
}
nav li {
  display: block;
  flex: 0 0 15%;
}
nav li a {
  text-decoration: none;
  text-align: center;
}
nav a:hover {
  text-decoration: underline;
}
nav a {
  padding: 1rem;
}

@media screen and (min-width: 769px) {
  #open,
  #close {
    display: none !important;
  }

  #navi {
    display: block !important;
  }
}

@media screen and (max-width: 768px) {
  .head {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }

  .head h1 {
    max-width: 60%;
    width: auto;
  }

.head h1 img {
  max-height: 50px; /* 画像の最大高さだけ制限 */
  height: auto;
  width: auto;
  display: block;
}

  .snsbox {
    order: 2;
    font-size: 2.2rem;
    gap: 10px;
  }

  .telbox {
    margin-left: 0;
    text-align: center;
  }

  #open,
  #close {
    display: block;
    background-repeat: no-repeat;
    background-size: contain;
    width: 40px;
    height: 40px;
    border: none;
    order: 3;
    margin-left: auto;
  }

  #open {
    background-image: url(../img/button.png);
  }

  #close {
    background-image: url(../img/button2.png);
  }

  nav ul {
    flex-direction: column;
  }

  nav li {
    padding-top: 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
  }

  #navi {
    display: none;
  }
}

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

/*メインコンテンツ
-------------------------------------*/
main {
    margin: 5rem 0 5rem 0;
}

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

/*フッター
-------------------------------------*/
footer {
    background-color: var(--white-color);
    padding: 3rem 0;
}
footer h5 {
    border-bottom: 1px solid var(--border-color);
}

/*コピーライト
-------------------------------------*/
.copyright {
    text-align: center;
    padding: 1rem 0;
    background-color: var(--white-color);
}
.copyright a {
    color: var(--base-color);
    text-decoration: none;
	display: inline-block;
}

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