@charset "UTF-8";

/*==================================================================
	WEB page style
===================================================================*/
body {
  min-width: 320px;
  min-height: 100vh;
  background: #ccece9;
	font-family:"Noto Sans JP", "Noto Sans Japanese", "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", sans-serif;
	line-height: 1.8;
	font-size: 4.4vw;
}
a { -webkit-tap-highlight-color:rgba(0,0,0,0); }
#main { position: relative; }
#logo {
  position: absolute;
  top: 0.5em;
  left: 0.5em;
  width: 16vw;
  max-width: 80px;
}
#title {
  padding: 5vw 0;
  text-align: center;
}
#title img {
  width: 60vw;
  margin: 0 auto;
}
.headline {
  position: relative;
  width: max-content;
  margin: 0 auto 5vw;
  padding: 0.5em 1.5em;
  background: #00A08E;
  border: 1vw solid #FFF;
  border-radius: 100vw;
  line-height: 1.4;
  text-align: center;
  font-size: 1.2em;
  color: #FFF;
}
.headline span {
  position: relative;
  z-index: 10;
}
.headline:before,
.headline:after {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  bottom: -1vw;
  width: 6vw;
  height: 6vw;
}
.headline:before {
  background: #FFF;
  transform: translate(-50%,50%) rotate(45deg);
}
.headline:after {
  background: #00A08E;
  transform: translate(-50%,calc(50% - 1.3vw)) rotate(45deg);
  z-index: 3;
}
#message .headline,
#message .headline:after {
  background: #e5004f;
}
.youtube {
  display: block;
  position: relative;
  padding-top: 56.25%;
}
.youtube iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
#result { margin-bottom: 5vw; }
#result #nav { position: relative; }
#result a {
  display: none;
  position: absolute;
  width: 100%;
}
#result #neckLink { top: 7.5%; }
#result #hipLink { top: 37%; }
#result #kneeLink { top: 65.5%; }
#result img {
  max-width: none;
  width: 100%;
  margin: 0 auto;
}
#message .box {
  display: none;
  position: relative;
  margin: 0 1.5em 2em;
  background: #FFF;
  border-radius: 0 5vw 5vw 5vw;
}
#message h3 {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 12vw;
  height: 12vw;
  background: #e5004f;
  border: 1vw solid #FFF;
  border-radius: 50%;
  font-size: 6vw;
  font-weight: bold;
  color: #FFF;
  transform: translate(-30%,-30%);
}
#message .symptoms {
  padding: 1em 1em 2em;
}
#message p:first-of-type { text-indent: 1em; }
#message p.caution {
  color: #e5004f;
}
#message .advice {
  position: relative;
  padding: 2em 1em 1em;
  background: #00A08E;
  border-radius: 0 0 5vw 5vw;
  color: #FFF;
}
#message .advice h4 {
  position: absolute;
  top: 0;
  left: 50%;
  width: max-content;
  margin: 0 auto;
  padding: 0.5em 1em;
  border-radius: 100vw;
  background: #fAb800;
  border: 1vw solid #FFF;
  line-height: 1.4;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFF;
  transform: translate(-50%,-50%);
}
#message .advice h5 {
  width: max-content;
  margin: 0.5em auto;
  border-top: 2px dotted;
  border-bottom: 2px dotted;
  text-align: center;
  font-size: 1.4em;
}
#message .step {
  position: relative;
  margin-bottom: 2.5em;
}
#message .step:not(:last-of-type):after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  border-style: solid;
  border-width: 1em 1em 0 1em;
  border-color: #fAb800 transparent transparent transparent;
  transform: translate(-50%, 200%);
}
#message .step .pic {
  margin: 0 auto;
}
#message .step dl {
  position: relative;
  margin: 2em auto 0;
  padding: 1.25em 1em 1em;
  border-radius: 5vw;
  background: #FFF;
  font-weight: bold;
  color: #00A08E;
}
#message .step dt {
  position: absolute;
  top: 0;
  left: 50%;
  padding: 0.25em 0.5em;
  background: #fAb800;
  border: 1vw solid #FFF;
  border-radius: 100vw;
  line-height: 1;
  font-size: 1.4em;
  font-weight: bold;
  transform: translate(-50%,-50%);
  color: #FFF;
}
#message .movie dt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1em 1em;
  line-height: 1.4;
  text-align: center;
  font-weight: bold;
}
#message .movie dt:before,
#message .movie dt:after {
  content: "";
  width: 1px;
  height: 3em;
  background: #FFF;
}
#message .movie dt:before { transform: rotate(-25deg); }
#message .movie dt:after { transform: rotate(25deg); }

