body {
  background-color: #eee;
}

a:link,
a:visited,
a:hover {
  color: #000;
  text-decoration: none;
}

button[type="submit"] {
  color: #000;
}

#base {
  height: 100vh;
  border-collapse: collapse;
}

#header {
  background-color: #292929;
  height: 30px;
  line-height: 30px;
}

#logo-pc {
  margin: 10px;
  margin-left: 15px;
  margin-right: 0;
}

/* ダウンロード画面ロゴ(mobile) */
#logo-mobile {
  margin: 10px;
  display: none;
}

#logout {
  margin-right: 10px;
  width: 100px;
  background-color: #404040;
  text-align: center;
  height: 30px;
}

#logout span {
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

#language {
  color: #ddd;
  margin-right: 5px;
  height: 30px;
}

#language span {
  text-decoration: underline;
  cursor: pointer;
  color: #ddd;
}

#language span.selected {
  text-decoration: none;
  cursor: default;
  font-weight: bold;
  color: #ddd;
}

#footer {
  margin-bottom: 5px;
}

#copyright {
  margin-right: 5px;
}

#copyright img {
  vertical-align: bottom;
  margin-right: 10px;
}

#copyright span {
  font-size: 80%;
  color: #333;
  vertical-align: bottom;
}

#accesskey_not_found {
  margin: 0 20px 10px 20px;
  text-align: center;
  padding-top: 200px;
  height: 200px;
}

div.spacer_w10 {
  width: 10px;
  height: 1px;
}

div.spacer_h10 {
  width: 1px;
  height: 10px;
}

div.spacer_w20 {
  width: 20px;
  height: 1px;
}

div.spacer_h20 {
  width: 1px;
  height: 20px;
}

button {
  border-style: none;
  background-color: transparent;
}

button.disabled {
  cursor: default;
}

button.unavailable {
  cursor: default;
}

#system_error {
  text-align: center;
  padding: 50px;
}

/* ------------------------------
	 ログイン・ログアウト
------------------------------ */
#login_box_container {
  margin-top: 10%;
}

#login_box {
  text-align: left;
  margin: 0 auto;
  max-width: 500px;
  background-color: #fff;
  border: 1px solid #999;
}

#login_box .frame {
  width: 100%;
  border-collapse: collapsed;
  border-spacing: 0;
}

#login_box .title {
  background-color: #11231f;
  color: #fff;
  font-size: 110%;
  font-weight: bold;
  padding: 6px;
  padding-left: 10px;
  border: 3px solid #fff;
}

#login_box .desc {
  padding: 15px 20px;
  font-size: 100%;
}

#login_box .contents {
  padding: 15px 20px;
}

#login_box label {
  font-weight: bold;
  font-size: 110%;
  display: inline-block;
}

#login_box input {
  font-size: 110%;
}

#login_box .error {
  color: #ff0000;
}

/* #login_box .buttons {
  padding: 15px 20px;
  text-align: center;
} */

#login_box #dllogin {
  width: 120px;
  height: 33px;
  line-height: 33px;
  background: #333 url(../img/bg_button_dllogin.png) no-repeat;
  color: #fff;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* #login_box .buttons button {
  width: 126px;
} */

#login_box .link {
  padding: 15px 20px;
  text-align: right;
  text-decoration: underline;
}

#login_box .link button {
  text-decoration: underline;
  /* for IE */
}

#login_box fieldset {
  border: none;
}

#login_box input[type="text"][readonly] {
  background-color: #dcdcdc;
}

/* ------------------------------
	 リスト
------------------------------ */
#last_login_container {
  background-color: #e0e0e0;
  color: #000;
  font-size: 90%;
  padding: 5px 20px;
  line-height: 20px;
  margin-top: 10px;
}

/* #message_container {
  margin: 0px 15px;
  margin-bottom: 5px;
  padding: 10px;
  background-color: #fff;
  border: 1px solid #d0d0d0;
}
 */

#message_container .link {
  text-decoration: underline;
  cursor: pointer;
  font-size: 80%;
  padding: 5px;
  padding-bottom: 0;
}

#mail_container {
  background-color: #fff;
  border: 1px solid #777;
  margin-top: 0;
  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 0;
}

.mail_header_th {
  background: #e3e4dd url(../img/bg_download_mail_header.png) repeat-x;
  padding: 10px 10px;
  font-weight: bold;
  border: 1px solid #aaa;
  color: #38382d;
  text-align: center;
  white-space: nowrap;
  font-size: 100%;
}

