/*-------------------------------------
sg
-------------------------------------*/

body {
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-family: Helvetica, sans-serif;
}

header {
  background-color: #fff;
  border-bottom: solid 1px #cf1126;
  padding-bottom: 10px;
}

header h1 {
  display: table-cell;
  padding: 0;
  margin: 0;
  font-size: 2em;
}

header .inner {
  display: table;
  width: 100%;
  max-width: 840px;
}

.inner {
  margin: 0 auto;
}

header .right {
  display: table-cell;
  vertical-align: top;
  padding-top: 6px;
  width: 80%;
}

header .right p {
  font-size: 10px;
  color: #999;
  padding-bottom: 6px;
}

header .right h2 {
  padding: 0;
  margin: 0;
}

img {
  height: auto;
  max-width: 100%;
  border: 0;
}

#oshigoto > .section {
  padding: 5px;
}

.error ul li {
  color: #cf1126;
}

#content {
  margin: 0 auto;
  max-width: 840px;
}

.container h1 {
  background: #cf1126;
  color: white;
  font-size: 20px;
  font-weight: normal;
  padding: 20px 15px;
}

footer {
  margin-top: 30px;
  background: #cf1126;
  color: white;
  padding: 20px;
  font-size: 12px;
  text-align: center;
}

@media screen and (max-width: 768px) {
  header .inner {
    margin: 0 5px;
    width: auto;
  }
  header .pc {
    display: none;
  }
}

@media screen and (max-width: 640px) {
  header .inner {
    margin-left: 5px;
    margin-right: 5px;
  }
}

table.personal {
  width: 100%;
  margin: 30px 0 !important;
}

table.personal th {
  width: 30%;
  padding: 10px;
  text-align: left !important;
  position: relative;
}

table.personal td {
  padding: 12px 0 !important;
}

table.personal input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 80%;
  border: solid 1px #d3d3d3;
}

table.personal input[type="radio"] {
  width: 20px;
  height: 20px;
}

::placeholder {
  color: #c5c5c5;
}

table.personal th span.ess {
  background: #cf1126;
  color: white;
  font-size: 10px;
  padding: 3px 4px;
  position: absolute;
  top: 12px;
  right: 10px;
  font-weight: normal;
}

textarea {
  height: 8em;
}

select {
  border: #c5c5c5 solid 1px;
  font-size: 18px;
  margin-bottom: 3px;
}

@media screen and (max-width: 480px) {
  table.personal {
    border: none !important;
    width: 100%;
  }
  table.personal th {
    width: 100%;
    display: block;
    border: none !important;
    text-align: left;
    font-size: 14px;
    padding: 12px 0 !important;
  }
  table.personal th p {
    margin-left: 10px;
  }
  table.personal td {
    width: 100%;
    display: block;
    border: none !important;
    text-align: left;
    font-size: 14px;
    padding: 12px 0 !important;
  }
  /*table.personal th{
    margin:10px 0 5px 0;
    padding:12px 5px !important;
    }*/
  table.personal td input,
  textarea {
    width: 90%;
  }
}

table.personal input,
textarea,
select {
  font-size: 16px;
  margin-left: 10px;
}

form .req {
  color: red;
}

.container p {
  font-size: 14px;
}

p.heading {
  font-size: 20px;
  border-left: 6px solid #cf1126;
  padding-left: 0.3em;
  font-weight: bold;
  margin-top: 1em;
  margin-bottom: 0.8em;
}

#oshigoto table th.term {
  background: #db3444;
  color: #fff;
}

/*-------------------------------------
sg
-------------------------------------*/

a {
  color: #ff0000;
}

h3 {
  border-top: solid 1px #00b050;
  border-bottom: solid 1px #00b050;
  margin: 5px 0;
  padding: 5px 0;
  text-align: center;
  color: #00b050;
}

p {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
}

/*-------------------------------------
topics
-------------------------------------*/

#oshigoto table {
  margin-top: 0.2em;
  margin-bottom: 1em;
  border-collapse: collapse;
  border: solid 1px #ccc;
  font-size: 12px;
}

#oshigoto table.terms {
  border-top: solid 2px #cf1126;
}

#oshigoto table th,
#oshigoto table td {
  border: solid 1px #ccc;
  padding: 5px;
}

#oshigoto table th {
  text-align: center;
  background: #eeeeee;
  color: #000;
  font-size: 14px;
}

#oshigoto table td {
  text-align: left;
  vertical-align: top;
}

#oshigoto table td::first-letter {
  font-feature-settings: "palt";
}

#oshigoto table td.choice {
  text-align: center;
  vertical-align: middle;
  width: 28%;
  border-bottom: solid 2px #cf1126;
}

#oshigoto table td.term_2 {
  background: #f5f5f5;
}

#oshigoto table th.bg-beige {
  background-color: #faecec;
  text-align: left;
  color: #333;
}

#oshigoto table th.bg-beige img {
  vertical-align: middle;
  margin-right: 5px;
}

#oshigoto table th.bg-beige span {
  font-weight: bold;
}

#oshigoto table td.bg-gray {
  background-color: #d1d1d1;
}

.pict {
  display: table-cell;
  margin-right: 5px;
  width: 100px;
}

.title {
  display: table-cell;
  vertical-align: middle;
  padding-left: 5px;
}

input[type="radio"] {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

dl {
  border-bottom: 1px solid #ccc;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
  overflow: hidden;
  background-color: #00b050;
}

dl dt {
  float: left;
  clear: left;
  width: 130px;
  font-weight: bold;
  background-color: #00b050;
  border-top: 1px solid #ccc;
  padding: 5px;
  color: #fff;
}

dl dd {
  background-color: #ffffff;
  border-top: 1px solid #ccc;
  margin-left: 140px;
  padding: 5px;
}

dl.detail dd br.list {
  display: none;
}

dl.entry dd br {
  display: none;
}

dl dd span {
  font-weight: bold;
}

.atn {
  text-indent: -1em;
  margin-left: 1em;
}

input.btn {
  width: auto;
  padding: 5px 30px;
  margin-bottom: 20px;
  cursor: pointer;
}

input.btn.entry {
  font-size: 150%;
  font-weight: bold;
  border: solid 2px #00b050;
  border-radius: 5px;
}

@media screen and (max-width: 480px) {
  p.pict img,
  input,
  textarea {
    max-width: 100%;
  }
  dl {
    border: none;
  }
  dl dt {
    float: none;
    border: none;
    width: 98%;
    padding: 1%;
  }
  dl dd {
    border: none;
    margin-left: 0px;
    width: 98%;
    padding: 1%;
  }
  dl.detail dt {
    width: auto;
  }
  dl.detail dd {
    width: auto;
  }
  dl.entry dd br {
    display: block;
  }
  dl.detail dd br.list {
    display: none;
  }
  #oshigoto table {
    table-layout: fixed;
    width: 100%;
    word-break: break-word;
  }
  #oshigoto table.alpha td {
    vertical-align: middle;
  }
}

/*専攻・分野が2行になる場合*/

.tworows {
  display: table-cell;
  vertical-align: middle;
  height: 100px !important;
}

@media screen and (min-width: 481px) {
  br.sp {
    display: none;
  }
}
