/* ================================
   base.css  âEåšããEãžå±éãEåºç€E
================================ */

/* CSS Variables */
:root {
    --c-text-main: #1A1A1A;
    --c-text-sub: #666666;
    --c-bg-body: #FAFAFA;
    --c-bg-white: #FFFFFF;
    --c-bg-gray: #F2F2F2;
    --c-border: #E5E7EB;
    --c-black: #111111;
    --c-red: #E32020;
    --c-blue: #0066CC;
    --c-green: #06C755;
    --s-header: 64px;
    --s-container: 960px;
    --s-gutter: 20px;
    --btn-font-size: 14px;
    --btn-font-weight: 700;
    --pc-min-width: 900px;
    --content-max: 900px;
}

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

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    background: var(--c-bg-body);
    color: var(--c-text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media (min-width: 960px) {
    body { min-width: var(--pc-min-width); }
}

img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; }
/* ãªã³ã¯ã¯äžç·ãªããè²ã¯ç¶æ¿ãã¢ã€ã³ã³ã®ã¿è¡šç€ºãããE®Eã®ããã«å±éå */
a { color: inherit; text-decoration: none; }
main { flex: 1; }
input, textarea, select {
    font-family: inherit;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

/* ç»é¢ã«ã¯åºããèª­ã¿äžãçš */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Utility */
.u-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Card */
.c-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--c-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    overflow: hidden;
}

/* Buttons */
.btn-typo,
button,
.btn,
.btn-primary,
.btn-pill,
.c-btn,
.primary-btn,
.logout-btn,
.checkout-submit,
.completed-btn,
.upload-btn,
.reset-btn,
.menu-btn,
.menu-close,
.btn-back,
.order-detail .btn-primary,
.order-detail .btn-back,
.grid-buttons button,
.tools button,
.color-options button,
.size-options button,
.pos-options button,
.line-cta {
    font-size: var(--btn-font-size);
    font-weight: var(--btn-font-weight);
    letter-spacing: 0.01em;
}

.c-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 16px 28px;
    font-size: var(--btn-font-size);
    font-weight: var(--btn-font-weight);
    letter-spacing: 0.02em;
    transition: 0.2s;
}

.c-btn:active { transform: scale(0.97); }

/* Pill Buttons (common) */
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    min-height: 44px;
    min-width: 140px;
    max-width: 200px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: var(--btn-font-size);
    font-weight: var(--btn-font-weight);
    color: #111;
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.btn-pill:hover { transform: translateY(-1px); border-color: #cfcfcf; box-shadow: 0 12px 22px rgba(0,0,0,0.08); }
.btn-pill--black { background: #000; color: #fff; border-color: #000; box-shadow: 0 8px 18px rgba(0,0,0,0.08); }
.btn-pill--outline { background: #fff; color: #000; border-color: #ddd; box-shadow: 0 8px 16px rgba(0,0,0,0.04); }
.btn-pill--red { background: #e32020; color: #fff; border-color: #e32020; box-shadow: 0 10px 20px rgba(227,32,32,0.25); }
.btn-pill--red:hover { background: #c91818; border-color: #c91818; }
.btn-pill--arrow { padding-right: 32px; position: relative; }
.btn-pill--arrow::after {
    content: "âº";
    position: absolute;
    right: 14px;
    font-weight: 700;
    font-size: 14px;
}
.btn-icon svg { stroke: currentColor; }
.btn-compact { width: 220px; min-width: 220px; }

/* Unified button sizing */
.btn,
.btn-primary,
.btn-pill,
.btn-pill--black,
.btn-pill--outline,
.btn-back,
.btn-icon,
.btn-typo {
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 999px;
}
.c-btn--black { background: var(--c-black); color: #fff; }
.c-btn--red { background: var(--c-red); color: #fff; }
.c-btn--outline {
    background: #fff;
    border: 1px solid #ccc;
    color: var(--c-text-main);
}

/* Inputs */
.c-input, .c-select, .c-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    margin-bottom: 16px;
}

.c-label {
    font-size: 13px;
    color: var(--c-text-sub);
    /* margin-bottom: 6px; */
    display: block;
}

/* Section Title */
.p-section-title {
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: 0.04em;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    /* margin: 0 auto; */
}

.btn-icon svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Alert message */
.alart {
    color: #b3261e;
    background: #fde7e9;
    border: 1px solid #f2b8b5;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    margin: 12px 0;
}
.alart.is-success {
    color: #166534;
    background: #ecfdf3;
    border-color: #bbf7d0;
}
.alart.is-error {
    color: #b3261e;
    background: #fde7e9;
    border-color: #f2b8b5;
}.alart:empty {
    display: none;
}

