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

img {
  max-width: 100%;
  height: auto; /* 高さ自動 */
}

a {
  display: block;
  color: #1e90ff;
  text-decoration-line: none;
}

a:hover {
  color: #999;
}

a:visited {
  color: #ff00ff;
}

/* ヘッダー
------------------------------------- */
.header {
  display: flex;
  flex-direction: row;
  padding: 2rem 0 0 0;
}

.header-box {
  margin-left: auto;
  margin-top: 9px;
  padding: 1rem;
  display: flex;
}

.header-box img {
  width: 48px;
}

.contact-button {
  padding: 1rem;
  border: 2px solid #000;
}

nav ul {
  z-index: 9999;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  position: fixed;
  background-color: #ffffff;
  list-style: none;
  margin: -10rem 0 0 0;
  height: 26px;
}

nav li {
  flex: 1 0 auto;
}

nav li a {
  text-decoration: none;
  text-align: center;
  width: 100%;
}

nav a:hover {
  background-color: #f7f7f7;
}

nav a {
  padding: 0.5rem;
}

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

@media screen and (max-width: 950px) {
  .header {
    flex-direction: column;
    margin-bottom: 10px;
  }
  .header #open,
  #close {
    z-index: 9998;
    position: absolute;
    top: 20px;
    right: 12px;
  }
  nav ul {
    flex-direction: column;
    padding: 1.5em;
  }
  .header li {
    padding-top: 0;
  }
  /* スマホ時はMENUボタンを表示 */
  #open,
  #close {
    display: block;
    z-index: 9998;
    width: 50px;
    border: none;
    position: fixed;
    top: 20px;
    right: 12px;
  }
  /* スマホ時はメニューを非表示 */
  #navi {
    display: none;
  }
}

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

/* メインコンテンツ
------------------------------------- */
main {
  margin: 5rem 0 0 0;
  background-image: url("../img/");
  background-repeat: repeat;
}

section {
  margin: 5rem 0;
  padding: 3rem 0;
}

.gray-back {
  background-color: #f4f4f4;
}

.Ikawa {
  width: 200px;
}

.SNS img {
  width: 10vw;
}

.SNS2 img {
  width: 10px;
}

.row p {
  text-align: left;
}

.people img {
  width: 16em;
  padding: 0.5em;
}

.youtube {
  position: relative;
  padding-bottom: 20%;
  height: 0;
  overflow: hidden;
}

/* 修正：セレクタ名を「.youtube iframe」に変更し、"hight"→"height" */
.youtube iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* キャッチコピー
------------------------------------- */
.catch {
  margin: 0 1rem;
  padding: 1rem 1rem 0 0;
}

.catch h2 {
  text-align: center;
  padding-bottom: 1rem;
}

.under {
  border-bottom: 0.4rem solid #000;
  padding: 0 1rem;
}

.under2 {
  border-bottom: 0.4rem solid #000;
  padding: 0 1rem 0 0;
}

.center {
  text-align: center;
  margin-bottom: 4rem;
}

/* 申し込みの流れ
------------------------------------- */
.flow.row {
  margin-bottom: 3rem;
}

/* カレンダー
------------------------------------- */
#calendar {
  margin: 40px 10px;
  padding: 0;
  font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
  font-size: 14px;
}

/* フッター
------------------------------------- */
footer {
  background-color: #f7f7f7;
  padding: 5rem 0;
}

footer h4 {
  border-bottom: 3px solid #ccc;
}

/* お問い合わせ
------------------------------------- */
.contact-box {
  border: 1px solid #ccc;
  text-align: center;
  padding: 2rem 0;
}

.table {
  margin: 4rem 0;
}

.table th {
  width: 250px;
}

/* コピーライト
------------------------------------- */
.copyright {
  text-align: center;
  padding: 1rem 0;
  background-color: #000;
}

.copyright a {
  color: #fff;
  text-decoration: none;
  display: inline;
}

/* ページトップへ戻るボタン
------------------------------------- */
#pagetop {
  position: fixed;
  bottom: 15px;
  right: 15px;
}

#pagetop a {
  display: block;
  background: #000;
  color: #fff;
  width: 50px;
  padding: 10px 5px;
  text-align: center;
}

#pagetop a:hover {
  background: #666;
}

/* 幅950px以下の表示
------------------------------------- */
@media screen and (max-width: 950px) {
  /* ヘッダー
  ------------------------------------- */
  .header-box {
    display: none;
  }
  /* お問い合わせ
  ------------------------------------- */
  .table th {
    width: 100%;
    display: block;
  }
  .table td {
    display: block;
  }
}
