/*まずはお決まりのボックスサイズ算出をborer-boxに */
*,
*:before,
*:after {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

/* RESET */
a,article,dd,div,dl,dt,em,form,footer,header,h1,h2,h3,h4,h5,h6,i,iframe,img,label,legend,li,nav,ol,p,section,main,span,table,tbody,tfoot,thead,time,tr,th,td,ul,video{ 
  font-family:inherit;
  font-size:100%;
  font-weight:inherit;
  font-style:inherit;
  vertical-align:baseline;
  white-space:normal;
  margin:0;
  padding:0;
  border:0;
  outline:0;
  background:transparent;
  line-height:1.6;
  text-align:left;
}
/* body,html 除く */


ol,ul{
	list-style:none;
}

html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 62.5%;/*rem算出をしやすくするために*/
}

body {
	font-size: 15px;
	font-family:  "メイリオ", Meiryo, "ＭＳ Ｐゴシック", Osaka, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro";
        background: #cadffa;
}

a {
/*	color: #333; */
        color: darkblue;
        font-size: 1.6rem;
/*	text-decoration: none; */
}
a:hover {
        font-size: 1.6rem;
        color: #ff0000;
/*	text-decoration: underline; */
}

h2 {
	clear: both;
	margin-bottom: 25px;
	font-size: 110%;
        text-align: center;
	color: #FFF;
        background: linear-gradient(#663399,#33ccff);
	padding: 5px 10px;
	border-radius: 8px;
        position: -webkit-sticky;
        position: sticky;
        top: 15px;
}

img {
    width: 20px;
}

.flex_test-box {
    display: flex;		/* フレックスボックス */
    align-items:stretch;	/* 縦の位置指定 */
/*    align-items:flex-start; */	/* 縦の位置指定 */
    justify-content:center;
}

.flex_test-item {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.5;
    position: relative;
    padding: 1rem 2rem;
    text-align: center;
    color: #fff;
    margin-left: 20px;
    margin-right: 20px;
    border-radius: 5px;
    width: 500px;	/* 幅指定 */
    background: linear-gradient(#663399,#33ccff);
/*    background: linear-gradient(#003399,#33ccff); */
/*    background: linear-gradient(#ff9900,#ffcc66); */
    transition: all 0.3s;
}

.flex_test-item:nth-child(1) {
    flex-basis: 500px;
}

.flex_test-item2 {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.3;
    position: relative;
    padding: 1rem 2rem;
    color: #00066;
    margin-top: 10px;
    margin-left: 10px;
    margin-right: 10px;
    border-radius: 1.5rem;
    width: 500px;	/* 幅指定 */
/*    background: #99c1f3; */
/*    background: linear-gradient(#fff,#eee); */
    background: linear-gradient(#99c1f3,#cadffa);
    transition: all 0.3s;
}

.flex_test-item2:nth-child(1) {
    flex-basis: 500px;
}

.flex_test-item2:hover {
/*    background: linear-gradient(#ffffcc,#ffcc00); */
    background: linear-gradient(#00ff66,#ccff33);
/*    background: linear-gradient(#ccccff,#ccffff); */
/*    background: linear-gradient(#00ff33,#00ffff); */
}

h3 {
    text-align: center;
}

@media screen and (max-width: 768px) {
body {
	font-size: 14px;
}

a {
	font-size: 14px;
}
a:hover {
	font-size: 14px;
}

     .flex_test-box {
         align-items:flex-start;	/* 縦の位置指定 */
         display: block;
         padding-left: 10px;
         padding-right: 10px;
     }

     .flex_test-box .flex_test-item1 {
         height: 450px;
         width: 100%;
         margin: 10px auto;
     }

     .flex_test-box .flex_test-item2 {
         height: auto;
         width: 100%;
         margin: 10px auto;
     }

     .flex_test-item {
         display: none;
     }
}

@media print, screen and ( min-width : 769px ) {
    a {
	font-size: 15px;
    }
    a:hover {
	font-size: 15px;
    }
}
