body {
  font-family: Arial, sans-serif;
   margin-bottom:60px;
}

:root {
  --main-color: #00B900;
}

.navbar, .card-header.bg-primary, .btn-custom {
    background-color: var(--main-color) !important;
    border-color: var(--main-color) !important;
    color: #fff;
}

  .btn-custom:hover {
    background-color: #009a00 !important;
    border-color: #009a00 !important;
  }

  .list-group-item a {
    position: relative;
    display: block;
  }

  .list-group-item {
  border: none; /* 一旦全てのボーダーをリセット */
  border-bottom: 2px solid #00B900 !important;
  padding-top: 1rem;
  padding-bottom: 1rem;
  }

  .list-group-item:last-child {
  border-bottom: none !important;
  }

  .navbar-brand, .navbar-text a {
    color: #fff !important;
  }

  .navbar-dark .navbar-nav .nav-link.active,
  .navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
    text-decoration: underline;
  }

  .qr-image {
    width:50%;
  }

  .poster {
    font-size: 1.3em;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 4px;
  }

  .poster.female {
    color: #FF33CC;
  }

  .poster.male {
    color: #0066FF;
  }

  .area-select-wrapper {
    background: #ffffff;
    border: 2px solid #00B900;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 0 10px rgba(0, 185, 0, 0.2);
    margin-bottom: 20px;
  }

  .area-select-wrapper label {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00B900;
    margin-bottom: 10px;
    display: block;
  }

  .area-select-wrapper select {
    font-size: 1.1rem;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 100%;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
  }

  .area-select-wrapper select:focus {
    border-color: #00B900;
    box-shadow: 0 0 0 0.2rem rgba(0, 185, 0, 0.25);
    background-color: #fff;
  }

  .comment {
    position: relative;
    background: #fdfdfd;
    border: 2px solid #00B900;
    border-radius: 20px;
    padding: 15px 20px;
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: #333;
    line-height: 1.6;
    box-shadow: 2px 4px 10px rgba(0, 185, 0, 0.1);
    max-width: 90%;
  }

  .comment-bubble {
  position: relative;
  margin-bottom: 0rem;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  background-color: #fff;
  border: 2px solid;
  font-size: 1.1em;
  max-width: 100%;
  color: #333;
}

.comment-bubble::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 1.5rem;
  border-width: 0 10px 10px 10px;
  border-style: solid;
  background: transparent;
}

.comment-female {
  border-color: #FF33CC;
}

.comment-female::before {
  border-color: transparent transparent #FF33CC transparent;
}

.comment-male {
  border-color: #0066FF;
}

.comment-male::before {
  border-color: transparent transparent #0066FF transparent;
}

  .username {
  font-weight: bold;
  font-size: 1.2em;
  display: inline-block;
  margin-bottom: 0.75rem; /* ← 吹き出しとの余白追加 */
  }

  .username.male {
    color: #0066FF;
  }

  .username.female {
    color: #FF33CC;
  }

  .timestamp {
    font-size: 0.9rem;
    color: #777;
    margin-top: 5px;
  }

  .card {
  border: 2px solid #00B900 !important;
  border-radius: 0.7rem;
  overflow: hidden;
  background-color: #fff;
  }

  .btn-register {
  display: inline-block;
  background: linear-gradient(135deg, #00B900, #4CEB74);
  color: #fff;
  font-weight: bold;
  font-size: 1.4rem;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 2rem;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-register:hover {
  background: linear-gradient(135deg, #00a000, #3cd964);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.btn-register::after {
  content: "";
  position: absolute;
  right: 1.8rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
}

.btn-register:hover::after {
  opacity: 1;
  right: 1rem;
}

.pagination .page-link {
  color: #00B900;
  border: 1px solid #00B900;
}

.pagination .page-item.active .page-link {
  background-color: #00B900;
  color: #fff;
  border-color: #00B900;
}

.pagination .page-link:hover {
  background-color: #e6fce6;
}

.form-container {
      max-width: 600px;
      margin: 2rem auto;
      padding: 2rem;
      background-color: #ffffff;
      border: 3px solid #00B900;
      border-radius: 20px;
      box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

  .form-title {
      font-size: 1.8rem;
      color: #00B900;
      font-weight: bold;
      text-align: center;
      margin-bottom: 1.5rem;
    }

  label {
    font-weight: bold;
    color: #444;
    font-family: "Rounded Mplus 1c", "Hiragino Maru Gothic Pro", sans-serif;
    font-size: 1.1rem;
    display: inline-block;
    margin-bottom: 0.4rem;
  }

  label:not(.no-icon)::before {
    content: "▶";
    color: #00B900;
    margin-right: 0.2em;
  }

  .form-control,textarea {
    border-radius: 10px;
    border: 2px solid #ddd;
  }

    .form-control:focus,
    textarea:focus {
      border-color: #00B900;
      box-shadow: 0 0 5px #00B90044;
    }

    textarea {
      resize: vertical;
    }

    .btn-submit {
      display: block;
      width: 100%;
      background: #00B900;
      border: none;
      padding: 0.75rem;
      border-radius: 30px;
      color: white;
      font-weight: bold;
      transition: background 0.3s ease;
      font-size: 1.2rem;
    }

    .btn-submit:hover {
      background: #009900;
    }

  .invalid-feedback {
    font-weight: bold;
    color: #FF66CC;
    font-size: 0.95em;
    margin-top: 0.3rem;
  }

  .custom-file-button {
    display: inline-block;
    padding: 0.6em 1.2em;
    cursor: pointer;
    background-color: #00B900;
    color: white;
    border-radius: 2em;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }

  .custom-file-button:hover {
    background-color: #FF3399;
  }

  .file-name {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
  }

  input[type="file"] {
    display: none;
  }

  .breadcrumb-wrapper {
  font-family: "Rounded Mplus 1c", "Hiragino Maru Gothic Pro", sans-serif;
  font-size: 1rem;
}

.breadcrumb {
  background-color: #e8fce8;
  border: 2px solid #00B900;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "▶";
  color: #00B900;
  padding: 0 0.5rem;
}

.breadcrumb a {
  color: #00B900;
  font-weight: bold;
}

.breadcrumb .emoji {
  margin-right: 0.2em;
}

#loading {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-inner {
  text-align: center;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #ccc;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.blink-text {
  font-size: 1.2rem;
  font-weight: bold;
  color: #222;
  animation: blink 1s steps(2, start) infinite;
}


@keyframes blink {
  0% { opacity: 1; }
  100% { opacity: 0; }
}
