@media only screen and (max-width: 767px) {
  .pc {
    display: none !important;
  }
}

@media print, screen and (min-width: 768px) {
  .sp {
    display: none !important;
  }
}
/* Reset and Global Settings */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Header */
header {
    background-color: #c1272d;
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 24px;
    display: flex;
  justify-content: center;
  align-items: center;
}
header h1 img {
  width: 15%;
  margin-right: 10px;
}
@media (max-width: 768px) {
  header h1 img {
    width: 35%;
  }
}

/* Title */
.title {
    text-align: center;
    margin: 20px 0;
}

.title p {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
}

/* Online Status */
.online-status {
    text-align: center;
    padding: 5px 10px;
    border: 1px solid #c1272d;
    color: #c1272d;
    border-radius: 5px;
    margin: 20px auto;
    animation: fadeBlink 2s infinite;
    width: 80%;
}

.online-status p {
    margin: 0;
}

@keyframes fadeBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* User Card */
.user-card {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    transition: opacity 0.5s;
    gap: 10px;
}

.user-card img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-info-main {
    flex-grow: 1;
}

.user-info-main h3,
.user-info-main p {
    margin: 0;
    font-size: 14px; /* 例として、小さめのフォントサイズを設定 */
}

.card-introduction {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Maximum 2 lines */
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Adjust as needed */
    max-height: 3.6em; /* Adjust based on text height */
    line-height: 1.8em; /* Adjust based on line height */
}

.card-introduction.long-text {
    -webkit-line-clamp: unset; /* Remove 2-line limit if text is longer */
    line-clamp: unset;
    max-height: unset; /* Remove height limit */
    white-space: normal; /* Allow text to wrap */
}

.talk-button {
    background-color: #8cc63f;
    color: white;
    border: none;
    padding: 12px 24px; /* Increase padding for larger button size */
    cursor: pointer;
    border-radius: 3px;
    margin-top: 5px;
    font-size: 14px; /* Increase font size for larger button text */
    white-space: nowrap; /* Ensure button text remains on one line */
    text-decoration: none;
    display: block;
}

.talk-button:hover {
    background-color: #39b54a;
}

.time-ago {
    font-size: 10px; /* Reduce font size for the time ago text */
    margin: 0;
}
