/* ボディの全体レイアウト */
html {
  font-size: 62.5%;
  overflow: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.6;
  font-family: Helvetica, HiraKakuProN-W3, meiryo, メイリオ, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 100dvh;
  margin: 0;
  /* background-color: #f8f8f8; */
  overflow: hidden;
  background-image: linear-gradient(to top, #ffa5a9 0%, #fad0c4 100%);
}

/* 背景の黒いオーバーレイ */
#backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  /* 70%黒 */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  z-index: 9998;
}

/* モーダル */
/*モーダルを開くボタン*/
/* .modal-open {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 50px;
  font-weight: bold;
  color: #fff;
  background: #000;
  margin: auto;
  cursor: pointer;
  transform: translate(-50%, -50%);
} */

/*モーダル本体の指定 + モーダル外側の背景の指定*/
.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background: rgba(0, 0, 0, 50%);
  padding: 40px 20px;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  box-sizing: border-box;
}

/*モーダル本体の擬似要素の指定*/
.modal-container:before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}

/*モーダル本体に「active」クラス付与した時のスタイル*/
.modal-container.active {
  opacity: 1;
  visibility: visible;
}

/*モーダル枠の指定*/
.modal-body {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  max-width: 500px;
  width: 98%;
}

/*モーダルを閉じるボタンの指定*/
.modal-close {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: -50px;
  right: -10px;
  width: 40px;
  height: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

.modal_title {
  font-size: 16px;
  background: #ff6071;
  color: #ffffff;
  font-weight: bold;
  padding: 10px;
  border-radius: 6px;
}

.modal_text {
  font-size: 20px;
  font-weight: bold;
  margin: 20px 0;
  background: linear-gradient(180deg, #ff3170 0%, #ffb986 40%, #ff6684 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal_inner {
  display: flex;
  margin-top: 20px;
  align-items: flex-end;
}

.modal_innermin {
  text-align: left;
  margin-left: 10px;
  width: 65%;
}

.iconBox {
  width: 35%;
}

.iconBox img {
  width: 100%;
}

.itemname {
  font-size: 18px;
}

.modal_appBtn img {
  width: 100%;
}

.modal_18icon img {
  width: 40px;
}

.modal_btn {
  width: 80%;
  margin: 0 auto;
  border-radius: 6px;
  text-align: center;
}

.modal_btn a {
  display: block;
  padding: 13px;
  background: #34b792;
  border: 2px solid #007a57;
  color: #fff;
  border-radius: 6px;
}

.modal_18textBox {
  display: flex;
  justify-content: space-around;
  background: #505050;
  align-items: center;
  padding: 10px 5px;
  margin-top: 30px;
  border-radius: 6px;
}

.modal_18text {
  font-size: 11px;
  color: #fff;
}

.modal_attention {
  font-size: 14px;
  color: #ff4e4e;
  margin-top: 20px;
}

/*モーダル内のコンテンツの指定*/
.modal-content {
  /* background: #fff; */
  background-image: url(https://img-storage.com/lp/2025/o_u/swipelove/default/modal_bg.jpg);
  background-color: rgba(255, 255, 255, 0.8);
  background-blend-mode: lighten;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: center;
  padding: 10px;
  border-radius: 4px;
}


.modal-content video {
  width: 100%;
  vertical-align: middle;
  margin-top: 20px;
}


/* 動画のスタイル（サイズを小さく） */
.op {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  /* 画面幅の80% */
  max-width: 600px;
  /* 最大600px */
  border-radius: 10px;
  /* 角丸 */
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.5s ease;
}


/* コンテンツ全体 */
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100dvh;
  width: 100%;
  max-width: 700px;
  position: relative;
  margin-top: 15px;
}

.logo img {
  width: 120px;
}

/* タイマー */
.timer {
  text-align: center;
  font-size: 26px;
  padding: 0px 50px;
  border: 2px solid #3c98a2;
  border-radius: 50px;
  margin-top: 6px;
  color: #3c98a2;
  font-weight: bold;
}

.timerText {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

/* ハンバーガーメニュー */
.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 50px;
  height: 50px;
  background-color: rgb(255, 121, 121);
  border-radius: 50%;
}

.menu span {
  position: relative;
  width: 50%;
  height: 2px;
  background-color: #ffffff;
}

.menu span:nth-of-type(1) {
  transform: translateY(-5px);
}

.menu span:nth-of-type(3) {
  transform: translateY(5px);
}


/* ヘッダーのスタイル */
header {
  width: 100%;
  padding: 10px 0;
  font-size: 24px;
  display: flex;
  justify-content: space-between;
  padding: 12px 15px 5px;
}

/* 進捗バーのスタイル */
#progress-bar {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  width: 80%;
  z-index: 0;
}

/* その他の進捗バーのスタイルはそのまま */
.progress-bar {
  width: 150px;
  height: 5px;
  background-color: #ccc;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

#left-bar.active {
  background-color: #ff627e;
  /* 左側バーがアクティブのとき */
}

#right-bar.active {
  background-color: #8b8b8b;
  /* 右側バーがアクティブのとき */
}

