/* ベースリセットと基本設定 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-image: url("images/back1.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #006540;
  color: #333;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-callout: none;
}

img {
  vertical-align: inherit;
  user-drag: none;
  -webkit-user-drag: none;
  -moz-user-select: none;
  pointer-events: none;
}
label,
input {
  font-size: 24px;
}
button {
  font-size: 15px;
}
input {
  padding: 5px;
}
button {
  margin: 10px;
  padding: 5px;
}

/* ヘッダー */
header {
  background-color: #ffffff;
  color: #000000;
  text-align: center;
  padding: 10px 20px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}
header h1 {
  font-size: 1.5em;
}

/* メインレイアウト */
.container {
  flex-direction: column;
  max-width: 500px;
  margin: 60px auto;
  padding: 20px;
}
#fadeLayer,
#likeLayer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  background-color: rgba(0, 0, 0, 0.5);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#likeLayer {
  writing-mode: vertical-rl;
  font-size: 8vh;
}
/* showクラスを付与するとフェードイン */
#fadeLayer.show,
#likeLayer.show {
  opacity: 1;
  visibility: visible;
}
.likeLeyer_image {
  background: url(images/like.png);
  background-size: contain;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  padding: 40px 200px;
}

/* 初期状態：非表示かつ透明 */
#message {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 15px;
  text-align: center;
  background-color: #e94a72; /* エラー用背景色 */
  color: #fff;
  z-index: 999999;
  opacity: 0;
}

/* フェードイン状態 */
#message.fade-in {
  display: block;
  animation: fadeIn 0.5s forwards;
}

/* フェードアウト状態 */
#message.fade-out {
  animation: fadeOut 1s forwards;
}

/* フェードイン用キーフレーム */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* フェードアウト用キーフレーム */
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.back-btn {
  background-color: #000000; /* ボタンの背景色 */
  color: #fff;
  display: block;
  border: solid 1px #fff;
  border-radius: 20px;
  cursor: pointer;
  padding: 10px;
  margin: 10px auto;
  width: 100%;
  max-width: 300px;
}

.delete-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 16px;
  height: 16px;
  position: relative;
  padding: 0;
  margin: 0;
}

/* 疑似要素で×マークを作成 */
.delete-btn::before,
.delete-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transform-origin: center;
}

/* 45度に回転して斜め線を作成 */
.delete-btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

/* -45度に回転してもう一方の斜め線を作成 */
.delete-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ホバー時の色変更（オプション） */
.delete-btn:hover::before,
.delete-btn:hover::after {
  background-color: #f00;
}
