@charset "utf-8";

.first-view {
  height: calc(100vh - 110px);
  background-image: url(../images/index/bg-main.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  align-items: center;
}

.first-view-text {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-bottom: 80px;
  color: #ffffff;
  font-weight: bold;
  text-shadow: 1px 1px 10px #4b2c14;
}

.first-view-text h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 56px;
  line-height: 72px;
}

.first-view-text p {
  font-size: 18px;
  margin-top: 20px;
}

/*  --------------------------------------------------------------------------------
  container box
--------------------------------------------------------------------------------  */

.container {
 width:1200px;
 max-width: 90%;
 margin:0 auto;
 display: grid;
 grid-template-columns: repeat(4,300px);
 column-gap:10px;
 }


.box1 {
    padding:1em;
    margin: 10px 0;
    font-weight: bold;
    color: #006536;/*文字色*/
    background: #FFF;
    border: solid 1px #006536;/*線*/
    border-radius: 10px;/*角の丸み*/
}

/*  --------------------------------------------------------------------------------
.box1:hover {
  background-color: #E0EBAF;
}
--------------------------------------------------------------------------------  */

.belongs {
  width:100%;
  text-align:center;
  margin:10px auto 0 auto;
  line-height:1.5;
  }
  

.recommended {
  background-color: #f7f8eb;
  padding-top: 30px;
  padding-bottom: 30px;
}

.recommended h1 {
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  color:#006536;
  padding-bottom:10px;
}

/*  --------------------------------------------------------------------------------
  menu_icon
--------------------------------------------------------------------------------  */

ul{
  list-style:none;
}

ul li.video:before{
  content:url(https://web.tohoku.ac.jp/eng_mirai/insta/images/common/video.png);
  display:inline-block;
  transform:scale(0.7);/*アイコンサイズ*/
  width:20px;
  height:auto;
  margin-right:10px;
  position:relative;
  top:5px;
  left:0;
}

ul li.result:before{
  content:url(https://web.tohoku.ac.jp/eng_mirai/insta/images/common/result.png);
  display:inline-block;
  transform:scale(0.7);/*アイコンサイズ*/
  width:20px;
  height:auto;
  margin-right:10px;
  position:relative;
  top:5px;
  left:0;
}

/*  --------------------------------------------------------------------------------
  link
--------------------------------------------------------------------------------  */

.line {
  padding-bottom: 3px;
  position: relative;
}
.line::before {
  background: #ff1e1e;
  content: '';
  width: 100%;
  height: 2px;
  position: absolute;
  left: 0;
  bottom: 0;
  transform-origin: right top;
  transform: scale(0, 1);
  transition: transform .3s;
}
.line:hover::before {
  transform-origin: left top;
  transform: scale(1, 1);
}

a:hover {
  color:#96C78C;
  }

/*  --------------------------------------------------------------------------------
  other links
--------------------------------------------------------------------------------  */
.links {
  background-color: #FFF;
  padding: 30px 0;
}

.links h2 {
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  color:#474747;
}

.course {
  width: 1200px;
  max-width: 90%;
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat( auto-fit, 340px);
  column-gap: 70px;
  justify-content: center;
  }

.box4 {
    position: relative;
    padding: 1.5em 1em;
    margin: 1em 0;
    top: 0;
    background: #f5f5f5;
    font-weight: bold;
    color:#474747;
}
.box4:before, .box4:after{ 
    position: absolute;
    top: 0;
    content:'';
    width: 10px;
    height: 100%;
    display: inline-block;
    box-sizing: border-box;
}
.box4:before{
    border-left: dotted 2px #5b8bd0;
    border-top: dotted 2px #5b8bd0;
    border-bottom: dotted 2px #5b8bd0;
    left: 0;
}
.box4:after{
    border-top: dotted 2px #5b8bd0;
    border-right: dotted 2px #5b8bd0;
    border-bottom: dotted 2px #5b8bd0;
    right: 0;
}
.box4 p {
    margin: 0; 
    padding: 0;
    text-align:center
}

.box4:hover {
  background-color: #f7f8eb;
}

/*  --------------------------------------------------------------------------------
  other links
--------------------------------------------------------------------------------  */

@media (max-width: 800px) {
  .first-view {
    height: calc(100vh - 50px);
    background-image: url(../images/index/bg-main-sp.jpg);
    align-items: flex-start;
  }

  .first-view-text {
    padding-top: 60px;
    padding-left: 20px;
  }

  .first-view-text h1 {
    font-size: 36px;
    line-height: 48px;
  }

  .first-view-text p {
    font-size: 14px;
    margin-top: 15px;
  }

.container {
 display: block;
 }


}