.mail_header_td {
  padding: 10px 20px;
  border: 1px solid #bbb;
  background-color: #fff;
  font-size: 100%;
  color: #000;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.download_file {
  height: 120px;
  width: 290px;
  background-color: #c5dcd3;
  background: url(../img/bg_button_download_available.png) no-repeat;
}

.download_file_over {
  background-color: #ddd;
  background: url(../img/bg_button_download_over.png) no-repeat;
}

.icon {
  width: 70px;
  height: 87px;
}

.filename {
  padding: 0;
  display: flex;
  align-items: center;      /* 上下中央揃え */
  width: 200px;
  height: 87px;
  overflow: hidden;
}
.filename-text {
  display: -webkit-box;       /* 複数行省略のためのflexbox */
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;      /* 3行で省略（60pxに収まる行数に調整） */
  overflow: hidden;           /* スクロールバーを出さず超過部分を隠す */
  white-space: normal;
  text-overflow: clip;
  line-height: 20px;
  word-break: break-all;
  max-height: 60px;
}

.filesize {
  text-align: left;
  font-size: 100%;
  background-color: #fcfcfc;
  border: 1px solid #ccc;
}

.download_count {
  text-align: right;
  font-size: 100%;
  height: 20px;
  line-height: 20px;
  color: #333;
}

.download_over {
  color: #dd3333;
  font-weight: bold;
}

#download_all_container button {
  width: 266px;
}

#download_all_container .download_all {
  margin: 0 auto;
  width: 260px;
  height: 50px;
  line-height: 50px;
  background: #ddd url(../img/bg_button_downloadall_available.png) no-repeat;
  text-align: left;
}

#download_all_container .download_all_over {
  background: #ddd url(../img/bg_button_downloadall_over.png) no-repeat;
}


#download_footer_container {
  margin-top: 30px;
  background-color: #f8f8f8;
  border: 1px solid #f8f8f8;
}

#download_period {
  padding-top: 10px;
  padding-bottom: 5px;
  text-align: center;
  font-size: 90%;
}

#download_period_countdown {
  padding-bottom: 5px;
  text-align: center;
}

#download_unavailable {
  font-weight: normal;
  text-align: center;
  padding-top: 100px;
  padding-bottom: 100px;
}

/* ------------------------------
	 ファイル
------------------------------ */
#download_box_container {
  margin-top: 15%;
  text-align: center;
}

#download_box {
  text-align: left;
  margin: 0 auto;
  max-width: 500px;
  border: 1px solid #333;
  background-color: #fff;
}

#download_box .dl_file_info_label {
  padding: 10px;
  font-weight: bold;
  font-size: 100%;
  /* max-height: 1em; */
  overflow: hidden;
  white-space: nowrap;
}

#download_box .dl_file_info_data {
  padding: 10px;
  font-size: 100%;
  color: #000;
}

#download_box button {
  width: 186px;
}

#download_box div.download {
  width: 180px;
  height: 50px;
  line-height: 50px;
  background: #ddd url(../img/bg_button_dlfile_available.png) no-repeat;
  color: #000;
  font-weight: bold;
  font-size: 120%;
  text-align: center;
  cursor: pointer;
}

#download_box div.download span {
  padding-left: 20px;
}

#download_box div.unavailable {
  color: #666;
  background: #ddd url(../img/bg_button_dlfile_over.png) no-repeat;
  cursor: default;
}

#download_box .close {
  /* float: right; */
  text-align: center;
}

#download_box .close div.button {
  width: 120px;
  height: 34px;
  line-height: 34px;
  background: #333 url(../img/bg_button_dlclose.png) no-repeat;
  color: #fff;
  cursor: pointer;
}



@media screen and (max-width:480px) {
  #download_all_container {
    display: none;
  }

  #last_login_container {
    font-size: 75%;
    margin-bottom: 10px;
  }

  #td-head-l,
  #td-head-r {
    display: block;
    width: 100%;
  }

  #download_footer_container #download_period {
    font-size: 75%;
  }

  #download_footer_container #download_period_countdown {
    font-size: 90%;
  }

  #logo-mobile {
    display: inline;
  }

  #logo-pc {
    display: none;
  }

  #logo {
    height: auto;
  }
}

@media screen and (max-width: 414px) {
  .download_file {
    height: 100px;
    width: 200px;
  }

  .filename {
    max-height: 60px;
    width: 160px;
  }

  .icon {
    height: 55px;
    width: 55px;
  }

  .mail_header {
    font-size: 80%;
  }

  .download_file_container {
    transform: scale(0.8);
  }

  #copyright img {
    margin: 10px;
    display: block;
  }

  #copyright span {
    display: block;
  }

  .download_file {
    color: #000000;
    width: 220px;
    background-size: 220px auto;
  }
}