.container-a {
    width: 100%;
    height: calc(100dvh - 130px);
    min-height: 400px;
    display: grid;
    place-content: center;
    margin-bottom: 20px;
}

.links-ab {
    margin: 0 auto;
    width: max-content;
    margin-bottom: 10px;
}

.link-ab {
    display: flex;
    align-items: center;
    justify-content: center;
    color: aliceblue;
}

.link-ab p {
    text-shadow: 0 0 2px #333;
}

.Alinks {
    display: block;
    line-height: 2;
    text-align: center;
    cursor: default;
    max-width: 450px;
}


.Alinks a {
    font-size: 15px;
    border-radius: 8px;
    padding: 3px 10px;
    color: azure;
    text-decoration: none;
    text-shadow: 0 0 2px #333;
}

.Alinks a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-shadow: none;
}

.mbgif {
    margin: 0 auto;
    display: block;
    width: 240px;
    max-width: 50vw;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

/* 留言板 */
.container-m {
    width: 96%;
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
}

.header {
    background: var(--primary);
    padding: 15px;
    text-align: center;
    color: white;
}



.form-section {
    padding: 15px 30px;
    background: white;
}

.form-group {
    margin-bottom: 2px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid #e1e5e9;
    border-radius: 5px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}
.submit-box {
    display: flex;
    align-items: center;
}
.submit-btn {
    background: #19a3ff;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 20px;
}

.submit-btn:hover {
    background: var(--primary);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.messages-section {
    padding: 30px;
    background: #f8f9fa;
}

.messages-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.message-item {
    background: white;
    border-radius: 10px;
    padding: 6px 8px;
    margin-bottom: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}


.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.message-author {
    font-weight: 600;
    color: var(--primary);
}

.message-time {
    color: #666;
    font-size: 13px;
}

.message-content {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.error {
    color: #000000;
}

.success {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #22543d;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.rate-limit-info {
    background: #ebf8ff;
    border: 1px solid #90cdf4;
    color: #2a69ac;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}