body.neck #result #neckLink,
body.neck #message #neck { display: block; }
body.hip #result #hipLink,
body.hip #message #hip { display: block; }
body.knee #result #kneeLink,
body.knee #message #knee { display: block; }

body.fine #message #fine {
  display: block;
  margin-top: 2em;
}
#message .box#fine,
#message .box#fine .advice  {
 
  border-radius: 5vw;
  text-align: center;
}
#message .box#fine .advice .txt { text-indent: -0.5em; }
#message .box#fine .movie dt {
  justify-content: center;
  margin-top: 1.5em;
  padding-bottom: 0.5em;
}
#message .box#fine .movie dt span {
  margin-right: 0.5em;
  font-size: 0.8em;
  color: #fAb800;
}
#message .box#fine .movie dt:before,
#message .box#fine .movie dt:after {
  display: none;
}

#doctor .box {
  overflow: hidden;
  position: relative;
  margin: 0 1.5em 2em;
  background: #FFF;
  border-radius:5vw;
}
#doctor .txt {
  padding: 1em;
}
#doctor .txt p { margin-bottom: 1em; }
#doctor .txt p:last-of-type { margin-bottom: 2em; }
#doctor .comment {
  position: relative;
  padding: 1em;
  border: 1px solid #fAb800;
  border-radius: 1.5vw;
}
#doctor .comment dt {
  position: absolute;
  top: 0;
  left: 50%;
  width: max-content;
  padding: 0 0.5em;
  background: #fAb800;
  border-radius: 50vw;
  font-weight: bold;
  color: #FFF;
  transform: translate(-50%,-50%);
}
#doctor .comment dd {
  color: #00A08E;
}

#footer {
  padding: 5vw 0 5vw;
  background: #FFF;
  text-align: center;
}
#footer h1 {
  margin-bottom: 5vw;
  font-size: 6vw;
  color: #00A08E;
}
#footer .link {
  margin: 0 auto 5vw;
}
#footer .link a { text-decoration: none; }
#footer .link img{
  width: 37.5vw;
  max-width: 240px;
  min-width: 120px;
  margin: 0 auto;
}
#footer .link span {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #00A08E;
}
#footer .link .fa {
  margin-left: 0.25em;
  font-size: 0.875em;
}
#footer .logo {
  width: 37.5vw;
  max-width: 240px;
  min-width: 120px;
  margin: 0 auto 5vw;
}
#footer #copy {
  font-size: 3.8vw;
  color: #888;
}

@media only screen and (min-width:768px) {
  body { font-size: 16px; }
  #main {
    max-width: 640px;
    margin: 0 auto;
  }
  #title { padding: 2em 0; }
  #title img { width: 400px; }
  .headline {
    margin: 0 auto 1em;
    border-width: 5px;
    font-size: 1.6em;
  }
  .headline:before,
  .headline:after {
    bottom: -5px;
    width: 30px;
    height: 30px;
  }
  .headline:after {
    transform: translate(-50%,calc(50% - 6px)) rotate(45deg);
  }
  #result { margin-bottom: 3em; }
  #message .box {
    border-radius: 0 1em 1em 1em;
  }
  #message h3 {
    width: 50px;
    height: 50px;
    border-width: 5px;
    font-size: 25px;
  }
  #message .advice {
    border-radius: 0 0 1em 1em;
  }
  #message .advice h4 {
    border-width: 5px;
    font-size: 20px;
  }
  #message .step .pic { width: 400px; }
  #message .step dl {
    max-width: 450px;
    border-radius: 1em;
  }
  #message .step dt {
    border-width: 3px;
  }
  #message .movie dt {
    justify-content: center;
  }
  #message .movie dt:before,
  #message .movie dt:after {
    margin: 0 2em;
  }
  #doctor .box {
    border-radius: 1em;
  }
  #footer { padding: 2em 0 2em; }
  #footer h1 {
    margin-bottom: 1em;
    font-size: 30px;
  }
  #footer .logo {  margin: 0 auto 2em; }
  #footer #copy { font-size: 16px; }
}


