@charset "UTF-8";


/************************************************************/
/* コンテンツトップ */
.main_title {
  font-size: 100% !important;
}

.mobile_main_visual_img {
  display: none;
}

/************************************************************/
/* シミュレーション */

.sim_img_mobile {
  display: none;
}

.sim_img {
  display: block;
}


/************************************************************/
/* イベント・TODO */

.right-item .clickable {
  border: none !important;
}


/************************************************************/
/* トピックニュース */

.news_register {
  font-weight:bold;
}

/*****************************************************************************
レスポンシブ（スマホ）CSS  
*****************************************************************************/

@media screen and (max-width:767px) {

  /************************************************************/
  /* コンテンツトップ */
  .mainV {
    background: none;
    min-width: auto;
    height: auto;
  }

  .mobile_mainV {
    background: url(../img/top/phone_main.jpg);
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: right top !important;
  }
  
  .main_visual_img {
    display: none;
  }
  
  .mobile_main_visual_img {
    display: inline;
  }
  
  .copy {
    width: 100%;
    padding: 50px 0 0 20px;
  }

  .copy p:first-of-type {
    margin-top: 5%;
  }

  .copy .btn_main {
    margin-bottom: 5%;
  }

  .main_title {
    font-size: 130% !important;
    position: absolute;
    top: 20px;
    width: 100%;
  }

  a.btn_main {
    padding: 10px 50px 10px 30px;
  }

  a.btn_main:after {
    right: 20px;
    top: 10px;
  }
  
  .btn_app_disp {
    order: 2;
  }
  
  .p-top__mainVisual {
    height: auto;
  }
  
  .p-top__mainVisual__img {
    position: static;
    order: 1;
  }
    
  .p-top__mainVisual__text {
    padding-top: 20px;
  }
  
  .p-top__mainVisual__text .sub-text {
    display: none;
  }
  
  .p-top__life {
    display: none;
  }
  
  .hdr_fixed + div {
    margin-bottom: 50px; 
  }

  /* お知らせ */
  .p-top .notice_box {
    width: 90%;
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 20px;
  }

  /* おすすめの動画・コンテンツ */
  .recommend-video-content{
    width: 90%;
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 20px;
  }

  .recommend-video-guide{
    margin: 10px 2em 20px;
  }

  .recommend-video-content .views-view-responsive-grid__item{
  width: 60%;
  margin: auto;
  }

  .recommend-content-title,
  .recommend-video-title {
    width: 80%;
  } 
  
  .recommend-video-content img {
    width: 80%;
  }

  .recommend-video-content .slick-track{
    margin-bottom: 1em;
    min-width: 200px;
  }

  .recommend-video-content .slick-prev{
    top: 42%;
    left: 17%;
  }

  .recommend-video-content .slick-next{
    top: 42%;
    right: 15%;
  }

  .recommend-video-content .slick-slide {
    opacity: 0.5;
    transition: opacity 0.5s;
  }

  .recommend-video-content .slick-center {
    opacity: 1;
  } 
  
  /************************************************************/
  /* イベント・TODO */
  .event_todo_block {
    margin-left: 20px;
    margin-right: 20px;
    min-height: auto !important;
    height: auto !important;
  }

  .event_todo_block [class^="block-"] {
    border-radius: 0 !important;
    border: 4px solid #006C60 !important;
  }

  .block-left {
    display: none !important;
  }

  .block-right {
    width: 100%;
  }

  .right-title {
    font-weight: bold;
    text-align: center;
    background: #FFF;
    width: 200px;
    margin: -20px auto;
  }

  .right-item {
    margin-top: 40px;
  }

  .right-item legend {
    width: 100%;
  }

  .right-item legend a {
    text-decoration: none !important;
  }
  
  .right-item .clickable {
    display: block;
  }
  
  .recent-schedule .schedule_todo table {
    width: 100%;
    table-layout: fixed !important;
    word-break: break-all;
    word-wrap: break-word;
  }
  
  .recent-schedule .schedule_todo td {
    display: block;
  }
    
  .recent-schedule td.views-field.views-field-title {
    width: 100% !important;
    margin-left: 0px !important;
    padding-left: 20px !important;
  }
  
  .schedule_link {
    display: inline-block;
    width: 100%;
    border-radius: 10px;
    padding-left: 20px;
    background-color: #ecfcfb; 
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .schedule_link:before {
    font-family: "Font Awesome 5 Free";
    content: "\f073";
    padding-right: 10px;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    font-weight: 400;
  }

  .schedule_link:after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f054";
    position: absolute;
    right: 50px;
  }
  
  .right-item.recent-todo .views-row {
    display: flex;
    height: auto !important;
    flex-direction: column;
    padding: 0.35em;
  }
  
  .views-row .views-field.views-field-title {
    width: 100%;
    margin-left: 0px;
    padding-left: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .recent-todo {
    margin-bottom: 20px;
  }

  .todo_link {
    display: inline-block;
    width: 100%;
    border-radius: 10px;
    padding-left: 20px;
    background-color: #ecfcfb;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .todo_link:before {
    font-family: "Font Awesome 5 Free";
    content: "\f14a";
    padding-right: 10px;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    font-weight: 400;
  }

  .todo_link:after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f054";
    position: absolute;
    right: 50px;
  }

  .todo_link:hover {
    opacity: unset;
    transition: unset;
  }

  /************************************************************/
  /* シミュレーションブロック */
  /*simulation_block.css*/

  .tab-wrap {
    display: block;
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 30px;
  }

  .tab-label:not(:last-of-type) {
    margin-right: 0px;
  }

  .tab-content .graph_box {
    display: none;
  }

  .tab-content .weather {
    width: 100%;
  }

  .tab-content .comment {
    align-items: center;
  }

  .mobile_simulation_area {
    display: flex;
    justify-content: space-between;
    margin: 0 !important;
  }

  .sim {
    display: none;
  }

  .severance {
    display: none;
  }

  .deposit {
    display: none;
  }

  .sim_img {
    display: none;
  }

  .sim_img_mobile {
    display: block;
  }

  .sim_detail {
    margin-top: 0px;
  }
  
   /* レコメンド機能拡充対応 */
  .recommend_table td a {
    color: blue;
    border-bottom: 1px solid;
  }
  
  .recommend_table .recommend_thead {
    display: none;
  }
  
  .recommend_table tr,
  .recommend_table td {
    display: block;
    width: 100%;
    position: relative;
    border: none;
  }
  
  .recommend_table td:first-child:before {
  content: "詳細アドバイス";
  text-align: center;
  margin-bottom: 10Px;
  border-top: 1px solid #bbb;
  border-bottom: 1px solid #bbb;
  border-right: none;
  box-sizing: border-box;
  top: -41px;
  left: -0.2%;
  display:block;
  }
  
  .recommend_table td:last-child:before {
  content: "関連コンテンツ";
  text-align: center;
  margin-bottom: 10Px;
  border-top: 1px solid #bbb;
  border-bottom: 1px solid #bbb;
  border-right: none;
  box-sizing: border-box;
  top: -41px;
  left: -0.2%;
  display:block;
  }

  /* 表示切替ボタン */
  .sim_btn {
    width: 50px;
    margin-right: 20px;
    margin-bottom: 5px;
    margin-top: 20px;
    box-sizing: border-box;
  }

  details[open] summary::after {
    margin-left: 0px;
  }

  .tab-label::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f078";
    position: absolute;
    right: 20px;
  }

  details summary::after {
    margin-left: 0px;
  }

  /* オレンジタブ */
  .tab-label.orange.active {
    margin-top: 0rem;
  }

  .tab-label.orange.active:after {
    border: none  !important;
  }

  .no_cash {
    border-top: none !important;
    border-right: none !important;
    border-left: none !important;
    border-bottom: none !important;
    padding: 0px !important;
  }


  /* ピンクタブ */
  .tab-label.pink.active {
    margin-top: 0rem;
  }

  .tab-label.pink.active:after {
    border: none  !important;
  }

  /* 緑タブ */
  .tab-label.green.active {
    margin-top: 0rem;
  }

  .tab-label.green.active:after {
    border: none  !important;
  }
  
  /* 青タブ */
  .tab-label.blue.active {
    margin-top: 0rem;
  }

  .tab-label.blue.active:after {
    border: none  !important;
  }
  
  /************************************************************/
  /* トピックニュース */
  .topicNewsBlock{
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .news {
    width: 100%;
  }
  
  .p-top .news {
    margin-bottom: 8px;
  }

  .news a {
    display: flex;
    align-items: center;
    justify-content: space-around;
  }

  .news_thumb {
    display: inline-block;
    width: auto;
    min-width: 90px;
    height: 40px;
    object-fit: cover;
  }
  
  .p-top .news_thumb {
    margin-bottom: 0px;
  }
  
  .news_thumb img {
    width: 90px;
  }

  .news a h4 {
    width: 75%;
    display: inline-block;
    margin-left: 10px;
  }

  .news_register {
    margin-top: 10px !important;
    font-weight:bold;
  }
  
  /************************************************************/
  /* アクセスランキング */
  .contentsAccessRankingBlock{
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .contentsAccessRankingBlock .news::before {
    content: "";
    position: absolute;
    border-bottom: 20px solid transparent;
    border-left: 20px solid rgba(0,0,0,0.8);
  }

  .contentsAccessRankingBlock .news::after {
    counter-increment: rank;
    content: counter(rank);
    position: absolute;
    top: 0px;
    left: 2px;
    font-size: 10px;
    color: #fff;
  }

  /************************************************************/
  /* あなたへのおすすめ */
  .p-top .p-top__recommend.recommendContents{
    margin: 20px calc(50% - 50vw) 0px;
  }

  /* あなたへのおすすめ */
  .p-top .p-top__recommend.recommendContentsBlock{
    padding-left: 20px !important;
  }

  /************************************************************/
    /* あなたへのおすすめ、シミュレーション、トピックニュース、アクセスランキング */
  .p-top .l-container.p-top__recommend, .p-top .l-container.block-scsk-lifeplan-simulation{
    margin-top: 20px !important;
  }

  /* シミュレーション */
  .simulationBlock{
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-bottom: 20px !important;
  }

}