/**********************************************************************
*** Stylesheet for PC browsers
*** DAT, R-CCS, RIKEN
*** Created by Kohei Takatama, May 7, 2018.
**********************************************************************/

/**********************************************************************
* 全体に適用
***********************************************************************/
/*** body */ 
body{
  font-size: 13px;
  line-height:22px;
  /* background: url(../img/bg.jpg) center top repeat-x; */
  background-color:#D5F1FF
}

/*** コンテナ */
.wrapper{
  width: 1080px;
  margin: auto;
}

/*** header 以外のトップレベル構造 */
/* title を position: absolute で指定するので，その高さ分だけ以降の要素の下げる */
#contents, #footer{
  position: relative;
}

/*** magnific-popup による動画再生時のタイトル */
.mfp-title {
  position:absolute;
  padding: 5px;
  color: #FFF;
}

/**********************************************************************
* 外部リンクの明示
***********************************************************************/
a[href^="http"]:after{
  content: "External Link:\A \"attr(href)"\";
  word-break: break-all;
  white-space: pre-wrap;
  display: block;
  border: solid 1px #DDDDDD;
  background-color: #FFFFFF;
  color: #004284;
  text-decoration: none;
  position: absolute;
  bottom: 25px;
  left: 25px;
  padding: 5px 15px;
  font-size: 12px;
  font-weight: normal;
  text-decoration: none;
  text-align: left;
  visibility: hidden;
  width: 280px;
  z-index: 10; 
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  border-radius: 7px ; 
}

a{
  position: relative;  
}

a:hover:after{ 
  visibility: visible; 
  z-index: 100; 
}

/* 警告表示を除外するサイト */
a[href^="https://www.data-assimilation.riken.jp"]:after {display: none;}
a[href^="https://data-assimilation.riken.jp"]:after {display: none;}
a[href^="https://weather.riken.jp"]:after {display: none;}
a[href^="https://www.riken.jp"]:after {display: none;}
a[href^="https://www.r-ccs.riken.jp"]:after {display: none;}
a[href^="https://blog.data-assimilation.riken.jp"]:after {display: none;}


