<style>
@charset "UTF-8";

/* ウェブフォントの読み込み */
@font-face {
    font-display: swap;
}

/* 全体に適用する */
* {
    margin: 0;
    padding: 0;
    font-weight: normal;
    background-color: #fff;
}

/* コンテナ */
#wrap {
    margin: auto auto 0;
}

#QA {
    margin: auto 0.5em auto auto;
}

/* 基本設定 */
body {
    text-align: center;
    background-color: #fff;
    line-height: 1.7em;
    font-size: 1em;
    color: #000;
}

/* 見出し */
h1 {
    margin-bottom: 0.5em;
    text-indent: 0.2em;
    line-height: 1.2em;
    font-size: 1.2em;
}

h2 {
    text-indent: 0.2em;
    line-height: 1em;
    font-size: 1em;
}

h3 {
    margin: 5em auto;
    margin-bottom: 1em;
    line-height: 1em;
}

/* メインコンテンツ */
main {
    text-align: left;
    margin: 1em 1em 5em;
    word-break: break-all;
}

/* ヘッダー */
header {
    position: relative;
    margin: 3em auto 1.5em;
    width: 250px;
    height: 130px;
    border: thin solid #000;
}

/* 上（トップ）に戻る */
.gotop{
    display: block;
    width: 60px;
    height: 60px;
    box-sizing: border-box;
    background: #FFF;
    border: 1px solid #999;
    padding-top: 30px;
    text-align: center;
    letter-spacing: -1px;
    font-size: 85%;
    text-decoration: none;
    color: #333;
    opacity: 0.5;
    position: fixed;
    bottom: 15%;
    right: 5%;
    z-index: 10000;
}
.gotop::before{
    content: "";
    display: block;
    border-top: 2px solid gray;
    border-right: 2px solid gray;
    width: 25%;
    height: 25%;
    top: 25%;
    left: 0;
    right: 0;
    margin: auto;
    position: absolute;
    transform: rotate(-45deg);
}
.gotop:hover{
    opacity: 1;
}


/* pタグ */
p{
  font-size: 0.9em;
  line-height: 1.2em;
}

p.QA{
  margin: 1em auto 0.5em;
  font-weight: bold;
  font-size: 0.9em;
  line-height: 1.5em;
}

/* QA */
.faq {
  font-size: 0.9em;
  line-height: 1.5em;
  margin-bottom: 1.2em; /* 各Q&Aの下に余白 */
}

.faq__dt{
  margin-bottom: 0.2em; /* Q&Aの間に余白 */
}

.faq__dt,
.faq__dd {
  position: relative;
  padding-left: 2em;
  text-align:justify;
}

.faq__dt::before, .faq__dd::before {
  position: absolute;
  left: 0.5em;
  top: 0;
}

.faq__dt::before {
  content: 'Q.';
  color:blue;
}

.faq__dd::before {
  content: 'A.';
  color:red;
}


/* 折り畳み部分 */
details{
  font-size: 0.9em;
  line-height: 1.2em;
  padding: 0.2em 0;
  margin: 0 0.2em;
}

summary{
  /* background-color: silver;*/
  -webkit-text-decoration:underline solid;
  text-decoration:underline solid;
  cursor: pointer;
}

summary::marker { /* 三角形のアイコンをアレンジ(Chrome,Edge,Firefox) */
  color: red;
}

summary::-webkit-details-marker {/* 三角形のアイコンをアレンジ(Safari) */
  color: red;
}

.details-content {
  margin: 0.5em 0 1em 0;
}

.vol_jump { /* ページ内ジャンプ用リンク */
  color: darkgray;
}


/* テーブル検索 */
input[type=text],input[type=button] {
  -webkit-appearance: none;
  border-radius: 0;
  width: auto;
  padding: 0.2em 0.5em;
  border: 1px solid #000;
  font-size: 1em;
}

input[type=text] {
  width: 50%;
  margin: 0.2em 0 0.1em 0;
}

