@charset "utf-8";

/* =========================
   Base
========================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family:
        "Noto Sans JP",
        "Yu Gothic",
        sans-serif;
    color: #334155;
    background: linear-gradient(135deg,
            #f0f9ff,
            #fdf2f8);
}

/* =========================
   Login Container
========================= */
main {
    width: min(90%, 420px);
    margin: 10vh auto;
    padding: 32px 24px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

/* =========================
   Heading
========================= */
main h1 {
    margin: 0 0 12px;
    font-size: 1.6rem;
    text-align: center;
    color: #2563eb;
}

main p {
    margin-bottom: 28px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* =========================
   Form
========================= */
#loginForm {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#password {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#password:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* =========================
   Button
========================= */
#loginForm button {
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: #3b82f6;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

#loginForm button:hover {
    background: #2563eb;
}

#loginForm button:active {
    transform: scale(0.98);
}

/* =========================
   Error
========================= */
#error {
    margin-top: 16px;
    color: #dc2626;
    font-size: 0.9rem;
    text-align: center;
}

/* =========================
   Mobile
========================= */
@media (max-width: 480px) {
    main {
        margin: 6vh auto;
        padding: 28px 20px;
    }

    main h1 {
        font-size: 1.4rem;
    }
}


/* =========================
   Markdown Content
========================= */
#content {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

/* Headings */
#content h1,
#content h2,
#content h3,
#content h4 {
    text-align: left;
    line-height: 1.4;
    margin-top: 2em;
    margin-bottom: 0.8em;
    color: #1e3a8a;
}

#content h1 {
    font-size: 1.8rem;
    padding-bottom: 0.4em;
    border-bottom: 3px solid #bfdbfe;
}

#content h2 {
    font-size: 1.4rem;
    padding-left: 12px;
    border-left: 5px solid #60a5fa;
}

#content h3 {
    font-size: 1.15rem;
    color: #2563eb;
}

#content h4 {
    font-size: 1rem;
    color: #475569;
}

/* Paragraph */
#content p {
    margin: 1em 0;
    text-align: left;
    color: #334155;
    font-size: 0.95rem;
}

/* Links */
#content a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #93c5fd;
    transition: color 0.2s, border-color 0.2s;
}

#content a:hover {
    color: #1d4ed8;
    border-color: #1d4ed8;
}

/* Lists */
#content ul,
#content ol {
    padding-left: 1.8em;
    margin: 1em 0;
}

#content li {
    margin: 0.4em 0;
    padding-left: 0.2em;
}

#content li::marker {
    color: #60a5fa;
}

/* Blockquote */
#content blockquote {
    margin: 1.5em 0;
    padding: 12px 18px;
    background: #eff6ff;
    border-left: 4px solid #60a5fa;
    border-radius: 0 10px 10px 0;
    color: #475569;
}

#content blockquote p {
    margin: 0.3em 0;
}

/* Horizontal Rule */
#content hr {
    border: none;
    height: 1px;
    margin: 2em 0;
    background: linear-gradient(
        to right,
        transparent,
        #cbd5e1,
        transparent
    );
}

/* Inline Code */
#content code {
    padding: 0.2em 0.45em;
    background: #f1f5f9;
    color: #be185d;
    border-radius: 5px;
    font-family: Consolas, monospace;
    font-size: 0.9em;
}

/* Code Block */
#content pre {
    padding: 18px;
    margin: 1.5em 0;
    overflow-x: auto;
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 12px;
    line-height: 1.6;
    font-size: 0.85rem;
}

#content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
    border-radius: 0;
    font-size: inherit;
}

/* Tables */
#content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.9rem;
    overflow: hidden;
    border-radius: 10px;
}

#content th {
    background: #dbeafe;
    color: #1e3a8a;
    font-weight: 600;
}

#content th,
#content td {
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

#content tr:nth-child(even) td {
    background: #f8fafc;
}

/* Images */
#content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5em auto;
    border-radius: 12px;
}

/* Strong */
#content strong {
    color: #1e40af;
    font-weight: 700;
}

/* Task List */
#content input[type="checkbox"] {
    accent-color: #3b82f6;
    margin-right: 0.5em;
}

/* Mobile Markdown */
@media (max-width: 480px) {
    #content {
        font-size: 0.9rem;
    }

    #content h1 {
        font-size: 1.5rem;
    }

    #content h2 {
        font-size: 1.25rem;
    }

    #content pre {
        padding: 14px;
        font-size: 0.8rem;
    }

    #content th,
    #content td {
        padding: 8px 10px;
    }
}