/**********************************************************************
* ページ上部
**********************************************************************/
#header{}
  
  /*** リンク */
  #header a:link, #header a:visited{
    color: #FFFFFF;
  }
  
  #header a:hover, #header a:active{
    color: #7acbed;
  }
  
  /*** ページ全体のタイトル */
  #header .title{
    position: absolute;
    top: 110px;
    width: 960px;
    height: 248px;
    background-image: url(../img/title.png);
    background-repeat: no-repeat;
    font-size: 28px;
    padding-top: 125px;
    color: white;
  }
  
    /*** チーム名 */
    #header .title .main{
      display: block;
      position: absolute;
      font-size: 1.28em;
      top: 42px;
      left: 8px;
      width: 100%;
      letter-spacing: 2px;
    }
    
    /*** チーム名の英語表記．*/
    /* 英語版では空要素 */
    #header .title .sub{
      display: block;
      position: absolute;
      top: 72px;
      left: 8px;
      font-size: 0.43em;
      color: rgba(255,255,255,0.8);
      letter-spacing: 1.2px;
    }
    
    /*** カテゴリー名 */
    #header .title .category{
      display: block;
      position: absolute;
      top: 205px;
      left: 8px;
      font-size: 1em;
      border-style: solid;
      border-color: rgba(255,255,255,0.8);;
      border-width: 1px 0 0 0;
      padding: 10px 0 0 0;
      min-width: 250px;
    }

  
  /*** ページ上部のチームロゴと英語用メニュー */
  #header .global_navi{}
  
    /*** サイトトップページ，上部組織，英語版へのリンク */
    #header .global_navi .menu{
      position: absolute;
      right: 0;
      top: 5px;
      width: 500px;
      height: 40px;
    }
    
      /*** 各リンクのコンテナ */
      #header .global_navi .menu li{
        background: #0b2f54;
        color: #FFFFFF;
        float: right;
        font-size: 11px;
        padding: 2px 24px 2px 12px;
        text-align: center;
        position: relative;
      }
    
      #header .global_navi .menu li:before{
        content: "▶";
        color: #FF9900;
        vertical-align: top;
        padding-right: 4px;
      }
      
      /*** 英語版へのリンク */
      #header .global_navi .menu .language{
        margin: 0 5px 0 0;
        font-size: 12px;
        font-weight: bold;
        background-color: #FF9900;
      }
      
      #header .global_navi .menu .language:before{
        content: "▶";
        color: white;
      }
      
      #header .global_navi .menu .language:hover{
        background-color: #FF0000;
        color: white;
      }
      
        /*** リンク */
        /* コンテナ全体をリンクとして機能させる */
        #header .global_bavi .menu .language a{
          display: block;
          width: 100%;
          height: 100%;
        }
        
        #header .global_navi .menu .language a:hover{
          background-color: #FF0000;
          color: white;
        }
      
      /*** 理研へのリンク */
      #header .global_navi .menu .riken{}
      
      /*** R-CCSへのリンク */
      #header .global_navi .menu .r-ccs{
        border-left: 1px solid #295582;
      }
      
    /*** チームロゴ */
    #header .global_navi .logo{
      height: 69px;
      padding:10px 0px 0px 0px;
    }

  /*** サイト内コンテンツへのナビゲーション */
  #header .site_navi{
    height: 38px;
  }
  
    /*** 各リンクのコンテナ */
    #header .site_navi li{
      float:left;
    }
      
      /*** リンク */
      #header .site_navi li a{
        display:block;
        width:160px;
        color:#ffffff;
        background:url(../img/navi_off.jpg) no-repeat;
        height:38px;
        text-align:center;
        padding:10px 0px 0px 0px;
      }
      
      #header .site_navi a:hover{
        background:url(../img/navi_on.jpg) no-repeat;
      }

