/* リセットCSSを適用 (例: normalize.css) */
@import url('https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.css');

* {
  margin: 0px;
  padding: 0px;
}

body {
  font-family: sans-serif;
}


.background {
  /* 枠外（PC用） */
  background-color: #ffffff;
  min-height: 100vh;
  /* 画面の高さを最小高さとする */
  padding: 0px;
}

.flame {
  /* 紙の大きさ */
  max-width: 800px;
  margin: 0 auto;
  background-color: #ffffff;
  /* ここに背景色を指定 */
}

.logo {
  /*box内要素；ロゴ*/
  display: flex;
  max-width: 100%;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 30px;
}

.h-copy {
  /*box内要素；ヘッドコピー*/
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.headline {
  /*box内要素；ヘッドライン*/
  display: flex;
  flex-flow: column;
  margin-top: 30px;
}

.b-copy {
  /*box内要素５；ボディコピー*/
  margin: 0 auto;
  display: flex;
  flex-flow: column;
  margin-top: 4px;
}

.image {
  margin: 0 auto;
  display: flex;
  flex-flow: column;
  max-width: 70%;
  justify-content: center;
}

.footer {
  /*box内要素５；ボディコピー*/
  margin: 0 auto;
  display: flex;
  flex-flow: column;
  margin-top: 30px;
}


h1,
h2,
h3,
h4 {
  /*文字共通*/
  color: #767676;
  margin-top: 5px;
  margin-bottom: 5px;
  line-height: 24px;
}

h1 {
  /*太字センター納め大*/
  font-weight: bold;
  text-align: center;
  font-size: 18px;
}

h2 {
  /*太字センター納め小*/
  font-weight: bold;
  text-align: center;
  font-size: 16px;
}

h3 {
  /*太字*/
  font-weight: bold;
  font-size: 18px;
}

h4 {
  /*Default*/
  font-weight: normal;
  font-size: 16px;
}

a {
  /*リンクの色*/
  color: #8b3f2e;
  text-decoration: none;
}

p {
  /*パラグラフ設定*/
  margin-top: 0px;
  margin-bottom: 0px;
}

ul {
  /*パラグラフ設定*/
  margin-top: 10px;
  margin-bottom: 10px;
}

.button {
  display: block;
  /* ボタンとして表示 */
  background-color: #fff;
  border: solid 2px #767676;
  color: #767676;
  padding: 5px 0px;
  text-decoration: none;
  text-align: center;
}

.button:hover {
  color: #ffffff;
  background-color: #767676;
}

.stitch {
  /*ステッチ*/
  margin-top: 5px;
  margin-bottom: 5px;
  height: 2px;
  background: repeating-linear-gradient(90deg, #767676, #767676 8px, rgba(0, 0, 0, 0) 1px, rgba(0, 0, 0, 0) 16px);
}

/*レスポンシブレイアウト*/

/* 画面幅440px以下の設定。ロゴ大きく、画像を２列に */
@media (max-width: 440px) {
  .flame {
    padding: 0px 10px 10px 10px;
    /* 内容と枠の間に余白 */
  }

  .logo img {
    width: 30%;
  }

  .gallery img {
    width: calc(50% - 10px);
    margin: 5px;
    justify-content: center;
  }

  .image {
    margin: 0 auto;
    display: flex;
    flex-flow: column;
    max-width: 70%;
    justify-content: center;
  }
}

/* 画面幅441px以上で4列に */
@media (min-width: 441px) {
  .flame {
    padding: 0px 50px 30px 50px;
    /* 内容と枠の間に余白 */
  }

  .logo img {
    width: 20%;
  }

  .gallery img {
    width: calc(25%);
    margin: 0%;
    justify-content: center;
  }

  .image {
    margin: 0 auto;
    display: flex;
    flex-flow: column;
    max-width: 60%;
    justify-content: center;
  }
}