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

/**********************************************************************
* 全体に適用
***********************************************************************/
/*** body */
body{
  font-size: 0.7em;
  line-height:1.2em;
  min-width: 320px;
}

/*** 画像 */
/* 画面ないしコンテナの幅に収める */
img{
  max-width: 100%;
  height: auto;
}

/*** PC用の改行処理 */
br.pc{
  display: none;
}

/*** 改行位置制御 */
/*  ひとまとまりの熟語や単語に対して，<span class="block"> のタグをつける．*/
.block{
  display: inline-block;
  text-indent: 0;
}

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

/*********************************************************************
* ページ上部
**********************************************************************/
#header{}

  /*** リンク */
  #header a, #header a:link, #header a:visited, #header a:hover, #header a:active{
    color: white;
  }
  
  /*** ページ全体のタイトル */
  #header .title{
    width: 100%;
    background-image: url(../img/title.png);
    padding-top: calc(100%*248/960);
    background-size: 100% auto;
    background-repeat: no-repeat;
    color: white;
    position: relative;
  }
    
    /*** チーム名 */
    /* font-size がビューポートに依存する．ここでは最小値（320px幅）用の設定を行う． */
    #header .title .main{
      position: absolute;
      top: 0.2em;
      left: 0.2em;
      display: block;
      font-size: 20px;
      font-weight: bold;
      line-height: 1.0em;
    }
    
    /*** チーム名の英語表記．*/
    /* 英語版では空要素 */
    #header .title .sub{
      position: absolute;
      display: block;
      top: 2.5em;
      left: 0.4em;
      font-size: 8px;
      color: #FFFFFF;
      text-shadow:
       1px  1px 1px #333,
       1px -1px 1px #333,
      -1px  1px 1px #333,
      -1px -1px 1px #333;

    }
    
    /*** カテゴリー名 */
    /* サイズは最小値 */
    #header .title .category{
      position: absolute;
      display: block;
      top: 4.5em;
      left: 0.3em;
      font-size: 12.8px;
      min-width: 10em;
      padding-top: 0.5em;
      border-style: solid;
      border-width: 1px 0 0 0;
      border-color: rgba(255,255,255,0.8);
    }
    
    /*** チーム名の主言語による表記 */
    /* font-size がビューポートに依存する． ここでは最大値を指定*/
    #header .title .main{
      display: block;
      line-height: 1.0em;
      font-size: 40px;
      color: white;
      text-shadow:
       1px  1px 1px #333,
       1px -1px 1px #333,
      -1px  1px 1px #333,
      -1px -1px 1px #333;
    }
    
    /* 最小サイズ */
    @media (max-width: 333px){
      #header .title .main{
        font-size: 20px;
      }
      #header .title .sub{
        font-size: 10px;
      }
    }
    /* 可変サイズ */
    @media (min-width: 333px){
      #header .title .main{
        font-size: 6.0vw;
      }
      #header .title .sub{
        font-size: 3.0vw;
      }
      #header .title .category{
        font-size: 4.0vw;
      }
    }
  
  /*** ページ上部のチームロゴと英語用メニュー */
  #header .global_navi{
    position: absolute;
    top: 0;
    right: 0;
    width: 90px;
  }
  
    #header .global_navi .logo{
      position: absolute;
      top: 2em;
      right: 0;
    }
    
    /*** リンク用テキスト */
    #header .global_navi a, #header .global_navi a:link, #header .global_navi a:visited, #header .global_navi a:hover, #header .global_navi a:active{
      color: white;
    }
  
    
    /*** サイトトップページ，上部組織，英語版へのリンク */
    #header .global_navi .menu{
      position: absolute;
      top: 0;
      right: 0;
      font-size: 1.0em;
      width: 100%;
    }
    
    #header .global_navi .menu a{
      display: inline-block;
      width: 100%;
    }
    
      /*** 理研とR-CCSへのリンク */
      /* モバイル版では非表示 */
      #header .global_navi .r-ccs, #header .global_navi .riken{
        display: none;
      }
      
      /*** 英語版へのリンク */
      #header .global_navi .menu .language{
        background-color: #FF9900;
        padding: 0.2em;
        font-weight: bold;
        text-align: center;
      }
      
      #header .global_navi .menu .language a:before{
        content: "?";
        color: white;
      }
  
  /*** サイト内コンテンツへのナビゲーション */
  #header .site_navi{
    border-style: solid;
    border-width: 0 0 0.1em 0;
    border-color: white;
    background-color: #0b2f54;
  }
  
  #header .site_navi:after{
    display: block;
    clear: both;
    content: ".";
    height: 0;
    visibility: hidden;
  }
    
    /*** 各リンクのコンテナ */
    /* calc(100%/6)などは使わない．
      環境によっては末尾の四捨五入で合計が100を超える． */
    #header .site_navi li{
      width : 20%;
      float: left;
      height: 2.4em;
      text-align: center;
      vertical-align: middle;
      display: table;
      overflow: hidden;
    }
    
    /* ホームへのリンクを消去 */
    #header .site_navi li:first-child{
      display: none;
    }
      /* リンク */
      #header .site_navi li a{
        display: table-cell;
        vertical-align: middle;
        border-width: 0 0.1em;
        border-color: #999999;
        border-style: solid;
        width: 100%;
        overflow: hidden;
      }
      
      #header .site_navi li:first-of-type a{
        border-left: none;
      }
      
      #header .site_navi li:last-of-type a{
        border-right: none;
      }

