/* ============================================================
   nibango Base Styles
   ============================================================ */

@font-face {
    font-family: 'Ibrand';
    src: url('/static/fonts/Ibrand.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.hidden {
    display: none !important;
}

html {
    background-color: var(--bg-secondary);
}

body {
    font-family: var(--font-system);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--b-primary);
    text-decoration: none;
    transition: color var(--t-fast);
}

a:hover {
    color: var(--b-primary-hover);
}

button,
input,
textarea,
select {
    font-family: inherit;
    font-size: 100%;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Brand Typography */
.logo-text {
    font-family: var(--font-logo) !important;
    font-weight: normal;
}

.logo-niban {
    color: var(--brand-niban) !important;
}

.logo-go {
    color: var(--brand-go) !important;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

p {
    margin-bottom: var(--sp-md);
}

/* Base Form Resets */
input,
textarea {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--separator);
    border-radius: var(--r-sm);
    padding: var(--sp-sm) var(--sp-md);
    transition: border-color var(--t-fast);
    outline: none;
}

input:focus,
textarea:focus {
    border-color: var(--b-primary);
}

::placeholder {
    color: var(--text-tertiary);
}