@charset "utf-8";

/*---------------------------------------------*/
/* フォーム
/*---------------------------------------------*/

.mform *,
.msearch * {
  box-sizing: border-box;
}

.mform,
.msearch {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans CJK JP', 'Noto Sans JP', 'BIZ UDPGothic', Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  width: 100%;
  padding: 0 40px;
  box-sizing: border-box;
}

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

  .mform,
  .msearch {
    padding: 0 20px;
  }
}

@media screen and (min-width:1000px), print {

  .mform,
  .msearch {
    display: inline-block;
    width: 980px;
    padding: 0;
  }
}

/* 検索レイアウト -------------------------------*/
.mform dd:after {
  content: '';
  display: block;
  clear: both;
}

@media screen and (max-width: 479px) {
  .mform dt {
    width: 100%;
    padding: 10px 10px 0 0;
  }

  .mform dd {
    padding: 5px 0 10px 0;
  }
}

@media screen and (min-width: 480px), print {

  .mform dt,
  .mform dd {
    padding: 10px;
  }

  .mform dt {
    width: 10em;
    float: left;
    padding-top: 15px;
  }

  .mform dd {
    margin-left: 10em;
  }
}

/* 入力切り替え（Chrome非対応） -----------------------------------*/
/*IMEオン*/
.mform_text {
  ime-mode: active;
}

/*IMEオフ*/
.mform_number {
  ime-mode: inactive;
}

/* 入力エリア ---------------------------------------------*/
.mform_text,
.mform select {
  width: 300px;
}

@media screen and (min-width: 768px), print {

  .mform_text,
  .mform select {
    width: 400px;
  }
}

.mform_text {
  padding: 2px;
}

textarea,
input[type="text"],
input[type="number"] {
  outline: 0;
  padding: 10px;
  border-radius: 3px;
  border: solid 1px #c9c9c9;
  background: transparent;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: rgba(52, 152, 219, 0);
}

input:focus,
select:focus,
textarea:focus {
  border: solid 1px #3498DB;
}

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

  /*iOSのズーム回避*/
  textarea,
  input[type="text"],
  input[type="number"] {
    font-size: 16px;
  }
}

/*上下の矢印消去*/
/* Chrome/Safari */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

/*上下の矢印消去*/
/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

/* select --------------------------------*/
select {
  /* reset */
  outline: 0;
  margin: 0;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  /* styling */
  background: white;
  display: inline-block;
  font: inherit;
  padding: 0.5em 3.5em 0.5em 1em;
  border-radius: 3px;
  border: 1px solid #c9c9c9;
}

/* IE reset */
select::-ms-expand {
  display: none;
}

select.minimal {
  border: 1px solid #c9c9c9;
  border-radius: 3px;
  background-image:
    linear-gradient(45deg, transparent 50%, gray 50%),
    linear-gradient(135deg, gray 50%, transparent 50%),
    linear-gradient(to right, #ccc, #ccc);
  background-position:
    calc(100% - 20px) calc(1em + 2px),
    calc(100% - 15px) calc(1em + 2px),
    calc(100% - 2.5em) 0.5em;
  background-size:
    5px 5px,
    5px 5px,
    0px 1.5em;
  background-repeat: no-repeat;
}

/* 検索ボタン --------------------------------*/
/*buttonリセット*/
button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  outline: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  border-radius: 6px;
}

.btn-wrap {
  text-align: center;
  width: 100%;
  margin-top: 20px;
}

@media screen and (min-width: 768px), print {
  .btn-wrap {
    width: 640px;
  }
}

.btn,
.btn:hover {
  padding: 10px 60px;
  font-size: 1.2em;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.btn {
  display: inline-block;
  border: solid 1px #565656;
  background: #565656;
  color: #fff;
  transition: all .3s;
}

.btn:hover {
  border: solid 1px #565656;
  background: #fff;
  color: #565656;
}

/*---------------------------------------------*/
/* 検索結果
/*---------------------------------------------*/

.msearch {
  margin-top: 60px;
  margin-bottom: 60px;
}

/* 見出し --------------------------------*/
.msearch h3 {
  font-size: 1.2rem;
  font-weight: bold;
}

@media screen and (min-width: 834px), print {
  .msearch h3 {
    font-size: 1.4rem;
  }
}

/* 一覧 --------------------------------*/
.msearch table {
  border-collapse: collapse;
  width: 100%;
}

.msearch table th,
.msearch table td {
  padding: 5px 10px;
}

@media screen and (max-width: 833px) {
  .msearch table tr {
    display: block;
    border: solid 1px #a8a8a8;
    margin-bottom: 10px;
  }

  .msearch table th {
    display: block;
    width: 100%;
    font-weight: normal;
  }

  .msearch td {
    display: list-item;
    list-style: none;
  }

  .msearch table td:not(:nth-last-child(-n+2)) {
    border-bottom: dashed 1px #a8a8a8;
  }

  .msearch table td:last-child {
    text-align: right;
    padding-bottom: 10px;
  }
}

@media screen and (min-width: 834px), print {
  .msearch table {
    border-top: solid 1px #565656;
  }

  .msearch table th,
  .msearch table td {
    border-bottom: solid 1px #565656;
    padding: 20px 10px;
  }

  .msearch table th {
    border-right: dashed 1px #a8a8a8;
  }

  .msearch table td:not(:last-child) {
    border-right: dashed 1px #a8a8a8;
  }

  .msearch.iryo table td:nth-of-type(1),
  .msearch.iryo table td:nth-of-type(3),
  .msearch.iryo table td:nth-of-type(5),
  .msearch.fukushiiryo table td:nth-of-type(1),
  .msearch.fukushiiryo table td:nth-of-type(3),
  .msearch.fukushiiryo table td:nth-of-type(4),
  .msearch.fukushiiryo table td:nth-of-type(6),
  .msearch.kaigo table td:nth-of-type(1),
  .msearch.kaigo table td:nth-of-type(3),
  .msearch.kaigo table td:nth-of-type(6) {
    white-space: nowrap;
  }
}

/* ボタン --------------------------------*/
.msearch .linkbtn {
  white-space: nowrap;
  background: #565656;
  border-radius: 6px;
  border: solid 1px #565656;
  color: #fff;
  padding: 5px 20px;
}

.msearch .linkbtn:hover {
  text-decoration: none;
  border: solid 1px #565656;
  background: #FFFFFF;
  color: #565656;
}