* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    color: #262626;
}

.app-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- 認証画面（Instagram風） --- */
.auth-box {
    width: 100%;
    max-width: 350px;
    padding: 30px;
    text-align: center;
}

.app-logo {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
    color: #000;
}

.app-desc {
    font-size: 13px;
    color: #8e8e8e;
    margin-bottom: 25px;
}

.input-group {
    margin-bottom: 8px;
}

.auth-box input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    background: #fafafa;
    border: 1px solid #dbdbdb;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.auth-box input:focus {
    border-color: #a8a8a8;
}

.action-btn {
    width: 100%;
    height: 44px;
    background-color: #0095f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.2s;
}

.action-btn:active {
    background-color: #0077c2;
}

.error-text {
    color: #ed4956;
    font-size: 12px;
    margin-top: 12px;
    min-height: 15px;
}

.switch-auth {
    margin-top: 30px;
    font-size: 13px;
    color: #262626;
    border-top: 1px solid #efefef;
    padding-top: 20px;
}

.switch-auth a {
    color: #0095f6;
    text-decoration: none;
    font-weight: 600;
}

/* --- メイン画面 --- */
.main-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.main-header {
    height: 55px;
    background: white;
    border-bottom: 1px solid #dbdbdb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    z-index: 10;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-mail {
    font-size: 13px;
    font-weight: 600;
}

.user-id-badge {
    font-size: 10px;
    color: #8e8e8e;
}

.logout-btn {
    background: transparent;
    border: 1px solid #dbdbdb;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

.map-area {
    flex-grow: 1;
    width: 100%;
}

.bottom-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 20px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
    z-index: 10;
}

.control-row {
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
}

.bottom-panel input {
    flex-grow: 1;
    height: 40px;
    padding: 0 12px;
    background: #fafafa;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
}

.friend-add-btn {
    background-color: #0095f6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 15px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

.location-update-btn {
    width: 100%;
    height: 44px;
    background-color: #34c759;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
}

.status-msg {
    font-size: 11px;
    color: #0095f6;
    height: 15px;
    margin-bottom: 5px;
}

