/* http: //jigsaw.w3.org/css-validator/ */

body {
    margin: 0;
    padding: 0;
    font-family: "Lucida Grande", "segoe UI", "ヒラギノ丸ゴ ProN W4", "Hiragino Maru Gothic ProN", Meiryo, Arial, sans-serif;
}

.ib,
.ib a {
    display: inline-block;
    vertical-align: top;
}


p {
    margin: 0 auto 2rem;
    line-height: 2em;
}
body >*{
    box-sizing: border-box;
}

.moveleft {
    transform: translateX(-0.5rem);
}

ul {
    line-height: 2em;
}

#header>* {
    line-height: 1.5em;
}

.mb0 {
    margin: 0 auto;
}
img{
    max-width: 100%;
    height: auto;
}

.w1000 {
    max-width: 1000px;
    width: calc(100% - 60px);
    display: block;
    margin: 0 auto;
    padding: 2rem 30px;
}

#header {
    padding: 2rem;
    text-align: center;
    background: #036EB7;
    color: #fff;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

#logo {
    order: 1;
    font-size: 1.4rem;
}

#logo span {
    display: block;
    margin-bottom: 0;
}

#logo img {
    margin: 2rem auto 0;
}

.sdgs {
    font-size: 0.8rem;
}

.sdgs img {
    max-width: 75px;
    margin: 0 5px;
}

section {
    max-width: 750px;
    margin: 45px auto;
    padding: 0 30px 75px;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-image: url(../img/sectiondiv.svg);
    background-size: 45px auto;
}

section#apply {
    background: none;
    padding-bottom: 0;
}

.size1 {
    font-size: 1.8em;
    font-weight: bold;
}

.size2 {
    font-size: 1.5em;
    font-weight: bold;
}

.size3 {
    font-size: 1.2em;
    font-weight: bold;
}



.color-b {
    color: #036EB7;
}
.color-r {
    color: #b7030f;
}

.center {
    text-align: center;
}

#youkou ul {
    background-size: 275px auto;
    background-position: right top;
    background-repeat: no-repeat;
    background-image: url(../img/illust.png);
    padding-right: 330px;
    padding-bottom: 6em;
}

p.img img {
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

#banners {
    text-align: center;
    max-width: 1000px;
    width: calc(100% - 60px);
    padding: 2rem 0 70px;
}

#banners h2 img {
    max-width: 175px;
    display: block;
    margin: 0 auto 2em;
}
#banners p {
	font-size: 1.2rem;
	font-weight: bold;
}
.flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.flex.column3 {
    align-items: flex-end;
}

.flex.column3 p {
    margin: 0 auto 2rem;
    width: 28%;
}

.flex.column2 {
    align-items: flex-start;
}
@media all and ( min-width: 600px ){
	.flex.column2 > *{
		width: calc( 50% - 20px );
	}
}

.flex.column3 p.img {
    display: block;
    max-width: 275px;
}
#banners .flex.c2,
#banners .flex.c3,
#banners .flex.c4{
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 2em;
    padding-bottom: 2em;
    border-bottom: 1px dotted #ccc;
}
#banners .flex.c2>*,
#banners .flex.c2::after{
    width: calc( (90% - 4%) / 2 );
}
#banners .flex.c3>*,
#banners .flex.c3::before,
#banners .flex.c3::after{
    width: calc( (100% - 6%) / 3 );
}
#banners .flex.c4>*,
#banners .flex.c4::before,
#banners .flex.c4::after{
    width: calc( (100% - 8%) / 4 );
}
#banners .flex>*{
    order: 0;
}
#banners .flex.c2>*{
	height: 140px;
}

