/*
Theme Name: ATIP Calendar Theme
Theme URI: https://calendar.atip.co.jp/
Author: ATIP
Author URI: https://calendar.atip.co.jp/
Description: A minimal, clean WordPress theme designed for the ATIP booking calendar plugin. Provides no conflicting styles.
Version: 1.0.0
Text Domain: atip-calendar
*/

/* ── Global reset ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
    color: #202124;
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* ── Admin bar adjustment ─── */
body.admin-bar .cb-site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .cb-site-header {
        top: 46px;
    }
}

/* ── Header ─── */
.cb-site-header {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e8eaed;
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.08);
    backdrop-filter: blur(10px);
}

.cb-site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cb-site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: #202124;
    margin: 0;
    padding: 0;
}

.cb-site-logo i {
    font-size: 24px;
    color: #1a73e8;
}

/* ── Main content area ─── */
.cb-site-main {
    padding: 48px 0 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Responsive ─── */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .cb-site-header {
        padding: 16px 0;
    }

    .cb-site-header-inner {
        padding: 0 16px;
    }

    .cb-site-logo {
        font-size: 18px;
        gap: 10px;
    }

    .cb-site-logo i {
        font-size: 20px;
    }

    .cb-site-main {
        padding: 20px 0 0;
    }
}

@media (max-width: 480px) {
    .cb-site-header-inner {
        padding: 0 12px;
    }
}

/* ── Footer ─── */
.cb-site-footer {
    background-color: #ffffff;
    border-top: 1px solid #e8eaed;
    padding: 32px 0;
    margin-top: 64px;
}

.cb-site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cb-footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.cb-footer-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #5f6368;
    text-decoration: none;
    transition: color 0.2s;
}

.cb-footer-links a:hover {
    color: #1a73e8;
}

.cb-footer-links a i {
    font-size: 12px;
}

.cb-footer-separator {
    color: #e8eaed;
    font-size: 12px;
}

.cb-footer-copyright {
    font-size: 11px;
    color: #9aa0a6;
    text-align: center;
}

/* ── WordPress defaults that we want to suppress ─── */
img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ── Footer responsive ─── */
@media (max-width: 768px) {
    .cb-site-footer {
        padding: 24px 0;
        margin-top: 48px;
    }

    .cb-site-footer-inner {
        padding: 0 16px;
    }

    .cb-footer-links {
        gap: 12px;
    }

    .cb-footer-links a {
        font-size: 11px;
    }

    .cb-footer-copyright {
        font-size: 10px;
    }
}