@media screen and (max-width: 768px) {
  body, html {
    height: 100%;
  }
  #warapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    height: auto;
    min-height: 100%;
    -webkit-box-shadow: 0 0 10px 0 rgba(0, 0, 0, .2);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, .2);
    overflow: hidden;
  }
  #warapper #pagetop {
    width: 98%;
    margin-right: 0;
    margin-bottom: 0;
    padding: 0;
    text-align: right;
  }
  #warapper #pagetop a {
    color: #2388d8;
  }
  /*-------------------------------------------
ヘッダー
-------------------------------------------*/
  #header {
    width: 100%;
    margin: 0 0 10px;
    height: 68px;
    background: #ffffff url(../img/rokin_logo.svg) no-repeat;
    background-size: 120px;
    background-position: 10px 50%;
    border-bottom: 3px solid #006CB8;
    -webkit-box-shadow: 0 0 6px 0 rgba(0, 0, 0, .4);
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, .4);
  }
  /*-------------------------------------------
メインイメージ
-------------------------------------------*/
  #topimage {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin: 0 auto 20px;
    padding: 16px 0 10px;
    width: 95%;
    background-color: #0066bb;
    background-image: -o-linear-gradient(130deg, #2288dd 0%, #0066bb 30%, #0077dd 70%, #2299cc 100%);
    background-image: linear-gradient(320deg, #2288dd 0%, #0066bb 30%, #0077dd 70%, #2299cc 100%);
    outline: solid 1px #2288dd;
    -webkit-box-shadow: inset 0 0 0 2px #ffffff;
    box-shadow: inset 0 0 0 2px #ffffff;
    color: #ffffff;
    font-size: 17px;
    font-weight: bold;
    text-align: center;
    line-height: 30px;
    letter-spacing: 1px;
  }
  /*-------------------------------------------
タブメニュー
-------------------------------------------*/
  #tab_menu {
    margin: 0 auto;
    width: 95%;
    border-bottom: 0;
  }
  #tab_menu ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex; 
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    
/* 　左側から縦並びにする指示   
    -ms-flex-direction: column;
    flex-direction: column;　
*/   
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    width: 100%;
    height: calc( 54px * 3);
    /* ボタンを縦に並べる数 */
  }
  #tab_menu ul a {
    width: 50%;
    margin-bottom: 10px;
    text-decoration: none;
  }
  #tab_menu li.nav_tab {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    position: relative;
    width: 98%;
    height: 44px;
    margin: 0 auto;
    padding: 20px 0 20px 24%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background: -o-linear-gradient(#e4f6ff, #cce7ff);
    background: -webkit-gradient(linear, left top, left bottom, from(#e4f6ff), to(#cce7ff));
    background: linear-gradient(#e4f6ff, #cce7ff);
    border: 1px solid #b8d0f5;
    border-bottom: 3px solid #004499;
    border-radius: 24px;
    color: #004499;
    text-align: left;
    font-size: 12px;
    font-weight: bold;    
  }
  #tab_menu li.nav_tab br {
    display: none;
  }
  #tab_menu li.nav_tab span p {
    display: inline-block;
    font-size: 12px;
  }
  #tab_menu li.nav_tab:hover {
    background: -o-linear-gradient(#eeffff, #bbddff);
    background: -webkit-gradient(linear, left top, left bottom, from(#eeffff), to(#bbddff));
    background: linear-gradient(#eeffff, #bbddff);
  }
  #tab_menu li.active {
    background: -o-linear-gradient(#0077dd, #004499);
    background: -webkit-gradient(linear, left top, left bottom, from(#0077dd), to(#004499));
    background: linear-gradient(#0077dd, #004499);
    color: #ffffff;
    border: 1px solid #0074d6;
    border-bottom: 3px solid #33aaff;
  }
  #tab_menu li.active:hover {
    background: -o-linear-gradient(#0077dd, #004499);
    background: -webkit-gradient(linear, left top, left bottom, from(#0077dd), to(#004499));
    background: linear-gradient(#0077dd, #004499);
    color: #ffffff;
    border: 1px solid #0074d6;
    border-bottom: 3px solid #33aaff;
  }
  #tab_menu li svg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 6%;
    right: inherit;
    margin: auto;
    width: 25px;
    height: 25px;
    fill: #004499;
  }
  #tab_menu li.active svg {
    fill: #ffffff;
  }
  /*-------------------------------------------
メインコンテンツエリア
-------------------------------------------*/
  #main {
    margin: 0px 10px 10px 9px;
  }
  /*-------------------------------------------
メインコンテンツ
-------------------------------------------*/
  #contents {
    margin: 0;
  }
  #contents a {
    outline: none;
  }
  #item h2 {
    position: relative;
    font-size: 120%;
    border-bottom: 2px solid #0088dd;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #004499;
    padding: 2px 0 2px 35px;
    -webkit-box-shadow: 0 3px 3px 0 rgba(0, 0, 0, .1);
    box-shadow: 0 3px 3px 0 rgba(0, 0, 0, .1);
  }
  #item h2 svg {
    position: absolute;
    left: 6px;
    top:0; 
    fill: #004499;
  }
  #item div.h2_inner {
    padding: 0 0px;
  }
  #item div.h2_inner img {
    width: 100%;
    margin-bottom: 10px;
  }
  #item .h2_topcommentarea {
    padding: 16px 20px;
    background-color: #fffbee;
    outline: 1px solid #ffbb55;
    color: #004499;
    font-size: 110%;
    font-weight: bold;
  }
  #item div.h2_inner span.red {
    color: #ff0000;
  }
  #item div.h2_inner span.blue {
    color: #0077cc;
    font-weight: bold;
  }
  #item h3 {
    font-size: 110%;
    margin-top: 25px;
    margin-bottom: 20px;
    padding: 6px 4px 5px 10px;
    background: #e0f0ff;
    border-left: 3px solid #55aaee;
    border-bottom: 1px solid #ccc;
  }
  #item div.h3_inner {
    margin: 0 0 30px 0;
  }
  #item div.h3_inner img {
    margin-bottom: 5px;
    outline: 0;
  }
  #item div.h3_inner div.h4_inner img.page_sp_img {
    display: block;
    margin: 0 auto 5px;
  }
  #item div.h3_inner div.h4_inner .embed_img {
    margin-bottom: 20px;
  }
  #item .subtitle01 {
    color: #0077cc;
    font-size: 110%;
    font-weight: bold;
  }
  #item ul {
    margin-top: -15px;
    margin-bottom: 20px;
  }
  #item p {
    margin-bottom: 20px;
  }
  #item .pointwaku {
    width: 100%;
    margin: 0 auto 10px;
    padding: 10px 20px 8px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    outline: solid 3px #F2412F;
    outline-offset: -3px;
    font-weight: bold;
    line-height: 1.5em;
    font-size: 120%;
  }
  #item .pointwaku span {
    display: block;
  }
  #item .pointwaku .fontred {
    color: #dd0000;
  }
  #item .pointwaku .fontred .fontred_inner1 {
    margin-left: 1em;
  }
  #item .annotation-indent {
    display: block;
    padding-left: 1em;
    text-indent: -1em;
  }
  #item ul.topic li {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: left;
    -ms-flex-pack: left;
    justify-content: left;
    padding: 20px 0 0;
  }
  #item ul.topic li div {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }
  #item ul.topic li .topic-title {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column;
    flex-flow: column;
    width: 24%;
    min-width: 120px;
    height: 60px;
    margin-right: 12px;
  }
  #item ul.topic li .topic-title span {
    display: block;
    white-space: nowrap;
    width: 100%;
    text-align: center;
  }
  #resizeimage {
    max-width: 800px;
    /* 最大幅 */
    min-width: 240px;
    /* 最小幅 */
  }
  /* ---- 体験版ボタンエリア ---- */
  #item div.btn_area {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column;
    flex-flow: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: start;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: relative;
    height: auto;
    margin: 20px 0 2em;
    padding: 20px 20px 70px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background-color: #e6f3ff;
    background-image: -o-linear-gradient(top, #eef9ff 0%, #e6f3ff 50%, #eef9ff 100%);
    background-image: -webkit-gradient(linear, left top, left bottom, from(#eef9ff), color-stop(50%, #e6f3ff), to(#eef9ff));
    background-image: linear-gradient(180deg, #eef9ff 0%, #e6f3ff 50%, #eef9ff 100%);
    color: #004499;
    font-weight: bold;
    border-radius: 3px;
    -webkit-box-shadow: inset 0 0 0 1px #99ccee;
    box-shadow: inset 0 0 0 1px #99ccee;
    overflow: hidden;
  }
  #item div.btn_area span {
    display: inline-block;
    max-width: 100%;
    margin: 0 auto;
  }
  #item div.btn_area img {
    position: absolute;
    top: auto;
    bottom: 10px;
    left: 0;
    right: 0;
    width: 200px;
    height: auto;
    margin: 10px auto 5px;
    outline: none;
  }
  /* ---- 別ページへリンクボタンエリア ---- */
  .pagelink_btn_area {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column;
    flex-flow: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin: 20px 0;
  }
  .pagelink_btn_area a {
    text-decoration: none;
  }
  .pagelink_btn_area span {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: relative;
    margin: 10px auto;
    width: 100%;
    height: 40px;
    background-color: #004499;
    color: #ffffff;
    font-weight: bold;
    border-radius: 24px;
    border: 1px solid #004499;
  }
  .pagelink_btn_area span:hover {
    background-color: #bbddff;
    color: #004499;
  }
  /*
.pagelink_btn_area span svg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10px;
  margin: auto;
  margin-right: 10px;
}
*/
  
/*-------------------------------------------
2023年リニューアル案内で追記
-------------------------------------------*/

#item p.subtitle02 {
  width: 35%;
  margin: 25px 0 -1em;
  padding: 6px 1em;
}
  
  /* ---- 注目点（電球）、！エリアなど ---- */
  #item div.pointwaku_small {
    margin: 0 auto 20px auto;
    padding: 1.2em 1em 0.2em 1em;
    outline: 1px solid #ffbb55;
    border-radius: 6px; 
    color: #000000;
    font-size: 110%;
  }

  #item div.pointwaku_small_qa {
    margin: 0 0.5em 20px 2.5em;
    padding: 1.2em 1em 0.2em 1em;
    outline: 1px solid #ffbb55;
    border-radius: 6px; 
    color: #000000;
    font-size: 110%;
  }

  
  #item p.point {
    margin-bottom: 16px;
    padding-left: 1.7em;
    background: url(../img/point.svg) no-repeat left top;
    background-size: 1.2em;
  }
  #item p.point_exclamation {
    margin-bottom: 16px;
    padding-left: 2em;
    background: url(../img/exclamation_mark.svg) no-repeat left top;
    background-size: 1.5em;
  }
  #item p.point_text {
    margin-bottom: 16px;
    font-weight: bold;
    line-height: 1.4em;
    font-size: 110%;
  }
  /* ---- 口座開設など ---- */
  table.open_account {
    margin-top: 25px;
    margin-bottom: 20px;
    padding: 10px;
    border-collapse: separate;
    border-spacing: 1em;
    width: 100%;
    background: #e3f2f9;
    color: #000000;
  }
  table.open_account th {
    padding: 1em;
    text-align: center;
    font-size: 120%;
    color: #ffffff;
    background: #006cb8;
    border: solid 1px #ffffff;
  }
  table.open_account td {
    padding: 1.5em;
    text-align: left;
    background: #ffffff;
    border: solid 2px #c0c0c0;
  }
  /* ---- 戻るボタン ---- */
  .pagelink_btn_area span.back {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: relative;
    margin: auto;
    width: 100%;
    height: 40px;
    background-color: #ffffff;
    color: #004499;
    font-weight: bold;
    border-radius: 24px;
    border: 1px solid #004499;
  }
  .pagelink_btn_area span.back:hover {
    background-color: #bbddff;
    color: #004499;
  }
  /*　ボタンのテキスト末尾＞
.pagelink_btn_area span::after {
  content: " ";
  position: absolute;
  right: 8px;
  width: 15px;
  height: 15px;
  background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%223.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%2018l6-6-6-6%22%2F%3E%3C%2Fsvg%3E');
  background-size: 100%;
}
*/


