:root {
  font-size: min(3.18vw, 36px);
  letter-spacing: -0.03rem;
}
body {
  background-color: var(--light);
  font-family: "Kaisei Opti", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    Meiryo, sans-serif;
}
:root .btn {
  font-size: 100%;
  margin: 0.375rem 0.1rem;
  border-radius: 2rem;
}
.btn-third {
  color: #000;
  background-color: #f5f5f5;
  padding: 0.5rem 1.5rem;
}
.btn-third:not([disabled]):not(.disabled).active,
.show > .btn-third.dropdown-toggle {
  color: #fff;
  background-color: #f5a20b;
  box-shadow: 0 5px 11px 0 rgb(0 0 0 / 18%), 0 4px 15px 0 rgb(0 0 0 / 15%);
}
.survey .btn {
  font-size: 120%;
  margin: 0.375rem 0.8rem;
}

/* page title */
.selfcheck-title {
  background: linear-gradient(to right, #3b99af 0, #424bb7 100%);
  padding: 1rem 1rem;
  color: #fff;
  text-align: center;
  border-radius: 0 0 1rem 1rem;
  -webkit-box-shadow: 0 5px 11px 0 rgb(0 0 0 / 18%),
    0 4px 15px 0 rgb(0 0 0 / 15%);
  box-shadow: 0 5px 11px 0 rgb(0 0 0 / 18%), 0 4px 15px 0 rgb(0 0 0 / 15%);
}
.selfcheck-title::before {
  content: "";
  background-color: #fff;
  display: inline-block;
  width: 2.3rem;
  height: 2.5rem;
  -webkit-mask: url("../img/hanie.svg");
  mask: url("../img/hanie.svg");
  -webkit-mask-size: cover;
  mask-size: cover;
  vertical-align: middle;
  margin-right: 0.8rem;
}
.selfcheck-title.selfcheck-title-login::before {
  content: "";
  background-color: #fff;
  display: inline-block;
  width: 10rem;
  height: 2.1rem;
  -webkit-mask: url("../img/logo_haniwa.svg");
  mask: url("../img/logo_haniwa.svg");
  -webkit-mask-size: cover;
  mask-size: cover;
  vertical-align: middle;
  margin-right: 0.8rem;
}
.selfcheck-title h4 {
  font-size: 250%;
}
.selfcheck-source {
  font-size: 0.5rem;
  color: #b6b6b6;
  line-height: 120%;
}
.underline-y {
  background: linear-gradient(transparent 60%, yellow 30%);
}
.underline-b {
  background: linear-gradient(transparent 90%, rgba(255, 255, 255, 0.3) 10%);
}
.card-header {
  background-color: #0075ba;
  padding: 0.4rem 0;
  font-size: 106%;
}
.card-header.card-header-color2,
.Q_num.Q_num-color2 {
  background-color: #01a6d8;
}
.Q_num {
  font-size: 105%;
  background-color: #0075ba;
  margin-left: -1rem;
  margin-right: 2.45rem;
  padding: 0.6rem;
  border-radius: 50%;
}
/* アイコン共通 */
.card-header::before {
  font-family: "Font Awesome 5 Free";
  font-size: 1.5em;
  color: rgba(255, 255, 255, 0.4);
  position: absolute;
  top: 0;
  left: 1.7rem;
}
/* かたいもの */
.card-header.icon-face-tired::before {
  content: "\f5c8";
  font-weight: 900;
}
/* むせる */
.card-header.icon-mug-saucer::before {
  content: "\f0f4";
  font-weight: 900;
}
/* 義歯 */
.card-header.icon-tooth::before {
  content: "\f5c9";
  font-weight: 900;
}
/* 口の乾き */
.card-header.icon-face-grin-tongue::before {
  content: "\f589";
  font-weight: 900;
}
/* 外出 */
.card-header.icon-shoe-prints::before {
  content: "\f54b";
  font-weight: 900;
}
/* さきいか、たくあん */
.card-header.icon-cookie-bite::before {
  content: "\f564";
  font-weight: 900;
}
/* 歯磨き */
.card-header.icon-teeth-open::before {
  content: "\f62f";
  font-weight: 900;
}
/* 歯科医院 */
.card-header.icon-house-chimney-medical::before {
  content: "\f7f2";
  font-weight: 900;
}
/* 患者情報 */
.card-header.icon-user::before {
  content: "\f007";
  font-weight: 900;
  margin-left: -1rem;
}
.icon-square-xmark::before {
  font-family: "Font Awesome 5 Free";
  font-size: 1.1em;
  color: #c2c2c2;
  position: absolute;
  top: 0;
  left: 0;
  content: "\f00d";
  font-weight: 900;
}

.gender {
  font-size: 115%;
}
.q-half {
  font-size: 100%;
}
.q-half .fa-flag {
  color: #ff6da4;
}
.q-half::before {
  content: "";
  background-color: #ff6da4;
  display: inline-block;
  width: calc(2.3rem * 0.68);
  height: calc(2.5rem * 0.68);
  -webkit-mask: url("../img/hanie.svg");
  mask: url("../img/hanie.svg");
  -webkit-mask-size: cover;
  mask-size: cover;
  vertical-align: middle;
  margin-right: 0.2rem;
}
footer.page-footer .footer-copyright {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  background-color: rgba(0, 0, 0, 0.2);
  font-size: 70%;
  letter-spacing: 0.1rem;
}
/* data picker */
.picker.datepicker {
  width: 100%;
  height: 100%;
}
.md-form.md-outline label.active {
  left: 8px;
  padding-right: 5px;
  padding-left: 5px;
  font-weight: 500;
  background: #fff;
  -webkit-transform: translateY(-1rem) scale(0.8);
  transform: translateY(-1rem) scale(0.8);
}

/* login */
.loginsave .form-check-input[type="checkbox"]:not(:checked) + label:before {
  top: 0.3rem;
  left: 0;
  z-index: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0;
  border: 1px solid #cbcbcb;
}

/* result main */
.re-point {
  width: 100%;
  border-bottom: 3px solid #e4e4e4;
  font-size: 180%;
  padding: 0;
  line-height: 170%;
}
.re-point span {
  font-size: 240%;
  font-weight: bold;
  padding: 0 0.2em;
}
.re-level {
  font-size: 180%;
}
.re-level.low {
  color: #0075ba;
}
.re-level.high {
  color: red;
}
.re-comment {
  font-size: 100%;
  border-radius: 0.5rem;
}
.re-comment.low {
  background-color: #f3f9ff;
}
.re-comment.high {
  background-color: #ffeaed;
}
.re-comment strong {
  font-weight: bold;
  margin: 0 0.2em;
}
.re-comment.low strong {
  color: #0075ba;
}
.re-comment.high strong {
  color: red;
}
.re-comment.q-half {
  font-size: 85%;
}
.re-comment.q-half::before {
  content: "";
  background-color: #ff6da4;
  display: inline-block;
  width: calc(2.3rem * 0.5);
  height: calc(2.5rem * 0.5);
  -webkit-mask: url("../img/hanie.svg");
  mask: url("../img/hanie.svg");
  -webkit-mask-size: cover;
  mask-size: cover;
  vertical-align: middle;
  margin-right: 0.2rem;
}
/* result open-close */
/*inputを非表示*/
input[type="checkbox"].on-off {
  opacity: 0;
}
/*ラベル（「開く」ボタン）*/
.open-label {
  margin: 0;
  padding: 0.4em;
  display: block;
  color: #fff;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 2px 5px 2px rgba(0, 0, 0, 0.16);
  background: #0075ba;
  border-radius: 10px;
}
/*ボタンっぽい効果*/
.open-label:active {
  box-shadow: 0 0 0 0;
}
.open-label:hover {
  background: -webkit-linear-gradient(bottom, #fff4e0 1%, orange 80%);
  background: #01a6d8;
}
/*開閉エリア*/
.open {
  padding: 0;
  height: 0;
  opacity: 0;
  transition: 0.5s;
}
/*「開く」をタップで表示*/
.on-off:checked ~ .open {
  padding: 1em 0;
  height: auto;
  opacity: 1;
}

/* result table */
.re-info {
  font-size: 70%;
  text-align: right;
}
.re-table {
  font-size: 70%;
  counter-reset: number 0;
}
.re-table dl {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  text-align: left;
}
.re-table dt {
  width: 70%;
  padding: 0.2em 0.8em;
  margin-bottom: 2px;
  background-color: #f3f9ff;
}
.re-table dt::before {
  counter-increment: number 1;
  content: counter(number) ") ";
}
.re-table dt.re-add {
  background-color: #ffeaed;
}
.re-table dd {
  width: 30%;
  padding: 0.2em 0.8em;
  background-color: #f3f3f3;
  margin-bottom: 2px;
  text-align: center;
}
.re-table dd.re-add {
  background-color: #ffdde2;
  font-weight: bold;
  color: red;
}

/* Kids Question page */
.kids-section {
  background: linear-gradient(180deg, #b8dff5 0%, #e4f4ff 60%, #b8dff5 100%);
  min-height: 100vh;
  margin: 0 -15px;
}
.kids-research-note {
  font-size: 65%;
  color: #555;
  text-align: center;
  margin: 0.5rem 0 0;
  line-height: 1.4;
}
.kids-title-img {
  width: 100%;
  display: block;
  margin: 0.25rem 0 0.25rem;
  padding: 0 1.5rem;
  box-sizing: border-box;
}
.kids-select-hint {
  color: #333;
  font-size: 85%;
  text-align: center;
  margin-bottom: 0.75rem;
}
.kids-section > .row {
  margin-left: 0;
  margin-right: 0;
}
.kids-check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0 0.5rem;
  margin-bottom: 0.5rem;
}
.kids-check-item {
  aspect-ratio: 1 / 1;
  min-width: 0;
}
.kids-card-label {
  display: block;
  position: relative;
  cursor: pointer;
  border-radius: 0.75rem;
  overflow: hidden;
  height: 100%;
  user-select: none;
  -webkit-user-select: none;
}
.kids-check-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.kids-check-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.kids-checked-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  object-fit: fill;
}
.kids-check-input:checked ~ .kids-checked-overlay {
  display: block;
}

@media print {
  .print-none,
  a,
  .btn,
  .btn-third,
  .selfcheck-title,
  .selfcheck-title::before,
  .selfcheck-title h4,
  .q-half::before,
  :root .btn {
    display: none;
  }
  .selfcheck-title {
    padding: 0;
    margin: 0;
  }
  body {
    background-color: white;
  }
}
