@charset "utf-8";

/* リセットCSS */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, button, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  border: 0;
  font: inherit;
  font-size: 100%;
  margin: 0;
  padding: 0;
  vertical-align: baseline;
}

html {
  line-height: 1;
  font-size: 15px;
}

ol, ul {
  list-style: none;
}

li, dd {
  list-style-type: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

caption, th, td {
  font-weight: normal;
  text-align: left;
  vertical-align: middle;
}

q, blockquote {
  quotes: none;
}

q:before, q:after, blockquote:before, blockquote:after {
  content: "";
  content: none;
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
  display: block;
}

img {
  border: none;
  vertical-align: bottom;
}

/* ここまでリセットCSS */

ul {
  list-style: none;
}

a {
  color: #333;
  text-decoration: none;
}

img {
  width: 100%;
}

/* ヘッダー */

header {
  width: 100%;
  height: 150px;
}

.wrapper {
  margin: 0 auto;
  padding: 0 5%;
}

header .wrapper {
  display: flex;
  flex-direction: column;
  padding-top: 30px;
}

header h1 {
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
}

header nav ul {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

header nav ul li a{
  margin: 0 10px;
}

/* メイン画像 */
.main-visual img {
  height: 100%;
  margin-bottom: 80px;
}

/* ディスクリプション */
h2 {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 40px;
  text-align: center;
}

#discription {
  margin-bottom: 100px;
  text-align: center;
}

.dis-content {
  display: flex;
  flex-direction: column;
}

.dis-content img {
  margin-bottom: 30px;
}

.dis-content p {
  font-size: 1.2rem;
  line-height: 1.4;
  text-align: left;
}

/* コース一覧 */
#course {
  margin-bottom: 100px;
}

#course p {
  font-size: 1.2rem;
  line-height: 1.4;
}

#course ul li {
  margin-bottom: 30px;
}

/* コンタクトフォーム */
#contact {
  text-align: center;
  margin-bottom: 50px;
}

#contact p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

input {
  width: 80%;
  height: 50px;
  border: 2px solid gray;
  border-radius: 50px;
  font-size: 1.2rem;
  padding-left: 20px;
  margin-bottom: 30px;
}

button {
  background-color: tomato;
  width: 80%;
  max-width: 400px;
  padding: 30px 0;
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
  border-radius: 7px;
}

/* フッター */
footer {
  height: 80px;
  padding: 0 3%;
  margin: 0 auto;
  text-align: center;
  line-height: 80px;
  border-top: 1px solid #dcdddf;
  font-size: 0.8rem;
}



@media screen and (min-width: 760px) {
  
  .wrapper {
    max-width: 1200;
  }

  header {
    height: 80px;
  }

  header .wrapper {
    flex-direction: row;
    justify-content: space-between;
  }

  .dis-content {
    flex-direction: row;
    box-sizing: border-box;
  }

  .dis-content img {
    width: 50%;
    margin-right: 30px;
  }
  
  .dis-content p {
    width: 50%;
  }

  ul.courses {
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
  }

  ul.courses li {
    width: 32%;
    margin-right: 30px;
  }

  ul.courses li:nth-child(3) {
    margin-right: 0;
  }

  input {
    width: 55%;
  }

  footer {
    text-align: right;
  }
}