input[type=text]:focus {
  outline: none;
}

input[type=button] {
  margin: 0.1em 0 0 0;
  background-color: whitesmoke;
  color: #000;
  border-radius: 0;
  cursor: pointer;
}

input[type=button]:active {
  background-color: gainsboro;
}

/* テーブル */
table{
  margin: 1em auto;
  border:solid 0.5px #000;
  border-collapse: collapse;
  width: 100%;
  font-size: 0.8em;
}

.title{
  width: 80%;
}

 th,
 td{
  border:solid 0.5px #000;
  text-align:center;
  line-height: 1.3em;
  box-sizing:border-box;
  padding: 0.5em 0.5em;
}

.title th {
  line-height: 1.3em;
  background: #db163d;
  color: #fff;
}


table td:first-child{
  width:6em;
}

/* タイトル一覧 */
.title td:nth-child(3){
  width:9em;
}

/* タイトル一覧概略つき */
.titlememo th {
  line-height: 1.3em;
  background: #6212b3;
  color: #fff;
}

.titlememo td:nth-child(2){
  font-weight:bold;
}

.titlememo td:nth-child(4){
  width:9em;
}

/* 登場人物一覧 */
.chara {
  margin: 0.5em auto;
}

.chara th {
  padding: 1em auto;
  text-align:justify;
  line-height: 1.3em;
  background: #db163d;
  color: #fff;
}

.chara td {
  text-align:left;
  padding: 0.3em 0.5em;
}

.chara td:nth-child(2){
  width:20%;
}

.chara td:nth-child(3){
  width:12%;
}


/* リンク */
a {
    display: inline-block;
    padding: 0;
    color:red;
}

/* フッター */
footer {
    margin: 1em auto 6em;
    padding: auto auto 1em auto;
    line-height: 1em;
}

footer span {
    display: inline-block;
    margin-bottom: 0.5em;
    color: #888;
}

/* フォーム系 */

/* アンケート */
#qre{
    margin: 2.5em auto;
}

.pqre{
    margin: 1em auto;
    padding: 0;
}

.pqre a{
    margin: 0.2em 0 auto;
    color: #8659b3;
}

input[type=submit]{
    -webkit-appearance: none;
    padding: 0.2em 0.5em;
    color: #000;
    background-color: #ddd;
    border: thin solid #000;
    border-radius: 0;
    margin: auto;
    font-size: 1em;
}

label{
  display: inline-block;
  margin: 0.1em 0.7em ;
}

label.output{
  display: inline;
  margin: 0 0.2em;
  color: lightslategray;
}

input[type=radio] {
    margin: 0.3em;
}

.qre_textarea {
  -webkit-appearance: none;
  margin: auto 1em;
  border-radius: 0;
  padding: 0.2em 0.5em;
  border: 1px solid #000;
  width: 60%;
  height: 4em;
  font-size: 1.1em;
}

.qre_textarea:focus {
  outline: none;
}

span.qre_voltop {
  display: block;
  margin: auto auto 0.5em 1em;
  padding: auto 1em 0.5em auto;
}

span.qre_vol {
  display: block;
  margin: 0.8em auto;
}

/* アンケート結果 */
div.graph{
}

iframe.pc {
  display: block !important;
  margin:0 auto;
}

iframe.sp {
  display: none !important;
  margin:0px auto;
}

details.acd-rank{
  margin: 0 auto 3em auto;
}

summary.acd-rank{
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  width:60%;
  background: #333;
  color: #fff;
  box-sizing: border-box;
  padding: 0.3em 1em;
  font-size: 0.8em;
}

table.rank {
  margin: 0 auto auto auto;
  width:60%;
}

table.rank thead tr.head th{
  background-color: silver;
}

table.rank td {
  padding: 0.2em auto;
}

table.rank td:first-child{
  width:fit-content;
  min-width: 3.5em;
}

table.rank td:nth-child(3){
  width: fit-content;
  min-width: 3.5em;
}

