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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9fafb;
}

a {
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

nav {
    width: 100%;
    height: 60px;
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: #165dff;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-menu li a {
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #165dff;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.page-header {
    padding: 30px 0 20px;
    text-align: center;
}

.page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.page-eyebrow a {
    color: #165dff;
    text-decoration: none;
}

.page-header h1 {
    color: #165dff;
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-header p {
    color: #666;
    font-size: 1rem;
    max-width: 760px;
    margin: 0 auto;
}

.tool-page,
.single-page {
    display: grid;
    gap: 16px;
    margin: 10px 0 30px;
}

.panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 22px 20px;
}

.panel-head {
    margin-bottom: 18px;
}

.panel-head h2 {
    font-size: 1.15rem;
    color: #111827;
    margin-bottom: 6px;
}

.panel-head p {
    color: #6b7280;
    font-size: 0.95rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field span {
    font-size: 0.92rem;
    color: #374151;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.95rem;
    background: #fff;
    color: #111827;
    outline: none;
}

.field textarea {
    min-height: 140px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #165dff;
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.08);
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.primary-btn,
.ghost-btn {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid #165dff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.primary-btn {
    background: #165dff;
    color: #fff;
}

.primary-btn:hover {
    background: #0d4ed8;
    border-color: #0d4ed8;
}

.ghost-btn {
    background: #fff;
    color: #165dff;
}

.ghost-btn:hover {
    background: #f3f7ff;
}

.result-wrap {
    margin-top: 18px;
}

.status-message {
    min-height: 24px;
    color: #6b7280;
    font-size: 0.92rem;
    margin-bottom: 10px;
}

.status-message.success {
    color: #166534;
}

.status-message.error {
    color: #b91c1c;
}

.result-card,
.notice-card {
    border-radius: 8px;
    background: #f3f7ff;
    border: 1px solid #dbe7ff;
    padding: 16px;
}

.result-card strong,
.notice-card strong {
    display: block;
    font-size: 0.95rem;
    color: #1f2937;
    margin-bottom: 6px;
}

#resultValue {
    font-size: 1.3rem;
    font-weight: 600;
    color: #165dff;
    word-break: break-word;
}

.result-hint,
.helper-text,
.notice-card p,
.content-panel p,
.content-panel li {
    color: #6b7280;
    font-size: 0.95rem;
}

.tag-list,
.tip-list,
.content-list {
    list-style: none;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-list li {
    padding: 8px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.92rem;
}

.tip-list {
    display: grid;
    gap: 10px;
}

.tip-list li,
.content-list li {
    padding-left: 16px;
    position: relative;
}

.tip-list li::before,
.content-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #165dff;
    position: absolute;
    left: 0;
    top: 10px;
}

.content-panel {
    display: grid;
    gap: 16px;
}

.content-panel h2 {
    font-size: 1.1rem;
    color: #111827;
    margin-bottom: 8px;
}

.content-panel a {
    color: #165dff;
    text-decoration: none;
}

.feedback-form {
    display: grid;
    gap: 14px;
}

.feedback-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

footer {
    margin-top: 60px;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #e5e7eb;
    color: #999;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid #e5e7eb;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 320px;
    }

    .nav-menu li a {
        display: block;
        padding: 12px 15px;
        border-bottom: 1px solid #f3f4f6;
    }

    .nav-menu li:last-child a {
        border-bottom: none;
    }

    .page-header {
        padding: 24px 0 16px;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .page-header p {
        font-size: 0.92rem;
    }

    .panel {
        padding: 18px 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .button-group,
    .feedback-actions {
        flex-direction: column;
    }

    .primary-btn,
    .ghost-btn {
        width: 100%;
    }
}
