@charset "utf-8";
#main #maintop  {
width: 100%;
float: left;
text-align: center;
max-width: 1200px;
}
#wrapper #main #content  h2 {
margin-top: 5px;
margin-bottom: 5px;
text-align: center;
font-size: x-large;
font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
font-weight: 600;
}
#wrapper #main #content h3 img {
margin-bottom: 3px;
text-align: center;
width: 100%;
}

/* 見出しタイトル */
#main #content h4 {
    padding-top: 1%;
    padding-right: 1%;
    padding-left: 1%;
    padding-bottom: 1%;
    background-color: #FFFFFF;
    width: 98%;
    left: 40px;
    color: #464646;
    font-size: large;
    font-weight: 600;
    text-align: left;
    font-family: "Comic Sans MS", cursive;
    border-bottom: 3px groove #BFB7B7;
    text-indent: 15px;
    background-repeat: no-repeat;
    margin-bottom: 5px;
}
/* 4列画像と説明 */
#main #content .section4 {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
gap: 10px;
width: 100%;
}
.section4_List {
  grid-auto-flow: column;
  column-gap: 2px;
  justify-self: end;
  width: 100%;
  max-width: 800px;
  height: 100%;
}
.section4_List a {
  align-items: center;
  justify-content: center;
  height: 100%;
}
#content img {
width: 100%;
height: auto;
}
#content .section4 li {
color: #5C5858;
text-align: center;
font-size: medium;
font-weight: 600;
}
#content .section4 li .medium {
    color: #5C5858;
    text-align: left;
    font-size: 85%;
    font-weight: 300;
    margin-left: 5px;
    margin-right: 5px;
	line-height:1.4em
}
.section4_List li a {
    color: #0A0101;
    font-weight: 700;
}


/* 3列画像と説明 */
#main #content .section3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 10px;
    width: 100%;
    margin-top: 5px;
}
.section3_List {
  grid-auto-flow: column;
  column-gap: 2px;
  justify-self: end;
  width: 100%;
  max-width: 800px;
  height: 100%;
}
.section3_List a {
  align-items: center;
  justify-content: center;
  height: 100%;
}
#content img {
width: 100%;
height: auto;
}
#content .section3 li {
color: #5C5858;
text-align: center;
font-size: medium;
font-weight: 600;
}

#content .section3 li .medium {
    color: #5C5858;
    text-align: center;
    font-size: 90%;
    font-weight: 300;
}
.section3_List li a {
    font-size: medium;
    font-weight: 600;
    color: #000000;
}


/* -------------------- */
/*モニター幅1199px以下840px以上*/
/* -------------------- */
@media screen and (min-width:841px) and (max-width:1199px){
	.section4 .section_List li {
    font-size: medium;
    font-weight: 500;
}
.section4 .section_List .medium {
    font-size: 100%;
    font-weight: 300;
}

#main #maintop{
		width: 100%;
}
#main #maintop li a img {
    width: 100%;
    height: auto;
	}
	}

/* -------------------- */
/* モニター幅840px以下  */
/* -------------------- */
@media only screen and (max-width:840px){
	.section4 .section_List li {
    font-size: 100%;
    font-weight: 500;
}
#wrapper #main #content  h2 {
    font-size: 125%;
    font-weight: 600;
}
#content .section4_List li {
    font-size: 105%;
}
#content .section4_List .medium {
    font-size: 100%;
}
.section3 .section3_List li {
    font-size: 100%;
}
.section3_List li a {
    font-size: 100%;
    font-weight: 600;
    color: #000000;
}
/* 4列画像と説明→,2列に */
#main #content .section4 {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
width: 100%;
}
	.section4_List li a {
    font-size: 100%;
    font-weight: 600;
    color: #000000;
}

.section3_List li a {
    font-size: 100%;
    color: #000000;
    font-weight: 600;
}
.section3_List li .medium {
    color: #1F1E1E;
    text-align: center;
    font-size: 90%;
    font-weight: 200;
}
	/* 3列画像と説明→2列に */
#main #content .section3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 10px;
    width: 100%;
    margin-top: 5px;
}
#content .section3 li .medium {
    color: #403E3E;
    text-align: left;
    font-size: 90%;
    font-weight: 300;
    margin-left: 5px;
    margin-right: 5px;
    line-height: 1.2em
}
#main #maintop{
		width: 100%;
}
#main #maintop li a img {
    width: 100%;
    height: auto;
	}


	}
