

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

html {
    scroll-behavior: smooth;
}

body {
    background: white;
    font-family: system-ui, -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
}


header, main, footer {
    max-width: 500px;
    width: 100%;
}

/* Header */
header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.header-logo {
    text-decoration: none;
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(2.2);
}

.header-text a {
    text-decoration: none;
    color: black;
}

.header-text h1 {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 0 0 4px 0;
    color: #008eff;
}

.header-text p {
    font-size: 16px;
    color: #999999;
    line-height: 1.4;
}

/* main */
main {
    flex: 1;
}

/* search */
input {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 24px;
    box-shadow: 0 0 0 1.5px #d4d4d4;
    font-size: 18px;
    outline: none;
    margin-bottom: 16px;
}

input:focus {
    box-shadow: 0 0 0 2px #5a5a5a;
}

.results {
    width: 100%;
    min-height: 60px;
    background: #f5f5f5;
    border-radius: 24px;
    padding: 4px 0;
    font-size: 18px;
}

.label {
    padding: 14px 16px 4px;
    font-size: 14px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.results a {
    display: block;
    padding: 14px 16px;
    text-decoration: none;
    color: #000;
    border-radius: 16px;
    margin: 2px 6px;
}

.results a:hover {
    background: #e5e5e5;
}

.not-found {
    padding: 16px;
    color: #666;
    font-style: italic;
}

.about-text {
    margin: 30px 0 20px;
    padding: 20px 0 8px;
    border-top: 1px solid #e0e0e0;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

/* main */
main h1 {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 16px 0;
    letter-spacing: -0.01em;
}

main h2 {
    font-size: 22px;
    font-weight: 500;
    margin: 28px 0 12px 0;
}

main h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 8px 0;
}

main h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 8px 0;
    color: #2a2a2a;
}

main p {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin: 0 0 16px 0;
}

main a {
    color: #008eff;
    text-decoration: none;
}

main ul {
    color: #333;
    margin: 0 0 20px 20px;
}

main ol {
    color: #333;
    margin: 0 0 20px 20px;
}

main li {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 6px;
}

main table {
    display: block;
    overflow-x: auto;
}

/* footer */
footer {
    margin: 40px auto 50px auto;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 12px;
    line-height: 1.5;
    color: #999;
}

footer * {
    color: #999;
    text-decoration: underline;
}

/* cookie */
.cookie {
    max-width: 370px;
    position: fixed;
    bottom: 16px;
    left: 16px;
    margin-right: 16px;
    background: #f5f5f5;
    padding: 10px 16px;
    border-radius: 24px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    display: none;
}

.cookie button {
    background: none;
    border: 1px solid #999;
    padding: 4px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.cookie a {
    color: #999;
}

.cookie b {
    color: #666;
}

/* modal */
.modal {
    position: fixed;
    width: 300px;
    min-height: 280px;
    background: #eee;
    z-index: 9999;
}

.modal .close-btn {
    position: absolute;
    z-index: 999;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}


.modal .close-btn::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
    display: block;
}

.modal .close-btn:hover {
    background: #bbb;
}

@media (min-width: 769px) {
    .modal {
        bottom: 20px;
        right: 20px;
    }
}


@media (max-width: 768px) {
    .modal {
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
        top: auto;
    }
}

/* bottom */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    z-index: 9999;
}

.bottom-nav a {
    width: 40px;
    height: 40px;
    background: #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
    cursor: pointer;
}

.bottom-nav a:hover {
    background: #bbb;
}


.bottom-nav a:first-child::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z'/%3E%3C/svg%3E");
}


.bottom-nav a:nth-child(2)::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
}


.bottom-nav a:nth-child(3)::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z'/%3E%3C/svg%3E");
}


.bottom-nav a:nth-child(4)::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z'/%3E%3C/svg%3E");
}