#banners .flex.c3>*{
	height: 120px;
}
#banners .flex.c4>*{
	height: 100px;
    font-size: 1rem;
    line-height: 1.4em;
}
#banners .flex.c2::after,
#banners .flex.c3::after,
#banners .flex.c3::before,
#banners .flex.c4::after,
#banners .flex.c4::before{
    content: '';
    display: block;
    order: 1;
}
#banners .c2 img{
    width: calc(100% - 2rem);
    left: 1rem;
}
#banners .c3 img{
    width: calc(100% - 1.5rem);
    left: 0.75rem;
}
#banners .c4 img{
    width: calc(100% - 1rem);
    left: 0.5rem;
}
#banners img{
    display: block;
	height: auto;
    margin: 0 auto;
	object-fit: contain;
    object-position: center;
    height: 100%;
    top: 0;
    position: absolute;
}
#banners a{
    position: relative;
    box-sizing: border-box;
    margin: 0 0 0.5rem;
    width: 100%;
    display: block;
    border: 1px solid #fff;
    transition: 0.2s;
}
#banners a:hover{
    border: 1px solid #036EB7;
}
#banners a.flex{
    display: flex;
    align-items: center;
    justify-content: center;
}
#banners .textlinks{
    align-items: center;
}
#banners .textlinks a,
#banners .textlinks>span{
    display: inline-block;
    width: fit-content;
    margin: 0.5rem;
    padding: 0.5rem;
    vertical-align: middle;
}

ul {
    margin: 0 0 1rem;
}

#apply>ul.firstbold>li {
    font-weight: bold;
}

.firstbold>li ul {
    font-weight: normal;
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.firstbold>li ul li {
    padding-left: 1rem;
    position: relative;
}

.firstbold>li ul li::before {
    content: '□';
    position: absolute;
    left: 0;
}
#result img{
    border: 1px solid #ccc;
}
#result iframe{
    width: 100%;
}
.resultspecial{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.resultspecial p{
    vertical-align: top;
    width: 48%;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid #ccc;
}
.resultspecial img{
    display: block;
    margin: 1rem auto;
    max-width: 80%;
}


#footer {
    background: #C8C9CA;
    padding: 0;
}
.fr{
    float: right;
    margin: 0 0 2rem 2rem;
}

@media all and (min-width: 541px) {
	.flex.column3::after,
	.flex.column3::before {
		content: '';
		display: block;
		margin-top: 0 !important;
		margin-bottom: 0 !important;
	}
	.flex.column3::before {
		-ms-flex-order: 1;
		-webkit-order: 1;
		order: 1;
	}
	.flex.column3 > *,
	.flex.column3::after,
	.flex.column3::before {
		width: 28%;
		margin: 0 auto 2rem;
	}
}
@media all and (max-width: 540px) {
    p.img img{
        max-width: 100%;
    }
        #banners .flex.c2 > *,
         #banners .flex.c2::after {
            width: 90%;
        }
        #banners .flex.c4>*,
        #banners .flex.c4::after,
        #banners .flex.c4::before{
            width: 48%;
        }
    #youkou ul {
        padding-right: 0;
        padding-bottom: 250px;
        background-position: bottom center;
    }
    .resultspecial p{
        width: 100%;
    }

    .flex.column3 p {
        width: calc(50% - 1rem);
        margin: 0 0 1rem;
    }
}

@media all and (max-width: 380px) {

    .flex.column3 p {
        width: 100%;
        margin: 0 auto 1rem;
    }
}
iframe{
    max-width: 100%;
}

/*==============================
   見出しスタイル（追加・修正）
=============================================== */

/* 各セクションの大見出し (h2) のスタイル */
h2 {
    display:none;
  font-size: 1.8em; /* 文字サイズを調整 */
  font-weight: bold;
  color: #005bab; /* テーマカラーに合わせた色（例） */
  border-bottom: 2px solid #005bab; /* 下線を追加 */
  padding-bottom: 0.4em;
  margin-bottom: 1.5em;
}

/* 小見出し (h3) のスタイル (p.size2 から変更) */
h3.size2 {
  font-weight: bold;
  margin-bottom: 0.8em; /* 見出しと本文の間の余白を調整 */
}

/* h3の直後にある p や ul の上の余白をなくし、間延びを防ぐ */
h3 + p,
h3 + ul {
  margin-top: 0;
}
