<style type="text/css">
body {
  font-family:"Noto Sans JP","Hiragino Sans","Hiragino Kaku Gothic ProN","Meiryo","sans-serif";
}
hr {
  height: 1px;
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin-top: 5rem;
  margin-bottom: 5rem;
}
.container {
  width: 100%;           /* 960px未満のときは100％表示 */
  max-width: 880px;      /* 画面が960px以上のときは、960pxで表示 */
  margin-left: auto;     /* 左右の余白を自動調整して中央配置にする */
  margin-right: auto;    /* 左右の余白を自動調整して中央配置にする */
  box-sizing: border-box; 
  margin: 1rem,1.6rem,1rem,1.6rem;
  background: #ffffff;
}
.contents {
  width: 100%;           /* 960px未満のときは100％表示 */
  max-width: 800px;      /* 画面が960px以上のときは、960pxで表示 */
  margin-left: auto;     /* 左右の余白を自動調整して中央配置にする */
  margin-right: auto;    /* 左右の余白を自動調整して中央配置にする */
  box-sizing: border-box; 
  position: relative;
  top: 1.5rem;
}
.grid-list {
  display: grid;
  /* 1つのカードの最小幅を220pxとし、入る数だけ自動で横に並べる */
  grid-template-columns: repeat(auto-fit, minmax(90%, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.grid-item {
  background: #f4f4f4;
  padding: 16px;
  border-radius: 8px;
  line-height: 1.7;
}
.grid-list-2 {
  display: grid;
  /* 1つのカードの最小幅を220pxとし、入る数だけ自動で横に並べる */
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.grid-item-2 {
  background: #f4f4f4;
  padding: 16px;
  border-radius: 8px;
  line-height: 1.7;
}

@media screen and (max-width:480px){
    h1 {
    font-size: 2rem;
    font-weight: bold;
    }
    h2 {
    font-size: 1.6rem;
    font-weight: bold;

    padding: 0.5em;/*文字周りの余白*/
    color: #494949;/*文字色*/
    background: #f4f4f4;/*背景色*/
    border-left: solid 10px #0057B0;
    }
    h3 {
    font-size: 1.3rem;
    font-weight: bold;

    padding: 0.5em;/*文字周りの余白*/
    color: #494949;/*文字色*/
    background: #f4f4f4;/*背景色*/
    border-left: solid 10px #0057B0;/*左線（実線 太さ 色）*/
    margin: 1.5rem,0,1.5rem,0;
    }
    .blue {
    font-size: 1.1rem;
    font-weight: bold;
    color: #0057B0;
    }
    .red {
    font-size: 1.1rem;
    font-weight: bold;
    color: #b10067;
    }
    p {
    font-size: 1.0rem;
    line-height: 1.7;
    letter-spacing: 0.05em;
    }
    .img {
    width: 100%;
    max-width:479px;
    height: auto;
    }
    .bold {
    font-weight: bold;
    }
}

@media screen and (min-width:481px){
    h1 {
    font-size: 2rem;
    font-weight: bold;

    }
    h2 {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0.5em;/*文字周りの余白*/
    color: #494949;/*文字色*/
    background: #f4f4f4;/*背景色*/
    border-left: solid 10px #0057B0;
    }
    h3 {
    font-size: 1.3rem;
    font-weight: bold;

    padding: 0.5em;/*文字周りの余白*/
    color: #494949;/*文字色*/
    background: #f4f4f4;/*背景色*/
    border-left: solid 10px #0057B0;/*左線（実線 太さ 色）*/
    margin: 1.5rem,0,1.5rem,0;
    }
    .blue {
    font-size: 1.1rem;
    font-weight: bold;
    color: #0057B0;/*文字色*/
    }
    .red {
    font-size: 1.1rem;
    font-weight: bold;
    color: #b10067;
    }
    p {
    font-size: 1.0rem;
    line-height: 1.7;
    max-width: 100%;
    letter-spacing: 0.05em;
    }
    .img {
    width: 100%;
    height: auto;
    }
    .bold {
    font-weight: bold;
    }
}

/*.list {
position: relative;
    border: 2px solid #c53929;
    border-radius: 5px;
    padding:20px;
margin-top:20px;
}
.list::before {
	content: "ご注意";
	position: absolute;
	top: -15px;
	left: 15px;
	font-size: 1.6rem;
	font-weight: 700;
    background-color: #ffffff;
    color: #c53929;
    padding: 0 10px;
}*/
</style>