:root {
    /* KEC Brand Colors */
    --kec-blue-dark: #005BAC;
    --kec-blue-light: #00A0E9;
    --kec-orange: #F39800;
    --kec-grey: #4D4D4D;

    /* Function Colors */
    --line-green: #06C755;
    --line-green-hover: #05b34c;

    /* Layout Colors */
    --bg-color: #f0f8ff;
    --card-bg: #ffffff;
    --text-color: #333333;
    --shadow: 0 8px 20px rgba(0, 91, 172, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background: linear-gradient(135deg, #e0f2ff 0%, #ffffff 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Background Energy Elements */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    right: -10%;
    width: 60vh;
    height: 60vh;
    background: radial-gradient(circle, var(--kec-blue-light) 0%, transparent 70%);
    opacity: 0.1;
    z-index: -1;
    border-radius: 50%;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    left: -10%;
    width: 50vh;
    height: 50vh;
    background: radial-gradient(circle, var(--kec-orange) 0%, transparent 70%);
    opacity: 0.1;
    z-index: -1;
    border-radius: 50%;
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.08;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.12;
    }
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    width: 100%;
}

#page-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--kec-blue-dark);
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 1);
    letter-spacing: 0.05em;
}

.subtitle {
    font-size: 1rem;
    color: var(--kec-orange);
    font-weight: bold;
    background: rgba(255, 255, 255, 0.9);
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.main-content {
    width: 100%;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.message-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    width: 100%;
    margin-bottom: 2rem;
    position: relative;
    border: 3px solid #fff;
    background: linear-gradient(to bottom right, #fff, #fafafa);
}

/* Decorative top bar for card */
.message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 6px;
    background: linear-gradient(90deg, var(--kec-blue-dark), var(--kec-blue-light), var(--kec-orange));
    border-radius: 0 0 6px 6px;
}

#message-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-align: center;
    color: var(--kec-blue-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#message-title::before,
#message-title::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--kec-orange);
    border-radius: 2px;
}

.message-content {
    background-color: #f7f9fc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px dashed #c0d8ef;
}

#message-text {
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

.notice {
    font-size: 0.85rem;
    color: var(--kec-grey);
    margin-bottom: 1.2rem;
    text-align: center;
    font-weight: 500;
}

.line-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--line-green);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1.1rem 2rem;
    font-size: 1.2rem;
    font-weight: 800;
    width: 100%;
    max-width: 100%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 0 #049c41, 0 10px 10px rgba(0, 0, 0, 0.1);
    /* 3D effect */
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.line-btn:hover {
    background-color: var(--line-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #049c41, 0 15px 20px rgba(0, 0, 0, 0.15);
}

.line-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #049c41, 0 4px 6px rgba(0, 0, 0, 0.1);
}

.line-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -50%;
    }

    20% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

.line-icon {
    margin-right: 12px;
    display: flex;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.line-icon svg {
    fill: white;
}

footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    background-color: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    margin-top: auto;
}

.copyright {
    color: var(--kec-blue-dark);
    font-weight: 600;
    opacity: 0.8;
}

/* Responsiveness */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem 1rem;
    }

    #page-title {
        font-size: 1.5rem;
    }

    .line-btn {
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
    }

    .message-card {
        padding: 1.5rem 1.2rem;
    }
}