/**********************************************************************
* コンテンツ領域
**********************************************************************/
#contents{
  margin: 1em 0 0 0;
}

  /*** コンテナ */
  #contents .wrapper{
    width: 96%;
    margin: auto;
  }
  
  /**********************************************************************
  * 上部のナヴィゲーション
  **********************************************************************/
  #contents .navi{
    margin: 0 0 1em 0;
  }
        
    /*** リンク群のコンテナ */
    #contents .navi ul{
      display: table;
      width: 100%;
    }
    
    #contents .navi ul+ul{
      margin-top: 0.5em;
    }
      
      /*** 各リンクのコンテナ */
      #contents .navi li{
        display: table-cell;
        text-align: left;
        vertical-align: top;
        padding: 0.5em 0;
        border-style: solid;
        text-indent: -1em;
        padding-left: 1em;
      }
      
      /*** 3カラム用コンテナ */
      #contents .navi .col3 li{
        width : 33.3333%;
      }
      
      /*** 4カラム用コンテナ */
      #contents .navi .col4 li{
        width : 25%;
      }
      
      /*** 4カラム用コンテナ */
      #contents .navi .col5 li{
        width : 20%;
        font-size: 0.85em;
      }

  /**********************************************************************
  * 主要部分
  **********************************************************************/
  #main{}
    
    /*** ページのタイトルまたは section のタイトル */
    /* トップレベルのページでは，title 部分にページのタイトルを記述しているので section タイトルとして用いる．
       下層のページでは，ページタイトルとして用いる． */
    #main h2{
      font-size: 1.4em;
      padding-top: 0.5em;
      padding-bottom: 0.5em;
    }
    
    #main h2:before{
      font-size: 1.0em;
    }
    
    /*** h3 */
    /* h3 が存在せずに h4 が現れる場合もある */
    #main h3{}
    
    /*** h4 */
    /* 説明付きのリストのように用いることが多い */
    #main h4{
    }
    
    #main h3+h4, #main h2+h4{
      margin-top: 0;
    }

    /*** iframe で直接埋め込む動画 */
    /* コンテナ */
    #main .movie_container{
      position: relative;
      margin: 0.5em auto;
      width: 90%;
      height: 90%;
      padding: 56.25% 0 0;
    }

      /* 動画本体 */
      #main .movie_container .movie{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
      }
      
    /*** サムネイル表示の動画 */
    #main .video_item{
      position: relative;
    }
    
    #main .video_item .thumbnail:after{
      content: " ";
      background-image: url(../img/play.png);
      position: absolute;
      width: 10vw;
      height: 10vw;
      min-width: 32px;
      min-height: 32px;
      background-size: contain;
      top:30%;
      left: 40%;
      pointer-events: none;
      padding: 0;
    }

    #main .video_item img{
      width: 100%;
      padding: 0;
    }
    
    #main .video_item .title{
      position: absolute;
      top:0;
      left: 0;
      padding: 0.2em;
      color: white;
      font-weight: bold;
      display: inline-block;
      width: 100%;
      background-color: rgba(0,0,0,0.5);
      pointer-events: none;
    }

  /*** サイト内の画像アイコンによるナビゲーション */
  /* モバイル版では非表示 */
  #main .site_navi{
    display: none;
  }

  /**********************************************************************
  * 下部のコンタクト情報
  **********************************************************************/
  #contact{}
  
    /*** 勧誘 */
    #contact .join{}
    
      /*** 左側 */
      /* #contact .access .info .logo と width をそろえる */
      #contact .join h3{
        width: 35%;
        color: #FF9900;
      }
      
      /*** 右側 */
      #contact .join p{
        padding-left: 0.5em;
      }
      
    /*** アクセス */
    #contact .access{
      margin: 1em 0 0 0;
    }
   
      /*** チーム名 */
      #contact .access h3{
        padding:0.5em;
        margin: 0;
      }
      
      /*** 情報 */
      #contact .access .info{
        width: 100%;
      }
      
        /*** 左側 チームロゴ */
        /* #contact .join h3 と width をそろえる */
        #contact .access .info .logo{
          width: 35%;
          padding: 0.5em;
        }
        
        /*** 右側 詳細 */
        #contact .access .info .description{
          padding: 0.5em;
        }
          
          /*** e-mail アドレス */
          #contact .access .info .description .e-mail{
            margin: 0.5em 0 0 0;
          }
          
          /*** 理研内コンテンツへのリンク */
          #contact .access .info .description .riken{
            margin: 0.5em 0 0 0;
          }

      .logo_all.png{
       width:300px;
       hight;auto
       }

