* {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", serif;
  font-optical-sizing: auto;
  font-style: normal;
  line-height: 1.6;
  font-feature-settings: "palt";
}
body {
  width: 100%;
  background: #edecec;
  background-image: url(/img/5.png);
  background-repeat: repeat;
  background-size: 5%;
  height: 100lvh;
    /* overflow: scroll; */

}

h1,
h2,
h3,
h4,
h5{
  font-weight: 400;
}

img {
  width: 100%;
  vertical-align:top;
}

a {
  color: #333333;
  text-decoration: none;
}

button{
  color: #333333;
}

ul{
  list-style: none;
}


/*********************************
    container
*********************************/
.container {
  display: flex;
  text-align: center;
  width: 100%;
  height: 100lvh;
}

.main-column {
  width: 500px;
  margin: 0 auto;
  margin-top: 20px;
}

.main-column-02{
  width: 500px;
  margin: 0 auto;
}

.main-container {
  width: 90%;
  margin: 0 auto;
  margin-bottom: 500px;
}

.main-container-02 {
  width: 90%;
  margin: 0 auto;
  margin-bottom: 100px;
}

.sidebar {
  height: 100lvh;
  flex-grow: 1; /* 残りのスペースを左右均等に分配 */
  max-width: calc((100% - 500px) / 2); /* 両サイドが均等になるように最大幅を制限 */
  position: fixed;
  top: 0;
}

.left {
  left: 0;
}

.right {
  right: 0;
}

.sidebar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/*********************************
    見出し
*********************************/
.title-01{
  border-bottom: #8265a7 2px solid;
  margin-bottom: 1rem;
  color: #8265a7;
  font-weight: 700;

  &::before {
    content: "";
    display: inline-block;
    background-image: url(/img/icon-pentagon.png);
    background-size: cover;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    margin-right: 5px;
  }
}

/* .title-02{
  padding: 0 0.5rem;
  margin-bottom: 1rem;
} */

.title-03{
  padding: 0 0.5rem;
  margin-bottom: 1rem;

  &::before{
    content: "＼";
    margin-right: 10px;
  }

  &::after{
    content: "／";
    margin-left: 10px;
  }

}

.title-04{
  font-size: 3rem;
  text-shadow: #333 1px 0 10px;
  font-family: "Noto Serif JP", serif;
  font-weight: 900;
}

.title-05{
  display: inline-block;
  border-bottom: #ccc 1px solid;
  text-shadow: #333 1px 0 5px;
}

.title-06{
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 100%;
}

/* .title-07{
  margin-bottom: 1rem;

  span {
  color: #8265a7;
  font-weight: 700;
  border-bottom: #8265a7 2px solid;
  display: block;
  }
} */

.title-08 {
  padding: 0.25em 0.5em;/*上下 左右の余白*/
  background: transparent;/*背景透明に*/
  background-color: rgba(130, 101, 167, 0.1);
  border-left: solid 5px #8265a7;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.title-09{
  font-size: 5rem;
  text-shadow: #333 1px 0 10px;
  font-weight: 800;
  opacity: 0.3;
  /* 縦書き */
  writing-mode: vertical-lr;
  
  @media screen and (max-width: 600px) {
    font-size: 4rem;
  }
}

.title-10{
  font-size: 3rem;
  text-shadow: #333 1px 0 10px;
  font-weight: 800;

  @media screen and (max-width: 768px) {
    font-size: 2.3rem;
  }
}


/*********************************
    リスト
*********************************/

.ul-01{
  & li{
    margin-bottom: 1rem;

    &:last-child{
      margin-bottom: 0;
    }
  }
}


/*********************************
    margin
*********************************/
.m-100{
  margin: 100px 0;
}

.mt-20{
  margin-top: 20px;
  position: relative;
}


/*********************************
    トップページ
*********************************/
.mainvisual{
  position: relative;
  color: #fcfcfc;

  .top{
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
  }

  .bottom{
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
    overflow: hidden;
  }
}

.scroll-container {
  position: relative;
  height: 150px;
}
.scroll_down {
  position: absolute;
  bottom: 5%;
  right: 50%;
  animation: arrowmove 1s ease-in-out infinite;
}

.scroll_down:before {
  content: "";
  position: absolute;
  bottom: 5px;
  right: -6px;
  width: 2px;
  height: 20px;
  background: #333333;
  transform: skewX(-31deg);
}