/* ---- チェックボックス ---- */
.ibschk_flex {
  display: flex;
}
.ibschk_area {
  width: 25px;
}
.ibschk {
  transform: scale(2);
  margin-top: 2px;
}
.ibschkguidance_area {
  width: calc(100% - 20px);
}

  /*-------------------------------------------
フッター
-------------------------------------------*/
  #footer {
    position: relative;
    bottom: 0;
    width: 100%;
    margin: 20px 0 0;
  }
  #footer .info {
    background: none;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: auto;
    padding: 25% 0 2em;
  }
  #footer .info .info_img {
    background: url(../img/info.png) no-repeat top;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 98%;
  }
  #footer p {
    width: calc( 100% + 4px);
    margin: 20px -2px -2px;
    padding: 16px 0;
    background-color: #004499;
    color: #ffffff;
    border-top: 1px solid #004499;
    -webkit-box-shadow: inset 0 0 0px 2px #ffffff;
    box-shadow: inset 0 0 0px 2px #ffffff;
    text-align: center;
  }
}


/*-------------------------------------------
520px以下対応
-------------------------------------------*/

@media screen and (max-width: 520px) {
  #header {
    width: 100%;
    margin: 0 0 10px;
    height: 50px;
    background: #ffffff url(../img/rokin_logo.svg) no-repeat;
    background-size: 80px;
    background-position: 10px 50%;
    border-bottom: 3px solid #006CB8;
    -webkit-box-shadow: 0 0 6px 0 rgba(0, 0, 0, .4);
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, .4);
  }
  #tab_menu li.nav_tab br {
    display: inherit;
  }
  #tab_menu li.nav_tab span p {
    display: inherit;
    font-size: 10px;
  }
  #footer {
    position: relative;
    bottom: 0;
    width: 100%;
    margin: 20px 0 0;
  }
  #footer .info {
    background: none;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 63% 0 3.5em;
  }
  #footer .info .info_img {
    background: url(../img/info_sp.png) no-repeat top;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 90%;
  }
  #footer p {
    width: calc( 100% + 4px);
    margin: 20px -2px -2px;
    padding: 16px 0;
    background-color: #004499;
    color: #ffffff;
    border-top: 1px solid #004499;
    -webkit-box-shadow: inset 0 0 0px 2px #ffffff;
    box-shadow: inset 0 0 0px 2px #ffffff;
    text-align: center;
  }
}