/*********************************************************************
* コンテンツ領域
**********************************************************************/
#contents{}
  
  /*********************************************************************
  * 上部のナビゲーション
  **********************************************************************/
  /* リンクが複数段になることもあるので，ulの上にコンテナを置く */
  #contents .navi{}
      
    /*** リンク群のコンテナ */
    #contents .navi ul{}
    
    #contents .navi ul:after{
      display: block;
      clear: both;
      content: ".";
      height: 0;
      visibility: hidden;
    }
    
    #contents .navi ul+ul{
      margin-top: 12px;
    }
    
      /*** 各リンクのコンテナ */
      #contents .navi ul li{
        float: left;
        padding: 4px;
        margin: 0 12px 0 0;
      }
      
      #contents .navi li:last-of-type{
        margin-right: 0;
      }
      
      /*** 3カラム用のコンテナ */
      #contents .navi .col3 li{
        width: 312px;
      }
      
      /*** 4カラム用のコンテナ */
      #contents .navi .col4 li{
        width: 231px;
      }
      
      /*** 5カラム用のコンテナ */
      #contents .navi .col5 li{
        width: 182px;
      }
  
  /*********************************************************************
  * メインパート
  **********************************************************************/
  #main{}
  
  /*** 各コンテンツのコンテナ */
  #main section{}
    
    /*** ページのタイトルまたは section のタイトル */
    /* トップレベルのページでは，title 部分にページのタイトルを記述しているので section タイトルして用いる．
       下層のページでは，ページタイトルとして用いる． */
    #main h2{}
    
    #main .navi+h2{
      margin-top: 1.5em;
    }
    
    /*** 単なる見出しまたは section のタイトル */
    /* トップレベルのページでは単なる見出しとして，下層のページでは section タイトルとして用いる． */
    /* h3 が存在せずに h4 が現れる場合もある */
    #main h3{}
    
    #main h2+h4, #main h3+h4{
      margin-top: 1em;
    }
    
    /*** 埋め込み動画 */
    #main .movie{
      display: block;
      margin: 4px auto;
      width: 720px;
      height: 405px;
      border: none;
    }
    
    
    /*** ビデオサムネイル */
    #main .video_item{
      position: relative;
    }
  
    #main .video_item .thumbnail:after{
      content: url(../img/play.png);
      position: absolute;
      top: 50%;
      left: 50%;
      margin: -40px 0 0 -40px;
      pointer-events: none;
    }
  
    #main .video_item img{
      max-width: 100%;
    }
    
    #main .video_item .title{
      position: absolute;
      top:0;
      left: 0;
      padding: 0.2em;
      color: white;
      font-weight: bold;
      width: 100%;
      background-color: rgba(0,0,0,0.5);
      pointer-events: none;
    }

  /**********************************************************************
  * 下部のコンタクト情報
  **********************************************************************/
  #contact{}

    /*** 勧誘 */
    #contact .join{
    }
    
      /*** 左側 */
      /* #contact .access .info .logo と width をそろえる */
      #contact .join h3{
        width: 230px;
      }
      
      #contact .join h3:before{
        content: "● ";
        color: #FF6600;
      }
      
      /*** 右側 */
      #contact .join p{
        padding-left: 24px;
      }
      
    /*** アクセス */
    #contact .access{
      margin: 20px 0 0 0;
    }
    
      /*** チーム名 */
      #contact .access h3{
        padding: 16px;
        margin: 0;
      }
      
      /*** 情報 */
      #contact .access .info{}
      
        /*** チームロゴ */
        #contact .access .info .logo{
          width: 230px;
        }
        
        /*** 詳細 */
        #contact .access .info .description{
          padding: 24px;
        }
        
          /*** e-mail アドレス */
          #contact .info .description .e-mail{
            margin: 12px 0 0 0;
            line-height: 16px;
          }
          
          /*** 理研内コンテンツへのリンク */
          #contact .info .description .riken{
            margin: 12px 0 0 0;
          }

  /*********************************************************************
  * ページコントローラー
  **********************************************************************/
  #controller{
    margin-top: 60px;
    text-align: right;
    line-height: 0px;
  }
    
    #controller .btn_top{
      line-height: 1.2em;
      border-radius: 2px 2px 0 0;
      font-size: 1.1em;
      width: 10em;
      text-align: center;
      margin: 0 0 0 auto;
      background-color: #AFAFAF;
      color: #0861B3;
      padding: 0.4em 0 0.2em 0;
      font-weight: bold;
      cursor: pointer;
    }
    
    #controller .btn_top:before{
      content: "▲";
    }
  
/*********************************************************************
* ページ下部
**********************************************************************/
#footer{
  clear:both;
  /* background:url(../img/footer_bg.jpg) repeat-x; */
  text-align:left;
  height:100px;
  color:#FFF;
}
  
  /*** コンテナ */
  #footer .wrapper{
    padding: 30px 0 0 0;
    font-size: 11px;
  }
  
  /*** リンク */  
  #footer a:link, #footer a:visited{
    color: #FFFFFF;
  }
  
  #footer a:hover{
    color: #7acbed;
  }
  
  /*** サイト内ナビゲーション */
  #footer .navi{
    float: right;
  }
  
    #footer .navi li{
      display: inline;
      padding: 0 12px;
      border-style: solid;
      border-width: 0 0 0 1px;
      border-color: #CCCCCC;
    }
    
    #footer .navi li:last-of-type{
      border-width: 0 1px 0 1px;
    }
  
  /*** 住所等 */
  #footer .access{
    float: left;
  }
  
    /*** チーム名 */
    #footer .access .team_name{
      font-size: 12px;
      font-weight: bold;
    }
  
  /*** 版権 */  
  #footer .copyright{
    clear: both;
    color: #FFFFFF;
    text-align: center;
    font-size: 9px;
  }