.scroll_down:after {
  content: "";
  position: absolute;
  bottom: 5px;
  right: 0;
  width: 2px;
  height: 85px;
  background: #333333;
}

@keyframes arrowmove {
  0% {
    bottom: 5%;
  }
  50% {
    bottom: 10%;
  }
  00% {
    bottom: 5%;
  }
}


/*********************************
    質問
*********************************/
#questions{
  margin-top: 500px;
}

.question-card button {
  cursor: pointer;
  padding: 10px 20px;
  border: #333 1px solid;
  border-radius: 3px;
  margin: 20px 0;
  transition: all .3s;

  &:hover {
    background-color: rgba(51, 51, 51, 0.1);
  }
}

.question-card {
  height: 100lvh;
  margin-bottom: 20px;
  padding-top: 200px;
  text-align: center;
  /* border-bottom: #8265a7 dashed 2px; */

  @media screen and (max-width: 768px) {
    padding-top: 100px;
  }
}

.card-number {
  color: #8265a7;
  font-size: 2rem;
  display: inline-block;
  border-bottom: #8265a7 2px solid;
  margin-bottom: 1rem;
}

.card-number::before {
  content: "";
  display: inline-block;
  background-image: url(/img/icon-pentagon.png);
  background-size: cover;
  background-repeat: no-repeat;
  width: 20px;
  height: 20px;
  margin-right: 5px;
}

.selected {
  background-color: #8265a7;
  color: white;

  &:hover {
    background-color: #8265a7;
  }
}
.unanswered {
  border: 2px solid red;
}


/*********************************
    進捗バー
*********************************/
.progress-bar {
  width: 100%;
  background-color: #edecec;
  margin-bottom: 20px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
}
.progress {
  height: 20px;
  width: 0%;
  background-color: #333;
}


/*********************************
    左右のキャラクター
*********************************/
.character-container {
  position: fixed;
  width: 200px;
  text-align: center;
  z-index: 10;
  visibility: hidden; /* 初期状態では非表示 */
  opacity: 0;         /* 透明に設定 */
  transition: opacity 0.5s ease-in-out; /* 表示時のフェードイン効果 */
  bottom: 50px;
}
.character-container img {
  max-width: 200px;
  height: auto;
  border-radius: 5%;
  object-fit: cover;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  background-color: #fcfcfc;
}
.character-left {
  left: 50px;
}
.character-right {
  right: 50px;
}

.bubble {
  position: absolute;
  width: 200px;
  color: #fcfcfc;
  padding: 10px;
  border-radius: 30px;
  font-size: 0.9em;
  top: -80px; /* 画像の上部に配置 */
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: block; /* 吹き出しを表示 */
  visibility: visible; /* 見える状態に */
  border: #fcfcfc solid 1px;

  /* 吹き出ししっぽ */
  /* &:before {
    content: "";
    position: absolute;
    top: 95%;
    left: 50%;
    margin-left: -10px;
    border: 10px solid transparent;
    border-top: 10px solid #e0edff;
  } */
}

#bubble-left{
  background-color: #8265a7;

  /* &:before {
    border-top: 10px solid #8265a7;
  } */
}

#bubble-right{
  background-color: #333333;

  /* &:before {
    border-top: 10px solid #333333;
  } */
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .character-container,
  .character-container img,
  .bubble {
    width: 120px;
  }

  .character-left {
    left: 30px;
    bottom: 30px;
  }

  .character-right {
    right: 30px;
    bottom: 30px;
  }
}


/*********************************
    フッター
*********************************/
footer {
  display: block;
  background-color: #333;
  color: #ccc;
  width: 100%;
  text-align: center;
  padding: 15px;

  & p{
    font-size: 0.875rem;
  }
}

.copyright{
  width: 95%;
  margin: 0 auto;
  display:flex;
  flex-flow: column;
  gap: 5px;
  margin-top: 20px;

  & img{
    width: 20px;
    margin: 0 auto;
    transition: transform 0.3s ease; /* 1秒かけて拡大 */
  }

  & img:hover {
    transform: scale(1.5); /* 1.5倍に拡大 */
  }
}


/*********************************
    ボタン
*********************************/
.btn,
button.btn {
  position: relative;
  display: inline-block;
  padding: 1rem 0;
  width: 250px;
  cursor: pointer;
  border-radius: 3px;
}