/* カードスタック */
#card-stack {
  position: relative;
  width: 80%;
  height: 60vh;
  height: 65dvh;
  /* dvhがサポートされていれば優先 */
  max-height: 500px;
  /* 画面が大きすぎる場合の上限 */
  margin-top: 10px;
}

/* 各カードのスタイル */
.card {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-color: #fff;
  /* 背景を白に変更 */
  /* display: flex;
  justify-content: center;
  align-items: center; */
  transition: transform 0.3s, opacity 0.3s;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.card-content {
  /* text-align: center; */
  padding: 10px;
  /* background-color: rgba(0, 0, 0, 0.5); */
  /* 背景に半透明の黒 */
  color: white;
  border-radius: 10px;
}

.card-content h2,
.card-content_2 {
  font-size: 20px;
  font-weight: bold;
}

.card-content_2 {
  padding: 10px;
}

.card-content_2 h2,
.detailBox_title {
  color: #616161;
  font-size: 18px;
}

.card-content_2 ul {
  margin-top: 10px;
}

.card-content_2 ul li {
  border-bottom: 1px solid #d6d6d6;
  margin-top: 7px;
  font-size: 15px;
  font-weight: normal;
}

.card-content_2 ul li span {
  margin-left: 15px;
}

.detailBox {
  margin-top: 20px;
  background: #e9e9e9;
  border-radius: 7px;
  padding: 10px;
}

.detailBox_title {
  border-bottom: 1px solid #aaaaaa;
  display: inline-block;
  font-size: 16px;
}

.detailBox_text {
  margin-top: 10px;
  font-size: 14px;
  font-weight: normal;
}

.distance {
  font-size: 12px;
  background: #00939ed4;
  display: inline-block;
  padding: 6px;
  border-radius: 50px;
  margin-top: 5px;
  position: relative;
  padding-left: 20px;

}

.distance::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  background-image: url(https://img-storage.com/lp/2025/o_u/swipelove/default/distance.png);
  width: 15px;
  height: 17px;
  background-size: contain;
  background-repeat: no-repeat;
}

/* スワイプ時のアニメーション（カードを斜めに移動） */
.card.swiped {
  transform: translateX(100px) rotate(20deg);
  /* 斜めに移動＆回転 */
  opacity: 0;
  /* 透明度を下げる */
}


/* 初期状態でcard-content_2を隠す */
.card-content_2 {
  display: none;
}

/* 詳細表示用スタイル */
.card-content_2.show-details {
  display: block;
}

/* 隠すスタイル */
.card-content.hide-content {
  display: none;
}

/* 次のカードが後ろに隠れるように */
.card:nth-child(n+2) {
  transform: scale(1);
  opacity: 1;
}

/* アイコンを画面下部に固定 */
.icons {
  position: fixed;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  width: 180px;
  padding: 10px 0;
  z-index: 0;
}

/* アイコンの共通スタイル */
.icon {
  width: 65px;
  height: 65px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s, color 0.3s;
  border-radius: 50%;
  background-color: white;
  /* 最初は白背景 */
  border: 2px solid black;
  /* 境界線を追加 */
}

/* ハート（like）だけピンクに */
.icon.like {
  color: #ff627e;
  /* ハートの色 */
  border-color: #ff627e;
  /* 枠線もピンク */
}

.icon.dislike {
  color: #8b8b8b;
  /* ×の色 */
  border-color: #8b8b8b;
  /* 枠線もグレー */
}

.icon i {
  font-size: 30px;
  color: inherit;
  /* アイコンの色を親要素に合わせる */
}

/* ホバー時にアイコンを少し大きくする */
.icon:hover {
  transform: scale(1.2);
}

/* 左右スワイプ時にアイコンが拡大 & 色反転 */
.icon.dislike.expanded {
  transform: scale(1.5);
  background-color: #8b8b8b;
  /* 背景をグレー */
  color: white;
  /* アイコンを白 */
}

.icon.like.expanded {
  transform: scale(1.5);
  background-color: #ff627e;
  /* 背景をピンク */
  color: white;
  /* アイコンを白 */
}

.hashBox {
  margin-top: 5px;
}

.hashBox span {
  margin-right: 5px;
  background: #3c98a2;
  padding: 7px 15px;
  font-size: 12px;
  color: #fff;
  border-radius: 6px;
  font-weight: normal;
}

.messageText {
  width: 80%;
  background: #ff9340;
  color: #fff;
  font-size: 16px;
  text-align: center;
  font-weight: normal;
  margin: 20px auto 0;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0px 5px 0px #ff6f00;
}

footer {
  width: 100%;
  font-size: 11px;
  color: #fff;
}

.footer_inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer .mail {
  text-align: left;
  margin-bottom: 5px;
  font-size: 14px;
  text-decoration: underline;
}

footer p {
  text-align: left;
  padding: 5px;
}

.card_attention {
  text-align: center;
  font-size: 14px;
  color: #ff3636;
  margin-top: 5px;
  font-weight: normal;
  /* background: #343434;
  width: 80%;
  margin: 0 auto;
  border-radius: 4px; */
}