select.form-control {
  width: 40%;
  height: 2em;
  border: 0.1px solid #000;
  color: #000;
  font-size: 0.9em;
  background-color: #fff;
  border-radius: 2px;
}

select.form-control:focus {
  outline:none;
  box-shadow: 0 0 1px 1.5px #d8bfd8;
}

table#result.result {
  margin: 5px auto auto auto;
}

table#result.result thead tr.head th{
  background-color: #ddd;
}

table#result.result td{
  text-align: left;
  vertical-align: top;
}

table#result.result td:first-child{
  width:25%;
}


/* ローディング */
#overlay{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height:100%;
    display: none;
    background: rgba(255,255,255,0.5);
}
.cv-spinner {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.5);

}
.spinner {
    width: 80px;
    height: 80px;
    border: 4px #ddd solid;
    border-top: 4px #999 solid;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    animation: sp-anime 0.8s infinite linear;
}
@keyframes sp-anime {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(359deg); }
}
.is-hide{
    display:none;
}


/* 横幅640px以下で読み込む */
@media screen and (max-width:640px) {
  .head{
    display:none;
  }
  
  input[type=text] {
    width: 95%;
  }
  
  table th {
    text-align: center;
  }

  table td {
    padding: 0.2em 1em;
    text-align: left;
    display: block;
    width: 100%;
    border-bottom: 0px; 
  }
  
  .title td:first-child{
    width:auto;
    padding: 0.2em 1em;
    font-weight:bold;
    background: #db163d;
    color: #fff;
  }

  /* タイトル一覧 */
  .title{
    width: 100%;
  }

  .title td:nth-child(3){
    width:auto;
    padding:0.2em 1em 0.5em;
  }

  /* タイトル概略メモつき */
  .titlememo td:first-child{
    width:auto;
    padding: 0.2em 1em;
    background:#6212b3;
    color:#fff;
    font-weight:bold;
  }
  
  .titlememo td:nth-child(3){
    margin: -0.3em auto auto auto;
    border-top: none;
  }

  .titlememo td:nth-child(4){
    width:auto;
    padding:0.2em 1em 0.5em;
  }

/* 登場人物一覧 */
  .chara table{
  }

  .chara tr{
  }

  .chara td {
    vertical-align:middle;
    padding: 0.2em 0.8em;
  }
  
  .chara td:first-child{
    width:auto;
    padding: 0.2em 0.8em;
    background:#db163d;
    color:#fff;
    font-weight:bold;
  }

  .chara td:nth-child(2){
    padding: 0.5em auto auto auto;
    width:auto;
  }

  .chara td:nth-child(3){
    width:auto;
  }
  
  .chara td:nth-child(4){
    padding:auto auto auto;
    border-bottom: 0.1px solid #000;
  }

  /* 投票所 */
  p.pqre textarea.qre_textarea {
    box-sizing: border-box;
    width: 90%;
  }

  /* 投票結果 */
  iframe.pc {
    display: none !important;
  }

  iframe.sp {
    display: block !important;
  }
  
  summary.acd-rank{
    width:85%;
  }

  table.rank {
    width:85%;
  }

  table.rank tr.head{
    display:table-row;
  }
  
  table.rank td{
    padding: 0.5em;
    text-align: center;
    display: table-cell;
    width: auto;
  }

  table.rank td:first-child{
    min-width: 2em;
  }

  table.rank td:nth-child(3){
    min-width: 2em;
  }

  select.form-control {
    width: 100%;
  }

  table#result.result tr.head{
    display:table-row;
  }
  
  table#result.result td{
    padding: 0.5em;
    text-align: left;
    display: table-cell;
    width: auto;
  }

  table#result.result td:first-child{
    width:30%;
  }

}


/* 横幅640px以上で読み込む */
@media screen and (min-width:640px) {
main {
    text-align: justify;
    margin: 1em auto 5em;
    padding: 0 10%;
    word-break: break-all;
    }

/* テーブル タイトル */


</style>