/******** ボタン１ **********/
.btn-flat {
  border: none;
  overflow: hidden;
  color: #fcfcfc;
  background: #333333;
}

.btn-flat span {
  position: relative;
}

.btn-flat:before {
  position: absolute;
  top: 0;
  left: 0;

  width: 100px;
  height: 100px;

  content: "";
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
  -webkit-transform: translateX(-80%) translateY(-25px);
  transform: translateX(-80%) translateY(-25px);

  border-radius: 50%;
  background: #8265a7
}

.btn-flat:hover:before {
  width: 400px;
  height: 400px;

  -webkit-transform: translateX(-1%) translateY(-175px);

  transform: translateX(-1%) translateY(-175px);
}


/******** ボタン２ **********/
.btn-square {
  background: #ffdd00;
  border: #333333 2px solid;
  transition: all .3s;
  font-weight: 700;

  &:hover{
    background-color: #333333;
    color: #ffdd00;
  }
}

/******** ボタン３ **********/
.share{
  display: inline-flex; 
  align-items: center; 
  background-color: #333;
  border-radius: 3px;
  padding: 10px 20px;
  color: #fcfcfc;
  transition: all .3s;
  font-size: 0.9rem;
  margin-top: 20px;

  &:hover{
    opacity: 0.7;
  }

  & img{
    width: 20px;
    height: 20px; 
    margin-right: 8px;
  }
}

/******** 結果を見るボタン **********/
#showResultButton {
  margin: 400px auto 50px ;
}

/******** link-container **********/
.link-container{

  & button{
    margin-bottom: 1rem;
  }

  @media screen and (min-width: 600px) and (max-width: 768px) {
    margin-bottom: 0;

    & :first-child{
      margin-right: 5px;
    }
    }
}


/*********************************
    結果ページ
*********************************/
.result-top{
  position: relative;
  color: #fcfcfc;
  background-position: center;

  .top{
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
  }

  .bottom{
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    overflow: hidden;
  }
}

.nagi{
  background-image: url(/img/background-result-nagi.png);
}

.reo{
  background-image: url(/img/background-result-reo.png);
}

.rong{
  background-image: url(/img/background-result-rong.png);
}


.result-image {
  width: 100%;
  border-radius: 10px;
}


/******** パーセンテージ **********/
.graph-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 5px;
  align-items: center;

  & img {
    object-fit: cover;
    border-radius: 50%;
    vertical-align: middle;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    background-color: #fcfcfc;
  }
}

.bar-container {
  width: 60%;
  height: 20px;
  background-color: #e0e0e0;
  border-radius: 5px;
  position: relative;
}

.bar {
  height: 100%;
  position: absolute;
  top: 0;
}
.graph-text {
  width: 15%;
  text-align: center;
  align-items: center;
  gap: 10px;
}

.reo-bar {
  background-color: #8265a7; 
  border-radius: 3px 0 0 3px;
  left: 0;
  border-right: 2px #ccc solid;
}

.nagi-bar {
  background-color: #333;
  border-radius: 0 3px 3px 0;
  right: 0;
}

#nagi-percentage,
#reo-percentage{
  font-size: 1.5rem;
  margin-right: 2px;
}
.result-text{
  text-align: left;
}

.result-section{
  padding: 30px 0 50px;

  &:last-child{
    border-top: dashed 1px #8265a7;
    /* border-top: double 5px #8265a7; */
    border-bottom: dashed 1px #8265a7;
  }
}


/******** 左右の吹き出し **********/
.result-comment{
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 20px;
  text-align: left;

  & img{
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    background-color: #fcfcfc;
  }
}

.balloon-right,
.balloon-left{
  width: 100%;
}

.balloon-right {
  position: relative;
  display: inline-block;
  padding: 15px;
  color: #fcfcfc;
  background: rgba(51, 51, 51, 0.8);
  border-radius: 10px;
}

.balloon-right:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  margin-top: -10px;
  border: 6px solid transparent;
  border-left: 6px solid rgba(51, 51, 51, 0.8);
}

.balloon-left {
  position: relative;
  display: inline-block;
  padding: 15px;
  color: #fcfcfc;
  background: rgba(130, 101, 167, 0.9);
  border-radius: 10px; 
}

.balloon-left:before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  margin-top: -10px;
  border: 6px solid transparent;
  border-right: 6px solid rgba(130, 101, 167, 0.9);
}