@charset "UTF-8";

[v-cloak] {
  display: none;
}

html {
  font-size: 62.5%;
}

html, body {
  overflow-x: hidden;
  position: relative;
}

html:root {
  background-color: #f9f9f9;
}

body {
  min-height: 100vh;
}

h1, p, figure, figcaption {
  color: #333;
  font-family: "游ゴシック体", "YuGothic", "ヒラギノ角ゴシック", "Hiragino Sans", "ヒラギノ角ゴ ProN W3", "HiraKakuProN-W3", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", sans-serif;
  font-size: 1.6rem;
  line-height: 1.5em;
  font-weight: 300;
  letter-spacing: 0;
  word-wrap: break-word;
}

/*------------------------------------------
ヘッダー
------------------------------------------*/
#header {
  padding: 10px 0;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  text-align: center;
}

#site-logo {
  width: 125px;
  margin-left: auto;
  margin-right: auto;
}

#site-logo img {
  width: 100%;
}

/*------------------------------------------
コンテンツ
------------------------------------------*/
#contents {
  max-width: 600px;
  margin: 40px auto 60px;
  padding: 0 10px;
}

@media screen and (max-width: 750px) {
  #contents {
    margin-top: 20px;
  }
}

/*------------------------------------------
カード
------------------------------------------*/
.card {
  background-color: #fff;
  box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.15);
}

.card + .card {
  margin-top: 15px;
}

/*------------------------------------------
コメント
------------------------------------------*/
.card.comment {
  padding: 0 20px;
}

.card.comment .comment__title {
  color: #1f59ba;
  font-size: 20px;
  font-weight: 600;
  line-height: 1em;
  text-align: center;
  padding: 25px 0;
  border-bottom: 1px solid #ccc;
  margin-bottom: 20px;
}

.card.comment .content {
  font-size: 1.4rem;
  font-weight: 600;
}

.card.comment .comment-text {
  white-space: pre-line;
}

.card.comment .time {
  color: #999999;
  text-align: right;
  padding: 10px 0;
}

/*------------------------------------------
投稿
------------------------------------------*/
.card.post .card-top {
  width: 100%;
  padding: 10px;
  display: table;
  table-layout: fixed;
}

.card.post .card-top > * {
  display: table-cell;
  vertical-align: middle;
}

.card.post .user {
  font-weight: 600;
}

.card.post .time {
  color: #999999;
  font-size: 1.4rem;
  line-height: 1.6rem;
  text-align: right;
}

.card.post .photo {
  padding-top: 100%;
  position: relative;
  background-color: #eee;
}

.card.post .photo img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  object-fit: cover;
}

.card.post .card-bottom {
  padding: 10px;
}

.card.post .card-bottom > .comment {
  white-space: pre-line;
}

/*------------------------------------------
翻訳ボタン
------------------------------------------*/
.translate-btn {
  margin-top: 10px;
}

.translate-btn button {
  width: 160px;
  color: #2E5EB2;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1em;
  padding: 10px 0;
  margin: 0 auto;
  cursor: pointer;
}

.translate-btn button:disabled {
  cursor: default;
  opacity: 0.7;
}

.btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #ccc;
  border-top-color: #2E5EB2;
  border-radius: 50%;
  animation: loading-spin 0.8s linear infinite;
}

/*------------------------------------------
翻訳結果
------------------------------------------*/
.translated-text {
  margin: 10px 0 0;
  padding: 0 0 0 15px;
  border-left: 3px solid #ccc;
  color: #555;
  font-size: 1.3rem;
  white-space: pre-line;
}