/*********************************************************************
* ページコントローラー
**********************************************************************/
#controller{
  display: none;
}

/*********************************************************************
* ページ最下部
**********************************************************************/
#footer{
  margin: 1em 0 0 0;
  background-color: #0b2f54;
  color: white;
}

  /*** コンテナ */
  #footer .wrapper{
    width: 100%;
    margin: auto;
  }
  
  /*** リンク */
  #footer a, #footer a:link, #footer a:visited, #footer a:hover, #footer a:active{
      color: white;
    }
  
  /*** サイト内コンテンツへのナビゲーション */
  #footer .navi{
    border-style: solid;
    border-width: 0 0 0.1em 0;
    border-color: white;
    background-color: #0b2f54;
  }
  
  #footer .navi:after{
    display: block;
    clear: both;
    content: ".";
    height: 0;
    visibility: hidden;
  }
    
    /*** 各リンクのコンテナ */
    /* calc(100%/6)などは使わない．
      末尾の四捨五入で合計が100を超えることがある． */
    #footer .navi li{
      width : 20%;
      float: left;
      height: 2.4em;
      text-align: center;
      vertical-align: middle;
      display: table;
      overflow: hidden;
    }
    
    #footer .navi li:first-child{
      display: none;
    }
    
      /* リンク */
      #footer .navi li a{
        display: table-cell;
        vertical-align: middle;
        border-width: 0 0.1em;
        border-color: #999999;
        border-style: solid;
      }
      
      #footer .navi li:first-of-type a{
        border-left: none;
      }
      
      #footer .navi li:last-of-type a{
        border-right: none;
      }
    
  /*** 住所等 */
  #footer .access{
    margin-top: 1em;
  }
  
  /*** 版権 */
  #footer .copyright{}

