/* ======================
背景
====================== */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: #A7D2F6;
  overflow: auto;
  scroll-behavior: smooth;
}
body {
  background-image: url(../image/bg.png?260422);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  font-family: "Noto Sans JP", sans-serif;
  color: #333333;
}
/* ======================
レイアウト
====================== */
.container {
  background-image: url(../image/container_bg.png?260422);
  background-size: cover;
  background-position: center center;
  box-shadow: 0 4px 12px rgb(37 30 28 / 49%);
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}
.result-card {
  text-align: center;
}
.nav-buttons {
  margin-top: 50px;
  margin-bottom: 20px;
}
/* ======================
基本要素
====================== */
img {
  width: 100%;
  height: auto;
}
a {
  text-decoration: none;
  color: #333333;
}
button {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}
._copy {
  font-size: 0.8rem;
  text-align: center;
}
/* ======================
アニメーション
====================== */
@keyframes fadeIn {
  0% { opacity: 0; }
100% { opacity: 1; }
}
@keyframes fadeOut {
  0% { opacity: 1; }
100% { opacity: 0; }
}
@keyframes fadeInUp {
  0% {
  opacity: 0;
  transform: translateY(20px);
}
100% {
  opacity: 1;
  transform: translateY(0);
}
}
.fade-in {
  animation: fadeIn 1.5s ease-out forwards;
}
/* ======================
スタート画面
====================== */
.start-button {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  margin-bottom: 20px;
}
.image-container {
  position: relative;
  width: 100%;
  height: 335px;
}
.dog-image {
  position: absolute;
  max-width: 100%;
  opacity: 0;
  animation: fadeInUp 2s ease-out forwards;
}
.dog-image:nth-child(1) {
  top: 0;
  animation-duration: .8s;
}
.dog-image:nth-child(2) {
  top: 50px;
  animation-delay: .5s;
  animation-duration: .8s;
}
.dog-image:nth-child(3) {
  top: 140px;
  animation-delay: 1s;
  animation-duration: .8s;
}
/* ======================
ステップバー
====================== */
.step-bar {
  display: flex;
  justify-content: space-evenly;
  margin: 20px 0;
}
.step-bar__span {
  display: block;
  width: 45px;
  height: 52px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
/* 1 */
.step-bar__span:nth-child(1) {
  background-image: url('../image/step-bar1.svg?260422');
}
.step-bar__span:nth-child(1).active {
  background-image: url('../image/step-bar1_active.svg?260422');
}
/* 2 */
.step-bar__span:nth-child(2) {
  background-image: url('../image/step-bar2.svg?260422');
}
.step-bar__span:nth-child(2).active {
  background-image: url('../image/step-bar2_active.svg?260422');
}
/* 3 */
.step-bar__span:nth-child(3) {
  background-image: url('../image/step-bar3.svg?260422');
}
.step-bar__span:nth-child(3).active {
  background-image: url('../image/step-bar3_active.svg?260422');
}
/* 4 */
.step-bar__span:nth-child(4) {
  background-image: url('../image/step-bar4.svg?260422');
}
.step-bar__span:nth-child(4).active {
  background-image: url('../image/step-bar4_active.svg?260422');
}
/* ======================
フォーム（セレクト）
====================== */
.options {
  position: relative;
  margin-bottom: 50px;
  font-size: 1.5em;
}
.options::before,
.options::after {
  position: absolute;
  content: '';
  pointer-events: none;
}
.options::before {
  right: 0;
  display: inline-block;
  width: 2.8em;
  height: 2.8em;
  border-radius: 0 3px 3px 0;
  background-color: #33b5e5;
}
.options::after {
  top: 50%;
  right: 1.4em;
  transform: translate(50%, -50%) rotate(45deg);
  width: 10px;
  height: 10px;
  border-bottom: 3px solid #fff;
  border-right: 3px solid #fff;
}
.options select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-width: 230px;
  height: 2.8em;
  padding: .4em 3.6em .4em .8em;
  border: 2px solid #33b5e5;
  border-radius: 3px;
  color: #333333;
  font-size: 1em;
  cursor: pointer;
  width: 100%;
  pointer-events: auto;
}
.options select:focus {
  outline: 1px solid #33b5e5;
}
/* ======================
ボタン
====================== */
.back-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.back-button img {
  width: 100%;
  height: auto;
  display: block;
}
/* ======================
商品表示
====================== */
.product-img {
  background-color: #fff;
  border: solid 5px #33b5e5;
  border-radius: 5px;
  padding: 1em;
  margin: 0 auto 30px;
}
.product-img p{
  margin-top: .5em;
  margin-bottom: .5em;
}
.product-img > a{
  display: inline-block;
  width: 70%;
}
.product-name span {
  font-weight: bold;
  color: #009FE8;
  font-size: 1.3em;
  line-height: 1.2;
}
.product-link a {
  background-color: #33b5e5;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  color: #fff;
  padding: .8em 2.5em;
  display: inline-block;
  margin-bottom: 1em;
}
.result-card-heading {
  margin-bottom: -20px;
}